/*
Theme Name: Heywaver
Theme URI: https://heywaver.com
Author: Heywaver
Description: Bespoke marketing theme for Heywaver — landing, privacy, and support pages. Warm, light, WCAG AA. Built from the heywaver-site-v2 source.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: heywaver
*/

/* =========================================================================
   Heywaver — marketing site design system
   Fonts: Urbanist (display) + Atkinson Hyperlegible (body)
   Light + dark via prefers-color-scheme; [data-theme] forces a scheme.
   All sizing in rem so the layout scales with the user's text size & zoom.
   ========================================================================= */

/* ---- Design tokens : LIGHT (default) ---------------------------------- */
:root {
  --bg:           #f3eee1;   /* cream                                      */
  --surface:      #ffffff;   /* cards / raised panels                      */
  --surface-2:    #fbf6e9;   /* warm secondary surface                     */
  --text:         #0a0a0a;   /* ink — primary text                         */
  --text-muted:   #6b6359;   /* muted text                                 */
  --text-faint:   #726959;   /* faint text (AA 4.5:1 on cream)             */
  --brand:        #cc4019;   /* brand orange — actions / fills (AA on white)*/
  --brand-hover:  #b8391a;
  --brand-ink:    #fdf6ec;   /* text that sits on a brand-orange fill      */
  --brand-text:   #b8431e;   /* deep orange for orange TEXT on cream (AA)  */
  --accent:       #e89a3c;   /* amber                                      */
  --accent-text:  #8a5604;   /* amber text on light                        */
  --border:       #e3d9c4;   /* hairline on cream                          */
  --border-strong:#d8ccb2;
  --card-bg:      #161616;   /* the "present" phrase-card canvas           */
  --card-text:    #fafafa;
  --shadow-sm:    0 1px 2px rgba(60, 42, 22, .06), 0 2px 8px rgba(60, 42, 22, .05);
  --shadow-md:    0 4px 14px rgba(60, 42, 22, .08), 0 14px 40px rgba(60, 42, 22, .08);
  --shadow-lg:    0 10px 30px rgba(40, 26, 12, .14), 0 30px 80px rgba(40, 26, 12, .12);
  --ring:         var(--text);
  --maxw:         72rem;
  --radius:       1.25rem;
  --radius-lg:    1.75rem;
  --radius-pill:  999px;
  --font-display: "Urbanist", system-ui, sans-serif;
  --font-body:    "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}

/* ---- Design tokens : DARK -------------------------------------------------
   The site defaults to the LIGHT (cream) brand look for everyone — it does NOT
   follow prefers-color-scheme. Dark is opt-in via the nav toggle, which sets
   [data-theme="dark"] on <html> (persisted to localStorage).                 */
:root[data-theme="dark"] {
  --bg:#0a0a0a; --surface:#161616; --surface-2:#1d1a16; --text:#fafafa;
  --text-muted:rgba(255,255,255,.72); --text-faint:rgba(255,255,255,.55);
  --brand:#f07a4a; --brand-hover:#f48a5e; --brand-ink:#160a04; --brand-text:#f49266;
  --accent:#e89a3c; --accent-text:#f0b56b;
  --border:rgba(255,255,255,.12); --border-strong:rgba(255,255,255,.20);
  --card-bg:#050505; --card-text:#fafafa;
  --shadow-sm:0 1px 2px rgba(0,0,0,.5); --shadow-md:0 6px 20px rgba(0,0,0,.5);
  --shadow-lg:0 14px 50px rgba(0,0,0,.6); color-scheme: dark;
}

/* ---- Reset / base ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.0625rem;            /* ~17px base */
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand-text); text-underline-offset: .18em; }
a:hover { color: var(--brand); }
ul, ol { list-style: none; padding: 0; }
:where(button, input) { font: inherit; color: inherit; }

