/* ── Variables ──────────────────────────────────────────── */
:root {
  --bg:       #f9f8f6;
  --text:     #1a1a18;
  --muted:    #6e6e6a;
  --faint:    #ccccc8;
  --accent:   #1a1a18;
  --on-accent:#f9f8f6;
  --rule:     rgba(26,26,24,0.1);
  --width:    960px;
  --serif:    "Cormorant Garamond", Georgia, serif;
  --sans:     "DM Sans", system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg:       #0c0c0a;
  --text:     #ededea;
  --muted:    #9a9a96;
  --faint:    #2e2e2c;
  --accent:   #ededea;
  --on-accent:#0c0c0a;
  --rule:     rgba(237,237,234,0.08);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  transition: background 200ms ease, color 200ms ease;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }

/* ── Shell ──────────────────────────────────────────────── */
.shell, .legal-shell {
  width: min(calc(100% - 48px), var(--width));
  margin: 0 auto;
}
.legal-shell { max-width: 720px; }

/* ── Topbar ─────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-right nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.875rem;
  color: var(--muted);
}

.topbar-right nav a:hover { color: var(--text); }

.nav-cta {
  color: var(--text) !important;
  font-weight: 500;
}

.toggle {
  width: 30px;
  height: 30px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  transition: border-color 160ms, color 160ms;
  flex-shrink: 0;
}
.toggle:hover { border-color: var(--muted); color: var(--text); }
[data-theme-icon]::before { content: "◐"; }
[data-theme-icon][data-mode="dark"]::before { content: "☀"; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--rule);
  max-width: 700px;
}

.kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8.5vw, 5.8rem);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}
.hero h1 em { font-style: italic; }

.hero-lead {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ── Button ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 100px;
  transition: opacity 160ms;
}
.btn:hover { opacity: 0.75; }

/* ── Steps ──────────────────────────────────────────────── */
.steps {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--rule);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

.steps ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}

.step-n {
  font-family: var(--serif);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  padding-top: 2px;
}

.steps li strong {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

.steps li p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Privacy ────────────────────────────────────────────── */
.privacy-sec {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--rule);
}

.privacy-sec h2 {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.025em;
  max-width: 560px;
  margin-bottom: 24px;
}
.privacy-sec h2 em { font-style: italic; }

.privacy-sec p {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.7;
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--rule);
}

.faq dl {
  display: flex;
  flex-direction: column;
}

.faq dl > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}

.faq dt {
  font-weight: 500;
  font-size: 0.9375rem;
  padding-top: 1px;
}

.faq dd {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Prose asides ───────────────────────────────────────── */
.prose-aside {
  padding: 56px 0 52px;
  border-bottom: 1px solid var(--rule);
  max-width: 620px;
}

.prose-aside--offset {
  margin-left: auto;
  margin-right: 0;
  max-width: 560px;
  text-align: right;
}

.prose-aside p {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.72;
  color: var(--muted);
  letter-spacing: 0.005em;
}

/* ── Screenshots ───────────────────────────────────────── */
.screenshots {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px 64px;
  align-items: start;
}

.screenshots-copy {
  position: sticky;
  top: 32px;
}

.screenshots-copy .section-title {
  margin-bottom: 20px;
}

.screenshots-lead {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.72;
  margin-top: 14px;
}

.screenshots-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.screenshot-frame {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.screenshot-frame--lower {
  margin-top: 32px;
}

.screenshot-frame img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--rule);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 8px 24px rgba(0,0,0,0.08),
    0 24px 48px rgba(0,0,0,0.06);
  display: block;
}

[data-theme="dark"] .screenshot-frame img {
  box-shadow:
    0 2px 4px rgba(0,0,0,0.2),
    0 8px 24px rgba(0,0,0,0.4),
    0 24px 48px rgba(0,0,0,0.3);
  border-color: rgba(255,255,255,0.06);
}

/* Light mode: swap to white variants */
[data-theme="light"] .screenshot-img--empty { content: url("./assets/empty-white.png"); }
[data-theme="light"] .screenshot-img--example { content: url("./assets/example-white.png"); }

.screenshot-frame figcaption {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  padding-left: 2px;
}

@media (max-width: 680px) {
  .screenshots {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .screenshots-copy { position: static; }
  .screenshot-frame--lower { margin-top: 0; }
}

/* ── Haiku ──────────────────────────────────────────────── */
.haiku {
  margin: 0;
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--rule);
}

.haiku blockquote {
  display: inline-flex;
  flex-direction: column;
  gap: 0;
  border-left: 1px solid var(--faint);
  padding-left: 22px;
}

.haiku p {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.85;
  letter-spacing: 0.01em;
  margin: 0;
}

/* ── CTA ────────────────────────────────────────────────── */
.cta-sec {
  padding: 80px 0 72px;
  border-bottom: 1px solid var(--rule);
}

.cta-sec .kicker { margin-bottom: 14px; }

.cta-sec h2 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin-bottom: 36px;
  max-width: 580px;
}
.cta-sec h2 em { font-style: italic; }

/* ── Footer ─────────────────────────────────────────────── */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 30px;
  font-size: 0.8125rem;
  color: var(--muted);
}

footer nav { display: flex; gap: 18px; }
footer a:hover { color: var(--text); }

.legal-footer {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 0 30px;
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}
.legal-footer a:hover { color: var(--text); }

/* ── Legal pages ────────────────────────────────────────── */
.legal-header {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--rule);
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 48px;
}

.back-link {
  font-size: 0.875rem;
  color: var(--muted);
}
.back-link:hover { color: var(--text); }

.legal-header h1 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.06;
  margin-bottom: 10px;
}

.legal-header p {
  font-size: 0.875rem;
  color: var(--muted);
}

.legal-body {
  padding: 40px 0 80px;
}

.legal-body section {
  margin-top: 40px;
}

.legal-body h2 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.legal-body h3 {
  font-weight: 500;
  font-size: 0.9375rem;
  margin: 18px 0 6px;
}

.legal-body p, .legal-body li {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}

.legal-body p + p { margin-top: 12px; }
.legal-body ul { padding-left: 20px; margin-top: 8px; }
.legal-body li { margin-top: 6px; }

.legal-body a { text-decoration: underline; text-underline-offset: 3px; }

.table-wrap { overflow-x: auto; margin-top: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}
th { font-weight: 500; color: var(--text); }

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .shell, .legal-shell { width: calc(100% - 32px); }
  .topbar-right nav { display: none; }
  .faq dl > div { grid-template-columns: 1fr; gap: 8px; }
  .steps li { grid-template-columns: 40px 1fr; gap: 12px; }
  footer { flex-direction: column; align-items: flex-start; gap: 12px; }
}
