/* ==========================================================================
   Juno Marketing Site - styles.css
   Design system: warm beige canvas + deep teal + mango, matched to the iOS
   app onboarding screens and the App Store screenshot deck.
   Type: Plus Jakarta Sans (the app's typeface). Light theme, locked.
   ========================================================================== */

/* ── Self-hosted font (Plus Jakarta Sans, same as the iOS app) ── */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('assets/fonts/PlusJakartaSans-Variable.ttf') format('truetype');
  font-weight: 200 800;
  font-display: swap;
  font-style: normal;
}

/* ── Design tokens ── */
:root {
  /* Warm canvas (from the screenshot deck + app onboarding) */
  --bg: #FBE7D8;          /* warm beige page canvas */
  --bg-deep: #F8DBC6;     /* deeper beige, gradient end + alternate bands */
  --surface: #FFFFFF;     /* white cards pop against the beige */
  --surface-low: #FDF3EC; /* faint warm tint: icon wells, recessed fills */
  --chrome: #ECD6C4;      /* warm hairline border */

  /* Text */
  --ink: #15302A;            /* deep teal: primary text + dark sections */
  --ink-soft: #2C463F;       /* softer ink */
  --text-secondary: #6B5345; /* warm brown, ~6:1 on beige (AA) */
  --cream: #FFF3E9;          /* text/marks on dark teal */

  /* Brand accents */
  --mango: #EC6712;        /* fills, icon strokes, brand orange */
  --mango-light: #FFC234;  /* gradient highlight, accents on dark */
  --coral: #EE4255;
  --forest: #0E7C66;       /* secondary brand, graphic accents */
  --accent-ink: #C2540B;   /* mango-toned TEXT on light, ~3.6:1 large (AA-large) */
  --eyebrow: #0A5D4C;      /* deep forest-teal eyebrow label, ~5.5:1 (AA) */
  --link: #0A5D4C;         /* text links on light, ~5.5:1 (AA) */

  /* Semantic (nutrition visuals) */
  --protein: #EF6A3E;
  --carbs: #EDA02A;
  --fat: #8B6AD0;
  --fiber: #38976A;
  --water: #3590D2;
  --ready: #2E9E6B;

  /* Gradients */
  --grad-cta: linear-gradient(135deg, #F47B1E 0%, #EE4255 100%);          /* text-bearing buttons (orange->coral, legible white) */
  --grad-hero: linear-gradient(135deg, #FFC234 0%, #F47B1E 52%, #EE4255 100%); /* decorative (app hero gradient) */
  --grad-canvas: linear-gradient(168deg, #FBE7D8 0%, #F8DBC6 100%);

  /* Shape - matched to the app (card 24, control 16, pill) */
  --r-card: 24px;
  --r-btn: 999px;
  --r-control: 16px;
  --r-input: 14px;
  --r-sm: 14px;

  /* Spacing */
  --page-max: 1200px;
  --page-px: clamp(20px, 5vw, 40px);
  --section-py: clamp(72px, 10vw, 120px);

  /* Shadows - warm tinted, no pure black */
  --shadow-card: 0 4px 28px rgba(74, 42, 18, 0.08), 0 1px 4px rgba(74, 42, 18, 0.05);
  --shadow-btn: 0 6px 18px rgba(236, 103, 18, 0.32);
  --shadow-float: 0 18px 50px rgba(74, 42, 18, 0.14);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 150ms;
  --dur-med: 240ms;

  /* Type */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  background: var(--grad-canvas);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid var(--mango);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Layout utilities ── */
.container {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-px);
}

/* ── Typography ── */
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.display-xl { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.display-lg { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.display-md { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }

p { max-width: 65ch; }

.text-secondary { color: var(--text-secondary); }
.text-sm { font-size: 0.875rem; }

/* mango-toned accent word inside a headline (matches the screenshot captions) */
.accent { color: var(--accent-ink); }

/* Tabular digits */
.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 26px rgba(236, 103, 18, 0.40);
  text-decoration: none;
  color: #fff;
}

.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border: 1.5px solid var(--chrome);
}

.btn-secondary:hover {
  border-color: var(--forest);
  color: var(--forest);
  background: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

/* App Store badge */
.badge-appstore {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 8px;
}

.badge-appstore img,
.badge-appstore svg {
  height: 48px;
  width: auto;
  transition: transform var(--dur-fast) var(--ease-out);
}

.badge-appstore:hover img,
.badge-appstore:hover svg {
  transform: translateY(-1px);
}

/* ── Navigation ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 231, 216, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-med), background var(--dur-med);
}

.site-nav.scrolled {
  border-color: var(--chrome);
  background: rgba(251, 231, 216, 0.92);
}

.nav-inner {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-px);
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.nav-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin-inline-start: auto;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.nav-links a:hover {
  color: var(--mango);
  text-decoration: none;
}

.nav-cta {
  margin-inline-start: 8px;
  padding: 10px 22px;
  font-size: 0.9375rem;
}

.nav-cta:hover { color: #fff; }

.nav-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  margin-inline-start: auto;
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--chrome);
    flex-direction: column;
    padding: 20px var(--page-px);
    gap: 16px;
    align-items: flex-start;
    box-shadow: var(--shadow-float);
  }

  .nav-links.open { display: flex; }

  .nav-links li:last-child {
    margin-top: 8px;
    align-self: stretch;
  }

  .nav-links li:last-child a {
    display: block;
    text-align: center;
  }

  .nav-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

/* ── Hero ── */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 4rem;
  overflow: hidden;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

/* "For GLP-1 users" eyebrow pill (mirrors the app hero) */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--chrome);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-soft);
  letter-spacing: 0.01em;
}

.hero-pill::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ready);
}

