/* ============================================================
   styles.css — Wellness Assistant landing page
   Tokens, layout, components, motion.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Base surface */
  --bg:            #1A1A1A;
  --bg-elev:       #202020;
  --bg-card:       #242424;
  --bg-deep:       #0A0A0A;

  /* Ink */
  --text:          #F5F5F4;   /* primary */
  --text-muted:    #9A9A96;   /* secondary */
  --text-dim:      #6B6B67;   /* tertiary / captions */

  /* Hairlines */
  --hairline:      rgba(255, 255, 255, 0.08);
  --hairline-2:    rgba(255, 255, 255, 0.14);

  /* Accent — Electric Mint, locked */
  --accent:        #5FE8C4;
  --accent-ink:    #08241E;   /* on-accent text for AA contrast */
  --accent-soft:   rgba(95, 232, 196, 0.14);
  --accent-border: rgba(95, 232, 196, 0.40);

  /* Radii */
  --radius-card:   12px;
  --radius-btn:    8px;
  --radius-pill:   999px;

  /* Type scale */
  --font-display:  'General Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body:     'Inter Tight', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-ios:      -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro', system-ui, sans-serif;

  --fs-hero:       clamp(48px, 10vw, 120px);
  --fs-display-lg: clamp(40px, 6vw, 64px);
  --fs-display:    clamp(36px, 5vw, 56px);
  --fs-h3:         28px;
  --fs-body-lg:    19px;
  --fs-body:       17px;
  --fs-body-sm:    15px;
  --fs-meta:       13px;
  --fs-eyebrow:    12px;
  --fs-micro:      11px;

  /* Spacing scale */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --pad-section: clamp(72px, 10vw, 140px);

  /* Motion */
  --ease-out:      cubic-bezier(.2, .7, .2, 1);
  --ease-std:      cubic-bezier(.4, 0, .2, 1);
  --dur-fast:      180ms;
  --dur-base:      300ms;
  --dur-slow:      700ms;
  --dur-ring:      1400ms;
  --dur-count:     1600ms;

  /* Shadow */
  --shadow-lg:     0 60px 120px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
}
body {
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; }
a { color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-size: var(--fs-body-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-btn) 0;
  z-index: 9999;
}
.skip-link:focus {
  top: 0;
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
}

/* ---------- Visually hidden (for labels) ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography helpers ---------- */
.display { font-family: var(--font-display); letter-spacing: -0.02em; }

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Layout scaffolding ---------- */
.section {
  padding: var(--pad-section) var(--space-8);
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.wrap        { max-width: 1200px; margin: 0 auto; }
.wrap-narrow { max-width: 860px;  margin: 0 auto; }
.wrap-prose  { max-width: 640px;  margin: 0 auto; }

/* ---------- Brand bar ---------- */
.brand-bar {
  position: absolute; inset: 28px 32px auto 32px;
  display: flex; justify-content: space-between; align-items: center;
  z-index: 3;
}
.brand-bar .mark {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 96px;
  padding-bottom: var(--pad-section);
  overflow: hidden;
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: 12px;
  margin-bottom: 28px;
}
.hero__kicker-dot {
  width: 6px; height: 6px; border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(95, 232, 196, 0.13);
}
.hero__headline {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
  margin: 0;
}
.hero__subhead {
  margin: 28px 0 0;
  max-width: 560px;
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  color: var(--text-muted);
  letter-spacing: -0.006em;
}
.hero__foot {
  margin-top: 22px;
  color: var(--text-muted);
  font-size: var(--fs-meta);
}

/* Accent span — used in headlines */
.accent { color: var(--accent); }

/* ---------- Waitlist form ---------- */
.waitlist       { margin-top: 52px; max-width: 520px; }
.waitlist__label{ margin-bottom: 14px; }
.email-row {
  display: flex; gap: 8px;
  padding: 6px; border-radius: calc(var(--radius-btn) + 6px);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hairline);
  max-width: 460px;
}
.email-row input {
  flex: 1; min-width: 0;
  background: transparent; border: none; outline: none;
  color: var(--text);
  padding: 10px 14px;
  font-family: var(--font-body); font-size: var(--fs-body-sm);
}
.email-row input::placeholder { color: var(--text-dim); }
.email-row input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.microcopy {
  margin-top: 10px; font-size: 12px;
  color: var(--text-muted); letter-spacing: 0.02em;
}

