/* ==========================================================================
   Sertiv marketing site
   Hand-written CSS. Light + dark themes via [data-theme] on <html>.
   Palette mirrors the app (sertiv-mobile lib/theme).
   ========================================================================== */

/* ----- Design tokens ----------------------------------------------------- */
:root {
  /* Brand constants (theme-independent) */
  --brand-blue: #2e86c1;
  --brand-forest: #185b4f;      /* logo tile / deep accent */
  --brand-green: #4a9b81;       /* sea-forest accent */

  /* Life-area semantic colors */
  --area-career: #2e86c1;
  --area-health: #1e8449;
  --area-finance: #d68910;
  --area-growth: #7d3c98;
  --area-relationships: #c0392b;
  --area-creativity: #148f77;

  /* Type */
  --font-sans: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  /* Spacing / shape */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --maxw: 1120px;
  --pad-x: clamp(20px, 5vw, 48px);

  color-scheme: light dark;
}

/* Light (warm paper) — default */
:root,
[data-theme="light"] {
  --bg: #f7f4f1;
  --bg-tint: #efe9e2;
  --surface: #ffffff;
  --surface-2: #f3eee8;
  --border: #e4ddd3;
  --border-strong: #d4c9ba;
  --text: #1a1a1a;
  --text-2: #5c5852;
  --text-3: #8a847b;
  --accent: #185b4f;             /* deep forest for contrast on light */
  --accent-text: #ffffff;
  --accent-soft: #e7f0ec;
  --shadow: 0 1px 2px rgba(26, 22, 18, 0.04), 0 8px 24px rgba(26, 22, 18, 0.06);
  --shadow-lg: 0 2px 6px rgba(26, 22, 18, 0.06), 0 24px 56px rgba(26, 22, 18, 0.12);
  --hero-glow: radial-gradient(60% 50% at 70% 0%, rgba(74, 155, 129, 0.16), transparent 70%);
}

/* Dark (dim forest) — canonical app theme */
[data-theme="dark"] {
  --bg: #1c1c1f;
  --bg-tint: #161618;
  --surface: #2a2a2f;
  --surface-2: #232327;
  --border: #34343a;
  --border-strong: #44444c;
  --text: #f0efed;
  --text-2: #a8a8ad;
  --text-3: #76767c;
  --accent: #4a9b81;             /* brighter sea-forest on dark */
  --accent-text: #0f1f1a;
  --accent-soft: #21342d;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 56px rgba(0, 0, 0, 0.5);
  --hero-glow: radial-gradient(60% 50% at 70% 0%, rgba(74, 155, 129, 0.18), transparent 70%);
}