.hero-headline {
  font-size: clamp(2.5rem, 5.4vw, 3.9rem);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 13ch;
}

.hero-sub {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  color: var(--text-secondary);
  max-width: 42ch;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Phone mockup */
.phone-frame {
  position: relative;
  width: min(290px, 90%);
  aspect-ratio: 9 / 19.5;
  background: #15201d;
  border-radius: 46px;
  padding: 13px 11px;
  box-shadow:
    0 0 0 2px #243430,
    0 0 0 4px #0f1715,
    var(--shadow-float);
  overflow: hidden;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 7px;
  background: #243430;
  border-radius: 4px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 34px;
}

/* Floating Juno companion character beside the hero phone */
.hero-companion {
  position: absolute;
  bottom: 4%;
  left: -2%;
  width: clamp(78px, 9vw, 104px);
  height: auto;
  border-radius: 23%;
  box-shadow: 0 14px 32px rgba(236, 103, 18, 0.30);
  z-index: 3;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-companion { animation: float 5.5s var(--ease-out) infinite; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* Warm radial glow behind phone (decorative, app hero hues) */
.hero-glow {
  position: absolute;
  inset: -70px;
  background: radial-gradient(
    ellipse 78% 68% at 50% 42%,
    rgba(255, 194, 52, 0.30) 0%,
    rgba(244, 123, 30, 0.20) 42%,
    rgba(238, 66, 85, 0.05) 70%,
    transparent 100%
  );
  filter: blur(6px);
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 767px) {
  .hero {
    padding-top: 2rem;
    padding-bottom: 3rem;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .hero-content { align-items: center; }
  .hero-headline { max-width: 100%; }
  .hero-phone { order: -1; }
  .phone-frame { width: min(230px, 76%); }
  .hero-companion { width: 72px; left: 2%; }
}

/* ── Honest strip ── */
.honest-strip {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--chrome);
  border-bottom: 1px solid var(--chrome);
  padding: 18px 0;
}

.honest-strip-inner {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  flex-wrap: wrap;
}

.honest-strip p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: none;
}

.honest-strip strong {
  color: var(--ink);
  font-weight: 700;
}

/* ── Section base ── */
section { padding-block: var(--section-py); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--eyebrow);
  margin-bottom: 12px;
}

/* ── Feature: full-width card (layout family A) ── */
.feature-full {
  background: var(--surface);
  border-radius: var(--r-card);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(236, 214, 196, 0.6);
  margin: 0 auto;
  max-width: var(--page-max);
}

.feature-full-content {
  padding: clamp(36px, 5vw, 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.feature-full-img {
  background: var(--grad-canvas);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 40px 32px 0;
  overflow: hidden;
  min-height: 400px;
}

.feature-full-img .phone-frame {
  width: min(210px, 90%);
  margin: 0 auto;
}

@media (max-width: 767px) {
  .feature-full {
    grid-template-columns: 1fr;
    border-radius: var(--r-card);
  }
  .feature-full-img {
    min-height: 300px;
    padding: 28px 24px 0;
  }
}

/* ── Feature: alternating split (layout family B) ── */
.features-split {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.feature-split.reverse { direction: rtl; }
.feature-split.reverse > * { direction: ltr; }

.feature-split-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-split-img {
  background: var(--grad-canvas);
  border-radius: var(--r-card);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 40px 32px 0;
  overflow: hidden;
  min-height: 400px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(236, 214, 196, 0.6);
}

.feature-split-img .phone-frame { width: min(195px, 80%); }

@media (max-width: 767px) {
  .feature-split,
  .feature-split.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 28px;
  }
  .feature-split-img {
    min-height: 300px;
    padding: 28px 24px 0;
  }
}

/* ── Feature: bento grid (layout family C) ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bento-card {
  background: var(--surface);
  border-radius: var(--r-card);
  padding: clamp(24px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(236, 214, 196, 0.6);
  transition: transform var(--dur-med) var(--ease-out),
              box-shadow var(--dur-med) var(--ease-out);
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}

/* Tinted accent cells for visual rhythm (no all-white grid) */
.bento-card.tint-mango {
  background: linear-gradient(155deg, #FFF1E4 0%, #FFE4CE 100%);
  border-color: rgba(236, 103, 18, 0.18);
}

.bento-card.tint-ink {
  background: var(--ink);
  border-color: transparent;
}

.bento-card.tint-ink h3 { color: var(--cream); }
.bento-card.tint-ink p { color: rgba(255, 243, 233, 0.72); }
.bento-card.tint-ink .bento-icon { background: rgba(255, 243, 233, 0.10); }

.bento-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-control);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-low);
  flex-shrink: 0;
}

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.bento-card p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: none;
}

