/* WordHaul — wordhaul.com
   Design system lifted from the app itself:
   cream ground, moss accent, ink text, honey "caught word" highlight.
   Newsreader (display) + Inter (body) + Fredoka (logo only). */

/* ---------- self-hosted fonts ----------
   The same three families we used from Google, now served first-party.
   No visitor request ever leaves for a third party, which is what the
   "no third-party trackers" promise on this very site asks for. These are
   the OFL originals as variable fonts — the opsz axis is intact, so
   Newsreader's optical sizing still works — subset to the glyphs the site
   actually uses (incl. the IPA phonetics in latin-ext). display: swap, as
   before, so text paints immediately in the fallback and upgrades. */

@font-face {
  font-family: "Fredoka";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/fredoka-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/newsreader-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Newsreader";
  font-style: italic;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/newsreader-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --cream: #F5F3EE;
  --cream-raise: #FFFFFF;
  --ink: #1A1916;
  --body: #3E3D38;
  --muted: #6B6A65;
  /* --faint is below 4.5:1 on cream — decorative chrome inside the
     aria-hidden specimen and the role="img" mocks only. Never real copy. */
  --faint: #9A9892;
  --hairline: #E4E3DF;
  --moss: #3A5A40;
  --moss-soft: #EAEFE9;
  --moss-quote: #C9D4C6;
  --honey: #D9A441;
  --honey-soft: rgba(217, 164, 65, 0.32);
  --dark-ground: #161513;
  --dark-card: #211F1C;
  --dark-hairline: #2E2C28;
  --dark-ink: #F0EEE8;
  --dark-muted: #A7A39A;
  --sage: #84A98C;

  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --logo: "Fredoka", var(--sans);

  --w-page: 1080px;
  --radius-card: 22px;
  --radius-chip: 999px;

  /* ---- type scale ----
     In rem, so the site honours the reader's browser font-size setting
     instead of pinning text at a size we chose for them. 1rem = their
     base (16px unless they've changed it), so at the default these
     resolve to exactly the pixel values they replaced.
     Spacing stays in px on purpose: the text should grow, the whitespace
     around it shouldn't balloon to match.
     14 steps, down from 19: the originals included pairs half a pixel
     apart (13/13.5, 15/15.5, 16.5/17, 19/19.5) which carried no
     hierarchy — nobody sees half a pixel — they were just drift from
     tuning each spot by hand. Comments give the px at a 16px base. */
  --text-micro: 0.625rem; /* 10px */
  --text-mini: 0.71875rem; /* 11.5px */
  --text-fine: 0.8125rem; /* 13px */
  --text-meta: 0.875rem; /* 14px */
  --text-ui: 0.9375rem; /* 15px */
  --text-note: 1rem; /* 16px */
  --text-body: 1.0625rem; /* 17px */
  --text-lede: 1.125rem; /* 18px */
  --text-entry: 1.1875rem; /* 19px */
  --text-h5: 1.3125rem; /* 21px */
  --text-h4: 1.375rem; /* 22px */
  --text-h3: 1.5rem; /* 24px */
  --text-word-md: 1.625rem; /* 26px */
  --text-word-lg: 2.125rem; /* 34px */
  --text-h1: clamp(2.75rem, 6.2vw, 4.25rem); /* 44px / 68px */
  --text-h2: clamp(1.875rem, 4vw, 2.625rem); /* 30px / 42px */
  --text-h1-page: clamp(2.25rem, 5vw, 3rem); /* 36px / 48px */

  /* Two curves, because two different jobs.

     --ease-out is for UI the user is waiting on: the menu, a press, the
     header rule. It front-loads the motion, so the interface answers the
     instant you touch it.

     --ease-entrance is for content that simply arrives as you scroll. It
     is deliberately gentle. Front-loading a large surface — a phone
     screenshot, say — makes it snap into place, and any frame dropped
     while the image decodes lands exactly when travel is fastest, which
     reads as a stutter. Nobody is waiting on a section to appear, so it
     has nothing to prove by being quick. */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-entrance: cubic-bezier(0.25, 0.1, 0.25, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--body);
  font-family: var(--sans);
  font-size: var(--text-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--honey-soft); color: var(--ink); }

img { max-width: 100%; height: auto; display: block; }

p { text-wrap: pretty; }

a { color: var(--moss); text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration: underline; text-underline-offset: 3px; }
}
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--w-page);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  /* saturate keeps colour in the material instead of letting it go grey */
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  /* The rule only earns its place once there's content beneath it to
     separate from. Kept at 1px transparent so nothing shifts on scroll. */
  border-bottom: 1px solid transparent;
  transition: border-bottom-color 220ms var(--ease-out);
}