/* ----- Reset / base ------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 680;
}

p { margin: 0; }

::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }

:focus-visible {
  outline: 2.5px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ----- Layout helpers ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 640;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
[data-theme="light"] .eyebrow { color: var(--brand-forest); }

.section-head { max-width: 660px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  margin-top: 14px;
}
.section-head p {
  margin-top: 16px;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--text-2);
}

.lede { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--text-2); }

/* ----- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 620;
  font-size: 0.98rem;
  line-height: 1;
  transition: transform 0.12s ease, background-color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: var(--shadow);
}
.btn--primary:hover { box-shadow: var(--shadow-lg); filter: brightness(1.04); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--text-3); }

.btn--block { width: 100%; }
.btn--lg { padding: 16px 28px; font-size: 1.04rem; }

/* ----- Header / nav ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); }

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.18rem;
  margin-right: auto;
}
.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a {
  padding: 8px 13px;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 520;
  color: var(--text-2);
  transition: color 0.18s ease, background-color 0.18s ease;
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  display: inline-grid;
  place-items: center;
  transition: color 0.18s, border-color 0.18s, background-color 0.18s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav__menu-btn {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  place-items: center;
}
.nav__menu-btn svg { width: 20px; height: 20px; }

/* ----- Hero -------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; padding-top: clamp(40px, 6vw, 72px); }
.hero::before {
  content: "";
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 620px;
  background: var(--hero-glow);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  font-weight: 720;
  letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--accent); }
[data-theme="light"] .hero h1 .accent { color: var(--brand-forest); }
.hero__sub {
  margin-top: 22px;
  max-width: 540px;
  font-size: clamp(1.08rem, 1.9vw, 1.3rem);
  color: var(--text-2);
}
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__note {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Phone mockup — realistic iPhone (titanium frame, Dynamic Island) */
.phone {
  --phone-w: 298px;
  --frame: 11px;
  position: relative;
  width: var(--phone-w);
  margin-inline: auto;
  aspect-ratio: 298 / 612;
  border-radius: 55px;
  padding: var(--frame);
  background: linear-gradient(145deg, #58585f 0%, #2c2c31 16%, #4c4c53 48%,
    #232327 80%, #4a4a51 100%);
  box-shadow: var(--shadow-lg),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14),
    inset 0 0 0 3px rgba(0, 0, 0, 0.55);
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 45px;
  background: var(--bg);
  border: 1px solid rgba(0, 0, 0, 0.55);
  padding: 42px 14px 22px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.phone__screen::after { /* glass glare */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.07), transparent 42%);
  pointer-events: none;
  z-index: 4;
}
.phone__island { /* Dynamic Island */
  position: absolute;
  top: 11px; left: 50%;
  transform: translateX(-50%);
  width: 86px; height: 25px;
  background: #000;
  border-radius: 999px;
  z-index: 6;
}
.phone__statusbar {
  position: absolute;
  top: 14px; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 21px;
  font-size: 0.72rem;
  font-weight: 660;
  color: var(--text);
  z-index: 6;
}
.phone__statusbar .s-icons { display: flex; align-items: center; gap: 5px; }
.phone__statusbar svg { height: 11px; width: auto; display: block; color: var(--text); }
.phone__home { /* home indicator */
  position: absolute;
  bottom: 8px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 5px;
  border-radius: 999px;
  background: var(--text);
  opacity: 0.3;
  z-index: 6;
}
.phone__btn { /* side buttons */
  position: absolute;
  background: linear-gradient(180deg, #4e4e55, #26262a);
  z-index: 1;
}
.phone__btn--action { left: -2px; top: 118px; width: 3px; height: 28px; border-radius: 3px 0 0 3px; }
.phone__btn--vup   { left: -3px; top: 164px; width: 4px; height: 48px; border-radius: 3px 0 0 3px; }
.phone__btn--vdown { left: -3px; top: 224px; width: 4px; height: 48px; border-radius: 3px 0 0 3px; }
.phone__btn--power { right: -3px; top: 188px; width: 4px; height: 70px; border-radius: 0 3px 3px 0; }
/* App screen — faithful recreation of the Sertiv chat + morning card */
.app { display: flex; flex-direction: column; height: 100%; width: 100%; }

.app__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2px 10px;
}
.app__title { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text); line-height: 1.05; }
.app__subtitle { font-size: 0.64rem; color: var(--text-2); margin-top: 2px; }
.app__avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--app-elevated);
  display: grid; place-items: center;
  font-size: 0.64rem; font-weight: 660; color: var(--text-2);
}

.app__body { flex: 1; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.app__body > * { flex-shrink: 0; } /* keep cards whole; clip only the last bubble, like the real chat */

/* Morning card */
.mcard {
  position: relative;
  background: var(--mc-bg);
  border-radius: 12px;
  padding: 12px 13px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mcard::before { /* left accent stripe */
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--mc-stripe);
}
.mcard__label { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.mcard__spark { color: var(--mc-accent); font-size: 0.72rem; font-weight: 700; line-height: 1; }
.mcard__title { color: var(--mc-accent); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.09em; }
.mcard__controls { margin-left: auto; display: flex; align-items: center; gap: 9px; color: var(--mc-muted); }
.mcard__controls svg { width: 13px; height: 13px; display: block; }
.mcard__headline { color: var(--mc-headline); font-size: 0.9rem; font-weight: 700; line-height: 1.28; margin-bottom: 7px; }
.mcard__text { color: var(--mc-text); font-size: 0.71rem; line-height: 1.45; margin-bottom: 5px; }
.mcard__divider { height: 1px; background: var(--mc-divider); margin: 9px -13px; }
.mcard__footer { display: flex; align-items: center; justify-content: space-between; }
.mcard__cta {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--mc-cta-bg); color: var(--mc-cta-text);
  font-size: 0.68rem; font-weight: 660;
  padding: 6px 12px; border-radius: 999px;
}
.mcard__cta svg { width: 13px; height: 13px; }
.mcard__why { color: var(--mc-muted); font-size: 0.68rem; font-weight: 500; }

/* Morning voice note */
.vnote {
  align-self: flex-start;
  max-width: 80%;
  display: flex; align-items: center; gap: 10px;
  background: var(--vn-bg);
  border-radius: 12px;
  padding: 10px 12px;
}
.vnote__play {
  width: 30px; height: 30px; border-radius: 50%;
  flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--vn-play); border: 1.5px solid var(--vn-play-ring);
}
.vnote__play svg { width: 13px; height: 13px; margin-left: 1px; }
.vnote__body { flex: 1; min-width: 0; }
.vnote__wave { width: 100%; height: 26px; color: var(--vn-wave); }
.vnote__wave svg { width: 100%; height: 100%; display: block; }
.vnote__row { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 0.58rem; white-space: nowrap; }
.vnote__label { display: inline-flex; align-items: center; gap: 4px; color: var(--mc-accent); font-weight: 640; white-space: nowrap; }
.vnote__label svg { width: 11px; height: 11px; }
.vnote__time { color: var(--vn-muted); }
.vnote__dur { margin-left: auto; color: var(--vn-muted); font-variant-numeric: tabular-nums; }