@media (max-width: 959px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .bento-grid { grid-template-columns: 1fr; }
}

/* ── Privacy & Trust (layout family D) ── */
.trust-section {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--r-card);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-float);
}

.trust-section::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(236, 103, 18, 0.22), transparent 65%);
  pointer-events: none;
}

.trust-inner {
  padding: clamp(48px, 6vw, 80px) var(--page-px);
  max-width: var(--page-max);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.trust-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--cream);
  max-width: 20ch;
  margin-bottom: 12px;
}

.trust-sub {
  color: rgba(255, 243, 233, 0.72);
  margin-bottom: 48px;
  font-size: 1.0625rem;
}

.trust-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.trust-point {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trust-point-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-control);
  background: rgba(255, 243, 233, 0.08);
  margin-bottom: 6px;
  flex-shrink: 0;
}

.trust-point h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.trust-point p {
  font-size: 0.9375rem;
  color: rgba(255, 243, 233, 0.72);
  line-height: 1.55;
  max-width: none;
}

.trust-point a {
  color: var(--mango-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 767px) {
  .trust-points {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ── How it works (layout family E) ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.5% + 12px);
  right: calc(16.5% + 12px);
  height: 2px;
  background: var(--grad-hero);
  border-radius: 1px;
  opacity: 0.4;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  align-items: center;
}

.step-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--grad-hero);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-btn);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 24ch;
  text-align: center;
}

@media (max-width: 767px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .steps-grid::before { display: none; }
  .step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
  }
  .step-num { flex-shrink: 0; }
  .step > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .step p {
    text-align: left;
    max-width: none;
  }
}

/* ── FAQ accordion ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 760px;
}

details.faq-item {
  background: var(--surface);
  border-radius: var(--r-sm);
  border: 1px solid var(--chrome);
  overflow: hidden;
  transition: box-shadow var(--dur-med);
}

details.faq-item[open] { box-shadow: var(--shadow-card); }

details.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  transition: background var(--dur-fast);
}

details.faq-item summary::-webkit-details-marker { display: none; }

details.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--mango);
  flex-shrink: 0;
  transition: transform var(--dur-med) var(--ease-out), color var(--dur-fast);
}

details.faq-item[open] summary::after {
  content: '\2212';
  color: var(--mango);
}

details.faq-item summary:hover { background: var(--surface-low); }

details.faq-item summary:focus-visible {
  outline: 3px solid var(--mango);
  outline-offset: -3px;
  border-radius: 0;
}

.faq-body {
  padding: 0 24px 20px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-body p + p { margin-top: 10px; }

.faq-body a {
  color: var(--link);
  font-weight: 600;
}

/* ── Final CTA ── */
.final-cta { text-align: center; }

