/* Trinket landing page.
   Layout idea: one lamp-lit night. The only warm light source is the hero
   (painted raccoon by the lamp + a live phone); everything else sits in
   espresso shade in a 1180px column, with sections alternating between the
   night ground and a slightly raised band. Palette mirrors theme/tokens.ts. */

:root {
  /* color: Lamplight tokens from theme/tokens.ts (night), plus the mockups' paper */
  --night: #140f0a;
  --band: #1a140e;
  --surface: #261e16;
  --surface-2: #30261c;
  --sheet: #1f1812;
  --line: rgba(242, 230, 204, 0.09);
  --line-strong: rgba(242, 230, 204, 0.16);
  --cream: #f2e6cc;
  --muted: #a89a82;
  --faint: #7a6e5f;
  --terracotta: #d67a56;
  --terracotta-hi: #e08a66;
  --on-accent: #1a140e;
  --amber: #f2c988;
  --amber-deep: #e8b05c;
  --alive: #9bae86;
  --paper: #f4e9d7;
  --ink: #4a3f30;
  --ink-soft: #7a6b55;
  --glow: rgba(242, 201, 136, 0.16);

  /* type: Fraunces for display and the user's own words, Instrument Sans for everything the app says */
  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Georgia, serif;
  --font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;

  /* layout */
  --col: 1180px;
  --gutter-l: max(20px, env(safe-area-inset-left, 0px));
  --gutter-r: max(20px, env(safe-area-inset-right, 0px));
  --sec: clamp(72px, 10vw, 152px);
  --radius: 22px;

  color-scheme: dark;
}

