/* Landing page — the only surface with fluid display type and an entrance
   animation. Everything else is the shared system in app.css.

   The hero used to lean on Archivo's variable-width axis (`font-stretch: 108%`);
   with the system stack that is a no-op, so the weight and tracking carry it. */

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }

section { padding: clamp(56px, 9vw, 104px) 0; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.3rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.032em;
  margin: 0 0 20px;
}
.hero h1 .turn { color: var(--primary); }
.hero .lede {
  font-size: clamp(1.02rem, 1.6vw, 1.14rem);
  color: var(--muted);
  line-height: 1.65;
  max-width: 54ch;
  margin: 0 0 30px;
  text-wrap: pretty;
}
.hero .cta-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero h1       { animation: rise 600ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero .lede    { animation: rise 600ms 90ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero .cta-row { animation: rise 600ms 180ms cubic-bezier(0.16, 1, 0.3, 1) both; }
.panel-stack   { animation: rise 700ms 260ms cubic-bezier(0.16, 1, 0.3, 1) both; }

/* Hero imagery: the product, drawn — feedback panel + job matches overlap. */
/* Two cards staggered diagonally: feedback top-left, matches bottom-right. The
   min-height must clear both stacked (293 + 245) or the lower card's row titles
   vanish behind the upper one. */
.panel-stack { position: relative; min-height: 560px; }
.mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-5);
}
.mock h4 {
  margin: 0 0 14px;
  font-size: var(--t-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--faint);
}
.mock-feedback { position: relative; z-index: 2; width: min(300px, 86%); }
.ring-row { display: flex; align-items: center; gap: var(--sp-5); margin-bottom: var(--sp-4); }
.ring-num { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.ring-num small { font-size: var(--t-sm); font-weight: 500; color: var(--muted); }
.ring-label { font-size: 13px; color: var(--muted); line-height: 1.4; }
.bar { height: 6px; border-radius: var(--r-full); background: var(--slate-100); margin: 7px 0 var(--sp-3); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: var(--r-full); background: var(--teal-500); }
.bar-label { font-size: var(--t-xs); color: var(--muted); display: flex; justify-content: space-between; }

.mock-jobs { position: absolute; right: 0; bottom: 0; z-index: 1; width: min(290px, 84%); }
.job-row {
  display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3);
  padding: 10px 0; border-top: 1px solid var(--border-hairline); font-size: 13.5px;
}
.job-row:first-of-type { border-top: 0; padding-top: 0; }
.job-row .jr-t { color: var(--ink); font-weight: 600; }
.job-row .jr-s { color: var(--faint); font-size: var(--t-xs); display: block; }
.job-score { font-weight: 700; color: var(--primary-text); }

/* ── Two seats ────────────────────────────────────────────────────────────── */

.seats-head { max-width: 46ch; margin-bottom: clamp(28px, 4vw, 44px); }
.seats-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; letter-spacing: -0.025em; margin: 0 0 10px; }
.seats-head p { color: var(--muted); margin: 0; }
.seats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-5); }
.seat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-sm);
  padding: clamp(24px, 3.5vw, 36px);
  display: flex; flex-direction: column;
}
.seat h3 { margin: 0 0 6px; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em; }
.seat .seat-for { color: var(--faint); font-size: 13px; margin: 0 0 var(--sp-5); }
.seat ul { list-style: none; margin: 0 0 var(--sp-6); padding: 0; display: grid; gap: 10px; }
.seat li { display: flex; gap: 10px; font-size: var(--t-sm); color: var(--muted); line-height: 1.55; }
.seat li .ico { margin-top: 3px; }
.seat .btn { margin-top: auto; align-self: start; }

/* ── Pipelines — real ordered flows, so the numbers carry information. ─────── */

.flow { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); }
.flow.rev { direction: rtl; }
.flow.rev > * { direction: ltr; }
.flow-side h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; letter-spacing: -0.025em; margin: 0 0 10px; }
.flow-side p { color: var(--muted); margin: 0; text-wrap: pretty; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: var(--sp-4);
  padding: var(--sp-5) 0;
}
.steps li + li { border-top: 1px solid var(--border); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 13px; font-weight: 700; color: var(--primary-text);
  font-variant-numeric: tabular-nums;
  background: var(--teal-50);
  border: 1px solid var(--teal-200);
  border-radius: var(--r-full);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  margin-top: 2px;
}
.steps b { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 3px; }
.steps span { color: var(--muted); font-size: var(--t-sm); line-height: 1.6; }

/* ── Bridge band — the app's one dark surface, shared with the interview stage. */

.bridge { background: var(--grad-stage); }
.bridge .wrap { text-align: center; }
.bridge p.big {
  font-size: clamp(1.5rem, 3.6vw, 2.5rem);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.2;
  color: #fff;
  max-width: 26ch; margin: 0 auto 14px;
}
.bridge p.small { color: var(--slate-300); max-width: 52ch; margin: 0 auto; font-size: 15px; }
.bridge .dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: var(--r-full); background: var(--teal-400); margin: 0 var(--sp-1) 0.2em;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

footer { border-top: 1px solid var(--border); padding: 28px 0; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
footer .f-brand { color: var(--faint); font-size: 13.5px; }
footer nav { display: flex; gap: var(--sp-5); font-size: 13.5px; }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; }
  .panel-stack { min-height: 0; display: grid; gap: 14px; }
  .mock-feedback { width: 100%; }
  .mock-jobs { position: static; width: 100%; }
  .seats { grid-template-columns: 1fr; }
  .flow, .flow.rev { grid-template-columns: 1fr; direction: ltr; }
}
