/* ---------- Design tokens ---------- */
:root {
  --canvas: #0f0f0f;
  --bg: #141414;
  --surface: #1a1a1a;
  --border: #252525;
  --surface-active: #2a2218;
  --border-active: #c9a96e;
  --accent: #c9a96e;
  --accent-soft: #c9a96e26;
  --on-accent: #0f0f0f;
  --text-primary: #e8e0d5;
  --text-warm: #c8bfb0;
  --text-secondary: #888888;
  --text-tertiary: #666666;
  --text-quiet: #4a4a4a;
  --divider: #1e1e1e;
  --success: #8ba888;
  --error: #c17b6b;

  --mood-shattered: #7a5a8a;
  --mood-numb: #6e8a9e;
  --mood-angry: #9e4a3a;
  --mood-lost: #c9a96e;
  --mood-exhausted: #6a6a4a;
  --mood-guilty: #8a6a4a;
  --mood-lonely: #5a6e8a;
  --mood-surviving: #4a8a6a;

  --font-serif: 'Newsreader', Georgia, 'Iowan Old Style', 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --shadow-soft: 0 20px 60px -20px rgba(0, 0, 0, 0.55);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme="light"] {
  --canvas: #f0ebe1;
  --bg: #faf7f2;
  --surface: #ffffff;
  --border: #e7e0d2;
  --surface-active: #f3e9d4;
  --accent-soft: #c9a96e1f;
  --on-accent: #2a2420;
  --text-primary: #2a2420;
  --text-warm: #4a4038;
  --text-secondary: #6b645c;
  --text-tertiary: #8b8278;
  --text-quiet: #b3aa9c;
  --divider: #ece5d8;
  --success: #6f8f6c;
  --error: #b5544a;
  --shadow-soft: 0 20px 60px -25px rgba(42, 36, 32, 0.25);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --canvas: #f0ebe1;
    --bg: #faf7f2;
    --surface: #ffffff;
    --border: #e7e0d2;
    --surface-active: #f3e9d4;
    --accent-soft: #c9a96e1f;
    --on-accent: #2a2420;
    --text-primary: #2a2420;
    --text-warm: #4a4038;
    --text-secondary: #6b645c;
    --text-tertiary: #8b8278;
    --text-quiet: #b3aa9c;
    --divider: #ece5d8;
    --success: #6f8f6c;
    --error: #b5544a;
    --shadow-soft: 0 20px 60px -25px rgba(42, 36, 32, 0.25);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

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

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 300;
  margin: 0;
  color: var(--text-primary);
}

h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.08; letter-spacing: -0.5px; }
h2 { font-size: clamp(30px, 4vw, 42px); line-height: 1.15; }
h3 { font-size: 20px; font-weight: 500; }

p { color: var(--text-secondary); margin: 0; }

.warm-italic {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-warm);
}

.lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 46ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease), opacity 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn-primary:hover { transform: translateY(-2px); opacity: 0.92; }
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text-primary);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 10px; }

.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.store-badge:hover { border-color: var(--accent); transform: translateY(-2px); }
.store-badge svg { width: 22px; height: 22px; flex-shrink: 0; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge-text span:first-child { font-size: 10px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.06em; }
.store-badge-text span:last-child { font-size: 15px; font-weight: 600; color: var(--text-primary); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--divider); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-serif); font-size: 22px; color: var(--text-primary); }
.nav-logo img { height: 26px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-links-cta { display: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-primary);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-38%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.hero-copy .eyebrow { display: flex; align-items: center; gap: 8px; }
.hero-copy .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { margin-bottom: 34px; }
.hero-actions { display: flex; flex-direction: column; gap: 22px; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-tertiary);
}
.hero-trust svg { width: 15px; height: 15px; flex-shrink: 0; color: var(--accent); }

.hero-visual { position: relative; display: flex; justify-content: center; }
.phone-frame {
  position: relative;
  width: 280px;
  border-radius: 40px;
  border: 8px solid var(--surface);
  background: var(--surface);
  box-shadow: var(--shadow-soft), 0 0 0 1px var(--border);
  overflow: hidden;
  transform: rotate(-2deg);
}
.phone-frame img { width: 100%; display: block; }
.phone-frame.float-card {
  position: absolute;
  width: 190px;
  border-radius: 28px;
  border-width: 6px;
  transform: rotate(6deg);
  right: -34px;
  bottom: -30px;
  z-index: 2;
}
@media (min-width: 900px) {
  .phone-frame.float-card { display: block; }
}

/* ---------- Section scaffolding ---------- */
section { padding: 108px 0; position: relative; }
section[id], #download { scroll-margin-top: 96px; }
.section-head { max-width: 640px; margin: 0 0 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 16px; font-size: 17px; }

.divider-line { height: 1px; background: var(--divider); border: none; margin: 0; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Not-app cards (differentiation) ---------- */
.not-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  border-radius: 18px;
  overflow: hidden;
}
.not-card { background: var(--bg); padding: 32px 28px; }
.not-card .not-label { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 10px; }
.not-card h3 { margin-bottom: 10px; }
.not-card p { font-size: 15px; }