/* Chat bubbles */
.brow { display: flex; }
.brow--user { justify-content: flex-end; }
.brow--ai { justify-content: flex-start; }
.bubble { max-width: 82%; font-size: 0.74rem; line-height: 1.42; padding: 8px 11px; box-shadow: var(--bub-shadow); }
.bubble--user { background: var(--bub-user); color: #fff; border-radius: 15px 15px 4px 15px; }
.bubble--ai { background: var(--bub-ai); color: var(--bub-ai-text); border-radius: 15px 15px 15px 4px; }
.bubble b { font-weight: 660; }

/* Input bar */
.app__input { display: flex; align-items: center; gap: 8px; padding-top: 9px; }
.app__field {
  flex: 1;
  background: var(--app-elevated);
  border-radius: 18px;
  padding: 9px 14px;
  font-size: 0.73rem; color: var(--text-3);
  box-shadow: var(--shadow);
}
.app__send {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--app-send); color: var(--app-send-icon);
  display: grid; place-items: center; flex-shrink: 0;
}
.app__send svg { width: 15px; height: 15px; }

/* Tab bar (floating pill) */
.app__tabs {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
  background: var(--tab-bg);
  border: 1px solid var(--tab-border);
  border-radius: 19px;
  padding: 3px 5px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  color: var(--text-2); font-size: 0.52rem; font-weight: 600;
  padding: 3px 0; border-radius: 14px;
}
.tab svg { width: 15px; height: 15px; }
.tab--active { color: var(--tab-active); background: var(--tab-chip); }

/* App-screen theme tokens (switch with the page theme) */
[data-theme="light"] .phone__screen {
  --mc-bg: #185b4f; --mc-stripe: #4a9b81; --mc-accent: #e8c977;
  --mc-headline: #ffffff; --mc-text: #d7ecdc; --mc-muted: #a6c2b1;
  --mc-divider: rgba(255, 255, 255, 0.14);
  --mc-cta-bg: #e8f5dc; --mc-cta-text: #0f3d33;
  --vn-bg: #ffffff; --vn-play: #185b4f; --vn-play-ring: rgba(24, 91, 79, 0.35);
  --vn-wave: #b9c8bd; --vn-muted: #8a948c;
  --bub-user: #0f3d33; --bub-ai: #ffffff; --bub-ai-text: #2b2b2b;
  --bub-shadow: 0 1px 2px rgba(26, 22, 18, 0.07), 0 5px 14px rgba(26, 22, 18, 0.11);
  --app-elevated: #ffffff; --app-send: #185b4f; --app-send-icon: #ffffff;
  --tab-bg: rgba(247, 244, 241, 0.92); --tab-border: rgba(0, 0, 0, 0.05);
  --tab-active: #185b4f; --tab-chip: rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .phone__screen {
  --mc-bg: #28302c; --mc-stripe: #4a9b81; --mc-accent: #d9a155;
  --mc-headline: #f4f4f2; --mc-text: #c4c6c4; --mc-muted: #8c8f8b;
  --mc-divider: rgba(255, 255, 255, 0.08);
  --mc-cta-bg: #3f8e74; --mc-cta-text: #ffffff;
  --vn-bg: #2a2a2f; --vn-play: #ededf0; --vn-play-ring: rgba(255, 255, 255, 0.28);
  --vn-wave: #7a7a82; --vn-muted: #9a9aa0;
  --bub-user: #2d5a4e; --bub-ai: #2a2a2f; --bub-ai-text: #ececec;
  --bub-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 16px rgba(0, 0, 0, 0.45);
  --app-elevated: #222226; --app-send: #3f8e74; --app-send-icon: #ffffff;
  --tab-bg: rgba(40, 40, 46, 0.6); --tab-border: rgba(255, 255, 255, 0.1);
  --tab-active: #f0efed; --tab-chip: rgba(255, 255, 255, 0.08);
}

