/* Better Spouse: the app's own night world on the web.
   Tokens mirror the iOS app (PartnerOS/Core/Theme.swift, MoodSky.swift): charcoal night + teal moonlight,
   New York serif for titles, the system sans for everything else. No purple/indigo in the UI chrome (owner rule). */

/* Source Serif 4 (SIL OFL 1.1, Adobe), self-hosted: stands in for New York on non-Apple devices. */
@font-face { font-family: 'Source Serif 4'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/SourceSerif4-normal-400_700.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 {
  color-scheme: dark;
  --night: #121517;      /* P.night */
  --deep: #0d0f11;       /* GlowBackdrop bottom */
  --top: #16191c;        /* GlowBackdrop top */
  --surface: #1a1d20;    /* P.surface (dark) */
  --card: #1d2124;       /* P.nightCard */
  --high: #25292d;       /* P.surfaceHigh (dark) */
  --line: #30363a;       /* P.nightLine */
  --text: #f1f2f3;
  --text2: #a3a9af;
  --soft: #e2e6e8;
  --moon: #7fcfc4;       /* P.moon */
  --teal: #1f6f69;      /* app button teal #2A8C84→#4FB0A5, deepened for white-text contrast on the web */
  --teal2: #247a73;
  --gold: #e8a94a;
  --salmon: #f2b8a6;
  --ok: #34c77b;
  --serif: ui-serif, "New York", "Source Serif 4", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, Roboto, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --r-card: 22px;
  --r-row: 18px;
  --wrap: 1120px;
  --gut: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--deep); color: var(--text); font-family: var(--sans);
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--moon); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--moon); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--moon); color: var(--night); padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 760px; }

/* ---------- buttons (the app's capsules) ---------- */
.btn {
  white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 0; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; color: #fff;
  transition: transform .15s ease, filter .15s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-teal { background: linear-gradient(135deg, var(--teal), var(--teal2)); }
.btn-teal:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--high); color: var(--soft); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; background: linear-gradient(135deg, var(--teal), var(--teal2)); }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(13, 15, 17, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(48, 54, 58, .6); }
.nav-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); height: 62px; display: flex; align-items: center; gap: 14px; }
.mark { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 19px; margin-right: auto; }
.mark img { width: 32px; height: 32px; border-radius: 8px; }
.links { display: none; }
.links a { color: var(--text2); text-decoration: none; font-size: 15px; padding: 8px 2px; }
.links a:hover, .links a[aria-current="page"], .links a.on { color: var(--text); }
.menu { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 12px; }
.menu svg { width: 24px; height: 24px; }
.nav .btn-sm { display: none; }
.nav.open .links {
  display: flex; flex-direction: column; position: absolute; top: 62px; left: 0; right: 0; padding: 8px var(--gut) 18px;
  background: rgba(13, 15, 17, .97); border-bottom: 1px solid var(--line);
}
.nav.open .links a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid rgba(48, 54, 58, .5); }
@media (min-width: 960px) {
  .links { display: flex; gap: 22px; margin-right: 8px; }
  .menu { display: none; }
  .nav .btn-sm { display: inline-flex; }
}

