/* One Goal — marketing site
   Calm, editorial, serif-led. Light by default, warm-dark via prefers-color-scheme.
   Palette ported from the app: warm off-white, near-black warm ink, sage accent. */

/* Light-locked to match the app (the app is light-mode only). One warm,
   bright theme; no dark variant. */
:root {
  --bg: #fbfaf6;          /* warm, bright off-white */
  --bg-tint: #f3f1e9;     /* gentle warm wash for rhythm (the app's dusk tone) */
  --surface: #ffffff;
  --ink: #211e19;         /* warm near-black */
  --ink-2: rgba(33, 30, 25, 0.64);
  --ink-3: rgba(33, 30, 25, 0.42);
  --sage-bg: #e7f0e5;     /* soft, inviting sage */
  --sage: #2c4a35;        /* rich, friendly green */
  --sage-2: rgba(44, 74, 53, 0.72);
  --line: rgba(33, 30, 25, 0.10);
  --bezel: #14130f;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1120px;
  --radius: 18px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Type */
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(2.9rem, 8vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.35rem); color: var(--ink-2); line-height: 1.55; max-width: 34ch; }
.eyebrow {
  font: 600 0.72rem/1 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 1.1rem;
}
.muted { color: var(--ink-2); }
.measure { max-width: 60ch; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: 68px; display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 640px) { .nav-links a.hide-sm { display: none; } }

/* Pills / badges */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.01em;
  background: var(--sage-bg); color: var(--sage);
  border: 1px solid color-mix(in srgb, var(--sage) 14%, transparent);
}
.pill .dot { width: 7px; height: 7px; border-radius: 999px; background: var(--sage); opacity: 0.8; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-size: 1rem; font-weight: 500; text-decoration: none;
  background: var(--ink); color: var(--bg);
  border: 1px solid var(--ink);
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}
.btn:hover { opacity: 0.92; }
.btn:active { transform: scale(0.98); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: var(--ink-3); opacity: 1; }

/* Sections */
section { padding: clamp(64px, 11vw, 132px) 0; }
.section-sage { background: var(--sage-bg); }
.section-tint { background: var(--bg-tint); }

/* Hero */
.hero { padding-top: clamp(40px, 7vw, 72px); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero h1 { margin: 18px 0 0; }
.hero h1 .ital { font-style: italic; font-weight: 500; }
.hero .lead { margin: 26px 0 34px; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--ink-3); }
@media (max-width: 860px) {
  .hero { padding-top: clamp(28px, 6vw, 48px); }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  /* Copy leads on mobile: pill, headline, lead, CTA. The screenshot is the
     payoff below the fold, slightly smaller so it doesn't swallow the page. */
  .phone.lg { max-width: 280px; }
}

/* Phone frame (wraps a real screenshot — not a fake UI) */
.phone {
  width: 100%; max-width: 300px; margin: 0 auto;
  aspect-ratio: 1320 / 2868;
  background: var(--bezel);
  border-radius: 46px; padding: 11px;
  box-shadow: 0 50px 90px -28px rgba(28, 26, 23, 0.34), 0 0 0 1px rgba(28, 26, 23, 0.05);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 36px; }
.phone.lg { max-width: 330px; }

/* Editorial centered statement */
.statement { text-align: center; }
.statement h2 { max-width: 18ch; margin: 0 auto; }
.statement .lead { margin: 26px auto 0; max-width: 46ch; text-align: center; }

/* Moment rows (zigzag) */
.moment {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center;
}
.moment + .moment { margin-top: clamp(72px, 10vw, 128px); }
.moment.flip .moment-copy { order: 2; } /* art moves left, copy right */
.moment-copy .step { font-family: var(--serif); font-size: 1.05rem; color: var(--sage-2); margin-bottom: 14px; }
.moment-copy h3 { margin-bottom: 16px; }
@media (max-width: 760px) {
  .moment, .moment.flip { grid-template-columns: 1fr; gap: 32px; }
  /* Step label and heading lead; the screenshot illustrates what they said. */
  .moment .moment-art, .moment.flip .moment-art { order: 2; }
  .moment .phone { max-width: 260px; }
}

/* Unlock */
.unlock-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.unlock-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.unlock-list li { padding: 20px 0; border-top: 1px solid var(--line); }
.unlock-list li:last-child { border-bottom: 1px solid var(--line); }
.unlock-list b { font-weight: 600; }
.unlock-list span { display: block; color: var(--ink-2); font-size: 0.98rem; margin-top: 3px; }
.unlock-price { margin-top: 30px; font-size: 0.95rem; color: var(--ink-2); }
@media (max-width: 760px) {
  .unlock-grid { grid-template-columns: 1fr; gap: 36px; }
  .unlock-art { order: 2; }
  .unlock-art .phone { max-width: 260px; }
}

/* Trust */
.trust { text-align: center; }
.trust-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 48px; text-align: left; }
.trust-cols h3 { font-size: 1.15rem; margin-bottom: 10px; }
.trust-cols p { color: var(--ink-2); font-size: 0.98rem; }
@media (max-width: 760px) { .trust-cols { grid-template-columns: 1fr; gap: 32px; text-align: center; } }

/* Closing CTA */
.closing { text-align: center; }
.closing h2 { max-width: 16ch; margin: 0 auto 28px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 48px 0; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 26px; }
.foot a { color: var(--ink-2); text-decoration: none; font-size: 0.95rem; }
.foot a:hover { color: var(--ink); }
.foot .copy { color: var(--ink-3); font-size: 0.9rem; }

/* Article (privacy / support) */
.article { padding: clamp(56px, 9vw, 104px) 0; }
.article .wrap { max-width: 720px; }
.article h1 { font-size: clamp(2.4rem, 6vw, 3.4rem); margin-bottom: 8px; }
.article .updated { color: var(--ink-3); font-size: 0.92rem; margin-bottom: 40px; }
.article h2 { font-size: 1.5rem; margin: 44px 0 14px; }
.article p { color: var(--ink-2); margin: 14px 0; }
.article p.big { color: var(--ink); font-size: 1.2rem; font-family: var(--serif); line-height: 1.5; }
.article a { color: var(--sage); text-underline-offset: 3px; }

/* Inline text link */
.textlink {
  display: inline-block; margin-top: 24px;
  color: var(--sage); text-decoration: none; font-weight: 500;
  border-bottom: 1px solid color-mix(in srgb, var(--sage) 32%, transparent);
  padding-bottom: 2px; transition: border-color 0.2s var(--ease);
}
.textlink:hover { border-bottom-color: var(--sage); }

/* Why page */
.why-intro { max-width: 640px; }
.why-intro h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); }
.why-intro .lead { max-width: 52ch; margin-top: 24px; }
.principles { margin-top: 18px; }
.principle { padding: 36px 0; border-top: 1px solid var(--line); }
.principle h2 { font-size: clamp(1.5rem, 3vw, 1.95rem); margin-bottom: 14px; }
.principle p { color: var(--ink-2); max-width: 64ch; }
.principle .term { color: var(--sage); font-style: italic; }
.why-close { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.why-close p { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: var(--ink); max-width: 30ch; line-height: 1.35; }

/* Reveal motion (motivated: brings content in as you reach it).
   Visible by DEFAULT — the hidden state only applies when JS is present
   (the `js` class is set inline in <head>), so no-JS, crawlers, and social
   preview renderers always see the content. The animation is pure
   progressive enhancement. */
.reveal { transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(22px); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
