/* SatoriArc marketing site. One stylesheet, no framework, no web fonts. */

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --ink: #14161f;
  --ink-2: #4a4e5c;
  --ink-3: #7a7e8c;
  --line: #e6e3dc;
  --accent: #0e6e66;
  --accent-ink: #0a524c;
  --accent-soft: #e3f1ee;
  --warm: #d9772b;
  --warm-soft: #fbeee2;
  --glow-a: rgba(14, 110, 102, 0.18);
  --glow-b: rgba(217, 119, 43, 0.16);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 22, 31, 0.04), 0 8px 28px rgba(20, 22, 31, 0.07);
  --max: 1120px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1116;
    --surface: #171a22;
    --ink: #eceae4;
    --ink-2: #b4b6be;
    --ink-3: #8b8e98;
    --line: #2a2e38;
    --accent: #4cc2b4;
    --accent-ink: #7fd6cb;
    --accent-soft: #15302d;
    --warm: #f0a465;
    --warm-soft: #33241a;
    --glow-a: rgba(76, 194, 180, 0.14);
    --glow-b: rgba(240, 164, 101, 0.1);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }

img, svg { max-width: 100%; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* ---- Header ---- */

.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 66px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand svg { width: 28px; height: 28px; }

.nav { display: flex; gap: 24px; margin-left: 12px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.header-cta { margin-left: auto; }

.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--ink); font: inherit; font-size: 15px; }

@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 24px 16px; }
  .nav a { padding: 10px 0; font-size: 17px; }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-block; }
  .site-header .header-cta { display: none; }
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { color: var(--bg); opacity: 0.9; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { color: #fff; background: var(--accent-ink); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-3); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* ---- Hero ---- */

.hero { position: relative; overflow: hidden; padding: 88px 0 40px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 620px; z-index: -1;
  background:
    radial-gradient(40% 55% at 22% 40%, var(--glow-a), transparent 70%),
    radial-gradient(38% 50% at 80% 30%, var(--glow-b), transparent 70%);
  filter: blur(8px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2);
}
.eyebrow b { background: var(--ink); color: var(--bg); border-radius: 999px; padding: 2px 8px; font-size: 11px; letter-spacing: 0.04em; }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 16px; }
h1 { font-size: clamp(38px, 6.2vw, 66px); font-weight: 700; margin-top: 22px; }
h1 em, h2 em { font-style: normal; color: var(--accent); }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.01em; }

.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 680px; margin: 0 auto 30px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fine { font-size: 13px; color: var(--ink-3); margin-top: 14px; }

/* ---- Sections ---- */

section { padding: 72px 0; }
.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--ink-2); font-size: 18px; margin: 0; }
.kicker { display: block; font-size: 13px; font-weight: 650; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---- The sample: a draft with its receipts ---- */

.sample { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; margin-top: 52px; text-align: left; align-items: start; }
@media (max-width: 900px) { .sample { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.card-head .tag { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }

.email { padding: 20px 24px 24px; font-size: 15.5px; line-height: 1.65; }
.email .meta { font-size: 13.5px; color: var(--ink-3); border-bottom: 1px dashed var(--line); padding-bottom: 12px; margin-bottom: 14px; }
.email .meta b { color: var(--ink); font-weight: 600; }
.email p { margin: 0 0 12px; }
sup.src a {
  display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 2px;
  border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; text-decoration: none;
}

.receipts { list-style: none; margin: 0; padding: 8px 0; }
.receipts li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 14px; }
.receipts li:last-child { border-bottom: 0; }
.receipts .n { width: 22px; height: 22px; border-radius: 7px; background: var(--accent-soft); color: var(--accent-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.receipts .what { color: var(--ink); font-weight: 600; }
.receipts .how { color: var(--ink-3); font-size: 13px; }

.abstain { margin-top: 20px; border-left: 4px solid var(--warm); }
.abstain .card-head .tag { color: var(--warm); background: var(--warm-soft); }
.abstain .body { padding: 16px 20px 18px; font-size: 15px; }
.abstain .body p { margin: 0 0 8px; }
.abstain .body .why { color: var(--ink-2); }

.illustrative { font-size: 13px; color: var(--ink-3); margin-top: 14px; text-align: center; }

/* ---- Grids ---- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.band .tile { background: var(--bg); }
.tile p { color: var(--ink-2); margin: 0; font-size: 16px; }
.tile .icon { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 16px; }
.tile .icon svg { width: 22px; height: 22px; }

/* ---- Steps ---- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px; margin-bottom: 14px; }
.steps li.you::before { background: var(--accent); color: #fff; }
.steps p { color: var(--ink-2); margin: 0; font-size: 15.5px; }

/* ---- Won't-do list ---- */

.wont { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
@media (max-width: 760px) { .wont { grid-template-columns: 1fr; } }
.wont li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 16.5px; }
.wont li svg { width: 22px; height: 22px; color: var(--warm); margin-top: 3px; }

/* ---- Status table (security) ---- */

.status { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15.5px; }
.status th, .status td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.status th { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; }
.status tr:last-child td { border-bottom: 0; }
.status td:first-child { font-weight: 600; width: 34%; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; line-height: 1.4; }
.pill.built { background: var(--accent-soft); color: var(--accent-ink); }
.pill.notyet { background: var(--warm-soft); color: var(--warm); }
@media (max-width: 640px) {
  .status, .status tbody, .status tr, .status td { display: block; width: 100%; }
  .status thead { display: none; }
  .status td:first-child { width: 100%; padding-bottom: 4px; }
  .status td { border-bottom: 0; padding: 6px 16px; }
  .status tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
}

/* ---- Prose pages ---- */

.page-hero { padding: 72px 0 28px; }
.page-hero .lede { margin-left: 0; }
.prose { max-width: 740px; }
.prose h2 { font-size: 26px; margin-top: 44px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--warm); background: var(--surface); border-radius: 10px; padding: 14px 18px; color: var(--ink-2); font-size: 15px; }

/* ---- FAQ ---- */

.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--ink-2); margin: 12px 0 0; }

/* ---- Final CTA ---- */

.final { text-align: center; }
.final .card { padding: 56px 28px; background: var(--ink); color: var(--bg); border: 0; position: relative; overflow: hidden; }
.final .card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 15% 0%, rgba(76, 194, 180, 0.35), transparent 70%), radial-gradient(40% 70% at 90% 100%, rgba(240, 164, 101, 0.28), transparent 70%); }
.final .card > * { position: relative; }
.final h2 { color: #fff; }
.final p { color: #c9cbd2; max-width: 560px; margin: 0 auto 26px; }
.final .btn-light { background: #fff; color: #14161f; }

/* ---- Form ---- */

.form { display: grid; gap: 16px; max-width: 560px; }
.field label { display: block; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 16px;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 110px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 15px; min-height: 1.4em; }
.form-status.ok { color: var(--accent-ink); }
.form-status.err { color: #b4321f; }
@media (prefers-color-scheme: dark) { .form-status.err { color: #f08b78; } }

/* ---- Footer ---- */

.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 40px; font-size: 14.5px; color: var(--ink-3); }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
.site-footer h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink-3); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a { transition: opacity 0.15s, background 0.15s, color 0.15s, border-color 0.15s; }
}
