/* ============================================================
   Landing page. Loaded after tokens.css.

   The shape is deliberately reductive: one dark hero band holding a
   single centred axis — wordmark, four-word headline, one sentence,
   the process strip, one button — then a quiet paper body below.
   ============================================================ */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 78px; /* clears the fixed bar on anchor jumps */
}

body {
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: 28px;
  box-sizing: border-box;
}
.narrow { max-width: var(--narrow); }

/* ============================================================
   TOP BAR — transparent over the hero so the centred wordmark keeps
   the stage; a solid paper bar once you're past it.
   ============================================================ */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.topbar-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 62px;
}

/* Held back until the hero's own wordmark has scrolled away, so the
   two are never on screen together. */
.topbar-brand {
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.topbar-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }

/* Colour is scoped away from the button, so the scrolled-state rules
   below can never repaint its dark-on-teal text. */
.topbar-nav a:not(.btn) {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
  color: var(--on-forest-soft);
  transition: color .18s ease;
}
.topbar-nav a:not(.btn):hover { color: var(--on-forest); }

/* Held back until the hero's own button is off screen, so there is
   only ever one upload button in view. */
.topbar-cta {
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, background .16s ease, transform .16s ease;
}

.topbar.is-stuck {
  background: color-mix(in oklab, var(--paper) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.topbar.is-stuck .topbar-brand { opacity: 1; pointer-events: auto; }
.topbar.is-stuck .topbar-cta { opacity: 1; pointer-events: auto; }
.topbar.is-stuck .topbar-nav a:not(.btn) { color: var(--ink-soft); }
.topbar.is-stuck .topbar-nav a:not(.btn):hover { color: var(--accent); }

/* ============================================================
   HERO — one dark band, one axis, a lot of silence
   ============================================================ */
.hero {
  background: var(--hero-bg);
  color: var(--on-forest);
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 28px 88px;
  box-sizing: border-box;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 46px;
}
.hero-brand svg { display: block; }
.hero-brand svg path { stroke: var(--on-forest); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.hero-brand svg path:nth-child(3) { stroke: var(--accent-2); }
.wordmark {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.015em;
}
.wordmark em { font-style: normal; color: var(--accent-2); }

.hero h1 {
  font-size: clamp(42px, 8.2vw, 76px);
  line-height: 1.03;
  letter-spacing: -.025em;
  margin-bottom: 22px;
  max-width: 15ch;
}

.hero-sub {
  color: var(--on-forest-soft);
  font-size: 17px;
  max-width: 46ch;
  margin-bottom: 54px;
  text-wrap: balance;
}

/* --- the process strip: the product, abstracted --- */
.steps {
  width: 100%;
  max-width: 640px;
  background: var(--hero-panel);
  border: 1px solid var(--hero-panel-line);
  border-radius: 16px;
  padding: 30px 26px 26px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 8px;
  margin-bottom: 46px;
}

.step { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.step svg { display: block; }
.step svg [stroke] { stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }

.step-label {
  font-size: 13.5px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -.005em;
}
.step-note {
  font-size: 12px;
  line-height: 1.35;
  margin-top: -7px;
}

/* Step one is lit because that is what the button below does — the
   strip reads as "you are here", not as a static diagram. */
.step-active { color: var(--on-forest); }
.step-active svg [stroke] { stroke: var(--accent-2); }
.step-active .step-note { color: var(--on-forest-soft); }

.step-idle { color: var(--step-idle); }
.step-idle svg [stroke] { stroke: var(--step-idle-icon); }
.step-idle .step-note { color: var(--step-idle-note); }

/* Kept quieter than the steps: connective tissue, not content. */
.arrow { display: flex; align-items: center; height: 32px; color: var(--on-forest-faint); }
.arrow svg [stroke] { stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; fill: none; }

.cta-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--on-forest-faint);
}

/* One orchestrated load sequence, nothing scattered. Under reduced
   motion the rule never applies, so nothing starts at opacity 0. */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(12px); animation: rise .72s cubic-bezier(.2,.7,.3,1) forwards; }
  .d1 { animation-delay: .05s; }
  .d2 { animation-delay: .16s; }
  .d3 { animation-delay: .27s; }
  .d4 { animation-delay: .40s; }
  .d5 { animation-delay: .52s; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ============================================================
   BODY SECTIONS — hairlines and air instead of cards
   ============================================================ */
.section { padding: 96px 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.14;
  letter-spacing: -.02em;
}
.section-head p { color: var(--ink-soft); max-width: var(--measure); }

/* --- pricing: a publisher's price list, not three cards --- */
.prices { border-top: 1px solid var(--line); }
.price-row {
  display: grid;
  grid-template-columns: 1.1fr 1fr auto;
  align-items: baseline;
  gap: 20px;
  padding: 24px 4px;
  border-bottom: 1px solid var(--line);
}
.price-name { font-family: var(--serif); font-size: 23px; letter-spacing: -.015em; }
.price-range { color: var(--ink-faint); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.price-fig {
  font-family: var(--serif);
  font-size: 27px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  text-align: right;
}
.price-row-quote .price-fig { font-size: 17px; font-family: var(--sans); color: var(--accent); }

/* --- trust --- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.trust div { display: flex; flex-direction: column; gap: 6px; }
.trust dt { font-weight: 650; font-size: 14.5px; }
.trust dd { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

/* --- faq --- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 30px 20px 0;
  font-weight: 600;
  font-size: 16px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 4px; top: 18px;
  font-size: 20px; font-weight: 400; color: var(--accent);
}
.faq details[open] summary::after { content: "\2013"; }
.faq p { padding: 0 40px 22px 0; color: var(--ink-soft); font-size: 15px; max-width: var(--measure); }

/* --- closing + footer --- */
.closer {
  background: var(--forest);
  color: var(--on-forest);
  text-align: center;
  padding: 84px 28px;
}
.closer h2 { font-size: clamp(28px, 4.6vw, 42px); letter-spacing: -.022em; margin-bottom: 14px; }
.closer p { color: rgba(241, 240, 233, .66); max-width: 44ch; margin: 0 auto 32px; }

.site-foot {
  padding: 30px 0 44px;
  font-size: 13.5px;
  color: var(--ink-faint);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  justify-content: space-between;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 20px; }
  .section { padding: 68px 0; }
  .hero { padding: 72px 20px 64px; min-height: 0; }

  /* The strip stacks and the arrows turn — same story, one column. */
  .steps { grid-template-columns: 1fr; gap: 4px; padding: 24px 20px; }
  .arrow { justify-content: center; height: 26px; }
  .arrow svg { transform: rotate(90deg); }

  /* Name stacked over its word range on the left, price held right.
     Every cell is placed explicitly — auto-placement put the price in
     column one and shunted the name across. */
  .price-row { grid-template-columns: 1fr auto; row-gap: 2px; column-gap: 16px; }
  .price-name { grid-column: 1; grid-row: 1; }
  .price-range { grid-column: 1; grid-row: 2; }
  .price-fig { grid-column: 2; grid-row: 1 / span 2; align-self: center; }

  .trust { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 560px) {
  /* Not enough width for all four; the button is what has to survive. */
  .topbar-brand { display: none; }
  .nav-wide { display: none; }
  .topbar-nav { width: 100%; justify-content: space-between; gap: 14px; }
  .topbar-nav a:not(.btn) { font-size: 13px; }
  .topbar-cta { margin-left: auto; padding: 8px 15px; }
}