/* ----- Logos / trust row ------------------------------------------------- */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 0.86rem;
  font-weight: 540;
}
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--accent); }

/* ----- Problem strip ----------------------------------------------------- */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.problem {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.problem h3 { font-size: 1.05rem; margin-bottom: 8px; }
.problem p { font-size: 0.95rem; color: var(--text-2); }

/* ----- Feature cards ----------------------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.feature {
  grid-column: span 6;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.feature--wide { grid-column: span 6; }
.feature--lead {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.feature__icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 16px;
}
[data-theme="light"] .feature__icon { color: var(--brand-forest); }
.feature__icon svg { width: 23px; height: 23px; }
.feature h3 { font-size: 1.22rem; margin-bottom: 9px; }
.feature p { color: var(--text-2); font-size: 0.98rem; }

.feature--lead h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.feature--lead .feature__demo {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.demo-bubble {
  background: var(--brand-forest);
  color: #fff;
  border-radius: 16px 16px 4px 16px;
  padding: 12px 14px;
  font-size: 0.9rem;
  margin: 0 0 10px auto;
  max-width: 85%;
}
.demo-reply {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
  padding: 12px 14px;
  font-size: 0.9rem;
  max-width: 90%;
  color: var(--text);
}
.demo-reply .hl { color: var(--accent); font-weight: 600; }
[data-theme="light"] .demo-reply .hl { color: var(--brand-forest); }

/* ----- Life areas -------------------------------------------------------- */
.areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}
.area {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}
.area::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--area);
}
.area__icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  margin-bottom: 14px;
  background: color-mix(in srgb, var(--area) 16%, transparent);
  color: var(--area);
}
.area__icon svg { width: 20px; height: 20px; }
.area h3 { font-size: 1.02rem; margin-bottom: 5px; }
.area p { font-size: 0.86rem; color: var(--text-2); }

/* ----- Timeline (Day 1/30/90) -------------------------------------------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.step__tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 660;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
[data-theme="light"] .step__tag { color: var(--brand-forest); }
.step h3 { font-size: 1.2rem; margin-bottom: 9px; }
.step p { color: var(--text-2); font-size: 0.96rem; }

/* ----- Pricing ----------------------------------------------------------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 820px;
  margin-inline: auto;
}
.pricing-note {
  max-width: 660px;
  margin: 24px auto 0;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-3);
}
.pricing-note a { color: var(--text-2); text-decoration: underline; }
.pricing-note a:hover { color: var(--text); }
.plan {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.plan--pro {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.plan__badge {
  position: absolute;
  top: -12px; right: 24px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.74rem;
  font-weight: 680;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.plan h3 { font-size: 1.15rem; }
.plan__price { margin: 14px 0 4px; font-size: 2.6rem; font-weight: 720; letter-spacing: -0.03em; }
.plan__price small { font-size: 1rem; font-weight: 500; color: var(--text-3); }
.plan__note { font-size: 0.88rem; color: var(--text-3); min-height: 1.2em; }
.plan ul { list-style: none; margin: 22px 0 26px; padding: 0; display: grid; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--text); align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
[data-theme="light"] .plan li svg { color: var(--brand-forest); }
.plan li.muted { color: var(--text-3); }
.plan li.muted svg { color: var(--text-3); }
.plan .btn { margin-top: auto; }

/* ----- FAQ --------------------------------------------------------------- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 1.02rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--text-3);
  font-weight: 400;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--text-2); font-size: 0.97rem; }

/* ----- CTA band ---------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--brand-forest);
  color: #fff;
  padding: clamp(40px, 6vw, 72px);
  text-align: center;
}
[data-theme="dark"] .cta-band { background: linear-gradient(135deg, #1f3a32, #14302a); }
.cta-band h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
.cta-band p { margin: 16px auto 28px; max-width: 520px; color: rgba(255, 255, 255, 0.82); }
.cta-band .btn--primary { background: #fff; color: var(--brand-forest); }
.cta-band .btn--primary:hover { filter: none; background: #f1efe9; }
.cta-band .spark {
  position: absolute;
  width: 18px; height: 18px;
  background: var(--brand-green);
  transform: rotate(45deg);
  border-radius: 4px;
  opacity: 0.5;
}

/* ----- Footer ------------------------------------------------------------ */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: clamp(48px, 6vw, 72px) 36px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--text-2); font-size: 0.92rem; max-width: 260px; }
.footer-col h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-3);
  margin-bottom: 14px;
  font-weight: 640;
}
.footer-col a, .footer-col span {
  display: block;
  color: var(--text-2);
  font-size: 0.94rem;
  padding: 5px 0;
  transition: color 0.16s ease;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-3);
  font-size: 0.88rem;
}
.footer-bottom a { color: var(--text-3); }
.footer-bottom a:hover { color: var(--text-2); }