/* Inline form error */
.form-error {
  margin-top: 8px;
  font-size: var(--fs-meta);
  color: rgba(224, 80, 80, 0.9);
  line-height: 1.4;
}
.form-error[hidden] { display: none; }
/* Ensure form[hidden] overrides display:flex from .email-row */
.email-row[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  border: none; border-radius: var(--radius-btn);
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  letter-spacing: -0.005em; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-std),
              background var(--dur-fast) var(--ease-std);
}
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { transform: scale(1.015); }
.btn--primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.btn--ghost   { background: transparent; color: var(--text); border: 1px solid var(--hairline); }
.btn--ghost:hover { border-color: var(--hairline-2); }

/* Success pill after submit */
.success {
  margin-top: 12px;
  padding: 14px 18px; border-radius: 12px;
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: flex; align-items: center; gap: 10px;
  font-size: var(--fs-body-sm);
}
.success[hidden] { display: none; }

/* ---------- Section headings ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.section-title--lg {
  font-size: var(--fs-display-lg);
  line-height: 1.02;
}
.section-lede {
  margin: 22px 0 0;
  max-width: 560px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ---------- Walkthrough (Section 2) ---------- */
.walkthrough__head { max-width: 640px; margin-bottom: 72px; }
.mockups-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: end;
}
.mockup-frame {
  --scale: 0.82;
  /* Height = device height × scale so the layout box tracks the visual size */
  height: calc(824px * var(--scale));
  display: flex; justify-content: center; align-items: flex-start;
  overflow: visible;
  margin-bottom: 26px;
  min-width: 0;
}
.mockup-frame > .ios-device {
  transform: scale(var(--scale));
  transform-origin: top center;
  flex-shrink: 0;
}
.mockup-caption {
  text-align: center; max-width: 280px; margin: 0 auto;
}
.mockup-caption h3 {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600; letter-spacing: -0.01em;
  margin: 0;
}
.mockup-caption p {
  color: var(--text-muted); font-size: 14px;
  margin: 6px 0 0; line-height: 1.45;
}

/* iOS device shell — 380×824, notched */
.ios-device {
  width: 380px; height: 824px; border-radius: 48px;
  background: #000; overflow: hidden; position: relative;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-ios);
}
.ios-device__island {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 120px; height: 36px; border-radius: 22px;
  background: #000; z-index: 20;
}
.ios-device__home {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  width: 132px; height: 5px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.5);
}
.ios-statusbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 30px 0; position: relative; z-index: 10;
  color: #fff; font-size: 15px; font-weight: 600;
  letter-spacing: -0.01em;
}
.ios-statusbar__glyphs { display: flex; gap: 6px; align-items: center; }

/* Chat screen */
.ios-chat__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 12px;
  color: rgba(235, 235, 245, 0.6); font-size: 13px; font-weight: 500;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
}
.ios-chat__header strong {
  color: #fff; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  letter-spacing: -0.01em; font-size: 15px;
}
.ios-chat__header strong::before {
  content: ''; width: 8px; height: 8px; border-radius: 99px; background: var(--accent);
}
.ios-chat__body {
  padding: 12px 16px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.ios-chat__stamp {
  align-self: center; font-size: 12px;
  color: rgba(235, 235, 245, 0.45);
  padding: 6px 12px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.04);
  margin: 4px 0 8px; letter-spacing: 0.02em;
}
.bubble {
  max-width: 78%;
  padding: 10px 14px;
  font-size: 15.5px; line-height: 1.38; letter-spacing: -0.01em;
}
.bubble--bot {
  align-self: flex-start;
  background: #2C2C2E; color: #fff;
  border-radius: 22px 22px 22px 6px;
}
.bubble--you {
  align-self: flex-end;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 22px 22px 6px 22px;
}
.ios-chat__typing {
  align-self: flex-start;
  padding: 12px 14px; border-radius: 22px;
  background: #2C2C2E;
  display: flex; gap: 4px; align-items: center;
}
.ios-chat__typing i {
  width: 7px; height: 7px; border-radius: 99px;
  background: rgba(255, 255, 255, 0.4);
  display: inline-block;
  animation: typing 1.2s infinite ease-in-out;
}
.ios-chat__typing i:nth-child(2) { animation-delay: 0.15s; }
.ios-chat__typing i:nth-child(3) { animation-delay: 0.30s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-3px); opacity: 0.9; }
}