/* ---- Focus: visible on every interactive element, both schemes -------- */
:where(a, button, input, [tabindex], summary):focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---- Skip link -------------------------------------------------------- */
.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--brand); color: var(--brand-ink);
  padding: .75rem 1.1rem; border-radius: .75rem; font-weight: 700;
  font-family: var(--font-display); text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; color: var(--brand-ink); }

/* ---- Layout ----------------------------------------------------------- */
.hw-container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.5rem; }
.section { padding-block: clamp(2.75rem, 6vw, 5rem); }
.section--tight { padding-block: clamp(2.75rem, 5vw, 4.5rem); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.center { text-align: center; margin-inline: auto; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 800; font-size: .8125rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-text);
  display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow.center { justify-content: center; }

/* Who it's for — clean list (no boxes) */
.who-row { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.who-list { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em;
  font-size: clamp(1.35rem, 2.7vw, 2rem); line-height: 1.32; color: var(--text); max-width: 26ch; }
@media (max-width: 56rem) { .who-row { grid-template-columns: 1fr; gap: 2rem; } }

/* ---- Type ------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
.h1 { font-size: clamp(2.6rem, 7vw, 4.75rem); }
.h2 { font-size: clamp(2rem, 4.5vw, 3.15rem); line-height: 1.05; }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 700; letter-spacing: -.01em; }
.lede { font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--text-muted); line-height: 1.5; }
.muted { color: var(--text-muted); }
.prose p { margin-block: 1rem; }
.balance { text-wrap: balance; }
.brandword { color: var(--brand-text); }

/* ---- Buttons ---------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem;
  line-height: 1; text-decoration: none; cursor: pointer;
  padding: .95rem 1.5rem; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 2px solid var(--btn-bd);
  transition: transform .14s ease, background .14s ease, border-color .14s ease, box-shadow .14s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--brand); --btn-fg: var(--brand-ink); --btn-bd: var(--brand); box-shadow: var(--shadow-sm); }
.btn--primary:hover { --btn-bg: var(--brand-hover); --btn-bd: var(--brand-hover); color: var(--brand-ink); box-shadow: var(--shadow-md); }
.btn--secondary { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--border-strong); }
.btn--secondary:hover { --btn-bd: var(--text); color: var(--text); }
.btn--ghost { --btn-bg: transparent; --btn-bd: transparent; padding-inline: .5rem; }
.btn--sm { padding: .65rem 1.05rem; font-size: .98rem; }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.15rem; }
.btn--block { width: 100%; }

/* ---- Pills / badges --------------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  letter-spacing: .02em; padding: .4rem .85rem; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--text-muted);
  border: 1px solid var(--border);
}
.pill__dot { inline-size: .55rem; block-size: .55rem; border-radius: 50%; background: var(--brand); }
.pill--brand { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); color: var(--brand-text); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }

/* ---- Navigation ------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav[data-scrolled="true"] { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--brand-text);
}
.brand:hover { color: var(--brand); }
.brand__mark { width: 3.1rem; height: auto; color: inherit; }
.brand__name {
  font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  letter-spacing: -.01em; color: var(--text);
}
.nav__spacer { flex: 1; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a:not(.btn) {
  text-decoration: none; color: var(--text-muted); font-weight: 700;
  font-family: var(--font-display); font-size: 1rem;
}
.nav__links a:not(.btn):hover { color: var(--text); }
.nav__toggle { display: none; }

@media (max-width: 60rem) {
  .nav__links {
    position: absolute; inset: 4.5rem .75rem auto .75rem;
    flex-direction: column; align-items: stretch; gap: .25rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: .75rem; box-shadow: var(--shadow-lg);
  }
  .nav__links a:not(.btn) { padding: .85rem 1rem; border-radius: .8rem; }
  .nav__links a:not(.btn):hover { background: var(--surface-2); }
  .nav__links .btn { margin-top: .35rem; }
  .nav__links[hidden] { display: none; }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 3rem; height: 3rem; border-radius: .8rem;
    background: var(--surface); border: 1px solid var(--border-strong); cursor: pointer;
  }
  .nav__toggle svg { width: 1.5rem; height: 1.5rem; }
}

/* ---- Hero ------------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(3rem, 7vw, 6rem); overflow: clip; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__mark { width: clamp(5.5rem, 9vw, 8rem); color: var(--brand-text); margin-bottom: 1.5rem; }
.hero__title { margin-block: .25rem .9rem; }
.hero__sub { max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.9rem; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.6rem; color: var(--text-muted); font-size: .95rem; }
.hero__glow { position: absolute; pointer-events: none; z-index: -1; filter: blur(60px); opacity: .55; }
.hero__glow--1 { width: 32rem; height: 32rem; right: -10rem; top: -8rem;
  background: radial-gradient(circle at center, var(--brand) 0%, transparent 62%); }
.hero__glow--2 { width: 26rem; height: 26rem; left: -12rem; bottom: -10rem;
  background: radial-gradient(circle at center, var(--accent) 0%, transparent 62%); opacity: .4; }

/* ---- Phone mockup + phrase card -------------------------------------- */
.device-wrap { display: grid; place-items: center; position: relative; }
.device {
  width: min(19rem, 76vw); aspect-ratio: 9 / 19;
  background: linear-gradient(160deg, #2a2a2a, #0c0c0c);
  border-radius: 2.6rem; padding: .55rem;
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.06);
  position: relative; z-index: 2;
}
.device::before { /* speaker */
  content: ""; position: absolute; top: .95rem; left: 50%; transform: translateX(-50%);
  width: 4.5rem; height: .35rem; border-radius: 999px; background: rgba(255,255,255,.18); z-index: 3;
}
.device__screen {
  position: relative; height: 100%; border-radius: 2.15rem; overflow: hidden;
  background: var(--card-bg); color: var(--card-text);
  display: flex; flex-direction: column; padding: 2.2rem 1.35rem 1.25rem;
}
.card__mode {
  font-family: var(--font-display); font-weight: 800; font-size: .72rem;
  letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.62);
  text-align: center;
}
.card__mode-rule { display: block; width: 2.2rem; height: .18rem; background: var(--brand); border-radius: 2px; margin: .55rem auto 0; }
/* hero card auto-cycle crossfade (JS swaps text while opacity is 0) */
.card__mode, .card__phrase { transition: opacity .3s ease; }
.device[data-swapping="true"] .card__mode,
.device[data-swapping="true"] .card__phrase { opacity: 0; }
.card__phrase {
  font-family: var(--font-display); font-weight: 800; line-height: 1.12;
  letter-spacing: -.015em; font-size: clamp(1.6rem, 6.2vw, 2.05rem);
  margin: auto 0; text-align: center; color: #fff;
}
.card__foot { text-align: center; margin-top: .9rem; color: rgba(255,255,255,.4); font-size: .72rem; font-family: var(--font-display); font-weight: 700; letter-spacing: .04em; }
.card__foot b { color: var(--brand); letter-spacing: .08em; }

/* floating mini-cards beside the phone */
.float-card {
  position: absolute; z-index: 5; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 1rem; padding: .7rem .9rem;
  box-shadow: var(--shadow-md); font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; display: flex; align-items: center; gap: .55rem; width: max-content; max-width: 13rem;
}
.float-card small { display: block; font-weight: 700; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-text); margin-bottom: .1rem; }
.float-card--a { top: 9%; left: -2rem; }
.float-card--b { bottom: 10%; right: -1.25rem; }
@media (max-width: 56rem) { .float-card { display: none; } }