/* ---------- app surfaces (shared) ---------- */
.app { border-radius: 30px; overflow: hidden; background: var(--night); border: 1px solid var(--line); }
.app-body { padding: 20px; display: grid; gap: 14px; }
.app-title { font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.1; color: #fff; text-align: center; }
.app-title.sm { font-size: 26px; text-align: left; }
.app-sub { color: var(--text2); font-size: 15px; text-align: center; margin-top: -8px; }
.mind-app .app-sub { text-align: left; margin-top: -4px; line-height: 1.45; }
.card { background: var(--surface); border-radius: var(--r-card); padding: 16px; display: grid; gap: 6px; }
.card-t { font-weight: 600; font-size: 17px; }
.card-s { color: var(--text2); font-size: 15px; line-height: 1.45; }
.card-k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text2); }
.card-link { color: var(--moon); font-weight: 600; font-size: 15px; text-decoration: none; margin-top: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- hero: the Dashboard sky ---------- */
.hero { position: relative; isolation: isolate; padding: 36px 0 64px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13, 15, 17, .2) 0%, rgba(13, 15, 17, .55) 55%, var(--deep) 100%); }
.hero-in { display: grid; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(40px, 9vw, 72px); letter-spacing: -.01em; color: #fff; margin: 18px 0 16px; }
.lede { font-size: 18px; color: var(--soft); max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 26px; }
.fine { color: var(--text2); font-size: 14px; }
.try { display: none; color: var(--moon) !important; font-size: 15px; margin-top: 22px; }
.js .try { display: block; }

.side-toggle { display: none; padding: 4px; border-radius: 999px; background: rgba(26, 29, 32, .85); border: 1px solid var(--line); }
.js .side-toggle { display: inline-flex; }
.side-toggle button { border: 0; background: transparent; color: var(--text2); padding: 8px 16px; min-height: 40px; border-radius: 999px; font-size: 15px; font-weight: 500; cursor: pointer; }
.side-toggle button[aria-pressed="true"] { background: var(--moon); color: var(--night); font-weight: 600; }

.sky-app { width: 100%; max-width: 400px; justify-self: center; }
.sky { position: relative; height: 330px; overflow: hidden; background: linear-gradient(180deg, var(--s1), var(--s2)); }
.sky .art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; opacity: 0; transition: opacity .6s ease; }
.sky .art-stressed, .sky .art-excited, .sky .art-space {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 32%); mask-image: linear-gradient(180deg, transparent 0%, #000 32%);
}
.sky .art-calm, .sky .art-tired { top: 0; height: 100%; object-fit: cover; }
.sky-app[data-mood="calm"]     { --s1: #f3a99b; --s2: #f8c9a8; --ink: #3a2140; }
.sky-app[data-mood="excited"]  { --s1: #9ccbeb; --s2: #cfe6f0; --ink: #1f2a4a; }
.sky-app[data-mood="tired"]    { --s1: #8c6ba6; --s2: #a487b4; --ink: #fff; }
.sky-app[data-mood="stressed"] { --s1: #56617c; --s2: #96a0b5; --ink: #fff; }
.sky-app[data-mood="space"]    { --s1: #161b45; --s2: #2b3266; --ink: #fff; }
.sky-app[data-mood="calm"] .art-calm, .sky-app[data-mood="excited"] .art-excited, .sky-app[data-mood="tired"] .art-tired,
.sky-app[data-mood="stressed"] .art-stressed, .sky-app[data-mood="space"] .art-space { opacity: 1; }
.stars { position: absolute; inset: 0 0 40% 0; opacity: 0; transition: opacity .6s ease;
  background-image: radial-gradient(1.4px 1.4px at 12% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 30% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 52% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 70% 16%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 86% 34%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 42% 46%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 92% 8%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 20% 52%, #fff 50%, transparent 51%); }
.sky-app[data-mood="space"] .stars { opacity: .85; }
.sky-text { position: relative; z-index: 2; text-align: center; padding: 24px 18px 0; color: var(--ink); }
.sky-kicker { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.sky-h { font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.12; margin: 8px auto 12px; max-width: 10em; text-wrap: balance; }
.pill { display: inline-block; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: #2b3150; }
.sky-app .app-body { margin-top: -26px; position: relative; z-index: 3; background: var(--night); border-radius: 26px 26px 0 0; padding-top: 18px; }
.orbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 8px; }
.orb { border: 0; background: transparent; padding: 6px 0 4px; cursor: pointer; display: grid; justify-items: center; align-content: start; gap: 2px; border-radius: 14px; }
.orb img { width: 46px; height: 46px; border-radius: 50%; transition: transform .2s ease, box-shadow .2s ease; }
.orb span { font-size: 12px; color: var(--soft); margin-top: 4px; }
.orb small { font-size: 11px; color: var(--text2); line-height: 1.1; }
.orb[aria-pressed="true"] img { box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--moon); transform: scale(1.06); }
.orb:hover img { transform: scale(1.06); }

/* ---------- hero film ---------- */
.film { margin: 0; width: 100%; }
.film-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: 0 0 0 6px rgba(26, 29, 32, .55); }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.play { display: none; position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); align-items: center; gap: 12px; min-height: 56px; padding: 0 22px 0 8px;
  border: 0; border-radius: 999px; background: rgba(13, 15, 17, .78); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: #fff; font-weight: 600; font-size: 16px; cursor: pointer; white-space: nowrap; }
.js .play { display: inline-flex; }
.js .film.playing .play { display: none; }
.play small { color: var(--text2); font-weight: 400; font-size: 14px; }
.play-i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--teal), var(--teal2)); }
.play-i svg { width: 18px; height: 18px; margin-left: 2px; }
.play:hover .play-i { filter: brightness(1.12); }
.film figcaption { color: var(--text2); font-size: 14px; margin-top: 12px; }
.film video::cue { background: rgba(13, 15, 17, .8); color: #f1f2f3; font-family: var(--sans); }
.sky-sec { padding-top: 40px; }

/* ---------- Threshold Pause ---------- */
.pause { position: relative; isolation: isolate; padding: 72px 0; overflow: hidden; background: #101418; }
.pause-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .45; filter: saturate(.5); }
.pause::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--deep), rgba(13, 15, 17, .4) 30%, rgba(13, 15, 17, .4) 70%, var(--deep)); }
.pause-in { display: grid; gap: 36px; align-items: center; }
.copy h2 { font-size: clamp(32px, 6.4vw, 50px); color: #fff; margin-bottom: 16px; }
.copy p { color: var(--soft); max-width: 32em; }
.copy p + p { margin-top: 14px; }
.copy .note { color: var(--text2); font-size: 15px; }
.copy.center { text-align: center; margin: 0 auto 40px; }
.copy.center p { margin: 0 auto; }
.pause-app { width: 100%; max-width: 400px; justify-self: center; padding: 30px 20px 22px; border-radius: 30px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 21, 23, .55), rgba(18, 21, 23, .92)); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); text-align: center; }
.moon { width: 34px; height: 34px; margin: 22px auto 0; color: #f4efe0; }
.moon svg { width: 100%; height: 100%; }
.pause-app .app-sub { margin-top: 2px; }
.breath { position: relative; width: 230px; height: 230px; margin: 18px auto 10px; display: grid; place-items: center; }
.ring { position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(214, 236, 233, .3), rgba(127, 207, 196, .1) 55%, rgba(127, 207, 196, .04) 70%);
  box-shadow: inset 0 0 0 1.5px rgba(230, 245, 242, .55), 0 0 0 12px rgba(127, 207, 196, .05);
  transform: scale(.86); }
