/* ==========================================================================
   Spontificant — marketing site
   Implements the Spontificant brand system (Solstice direction).
   Source of truth: docs/brand/README.md
   ========================================================================== */

/* ---- Design tokens ------------------------------------------------------- */
:root {
  /* Brand ramps */
  --rose-50: #f6ece8;
  --rose-100: #ecd5cd;
  --rose-300: #daa89c;
  --rose-500: #c18577;
  --rose-700: #9c6557;
  --rose-900: #5f3a30;
  --blue-50: #eceff3;
  --blue-100: #d3dbe3;
  --blue-300: #9fb0c1;
  --blue-500: #6e8aa4;
  --blue-700: #4e687f;
  --blue-900: #2f404e;

  /* Semantic roles — light */
  --canvas: #f6f1ea;
  --surface: #fefcf9;
  --raised: #ffffff;
  --text: #2b2825;
  --text-2: #6f655c;
  --hairline: #e7dfd3;
  --accent: #c18577;
  --accent-press: #9c6557;
  --accent-2: #6e8aa4;
  /* Accent as a solid fill behind white text — AA in both themes (4.76:1). */
  --accent-solid: #9c6557;
  --accent-solid-press: #5f3a30;
  /* Accent as text on light backgrounds (darkened for AA on canvas + surface);
     the lighter brand accent is used in dark mode where it already passes. */
  --accent-text: #925d4f;
  --positive: #6e8f6a;
  --critical: #b0524a;
  --rose-soft: #ecd5cd;
  --blue-soft: #d3dbe3;

  /* Logo fills (two-tone on light) */
  --logo-sun: #c18577;
  --logo-base: #6e8aa4;

  /* Store-badge theming (monochrome bg/fg; brand glyphs keep their own colors) */
  --badge-bg: #000000;
  --badge-fg: #ffffff;
  --badge-stroke: rgba(255, 255, 255, 0.16);

  /* Typography */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body:
    'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,
    sans-serif;
  --font-mono: 'Spline Sans Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Spacing — 8pt grid */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 64px;
  --container: 1160px;
  --gutter: 24px;

  /* Radius */
  --r-sm: 4px;
  --r-input: 10px;
  --r-btn: 12px;
  --r-card: 16px;
  --r-pill: 999px;

  /* Shadow + motion */
  --shadow-card: 0 18px 36px -20px rgba(43, 40, 37, 0.45);
  --shadow-soft: 0 1px 2px rgba(43, 40, 37, 0.06);
  --focus-ring-color: var(--blue-700);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --speed: 320ms;
}

/* Semantic roles — dark (system preference + explicit toggle) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --canvas: #1b1a17;
    --surface: #24221e;
    --raised: #2e2b26;
    --text: #f1ece4;
    --text-2: #ada499;
    --hairline: #38342e;
    --accent: #cf9b8e;
    --accent-press: #daa89c;
    --accent-2: #8aa6c0;
    --accent-text: var(--accent);
    --positive: #86a381;
    --critical: #cb7e76;
    --logo-sun: #daa89c;
    --logo-base: #9fb0c1;
    /* Dark canvas → use the light "white" store badge for contrast */
    --badge-bg: #f1ece4;
    --badge-fg: #1b1a17;
    --badge-stroke: rgba(0, 0, 0, 0.16);
    --focus-ring-color: var(--accent-2);
    --shadow-card: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
  }
}

:root[data-theme='dark'] {
  --canvas: #1b1a17;
  --surface: #24221e;
  --raised: #2e2b26;
  --text: #f1ece4;
  --text-2: #ada499;
  --hairline: #38342e;
  --accent: #cf9b8e;
  --accent-press: #daa89c;
  --accent-2: #8aa6c0;
  --accent-text: var(--accent);
  --positive: #86a381;
  --critical: #cb7e76;
  --logo-sun: #daa89c;
  --logo-base: #9fb0c1;
  --badge-bg: #f1ece4;
  --badge-fg: #1b1a17;
  --badge-stroke: rgba(0, 0, 0, 0.16);
  --focus-ring-color: var(--accent-2);
  --shadow-card: 0 18px 40px -22px rgba(0, 0, 0, 0.7);
}

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

html {
  scroll-behavior: smooth;
  /* Offset in-page anchor jumps by the sticky header height (+ a little gap) so
     targets like #download land below it instead of hidden underneath. */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 500;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--focus-ring-color);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(-150%);
  top: 8px;
  background: var(--accent-solid);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  z-index: 100;
  transition: transform var(--speed) var(--ease);
}
.skip-link:focus {
  transform: translateX(-50%) translateY(0);
}

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