/* ---- Generic surfaces / cards ---------------------------------------- */
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
}
.panel--warm { background: var(--surface-2); }

/* ---- "How it works" steps -------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.9rem; height: 2.9rem; border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 14%, var(--surface));
  color: var(--brand-text); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
  border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent); margin-bottom: 1.1rem;
}
.step h3 { margin-bottom: .4rem; }

/* ---- Merged "What it is · How it works" compact row ------------------- */
.lead-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.lead-statement { max-width: 36rem; font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.42; color: var(--text); margin-top: .25rem; }
.how-lead { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; margin: .2rem 0 1.2rem; }
.steps-min { display: grid; gap: 1.05rem; }
.steps-min li { display: grid; grid-template-columns: auto 1fr; gap: .85rem; align-items: start; }
.steps-min .num {
  width: 1.85rem; height: 1.85rem; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--brand-text);
  background: color-mix(in srgb, var(--brand) 13%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent);
}
.steps-min b { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; display: block; line-height: 1.2; }
.steps-min .t { display: block; color: var(--text-muted); font-size: .95rem; margin-top: .1rem; }
@media (max-width: 56rem) { .lead-row { grid-template-columns: 1fr; gap: 2.5rem; } }

/* Modes folded into a slim strip */
.mode-strip-row { margin-top: clamp(1.8rem, 3.5vw, 2.6rem); padding-top: 1.7rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem .7rem; }
.mode-strip-row .lbl { font-family: var(--font-display); font-weight: 800; font-size: .95rem; color: var(--text-muted); margin-right: .3rem; }
.mpill { font-family: var(--font-display); font-weight: 700; font-size: .95rem; padding: .45rem 1rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border-strong); color: var(--text); }