.ios-chat__input {
  position: absolute; left: 16px; right: 16px; bottom: 46px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 0.5px solid rgba(255, 255, 255, 0.08);
  color: rgba(235, 235, 245, 0.45); font-size: 15px;
}
.ios-chat__send {
  width: 30px; height: 30px; border-radius: 99px; background: var(--accent);
  display: grid; place-items: center;
}

/* Habits screen */
.ios-habits__hdr { padding: 16px 22px 0; }
.ios-habits__hdr .kicker {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(235, 235, 245, 0.45); font-weight: 500; margin-bottom: 4px;
}
.ios-habits__hdr h2 {
  color: #fff; font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em; margin: 0;
}
.ios-habits__ringwrap {
  display: flex; justify-content: center; align-items: center;
  padding: 22px 0 10px;
}
.ios-habits__legend {
  display: flex; justify-content: center; gap: 16px; margin-bottom: 18px;
}
.ios-habits__legend span {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: rgba(235, 235, 245, 0.55);
}
.ios-habits__legend i {
  width: 8px; height: 8px; border-radius: 99px; display: inline-block;
}
.ios-habits__list {
  margin: 0 16px; border-radius: 18px; overflow: hidden;
  background: #1C1C1E;
}
.ios-habits__row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px; min-height: 56px;
  border-bottom: 0.5px solid rgba(84, 84, 88, 0.4);
}
.ios-habits__row:last-child { border-bottom: none; }
.ios-habits__row .label { flex: 1; }
.ios-habits__row .label b {
  color: #fff; font-size: 15.5px; font-weight: 500;
  letter-spacing: -0.01em; display: block;
}
.ios-habits__row .label span {
  color: rgba(235, 235, 245, 0.5); font-size: 13px; margin-top: 2px;
}
.ios-habits__row .pct { font-size: 13px; font-weight: 600; }

/* Ring animation */
.ring circle.track        { stroke: rgba(255, 255, 255, 0.1); }
.ring circle.track--outer { stroke: var(--accent-soft); }
.ring circle.progress {
  stroke-linecap: round;
  animation: ring-draw var(--dur-ring) var(--ease-out) forwards;
  transform: rotate(-90deg); transform-origin: center;
}
@keyframes ring-draw { from { stroke-dashoffset: var(--c); } to { stroke-dashoffset: var(--offset); } }
/* JS sets --c (circumference) and --offset (final dashoffset) on reveal */

/* Settings screen */
.ios-settings__hdr {
  padding: 16px 22px 6px;
  color: #fff; font-size: 28px; font-weight: 700;
  letter-spacing: -0.02em;
}
.ios-settings__hero {
  margin: 8px 16px 0; padding: 18px; border-radius: 20px;
  background: linear-gradient(180deg,
    rgba(95,232,196,0.10), rgba(95,232,196,0.03));
  border: 0.5px solid var(--accent-border);
}
.ios-settings__hero-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ios-settings__hero-hd h3 {
  color: #fff; font-size: 16px; font-weight: 600;
  letter-spacing: -0.01em; margin: 0;
}
.ios-settings__hero-hd .on {
  margin-left: auto; font-size: 12px; color: var(--accent); font-weight: 600;
}
.ios-settings__hero p {
  color: rgba(235, 235, 245, 0.7); font-size: 14px;
  line-height: 1.45; margin: 0;
}
.ios-settings__hero-stats {
  display: flex; gap: 16px; margin-top: 14px; padding-top: 14px;
  border-top: 0.5px solid rgba(255, 255, 255, 0.06);
}
.ios-settings__hero-stats > div { flex: 1; }
.ios-settings__hero-stats b {
  color: var(--accent); font-size: 18px; font-weight: 700;
  letter-spacing: -0.01em; font-family: var(--font-display); display: block;
}
.ios-settings__hero-stats span {
  color: rgba(235, 235, 245, 0.5); font-size: 11px; margin-top: 2px;
}
.ios-settings__group-hdr {
  padding: 22px 32px 6px; font-size: 12px;
  color: rgba(235, 235, 245, 0.5);
  letter-spacing: 0.04em; text-transform: uppercase; font-weight: 500;
}
.ios-settings__group {
  margin: 0 16px 16px; border-radius: 18px; overflow: hidden;
  background: #1C1C1E;
}
.ios-settings__row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; min-height: 52px;
  border-bottom: 0.5px solid rgba(84, 84, 88, 0.4);
}
.ios-settings__row:last-child { border-bottom: none; }
.ios-settings__icon {
  width: 30px; height: 30px; border-radius: 7px;
  display: grid; place-items: center; flex-shrink: 0;
}
.ios-settings__row .txt { flex: 1; }
.ios-settings__row .txt b {
  color: #fff; font-size: 16px; letter-spacing: -0.01em; display: block; font-weight: 400;
}
.ios-settings__row .txt span {
  color: rgba(235, 235, 245, 0.5); font-size: 13px; margin-top: 1px;
}
.switch {
  width: 50px; height: 30px; border-radius: 99px;
  background: rgba(120, 120, 128, 0.32); position: relative;
  transition: background var(--dur-fast) var(--ease-std);
}
.switch.on { background: var(--accent); }
.switch::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 26px; height: 26px; border-radius: 99px; background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: left var(--dur-fast) var(--ease-std);
}
.switch.on::after { left: 22px; }

