/* Home (W-39): the home's layout and page-specific pieces; it never redefines a shared component (R8)
   and has no colours of its own (R3). The pieces it places — buttons, pills, chips, cards, scores, bars,
   bento, staged reveal — live in components.css (tests/test_design_system.py); colours come only from
   design-tokens.css. */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: center;
  gap: var(--s-12); padding-block: var(--s-20) var(--s-24);
}
.hero-copy { display: grid; justify-items: start; gap: var(--s-6); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: var(--s-3); }
.hero h1 {
  margin: 0; font-size: clamp(var(--t-2xl), 5vw, var(--t-4xl)); font-weight: 800;
  line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance;
}
.lede { margin: 0; max-width: 34rem; font-size: var(--t-md); line-height: 1.65; color: var(--text-secondary); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero-note { margin: 0; font-family: var(--font-mono); font-size: var(--t-sm); color: var(--text-secondary); }

/* ── Sample interview card ───────────────────────────── */
.product { padding: 0; overflow: hidden; }
.product-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-5);
  background: var(--bg-base); border-bottom: 1px solid var(--border-default);
}
.product-time { margin-right: auto; font-family: var(--font-mono); font-size: var(--t-xs); color: var(--text-secondary); }
.product-body { display: grid; gap: var(--s-4); padding: var(--s-5); }
.product-title { margin: 0; font-size: var(--t-lg); font-weight: 700; }
.answer { display: grid; gap: var(--s-3); }
.answer-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); }
.score-slot { display: grid; justify-items: end; }
.score-slot > * { grid-area: 1 / 1; }
.answer blockquote, .tile-quote { margin: 0; padding-left: var(--s-3); border-left: 2px solid var(--accent); line-height: 1.6; }
.suggestions { display: grid; gap: var(--s-2); }
.product-actions { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* ── Sections ────────────────────────────────────────── */
.section { padding-block: var(--s-20); }
.section-alt { background: var(--bg-deep); border-block: 1px solid var(--border-subtle); }
.section-head { display: grid; gap: var(--s-3); max-width: 46rem; margin-bottom: var(--s-10); }
.section-head h2, .trust h2, .closing-card h2 {
  margin: 0; font-size: clamp(var(--t-xl), 3.4vw, var(--t-3xl)); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance;
}
.section-note { margin: 0; font-size: var(--t-sm); color: var(--text-secondary); }

/* ── Feature tiles ───────────────────────────────────── */
.tile { display: grid; align-content: start; gap: var(--s-3); }
.tile h3 { margin: 0; font-size: var(--t-md); font-weight: 700; line-height: 1.3; }
.tile p { margin: 0; font-size: var(--t-sm); line-height: 1.6; color: var(--text-secondary); }
.tile .tile-quote, .tile .tile-decision { color: var(--text-primary); }
.tile-visual { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-2); }
.tile-stack { display: grid; align-items: stretch; }
/* The pill is the stack's only direct span (bars and suggestions are divs): keep it at its own width.
   Selected by element, not by its component class, so the component stays untouched (R8). */
.tile-stack > span { justify-self: start; }
.tile-icon {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: var(--r-sm); color: var(--accent); background: var(--accent-soft);
}
.tile-icon svg, .trust-list svg { width: 20px; height: 20px; }

/* ── Steps ───────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); margin: 0; padding: 0; list-style: none; }
.step { display: grid; align-content: start; justify-items: start; gap: var(--s-3); }
.step-number {
  padding: var(--s-1) var(--s-3); font-family: var(--font-mono); font-size: var(--t-sm);
  color: var(--accent); border: 1px solid var(--accent-ring); border-radius: var(--r-xs);
}
.step h3 { margin: 0; font-size: var(--t-lg); font-weight: 700; }
.step p { margin: 0; font-size: var(--t-sm); line-height: 1.6; color: var(--text-secondary); }

/* ── Trust ───────────────────────────────────────────── */
.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; gap: var(--s-12); }
.trust-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); margin: 0; padding: 0; list-style: none; }
.trust-list li { display: flex; align-items: flex-start; gap: var(--s-3); line-height: 1.6; }
.trust-list svg { flex: none; margin-top: 2px; color: var(--accent); }

/* ── Roadmap, closing, footer ────────────────────────── */
.roadmap { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); padding-block: var(--s-12); }
.roadmap-list { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.closing { padding-bottom: var(--s-20); }
.closing-card { display: grid; justify-items: center; gap: var(--s-6); padding: var(--s-16) var(--s-6); text-align: center; }
.footer { padding-block: var(--s-8); border-top: 1px solid var(--border-subtle); font-size: var(--t-sm); color: var(--text-secondary); }

/* ── Narrow screens ──────────────────────────────────── */
@media (max-width: 960px) {
  .hero, .trust { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hero { padding-block: var(--s-12) var(--s-16); }
  .section { padding-block: var(--s-12); }
  .steps, .trust-list { grid-template-columns: minmax(0, 1fr); }
}