.site-header.scrolled { border-bottom-color: var(--hairline); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .logo-lockup:hover { text-decoration: none; }
}

.logo-lockup img {
  width: 34px;
  height: 34px;
  border-radius: 8.5px;
  box-shadow: 0 1px 3px rgba(26, 25, 22, 0.14);
}

.logo-lockup .name {
  font-family: var(--logo);
  font-weight: 600;
  font-size: var(--text-h5);
  letter-spacing: 0.01em;
  color: var(--moss);
}

/* Menu button — hidden on desktop, where the links speak for themselves.
   44px square to clear the touch-target minimum. */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid var(--hairline);
  border-radius: 11px;
  background: var(--cream-raise);
  cursor: pointer;
  transition: transform 160ms var(--ease-out);
}
.nav-toggle:active { transform: scale(0.97); }
.nav-toggle .bar {
  width: 16px;
  height: 1.5px;
  border-radius: 1px;
  background: var(--ink);
  transition: transform 220ms var(--ease-out), opacity 140ms var(--ease-out);
}

/* bars collapse to the centre line and cross */
.site-header[data-nav-open="true"] .nav-toggle .bar:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.site-header[data-nav-open="true"] .nav-toggle .bar:nth-child(2) { opacity: 0; }
.site-header[data-nav-open="true"] .nav-toggle .bar:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: var(--text-ui);
  font-weight: 500;
}
.site-nav a { color: var(--body); }
@media (hover: hover) and (pointer: fine) {
  .site-nav a:hover { color: var(--moss); }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-chip);
  padding: 8px 16px;
  font-size: var(--text-fine);
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--moss);
  color: #fff;
  white-space: nowrap;
}
.chip .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--honey);
}
@media (hover: hover) and (pointer: fine) {
  a.chip:hover { text-decoration: none; background: #2E4A34; }
}

/* ---------- hero ---------- */

.hero { padding: 84px 0 30px; overflow: hidden; }

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
}

.entry {
  font-family: var(--serif);
  font-size: var(--text-entry);
  color: var(--muted);
  margin-bottom: 26px;
}
.entry .headword { color: var(--ink); font-weight: 600; letter-spacing: 0.01em; }
.entry .phonetic { color: var(--muted); }
.entry .pos { font-style: italic; color: var(--moss); }

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--text-h1);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 24px;
}

h1 em, .accent-serif {
  font-style: italic;
  font-weight: 500;
}

/* the honey highlighter swash — the one flourish */
.hl {
  position: relative;
  white-space: nowrap;
}
.hl svg {
  position: absolute;
  left: -4%;
  bottom: 4%;
  width: 108%;
  height: 62%;
  z-index: -1;
}

.hero .lede {
  font-size: var(--text-entry);
  line-height: 1.7;
  max-width: 34em;
  color: var(--body);
  margin-bottom: 34px;
}

.cta-row {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.cta-note {
  font-size: var(--text-meta);
  color: var(--muted);
}

/* specimen card (the onboarding hero card, rebuilt for the web) */

.specimen-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.specimen {
  background: var(--cream-raise);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow:
    0 2px 6px rgba(26, 25, 22, 0.05),
    0 24px 60px -24px rgba(26, 25, 22, 0.22);
  padding: 30px 32px 26px;
  max-width: 380px;
  width: 100%;
  transform: rotate(1.6deg);
}

.specimen .word-line {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.specimen .word {
  font-family: var(--serif);
  font-size: var(--text-word-lg);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.specimen .pos {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--text-body);
  color: var(--moss);
}
.specimen .phon {
  font-size: var(--text-meta);
  color: var(--faint);
}
.specimen .def {
  font-size: var(--text-body);
  color: var(--body);
  margin-bottom: 14px;
}
.specimen .example {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--text-body);
  color: var(--muted);
  border-left: 3px solid var(--moss-quote);
  padding-left: 14px;
  margin-bottom: 18px;
}
.specimen .source {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-fine);
  color: var(--faint);
}
.specimen .source svg { flex-shrink: 0; }

@media (prefers-reduced-motion: no-preference) {
  .specimen { animation: drift 7s ease-in-out infinite alternate; will-change: transform; }
  @keyframes drift {
    from { transform: rotate(1.6deg) translateY(0); }
    to   { transform: rotate(1.2deg) translateY(-10px); }
  }
}

/* ---------- shared section scaffolding ---------- */

section { padding: 88px 0; }

.eyebrow {
  font-size: var(--text-fine);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 14px;
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: var(--text-h2);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
  margin-bottom: 18px;
}

