/* ───────────────────────── Tokens (mirror DESIGN.md) ───────────────────── */

:root {
  color-scheme: light;
  --surface-0: oklch(0.985 0.004 70);
  --surface-1: oklch(0.975 0.006 70);
  --surface-2: oklch(0.955 0.008 70);
  --surface-3: oklch(0.925 0.010 70);
  --ink-strong: oklch(0.22 0.012 70);
  --ink: oklch(0.36 0.010 70);
  --ink-muted: oklch(0.55 0.008 70);
  --ink-faint: oklch(0.72 0.006 70);
  --line: oklch(0.92 0.008 70);
  --line-strong: oklch(0.85 0.010 70);
  --accent: oklch(0.665 0.180 35);
  --accent-strong: oklch(0.595 0.190 32);
  --accent-soft: oklch(0.955 0.030 35);
  --accent-ink: oklch(0.99 0.005 60);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--surface-1);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-feature-settings: 'cv11', 'ss03';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }

/* ───────────────────────── Layout ──────────────────────────────────────── */

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

header.top {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header.top .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-strong);
}
header.top .brand img { width: 28px; height: 28px; border-radius: 6px; }
header.top nav a {
  margin-left: 24px;
  font-size: 14px;
  color: var(--ink-muted);
}
header.top nav a:hover { color: var(--ink-strong); text-decoration: none; }

/* ───────────────────────── Hero ────────────────────────────────────────── */

.hero {
  padding: 64px 0 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 48px;
  align-items: center;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--ink-strong);
  font-weight: 600;
}
.hero h1 .accent {
  color: var(--accent);
}
.hero p.lede {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  max-width: 52ch;
}
.hero .cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: background-color 160ms cubic-bezier(.16,1,.3,1), transform 160ms cubic-bezier(.16,1,.3,1);
}
.hero .cta:hover { background: var(--accent-strong); text-decoration: none; transform: translateY(-1px); }
.hero .cta svg { width: 16px; height: 16px; }
.hero .ghost-link {
  display: inline-block;
  margin-left: 12px;
  color: var(--ink-muted);
  font-size: 14px;
}
.hero .ghost-link:hover { color: var(--ink-strong); text-decoration: none; }
.hero .device {
  position: relative;
  background:
    radial-gradient(circle at 60% 30%, oklch(0.985 0.020 60), oklch(0.92 0.018 50));
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 18px 48px -10px oklch(0.2 0.01 70 / 0.18);
  overflow: hidden;
}
.hero .device img {
  display: block;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 10px 24px -8px oklch(0.2 0.01 70 / 0.18);
}

/* ───────────────────────── Trust line ─────────────────────────────────── */

.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin-top: 48px;
  font-size: 14px;
  color: var(--ink-muted);
  text-align: center;
}
.trust strong { color: var(--ink-strong); font-weight: 600; }

/* ───────────────────────── Features ───────────────────────────────────── */

section.features {
  padding: 64px 0 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
section.features h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--ink-strong);
  font-weight: 600;
  letter-spacing: -0.005em;
}
section.features p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
section.features .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ───────────────────────── Showcase ───────────────────────────────────── */

section.showcase {
  padding: 64px 0;
}
section.showcase h2 {
  font-size: 28px;
  margin: 0 0 8px;
  letter-spacing: -0.015em;
  color: var(--ink-strong);
  font-weight: 600;
}
section.showcase p.sub {
  font-size: 15px;
  color: var(--ink-muted);
  margin: 0 0 32px;
  max-width: 56ch;
}
section.showcase .frame {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-0);
}
section.showcase .frame img {
  display: block;
  width: 100%;
}

/* ───────────────────────── How it works ──────────────────────────────── */

section.how {
  padding: 48px 0 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
}
section.how .step {
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
section.how .step .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
section.how .step h4 { margin: 0 0 4px; font-size: 15px; color: var(--ink-strong); font-weight: 600; }
section.how .step p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }

/* ───────────────────────── Privacy callout ───────────────────────────── */

section.privacy-callout {
  margin: 32px 0 64px;
  padding: 32px;
  background: var(--surface-0);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}
section.privacy-callout h2 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--ink-strong);
  letter-spacing: -0.012em;
  font-weight: 600;
}
section.privacy-callout p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
section.privacy-callout .read {
  text-align: right;
  font-size: 14px;
  font-weight: 500;
}

/* ───────────────────────── Footer ─────────────────────────────────────── */

footer.bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-muted);
}
footer.bottom .links a { margin-left: 18px; }
footer.bottom .links a:first-child { margin-left: 0; }

/* ───────────────────────── Privacy page ──────────────────────────────── */

article.policy {
  max-width: 720px;
  margin: 48px auto 96px;
  padding: 0 32px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}
article.policy h1 {
  font-size: 32px;
  letter-spacing: -0.015em;
  color: var(--ink-strong);
  margin: 0 0 8px;
  font-weight: 600;
}
article.policy .updated {
  color: var(--ink-muted);
  font-size: 13px;
  margin-bottom: 32px;
}
article.policy h2 {
  font-size: 18px;
  color: var(--ink-strong);
  margin: 40px 0 8px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
article.policy p { margin: 0 0 12px; }
article.policy ul { padding-left: 22px; margin: 0 0 16px; }
article.policy ul li { margin-bottom: 6px; }
article.policy strong { color: var(--ink-strong); font-weight: 600; }
article.policy a { color: var(--accent); }
article.policy .back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--ink-muted);
}
article.policy .back:hover { color: var(--ink-strong); text-decoration: none; }

/* ───────────────────────── Responsive ─────────────────────────────────── */

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding: 40px 0 24px; }
  .hero h1 { font-size: 34px; }
  .hero .device { order: -1; }
  section.how { grid-template-columns: 1fr; }
  section.privacy-callout { grid-template-columns: 1fr; }
  section.privacy-callout .read { text-align: left; }
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface-0: oklch(0.165 0.008 65);
    --surface-1: oklch(0.195 0.010 65);
    --surface-2: oklch(0.235 0.012 65);
    --surface-3: oklch(0.275 0.014 65);
    --ink-strong: oklch(0.96 0.008 70);
    --ink: oklch(0.86 0.008 70);
    --ink-muted: oklch(0.66 0.008 70);
    --ink-faint: oklch(0.48 0.008 70);
    --line: oklch(0.30 0.010 65);
    --line-strong: oklch(0.40 0.012 65);
    --accent: oklch(0.72 0.180 38);
    --accent-strong: oklch(0.78 0.180 38);
    --accent-soft: oklch(0.28 0.060 35);
    --accent-ink: oklch(0.16 0.020 35);
    color-scheme: dark;
  }
}