/* ----- Legal / prose pages ----------------------------------------------- */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(24px, 4vw, 40px); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.page-hero .meta { margin-top: 12px; color: var(--text-3); font-size: 0.95rem; }

.prose {
  max-width: 760px;
  margin-inline: auto;
  padding-bottom: clamp(48px, 7vw, 96px);
}
.prose h2 {
  font-size: 1.5rem;
  margin: 44px 0 14px;
  padding-top: 8px;
}
.prose h3 { font-size: 1.18rem; margin: 30px 0 10px; }
.prose p { margin: 14px 0; color: var(--text); }
.prose ul { margin: 14px 0; padding-left: 22px; color: var(--text); }
.prose li { margin: 7px 0; }
.prose a { color: var(--brand-blue); font-weight: 540; }
.prose a:hover { text-decoration: underline; }
.prose strong { font-weight: 660; }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }
.prose code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.88em;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}
.prose .toc-links { display: flex; gap: 16px; font-size: 0.92rem; margin-top: 8px; }

.table-wrap { overflow-x: auto; margin: 18px 0; }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  min-width: 520px;
}
.prose th, .prose td {
  text-align: left;
  padding: 11px 14px;
  border: 1px solid var(--border);
  vertical-align: top;
}
.prose th { background: var(--surface-2); font-weight: 620; }

/* ----- About page -------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 8px;
}
.about-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.about-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.about-card p { color: var(--text-2); font-size: 0.96rem; }
.about-card a { color: var(--brand-blue); font-weight: 560; }
.about-card a:hover { text-decoration: underline; }

.value-list { display: grid; gap: 16px; margin-top: 26px; }
.value-list .problem h3 { display: flex; align-items: center; gap: 10px; }

/* ----- Skip link --------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: var(--accent-text);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 16px; }

/* ----- Waitlist modal ---------------------------------------------------- */
.wl-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: color-mix(in srgb, #000 55%, transparent);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.wl-overlay.open { display: flex; }
.wl-modal {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 30px 28px 26px;
  animation: wl-pop 0.18s ease;
}
@keyframes wl-pop {
  from { transform: translateY(8px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.wl-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-3);
  display: grid; place-items: center;
}
.wl-close:hover { background: var(--surface-2); color: var(--text); }
.wl-close svg { width: 18px; height: 18px; }
.wl-modal h3 { font-size: 1.4rem; margin-bottom: 8px; }
.wl-sub { color: var(--text-2); font-size: 0.96rem; margin-bottom: 18px; }
.wl-form { display: flex; flex-direction: column; gap: 11px; }
.wl-input {
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.wl-input:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-blue) 22%, transparent);
}
.wl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.wl-cf { display: flex; justify-content: center; min-height: 4px; }
.wl-cf:empty { min-height: 0; }
.wl-error { color: var(--area-relationships); font-size: 0.86rem; min-height: 1em; }
.wl-fine { margin-top: 13px; font-size: 0.78rem; color: var(--text-3); text-align: center; }
.wl-fine a { color: var(--text-2); text-decoration: underline; }
.wl-success { text-align: center; padding: 6px 0 2px; }
.wl-check {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin: 0 auto 14px;
}
[data-theme="light"] .wl-check { color: var(--brand-forest); }
.wl-check svg { width: 26px; height: 26px; }
.wl-success h3 { margin-bottom: 6px; }
.btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }

/* ----- Responsive -------------------------------------------------------- */
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .feature--lead { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav__menu-btn { display: grid; }
  .nav.open .nav__links {
    display: flex;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--pad-x) 18px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav.open .nav__links a { padding: 12px 13px; }
  .feature { grid-column: span 12; }
  .timeline { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1; }
}
