/* Comeback home only (/ and /de/). Redesign phase 1, 14 Nov 2026 (docs/specs/site-redesign-2026-11-14.md §3-4),
   on top of WP3 (12 Nov). Loaded after /brand/brand.css; tokens only, no new colours. lint.mjs allows this sheet on
   the two home pages only (design/DESIGN_LANGUAGE.md section 15 note for WP2 part 2). No motion here.
   Hierarchy: the hero stage is the one bold moment; the money map is the second, smaller one; the rest stays quiet. */

/* ---------- Hero ---------- */
/* The stage, glyph, facts row and outcome cards are shared with the product pages: src/chrome.css (phase 3). */
.hero-home h1 { hyphens: manual; } /* German H1: whole words only */
.hero-home .status a { color: inherit; }
.hero-home .actions { align-items: center; gap: var(--s-3) var(--s-5); }
.hero-try { display: inline-block; padding-block: 0.6rem; font-weight: 700; }



/* Below 64rem: status, H1, lead, install, facts, risk line, then the visual (brand.css puts the visual after the H1;
   at 390x844 that pushed the install button under the consent bar). */
@media (max-width: 63.99rem) {
  .hero-home .status { order: 1; }
  .hero-home h1 { order: 2; max-width: 16ch; }
  .hero-home .lead { order: 3; }
  .hero-home .actions { order: 4; }
  .hero-home .hero-facts { order: 5; }
  .hero-home .hero-meta { order: 6; }
  .hero-home .hero-product { order: 7; margin-top: var(--s-4); }
}
@media (max-width: 39.99rem) {
  .hero-home .lead { font-size: var(--t-md); line-height: 1.5; }
  .hero-home .hero-facts { flex-direction: column; gap: var(--s-2); }
}
@media (min-width: 64rem) {
  .hero-home .hero-copy { display: grid; gap: var(--s-5); align-content: start; }
  .hero-home .hero-copy > * { margin: 0; }
}

/* ---------- How it works: a real sequence, so numbered; one hairline joins the numerals ---------- */
.how-steps { display: grid; gap: var(--s-6); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.how-steps li { position: relative; display: grid; grid-template-columns: 3rem minmax(0, 1fr); column-gap: var(--s-4); row-gap: var(--s-2); counter-increment: step; }
.how-steps li::before { content: counter(step); grid-row: 1 / span 2; position: relative; z-index: 1; align-self: start; width: 3rem; padding-bottom: var(--s-1); background: var(--paper); color: var(--accent); font-size: var(--t-3xl); font-weight: 700; line-height: 0.95; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; text-align: center; }
.how-steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.5rem; top: 0.5rem; bottom: calc(-1 * var(--s-6)); width: 1px; background: var(--line); }
.how-steps h3 { font-size: var(--t-lg); letter-spacing: -0.01em; }
.how-steps p { color: var(--ink-2); max-width: 34ch; }
.how-link { margin-top: var(--s-6); font-weight: 600; }
@media (min-width: 48rem) {
  .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
  .how-steps li { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .how-steps li::before { grid-row: auto; width: auto; padding: 0 var(--s-4) var(--s-3) 0; justify-self: start; text-align: left; }
  .how-steps li:not(:last-child)::after { left: 3.25rem; right: calc(-1 * var(--s-6)); top: 1.55rem; bottom: auto; width: auto; height: 1px; }
}

/* Demo companion: live demo store and the film, under one quieter heading. */
.demo-more { padding-top: 0; }
.demo-more-h { font-size: var(--t-xl); letter-spacing: -0.015em; margin-bottom: var(--s-5); }
.demo-more-grid { display: grid; gap: var(--s-7); }
.demo-more-grid > * { border-top: 1px solid var(--line); padding-top: var(--s-5); }
.demo-more h3 { font-size: var(--t-lg); }
.demo-store p { max-width: 34rem; }
@media (min-width: 64rem) { .demo-more-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-8); align-items: start; } }

/* ---------- Where the money goes: each choice to its outcome, berry when the money stays, grey when it leaves ---------- */
.route-map { display: grid; }
.route-head, .route-shot { display: none; }
.route-shot { margin: 0; }
.route { display: grid; margin: 0; border-top: 1px solid var(--line); }
.route-row { position: relative; display: grid; gap: var(--s-1); padding: var(--s-4) 0 var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.route-row::before { content: ""; position: absolute; left: 0; top: var(--s-4); bottom: var(--s-4); width: 4px; border-radius: 2px; background: var(--accent); }
.route-row.is-out::before { background: var(--ink-3); }
.route dt { color: var(--ink-2); }
.route dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.7rem; margin: 0; }
.route-fig { color: var(--accent-deep); font-size: var(--t-lg); letter-spacing: -0.01em; }
.route dd span { color: var(--ink); font-weight: 600; }
.is-out .route-fig { color: var(--ink-3); }
.route-from { margin-top: var(--s-4); color: var(--ink-3); font-size: var(--t-sm); }
.route-notes { display: grid; gap: var(--s-3); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); color: var(--ink-2); }
@media (min-width: 64rem) { .route-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7); } }
/* 75rem+: the real options screen beside the list; each outcome sits level with its own row on the screen
   (row centres measured on hero-options-m: 32.6%, 55.0%, 73.9%, 89.5% of its height). */
