/* Fond — brand stylesheet. Warm "paper" palette + Newsreader serif, mirrored
   from the app's Warm Journal theme (apps/mobile/src/lib/theme.tsx). Light +
   dark via prefers-color-scheme. No build step: plain CSS for Cloudflare Pages. */

:root {
  --bg: #FBF7EF;
  --surface: #FFFFFF;
  --surface-alt: #F3ECE0;
  --text: #211C16;
  --text-dim: #6B6258;
  --text-faint: #76695A;
  --line: #E8DFD0;
  --accent: #B5502E;
  --accent-text: #9A4226;
  --accent-soft: #F2E4DA;
  --on-accent: #FFFFFF;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1080px;
  --radius: 20px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16130F;
    --surface: #211C17;
    --surface-alt: #2B251E;
    --text: #F3ECE0;
    --text-dim: #A89C8C;
    --text-faint: #968A78;
    --line: #322B23;
    --accent: #E0794F;
    --accent-text: #EC8E64;
    --accent-soft: #3A2A20;
    --on-accent: #1A1410;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

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

/* ---- top nav ---- */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand .glyph { width: 30px; height: 30px; border-radius: 9px; display: inline-block; }
.nav .links { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.nav .links a { color: var(--text-dim); }
.nav .links a:hover { color: var(--text); text-decoration: none; }

/* ---- hero ---- */
.hero {
  text-align: center;
  padding: 96px 24px 72px;
  background: radial-gradient(120% 120% at 50% -10%, color-mix(in srgb, var(--accent-soft) 60%, var(--bg)) 0%, var(--bg) 58%);
}
.hero .hero-mark { width: 132px; height: 132px; margin: 0 auto 24px; display: block; }
.hero h1 {
  font-family: var(--serif); font-weight: 600; letter-spacing: -0.015em;
  font-size: clamp(40px, 7vw, 68px); line-height: 1.05; margin: 0 0 18px;
}
.hero .lede { font-size: clamp(18px, 2.4vw, 22px); color: var(--text-dim); max-width: 600px; margin: 0 auto 14px; }
.hero .keep { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--accent-text); }

/* ---- store badges / cta ---- */
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 20px; border-radius: 14px;
  background: var(--text); color: var(--bg);
  font-size: 15px; font-weight: 600;
}
.badge:hover { text-decoration: none; opacity: .9; }
.badge small { display: block; font-size: 11px; font-weight: 500; opacity: .7; }
.badge.is-soon { background: var(--surface); color: var(--text-dim); border: 1px solid var(--line); cursor: default; }
.badge.is-soon:hover { opacity: 1; }

/* ---- sections ---- */
section { padding: 72px 0; }
.section-kicker { font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 700; color: var(--accent-text); text-align: center; margin: 0 0 10px; }
.section-title { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4vw, 40px); text-align: center; letter-spacing: -0.01em; margin: 0 auto 12px; max-width: 640px; }
.section-sub { text-align: center; color: var(--text-dim); max-width: 600px; margin: 0 auto 44px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px;
}
.feature .ic {
  width: 46px; height: 46px; border-radius: 13px; margin-bottom: 16px;
  background: var(--accent-soft); color: var(--accent-text);
  display: flex; align-items: center; justify-content: center; font-size: 23px;
}
.feature h3 { font-family: var(--serif); font-weight: 600; font-size: 21px; margin: 0 0 7px; }
.feature p { color: var(--text-dim); font-size: 15.5px; margin: 0; }

/* ---- philosophy band ---- */
.band { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band .quote { font-family: var(--serif); font-size: clamp(24px, 3.6vw, 34px); line-height: 1.4; text-align: center; max-width: 760px; margin: 0 auto; letter-spacing: -0.01em; }
.band .quote em { color: var(--accent-text); font-style: italic; }
.band .by { text-align: center; color: var(--text-faint); font-size: 14px; margin-top: 22px; font-family: var(--sans); }

/* ---- privacy callout ---- */
.privacy-callout { text-align: center; }
.privacy-callout .lock { font-size: 32px; }
.privacy-callout ul { list-style: none; padding: 0; margin: 28px auto 0; max-width: 620px; display: grid; gap: 12px; text-align: left; }
.privacy-callout li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; color: var(--text-dim); font-size: 15.5px; }
.privacy-callout li b { color: var(--text); font-weight: 600; }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 64px; color: var(--text-faint); font-size: 14px; }
.footer .cols { display: flex; flex-wrap: wrap; gap: 30px 60px; justify-content: space-between; }
.footer .brand { font-size: 19px; }
.footer .fcol h4 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .1em; font-size: 11.5px; color: var(--text-faint); margin: 0 0 12px; }
.footer .fcol a { display: block; color: var(--text-dim); margin-bottom: 8px; }
.footer .legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ---- legal pages ---- */
.legal { padding: 56px 0 80px; }
.legal h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 5vw, 40px); margin: 0 0 6px; letter-spacing: -0.01em; }
.legal .updated { color: var(--text-faint); font-size: 14px; margin: 0 0 36px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.legal h2 { font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 38px 0 10px; }
.legal p, .legal li { color: var(--text-dim); }
.legal strong { color: var(--text); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal .card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 22px 0; }
.legal .card h2 { margin-top: 4px; }
.legal code { background: var(--accent-soft); color: var(--accent-text); padding: 1px 6px; border-radius: 5px; font-size: 14px; }

@media (max-width: 820px) {
  .features { grid-template-columns: 1fr; }
  .nav .links a.nav-hide { display: none; }
}
