/* ─────────────────────────────────────────────────────────────
   Toll — monochrome editorial. Mirrors the app's palette:
   white paper / dark ink (light), warm gray #343434 (dark).
   Hierarchy from luminance, weight, and 1px outlines — never hue,
   never glow. Fraunces wordmark, system font everywhere else.
   ───────────────────────────────────────────────────────────── */

:root {
  --ink: #ffffff;
  --ink-deep: #f5f5f7;
  --ink-raised: #ffffff;
  --panel: #fbfbfc;
  --panel-dense: #f2f2f5;
  --outline: #d4d4db;
  --outline-strong: #1f1f22;
  --divider: #eaeaee;
  --text-primary: #1f1f22;
  --text-secondary: #6e6e74;
  --text-tertiary: #a9a9b0;
  --action-fill: #1f1f22;
  --action-text: #ffffff;
  --radius: 22px;
  --radius-lg: 28px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #343434;
    --ink-deep: #2b2b2c;
    --ink-raised: #3c3c3e;
    --panel: #3b3b3d;
    --panel-dense: #434346;
    --outline: #5c5c60;
    --outline-strong: #f2f2f4;
    --divider: #454548;
    --text-primary: #f6f6f8;
    --text-secondary: #bfbfc5;
    --text-tertiary: #8c8c92;
    --action-fill: #ffffff;
    --action-text: #1f1f22;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background: var(--ink);
  color: var(--text-primary);
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

a { color: inherit; text-decoration: none; }

/* ── Wordmark ───────────────────────────────────────────── */
.wordmark {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1;
}

/* ── Top bar ────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--divider);
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.topbar .brand { display: flex; align-items: center; gap: 11px; }
.topbar .brand img { width: 26px; height: 26px; border-radius: 7px; }
.topbar .wordmark { font-size: 24px; }
.topbar nav { display: flex; align-items: center; gap: 28px; }
.topbar nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0;
}
.topbar nav a:hover { color: var(--text-primary); }
.topbar nav a.cta {
  color: var(--action-text);
  background: var(--action-fill);
  padding: 8px 16px;
  border-radius: 999px;
}
@media (max-width: 640px) {
  .topbar nav a.nav-link { display: none; }
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--action-fill); color: var(--action-text); }
.btn-primary:hover { opacity: 0.9; }
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--outline);
}
.btn-ghost:hover { border-color: var(--outline-strong); }

/* App Store pill — swap href + label when the listing is live */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--action-fill);
  color: var(--action-text);
  padding: 12px 22px 12px 18px;
  border-radius: 14px;
}
.appstore svg { width: 26px; height: 26px; fill: var(--action-text); }
.appstore .lines { display: flex; flex-direction: column; line-height: 1.1; }
.appstore .lines small { font-size: 11px; opacity: 0.8; letter-spacing: 0; }
.appstore .lines strong { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding: 92px 0 76px; }
.hero .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 22px;
}
.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 16ch;
}
.hero h1 .quiet { color: var(--text-tertiary); }
.hero .sub {
  margin-top: 26px;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--text-secondary);
  max-width: 52ch;
  line-height: 1.55;
}
.hero .actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero .reassure {
  margin-top: 30px;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
  line-height: 1.45;
  max-width: 44ch;
}
.hero .reassure strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ── Manifesto strip ────────────────────────────────────── */
.strip {
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  background: var(--ink-deep);
}
.strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.strip .cell {
  padding: 40px 28px;
  border-left: 1px solid var(--divider);
}
.strip .cell:first-child { border-left: none; padding-left: 0; }
.strip .cell p {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
@media (max-width: 760px) {
  .strip .wrap { grid-template-columns: 1fr; }
  .strip .cell { border-left: none; border-top: 1px solid var(--divider); padding: 28px 0; }
  .strip .cell:first-child { border-top: none; }
}

/* ── Section scaffolding ────────────────────────────────── */
section.block { padding: 88px 0; }
.section-head { max-width: 56ch; margin-bottom: 52px; }
.section-head .kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.022em;
}
.section-head p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Steps ──────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 30px 28px 34px;
  background: var(--panel);
}
.step .num {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-tertiary);
  letter-spacing: 0.1em;
}
.step h3 {
  margin-top: 18px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.step p { margin-top: 12px; font-size: 15px; color: var(--text-secondary); line-height: 1.55; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ── Feature rows ───────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--divider); border: 1px solid var(--divider); border-radius: var(--radius-lg); overflow: hidden; }