/* ---------- Memory demo (Section 3) ---------- */
.memory {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.memory__accent-lede {
  margin-top: 14px; color: var(--accent); font-weight: 600;
  font-size: 14px; letter-spacing: 0.02em;
}
.memory__stats {
  margin-top: 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.stat {
  display: flex; align-items: baseline; gap: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--hairline);
}
.stat b {
  font-family: var(--font-display);
  font-size: 34px; font-weight: 600; color: var(--accent);
  letter-spacing: -0.03em; min-width: 80px; display: inline-block;
}
.stat span { color: var(--text); font-size: 15px; line-height: 1.4; }

.transcript {
  padding: 8px; background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: calc(var(--radius-card) + 8px);
}
.transcript__hdr {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px 8px;
  color: var(--text-muted); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500;
}
.transcript__hdr::before {
  content: ''; width: 8px; height: 8px; border-radius: 99px; background: var(--accent);
}
.transcript__body {
  padding: 10px 14px 16px;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font-ios);
}
.transcript__day {
  align-self: center; font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  padding: 12px 10px 6px;
}
.transcript .bubble {
  font-size: 14.5px; line-height: 1.4;
  padding: 10px 14px;
}
.transcript .bubble--bot {
  background: #2A2A2A; color: #fff;
  border-radius: 18px 18px 18px 4px;
}
.transcript .bubble--you {
  background: var(--accent); color: var(--accent-ink);
  border-radius: 18px 18px 4px 18px;
}
.transcript .accent {
  color: var(--accent); font-weight: 600;
}

/* ---------- Contrast list (Section 4) ---------- */
.contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  max-width: 1100px; margin: 0 auto;
}
.contrast h3 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 600; letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.contrast ul {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 18px;
}
.contrast li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 17px; line-height: 1.45;
}
.contrast--is  li { color: var(--text); }
.contrast--isnt li {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.12);
}
.contrast--isnt li .dot {
  width: 4px; height: 4px; border-radius: 99px;
  background: var(--text-dim); margin-top: 10px; flex-shrink: 0;
  display: inline-block;
}