.section-lede {
  font-size: var(--text-lede);
  max-width: 36em;
  color: var(--body);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}

/* iPhone frame */
.phone {
  background: #101010;
  border-radius: 52px;
  padding: 12px;
  box-shadow:
    0 2px 6px rgba(26, 25, 22, 0.12),
    0 40px 80px -30px rgba(26, 25, 22, 0.35);
  max-width: 320px;
  margin: 0 auto;
}
.phone img { border-radius: 40px; }

/* steps (a real sequence — capture flow) */
.steps {
  counter-reset: step;
  display: grid;
  gap: 22px;
  margin-top: 34px;
}
.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.step .num {
  counter-increment: step;
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--moss-soft);
  color: var(--moss);
  font-weight: 700;
  font-size: var(--text-ui);
  display: grid;
  place-items: center;
}
.step .num::before { content: counter(step); }
.step h3 {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.step p { font-size: var(--text-note); color: var(--muted); }

/* feature list rows */
.feature-list {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}
.feature-list li {
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: var(--text-body);
}
.feature-list .tick {
  flex-shrink: 0;
  margin-top: 5px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--moss);
  display: grid;
  place-items: center;
}
.feature-list .tick svg { width: 10px; height: 10px; }
.feature-list strong { color: var(--ink); font-weight: 600; }

.mw-line {
  margin-top: 26px;
  font-size: var(--text-meta);
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
  max-width: 34em;
}

/* ---------- dark band: make it stick ---------- */

.dark-band {
  background: var(--dark-ground);
  color: var(--dark-muted);
}
.dark-band .eyebrow { color: var(--sage); }
.dark-band h2 { color: var(--dark-ink); }
.dark-band .section-lede { color: var(--dark-muted); }
.dark-band .step h3 { color: var(--dark-ink); }
.dark-band .step p { color: var(--dark-muted); }
.dark-band .step .num { background: #24322A; color: var(--sage); }

/* crafted quiz mock */
.quiz-mock {
  background: var(--dark-card);
  border: 1px solid var(--dark-hairline);
  border-radius: var(--radius-card);
  padding: 26px;
  max-width: 380px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.quiz-mock .q-word {
  font-family: var(--serif);
  font-size: var(--text-word-md);
  font-weight: 600;
  color: var(--dark-ink);
  display: flex;
  align-items: center;
  gap: 10px;
}
.quiz-mock .q-check {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--moss);
  display: inline-grid;
  place-items: center;
}
.quiz-mock .q-sub {
  font-size: var(--text-meta);
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 6px;
}
.quiz-mock .opt {
  border-radius: 14px;
  padding: 13px 16px;
  font-size: var(--text-ui);
  border: 1px solid var(--dark-hairline);
  color: #6E6A63;
}
.quiz-mock .opt.correct {
  background: var(--moss);
  border-color: var(--moss);
  color: #fff;
  font-weight: 500;
}
.quiz-mock .stick-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: var(--text-fine);
  color: var(--dark-muted);
}
.quiz-mock .bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #2E3B32;
  overflow: hidden;
}
.quiz-mock .bar i {
  display: block;
  height: 100%;
  width: 45%;
  border-radius: 3px;
  background: var(--sage);
}
.quiz-mock .delta { color: var(--sage); font-weight: 700; }

/* ---------- widget + reminder row ---------- */

.everywhere-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  margin-top: 44px;
  align-items: stretch;
}

.widget-mock {
  background: var(--cream-raise);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  box-shadow: 0 18px 44px -22px rgba(26, 25, 22, 0.25);
  padding: 24px;
  aspect-ratio: 1;
  max-width: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.widget-mock .tag {
  font-size: var(--text-micro);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--faint);
}
.widget-mock .w-word {
  font-family: var(--serif);
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.1;
}
.widget-mock .w-pos {
  font-family: var(--serif);
  font-style: italic;
  font-size: var(--text-fine);
  color: var(--moss);
}
.widget-mock .w-def {
  font-size: var(--text-fine);
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.notif-mock {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 14px 34px -18px rgba(26, 25, 22, 0.28);
  max-width: 360px;
  font-size: var(--text-meta);
}
.notif-mock .n-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.notif-mock .n-head img {
  width: 20px; height: 20px; border-radius: 5px;
}
.notif-mock .n-app {
  font-size: var(--text-mini);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--faint);
}
.notif-mock .n-title { font-weight: 600; color: var(--ink); }
.notif-mock .n-body { color: var(--muted); }
.notif-mock .n-body em { font-family: var(--serif); }

.mini-card {
  background: var(--cream-raise);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}