/* Who-it's-for + Privacy paired two-up */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; align-items: stretch; }
.two-up > * { border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); display: flex; flex-direction: column; }
.two-up h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tu-light { background: var(--surface); border: 1px solid var(--border); }
.tu-dark { background: #2c2118; color: #fff; }
.tu-dark .facts { margin-top: 1.2rem; display: grid; grid-template-columns: max-content max-content; gap: .5rem .55rem; }
.tu-light .stamp { align-self: flex-start; margin-top: 1.4rem; padding: 1.1rem 1.4rem; }
.tu-light .stamp svg { width: 2rem; }
.tu-dark .tu-link { margin-top: 1.35rem; }
.who-list-sm { color: var(--text-muted); font-size: 1.1rem; line-height: 1.45; margin-top: .4rem; max-width: 34ch; }
@media (max-width: 56rem) { .two-up { grid-template-columns: 1fr; } }

/* Theme toggle button (light default; toggles [data-theme="dark"]) */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem;
  flex: none; border-radius: .8rem; background: transparent; border: 1px solid var(--border-strong); color: var(--text);
  cursor: pointer; transition: background .14s ease, border-color .14s ease; }
.theme-toggle:hover { background: var(--surface-2); border-color: var(--text); }
.theme-toggle svg { width: 1.3rem; height: 1.3rem; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: inline; }

/* Modes shown as a visual row of phrase cards */
.mode-cards-wrap { margin-top: clamp(1.8rem, 3.5vw, 2.6rem); padding-top: 1.7rem; border-top: 1px solid var(--border); }
.mc-label { font-family: var(--font-display); font-weight: 800; color: var(--text-muted); margin-bottom: 1rem; font-size: 1rem; }
.mode-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: .85rem; }
.vcard { border: 1px solid var(--border); border-radius: 1rem; padding: 1rem 1.05rem; color: var(--text);
  min-height: 7.2rem; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-sm); }
