/* =============================================================================
   "Native Calm" — landing site design system
   Tokens mirror Docs/DESIGN_SYSTEM.md. Serif = New York (system) for editorial
   headlines only; SF Pro / system-ui for everything else.
   ============================================================================= */

:root {
  --teal700: #0E9698;
  --teal500: #23A7A7;
  --teal800: #0B7A7C;
  --tealTint: #D9F2F1;
  --tealWash: #ECF8F7;
  --ink: #123047;
  --body: #4A5A61;
  --sub: #7A8890;
  --line: #E3E8E8;
  --bg: #FAFAF8;
  --card: #FFFFFF;
  --danger: #C4453B;
  --warn: #B98A2F;

  --shadow-sm: 0 1px 2px rgba(18, 48, 71, 0.05);
  --shadow-md: 0 6px 24px rgba(18, 48, 71, 0.07);
  --shadow-lg: 0 24px 60px rgba(18, 48, 71, 0.12);

  --radius: 14px;
  --radius-lg: 24px;
  --maxw: 1120px;

  --serif: ui-serif, "New York", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --teal700: #2DB5B4;
    --teal500: #3FC4C0;
    --teal800: #56D0CB;
    --tealTint: #143840;
    --tealWash: #102A31;
    --ink: #ECF3F3;
    --body: #B7C4C7;
    --sub: #8B9A9E;
    --line: #263539;
    --bg: #0C1618;
    --card: #15242A;
    --danger: #E0685E;
    --warn: #D6AA55;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: var(--teal700); text-decoration: none; }
a:hover { color: var(--teal800); }

h1, h2, h3, h4 { color: var(--ink); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; }
.serif { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; }

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

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

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: var(--radius);
  font-family: var(--sans); font-size: 17px; font-weight: 600;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal700); color: #fff; }
.btn-primary:hover { background: var(--teal800); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal700); color: var(--teal700); }
.btn-lg { height: 56px; padding: 0 30px; font-size: 17px; }

.badge-store {
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 20px; border-radius: var(--radius);
  background: var(--ink); color: #fff; font-weight: 600;
}
@media (prefers-color-scheme: dark) { .badge-store { background: #000; border: 1.5px solid var(--line); } }
.badge-store small { display: block; font-size: 11px; font-weight: 500; opacity: .75; line-height: 1; margin-bottom: 2px; }
.badge-store span { font-size: 19px; line-height: 1; }
.badge-store svg { width: 24px; height: 24px; }
.store-note { color: var(--sub); font-size: 14px; margin-top: 12px; }

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); font-size: 19px; }
.brand:hover { color: var(--ink); }
.brand .logo { width: 32px; height: 32px; border-radius: 9px; box-shadow: var(--shadow-sm); }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--body); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--teal700); }
.site-nav .btn { height: 42px; padding: 0 18px; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---- Hero ---------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%; z-index: 0; opacity: .9;
}
.hero-bg-fade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--bg) 20%, transparent) 0%,
    color-mix(in srgb, var(--bg) 55%, transparent) 55%,
    var(--bg) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 120px; padding-bottom: 128px; text-align: center; }
.hero h1 { font-size: clamp(34px, 6vw, 62px); letter-spacing: -0.02em; max-width: 15ch; margin: 0 auto .28em; text-wrap: balance; }
.hero-sub { font-size: clamp(17px, 2.4vw, 21px); color: var(--body); max-width: 48ch; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
@media (prefers-color-scheme: dark) {
  .hero-bg { opacity: .32; }
}
:root[data-theme="dark"] .hero-bg { opacity: .32; }
:root[data-theme="light"] .hero-bg { opacity: .95; }

/* ---- Trust strip --------------------------------------------------------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.trust .container { display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: center; padding-top: 20px; padding-bottom: 20px; }
.trust-item { display: flex; align-items: center; gap: 9px; color: var(--body); font-size: 14.5px; font-weight: 500; }
.trust-item svg { width: 19px; height: 19px; color: var(--teal700); flex: none; }

/* ---- Sections ------------------------------------------------------------ */
.section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 42px); letter-spacing: -0.02em; text-wrap: balance; }
.section-head p { font-size: 18px; color: var(--body); margin: 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- Feature rows (screenshot + copy) ------------------------------------ */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature-row + .feature-row { margin-top: 96px; }
.feature-row.reverse .feature-media { order: 2; }
.feature-media { display: flex; justify-content: center; }
.feature-media img {
  width: 100%; max-width: 468px; height: auto; border-radius: 22px;
  box-shadow: var(--shadow-lg); background: var(--tealWash);
}
.feature-copy h3 { font-size: clamp(24px, 3.2vw, 32px); letter-spacing: -0.01em; }
.feature-copy p { font-size: 17px; margin: 0 0 18px; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--body); }
.feature-list li svg { position: absolute; left: 0; top: 3px; width: 20px; height: 20px; color: var(--teal700); }

