/* Donty website styles
   One stylesheet for every page. Colours follow the Donty app themes
   (Donty light / Donty Dark) and switch with the visitor's system setting. */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #F2F7F4;
  --bg-alt: #E6EFEA;
  --surface: #F9FBFA;
  --raised: #E7F0EC;
  --border: #CCDAD4;
  --text: #18222C;
  --muted: #3B4854;
  --faint: #5F6B76;
  --accent: #097659;
  --accent-hover: #075F48;
  --on-accent: #FFFFFF;
  --accent-soft: #DDF1E8;
  --brand: #0FA37F;
  --bright: #2ED4A7;
  --event: #2F6CC9;
  --warn: #A66407;
  --warn-soft: #FBEBCF;
  --purple: #6B5ACB;
  --danger: #C93A52;
  --logo-ink: #1F2933;
  --logo-o: #0FA37F;
  --logo-tick: #FFFFFF;
  --phone-frame: #1F2933;
  --shadow-sm: 0 1px 2px rgba(24, 34, 44, .06), 0 2px 8px rgba(24, 34, 44, .05);
  --shadow: 0 1px 2px rgba(24, 34, 44, .06), 0 12px 32px rgba(24, 34, 44, .10);
  --radius: 22px;
  --radius-sm: 14px;
  --font-display: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11171C;
    --bg-alt: #161E24;
    --surface: #1C252E;
    --raised: #26323D;
    --border: #3A4957;
    --text: #F4F7F6;
    --muted: #C3CDD5;
    --faint: #9AA6B1;
    --accent: #2ED4A7;
    --accent-hover: #5FE0BD;
    --on-accent: #11171C;
    --accent-soft: #173A33;
    --event: #7AA7F7;
    --warn: #F5AE4A;
    --warn-soft: #3A2E1A;
    --purple: #B3A4F7;
    --danger: #FF7A95;
    --logo-ink: #FFFFFF;
    --logo-o: #2ED4A7;
    --logo-tick: #1F2933;
    --phone-frame: #0A0E11;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .35);
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.75rem); letter-spacing: -0.025em; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-soft); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--on-accent); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; text-decoration: none; color: inherit; }
.logo svg { height: 30px; width: auto; }
.logo .ink { stroke: var(--logo-ink); }
.logo .o { fill: var(--logo-o); }
.logo .tick { stroke: var(--logo-tick); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list a {
  display: block; padding: 10px 14px; border-radius: 999px; text-decoration: none;
  color: var(--muted); font-weight: 550; font-size: .98rem;
}
.nav-list a:hover { color: var(--text); background: var(--raised); }
.nav-list a[aria-current="page"] { color: var(--text); background: var(--raised); }
.nav-list .nav-cta a { background: var(--accent); color: var(--on-accent); margin-left: 6px; }
.nav-list .nav-cta a:hover { background: var(--accent-hover); color: var(--on-accent); }
.menu-toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
  color: var(--text); font: inherit; font-weight: 600; cursor: pointer;
}
.menu-toggle .bars { width: 18px; height: 12px; position: relative; }
.menu-toggle .bars::before, .menu-toggle .bars::after, .menu-toggle .bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
}
.menu-toggle .bars::before { top: 0; } .menu-toggle .bars span { top: 5px; } .menu-toggle .bars::after { bottom: 0; }