.vcard small { font-family: var(--font-display); font-weight: 800; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-text); }
.vcard b { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; line-height: 1.18; }
/* light mode: soft varied warm tints */
:root:not([data-theme="dark"]) .vcard:nth-child(1) { background: #fbf6e9; }
:root:not([data-theme="dark"]) .vcard:nth-child(2) { background: #f7e6d6; }
:root:not([data-theme="dark"]) .vcard:nth-child(3) { background: #fdeede; }
:root:not([data-theme="dark"]) .vcard:nth-child(4) { background: #f4e7cf; }
:root:not([data-theme="dark"]) .vcard:nth-child(5) { background: #f9ead9; }
/* dark mode: warm espresso (not black) */
:root[data-theme="dark"] .vcard { background: #2c2118; border-color: rgba(255,255,255,.08); box-shadow: var(--shadow-md); }

/* Step icon tiles (replace the number badges) */
.step-ic { flex: none; width: 2.6rem; height: 2.6rem; border-radius: .8rem; display: grid; place-items: center; color: var(--brand-text);
  background: color-mix(in srgb, var(--brand) 13%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 24%, transparent); }
.step-ic svg { width: 1.4rem; height: 1.4rem; }

/* Wave divider (the "heywaver" wave) */
.wave-divider { display: block; width: 100%; height: 30px; color: var(--brand); opacity: .42; }
.wave-divider svg { width: 100%; height: 100%; display: block; }
@media (max-width: 56rem) { .mode-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 30rem) { .mode-cards { grid-template-columns: 1fr; } }

/* ---- Modes ------------------------------------------------------------ */
.modes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.mode {
  display: flex; align-items: center; gap: .85rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm);
  transition: transform .14s ease, border-color .14s ease;
}
.mode:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.mode__icon {
  flex: none; width: 2.8rem; height: 2.8rem; border-radius: .9rem;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 22%, var(--surface));
  color: var(--accent-text);
}
.mode__icon svg { width: 1.5rem; height: 1.5rem; }
.mode__name { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.mode__desc { color: var(--text-muted); font-size: .92rem; line-height: 1.4; }
.mode--make {
  background: transparent; border-style: dashed; border-color: var(--border-strong);
  box-shadow: none;
}
.mode--make .mode__icon { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); color: var(--brand-text); }

/* ---- Who it's for ----------------------------------------------------- */
.audience { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .9rem; }
.aud {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem 1.3rem;
}
.aud h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.aud p { color: var(--text-muted); font-size: .96rem; }
.stamp {
  display: inline-flex; align-items: center; gap: .9rem;
  background: var(--brand); color: var(--brand-ink);
  border-radius: var(--radius-lg); padding: 1.4rem 1.8rem; box-shadow: var(--shadow-md);
}
.stamp svg { width: 2.4rem; height: auto; color: var(--brand-ink); flex: none; }
.stamp b { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.01em; }
.stamp span { color: color-mix(in srgb, var(--brand-ink) 80%, var(--brand)); font-size: .98rem; }

/* ---- Privacy teaser band --------------------------------------------- */
.band {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem);
  box-shadow: var(--shadow-md);
}
.band--ink { background: var(--card-bg); border: none; color: var(--card-text); }
.band--ink .lede, .band--ink .muted { color: rgba(255,255,255,.74); }
.band--ink a { color: #ffd9c7; }
.facts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.fact {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px; padding: .5rem .95rem; font-family: var(--font-display);
  font-weight: 700; font-size: .92rem;
}
.fact svg { width: 1.05rem; height: 1.05rem; color: var(--brand); }

/* ---- Accessibility list ---------------------------------------------- */
.a11y-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.5rem; }
.a11y-item { display: flex; gap: .75rem; align-items: flex-start; }
.a11y-item .tick {
  flex: none; width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 16%, var(--surface));
  color: var(--brand-text); display: grid; place-items: center; margin-top: .1rem;
}
.a11y-item .tick svg { width: 1rem; height: 1rem; }
.a11y-item h3 { font-size: 1.05rem; }
.a11y-item p { color: var(--text-muted); font-size: .92rem; }

/* ---- CTA / launch ----------------------------------------------------- */
.launch { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.launch__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.waitlist { margin-top: 1.4rem; }
.field-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.input {
  flex: 1 1 14rem; min-width: 0;
  background: var(--surface); border: 2px solid var(--border-strong);
  border-radius: var(--radius-pill); padding: .9rem 1.2rem; color: var(--text);
}
.input::placeholder { color: var(--text-faint); }
.input:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-color: var(--brand); }
.form-note { margin-top: .7rem; font-size: .85rem; color: var(--text-muted); }
.form-confirm {
  margin-top: 1rem; display: none; align-items: center; gap: .6rem;
  background: color-mix(in srgb, var(--brand) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
  color: var(--brand-text); border-radius: var(--radius); padding: .85rem 1.1rem;
  font-family: var(--font-display); font-weight: 700;
}
.form-confirm[data-show="true"] { display: flex; }
.form-confirm svg { width: 1.25rem; height: 1.25rem; flex: none; }

.store-card { display: grid; place-items: center; }
.store-card .panel { width: auto; max-width: 21rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.1rem; }
.appstore-badge {
  display: inline-flex; align-items: center; gap: .85rem;
  background: var(--card-bg); color: #fff; border-radius: 1rem;
  padding: .85rem 1.4rem; position: relative; border: 1px solid rgba(255,255,255,.14);
  text-decoration: none; cursor: not-allowed;
}
.appstore-badge svg { width: 2.1rem; height: 2.1rem; flex: none; color: #fff; }
.appstore-badge small { display: block; font-size: .68rem; letter-spacing: .04em; opacity: .8; font-family: var(--font-body); }
.appstore-badge b { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; line-height: 1.1; }
.appstore-badge .soon {
  position: absolute; top: -.7rem; right: -.7rem; background: var(--accent); color: #160a04;
  font-family: var(--font-display); font-weight: 800; font-size: .62rem; letter-spacing: .08em;
  text-transform: uppercase; padding: .2rem .5rem; border-radius: 999px; border: 2px solid var(--bg);
}

/* ---- Footer ----------------------------------------------------------- */
.footer { padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem; }
.footer__grid { display: flex; flex-wrap: wrap; gap: 2rem 3rem; justify-content: space-between; align-items: flex-start; }
.footer__brandline { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.01em; margin-top: 1rem; }
.footer__brandline .brandword { color: var(--brand-text); }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; }
.footer__links a { color: var(--text-muted); text-decoration: none; font-family: var(--font-display); font-weight: 700; }
.footer__links a:hover { color: var(--text); }
.footer__bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between;
  color: var(--text-muted); font-size: .9rem; }

/* ---- Policy / text pages --------------------------------------------- */
.doc { max-width: 46rem; margin-inline: auto; padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: .4rem; }
.doc .updated { color: var(--text-muted); font-family: var(--font-display); font-weight: 700; font-size: .95rem; margin-bottom: 2rem; }
.doc h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-top: 2.4rem; margin-bottom: .5rem; }
.doc p { margin-block: .85rem; color: var(--text); max-width: 70ch; }
.doc .lead { font-size: 1.2rem; color: var(--text-muted); }
.doc ul.bullets { display: grid; gap: .65rem; margin: .9rem 0; }
.doc ul.bullets li { position: relative; padding-left: 1.6rem; color: var(--text); max-width: 70ch; }
.doc ul.bullets li::before { content: ""; position: absolute; left: .25rem; top: .65em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--brand); }
.doc .faq { display: grid; gap: 1rem; margin-top: .5rem; }
.doc .faq dt { font-family: var(--font-display); font-weight: 800; font-size: 1.08rem; margin-bottom: .15rem; }
.doc .faq dd { color: var(--text-muted); }
.callout {
  background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--brand);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1.5rem 0; color: var(--text-muted);
}
.callout b { color: var(--text); }