/* ---- Card grid ----------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.section-alt .card { background: var(--bg); }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px; background: var(--tealTint);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card .icon svg { width: 26px; height: 26px; color: var(--teal700); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { font-size: 15.5px; margin: 0; color: var(--body); }

/* ---- Privacy panel ------------------------------------------------------- */
.panel {
  background: var(--tealWash); border: 1.5px solid var(--line);
  border-radius: var(--radius-lg); padding: 48px;
}
.panel .grid { gap: 28px; }
.panel .card { background: var(--card); }

/* ---- Steps --------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { text-align: left; }
.step .num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--teal700); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 18px;
  margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin-bottom: 6px; }
.step p { margin: 0; font-size: 15.5px; }

/* ---- FAQ ----------------------------------------------------------------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 8px 0;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 40px 16px 0; position: relative;
  font-weight: 600; color: var(--ink); font-size: 17.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px;
  border-right: 2px solid var(--sub); border-bottom: 2px solid var(--sub);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 16px; color: var(--body); }

/* ---- Final CTA ----------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .inner {
  background: var(--teal700); border-radius: var(--radius-lg); padding: 64px 32px;
  position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: clamp(28px, 4.5vw, 40px); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.9); font-size: 18px; max-width: 46ch; margin: 0 auto 28px; }
.cta-band .btn-primary { background: #fff; color: var(--teal800); }
.cta-band .btn-primary:hover { background: #f0fbfa; color: var(--teal800); }
.cta-band .store-note { color: rgba(255,255,255,.8); }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--card); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--sub); font-size: 14.5px; max-width: 34ch; margin: 0; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--sub); font-weight: 600; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--body); font-size: 15px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--teal700); }
.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--sub); font-size: 13.5px;
}
.footer-bottom .disclaimer { max-width: 70ch; }

/* ---- Legal / doc pages --------------------------------------------------- */
.doc-head { padding: 64px 0 8px; }
.doc-head .eyebrow { text-align: left; }
.doc-head h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -0.02em; }
.doc-head .updated { color: var(--sub); font-size: 15px; }
.doc { padding-top: 24px; padding-bottom: 80px; }
.doc h2 { font-size: 24px; margin: 44px 0 12px; letter-spacing: -0.01em; }
.doc h3 { font-size: 19px; margin: 28px 0 8px; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.7; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .lead { font-size: 19px; color: var(--body); }
.doc a { text-decoration: underline; text-underline-offset: 2px; }
.callout {
  background: var(--tealWash); border: 1.5px solid var(--line); border-left: 4px solid var(--teal700);
  border-radius: 12px; padding: 18px 22px; margin: 24px 0;
}
.callout p { margin: 0; font-size: 15.5px; }
.callout strong { color: var(--ink); }
.toc {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin: 28px 0 36px;
}
.toc h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--sub); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc a { text-decoration: none; font-size: 15px; }

/* ---- Support cards ------------------------------------------------------- */
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 8px; }
.contact-card {
  background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center;
}
.contact-card .icon { margin: 0 auto 14px; }

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 900px) {
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .feature-media { order: 0; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .panel { padding: 32px 24px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--card); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; box-shadow: var(--shadow-md);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 12px; height: 48px; }
  .grid, .steps, .support-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .toc ol { columns: 1; }
  .hero .container { padding-top: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ---- Data table (privacy) ------------------------------------------------ */
.table-wrap { overflow-x: auto; margin: 20px 0 8px; border: 1.5px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.data-table thead th { background: var(--tealWash); color: var(--ink); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td:first-child { font-weight: 600; color: var(--ink); }
.data-table .yes { color: var(--warn); font-weight: 600; }
.data-table .no { color: var(--teal700); font-weight: 600; }
.table-note { font-size: 13.5px; color: var(--sub); margin: 4px 0 0; }
.doc .provider-list { list-style: none; padding: 0; }
.doc .provider-list li { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.doc .provider-list li:last-child { border-bottom: 0; }
.doc .provider-list strong { color: var(--ink); }