.mini-card h3 {
  font-family: var(--serif);
  font-size: var(--text-h4);
  font-weight: 600;
  color: var(--ink);
}
.mini-card > p { font-size: var(--text-ui); color: var(--muted); }

/* ---------- privacy strip ---------- */

.privacy-strip { border-top: 1px solid var(--hairline); }

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.privacy-grid article h3 {
  font-family: var(--serif);
  font-size: var(--text-h5);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.privacy-grid article p { font-size: var(--text-ui); color: var(--muted); }

.privacy-link { margin-top: 34px; font-size: var(--text-ui); }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 46px 0 60px;
  font-size: var(--text-meta);
  color: var(--muted);
}
.site-footer .wrap {
  display: grid;
  gap: 20px;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 22px; }
.footer-fine {
  font-size: var(--text-fine);
  color: var(--muted);
  letter-spacing: 0.01em;
  max-width: 46em;
}

/* ---------- inner pages (privacy / support) ---------- */

.page-main { padding: 72px 0 96px; }
.page-main .wrap { max-width: 720px; }

.page-main h1 {
  font-size: var(--text-h1-page);
  margin-bottom: 10px;
}
.page-date {
  font-size: var(--text-meta);
  color: var(--muted);
  margin-bottom: 40px;
}
.page-main h2 {
  font-size: var(--text-h3);
  margin: 40px 0 12px;
}
.page-main p, .page-main li {
  font-size: var(--text-body);
  color: var(--body);
  margin-bottom: 16px;
}
.page-main ul { padding-left: 22px; }
.page-main .back { font-size: var(--text-ui); display: inline-block; margin-bottom: 28px; }

/* ---------- reveal on scroll ---------- */

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease-entrance), transform 700ms var(--ease-entrance);
}

/* Cascade: rows inside a revealed block arrive one after another rather
   than as a single slab. The block's heading lands first, then the list
   walks in under it. Delays stay short — long ones read as waiting. */
.stagger > * { opacity: 0; transform: translateY(8px); }
.reveal.in .stagger > *,
.reveal.in.stagger > * {
  opacity: 1;
  transform: none;
  transition: opacity 560ms var(--ease-entrance), transform 560ms var(--ease-entrance);
}
.reveal.in .stagger > *:nth-child(1), .reveal.in.stagger > *:nth-child(1) { transition-delay: 60ms; }
.reveal.in .stagger > *:nth-child(2), .reveal.in.stagger > *:nth-child(2) { transition-delay: 120ms; }
.reveal.in .stagger > *:nth-child(3), .reveal.in.stagger > *:nth-child(3) { transition-delay: 180ms; }
.reveal.in .stagger > *:nth-child(4), .reveal.in.stagger > *:nth-child(4) { transition-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .stagger > * { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  /* The menu still fades — reduced motion means no travel, not no feedback. */
  .site-nav { transform: none !important; }
  .nav-toggle .bar { transition: opacity 140ms var(--ease-out); }
}

/* ---------- other display preferences ---------- */

/* Translucency off: the header becomes a solid surface rather than
   a blurred one. Same hierarchy, no material. */
@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--cream);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .notif-mock { background: var(--cream-raise); }
}

/* Contrast boost: deepen the secondary ramp and firm up hairlines. */
@media (prefers-contrast: more) {
  :root {
    --muted: #4A4945;
    --faint: #5C5B56;
    --hairline: #C9C7C2;
    --dark-muted: #C6C2B8;
  }
  .site-header {
    background: var(--cream);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .specimen { transform: rotate(0.8deg); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  /* text always leads on small screens — avoids two phones stacking back-to-back */
  .split.flip .media { order: 2; }
  .everywhere-grid { grid-template-columns: 1fr; }
  .privacy-grid { grid-template-columns: 1fr; gap: 22px; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 8px; }

  /* The links become a panel under the header rather than vanishing.
     visibility (not display) keeps it out of the tab order when closed
     and still lets the entrance transition run. */
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 28px 20px;
    background: var(--cream);
    border-bottom: 1px solid var(--hairline);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out), visibility 0s 180ms;
  }
  .site-header[data-nav-open="true"] .site-nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
  }
  .site-nav .nav-link {
    padding: 14px 0;
    font-size: var(--text-body);
    border-bottom: 1px solid var(--hairline);
  }
  .site-nav .chip { align-self: flex-start; margin-top: 18px; }

  /* phones become modest illustrations, not full-screen monoliths */
  .phone {
    max-width: min(280px, 58vw);
    border-radius: 42px;
    padding: 9px;
  }
  .phone img { border-radius: 34px; }
}

/* The chip used to be hidden below 600px, back when it sat in the header
   bar and had nowhere to go. It now lives inside the menu panel. */