/* ---- Utilities -------------------------------------------------------- */
.flow > * + * { margin-top: 1rem; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 64rem) {
  .a11y-list, .modes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 56rem) {
  .hero__grid { grid-template-columns: 1fr; }
  .device-wrap { order: -1; }
  .launch__grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .a11y-list { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  .hw-container { padding-inline: 1.4rem; }
  .modes-grid, .audience { grid-template-columns: 1fr; }
  .hero__cta .btn, .field-row .btn { width: 100%; }
  .field-row .input { flex-basis: 100%; }
  .footer__bottom { flex-direction: column; }
}

/* =========================================================================
   CLOSING ZONE (v2) — product reveal w/ real app screenshots · outcome CTA bar
   Scoped to .closing* / .cta-bar* so the rest of the design system is untouched.
   ========================================================================= */
.closing { background: radial-gradient(125% 115% at 90% 0%, #fae6d3 0%, var(--surface-2) 32%, var(--bg) 68%); }
.closing__intro { max-width: 52ch; margin: 0 auto; text-align: center; }
.closing__h { font-size: clamp(2.4rem, 5.2vw, 3.6rem); line-height: 1.0; letter-spacing: -.025em; margin: .5rem 0 .8rem; }
.closing__sub { font-size: 1.18rem; color: var(--text-muted); line-height: 1.5; margin: 0 auto; max-width: 40ch; }
.closing__trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.3rem;
  padding: 0; margin: 1.5rem 0 0; font-family: var(--font-display); font-weight: 700; font-size: .92rem; color: var(--text-muted); }
.closing__trust li { display: flex; align-items: center; gap: .55rem; }
.closing__trust li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* ---- real-app product tour (3 framed screenshots) ---- */
.closing__tour { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 3.5vw, 2.6rem);
  margin-top: clamp(2.4rem, 5vw, 3.6rem); justify-items: center; align-items: start; }
.device { margin: 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.device__frame { width: 100%; max-width: 230px; aspect-ratio: 1320 / 2633; border-radius: 2.1rem;
  background: #0c0c0c; padding: 8px; box-shadow: 0 32px 64px -24px rgba(70,35,12,.45); overflow: hidden; }
.device__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top;
  border-radius: 1.55rem; display: block; background: var(--surface-2); }
.device figcaption { font-family: var(--font-display); font-weight: 700; font-size: .98rem;
  color: var(--text-muted); text-align: center; }

/* ---- outcome CTA bar ---- */
.closing-cta { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem); }
.cta-bar { background: var(--brand); color: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  padding: clamp(2rem, 4vw, 3.2rem) clamp(1.8rem, 4vw, 3rem);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.cta-bar__lead h2 { margin: 0; font-size: clamp(1.8rem, 3.8vw, 2.7rem); letter-spacing: -.02em; }
.cta-bar__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.cta-bar__btn { background: #fff; color: var(--brand); border-color: #fff; }
.cta-bar__btn:hover { background: #fff; color: var(--brand); transform: translateY(-1px); }
.cta-bar__form { margin-top: 1rem; width: 100%; }
.cta-bar__form .input { background: rgba(255,255,255,.96); border-color: transparent; }
.cta-bar__notify { background: rgba(0,0,0,.22); color: #fff; border: 1.5px solid rgba(255,255,255,.55); }
.cta-bar__notify:hover { background: rgba(0,0,0,.32); }
.cta-bar__note { color: rgba(255,255,255,.82) !important; }
.cta-bar .form-confirm { color: #fff; }

/* ---- footer community line (moved here from the old two-up) ---- */
.footer__community { font-family: var(--font-body); font-size: .95rem; color: var(--text-muted);
  line-height: 1.45; margin: .7rem 0 0; max-width: 30rem; }

@media (max-width: 60rem) {
  .cta-bar { grid-template-columns: 1fr; gap: 1.4rem; text-align: center; }
  .cta-bar__actions { align-items: stretch; }
}
@media (max-width: 48rem) {
  .closing__tour { grid-template-columns: 1fr; }
  .device__frame { max-width: 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-bar__btn { transition: none; }
}