.js .ring { animation: breathe 8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.82); } 50% { transform: scale(1); } }
.breath p { position: relative; display: grid; gap: 4px; color: #fff; }
.breath b { font-family: var(--serif); font-weight: 600; font-size: 24px; }
.breath small { color: #c9d0d4; font-size: 13px; }
.ph-out { display: none; }
.pause-app[data-phase="out"] .ph-in { display: none; }
.pause-app[data-phase="out"] .ph-out { display: block; }
.arrive-q { color: #b3b9be; font-size: 15px; margin: 6px 0 12px; }
.arrive { min-height: 66px; border: 0; border-radius: 20px; color: #fff; font-weight: 600; font-size: 16px; line-height: 1.25; cursor: pointer; transition: transform .15s ease; }
.arrive:active { transform: scale(.97); }
.arrive.ready { background: linear-gradient(135deg, var(--teal), var(--teal2)); }
.arrive.drained { background: #34393d; }
.arrive[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--night), 0 0 0 4px var(--moon); }
.toast { min-height: 22px; margin-top: 12px; color: var(--moon); font-size: 14px; font-weight: 500; }

/* ---------- feature sections ---------- */
.feature { padding: 80px 0; }
.split { display: grid; gap: 36px; align-items: center; }
.split > .app, .split > .stack { width: 100%; max-width: 420px; justify-self: center; }

/* Quick Pivot */
.app-head { width: 100%; height: 170px; object-fit: cover; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.pivot-app .app-body { margin-top: -24px; position: relative; }
.own-words { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r-row); background: var(--card);
  border: 1px solid rgba(127, 207, 196, .5); text-decoration: none; color: #fff; }
.own-words b { display: block; font-size: 16px; font-weight: 600; }
.own-words small { display: block; color: var(--text2); font-size: 13px; }
.spark { width: 40px; height: 40px; border-radius: 50%; background: var(--moon); color: var(--night); display: grid; place-items: center; }
.spark svg { width: 20px; height: 20px; }
.chev { color: var(--text2); font-size: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--soft); font-size: 15px; font-weight: 500; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--moon); border-color: var(--moon); color: var(--night); }
.phrases { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.phrase { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 6px 0 6px 16px; border-radius: var(--r-row);
  background: var(--card); border: 1px solid var(--line); cursor: pointer; color: #fff; font-size: 16px; line-height: 1.4; }
.phrase .q { flex: 1; padding: 8px 0; }
.cp { flex: none; width: 44px; height: 44px; display: grid; place-items: center; color: var(--moon); }
.cp svg { width: 20px; height: 20px; }
.cp .i-done { display: none; color: var(--ok); }
.phrase.copied .i-copy { display: none; }
.phrase.copied .i-done { display: block; }
.gold { color: var(--gold); font-size: 13px; font-weight: 500; text-align: center; }

/* Ask for help */
.ask-app .app-title { text-align: left; }
.label { font-weight: 600; color: #fff; }
.field { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-row); padding: 14px 16px; color: var(--soft); font-size: 15px; }
.answer { background: var(--card); border-radius: var(--r-row); padding: 16px; display: grid; gap: 8px; }
.k { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--moon); margin-top: 6px; }
.k:first-child { margin-top: 0; }
.k.avoid { color: var(--salmon); }
.say { font-family: var(--serif); font-size: 21px; line-height: 1.3; color: #fff; }
.steps-n { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: s; }
.steps-n li { counter-increment: s; display: grid; grid-template-columns: 22px 1fr; gap: 10px; color: var(--soft); font-size: 15px; }
.steps-n li::before { content: counter(s); width: 22px; height: 22px; border-radius: 50%; background: var(--moon); color: var(--night); font-size: 12px; font-weight: 700; display: grid; place-items: center; margin-top: 1px; }
.avoid-t { color: var(--soft); font-size: 15px; }
.disclaimer { color: var(--text2); font-size: 12px; line-height: 1.45; }

/* Unsaid hand-off */
.unsaid { background: linear-gradient(180deg, var(--deep), var(--top) 50%, var(--deep)); }
.handoff { display: grid; gap: 18px; justify-items: center; align-items: center; }
.handoff > .app { width: 100%; max-width: 380px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--r-row); background: var(--card); border: 1px solid var(--line); color: var(--soft); font-size: 15px; }
.ticks li.on { border-color: rgba(127, 207, 196, .55); color: #fff; }
.box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line); display: grid; place-items: center; }
.on .box { background: var(--moon); border-color: var(--moon); color: var(--night); }
.box svg { width: 15px; height: 15px; }
.gap { display: grid; justify-items: center; text-align: center; gap: 2px; color: var(--gold); font-weight: 600; padding: 8px 0; }
.gap::before, .gap::after { content: ""; width: 1px; height: 40px; margin: 8px 0; }
.gap::before { background: linear-gradient(180deg, transparent, var(--gold)); }
.gap::after { background: linear-gradient(180deg, var(--gold), transparent); }
.gap small { color: var(--text2); font-weight: 400; font-size: 14px; }
.idea-app { background: var(--surface); }
.idea-app img { width: 100%; height: 150px; object-fit: cover; }
.idea-q { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.2; color: #fff; }

/* Week in skies */
.stack { display: grid; gap: 14px; }
.light-card { background: var(--surface); padding: 18px; border-radius: var(--r-card); }
.row-t { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.row-t > span { color: var(--moon); font-size: 14px; font-weight: 500; }
.weekrow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 16px; }
.weekrow .d { display: grid; justify-items: center; gap: 6px; }
.weekrow img { width: 100%; max-width: 38px; border-radius: 50%; }
.weekrow i { font-style: normal; font-size: 12px; color: var(--text2); }
.sync { font-family: var(--serif); font-size: 22px; line-height: 1.3; margin-top: 8px; }

/* Privacy */
.private { padding: 84px 0; background: var(--night); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.private-in { display: grid; justify-items: center; text-align: center; }
.lock { width: 84px; height: 84px; border-radius: 22px; }
.private h2 { font-size: clamp(32px, 6.4vw, 50px); margin: 18px 0 30px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; max-width: 760px; text-align: left; }
.facts li { padding: 16px 18px; border-radius: var(--r-row); background: var(--card); border: 1px solid var(--line); color: var(--text2); }
.facts b { color: var(--text); font-weight: 600; margin-right: 6px; }

/* Both of you */
.art-fig img { width: 100%; aspect-ratio: 1100 / 950; object-fit: cover; object-position: top; }
.art-fig { margin: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); }
.langs { color: var(--text2); font-size: 15px; }

/* FAQ */
.faq { padding: 80px 0; }
.faq h2 { font-size: clamp(30px, 5.6vw, 44px); margin-bottom: 22px; }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 600; font-size: 17px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 24px; color: var(--moon); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--text2); padding: 0 0 20px; max-width: 46em; }

/* Final */
.final { position: relative; isolation: isolate; padding: 120px 0 clamp(200px, 22vw, 300px); overflow: hidden; text-align: center; }
.final-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 88%; z-index: -2; opacity: .6; }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--deep) 0%, rgba(13, 15, 17, .25) 45%, rgba(13, 15, 17, .55) 100%); }
.final-in { display: grid; justify-items: center; gap: 18px; }
.final h2 { font-size: clamp(36px, 7vw, 60px); color: #fff; }
.final p { color: var(--soft); max-width: 30em; }

/* ---------- policy / support pages ---------- */
.reading { display: block; padding: 40px var(--gut) 80px; background: linear-gradient(180deg, var(--top), var(--deep) 400px); }
.reading .sheet { max-width: 760px; margin: 0 auto; background: var(--night); border: 1px solid var(--line); border-radius: 28px; padding: 28px 22px 36px; }
.reading h1 { font-size: clamp(32px, 6vw, 46px); margin-bottom: 10px; }
.reading h2 { font-size: 26px; margin: 36px 0 10px; }
.reading h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; margin: 24px 0 6px; }
.reading p, .reading li { color: #cfd4d8; }
.reading p + p { margin-top: 12px; }
.reading ul, .reading ol { padding-left: 22px; display: grid; gap: 8px; }
.reading .updated { color: var(--text2); font-size: 14px; margin-bottom: 18px; }
.gist { background: var(--card); border: 1px solid rgba(127, 207, 196, .45); border-radius: var(--r-row); padding: 16px 18px; color: var(--soft); margin: 18px 0 8px; }
.gist strong { color: var(--moon); }
.table-wrap { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; min-width: 520px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; color: #cfd4d8; }
th { color: var(--text); background: var(--card); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.steps li::marker { color: var(--moon); font-weight: 700; }

/* 404 */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px var(--gut); background: linear-gradient(180deg, var(--top), var(--deep)); }
.lost h1 { font-size: clamp(38px, 8vw, 60px); margin-bottom: 12px; }
.lost p { color: var(--text2); margin-bottom: 26px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); background: var(--deep); }
.foot { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gut) 40px; display: grid; gap: 14px; color: var(--text2); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--text2); }
.foot a:hover { color: var(--text); }

/* ---------- larger screens ---------- */
@media (min-width: 900px) {
  :root { --gut: 32px; }
  .hero { padding: 70px 0 100px; }
  .hero-in { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; }
  .pause-in, .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .split.flip > :first-child { order: 2; }
  .feature { padding: 110px 0; }
  .pause { padding: 110px 0; }
  .handoff { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
  .gap { padding: 0 6px; }
  .gap::before, .gap::after { width: 48px; height: 1px; }
  .gap::before { background: linear-gradient(90deg, transparent, var(--gold)); }
  .gap::after { background: linear-gradient(90deg, var(--gold), transparent); }
  .reading .sheet { padding: 44px 52px 52px; }
  .foot { grid-template-columns: 1fr auto; align-items: center; }
}
@media (max-width: 380px) {
  .sky-h { font-size: 28px; }
  .orb img { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