@media (min-width: 75rem) {
  .route-map { grid-template-columns: minmax(0, 36rem) minmax(0, 1fr); row-gap: var(--s-3); }
  .route-head { display: contents; color: var(--ink-3); font-size: var(--t-sm); font-weight: 600; }
  .route-head span:last-child { padding-left: var(--s-7); }
  /* The real screen as a background, untouched pixels: below 75rem the box is hidden and the browser fetches nothing
     (a hidden lazy <img> never loads, which site-qa's images.loaded counts as broken; an eager one costs phones 22 KB). */
  .route-shot { display: block; aspect-ratio: 1260 / 610; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background-color: var(--paper); background-image: url("/img/try/hero-options-m-760.webp"); background-image: image-set(url("/img/try/hero-options-m-760.webp") 1x, url("/img/try/hero-options-m-1260.webp") 2x); background-size: 100% auto; background-repeat: no-repeat; box-shadow: var(--shadow-frame); }
  .route { position: relative; display: block; border-top: 0; }
  .route-row { position: absolute; left: 0; right: 0; top: 32.6%; display: block; padding: 0 0 0 var(--s-7); border-bottom: 0; transform: translateY(-50%); }
  .route-row:nth-child(2) { top: 55%; }
  .route-row:nth-child(3) { top: 73.9%; }
  .route-row:nth-child(4) { top: 89.5%; }
  /* The wire: a dot on the screen's edge, then a line to the outcome (dashed and grey when the money leaves). */
  .route-row::before { top: 50%; bottom: auto; left: 0; width: calc(var(--s-7) - 0.75rem); height: 2px; border-radius: 1px; transform: translateY(-50%); }
  .route-row.is-out::before { background: repeating-linear-gradient(90deg, var(--ink-3) 0 6px, transparent 6px 11px); }
  .route-row::after { content: ""; position: absolute; left: -0.4rem; top: 50%; width: 0.8rem; height: 0.8rem; border-radius: 50%; border: 2px solid var(--paper); background: var(--accent); transform: translateY(-50%); }
  .route-row.is-out::after { background: var(--ink-3); }
  .route dt { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .route dd { flex-wrap: nowrap; }
  .route-fig { min-width: 9rem; font-size: var(--t-md); white-space: nowrap; }
  .route dd span { font-size: var(--t-sm); }
}

/* Calculator, collapsed under the money map, inside the same section. */
.calc-more { margin-top: var(--s-6); }
.calc-more .more > summary { font-size: var(--t-lg); }
.calc-more .more > p { margin-bottom: var(--s-4); }

/* ---------- "Facts you can check": a ledger on the ink band, one row per fact (not a sequence, so no numbers) ---------- */
.ledger { margin: 0; padding: 0; list-style: none; border-top: 1px solid rgb(255 255 255 / 0.18); }
.ledger li { display: grid; gap: var(--s-2); padding: var(--s-5) 0; border-bottom: 1px solid rgb(255 255 255 / 0.18); }
.ledger h3 { font-size: var(--t-lg); }
.ledger p { color: var(--on-ink-2); max-width: 46rem; }
.ledger .ledger-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); color: var(--on-ink); font-weight: 600; }
@media (min-width: 64rem) {
  .ledger li { grid-template-columns: minmax(0, 3.5fr) minmax(0, 6fr) minmax(0, 2.5fr); gap: var(--s-6); align-items: baseline; }
  .ledger .ledger-links { justify-content: flex-end; text-align: right; }
}

/* Free setup help: one berry-tint panel above the closing band. */
.setup-panel { display: grid; gap: var(--s-5); background: var(--accent-tint); border-radius: var(--r-xl); padding: clamp(1.5rem, 0.8rem + 2.6vw, 3.5rem); }
.setup-panel h2 { font-size: var(--t-2xl); }
.setup-panel p { max-width: 42rem; }
@media (min-width: 64rem) { .setup-panel { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; } .setup-panel > p:last-child { justify-self: end; } }

@media (forced-colors: active) {
  .route-row::before, .route-row::after, .outcome-card b::before { background: Highlight; }
  .route-row.is-out::before, .route-row.is-out::after { background: GrayText; }
}