.final-cta-inner {
  position: relative;
  background: var(--ink);
  border-radius: var(--r-card);
  padding: clamp(48px, 7vw, 92px) var(--page-px);
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.final-cta-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 90% at 50% 120%, rgba(244, 123, 30, 0.42), transparent 60%);
  pointer-events: none;
}

.final-cta-character {
  position: relative;
  z-index: 1;
  width: clamp(84px, 12vw, 116px);
  height: auto;
  border-radius: 23%;
  margin: 0 auto 22px;
  box-shadow: 0 16px 40px rgba(236, 103, 18, 0.42);
}

.final-cta h2 {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  letter-spacing: -0.03em;
  color: var(--cream);
  margin-bottom: 12px;
  line-height: 1.08;
}

.final-cta p {
  position: relative;
  z-index: 1;
  color: rgba(255, 243, 233, 0.78);
  font-size: 1.0625rem;
  margin-bottom: 30px;
  max-width: 44ch;
  margin-inline: auto;
}

.final-cta .badge-appstore { position: relative; z-index: 1; }

/* ── Footer ── */
.site-footer {
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid var(--chrome);
  padding: 40px 0;
}

.footer-inner {
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer-brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.footer-links a:hover { color: var(--ink); }

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

@media (max-width: 767px) {
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}

/* ── Feature copy ── */
.feature-body {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 42ch;
}

.feature-headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.1;
}

/* ── Section headings ── */
.section-header { margin-bottom: 48px; }
.section-header.center { text-align: center; }
.section-header.center p { margin-inline: auto; }

/* ── Scroll reveal (progressive enhancement) ── */
.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-med) var(--ease-out),
              transform var(--dur-med) var(--ease-out);
}

html.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js .reveal,
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .bento-card,
  .badge-appstore img,
  .badge-appstore svg,
  .hero-companion {
    transition: none;
    animation: none;
  }
}

/* ── Legal pages ── */
.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) var(--page-px) clamp(60px, 8vw, 120px);
}

.legal-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 4px;
}

.legal-updated {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.legal-lead {
  font-size: 1.0625rem;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 65ch;
}

.legal-wrap h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: 44px;
  margin-bottom: 12px;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--chrome);
}

.legal-wrap h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--ink);
}

.legal-wrap p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  max-width: 68ch;
  margin-bottom: 12px;
}

.legal-wrap ul,
.legal-wrap ol {
  padding-left: 22px;
  margin-bottom: 12px;
}

.legal-wrap li {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 6px;
}

.legal-wrap a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-callout {
  background: rgba(236, 103, 18, 0.08);
  border: 1px solid rgba(236, 103, 18, 0.22);
  border-radius: var(--r-sm);
  padding: 16px 20px;
  margin: 20px 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink);
}

.legal-callout.warning {
  background: rgba(238, 66, 85, 0.07);
  border-color: rgba(238, 66, 85, 0.22);
}

.legal-callout strong { font-weight: 800; }

.legal-wrap table {
  border-collapse: collapse;
  width: 100%;
  margin: 20px 0;
  font-size: 0.9375rem;
}

.legal-wrap th,
.legal-wrap td {
  border: 1px solid var(--chrome);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
  color: var(--ink);
}

.legal-wrap th {
  background: var(--surface-low);
  font-weight: 700;
  font-size: 0.875rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
  margin-bottom: 32px;
  transition: gap var(--dur-fast);
}

.legal-back:hover {
  gap: 10px;
  text-decoration: none;
}

.legal-nav {
  background: var(--surface);
  border: 1px solid var(--chrome);
  border-radius: var(--r-sm);
  padding: 20px 24px;
  margin-bottom: 48px;
}

.legal-nav p {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}

.legal-nav ol {
  padding-left: 18px;
  columns: 2;
  column-gap: 32px;
}

.legal-nav li {
  font-size: 0.875rem;
  margin-bottom: 6px;
}

.legal-nav a {
  color: var(--link);
  text-decoration: none;
}

.legal-nav a:hover { text-decoration: underline; }

@media (max-width: 580px) {
  .legal-nav ol { columns: 1; }
}

/* ── Visually hidden (a11y) ── */
.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;
}
