/* Gander landing page. Tokens first; the 8px grid carries every spacing value. */
:root {
  --forest: #2F5D3A;
  --forest-deep: #264C30;
  --sage: #9CAF88;
  --ivory: #F6F3EA;
  --paper: #FBF9F3;
  --ivory-deep: #ECE7DA;
  --charcoal: #2B2B2B;
  --ink-soft: #4B4F48;        /* secondary text on ivory, 7.9:1 */
  --on-forest-soft: #D9DECF;  /* secondary text on forest, 6.0:1 */
  --line: rgba(43, 43, 43, .22);
  --line-light: rgba(246, 243, 234, .28);

  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --r-sm: 6px; --r-md: 12px; --r-lg: 20px;
  --shadow: 0 2px 16px rgba(0, 0, 0, .07);
  --screen: #fff;
  --nav-bg: rgba(246, 243, 234, .94);
  --ghost-hover: rgba(47, 93, 58, .08);
  --gutter: clamp(20px, 5vw, 48px);
  --max: 1160px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--forest) var(--ivory-deep); }
body { margin: 0; background: var(--ivory); color: var(--charcoal); font: 400 1.0625rem/1.6 var(--sans); caret-color: var(--forest); accent-color: var(--forest); -webkit-font-smoothing: antialiased; }
::selection { background: var(--forest); color: var(--ivory); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--sage); }
.skip { position: absolute; left: 16px; top: -64px; background: var(--forest); color: var(--ivory); padding: 8px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.025em; line-height: 1.06; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6.4vw, 5.25rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); color: var(--ink-soft); max-width: 36em; }
.on-dark .lede { color: var(--on-forest-soft); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--r-sm); font: 600 1rem/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease); cursor: pointer; }
.btn-primary { background: var(--forest); color: var(--ivory); }
.btn-primary:hover { background: var(--forest-deep); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-ghost:hover { background: var(--ghost-hover); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.on-dark .btn-primary { background: var(--ivory); color: var(--forest-deep); }
.on-dark .btn-primary:hover { background: #fff; }
.on-dark .btn-ghost { border-color: var(--ivory); color: var(--ivory); }
.on-dark .btn-ghost:hover { background: rgba(246, 243, 234, .1); }

/* Navigation: transparent over the hero, ivory once the page moves */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .25s var(--ease), box-shadow .25s var(--ease); }
.nav.scrolled { background: var(--nav-bg); box-shadow: 0 1px 0 var(--line); backdrop-filter: saturate(1.2) blur(8px); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest); font-weight: 700; font-size: 1.375rem; letter-spacing: -.02em; }
.brand svg { width: 32px; height: 32px; }
.nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav ul a { text-decoration: none; font-size: .9375rem; font-weight: 500; padding: 8px 0; background: linear-gradient(var(--forest), var(--forest)) 0 100% / 0 1.5px no-repeat; transition: background-size .25s var(--ease); }
.nav ul a:hover { background-size: 100% 1.5px; }
@media (max-width: 820px) { .nav ul { display: none; } }

/* Hero */
.hero { padding: 144px 0 96px; min-height: min(90vh, 880px); display: flex; align-items: center; }
.hero .wrap { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .hero .wrap { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }
.fine { font-size: .9375rem; color: var(--ink-soft); }

/* Plates: the framed, captioned figure each scene sits in */
.plate { margin: 0; }
.plate-frame { background: var(--paper); border: 1.5px solid var(--forest); border-radius: var(--r-md); padding: 16px; box-shadow: var(--shadow); position: relative; }
.plate-frame::after { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line); border-radius: 7px; pointer-events: none; }
.plate figcaption { margin-top: 16px; font: italic 400 1rem/1.5 var(--serif); color: var(--ink-soft); display: flex; gap: 12px; align-items: baseline; min-height: 3em; }
.plate figcaption b { font-style: normal; font-weight: 700; font-family: var(--sans); font-size: .8125rem; letter-spacing: .02em; color: var(--forest); white-space: nowrap; }
.on-dark .plate figcaption { color: var(--on-forest-soft); }
.on-dark .plate figcaption b { color: var(--sage); }
.status { transition: opacity .25s var(--ease); }

/* The scene (SVG), shared by both loops */
.scene { width: 100%; height: auto; overflow: visible; }
.scene .ink { stroke: var(--charcoal); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.scene .screen { fill: var(--screen); stroke: var(--charcoal); stroke-width: 2.5; }
.scene .bar { fill: var(--ivory-deep); }
.scene .dot { fill: var(--sage); }
.scene .txt { fill: var(--ivory-deep); }
.scene .field { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; }
.scene .typed { font: 600 15px var(--sans); fill: var(--charcoal); }
.scene .caret { fill: var(--forest); animation: blink 1s steps(1) infinite; }
.scene .focus { fill: none; stroke: var(--forest); stroke-width: 4; transition: transform .45s var(--ease); }
.scene .head { fill: var(--paper); }
.scene .body-arc { stroke: var(--charcoal); }
.scene .nose { fill: var(--charcoal); stroke: none; }
.scene .headg { transition: transform .5s var(--ease); }
.scene .ptr { transition: transform .9s cubic-bezier(.45, 0, .25, 1); fill: var(--charcoal); stroke: var(--paper); stroke-width: 1.5; stroke-linejoin: round; }
.scene .ptr.snap { transition: none; }
.scene .ripple { fill: none; stroke: var(--forest); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.scene .ripple.go { animation: ripple .6s var(--ease); }
.scene .gaze { stroke: var(--forest); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; opacity: 0; transition: opacity .3s var(--ease); fill: none; }
.scene .gaze.on { opacity: 1; }
.scene .dwell { fill: none; stroke: var(--forest); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 88; stroke-dashoffset: 88; opacity: 0; transform-box: fill-box; transform-origin: center; transform: rotate(-90deg); }
.scene .dwell.go { opacity: 1; animation: dwell .55s linear forwards; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes ripple { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(2.4); } }
@keyframes dwell { from { stroke-dashoffset: 88; } to { stroke-dashoffset: 0; } }

/* Sections */
section { position: relative; }
.pad { padding: 120px 0; }
.on-dark { color: var(--ivory); }
.forest { background: var(--forest); }
.charcoal { background: var(--charcoal); }
.split { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1000px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; } .split.flip > :first-child { order: 2; } }
.stack { display: grid; gap: 24px; justify-items: start; }

.strip { background: var(--ivory-deep); border-block: 1px solid var(--line); }
.strip ul { display: flex; flex-wrap: wrap; gap: 8px 40px; justify-content: center; list-style: none; margin: 0; padding: 24px var(--gutter); font-weight: 600; font-size: .9375rem; color: var(--ink-soft); }

/* Solution */
.truths { display: grid; gap: 0; margin: 16px 0 0; padding: 0; list-style: none; width: 100%; }
.truths li { padding: 20px 0; border-top: 1px solid var(--line-light); font-size: 1.1875rem; font-weight: 600; letter-spacing: -.01em; }
.truths li:last-child { border-bottom: 1px solid var(--line-light); }
.engrave { width: min(100%, 440px); justify-self: center; opacity: .95; }

/* How it works */
.steps { display: grid; gap: 0; margin: 64px 0 0; padding: 0; list-style: none; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { padding: 32px 32px 32px 0; border-top: 1.5px solid var(--forest); display: grid; gap: 16px; align-content: start; }
@media (min-width: 900px) { .steps li + li { padding-left: 32px; border-left: 1px solid var(--line); } }
.steps .ico { width: 56px; height: 56px; color: var(--forest); }
.steps .n { font: italic 400 1rem/1 var(--serif); color: var(--ink-soft); }
.steps p { color: var(--ink-soft); max-width: 28em; }

/* Features: field notes, not a card grid */
.notes { display: grid; gap: 0 64px; margin: 64px 0 0; padding: 0; list-style: none; }
@media (min-width: 820px) { .notes { grid-template-columns: 1fr 1fr; } }
.notes li { display: grid; grid-template-columns: 40px 1fr; gap: 8px 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.notes svg { width: 40px; height: 40px; color: var(--forest); grid-row: span 2; }
.notes p { color: var(--ink-soft); }

/* Privacy */
.proof { display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
.proof li { display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: start; color: var(--on-forest-soft); }
.proof svg { width: 24px; height: 24px; color: var(--sage); margin-top: 2px; }
.lock { width: min(100%, 320px); justify-self: center; color: var(--sage); }

/* Download */
.dl { display: grid; gap: 24px; margin-top: 64px; }
@media (min-width: 820px) { .dl { grid-template-columns: 1fr 1fr; } }
.dl article { background: var(--paper); border: 1.5px solid var(--forest); border-radius: var(--r-lg); padding: 40px; display: grid; gap: 16px; align-content: start; box-shadow: var(--shadow); }
.dl .ver { font: italic 400 1rem/1.4 var(--serif); color: var(--ink-soft); }
.dl ol { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: .9375rem; display: grid; gap: 4px; }
.dl .btn { justify-self: start; margin-top: 8px; }
.center { text-align: center; justify-items: center; }

/* Footer */
footer { background: var(--charcoal); color: var(--ivory); padding: 72px 0 48px; }
footer .top { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: flex-start; }
footer .brand { color: var(--ivory); }
footer .tag { color: #CFCFC7; margin-top: 12px; }
footer ul { display: flex; flex-wrap: wrap; gap: 8px 32px; list-style: none; margin: 0; padding: 0; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
.soon { opacity: .55; pointer-events: none; }
footer .copy { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: .875rem; color: #CFCFC7; }

/* Motion: one quiet fade-up, nothing hidden unless script runs */
.js .rise { opacity: 0; transform: translateY(12px); transition: opacity .4s ease-out, transform .4s ease-out; }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise { opacity: 1; transform: none; transition: none; }
  .scene *, .btn { transition: none !important; animation: none !important; }
}
@media (max-width: 600px) { .pad { padding: 80px 0; } .hero { padding-top: 112px; } .dl article { padding: 24px; } }

/* Legal pages (privacy.html, terms.html) */
.legal { padding: 136px 0 96px; }
.legal article { max-width: 70ch; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin-bottom: 24px; }
.legal h2 { font-size: 1.375rem; margin: 48px 0 12px; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { padding-left: 1.25em; }
.legal li { margin: 6px 0; }
.legal a { color: var(--forest); text-underline-offset: 3px; }
.legal code { font-size: .9em; background: var(--ivory-deep); padding: 1px 6px; border-radius: var(--r-sm); overflow-wrap: anywhere; }
.legal .draft { font-family: var(--serif); font-style: italic; color: var(--ink-soft); border-left: 3px solid var(--sage); padding-left: 16px; }
.legal .meta { margin: 4px 0; }
.legal .draft { margin: 16px 0 28px; }

/* Dark mode: follows the device or browser setting. Tokens swap on the page; .on-dark sections keep the original light-on-dark palette */
@media (prefers-color-scheme: dark) {
  :root {
    --forest: #86B393; --forest-deep: #9CC4A8;
    --ivory: #161A17; --paper: #1E231F; --ivory-deep: #262C27;
    --charcoal: #ECE8DC; --ink-soft: #B5BBAE;
    --line: rgba(236, 232, 220, .22);
    --shadow: 0 2px 16px rgba(0, 0, 0, .45);
    --screen: #202622; --nav-bg: rgba(22, 26, 23, .94); --ghost-hover: rgba(134, 179, 147, .14);
  }
  .charcoal, footer { background: #101311; }
  .nav .brand svg path:first-child { fill: var(--forest); }
}
.on-dark {
  --forest: #2F5D3A; --forest-deep: #264C30;
  --ivory: #F6F3EA; --paper: #FBF9F3; --ivory-deep: #ECE7DA;
  --charcoal: #2B2B2B; --ink-soft: #4B4F48;
  --line: rgba(43, 43, 43, .22);
  --shadow: 0 2px 16px rgba(0, 0, 0, .07);
  --screen: #fff; --ghost-hover: rgba(47, 93, 58, .08);
}
.scene text:not(.typed) { fill: var(--ink-soft); }