/* ---------- Feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 64px 0;
}
.feature-row:not(:last-child) { border-bottom: 1px solid var(--divider); }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-media { order: 1; }
.feature-copy .eyebrow { margin-bottom: 12px; }
.feature-copy h3 { font-size: 28px; font-weight: 300; font-family: var(--font-serif); margin-bottom: 16px; }
.feature-copy p { font-size: 16px; margin-bottom: 20px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; gap: 10px; font-size: 15px; color: var(--text-secondary); align-items: flex-start; }
.feature-list li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.feature-media { display: flex; justify-content: center; }
.feature-media .phone-frame { width: 240px; transform: rotate(0deg); }

/* ---------- Mood chips strip ---------- */
.mood-strip { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 40px; }
.mood-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  color: var(--text-secondary);
}
.mood-chip .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.step { position: relative; padding-top: 8px; }
.step-num {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 200;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.step h3 { margin-bottom: 10px; font-size: 18px; }
.step p { font-size: 14.5px; }

/* ---------- Privacy section ---------- */
.privacy-section {
  background: var(--bg);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}
.privacy-quote {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.privacy-quote blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(24px, 3.4vw, 34px);
  color: var(--text-warm);
  margin: 0 0 28px;
  line-height: 1.5;
}
.privacy-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
  text-align: left;
}
.privacy-point { display: flex; gap: 14px; }
.privacy-point svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.privacy-point h3 { font-size: 15.5px; font-family: var(--font-sans); font-weight: 600; margin-bottom: 6px; }
.privacy-point p { font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--divider); }
.faq-item:first-child { border-top: 1px solid var(--divider); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 16.5px;
  font-weight: 500;
  color: var(--text-primary);
}
.faq-q .plus { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; background: var(--accent);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.faq-q .plus::before { width: 14px; height: 2px; }
.faq-q .plus::after { width: 2px; height: 14px; transition: transform 0.3s var(--ease); }
.faq-item.open .faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg) scale(0); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-a p { padding: 0 4px 22px; font-size: 15px; max-width: 68ch; }
.faq-item.open .faq-a { max-height: 240px; }

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 120px 0;
}
.final-cta h2 { margin-bottom: 18px; }
.final-cta .lede { margin: 0 auto 36px; }
.final-cta .store-badges { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--divider);
  padding: 64px 0 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.footer-brand { max-width: 300px; }
.footer-brand .nav-logo { margin-bottom: 14px; }
.footer-brand p { font-size: 14px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-tertiary); margin: 0 0 16px; font-weight: 600; }
.footer-col a { display: block; font-size: 14.5px; color: var(--text-secondary); margin-bottom: 12px; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--divider);
  font-size: 13px;
  color: var(--text-quiet);
}
.footer-bottom a { color: var(--text-quiet); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- Legal pages ---------- */
.legal-hero { padding: 160px 0 48px; border-bottom: 1px solid var(--divider); }
.legal-hero .eyebrow { margin-bottom: 16px; }
.legal-hero p.updated { margin-top: 14px; font-size: 14px; color: var(--text-tertiary); }
.legal-body { padding: 64px 0 120px; }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 64px; align-items: start; }
.legal-toc {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--divider);
  padding-left: 20px;
}
.legal-toc a {
  font-size: 13.5px;
  color: var(--text-tertiary);
  padding: 6px 0;
  transition: color 0.2s var(--ease);
}
.legal-toc a:hover { color: var(--accent); }
.legal-content h2 {
  font-size: 24px;
  font-weight: 500;
  font-family: var(--font-sans);
  margin: 56px 0 16px;
  scroll-margin-top: 100px;
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 { font-family: var(--font-sans); font-size: 16.5px; font-weight: 600; margin: 28px 0 10px; }
.legal-content p { font-size: 15.5px; color: var(--text-secondary); margin-bottom: 16px; max-width: 74ch; }
.legal-content ul, .legal-content ol { color: var(--text-secondary); font-size: 15.5px; max-width: 74ch; padding-left: 22px; margin-bottom: 16px; }
.legal-content li { margin-bottom: 8px; }
.legal-content strong { color: var(--text-primary); }
.legal-content a.inline-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-callout {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--surface);
  padding: 18px 22px;
  margin: 24px 0 28px;
  max-width: 74ch;
}
.legal-callout p { margin: 0; font-size: 14.5px; }
.legal-callout p + p { margin-top: 10px; }
.legal-content table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 14.5px; }
.legal-content th, .legal-content td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--divider); color: var(--text-secondary); }
.legal-content th { color: var(--text-primary); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 24px; }
  .not-grid { grid-template-columns: 1fr; }
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: 32px; }
  .feature-row .feature-copy, .feature-row.reverse .feature-copy { order: 2; }
  .feature-row .feature-media, .feature-row.reverse .feature-media { order: 1; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .privacy-points { grid-template-columns: 1fr; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; border-left: none; padding-left: 0; border-top: 1px solid var(--divider); padding-top: 20px; flex-direction: row; flex-wrap: wrap; gap: 16px; }
}
@media (max-width: 760px) {
  .nav-links { position: fixed; top: 76px; left: 0; right: 0; height: calc(100vh - 76px); height: calc(100dvh - 76px); background: var(--canvas); flex-direction: column; align-items: flex-start; padding: 32px 24px; gap: 24px; transform: translateX(100%); transition: transform 0.35s var(--ease); overflow-y: auto; }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 18px; }
  .nav-links-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    background: var(--accent);
    color: var(--on-accent) !important;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 16px !important;
  }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .not-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .hero { padding: 132px 0 64px; }
  .footer-top { flex-direction: column; gap: 32px; }
}
