/* Demo page. Tokens, chrome, buttons and chat bubbles come from base.css. */

/* No max-width here: this element is also `.shell`, which sets
   `margin-inline: auto`, so a max-width would centre the hero while every
   section below stays left-aligned. Measure is held by `.lede` instead. */
.demo-hero {
  padding: clamp(2.4rem, 6vw, 4rem) 0 clamp(1.6rem, 4vw, 2.4rem);
}

.demo-hero h1 { margin-bottom: 1rem; }

.mock-notice {
  display: inline-block;
  margin-top: 1.3rem;
  padding: 0.55rem 1rem;
  border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--rule));
  border-radius: 12px;
  background: var(--teal-wash);
  color: var(--teal);
  font-size: 0.87rem;
}

.section { padding: clamp(2.2rem, 5vw, 3.6rem) 0; }

.section-head { max-width: 54ch; margin-bottom: 1.8rem; }
.section-head p { margin-top: 0.6rem; color: var(--ink-soft); }

/* -- the two worked cross-system examples ---------------------------------- */

.worked {
  margin-bottom: 1.2rem;
  padding: 1.6rem;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: var(--paper-raised);
  box-shadow: var(--lift);
}

.worked .chat { margin-bottom: 1rem; }
.worked .bubble { max-width: 100%; }

.worked-note {
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.scroller { overflow-x: auto; }

table.mock {
  border-collapse: collapse;
  margin: 0.6rem 0;
  min-width: 30rem;
  font-family: var(--mono);
  font-size: 0.82rem;
}

table.mock th,
table.mock td {
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--rule);
  text-align: left;
  white-space: nowrap;
}

table.mock th {
  background: var(--amber-wash);
  font-weight: 600;
}

.reasoning { margin: 0.5rem 0; padding-left: 1.1rem; }
.reasoning li { margin-bottom: 0.35rem; line-height: 1.7; }
.reasoning li:last-child { margin-bottom: 0; }

/* -- what it can produce --------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 1rem;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: var(--paper-raised);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--amber) 45%, var(--rule));
  box-shadow: var(--lift);
}

.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: 0.92rem; }

.card .say-this {
  margin: auto 0 0;
  padding: 0.6rem 0.9rem;
  border-left: 3px solid var(--amber);
  border-radius: 0 10px 10px 0;
  background: var(--paper-sunk);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 550;
}

/* -- limits ---------------------------------------------------------------- */

.limits { padding-left: 1.15rem; }
.limits li { margin-bottom: 0.8rem; line-height: 1.75; }

/* -- closing: the three steps + starters ----------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  margin-bottom: 1.4rem;
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  background: var(--rule);
}

.step { padding: 1.5rem; background: var(--paper-raised); }

.step-no {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.step h3 { margin-bottom: 0.45rem; font-size: 1rem; }
.step p { color: var(--ink-soft); font-size: 0.9rem; }

.starters { display: grid; gap: 0.6rem; }

.starter {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper-raised);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.starter:hover {
  border-color: color-mix(in srgb, var(--amber) 50%, var(--rule));
  transform: translateX(3px);
}

.starter-q { font-size: 0.96rem; }

.starter-why {
  margin-left: auto;
  color: var(--ink-faint);
  font-size: 0.8rem;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .starter { flex-wrap: wrap; gap: 0.25rem; }
  .starter-why { margin-left: 0; text-align: left; }
}
