/* Same language as the app: Inter, macOS system colors, flat surfaces with hairlines — no shadows,
   no gradients. Secondary text and links keep ≥4.5:1 on both themes. */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("assets/fonts/inter-latin-opsz-normal.woff2") format("woff2-variations");
}

:root {
  color-scheme: light dark;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --hairline: rgba(0, 0, 0, 0.08);
  --text: #1d1d1f;
  --text-2: #5e5e64;
  --link: #0058b0;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --control: rgba(0, 0, 0, 0.06);
  --control-hover: rgba(0, 0, 0, 0.1);
  --code: rgba(0, 0, 0, 0.05);
  --radius: 18px;
  --font: "Inter Variable", -apple-system, "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #161617;
    --hairline: rgba(255, 255, 255, 0.1);
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --link: #7dbdff;
    --control: rgba(255, 255, 255, 0.12);
    --control-hover: rgba(255, 255, 255, 0.18);
    --code: rgba(255, 255, 255, 0.08);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.5 var(--font);
  font-feature-settings: "cv11";
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 500 0.88em/1 "Cascadia Mono", ui-monospace, Consolas, monospace; background: var(--code); padding: 2px 6px; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; text-align: center; }

/* ── nav ──────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px max(16px, calc((100% - 1080px) / 2));
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--hairline);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); }
.brand:hover { text-decoration: none; }
.nav nav { display: flex; gap: 22px; font-size: 14px; }
.nav nav a { color: var(--text-2); }
.nav nav a:hover { color: var(--text); text-decoration: none; }

main { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
section { padding: 72px 0; }

/* ── hero ─────────────────────────────────────────────────────── */
.hero { text-align: center; padding-top: 80px; padding-bottom: 40px; }
.hero-icon { width: 144px; height: 144px; }
.hero h1 { margin-top: 20px; font-size: clamp(40px, 7vw, 72px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; }
.lede { max-width: 640px; margin: 24px auto 0; font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); }
.actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button {
  display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px;
  background: var(--control); color: var(--text); font-weight: 600; font-size: 16px;
  transition: background 160ms;
}
.button:hover { background: var(--control-hover); text-decoration: none; }
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-hover); }
.fineprint { margin-top: 16px; font-size: 13px; color: var(--text-2); }

/* ── showcase ─────────────────────────────────────────────────── */
.showcase { padding-top: 24px; }
.showcase figure { margin: 0; text-align: center; }
.showcase img {
  width: min(380px, 100%); height: auto;
  border-radius: 12px; border: 1px solid var(--hairline);
}
.showcase figcaption { margin-top: 16px; color: var(--text-2); font-size: 15px; }

/* ── steps ────────────────────────────────────────────────────── */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li, .grid article {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 28px;
}
.step {
  display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
}
.steps h3, .grid h3 { margin-top: 14px; font-size: 19px; font-weight: 650; }
.grid h3 { margin-top: 0; }
.steps p, .grid p { margin: 8px 0 0; font-size: 15px; color: var(--text-2); }

/* ── features ─────────────────────────────────────────────────── */
.grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ── tools ────────────────────────────────────────────────────── */
.sub { text-align: center; color: var(--text-2); margin: 12px auto 0; max-width: 560px; }
.chips { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.chips li {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 14px;
  font-size: 14px; color: var(--text-2);
}
.chips code { align-self: flex-start; color: var(--text); }

/* ── faq ──────────────────────────────────────────────────────── */
.faq { max-width: 760px; margin: 0 auto; }
.faq h2 { margin-bottom: 32px; }
details { border-top: 1px solid var(--hairline); padding: 18px 4px; }
details:last-of-type { border-bottom: 1px solid var(--hairline); }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--text-2); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: var(--text-2); font-size: 15px; }

/* ── policy page ──────────────────────────────────────────────── */
.policy { max-width: 720px; padding-top: 64px; padding-bottom: 72px; }
.policy h1 { font-size: clamp(36px, 5vw, 48px); font-weight: 800; letter-spacing: -0.03em; }
.policy .updated { margin: 8px 0 32px; color: var(--text-2); font-size: 14px; }
.policy h2 { margin: 40px 0 12px; font-size: 22px; text-align: left; letter-spacing: -0.01em; }
.policy p, .policy li { font-size: 16px; color: var(--text); }
.policy ul { padding-left: 20px; }
.policy li + li { margin-top: 8px; }

/* ── footer ───────────────────────────────────────────────────── */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px;
  padding: 40px 16px 56px; border-top: 1px solid var(--hairline); font-size: 13px; color: var(--text-2);
}
.footer img { margin-right: -10px; }

@media (max-width: 820px) {
  .steps, .grid { grid-template-columns: 1fr; }
  .nav nav a:not(:last-child) { display: none; }
  section { padding: 48px 0; }
}

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