.feature { background: var(--ink); padding: 34px 32px; }
.feature h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.feature p { margin-top: 10px; font-size: 15px; color: var(--text-secondary); line-height: 1.55; }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

/* ── Pull quote ─────────────────────────────────────────── */
.pull { padding: 96px 0; border-top: 1px solid var(--divider); }
.pull blockquote {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.022em;
  max-width: 20ch;
}
.pull cite {
  display: block;
  margin-top: 24px;
  font-style: normal;
  font-size: 15px;
  color: var(--text-tertiary);
  font-family: -apple-system, system-ui, sans-serif;
  letter-spacing: 0;
}

/* ── Pricing ────────────────────────────────────────────── */
.pricing { border-top: 1px solid var(--divider); background: var(--ink-deep); }
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 8px; }
.price-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .price-grid-3 { grid-template-columns: 1fr; } }
.price-card {
  border: 1px solid var(--outline);
  border-radius: var(--radius-lg);
  padding: 36px 34px 38px;
  background: var(--ink-raised);
  position: relative;
}
.price-card.feature-card { border-color: var(--outline-strong); }
.price-card .tag {
  position: absolute;
  top: 22px;
  right: 24px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.price-card .plan { font-size: 15px; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: var(--text-secondary); }
.price-card .amount {
  margin-top: 16px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 52px;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.price-card .amount span { font-size: 18px; color: var(--text-tertiary); font-family: -apple-system, system-ui, sans-serif; font-weight: 600; margin-left: 8px; }
.price-card ul { margin-top: 24px; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.price-card li { font-size: 15px; color: var(--text-secondary); display: flex; gap: 11px; align-items: flex-start; }
.price-card li svg { width: 17px; height: 17px; flex: none; margin-top: 2px; stroke: var(--text-primary); }
.price-foot { margin-top: 30px; text-align: center; font-size: 14px; color: var(--text-tertiary); }
@media (max-width: 640px) { .price-grid { grid-template-columns: 1fr; } }

/* ── Footer ─────────────────────────────────────────────── */
footer { border-top: 1px solid var(--divider); padding: 56px 0 64px; }
footer .wrap { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
footer .brand { display: flex; align-items: center; gap: 11px; }
footer .brand img { width: 30px; height: 30px; border-radius: 8px; }
footer .wordmark { font-size: 26px; }
footer .tagline { margin-top: 14px; font-size: 14px; color: var(--text-tertiary); max-width: 30ch; }
footer nav { display: flex; gap: 30px; flex-wrap: wrap; }
footer nav a { font-size: 14px; font-weight: 600; color: var(--text-secondary); }
footer nav a:hover { color: var(--text-primary); }
footer .legal { width: 100%; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--divider); font-size: 13px; color: var(--text-tertiary); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── Legal / content pages ──────────────────────────────── */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 720px; }
.doc h1 {
  font-family: "Fraunces", Georgia, serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(34px, 6vw, 52px);
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.doc .updated { margin-top: 14px; font-size: 14px; color: var(--text-tertiary); }
.doc h2 {
  margin-top: 44px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.015em;
}
.doc h3 { margin-top: 28px; font-size: 17px; font-weight: 700; }
.doc p, .doc li { margin-top: 14px; font-size: 16px; color: var(--text-secondary); line-height: 1.62; }
.doc ul { margin-top: 8px; padding-left: 22px; }
.doc li { margin-top: 8px; }
.doc strong { color: var(--text-primary); font-weight: 600; }
.doc a.inline { color: var(--text-primary); border-bottom: 1px solid var(--outline); }
.doc a.inline:hover { border-color: var(--outline-strong); }
.faq { margin-top: 8px; }
.faq details {
  border-bottom: 1px solid var(--divider);
  padding: 22px 0;
}
.faq summary {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-tertiary); font-weight: 400; font-size: 22px; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 14px; }

.backlink { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 40px; }
.backlink:hover { color: var(--text-primary); }
