/* The landing page. The other pages use style.css; both carry the app's "Trail blaze" tokens (app/src/theme.ts, docs/redesign-trail-blaze.md). */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 700; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url(/fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 400; font-display: swap; src: url(/fonts/atkinson-hyperlegible-next-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-weight: 700; font-display: swap; src: url(/fonts/atkinson-hyperlegible-next-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Fredoka"; font-weight: 700; font-display: swap; src: url(/fonts/fredoka-latin-700-normal.woff2) format("woff2"); }

:root {
  /* Accents: the same in both themes, as in the app. */
  --spruce: #12302A; --blaze: #FFC93C; --blaze-dark: #D9A100; --moss: #2E9B5F; --deep: #1B5E4B; --deep-edge: #0F3D31;
  /* Neutrals: light. */
  --fog: #F2F5EF; --fog-dark: #E4EADF; --paper: #FFFFFF; --hair: #CBD6C8; --ink: #12302A; --ink-soft: #4D655B; --link: #1F7A47;
  --contours: url(/contours-light.svg);
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
  --logo: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --fog: #0A1612; --fog-dark: #1E3A32; --paper: #1A332C; --hair: #2B4A40; --ink: #EAF2EC; --ink-soft: #B5C6BC; --link: #6FD49A; --contours: url(/contours-dark.svg); }
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--fog); color: var(--ink); font: 1.125rem/1.6 var(--body); font-size-adjust: from-font; }

/* Pages cross-fade into each other where the browser can (a progressive enhancement; others just navigate). */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }

/* Skip link: hidden until a keyboard user tabs to it. */
.skip { position: absolute; left: 12px; top: -100px; z-index: 10; background: var(--blaze); color: var(--spruce); font-weight: 700; padding: 10px 16px; border-radius: 12px; }
.skip:focus-visible { top: 12px; }
main:focus { outline: none; }

a { color: var(--link); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
/* The focus ring follows the ground: yellow on spruce, spruce on the yellow close. */
.hero :focus-visible, .private :focus-visible, .foot :focus-visible { outline-color: var(--blaze); }
.join :focus-visible { outline-color: var(--spruce); }
::selection { background: var(--blaze); color: var(--spruce); }
a { text-underline-offset: 3px; }
.defs { position: absolute; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---- hero: the app's welcome ground (spruce, contour lines). The promise in words, the proof in three real snaps; nothing here is yellow but the stars. ---- */
.hero { background: var(--spruce) url(/contours-spruce.svg) right top / min(1100px, 140%) auto no-repeat; color: #EAF2EC; padding-bottom: 72px; overflow: hidden; }
.hero a { color: #EAF2EC; }
.bar { display: flex; align-items: center; gap: 12px; padding: 20px 0 0; }
.bar img { width: 44px; height: 44px; border-radius: 12px; }
.bar .name { font: 700 1.375rem/1 var(--logo); text-decoration: none; padding: 12px 0; }
.bar nav { margin-left: auto; display: flex; gap: 8px; font-size: 1rem; }
/* 44 px tall targets; the underline sits on the text, not the box. */
.bar nav a, .foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-weight: 700; text-decoration: none; }
/* The yellow underline draws in from the left under the word (not the padding). */
.bar nav a, .foot nav a { background: linear-gradient(var(--blaze), var(--blaze)) left calc(50% + 0.85em) / 0 3px no-repeat; background-origin: content-box; background-clip: content-box; }
.bar nav a:hover, .foot nav a:hover { background-size: 100% 3px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 32px; align-items: center; }
@media (min-width: 48em) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; padding-top: 56px; } }
h1 { font-size: clamp(2.5rem, 1.3rem + 5.2vw, 4.6rem); line-height: 0.98; letter-spacing: -0.035em; max-width: 11em; }
.lead { font-size: clamp(1.1rem, 0.9rem + 1vw, 1.35rem); max-width: 30em; margin: 24px 0 20px; color: #C4D2C9; }
/* The one thing to do: ask to join the beta. Yellow on spruce, like the app's Walk tile. Where the app stands sits under it as a plain line. */
.cta { display: inline-flex; align-items: center; min-height: 52px; padding: 0 24px; border-radius: 999px; background: var(--blaze); color: var(--spruce); font: 800 1.125rem/1 var(--display); letter-spacing: -0.01em; text-decoration: none; }
.cta:hover { background: #FFD666; }
.cta:active { transform: scale(0.97); }
.hero .cta { color: var(--spruce); }
.status { margin: 16px 0 0; font-size: 1rem; color: #9FB3A8; }

/* Three of the maker's own snaps, as the app named them, laid down like prints on a table. Sizes follow the stack's width. */
.hero-art { position: relative; justify-self: center; width: min(340px, 88%); container-type: inline-size; }
@media (min-width: 48em) { .hero-art { width: min(430px, 100%); } }
.snaps { position: relative; aspect-ratio: 1 / 1.25; }
.snap { position: absolute; margin: 0; width: 56%; background: #fff; color: #12302A; padding: 2.6cqw 2.6cqw 3cqw; border-radius: 3.4cqw; box-shadow: 0 0 0 1.5px rgba(10, 22, 18, 0.25), 0 5cqw 9cqw -4cqw rgba(0, 0, 0, 0.6); }
.snap img { display: block; width: 100%; height: auto; border-radius: 1.8cqw; background: #CBD6C8; }
.snap figcaption { display: grid; padding: 2.4cqw 0.6cqw 0; line-height: 1.15; }
.snap b { font: 800 max(14px, 4.6cqw)/1.1 var(--display); letter-spacing: -0.02em; }
.snap i { font-size: max(12px, 3.1cqw); color: #4D655B; }
/* Drawn stars at 3:1 or better on white: filled in deep gold, the empty one a gray outline. */
.snap .stars { display: flex; gap: 0.5cqw; margin-top: 1.2cqw; }
.stars svg { width: max(13px, 4cqw); height: max(13px, 4cqw); fill: #B07E00; }
.stars .off { fill: none; stroke: #7D8F85; stroke-width: 2; stroke-linejoin: round; }
/* The two top prints lie on the groundhog, so only photos are ever covered, never a caption. Walker stands clear of the groundhog's caption. */
.s1 { left: 0; top: 0; z-index: 1; transform: rotate(-5deg); }
.s2 { right: 0; top: 4%; z-index: 1; transform: rotate(4deg); }
.s3 { left: 24%; bottom: 0; width: 62%; transform: rotate(-1.5deg); }
.hero-art .walker { position: absolute; left: -9%; bottom: -3%; width: 26%; z-index: 2; }
/* A print you point at (or tap) is picked up: it comes to the top of the stack, straightens and lifts. */
.snap.up, .snap:hover { z-index: 3; transform: translateY(-2.5%) rotate(0deg) scale(1.05); box-shadow: 0 0 0 1.5px rgba(10, 22, 18, 0.25), 0 7cqw 12cqw -4cqw rgba(0, 0, 0, 0.65); }

/* ---- phones: real screenshots of the app (light or dark, following the page), in a plain spruce frame ---- */
.phone { width: 250px; flex: none; background: #0A1612; border-radius: 40px; padding: 8px; box-shadow: 0 0 0 1.5px var(--hair), 0 18px 40px -18px rgba(18, 48, 42, 0.45); }
.phone img { display: block; width: 100%; height: auto; border-radius: 32px; background: var(--fog-dark); }

/* ---- sections: one idea each, a heading and a sentence before anything else ---- */
section { padding: clamp(56px, 4vw + 40px, 104px) 0; }
h2 { font-size: clamp(2.1rem, 1.2rem + 4vw, 3.6rem); line-height: 1.02; letter-spacing: -0.03em; max-width: 14em; }
.intro { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.3rem); max-width: 32em; color: var(--ink-soft); margin: 14px 0 0; }
strong { color: var(--ink); }

/* ---- how it works: three steps along the trail. A dashed line joins them and each starts at a blaze, as on the app's maps. ---- */
.how { background: var(--contours) right top / min(1100px, 140%) auto no-repeat; }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 56px; }
.steps li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; align-content: start; }
/* Stacked on phones, the trail runs down from blaze to blaze. */
@media (max-width: 44.99em) {
  .steps li { padding-left: 42px; }
  .steps h3 b { position: absolute; left: 0; }
  .steps li:not(:last-child)::before { content: ""; position: absolute; left: 11px; top: 48px; bottom: -48px; width: 4px; background: repeating-linear-gradient(to bottom, var(--ink-soft) 0 10px, transparent 10px 22px); opacity: 0.55; }
}
.steps .phone { width: min(200px, 100%); border-radius: 34px; justify-self: center; margin-top: 24px; }
.steps .phone img { border-radius: 27px; }
.steps h3 { justify-self: stretch; display: flex; align-items: center; gap: 12px; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.2rem); line-height: 1; margin-bottom: 10px; }
/* The step number sits on a blaze: the upright yellow waymark. */
.steps h3 b { display: grid; place-items: center; width: 26px; height: 38px; border-radius: 8px; background: var(--blaze); color: var(--spruce); font-size: 1.1rem; }
.steps p { margin: 0; color: var(--ink-soft); max-width: 26em; }
@media (min-width: 45em) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  /* Side by side, the screenshots line up along the top and the words sit under them. */
  .steps .phone { width: 100%; max-width: 300px; border-radius: 40px; justify-self: start; order: -1; margin: 0 0 28px; }
  .steps .phone img { border-radius: 32px; }
  /* The trail between the steps: a dashed line through the blazes. */
  .steps li:not(:last-child) h3::after { content: ""; flex: 1; height: 4px; margin-right: -20px; background: repeating-linear-gradient(to right, var(--ink-soft) 0 10px, transparent 10px 22px); opacity: 0.55; }
}
@media (min-width: 64em) { .steps { gap: 56px; } .steps li:not(:last-child) h3::after { margin-right: -44px; } }

/* ---- what it knows about where you are: the payoff first, three plain facts, one screenshot ---- */
.around { background: var(--paper); border-block: 1.5px solid var(--hair); }
.around .wrap { display: grid; gap: 44px; }
.around .phone { justify-self: center; width: min(220px, 100%); }
.knows { margin: 32px 0 0; display: grid; }
.knows > div { padding: 16px 0; border-top: 1.5px solid var(--hair); }
.knows dt { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.knows dd { margin: 4px 0 0; color: var(--ink-soft); max-width: 34em; }
.credit { margin: 20px 0 0; font-size: 0.9375rem; color: var(--ink-soft); }
@media (min-width: 53.75em) {
  .around .wrap { grid-template-columns: minmax(0, 1fr) auto; gap: 80px; align-items: center; }
  .around .phone { width: 260px; }
}

/* ---- what stays private ---- */
.private { background: var(--spruce) url(/contours-spruce.svg) left bottom / min(1100px, 140%) auto no-repeat; color: #EAF2EC; }
.private h2 { font-size: clamp(2rem, 1rem + 4vw, 3.2rem); line-height: 1.05; max-width: 11em; margin-bottom: 36px; }
/* "What we see" leads; "and what we don't" steps back. */
.private h2 .quiet { color: #9FB3A8; }
.facts { display: grid; gap: 28px; }
@media (min-width: 53.75em) { .facts { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.facts > div { border-top: 1.5px solid #2B5A4C; padding-top: 18px; }
.facts h3 { font-size: 1.375rem; margin-bottom: 8px; }
.facts p { color: #C4D2C9; margin: 0; max-width: 34em; }
.private a { color: var(--blaze); }

/* ---- the close: Walker and the one ask, on the blaze ---- */
.join { background: var(--blaze); color: var(--spruce); }
.join .wrap { display: flex; align-items: center; gap: clamp(20px, 5vw, 56px); }
.join .walker { width: clamp(96px, 18vw, 190px); flex: none; }
.join h2 { font-size: clamp(2rem, 1rem + 4vw, 3.2rem); line-height: 1.05; }
.join p { margin: 12px 0 24px; max-width: 30em; font-size: clamp(1.05rem, 1rem + 0.4vw, 1.2rem); }
.join .cta { background: var(--spruce); color: #EAF2EC; }
.join .cta:hover { background: #1E4A3E; }
@media (max-width: 30em) { .join .wrap { flex-direction: column; align-items: flex-start; } }

.foot { background: #0A1612; color: #9FB3A8; font-size: 1rem; padding: 20px 0 28px; }
.foot .wrap { display: flex; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 8px; margin-left: -8px; }
.foot a { color: #EAF2EC; }

/* ---- tester guide (/testers/): one column of answers in the home page's look ---- */
.bar nav a[aria-current] { background-size: 100% 3px; }
/* On the narrowest phones the link to the page you are on steps aside so the others fit. */
@media (max-width: 24em) { .bar { gap: 8px; } .bar img { width: 34px; height: 34px; border-radius: 9px; } .bar nav { gap: 0; } .bar nav a { padding: 0 6px; } .bar nav a[aria-current] { display: none; } }
.guide .hero { padding-bottom: 56px; }
.guide .hero-grid { align-items: end; }
.guide-walker { display: none; width: clamp(130px, 14vw, 180px); height: auto; justify-self: end; margin-bottom: -56px; }
@media (min-width: 48em) { .guide-walker { display: block; } }
.guide-body { padding-top: clamp(40px, 5vw, 72px); padding-bottom: clamp(56px, 6vw, 96px); }
.guide-body .faq { padding: 0; }
.faq + .faq, .faq + .contact-card, .contact-card + .faq { margin-top: clamp(40px, 4vw, 56px); }
.faq h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.6rem); line-height: 1.05; margin-bottom: 18px; }
/* Each answer is a flat plate with a hairline; the round + is drawn, and its upright bar turns flat into a − as the answer opens. */
details { background: var(--paper); border: 1.5px solid var(--hair); border-radius: 16px; margin: 0 0 10px; }
details[open] { border-color: var(--ink-soft); }
summary { list-style: none; cursor: pointer; padding: 16px 60px 16px 20px; font: 800 1.15rem/1.3 var(--display); letter-spacing: -0.01em; position: relative; border-radius: 15px; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: linear-gradient(var(--ink), var(--ink)) center / 12px 2.5px no-repeat, var(--fog-dark); }
summary::before { content: ""; position: absolute; z-index: 1; right: 28.75px; top: 50%; width: 2.5px; height: 12px; margin-top: -6px; border-radius: 2px; background: var(--ink); }
details[open] summary::after { background: linear-gradient(var(--spruce), var(--spruce)) center / 12px 2.5px no-repeat, var(--blaze); }
details[open] summary::before { transform: rotate(90deg); background: var(--spruce); }
details p { margin: 0; padding: 0 20px 18px; color: var(--ink-soft); max-width: 40em; }
@media (prefers-reduced-motion: no-preference) {
  :root { interpolate-size: allow-keywords; }
  details::details-content { block-size: 0; overflow: clip; transition: block-size 280ms cubic-bezier(0.16, 1, 0.3, 1), content-visibility 280ms allow-discrete; }
  details[open]::details-content { block-size: auto; }
  summary::before { transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1), background-color 150ms ease-out; }
  summary::after { transition: background-color 150ms ease-out; }
}
/* The ask sits on the blaze, like the home page's close. */
.contact-card { background: var(--blaze); color: var(--spruce); border-radius: 24px; padding: clamp(24px, 4vw, 36px); }
.contact-card h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.6rem); line-height: 1.05; margin-bottom: 12px; }
.contact-card p { margin: 0 0 22px; max-width: 40em; }
.contact-card a:not(.cta) { color: var(--spruce); font-weight: 700; text-decoration-thickness: 2px; }
.contact-card .cta { background: var(--spruce); color: #EAF2EC; }
.contact-card .cta:hover { background: #1E4A3E; }
.contact-card :focus-visible { outline-color: var(--spruce); }

/* Dark mode: the grounds must still read apart. The hero keeps the app's spruce, the steps sit on near-black, the middle band is lifted, privacy is near-black again, and the close stays on the blaze. */
@media (prefers-color-scheme: dark) {
  .phone { box-shadow: 0 0 0 1.5px #35584C, 0 18px 40px -18px rgba(0, 0, 0, 0.7); }
  .private { background-color: #0A1612; border-top: 1.5px solid var(--hair); }
  .foot { background: #060E0B; }
}

/* ---- Walker: a short hello in the hero, then still ---- */
@media (prefers-reduced-motion: no-preference) {
  /* Feedback only: picking up a print, the underline drawing in, the buttons easing and pressing. Nothing animates on load or scroll but Walker's hello. */
  .snap { transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1); }
  .bar nav a, .foot nav a { transition: background-size 200ms cubic-bezier(0.16, 1, 0.3, 1); }
  .cta { transition: background-color 150ms ease-out, transform 120ms ease-out; }
  .hero-art .walker { animation: bob 2.4s ease-in-out 2; }
  @keyframes bob { 50% { transform: translateY(-6px); } }
}