.section {
  padding-block: clamp(56px, 9vw, 112px);
}

.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--hairline);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--s5);
}

/* ---- Typography ---------------------------------------------------------- */
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: var(--s2);
}

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.012em;
  font-size: clamp(2.5rem, 6.2vw, 4rem);
  line-height: 1;
}

.heading {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.012em;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.05;
}

.lead {
  font-size: clamp(1.125rem, 2.3vw, 1.25rem);
  line-height: 1.5;
  color: var(--text);
  max-width: 38ch;
}

.section-lead {
  margin-top: var(--s2);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text-2);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color var(--speed) var(--ease);
}
.text-link:hover {
  border-bottom-color: currentColor;
}

/* ---- Icons --------------------------------------------------------------- */
.icon {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  padding: 15px 28px;
  transition:
    background-color var(--speed) var(--ease),
    transform var(--speed) var(--ease),
    border-color var(--speed) var(--ease);
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent-solid);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-solid-press);
}

.btn-secondary {
  background: var(--canvas);
  color: var(--text);
  border-color: var(--hairline);
}
.btn-secondary:hover {
  border-color: var(--accent);
}

.btn-on-accent {
  background: #fff;
  color: var(--rose-700);
}
.btn-on-accent:hover {
  background: var(--rose-50);
}

/* ---- Logo lockup --------------------------------------------------------- */
.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-block;
}
.logo-mark svg {
  width: 100%;
  height: 100%;
}
.logo-word {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.375rem;
  letter-spacing: -0.012em;
}

/* ---- Header / nav -------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas); /* fallback if color-mix unsupported */
  background: color-mix(in srgb, var(--canvas) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav {
  display: flex;
  align-items: center;
  gap: var(--s3);
  height: 72px;
}
.nav-links {
  display: flex;
  gap: var(--s3);
  margin-left: auto;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-2);
  font-weight: 500;
  font-size: 0.9375rem;
  transition: color var(--speed) var(--ease);
}
.nav-links a:hover {
  color: var(--text);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.nav-cta {
  padding: 11px 20px;
  font-size: 0.9375rem;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition:
    border-color var(--speed) var(--ease),
    color var(--speed) var(--ease);
}
.theme-toggle:hover {
  border-color: var(--accent);
}
.theme-toggle .icon {
  width: 18px;
  height: 18px;
}
.theme-toggle .icon-moon {
  display: none;
}
:root[data-theme='dark'] .theme-toggle .icon-sun,
:root:not([data-theme='light']) .theme-toggle .icon-sun {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-toggle .icon-sun {
    display: none;
  }
  :root:not([data-theme='light']) .theme-toggle .icon-moon {
    display: block;
  }
}
:root[data-theme='dark'] .theme-toggle .icon-sun {
  display: none;
}
:root[data-theme='dark'] .theme-toggle .icon-moon {
  display: block;
}
:root[data-theme='light'] .theme-toggle .icon-moon {
  display: none;
}
:root[data-theme='light'] .theme-toggle .icon-sun {
  display: block;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: var(--r-input);
  cursor: pointer;
  padding: 0 9px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform var(--speed) var(--ease),
    opacity var(--speed) var(--ease);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s3) var(--gutter) var(--s4);
  border-bottom: 1px solid var(--hairline);
  background: var(--canvas);
}
.mobile-menu a:not(.btn) {
  text-decoration: none;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 500;
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  padding-block: clamp(48px, 8vw, 96px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.hero-copy .display {
  margin-bottom: var(--s3);
}
.hero-copy .lead {
  margin-bottom: var(--s5);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  align-items: flex-start;
}
.store-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.6875rem;
  color: var(--text-2);
}
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
}
.store-badge {
  display: inline-block;
  border-radius: 8px;
  transition: transform var(--speed) var(--ease);
}
.store-badge:hover {
  transform: translateY(-2px);
}
.store-badge svg {
  height: 52px;
  width: auto;
}
.badge-top {
  font-family: var(--font-body);
  font-size: 6.5px;
  letter-spacing: 0.02em;
}
.badge-main {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 600;
}
.store-badge:nth-child(2) .badge-top {
  letter-spacing: 0.12em;
}