@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { position: absolute; left: 0; right: 0; top: 68px; display: none; padding: 8px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-list a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav-list .nav-cta a { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn svg { width: 20px; height: 20px; }

/* Store buttons: plain "coming soon" placeholders until the apps are live.
   When live, site.js swaps them for the official badge artwork. */
.store-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store-soon {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 20px 8px 14px;
  border-radius: 14px; border: 1.5px dashed var(--border); background: var(--surface); color: var(--text);
}
.store-soon svg { width: 26px; height: 26px; flex: none; color: var(--accent); }
.store-soon span { display: flex; flex-direction: column; line-height: 1.2; }
.store-soon small { font-size: .78rem; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.store-soon b { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.store-badge { display: inline-block; }
.store-badge img { height: 54px; width: auto; }
.store-note { margin-top: 14px; font-size: .92rem; color: var(--faint); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head p { color: var(--muted); font-size: 1.15rem; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 6px 14px;
  border-radius: 999px; background: var(--accent-soft); color: var(--text);
  font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .01em;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 96px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--bright) 22%, transparent), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 .done { color: var(--accent); }
.hero .lede { font-size: clamp(1.15rem, 2vw, 1.3rem); color: var(--muted); max-width: 34em; margin-bottom: 28px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .95rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 18px; height: 18px; color: var(--accent); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
}

/* ---------- Phone mock-up (decorative) ---------- */
.phone {
  width: min(340px, 100%); margin: 0 auto; padding: 12px; border-radius: 48px;
  background: var(--phone-frame); box-shadow: var(--shadow), 0 40px 80px -30px rgba(10, 125, 96, .35);
}
.phone-screen {
  border-radius: 37px; background: var(--bg); overflow: hidden; padding: 14px 14px 18px;
  min-height: 600px; display: flex; flex-direction: column; gap: 10px;
}
.phone-status { display: flex; justify-content: space-between; align-items: center; padding: 2px 10px 6px; font-size: .78rem; font-weight: 650; color: var(--text); }
.phone-island { width: 92px; height: 26px; border-radius: 20px; background: var(--phone-frame); }
.phone-title { display: flex; align-items: center; justify-content: center; padding: 4px 0 6px; }
.phone-title svg { height: 22px; width: auto; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: .9rem; line-height: 1.45; }
.bubble.me { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.bubble.donty { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 6px; }
.donty-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; color: var(--faint); margin: 4px 0 -4px 2px; }
.donty-tag i { width: 14px; height: 14px; border-radius: 50%; background: var(--brand); display: inline-block; position: relative; }
.donty-tag i::after { content: ""; position: absolute; left: 4px; top: 3px; width: 5px; height: 3px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.mini-card {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); font-size: .84rem; box-shadow: var(--shadow-sm);
}
.mini-card .badge { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .9rem; flex: none; background: var(--accent-soft); }
.mini-card b { display: block; font-weight: 650; font-size: .86rem; }
.mini-card span { color: var(--faint); font-size: .76rem; }
.mini-card .kind { margin-left: auto; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); }
.phone-composer {
  margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 16px;
  border-radius: 28px; background: var(--surface); border: 1px solid var(--border); color: var(--faint); font-size: .86rem;
}
.phone-composer .mic { margin-left: auto; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.phone-composer .mic svg { width: 18px; height: 18px; }

/* ---------- Cards and grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.icon-chip { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.icon-chip svg { width: 24px; height: 24px; }

/* Pain points */
.pain { text-align: left; }
.pain .quote { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--text); margin-bottom: .5em; line-height: 1.3; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; padding-top: 92px; }
.steps li::before {
  counter-increment: step; content: counter(step); position: absolute; top: 26px; left: 26px;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem;
}
.say {
  display: block; margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; border-bottom-right-radius: 4px;
  background: var(--accent-soft); color: var(--text); font-size: .95rem; font-style: normal;
}
.say::before { content: "You say: "; font-weight: 700; }

/* Use cases */
.usecase { display: flex; flex-direction: column; }
.usecase .tag { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); margin-bottom: 10px; }
.usecase blockquote { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; background: var(--raised); font-size: .95rem; color: var(--text); }
.usecase blockquote::before { content: "“"; } .usecase blockquote::after { content: "”"; }
.usecase .result { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .97rem; margin: 0; }
.usecase .result svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }

/* Feature list */
.feature h3 { font-size: 1.15rem; }
.feature p { font-size: .98rem; }
.platform-note { display: inline-block; margin-top: 6px; font-size: .78rem; font-weight: 700; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }

/* Split layout (protected time) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.checklist { list-style: none; padding: 0; margin: 0 0 1.5em; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; color: var(--muted); }
.checklist li svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--accent); }
.checklist li strong { color: var(--text); }

/* Shape of the day demo */
.shape-demo { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.shape-demo h3 { font-size: 1.05rem; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.shape-demo h3 span { font-family: var(--font-body); font-size: .85rem; font-weight: 500; color: var(--faint); }
.shape-bar { display: flex; height: 22px; border-radius: 999px; overflow: hidden; gap: 2px; margin: 14px 0 6px; background: var(--raised); }
.shape-bar i { display: block; height: 100%; }
.shape-scale { display: flex; justify-content: space-between; font-size: .75rem; color: var(--faint); margin-bottom: 18px; }
.shape-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.shape-rows li { display: grid; grid-template-columns: 110px 1fr 56px; gap: 12px; align-items: center; font-size: .9rem; }
.shape-rows .track { height: 10px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.shape-rows .track i { display: block; height: 100%; border-radius: 999px; }
.shape-rows .val { text-align: right; color: var(--faint); font-variant-numeric: tabular-nums; }
.c-work { background: #3D7BE0; } .c-personal { background: #D9822B; } .c-protected { background: var(--brand); }
.c-free { background: color-mix(in srgb, var(--faint) 35%, transparent); } .c-health { background: #9466D6; }
.shape-summary { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: .9rem; color: var(--muted); }

/* Principles strip */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.principles li { padding: 22px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.principles b { display: block; font-family: var(--font-display); font-size: 1.08rem; margin-bottom: 4px; }
.principles span { color: var(--muted); font-size: .95rem; }
@media (max-width: 980px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }

/* Privacy band */
.privacy-band { background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 5vw, 56px); }
.privacy-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 28px; list-style: none; padding: 0; margin: 28px 0 0; }
.privacy-points li { display: flex; gap: 12px; color: var(--muted); font-size: .98rem; }
.privacy-points svg { width: 22px; height: 22px; flex: none; color: var(--accent); margin-top: 2px; }
.privacy-points b { color: var(--text); display: block; }
@media (max-width: 900px) { .privacy-points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .privacy-points { grid-template-columns: 1fr; } }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; gap: 24px; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.plan.best { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan .ribbon { position: absolute; top: -14px; left: 28px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: .8rem; font-weight: 700; }
.plan h3 { font-size: 1.2rem; margin-bottom: 14px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.price b { font-family: var(--font-display); font-size: 3rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price span { color: var(--faint); font-weight: 600; }
.plan .equiv { color: var(--muted); font-size: .95rem; margin-bottom: 20px; min-height: 1.5em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 4px; }
.plan li { display: flex; gap: 10px; margin-bottom: 10px; color: var(--muted); font-size: .97rem; }
.plan li svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 3px; }
.price-lock { max-width: 780px; margin: 32px auto 0; display: flex; gap: 16px; align-items: flex-start; padding: 20px 24px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.price-lock svg { width: 28px; height: 28px; flex: none; color: var(--accent); }
.price-lock p { margin: 0; color: var(--text); }
.fine { max-width: 780px; margin: 18px auto 0; font-size: .88rem; color: var(--faint); text-align: center; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-of-type { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; margin-right: 6px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-3px, -3px); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq .answer { padding: 0 4px 20px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }

/* Final call to action */
.cta-band { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px); padding: clamp(40px, 6vw, 72px) var(--gutter); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(closest-side, color-mix(in srgb, var(--bright) 18%, transparent), transparent); z-index: 0; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band .store-row { justify-content: center; }
.cta-band .tagline { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; margin-bottom: .2em; }
.cta-band .tagline em { font-style: normal; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 0; padding: 48px 0 40px; border-top: 1px solid var(--border); background: var(--bg-alt); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 12px; font-family: var(--font-body); font-weight: 700; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { color: var(--muted); text-decoration: none; display: inline-block; padding: 4px 0; }
.footer-grid a:hover { color: var(--accent); text-decoration: underline; }
.footer-brand p { color: var(--muted); max-width: 26em; margin-top: 14px; }
.footer-brand .tagline-small { font-family: var(--font-display); font-weight: 600; color: var(--text); }
.legal-small { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border); color: var(--faint); font-size: .82rem; line-height: 1.55; }
.legal-small p { margin-bottom: .5em; }

/* ---------- Inner pages ---------- */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 40em; }
.updated { display: inline-block; font-size: .9rem; color: var(--faint); margin-top: 6px; }

.legal-layout { padding-bottom: clamp(56px, 8vw, 96px); display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 960px) { .legal-layout { grid-template-columns: 1fr; gap: 24px; } }
.toc { position: sticky; top: 92px; padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); font-size: .92rem; max-height: calc(100vh - 120px); overflow: auto; }
@media (max-width: 960px) { .toc { position: static; max-height: none; } }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); font-family: var(--font-body); font-weight: 700; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.3em; color: var(--faint); }
.toc li { margin-bottom: 4px; }
.toc a { color: var(--muted); text-decoration: none; display: inline-block; padding: 2px 0; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.45rem, 3vw, 1.8rem); margin-top: 2.2em; padding-top: .2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.summary-box { padding: 22px 24px; border-radius: var(--radius-sm); background: var(--accent-soft); margin-bottom: 2em; }
.summary-box h2 { margin-top: 0 !important; font-size: 1.2rem !important; }
.summary-box ul { margin-bottom: 0; }
.summary-box li { color: var(--text); }
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--muted); }
.prose th { color: var(--text); font-weight: 650; background: var(--raised); }
.prose tr:last-child td { border-bottom: 0; }
.callout { padding: 16px 18px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin: 0 0 1.2em; }
.callout p:last-child { margin-bottom: 0; }

/* Details only Charlie can fill in. Deliberately easy to spot until replaced. */
.fill-in { background: var(--warn-soft); color: var(--text); padding: 0 .3em; border-radius: 4px; border-bottom: 2px dashed var(--warn); }

/* ---------- Support page ---------- */
.support-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
@media (max-width: 960px) { .support-grid { grid-template-columns: 1fr; } }
.quick-links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin: 0 0 8px; padding: 0; list-style: none; }
@media (max-width: 1100px) { .quick-links { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .quick-links { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .quick-links { grid-template-columns: 1fr; } }
.quick-links a { display: flex; align-items: center; gap: 12px; height: 100%; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; }
.quick-links a:hover { border-color: var(--accent); color: var(--text); }
.quick-links svg { width: 22px; height: 22px; color: var(--accent); flex: none; }

.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(22px, 4vw, 32px); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.6rem; }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 650; margin-bottom: 6px; color: var(--text); padding: 0; }
.field .hint { display: block; font-size: .88rem; color: var(--faint); margin: -2px 0 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; font-size: 1rem;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field .error { display: none; color: var(--danger); font-size: .9rem; font-weight: 600; margin-top: 6px; }
.field .error.show { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 3px; accent-color: var(--accent); flex: none; }
.counter { float: right; font-weight: 500; font-size: .85rem; color: var(--faint); }
.form-status { margin-top: 18px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--accent-soft); display: none; }
.form-status.show { display: block; }
.form-status p { margin-bottom: .6em; }
.form-status p:last-child { margin-bottom: 0; }
.copy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.copy-row code { font-size: 1rem; padding: 6px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.contact-direct { margin-top: 18px; font-size: .95rem; color: var(--muted); }
.notice { padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: .95rem; color: var(--muted); margin-top: 20px; }
.notice strong { color: var(--text); }
.steps-small { margin: 0 0 1em; padding-left: 1.3em; color: var(--muted); }
.steps-small li { margin-bottom: .4em; }

/* 404 */
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.not-found .big { font-family: var(--font-display); font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; color: var(--accent); line-height: 1; letter-spacing: -0.04em; margin-bottom: 12px; }
.not-found .btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .btn:active { transform: scale(.98); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .toc, .skip-link, .menu-toggle { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .legal-layout { display: block; }
  .prose p, .prose li, .prose td { color: #000; }
  a { color: #000; }
}

/* Small utilities (no inline styles, so the strict Content Security Policy works) */
.w5 { width: 5%; } .w6 { width: 6%; } .w9 { width: 9%; } .w13 { width: 13%; } .w16 { width: 16%; }
.w17 { width: 17%; } .w25 { width: 25%; } .w42 { width: 42%; } .w67 { width: 67%; }
.w8 { width: 8%; } .w10 { width: 10%; } .w15 { width: 15%; } .w40 { width: 40%; } .w46 { width: 46%; } .grow { flex: 1; }
.mt-28 { margin: 28px 0 0; }
.lead-cta { font-size: 1.15rem; margin-bottom: 28px; }
.mt-section { margin-top: 56px; }
.faq-col > h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin-bottom: 16px; }
.faq-col .faq { margin: 0; }
.faq-col .prose { max-width: none; }

/* Layout guards */
.hero { overflow: hidden; }
.legal-layout > *, .support-grid > *, .split > *, .hero-grid > * { min-width: 0; }
.toc a { display: inline; padding: 0; line-height: 1.5; }
@media (max-width: 640px) {
  .table-wrap { overflow: visible; border: 0; background: none; }
  .prose table { min-width: 0; }
  .prose table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose tr { margin-bottom: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); padding: 6px 0; }
  .prose td { border: 0; padding: 6px 16px; }
  .prose td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); margin-bottom: 2px; }
}
.store-soon { min-width: 230px; }
