:root {
  --bg: #fafaf9;
  --text: #171717;
  --muted: #525252;
  --faint: #737373;
  --card: #ffffff;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #047857;
  --accent-hover: #065f46;
  --accent-soft: rgba(4, 120, 87, 0.08);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -12px rgba(0, 0, 0, 0.18);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --text: #f5f5f5;
    --muted: #a3a3a3;
    --faint: #8a8a8a;
    --card: #171717;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #10b981;
    --accent-hover: #34d399;
    --accent-soft: rgba(16, 185, 129, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -12px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

kbd {
  font: 600 0.85em ui-monospace, SFMono-Regular, Menlo, monospace;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 0 5px;
  background: var(--card);
}

/* ── Navigation ───────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.nav nav a:not(.button) {
  color: var(--muted);
  text-decoration: none;
}

.nav nav a:not(.button):hover {
  color: var(--text);
}

/* ── Buttons and links ────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.15s;
}

.button:hover {
  background: var(--accent-hover);
}

.button.small {
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 13px;
}

@media (prefers-color-scheme: dark) {
  .button {
    color: #04130d;
  }
}

.link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.link:hover {
  text-decoration: underline;
}

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

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  text-align: center;
  padding: 72px 0 40px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

h1 {
  margin: 0 auto;
  max-width: 820px;
  font-size: clamp(40px, 7vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.lede {
  margin: 22px auto 0;
  max-width: 640px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.cta {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-shot {
  position: relative;
  margin: 56px auto 0;
  max-width: 1000px;
  padding-right: 120px;
}

.hero-shot .wide {
  width: 100%;
}

.hero-shot .panel {
  position: absolute;
  right: 0;
  bottom: -32px;
  width: 280px;
}

video.shot {
  width: 100%;
  height: auto;
}

.shot {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow);
}

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

.features {
  display: flex;
  flex-direction: column;
  gap: 96px;
  padding: 140px 0 40px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 56px;
  align-items: center;
}

.feature:nth-child(even) {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.feature:nth-child(even) .copy {
  order: 2;
}

.feature .panel {
  max-width: 340px;
  justify-self: center;
}

.feature h2,
.band h2,
.get h2 {
  margin: 0 0 12px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.feature p,
.band p,
.get p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

/* ── Privacy band and closing call to action ─────────────── */

.band {
  margin: 80px 0 0;
  padding: 44px 48px;
  border-radius: 20px;
  background: var(--accent-soft);
}

.band p + p {
  margin-top: 14px;
}

.get {
  text-align: center;
  padding: 96px 0 72px;
}

.get p {
  margin-bottom: 26px;
}

.get .fine {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--faint);
}

.button[aria-disabled='true'] {
  opacity: 0.55;
  pointer-events: none;
}

footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 40px;
  display: flex;
  gap: 24px;
  color: var(--faint);
  font-size: 14px;
  border-top: 1px solid var(--line);
}

/* ── Policy pages (privacy.html) ──────────────────────────── */

.doc {
  max-width: 760px;
  padding: 48px 24px 80px;
}

.doc h1 {
  font-size: 40px;
  text-align: left;
  margin: 0 0 20px;
}

.doc h2 {
  margin: 40px 0 10px;
  font-size: 22px;
  letter-spacing: -0.01em;
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 15px;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.doc th {
  color: var(--text);
}

.doc code {
  font: 0.9em ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--accent-soft);
  padding: 1px 5px;
  border-radius: 5px;
}

/* ── Small screens ────────────────────────────────────────── */

@media (max-width: 760px) {
  .nav nav a:not(.button) {
    display: none;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-shot {
    padding-right: 0;
  }

  .hero-shot .panel {
    display: none;
  }

  .features {
    padding-top: 72px;
    gap: 64px;
  }

  .feature,
  .feature:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature:nth-child(even) .copy {
    order: 0;
  }

  .band {
    padding: 28px 22px;
  }
}

/* ── Shared trail (t.html) ────────────────────────────────── */

.doc .eyebrow {
  margin: 0 0 8px;
}

.doc .meta {
  margin: 0 0 18px;
  color: var(--faint);
  font-size: 14px;
}

.doc .summary {
  margin: 0 0 24px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
}

.trail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.trail-list .trail-list {
  margin-left: 22px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
}

.trail-list li {
  margin: 8px 0;
}

.trail-list a {
  color: var(--text);
  font-weight: 550;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.trail-list a:hover {
  border-bottom-color: var(--accent);
}

.trail-list .host {
  color: var(--faint);
  font-size: 13px;
}

.trail-list blockquote {
  margin: 4px 0 0;
  padding-left: 10px;
  border-left: 2px solid var(--accent);
  color: var(--muted);
  font-size: 14px;
}

.doc .save {
  margin-top: 36px;
  font-size: 14px;
  color: var(--faint);
}