/* ---- Phone mockup -------------------------------------------------------- */
.hero-art {
  display: flex;
  justify-content: center;
}
.phone {
  width: min(300px, 78%);
  aspect-ratio: 300 / 600;
  background: linear-gradient(160deg, var(--blue-300), var(--rose-300));
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-card);
}
.phone-screen {
  position: relative;
  height: 100%;
  background: var(--canvas); /* fallback if color-mix unsupported */
  background: radial-gradient(
    120% 80% at 50% 0%,
    color-mix(in srgb, var(--rose-100) 70%, var(--canvas)),
    var(--canvas)
  );
  border-radius: 34px;
  padding: 22px 16px;
  overflow: hidden;
}
.phone-time {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 90px;
}

/* ---- Notification card (brand component) --------------------------------- */
.notif {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  background: var(--surface); /* fallback if color-mix unsupported */
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 13px 14px;
  box-shadow: var(--shadow-soft);
}
.notif-tile {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent);
  display: grid;
  place-items: center;
}
.notif-tile svg {
  width: 22px;
  height: 22px;
}
.notif-body {
  min-width: 0;
}
.notif-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.notif-app {
  font-weight: 700;
  font-size: 0.75rem;
}
.notif-time {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-2);
}
.notif-msg {
  margin-top: 2px;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text);
}

/* ---- Three-up benefits --------------------------------------------------- */
.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5) var(--s4);
}
.benefit-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--r-card);
  background: var(--rose-soft);
  color: var(--rose-700);
  margin-bottom: var(--s2);
}
.benefit-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  margin-bottom: var(--s1);
}
.benefit p {
  color: var(--text-2);
  max-width: 32ch;
}

/* ---- Voice showcase ------------------------------------------------------ */
.nudge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
}
.notif-static {
  background: var(--raised);
  box-shadow: var(--shadow-soft);
}
.notif-static .notif-msg {
  font-size: 0.9375rem;
}

/* ---- Pricing ------------------------------------------------------------- */
.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
  max-width: 880px;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: var(--s4);
  display: flex;
  flex-direction: column;
}
.plan-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}
.plan-tag {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.6875rem;
  color: var(--accent-text);
  margin-bottom: var(--s1);
}
.plan-name {
  font-family: var(--font-display);
  font-size: 1.625rem;
  margin-bottom: var(--s2);
}
.plan-price {
  margin-bottom: var(--s1);
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.plan-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
}
.plan-period {
  font-size: 0.9375rem;
  color: var(--text-2);
}
.plan-billing {
  margin-top: var(--s1);
  font-size: 0.875rem;
  color: var(--text-2);
}
.plan-soon {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-2);
}
.plan-note {
  color: var(--text-2);
  margin-top: var(--s2);
  margin-bottom: var(--s3);
}
.plan-features {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin-bottom: var(--s4);
}
.plan-features li {
  position: relative;
  padding-left: 30px;
  line-height: 1.45;
}
.plan-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--rose-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239c6557' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  background-size: 13px;
  background-repeat: no-repeat;
  background-position: center;
}
.plan-cta {
  margin-top: auto;
  align-self: flex-start;
}

/* ---- Calm statement ------------------------------------------------------ */
.statement-inner {
  max-width: 760px;
  text-align: center;
  margin-inline: auto;
}
.statement-mono {
  margin-bottom: var(--s3);
  color: var(--accent-text);
}
.statement-line {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.125rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* ---- Accent CTA band (once per page) ------------------------------------- */
.cta-band {
  background: var(--accent-solid);
  color: #fff;
}
.cta-inner {
  padding-block: clamp(56px, 9vw, 104px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
}
.cta-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.875rem, 4.6vw, 2.875rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: #fff;
}
.cta-sub {
  color: #fff;
  font-size: 1.125rem;
  max-width: 44ch;
}
.cta-inner .btn {
  margin-top: var(--s2);
}
.cta-badges {
  margin-top: var(--s2);
}
.cta-badges .store-badges {
  justify-content: center;
}

/* ---- Intent grid (what-it-is section) ------------------------------------ */
.intent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s3);
}
.intent-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: var(--s3);
}
.intent-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: var(--s1);
}
.intent-card p {
  color: var(--text-2);
}
.intent-card .text-link {
  color: var(--accent-text);
  font-weight: 500;
  /* Persistent underline so the link isn't distinguished by color alone. */
  border-bottom-color: currentColor;
}
.intent-card .text-link:hover {
  color: var(--accent-text);
}
.intent-foot {
  margin-top: var(--s4);
  color: var(--text-2);
  max-width: 60ch;
}

