/* Same tokens as the extension popup (see DESIGN.md in the extension project). */
:root {
  color-scheme: light;
  --bg: oklch(99.2% 0.003 170);
  --surface: oklch(96.8% 0.006 170);
  --tint: oklch(95% 0.022 168);
  --line: oklch(91.5% 0.008 170);
  --text: oklch(23% 0.014 170);
  --muted: oklch(45% 0.014 170);
  --accent: oklch(49% 0.1 168);
  --accent-hover: oklch(44% 0.1 168);
  --accent-ink: oklch(99% 0.01 168);
  --shadow: 0 1px 2px oklch(20% 0.02 170 / 0.1), 0 24px 56px -16px oklch(20% 0.04 170 / 0.28);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;
  --wrap: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: oklch(17% 0.008 170);
    --surface: oklch(21% 0.009 170);
    --tint: oklch(23% 0.03 168);
    --line: oklch(29% 0.01 170);
    --text: oklch(95% 0.006 170);
    --muted: oklch(73% 0.012 170);
    --accent: oklch(74% 0.11 168);
    --accent-hover: oklch(79% 0.11 168);
    --accent-ink: oklch(20% 0.03 168);
    --shadow: 0 0 0 1px oklch(100% 0 0 / 0.08), 0 24px 56px -16px oklch(0% 0 0 / 0.6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: color-mix(in oklch, var(--accent), transparent 75%); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }

/* Header */
.top { display: flex; align-items: center; gap: 24px; padding-block: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 17px; color: var(--text); text-decoration: none; margin-right: auto; }
.brand img { width: 28px; height: 28px; }
.top nav { display: flex; gap: 20px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--text); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: center; padding-block: 48px 96px; }
.hero h1 { font-size: clamp(40px, 6vw, 60px); letter-spacing: -0.03em; font-weight: 750; }
.hero .lede { margin-top: 20px; font-size: 20px; color: var(--muted); max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.button {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 22px; line-height: 1.3;
  border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 16px; text-decoration: none; transition: background-color 120ms ease-out;
}
.button:hover { background: var(--accent-hover); color: var(--accent-ink); }
.button svg { width: 18px; height: 18px; }
.button.secondary { background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.button.secondary:hover { background: var(--surface); color: var(--text); }
.cta small { flex-basis: 100%; color: var(--muted); font-size: 14px; }
.shot { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); width: 360px; }

/* Sections */
section { padding-block: 72px; border-top: 1px solid var(--line); }
section > .wrap > h2 { font-size: clamp(28px, 4vw, 38px); }
.intro { margin-top: 12px; color: var(--muted); font-size: 19px; max-width: 56ch; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 16px;
  border-radius: 50%; background: var(--tint); color: var(--accent); font-weight: 700; font-size: 15px;
}
.steps h3, .points h3 { font-size: 19px; margin-bottom: 6px; }
.steps p, .points p { color: var(--muted); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.points { display: grid; gap: 28px; margin-top: 32px; }
.points > div { display: grid; grid-template-columns: 24px 1fr; gap: 14px; }
.points svg { width: 24px; height: 24px; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.note { background: var(--tint); border-radius: 14px; padding: 32px; }
.note h2 { font-size: 26px; }
.note p { margin-top: 12px; color: var(--muted); }
.note p + p { margin-top: 12px; }

.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: min(640px, 86%); gap: 20px; overflow-x: auto; margin-top: 40px; padding-bottom: 16px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.gallery img { border-radius: 10px; scroll-snap-align: start; border: 1px solid var(--line); }

.faq { margin-top: 32px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding-block: 18px; font-weight: 600; font-size: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; margin-top: 4px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; transition: transform 160ms ease-out; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 65ch; }

.support { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.support > div { flex: 1 1 480px; }

footer { border-top: 1px solid var(--line); padding-block: 32px 48px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* Privacy page */
.doc { max-width: 720px; padding-block: 40px 96px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); letter-spacing: -0.03em; }
.doc .updated { margin-top: 8px; color: var(--muted); font-size: 15px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--muted); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 22px; margin: 12px 0 0; }
.doc li + li { margin-top: 6px; }
.doc ul + p { margin-top: 12px; }
.doc strong { color: var(--text); font-weight: 600; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 24px 64px; }
  .shot { justify-self: center; max-width: 100%; }
  .steps, .split { grid-template-columns: 1fr; gap: 32px; }
  section { padding-block: 56px; }
}
@media (max-width: 520px) {
  .top nav a.hide-sm { display: none; }
  .note { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