/* ---------- fonts (self-hosted: no third-party requests from the page) ---------- */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('assets/fonts/fraunces-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 300 600; font-display: swap;
  src: url('assets/fonts/fraunces-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: 'Fraunces'; font-style: italic; font-weight: 300 600; font-display: swap;
  src: url('assets/fonts/fraunces-italic-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-weight: 300 600; font-display: swap;
  src: url('assets/fonts/fraunces-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; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-stretch: 100%; font-display: swap;
  src: url('assets/fonts/instrument-sans-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-stretch: 100%; font-display: swap;
  src: url('assets/fonts/instrument-sans-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; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.no-waitlist [data-waitlist] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--cream);
  font: 400 1.0625rem/1.62 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before { /* paints the band above a sticky header on notched phones */
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--night);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--amber); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
em { font-style: italic; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.wrap {
  width: 100%;
  max-width: calc(var(--col) + 40px);
  margin-inline: auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cream); color: var(--on-accent); padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* type roles */
.display {
  font-family: var(--font-display);
  font-weight: 340;
  font-size: clamp(2.7rem, 1.6rem + 3.9vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
:lang(pl) .display { font-size: clamp(2.5rem, 1.5rem + 3.1vw, 4.1rem); }
.display em, .h2 em { color: var(--amber); font-weight: 330; }
.h2 {
  font-family: var(--font-display);
  font-weight: 360;
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: 1.4rem;
  line-height: 1.22;
  letter-spacing: -0.005em;
}
.lead { font-size: 1.125rem; line-height: 1.65; color: color-mix(in srgb, var(--cream) 82%, var(--muted)); max-width: 36em; }
.label { font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.label--accent { color: var(--amber-deep); }
.muted { color: var(--muted); }
.serif { font-family: var(--font-display); }
.cite { font-size: 0.8125rem; line-height: 1.55; color: var(--muted); }
.cite__label { display: block; margin-bottom: 4px; color: var(--amber-deep); font-size: 0.75rem; font-weight: 500; }
.cite a { color: var(--cream); }
.fine { color: var(--muted); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--terracotta); color: var(--on-accent);
  font: 600 0.9375rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: var(--terracotta-hi); color: var(--on-accent); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn--small { min-height: 38px; padding: 0 16px; font-size: 0.8125rem; }

/* ---------- header ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--night) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.top__inner { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { flex: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand img { width: 34px; height: 34px; }
.brand span { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; letter-spacing: -0.01em; }
.top__nav { display: flex; gap: 6px; margin-left: auto; font-size: 0.875rem; }
.top__nav a { position: relative; padding: 8px 10px; border-radius: 999px; text-decoration: none; white-space: nowrap; color: color-mix(in srgb, var(--cream) 78%, var(--muted)); transition: color .2s, background-color .2s; }
.top__nav a:hover { color: var(--amber); }
.top__nav a[aria-current="true"] { color: var(--cream); background: var(--surface-2); }
section[id], #research { scroll-margin-top: 84px; }
.top__end { display: flex; align-items: center; gap: 10px; flex: none; }
.menu-btn { display: none; align-items: center; gap: 9px; height: 38px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--cream); font: 500 .875rem var(--font-body); cursor: pointer; }
.menu-btn__bars { display: grid; gap: 4px; width: 15px; }
.menu-btn__bars i { display: block; height: 1.5px; border-radius: 1px; background: currentColor; transition: transform .25s ease; }
.top.is-open .menu-btn__bars i:first-child { transform: translateY(2.75px) rotate(45deg); }
.top.is-open .menu-btn__bars i:last-child { transform: translateY(-2.75px) rotate(-45deg); }
.tools-nav { display: none; justify-content: flex-end; gap: 8px; margin: -28px 0 18px; }
.round-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--cream); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, opacity .2s; }
.round-arrow:hover:not(:disabled) { background: var(--surface-2); }
.round-arrow:disabled { opacity: .35; cursor: default; }
.round-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lang { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang__btn {
  border: 0; background: transparent; cursor: pointer;
  font: 600 0.75rem/1 var(--font-body); letter-spacing: 0.04em;
  padding: 7px 9px; border-radius: 999px; color: var(--muted);
}
.lang__btn[aria-pressed="true"] { background: var(--surface-2); color: var(--cream); }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(48px, 7vw, 96px) clamp(80px, 9vw, 128px); overflow: clip; }
.hero::before { /* the lamp */
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 900px; height: 900px; right: -180px; top: -260px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__copy { display: grid; gap: 26px; min-width: 0; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero__copy .lead { max-width: 30em; }

.signup { display: grid; gap: 10px; max-width: 520px; }
.signup__row {
  display: flex; gap: 6px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  transition: border-color .2s;
}
.signup__row:focus-within { border-color: color-mix(in srgb, var(--amber) 55%, var(--line)); }
.signup input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--cream);
  font: 400 1rem var(--font-body); padding: 0 16px; outline: none;
}
.signup input::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
.signup__note { font-size: 0.8125rem; color: var(--muted); padding-left: 18px; }
.signup__msg { font-size: 0.875rem; color: var(--amber); padding-left: 18px; min-height: 0; }
.signup__msg:empty { display: none; }

/* photo on the left, words on the right: the person in the photo faces the headline */
.hero__inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.hero__visual { grid-column: 1; grid-row: 1; position: relative; min-width: 0; margin: 0 6% 9% 0; animation: rise 1.1s .12s cubic-bezier(.2,.7,.2,1) both; }
.hero__copy { grid-column: 2; grid-row: 1; }
.hero .display { font-size: clamp(2.7rem, 1.5rem + 3vw, 4.1rem); }
:lang(pl) .hero .display { font-size: clamp(2.5rem, 1.4rem + 2.5vw, 3.5rem); }

.desk { position: relative; margin: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 50px 100px -40px rgba(0,0,0,.85), 0 0 0 1px rgba(242,201,136,.1); }
.desk img { width: 100%; height: auto; }
.desk__ring { /* around the real phone on the desk (53.4%, 49.7% of the photo) */
  position: absolute; left: 53.4%; top: 49.7%; width: 7.5%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 1.5px solid rgba(242,201,136,.9); box-shadow: 0 0 0 4px rgba(242,201,136,.12), 0 0 24px rgba(242,201,136,.35);
  animation: ring-breathe 4s ease-in-out infinite;
}
@keyframes ring-breathe { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .85; } 50% { transform: translate(-50%, -50%) scale(1.12); opacity: 1; } }
.desk__link { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.desk__link path { fill: none; stroke: rgba(242,201,136,.75); stroke-width: 1.5; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
.phone.phone--float { --pw: clamp(140px, 12.2vw, 196px); position: absolute; z-index: 3; right: -15%; bottom: -14%; }
.den__raccoon--cycle { aspect-ratio: 1; }
.den__raccoon--cycle img, [data-hangouts] img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; }
[data-hangouts] img.is-on { opacity: 1; }

.makers { display: flex; align-items: center; gap: 12px; font-size: 0.9375rem; color: var(--muted); }
.faces { display: inline-flex; flex: none; }
.face {
  display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
  font: italic 400 1rem/1 var(--font-display); color: var(--on-accent);
  background-size: cover; background-position: center; border: 2px solid var(--night);
}
.faces .face + .face { margin-left: -10px; }
.face--m { background-color: var(--amber); background-image: radial-gradient(circle at 30% 25%, #f8dcaa, #e8b05c 70%); }
.face--j { background-color: var(--terracotta); background-image: radial-gradient(circle at 30% 25%, #ec9f7f, #c86a48 70%); }
.face.has-photo { color: transparent; }
.face--lg { width: 128px; height: 128px; font-size: 2.8rem; border: 0; box-shadow: 0 0 0 1px rgba(242,201,136,.18), 0 18px 40px -18px rgba(0,0,0,.7); }

/* ---------- sections ---------- */
section { position: relative; }
.band { background: var(--band); border-block: 1px solid color-mix(in srgb, var(--line) 55%, transparent); }
.problem, .idea, .mech, .promises, .week, .proof, .faq, .cta { padding-block: var(--sec); }
.sec-head { display: grid; gap: 18px; max-width: 780px; margin-bottom: clamp(44px, 6vw, 72px); }
.sec-head--split { max-width: none; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: end; gap: 24px 64px; }
.sec-head--split > div { display: grid; gap: 18px; }

/* problem */
.moments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.moment {
  display: grid; align-content: start; gap: 10px;
  padding: 26px 26px 28px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 70%, transparent), transparent);
}
.moment__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 8px; border-radius: 16px; background: color-mix(in srgb, var(--amber) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--amber) 22%, transparent); }
.moment__icon svg { width: 32px; height: 32px; fill: none; stroke: var(--cream); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.moment__icon .ic-fill { fill: color-mix(in srgb, var(--amber) 22%, transparent); stroke: none; }
.moment__icon .ic-accent { stroke: var(--terracotta); stroke-width: 2.2; }
.moment .h3 { font-size: 1.3rem; }
.moment p:last-child { color: color-mix(in srgb, var(--cream) 72%, var(--muted)); font-size: 0.9688rem; }
/* closing statement: centered, no rule; the raccoon below is the "someone beside you" */
.statement { margin: clamp(64px, 8vw, 104px) auto 0; max-width: 860px; display: grid; justify-items: center; gap: 22px; text-align: center; }
.statement blockquote { margin: 0; display: grid; gap: 10px; }
.statement__lead { font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); color: var(--muted); }
.statement__main { font-family: var(--font-display); font-weight: 340; font-size: clamp(1.8rem, 1.2rem + 2.4vw, 3rem); line-height: 1.12; letter-spacing: -0.015em; color: var(--cream); text-wrap: balance; }
.statement__main em { color: var(--amber); }
.statement__raccoon { position: relative; width: 112px; aspect-ratio: 1; display: grid; place-items: end center; }
.statement__raccoon .idle-raccoon { position: relative; width: 100%; }
.statement__raccoon .rug { bottom: 2%; }

/* idea */
.idea::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 80% 40%, rgba(242,201,136,.06), transparent 70%);
}
.idea__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.idea__copy { display: grid; gap: 20px; }
.note-card {
  position: relative; background: var(--paper); color: var(--ink);
  border-radius: 6px; padding: 30px 30px 26px; display: grid; gap: 16px;
  transform: rotate(-1.2deg); box-shadow: 0 30px 60px -25px rgba(0,0,0,.65);
  font-size: 0.9688rem; line-height: 1.6;
}
.note-card::before { /* tape */
  content: ""; position: absolute; top: -12px; left: 50%; width: 92px; height: 24px; transform: translateX(-50%) rotate(2deg);
  background: color-mix(in srgb, var(--amber) 55%, transparent); opacity: .75; border-radius: 2px;
}
.note-card .cite { color: var(--ink-soft); padding-top: 14px; border-top: 1px dashed color-mix(in srgb, var(--ink) 22%, transparent); }
.note-card .cite a { color: var(--ink); }

/* small tiles beside the text: at this size the AI-generated loops read as calm, not jittery */
.hangouts {
  position: relative; margin-top: clamp(64px, 8vw, 104px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto 1fr; gap: 14px 64px; align-items: start;
}
.hangouts__head { grid-column: 1; grid-row: 1; display: grid; gap: 14px; }
.hangouts__title { font-size: clamp(1.45rem, 1.1rem + 1vw, 1.9rem); font-weight: 380; }
.hangouts__head p { max-width: 34em; }
.hangouts__row { grid-column: 2; grid-row: 1 / span 2; display: grid; grid-template-columns: repeat(3, 112px); gap: 16px 14px; }
.hang { display: grid; gap: 6px; justify-items: center; }
.hang__stage {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(120% 70% at 85% 0%, rgba(242,201,136,.2), transparent 60%),
    linear-gradient(180deg, #2c2119 0%, #1f1711 64%, #1c150f 64.2%, #110c08 100%);
  border: 1px solid var(--line);
}
.hang__stage::before { /* the rug */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 7%; height: 15%;
  border-radius: 50%; background: radial-gradient(closest-side, #7a3e2a, #61301f 80%, transparent 82%); opacity: .9;
}
.hang__stage img { position: absolute; left: 50%; bottom: 6%; width: 88%; max-width: none; transform: translateX(-50%); }
.hang p { font-family: var(--font-display); font-size: .9375rem; color: color-mix(in srgb, var(--cream) 82%, var(--muted)); }
.hangouts__caption { grid-column: 1; grid-row: 2; max-width: 40em; font-size: 0.9375rem; }

/* mechanics */
.mech .sec-head { margin-bottom: 48px; }
.tools-wrap { max-width: calc(var(--col) + 40px); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.tools { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; align-items: start; }
.tool { display: grid; gap: 22px; align-content: start; container-type: inline-size; min-width: 0; }
.tool .phone { --pw: 100cqw; }
.tool__text { display: grid; gap: 8px; padding-right: 4px; }
.tool__name { font-family: var(--font-display); font-weight: 420; font-size: 1.45rem; line-height: 1.15; }
.tool__moment { font-family: var(--font-display); font-style: italic; font-size: 1.05rem; color: var(--amber); line-height: 1.35; }
.tool__text > p:not(.tool__moment) { font-size: 0.9375rem; line-height: 1.55; color: color-mix(in srgb, var(--cream) 78%, var(--muted)); }
.tool__cite { font-size: 0.8125rem; color: var(--muted); text-decoration-color: var(--line-strong); margin-top: 2px; }
.tool__cite:hover { color: var(--amber); }

/* promises */
.promise-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.promise-grid li { padding: 30px 28px 34px 0; border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.promise-grid li:not(:nth-child(3n+1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.struck {
  font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1.25;
  text-decoration: line-through; text-decoration-color: var(--terracotta); text-decoration-thickness: 2px;
  color: color-mix(in srgb, var(--cream) 88%, var(--muted));
}
.promise-grid p { color: var(--muted); font-size: 0.9375rem; }

/* week */
.scenes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; position: relative; }
.scene { display: grid; align-content: start; gap: 10px; padding: 26px 24px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.scene__when { display: flex; align-items: center; gap: 10px; }
.scene__when::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.scene--night .scene__when::before { background: #4b5a7a; box-shadow: 0 0 0 3px rgba(75,90,122,.25); }
.scene--morning .scene__when::before { background: var(--amber); box-shadow: 0 0 0 3px rgba(242,201,136,.2); }
.scene--afternoon .scene__when::before { background: var(--terracotta); box-shadow: 0 0 0 3px rgba(214,122,86,.22); }
.scene--day .scene__when::before { background: var(--cream); box-shadow: 0 0 0 3px rgba(242,230,204,.15); }
.scene p:last-child { font-size: 0.9375rem; color: color-mix(in srgb, var(--cream) 76%, var(--muted)); }

/* people */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-bottom: 24px; }
.person { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 26px; align-items: start; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.person__text { display: grid; gap: 8px; }
.person__name { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1.05; }
.person__roles { font-family: var(--font-display); font-style: italic; color: var(--amber); font-size: 1.1rem; }
.person__text > p:not(.person__roles) { color: color-mix(in srgb, var(--cream) 78%, var(--muted)); font-size: 0.9688rem; margin-top: 4px; }
.person__words {
  position: relative; margin: 18px 0 0; padding: 0;
  font-family: var(--font-display); font-style: italic; font-size: 1.05rem; line-height: 1.5; color: var(--cream);
}
.person__words::before { content: "“"; display: block; height: .5em; margin-bottom: 4px; font-size: 3.2rem; line-height: 1; font-style: normal; color: var(--amber); }

/* proof */
.letter {
  background: var(--paper); color: var(--ink); border-radius: 8px;
  padding: clamp(28px, 4vw, 52px); display: grid; gap: 18px;
  font-size: 1.0313rem; line-height: 1.75;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.7);
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(74,63,48,.06) 31px 32px);
}
.letter__sign { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--terracotta); line-height: 1.2; }
.letter__links { font-size: 0.875rem; color: var(--ink-soft); }
.letter__links a { color: var(--ink); }
.sources { margin-top: clamp(56px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 24px 64px; scroll-margin-top: 90px; }
.sources__head { display: grid; gap: 10px; align-content: start; }
.sources__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.sources__list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sources__list .label { padding-top: 2px; }
.sources__list p { font-size: 0.875rem; color: var(--muted); overflow-wrap: anywhere; }
.sources__list a { color: var(--cream); }

/* faq */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 32px 64px; align-items: start; }
.faq__grid header { display: grid; gap: 18px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 400;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 44px 24px 0; color: color-mix(in srgb, var(--cream) 76%, var(--muted)); max-width: 40em; }

/* cta */
.cta { overflow: clip; }
.cta__inner { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.cta__mascot, .thanks__mascot { position: relative; width: 220px; aspect-ratio: 1; display: grid; place-items: end center; }
.rug { position: absolute; left: 6%; right: 6%; bottom: 3%; height: 18%; border-radius: 50%; background: radial-gradient(closest-side, #7a3e2a, #61301f 80%, transparent 82%); opacity: .85; }
.cta__mascot > img, .thanks__mascot > img, .idle-raccoon { position: relative; width: 100%; }
.idle-raccoon { display: block; aspect-ratio: 1; animation: breathe-body 4.6s ease-in-out infinite; transform-origin: 50% 92%; }
.idle-raccoon img { position: absolute; inset: 0; width: 100%; height: 100%; }
.idle-raccoon__blink { opacity: 0; animation: blink-eyes 6.2s steps(1) infinite; }
@keyframes breathe-body { 0%, 100% { transform: scale(1, 1); } 45% { transform: scale(1.012, 1.022); } }
@keyframes blink-eyes { 0%, 93% { opacity: 0; } 94%, 96.5% { opacity: 1; } 97% { opacity: 0; } }
.cta__copy { display: grid; gap: 22px; }
.cta__follow { font-size: 0.875rem; color: var(--muted); }
.glow { position: absolute; inset: -10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(242,201,136,.28), transparent 72%); animation: breathe 7s ease-in-out infinite; pointer-events: none; }
@keyframes breathe { 0%, 100% { transform: scale(.88); opacity: .75; } 50% { transform: scale(1.06); opacity: 1; } }

/* thank-you */
.thanks { padding-block: clamp(48px, 8vw, 96px) var(--sec); }
.thanks__inner { display: grid; justify-items: center; text-align: center; gap: 18px; }
.thanks__title { color: var(--amber); font-style: italic; }
.thanks__body { margin-inline: auto; max-width: 34em; }
.thanks__lead { margin-top: 40px; font-style: italic; font-size: 1.35rem; color: var(--muted); }
.thanks__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; text-align: left; width: 100%; max-width: 960px; margin-top: 8px; }
.tcard { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 10px; align-content: start; }
.tcard > p:not(.mono) { color: var(--muted); font-size: 0.9375rem; }
.tcard__link { font-size: 0.875rem; color: var(--terracotta); margin-top: 6px; }
.tcard__link a, a.tcard__link { color: var(--terracotta); }
.thanks__unsub { margin-top: 44px; font-style: italic; font-size: 1.15rem; color: var(--muted); line-height: 1.5; }
.thanks__unsub strong { color: var(--cream); font-weight: 500; }
.back-link { font-size: 0.875rem; color: var(--muted); }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 36px 40px; background: var(--night); }
.foot__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 32px; align-items: center; font-size: .875rem; color: var(--muted); }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot__links a { text-decoration: none; color: color-mix(in srgb, var(--cream) 82%, var(--muted)); }
.foot__links a:hover { color: var(--amber); }
.foot__note { grid-column: 1 / -1; font-size: .8125rem; color: var(--faint); }
.foot__legal { grid-column: 1 / -1; font-size: .75rem; line-height: 1.6; color: var(--faint); max-width: 70em; }

/* =====================================================================
   Phone mock. Everything inside scales with --pw (1em = pw/30, about
   0.77 app points). Screens follow the built Lamplight sketches:
   the den behind, the user's words in Fraunces italic, the app in sans.
   ===================================================================== */
.phone {
  --pw: 280px;
  width: var(--pw); max-width: 100%;
  aspect-ratio: 300 / 628;
  font-size: calc(var(--pw) / 30);
  padding: 0.8em;
  border-radius: 4.8em;
  background: linear-gradient(160deg, #3a3027, #17110c 40%, #241c15);
  box-shadow:
    inset 0 0 0 0.12em rgba(242,230,204,.14),
    0 0 0 0.1em #0b0806,
    0 3em 6em -1.5em rgba(0,0,0,.75),
    0 0 8em -2em rgba(242,201,136,.12);
  flex: none;
}
.phone__screen {
  position: relative; height: 100%; overflow: hidden;
  border-radius: 4em;
  background: var(--band);
  color: var(--cream);
  font-family: var(--font-body);
  display: flex; flex-direction: column;
  line-height: 1.35;
}
.sbar { position: absolute; z-index: 6; inset: 0 0 auto; height: 4.6em; display: flex; align-items: center; justify-content: space-between; padding: 0 2.4em 0 3.2em; color: var(--cream); pointer-events: none; }
.sbar__time { font: 600 1.4em var(--font-body); letter-spacing: -0.01em; }
.sbar__island { position: absolute; left: 50%; top: 1.1em; width: 9.4em; height: 2.7em; margin-left: -4.7em; background: #000; border-radius: 2em; }
.sbar__icons { display: flex; gap: .45em; align-items: center; }
.sbar__icons svg { height: 1.15em; width: auto; }
.homebar { position: absolute; left: 50%; bottom: .8em; width: 11em; height: .45em; margin-left: -5.5em; border-radius: 1em; background: rgba(242,230,204,.5); z-index: 6; }

.screens { position: relative; flex: 1; }
.scr { position: relative; flex: 1; display: flex; flex-direction: column; padding: 4.8em 1.7em 2.6em; min-height: 0; overflow: hidden; }
.screens > .scr { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .45s; }
.screens > .scr.is-active { opacity: 1; visibility: visible; transition: opacity .45s ease; }

/* shared pieces */
.small { font-size: 1.05em; color: var(--muted); line-height: 1.4; }
.serif { font-family: var(--font-display); }
.words { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.words--xl { font-size: 2.05em; line-height: 1.18; letter-spacing: -0.005em; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 3.2em; margin-bottom: 1.2em; }
.topbar b { font-weight: 600; font-size: 1.15em; }
.topbar--left { justify-content: flex-start; }
.round-btn { width: 3em; height: 3em; border-radius: 50%; background: var(--surface); display: grid; place-items: center; color: var(--cream); flex: none; }
.round-btn svg { width: 1.3em; height: 1.3em; }
.round-btn--ghost { background: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: .55em; }
.chip { font: 500 1.05em var(--font-body); padding: .5em .95em; border-radius: 999px; border: 0; background: var(--surface); color: var(--cream); cursor: pointer; line-height: 1.2; text-align: left; transition: background-color .2s, color .2s; }
.chip:hover { background: var(--surface-2); }
.chip.is-on { background: var(--cream); color: var(--on-accent); }
.chip--glass { display: inline-flex; align-items: center; gap: .45em; background: rgba(242,230,204,.1); border: 1px solid rgba(242,230,204,.12); cursor: default; }
.chip--glass svg { width: 1.2em; height: 1.2em; }
.field-label { margin: 1.4em 0 .6em; }
.field { background: var(--surface); border-radius: 1.25em; padding: .8em 1em; font-size: 1.4em; line-height: 1.3; }
.caret { display: inline-block; width: .08em; min-width: 1.5px; height: 1.05em; margin-left: .1em; vertical-align: -0.15em; background: var(--terracotta); animation: blink 1.1s steps(2, start) infinite; }
@keyframes blink { to { visibility: hidden; } }
.screen-actions { margin-top: auto; display: grid; gap: .6em; justify-items: center; padding-top: 1.2em; }
.solid-btn { display: block; width: 100%; text-align: center; border-radius: 1.55em; padding: 1em; background: var(--terracotta); color: var(--on-accent); font: 600 1.25em var(--font-body); }
.dark-btn { display: block; width: 100%; text-align: center; border-radius: 1.55em; padding: 1em; background: var(--surface-2); color: var(--cream); font: 600 1.2em var(--font-body); }
.text-btn { border: 0; background: none; color: var(--muted); font: 500 1.05em var(--font-body); cursor: pointer; padding: .3em; }
button.text-btn:hover { color: var(--cream); }
.den { position: absolute; inset: 0; }
.den svg { display: block; width: 100%; height: 100%; }
.den--dim::after { content: ""; position: absolute; inset: 0; background: rgba(10,7,4,.45); }
.den__raccoon {
  --shift: 70; --size: 220;
  position: absolute; z-index: 1;
  width: calc(var(--size) / 390 * 100%);
  left: calc((196 - var(--size) / 2) / 390 * 100%);
  top: calc((522 - var(--shift) - 0.8 * var(--size)) / 844 * 100%);
}
.den__raccoon img { width: 100%; height: auto; }
.scene-fade { position: absolute; inset: auto 0 0; height: 46%; z-index: 2; background: linear-gradient(to bottom, transparent, rgba(26,20,14,.86) 34%, var(--band) 62%); }
.scene-top { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: .55em; padding: .55em .95em; border-radius: 999px; background: rgba(20,15,10,.45); border: 1px solid rgba(242,230,204,.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 1.05em; font-weight: 500; }
.dot { width: .6em; height: .6em; border-radius: 50%; background: var(--alive); box-shadow: 0 0 0 .3em rgba(155,174,134,.2); }

/* hero: active session in the den */
.scr--session { padding-top: 5.4em; }
.session__bottom { position: relative; z-index: 3; margin-top: auto; display: grid; gap: .9em; }
.session__bottom .chips { margin: .2em 0 .4em; }

/* I. brain dump */
.dump__view { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.dump__head { display: flex; align-items: center; gap: 1em; }
.dump__head b { display: block; font-size: 1.85em; font-weight: 400; line-height: 1.1; }
.avatar { width: 4.6em; height: 4.6em; border-radius: 50%; overflow: hidden; background: var(--surface); flex: none; }
.avatar img { width: 160%; max-width: none; margin: -.4em 0 0 -30%; }
.dump__words { margin-top: 2em; font-family: var(--font-display); font-size: 2.05em; line-height: 1.28; color: var(--cream); }
.dump__words .old { color: color-mix(in srgb, var(--cream) 45%, transparent); transition: color 1.2s; }
.dump__foot { margin-top: auto; display: grid; justify-items: center; gap: .7em; }
.dump__rec { display: inline-flex; align-items: center; gap: .5em; }
.rec { width: .55em; height: .55em; border-radius: 50%; background: var(--terracotta); animation: pulse 1.6s ease-in-out infinite; }
.stop { position: relative; width: 6.6em; height: 6.6em; display: grid; place-items: center; }
.stop__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(214,122,86,.5); animation: slow-ring 3.6s ease-in-out infinite; }
.stop__btn { width: 5.2em; height: 5.2em; border-radius: 50%; background: var(--terracotta); color: var(--on-accent); display: grid; place-items: center; }
.stop__btn svg { width: 1.7em; height: 1.7em; }
@keyframes slow-ring { 0%, 100% { transform: scale(.92); opacity: .4; } 50% { transform: scale(1.08); opacity: 1; } }
.piles { display: grid; gap: .55em; }
.pile__h { font-size: 1.55em; margin-top: .6em; }
.pile { background: var(--surface); border-radius: 1.4em; overflow: hidden; }
.pile li { font-family: var(--font-display); font-style: italic; font-size: 1.3em; padding: .8em 1em; border-top: 1px solid var(--line); transition: background-color 1.6s; }
.pile li:first-child { border-top: 0; }
.pile li.is-new { background: rgba(242,201,136,.08); }

/* II. starter */
.sentence { font-size: 2.15em; line-height: 1.3; margin: .2em 0 .7em; color: color-mix(in srgb, var(--cream) 60%, transparent); }
.sentence__user { font-style: italic; color: var(--cream); text-decoration: underline; text-decoration-color: var(--terracotta); text-decoration-thickness: .06em; text-underline-offset: .18em; transition: opacity .25s; }
.sentence__user.is-swapping { opacity: 0; }
.tip { display: flex; align-items: center; gap: .9em; margin-top: 1.3em; padding: .9em 1.1em; background: var(--surface); border-radius: 1.4em; }
.tip svg { width: 2.6em; height: 2.6em; flex: none; }
.tip .serif { font-style: italic; font-size: 1.2em; line-height: 1.3; color: color-mix(in srgb, var(--cream) 85%, transparent); }

/* III. co-pilot setup sheet */
.scr--setup { padding: 0; }
.sheet { position: relative; z-index: 2; margin-top: 7.4em; flex: 1; display: flex; flex-direction: column; background: var(--sheet); border-radius: 2.5em 2.5em 0 0; padding: .9em 1.7em 2.6em; box-shadow: 0 -1.5em 3em rgba(0,0,0,.35); }
.grabber { width: 3.6em; height: .4em; border-radius: 1em; background: rgba(242,230,204,.2); margin: 0 auto 1.3em; }
.sheet__title { font-size: 2.15em; line-height: 1.15; }
.setup__caption { margin-top: .7em; font-size: .98em; }
.scr--setup .chips .chip { font-size: 1em; }
.scr--setup .field { font-size: 1.35em; }
.scr--setup .screen-actions { padding-top: 1em; }

/* IV. soft landing: lock screen */
.scr--lock { background: linear-gradient(180deg, #2a3243 0%, #2a2a33 38%, #34271f 78%, #2a1f18 100%); padding-top: 6em; }
.lock__clock { text-align: center; }
.lock__date { font-size: 1.3em; font-weight: 500; color: color-mix(in srgb, var(--cream) 88%, transparent); }
.lock__time { font: 600 7em/1 var(--font-body); letter-spacing: -0.035em; margin-top: .05em; }
.notif {
  margin-top: auto; margin-bottom: 9em; display: flex; gap: .9em; align-items: center;
  padding: .9em 1.1em; border-radius: 1.8em;
  background: rgba(26,20,14,.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(242,230,204,.08);
  transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s;
}
.notif.is-out { transform: translateY(1.2em) scale(.97); opacity: 0; }
.notif__icon { width: 3.4em; height: 3.4em; border-radius: .9em; background: var(--surface-2); object-fit: cover; object-position: 50% 8%; flex: none; }
.notif__body { min-width: 0; font-size: 1.15em; line-height: 1.35; flex: 1; }
.notif__top { display: flex; justify-content: space-between; gap: .6em; }
.notif__top span { color: color-mix(in srgb, var(--cream) 55%, transparent); font-size: .9em; }

/* V. bridge */
.bridge__step { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.bridge__step--land { align-items: center; text-align: center; }
.bridge__step--land .topbar { align-self: stretch; }
.breath { position: relative; width: 17em; height: 17em; margin-top: 3em; display: grid; place-items: center; }
.breath__glow { position: absolute; inset: -12%; border-radius: 50%; background: radial-gradient(closest-side, rgba(242,201,136,.3), transparent 72%); animation: ritual 10s ease-in-out infinite; }
.breath__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(242,201,136,.55); animation: ritual 10s ease-in-out infinite; }
.breath img { position: relative; width: 82%; animation: ritual-body 10s ease-in-out infinite; transform-origin: 50% 90%; }
/* breath 4s in, 6s out (Lamplight motion note) */
@keyframes ritual { 0% { transform: scale(.9); opacity: .7; } 40% { transform: scale(1.04); opacity: 1; } 100% { transform: scale(.9); opacity: .7; } }
@keyframes ritual-body { 0% { transform: scale(1); } 40% { transform: scale(1.025, 1.035); } 100% { transform: scale(1); } }
.bridge__line { margin-top: 2.4em; font-size: 2em; line-height: 1.25; max-width: 11em; }
.bridge__on { margin-top: auto; font-size: 1.2em; }
.bridge__step--handoff { padding-top: 1em; }
.bridge__step--handoff .sheet__title { margin-bottom: .3em; }
.handoff { display: grid; background: var(--surface); border-radius: 1.6em; overflow: hidden; }
.handoff--tools { margin-top: 1em; }
.handoff__row { display: flex; align-items: center; gap: .8em; width: 100%; padding: .95em 1.1em; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--cream); font: 500 1.1em var(--font-body); text-align: left; cursor: pointer; }
.handoff__row:first-child { border-top: 0; }
.handoff__row:hover { background: rgba(242,230,204,.04); }
.handoff__row .words { font-size: 1.12em; flex: 1; min-width: 0; }
.handoff__row > span:nth-child(2):not(.mini-pill) { flex: 1; }
.handoff__row svg { width: 1.3em; height: 1.3em; color: var(--muted); flex: none; }
.row-icon svg { width: 2.2em; height: 2.2em; }
.mini-pill { flex: none; font-size: .85em; font-weight: 600; padding: .4em .85em; border-radius: 999px; background: var(--surface-2); }

/* =====================================================================
   Responsive
   ===================================================================== */
/* =====================================================================
   Responsive. Breakpoints: 1199 tools rail · 1180 founder cards ·
   1023 compact header · 960 single column · 899 problem cards ·
   679 menu button · 640 phone
   ===================================================================== */
@media (max-width: 1199px) {
  /* the five previews become a sideways rail with arrows */
  .tools-wrap { padding-left: 0; padding-right: 0; max-width: none; }
  .tools {
    display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 248px; gap: 22px;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scroll-behavior: smooth;
    padding: 4px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px));
    scroll-padding-inline: max(20px, env(safe-area-inset-left, 0px));
    scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
  }
  .tool { scroll-snap-align: start; }
  .tools-nav { display: flex; }
}

@media (max-width: 1180px) and (min-width: 961px) {
  .person { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

@media (max-width: 1080px) {
  .scenes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
  .top__inner { gap: 12px; }
  .top__nav { gap: 0; font-size: .8125rem; }
  .top__nav a { padding: 7px 8px; }
}

@media (max-width: 960px) {
  .hero { padding-bottom: clamp(48px, 9vw, 96px); }
  .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .hero__visual, .hero__copy { grid-column: 1; grid-row: auto; }
  .hero__visual { width: 100%; max-width: 660px; margin: 0 0 12%; }
  .phone.phone--float { --pw: clamp(120px, 24vw, 176px); right: 4%; bottom: -10%; }
  .desk__link { display: none; }
  .idea__grid, .faq__grid, .sources, .people { grid-template-columns: minmax(0, 1fr); }
  .note-card { max-width: none; width: 100%; transform: rotate(-0.4deg); }
  .sec-head--split { grid-template-columns: minmax(0, 1fr); }
  .hangouts { grid-template-columns: minmax(0, 1fr); }
  .hangouts__head, .hangouts__row, .hangouts__caption { grid-column: 1; grid-row: auto; }
  .hangouts__row { grid-template-columns: repeat(6, minmax(0, 96px)); gap: 14px 12px; }
  .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promise-grid li:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
  .promise-grid li:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .promise-grid li { padding-right: 24px; }
  .thanks__cards { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
}

@media (max-width: 899px) {
  .moments { grid-template-columns: minmax(0, 1fr); max-width: 660px; }
}

@media (max-width: 679px) {
  /* one line: logo, Menu, language; the links open as a panel under the header */
  .menu-btn { display: inline-flex; }
  .top__nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; gap: 0; font-size: 1.0625rem;
    padding: 6px max(20px, env(safe-area-inset-right, 0px)) 18px max(20px, env(safe-area-inset-left, 0px));
    background-color: var(--night);
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 30px 40px -20px rgba(0,0,0,.7);
  }
  .top.is-open .top__nav { display: flex; }
  .top__nav a { padding: 15px 2px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .top__nav a:last-child { border-bottom: 0; }
  .top__nav a[aria-current="true"] { background: none; color: var(--amber); }
  .top__end { margin-left: auto; }
  .tools-nav { display: none; }
}

@media (max-width: 640px) {
  .foot__inner { grid-template-columns: minmax(0, 1fr); }
  .tools { grid-auto-columns: min(74vw, 280px); }
  .person { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 24px; }
  .face--lg { width: 96px; height: 96px; font-size: 2.1rem; }
  .top__end .btn--small { display: none; }
  .hero__visual { margin-bottom: 18%; }
  .phone.phone--float { --pw: min(32vw, 150px); right: 3%; bottom: -16%; }
  .desk { border-radius: 18px; }
  .signup__row { flex-direction: column; border-radius: 22px; padding: 6px; }
  .signup input { min-height: 48px; }
  .signup .btn { width: 100%; white-space: normal; text-align: center; }
  .scenes { grid-template-columns: minmax(0, 1fr); }
  .promise-grid { grid-template-columns: minmax(0, 1fr); }
  .promise-grid li, .promise-grid li:nth-child(2n) { padding: 22px 0 24px; border-left: 0; }
  .moment { padding: 24px 22px 26px; }
  .sources__list li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .cta__inner { grid-template-columns: minmax(0, 1fr); }
  .cta__mascot { width: 160px; }
  .hangouts__row { grid-template-columns: repeat(3, 96px); gap: 14px 12px; }
  .statement__raccoon { width: 92px; }
  .sec-head { margin-bottom: 36px; }
  .faq summary { font-size: 1.1rem; padding-block: 18px; }
}

@media (max-width: 380px) {
  .brand span { font-size: 1.2rem; }
  .menu-btn { padding: 0 11px; }
  .menu-btn span[data-i18n] { font-size: .8125rem; }
  .hangouts__row { grid-template-columns: repeat(3, 84px); gap: 12px 10px; }
}

/* motion preferences: everything stays readable, nothing moves */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .caret { animation: none; }
  .idle-raccoon__blink { opacity: 0; }
}