/* ---------- Daily rhythm (Section 5) ---------- */
.rhythm__head { max-width: 600px; margin-bottom: 64px; }
.rhythm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--hairline);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.rhythm-card {
  background: var(--bg); padding: 36px 32px;
}
.rhythm-card__hd {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.rhythm-card__hd .num {
  font-family: var(--font-display);
  color: var(--accent); font-size: 13px; font-weight: 600;
  letter-spacing: 0.08em; font-variant-numeric: tabular-nums;
}
.rhythm-card__hd .rule {
  flex: 1; height: 1px; background: var(--hairline);
}
.rhythm-card__hd .time {
  color: var(--text-muted); font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.rhythm-card h3 {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 600;
  letter-spacing: -0.01em; line-height: 1.1; margin: 0;
}
.rhythm-card p {
  color: var(--text-muted); font-size: 16px; line-height: 1.55;
  margin: 14px 0 0;
}
.rhythm-card__illo { margin-top: 28px; }

/* Mini chat mockup inside morning check-in card */
.mini-chat {
  background: var(--bg-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: var(--font-ios);
}
.mini-chat__time {
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--text-dim); text-align: center;
  margin-bottom: 10px; font-variant-numeric: tabular-nums;
}
.mini-chat__bubble {
  display: inline-block;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 14px 14px 14px 4px;
  padding: 9px 12px;
  font-size: 12px; line-height: 1.45;
  color: var(--text); max-width: 100%;
}

/* ---------- FAQ (Section 6) ---------- */
.faq__head { margin-bottom: 56px; }
.faq-row   { border-bottom: 1px solid var(--hairline); }
.faq-row summary {
  list-style: none; cursor: pointer;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 26px 0;
  font-family: var(--font-body);
  font-size: 19px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--text);
}
.faq-row summary::-webkit-details-marker { display: none; }
.faq-row .chev {
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 99px;
  border: 1px solid var(--hairline);
  color: var(--text-muted); flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-std),
              border-color var(--dur-base) var(--ease-std),
              color var(--dur-base) var(--ease-std);
}
.faq-row[open] .chev {
  transform: rotate(45deg);
  border-color: var(--accent);
  color: var(--accent);
}
.faq-row__body {
  padding: 0 0 28px; font-size: 16px; line-height: 1.6;
  color: var(--text-muted); max-width: 640px;
}

/* ---------- Final CTA (Section 7) ---------- */
.cta { text-align: center; max-width: 780px; margin: 0 auto; }
.cta__loop { display: flex; justify-content: center; margin-bottom: 28px; }
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(56px, 8vw, 80px);
  line-height: 0.98;
  font-weight: 600;
  letter-spacing: -0.04em;
  margin: 0;
}
.cta__lede {
  color: var(--text-muted);
  font-size: 18px; line-height: 1.5;
  margin: 22px auto 0;
  max-width: 560px;
}
.cta__form-wrap { display: flex; justify-content: center; margin-top: 40px; }
.cta__form-inner { flex: 1; max-width: 460px; }
.cta .email-row { max-width: 100%; }

/* ---------- Footer ---------- */
.footer { padding: 40px 32px 32px; }
.footer__row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 28px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid var(--hairline);
  color: var(--text-muted); font-size: 12px; letter-spacing: 0.04em;
}
.footer__nav {
  margin: 0; padding: 0; list-style: none;
  display: flex; gap: 24px; align-items: center;
}
.footer__nav a {
  color: var(--text-muted); font-size: 13px; text-decoration: none;
  transition: color var(--dur-fast) var(--ease-std);
}
.footer__nav a:hover { color: var(--text); }

/* ---------- Motion primitives ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}
.fade-up.is-in { opacity: 1; transform: translateY(0); }

.count-up { font-variant-numeric: tabular-nums; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-up { opacity: 1; transform: none; }
  .ring circle.progress { animation: none; stroke-dashoffset: var(--offset); }
  .ios-chat__typing i { animation: none; opacity: 0.6; }
}

/* ---------- Responsive ---------- */

/* Tablet */
@media (max-width: 1100px) {
  .memory   { grid-template-columns: 1fr; gap: 48px; }
  .mockup-frame { --scale: 0.7; height: calc(824px * var(--scale)); }
}

/* Small tablet */
@media (max-width: 900px) {
  .mockups-grid  { grid-template-columns: 1fr; gap: 32px; }
  .mockup-frame  { --scale: 0.85; height: calc(824px * var(--scale)); margin-bottom: 0; padding: 0; }
  .contrast      { grid-template-columns: 1fr; gap: 48px; }
  .rhythm-grid   { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 640px) {
  .section       { padding: 72px 20px; }
  .hero          { padding: 96px 20px 72px; }
  .brand-bar     { inset: 20px 20px auto 20px; }
  .mockups-grid  { gap: 24px; }
  .mockup-frame  { --scale: 0.72; height: calc(824px * var(--scale)); margin-bottom: 0; padding: 0; }
  .rhythm-card   { padding: 28px 22px; }
  .faq-row summary { font-size: 17px; }
}

/* Very narrow */
@media (max-width: 420px) {
  .mockup-frame  { --scale: 0.60; height: calc(824px * var(--scale)); }
}