/* ---- FAQ ----------------------------------------------------------------- */
.faq {
  max-width: 760px;
  border-top: 1px solid var(--hairline);
}
.faq-item {
  border-bottom: 1px solid var(--hairline);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s3) 0;
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 2.4vw, 1.375rem);
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding-right: var(--s4);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -7px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg);
  transition: transform var(--speed) var(--ease);
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
}
.faq-item p {
  padding: 0 0 var(--s3);
  color: var(--text-2);
  max-width: 64ch;
  line-height: 1.6;
}

/* ---- Document / prose pages (privacy, support) --------------------------- */
.doc {
  padding-block: clamp(48px, 7vw, 88px);
}
.doc-inner {
  max-width: 760px;
}
.doc .display {
  font-size: clamp(2.125rem, 5vw, 3.25rem);
  margin-bottom: var(--s2);
}
.doc-meta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-2);
  margin-bottom: var(--s5);
}
.doc h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: var(--s5) 0 var(--s2);
}
.doc h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: var(--s4) 0 var(--s1);
}
.doc p,
.doc li {
  color: var(--text);
  line-height: 1.65;
}
.doc p + p {
  margin-top: var(--s2);
}
.doc ul.doc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s1);
  margin: var(--s2) 0;
}
.doc ul.doc-list li {
  position: relative;
  padding-left: 22px;
  color: var(--text-2);
}
.doc ul.doc-list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.doc a:not(.btn) {
  color: var(--accent-press);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.doc strong {
  font-weight: 600;
}
.doc-note {
  margin-top: var(--s5);
  padding: var(--s3);
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  color: var(--text-2);
  font-size: 0.9375rem;
}
.doc-table-wrap {
  overflow-x: auto;
  margin: var(--s3) 0;
}
.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.doc-table th,
.doc-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
}
.doc-table th {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--text);
}
.doc-table td {
  color: var(--text-2);
}

/* ---- Landing-page hero (focused intent pages) ---------------------------- */
.lp-hero {
  padding-block: clamp(48px, 7vw, 88px);
}
.lp-hero .container {
  max-width: 820px;
}
.lp-hero .display {
  margin-bottom: var(--s3);
}
.lp-hero .lead {
  max-width: 56ch;
  margin-bottom: var(--s4);
}
.lp-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  align-items: center;
}

/* ---- 404 ----------------------------------------------------------------- */
.error-page {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.error-page .container {
  max-width: 560px;
}
.error-mark {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--s2);
}
.error-lead {
  margin: var(--s2) auto var(--s4);
}

/* ---- Footer -------------------------------------------------------------- */
.site-footer {
  background: #1b1a17;
  color: #f1ece4;
  padding-block: var(--s5);
}
.site-footer .logo-word {
  color: #f1ece4;
}
/* mono knockout mark on the ink footer */
.logo-lockup-footer {
  --logo-sun: #ffffff;
  --logo-base: #ffffff;
  color: #f1ece4;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s4);
  align-items: start;
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
.footer-tagline {
  margin-top: var(--s2);
  max-width: 28ch;
  color: #ada499;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.footer-nav-title {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.6875rem;
  font-weight: 500;
  color: #ada499;
  margin: 0 0 var(--s2);
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav a {
  color: #d7cfc4;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--speed) var(--ease);
}
.footer-nav a:hover {
  color: #f1ece4;
}
.footer-base {
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid #38342e;
}
.footer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #ada499;
}
.footer-meta a {
  color: #ada499;
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}
.footer-meta a:hover {
  color: #f1ece4;
}

/* ---- Entrance motion (fade + rise, soft) --------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity var(--speed) var(--ease),
    transform var(--speed) var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
  .three-up {
    grid-template-columns: 1fr;
    gap: var(--s4);
    max-width: 560px;
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  /* .nav-links carried the margin-left:auto that pushed the actions right; it's
     hidden here, so move that onto .nav-actions to keep the hamburger top-right. */
  .nav-actions {
    margin-left: auto;
  }
  .nav {
    height: 64px;
  }
  html {
    scroll-padding-top: 80px;
  }
  .mobile-menu.is-open {
    display: flex;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-art {
    order: -1;
  }
  .nudge-grid,
  .plans,
  .intent-grid {
    grid-template-columns: 1fr;
  }
  .store-badge svg {
    height: 48px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
}

/* ---- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
