/* ===========================================================================
   site.css — ledger.chat marketing site
   ---------------------------------------------------------------------------
   Every colour, font, radius and shadow here resolves to a token defined in
   ledger-core.css, which is extracted from the application itself. Marketing
   components are new; the primitives underneath them are the product's.
   =========================================================================== */

/* ── Tokens the marketing surface adds ──────────────────────────────────── */
:root {
  --maxw: 1180px;
  --gutter: 24px;
  --section-y: 104px;
  --hair: #17191d;
  --grad-surface: linear-gradient(180deg, #0f1114 0%, #0b0d10 100%);
  --glow: radial-gradient(60% 55% at 50% 0%, rgba(94, 234, 212, .11) 0%, rgba(94, 234, 212, .03) 45%, transparent 72%);
  --shadow-lg: 0 48px 120px -48px rgba(0, 0, 0, .95), 0 12px 40px -20px rgba(0, 0, 0, .8);
}

/* The app fixes its shell to the viewport; the site scrolls. */
html, body { height: auto; }
body {
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--bg);
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #06201c; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; }

/* ── Typography ─────────────────────────────────────────────────────────── */
.h-xl, .h-lg, .h-md, .h-sm {
  letter-spacing: -.03em;
  text-wrap: balance;
  font-weight: 600;
}
.h-xl { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.02; letter-spacing: -.038em; }
.h-lg { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; }
.h-md { font-size: clamp(21px, 2.1vw, 26px); line-height: 1.2; }
.h-sm { font-size: 17px; line-height: 1.35; letter-spacing: -.015em; }

.lede {
  font-size: clamp(16.5px, 1.55vw, 19px);
  line-height: 1.62;
  color: var(--text2);
  text-wrap: pretty;
}
.body-copy { font-size: 15px; line-height: 1.68; color: var(--text-dim); text-wrap: pretty; }
.small { font-size: 13px; line-height: 1.6; color: var(--text-dim3); }
.tiny { font-size: 11.5px; line-height: 1.55; color: var(--text-dim4); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono);
  font-size: 21px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: ""; width: 34px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-border));
}
.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
.dim { color: var(--text-dim); }
.nowrap { white-space: nowrap; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section-y) 0; border-top: 1px solid var(--hair); position: relative; }
.section--tight { padding: 72px 0; }
.section-head { max-width: 760px; }
.section-head .h-lg { margin: 18px 0 16px; }
.section-head .lede { max-width: 640px; }
.split { display: grid; grid-template-columns: 1.02fr .98fr; gap: 64px; align-items: center; }
.stack-sm > * + * { margin-top: 12px; }
.stack > * + * { margin-top: 20px; }

/* ── Buttons (same geometry and accent as the app's modal buttons) ──────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border3);
  background: var(--surface3);
  color: var(--text);
  font-size: 13.5px; font-weight: 500; line-height: 1;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease, filter .16s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--surface4); border-color: var(--border5); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn--primary {
  background: var(--accent); border-color: var(--accent); color: #04231e;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 8px 24px -12px rgba(94, 234, 212, .55);
}
.btn--primary:hover { filter: brightness(1.06); background: var(--accent); border-color: var(--accent); }
.btn--ghost { background: transparent; }
.btn--lg { padding: 15px 24px; font-size: 14.5px; border-radius: var(--radius-lg); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ── Nav ────────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8, 9, 10, .78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.site-nav .topbar {
  height: 70px; padding: 0 var(--gutter);
  background: transparent; border-bottom: none;
  max-width: var(--maxw); margin: 0 auto;
  gap: 28px;
}
/* The masthead's logo size lives in the generated ledger-core.css, so it is
   overridden here rather than edited there. */
.site-nav .topbar-brand .logo { font-size: 21px; letter-spacing: -.025em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 11px; border-radius: var(--radius-sm);
  font-size: 14px; color: var(--text-dim);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.live-dot {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em;
  color: var(--text-dim3);
}
.nav-toggle {
  display: none; width: 38px; height: 34px;
  border: 1px solid var(--border3); border-radius: var(--radius-sm);
  background: transparent; color: var(--text2); cursor: pointer;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 84px 0 0; overflow: hidden; }
.hero-glow { position: absolute; inset: -280px 0 auto; height: 900px; background: var(--glow); pointer-events: none; }
.hero-inner { position: relative; text-align: center; max-width: 900px; margin: 0 auto; }
.hero .h-xl { margin: 22px 0 0; }
.hero .lede { margin: 22px auto 0; max-width: 660px; }
.hero .btn-row { margin-top: 32px; justify-content: center; }
.hero-note { margin-top: 16px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; color: var(--text-dim4); }

.hero-shot { position: relative; margin-top: 64px; }
.hero-shot::before {
  content: ""; position: absolute; inset: -8% -12% -18%;
  background: radial-gradient(50% 60% at 50% 40%, rgba(94, 234, 212, .10), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.app-frame {
  position: relative;
  border: 1px solid var(--border4);
  border-radius: var(--radius-2xl);
  background: var(--topbar-bg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.frame-bar {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  background: #0a0b0c;
  border-bottom: 1px solid var(--border2);
}
.frame-dot { width: 9px; height: 9px; border-radius: 50%; background: #23262b; }
.frame-dot:nth-child(1) { background: #2b2f35; }
.frame-dot:nth-child(2) { background: #2b2f35; }
.frame-dot:nth-child(3) { background: #2b2f35; }
.frame-url {
  flex: 1; text-align: center;
  font-family: var(--mono); font-size: 10.5px; color: var(--text-dim4);
  letter-spacing: .02em;
}
.frame-badge {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .08em;
  color: var(--accent); border: 1px solid var(--accent-border);
  background: var(--accent-tint); padding: 3px 7px; border-radius: 4px;
}
.hero-shot .app-frame img { width: 100%; }

/* ── Proof strip ────────────────────────────────────────────────────────── */
.proof {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: #08090a;
}
.proof-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.proof-item { padding: 26px 22px; border-left: 1px solid var(--hair); }
.proof-item:first-child { border-left: none; padding-left: 0; }
.proof-k { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim4); }
.proof-v { margin-top: 7px; font-size: 14.5px; font-weight: 500; color: var(--text2); letter-spacing: -.01em; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--grad-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
}
.card-grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card h3 { font-size: 15.5px; font-weight: 600; letter-spacing: -.015em; }
.card p { margin-top: 9px; font-size: 14px; line-height: 1.62; color: var(--text-dim); }
.card .num {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  color: var(--accent); display: block; margin-bottom: 14px;
}
.icon-tile {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-tint); border: 1px solid var(--accent-border2);
  color: var(--accent); font-size: 15px;
  margin-bottom: 16px;
}

/* ── Manifesto ──────────────────────────────────────────────────────────── */
.manifesto-quote {
  margin: 34px 0 0;
  padding: 26px 28px;
  border-left: 2px solid var(--accent);
  background: linear-gradient(90deg, rgba(94, 234, 212, .05), transparent 60%);
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.5; color: var(--text);
  letter-spacing: -.012em;
  text-wrap: pretty;
}
.manifesto-quote cite {
  display: block; margin-top: 12px;
  font-style: normal; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim4);
}

/* ── Rule / flow ────────────────────────────────────────────────────────── */
.flow {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; margin-top: 44px;
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  overflow: hidden; background: #0a0c0e;
}
.flow-step { padding: 22px 20px; border-left: 1px solid var(--border); position: relative; }
.flow-step:first-child { border-left: none; }
.flow-k {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-dim4);
}
.flow-t { margin-top: 10px; font-size: 14.5px; font-weight: 500; letter-spacing: -.01em; }
.flow-d { margin-top: 6px; font-size: 12.5px; line-height: 1.55; color: var(--text-dim3); }
.flow-step--accent { background: linear-gradient(180deg, rgba(94, 234, 212, .07), transparent); }
.flow-step--accent .flow-k { color: var(--accent); }

.rule-list { display: grid; gap: 2px; margin-top: 30px; }
.rule-item {
  display: grid; grid-template-columns: 30px 1fr; gap: 14px;
  padding: 18px 0; border-top: 1px solid var(--hair);
}
.rule-item:first-child { border-top: none; }
.rule-mark {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent-tint); border: 1px solid var(--accent-border2);
  color: var(--accent); font-size: 11px; margin-top: 1px;
}
.rule-item strong { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.012em; }
.rule-item span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.6; color: var(--text-dim); }

/* ── How it works ───────────────────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 24px;
  padding: 30px 0; border-top: 1px solid var(--hair);
}
.step:first-child { border-top: none; padding-top: 0; }
.step-n {
  counter-increment: step;
  font-family: var(--mono); font-size: 11px; letter-spacing: .1em;
  color: var(--accent); padding-top: 3px;
}
.step-n::before { content: "0" counter(step); }
.step h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.step p { margin-top: 8px; font-size: 14.5px; line-height: 1.65; color: var(--text-dim); max-width: 460px; }
.step .mono-line {
  margin-top: 14px; display: inline-block;
  font-family: var(--mono); font-size: 12px; color: var(--text3);
  background: #0b0d10; border: 1px solid var(--border2);
  padding: 8px 12px; border-radius: var(--radius-sm);
}
.shot-stack { position: relative; }
.shot-stack img {
  border: 1px solid var(--border3); border-radius: var(--radius-xl);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
  background: var(--bg);
}
.shot-caption { margin-top: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--text-dim4); text-transform: uppercase; }

/* ── Features ───────────────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: var(--radius-xl); overflow: hidden; }
.feature { background: #0a0c0e; padding: 24px 22px; }
.feature .icon-tile { margin-bottom: 14px; }
.feature h3 { font-size: 14.5px; }
.feature p { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--text-dim3); }
.tag {
  display: inline-block; margin-left: 8px; vertical-align: 1px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim3); border: 1px solid var(--border3);
  padding: 2px 5px; border-radius: 3px;
}
.tag--soon { color: var(--amber); border-color: #3a2f1c; background: #171207; }
.tag--hosted { color: var(--accent); border-color: var(--accent-border2); background: var(--accent-tint); }

/* ── Pricing ────────────────────────────────────────────────────────────── */
.billing {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px; border: 1px solid var(--border3);
  border-radius: var(--radius-lg); background: #0a0c0e; margin-top: 26px;
}
.billing button {
  border: none; background: transparent; color: var(--text-dim);
  font-size: 12.5px; font-weight: 500; padding: 8px 14px; border-radius: 7px;
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.billing button[aria-pressed="true"] { background: var(--surface5); color: var(--text); }
.billing .save {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: .06em;
  color: var(--accent); margin-left: 4px;
}
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; align-items: stretch; }
.price {
  display: flex; flex-direction: column;
  background: var(--grad-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 26px 24px 24px;
  position: relative;
}
.price--featured {
  border-color: var(--accent-border);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(94, 234, 212, .08), transparent 55%),
    linear-gradient(180deg, #0f1417 0%, #0b0d10 100%);
  box-shadow: 0 30px 80px -50px rgba(94, 234, 212, .35);
}
.price-badge {
  position: absolute; top: -10px; left: 24px;
  font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase;
  background: var(--accent); color: #04231e; font-weight: 600;
  padding: 4px 8px; border-radius: 4px;
}
.price-kicker { font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--text-dim3); }
.price h3 { margin-top: 10px; font-size: 19px; font-weight: 600; letter-spacing: -.022em; }
.price-desc { margin-top: 8px; font-size: 13px; line-height: 1.55; color: var(--text-dim3); min-height: 42px; }
.price-amount { margin-top: 22px; display: flex; align-items: baseline; gap: 8px; }
.price-amount .n { font-size: 42px; font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.price-amount .per { font-size: 13px; color: var(--text-dim3); }
.price-sub { margin-top: 8px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--text-dim4); min-height: 15px; }
.price ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.price li { position: relative; padding-left: 20px; font-size: 13px; line-height: 1.5; color: var(--text2); }
.price li::before {
  content: ""; position: absolute; left: 2px; top: 7px;
  width: 7px; height: 4px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.price li.muted { color: var(--text-dim3); }
.price li.muted::before { border-color: var(--border5); }
.price .btn { margin-top: 26px; }
.price-foot { margin-top: 12px; text-align: center; }
.promise {
  margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--hair); border: 1px solid var(--hair); border-radius: var(--radius-lg); overflow: hidden;
}
.promise div { background: #0a0c0e; padding: 16px 18px; font-size: 12.5px; color: var(--text-dim2); }
.promise strong { color: var(--text); font-weight: 600; }

/* ── Signup / sandbox ───────────────────────────────────────────────────── */
.signup-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 16px; margin-top: 40px; }
.signup {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--grad-surface);
  display: flex; flex-direction: column;
}
.signup--sandbox {
  border-color: var(--accent-border);
  background:
    radial-gradient(100% 70% at 0% 0%, rgba(94, 234, 212, .07), transparent 55%),
    linear-gradient(180deg, #0f1417, #0b0d10);
}
.signup h3 { font-size: 21px; font-weight: 600; letter-spacing: -.024em; }
.signup .body-copy { margin-top: 10px; font-size: 14px; }
.signup form { margin-top: 22px; display: grid; gap: 12px; }
.field label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim3); margin-bottom: 7px; }
.field input[type="email"] {
  width: 100%; padding: 12px 13px;
  background: #0b0d10; border: 1px solid var(--border3);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font); font-size: 14px; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input[type="email"]:focus { border-color: var(--accent-border); box-shadow: 0 0 0 3px rgba(94, 234, 212, .10); }
.field input[type="email"]::placeholder { color: var(--text-dim4); }
.consent { display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start; font-size: 12px; line-height: 1.55; color: var(--text-dim3); }
.consent input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 16px; height: 16px; margin-top: 1px;
  border: 1px solid var(--border5); border-radius: 4px; background: #0b0d10;
  cursor: pointer; position: relative;
}
.consent input[type="checkbox"]:checked { background: var(--accent); border-color: var(--accent); }
.consent input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 4px; top: 1px;
  width: 5px; height: 9px;
  border-right: 2px solid #04231e; border-bottom: 2px solid #04231e;
  transform: rotate(40deg);
}
.consent input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-note { font-size: 11.5px; line-height: 1.5; color: var(--text-dim4); }
.form-status { min-height: 18px; font-size: 12.5px; line-height: 1.5; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }

.sandbox-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.sandbox-list li { position: relative; padding-left: 18px; font-size: 12.5px; line-height: 1.5; color: var(--text-dim2); }
.sandbox-list li::before { content: "·"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }

/* ── Walkthrough slot ──────────────────────────────────────────────────── */
.video-slot {
  display: block; width: 100%; margin-top: 34px; padding: 0;
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  background:
    radial-gradient(80% 90% at 50% 0%, rgba(94, 234, 212, .10), transparent 60%),
    linear-gradient(180deg, #0c1114, #090b0d);
  color: var(--text); cursor: pointer;
  transition: border-color .18s ease;
}
.video-slot:hover { border-color: var(--accent-border); }
.video-slot:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.video-play {
  position: absolute; left: 50%; top: 50%; width: 74px; height: 74px;
  margin: -37px 0 0 -37px; border-radius: 50%;
  border: 1px solid var(--accent-border); background: rgba(94, 234, 212, .10);
  display: grid; place-items: center;
}
.video-play::after {
  content: ""; width: 0; height: 0; margin-left: 5px;
  border-top: 11px solid transparent; border-bottom: 11px solid transparent;
  border-left: 17px solid var(--accent);
}
.video-meta {
  position: absolute; left: 22px; bottom: 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-dim3);
}
.video-note { margin-top: 10px; font-size: 12px; line-height: 1.55; color: var(--text-dim4); }

/* ── Sandbox capture dialog ────────────────────────────────────────────── */
.capture {
  width: min(520px, calc(100vw - 36px)); margin: auto; padding: 0;
  border: 1px solid var(--border3); border-radius: var(--radius-xl);
  background: #0b0d10; color: var(--text); font-family: var(--font);
}
.capture::backdrop { background: rgba(4, 5, 6, .72); backdrop-filter: blur(4px); }
.capture form { position: relative; padding: 30px; display: grid; gap: 14px; }
.capture-kicker {
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
}
.capture-title { font-size: 24px; line-height: 1.18; letter-spacing: -.028em; font-weight: 650; padding-right: 34px; }
.capture-copy { font-size: 13.5px; line-height: 1.6; color: var(--text-dim); }
.capture-close {
  position: absolute; right: 14px; top: 12px; width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1px solid var(--border3); border-radius: 50%;
  background: transparent; color: var(--text-dim2);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.capture-close:hover { color: var(--text); border-color: var(--border5); }
.capture-close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq { margin-top: 40px; border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 15px; font-weight: 500; letter-spacing: -.012em; color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--mono); font-size: 16px; color: var(--text-dim3);
  transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq .answer { padding: 0 0 22px; max-width: 720px; font-size: 14px; line-height: 1.68; color: var(--text-dim); }
.faq .answer code { font-family: var(--mono); font-size: 12.5px; color: var(--text3); }

/* ── CTA band ───────────────────────────────────────────────────────────── */
.cta-band {
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  background:
    radial-gradient(70% 100% at 50% 0%, rgba(94, 234, 212, .08), transparent 65%),
    #080a0b;
  text-align: center; padding: 72px 0;
}
.cta-band .h-lg { margin: 0 auto 14px; max-width: 720px; }
.cta-band .body-copy { max-width: 560px; margin: 0 auto; }
.cta-band .btn-row { justify-content: center; margin-top: 28px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { padding: 56px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-brand p { margin-top: 14px; max-width: 300px; font-size: 12.5px; line-height: 1.6; color: var(--text-dim4); }
.footer-col h4 { font-family: var(--mono); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--text-dim4); font-weight: 500; }
.footer-col a { display: block; margin-top: 11px; font-size: 13px; color: var(--text-dim2); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--hair);
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  font-size: 11.5px; color: var(--text-dim4);
}
.footer-bottom .mono { letter-spacing: .04em; }

/* ── Reveal on scroll ───────────────────────────────────────────────────── */
.will-reveal { opacity: 0; transform: translateY(14px); }
.is-revealed { animation: fadeIn .6s cubic-bezier(.22, .61, .36, 1) forwards; }

@media (prefers-reduced-motion: reduce) {
  .will-reveal { opacity: 1; transform: none; }
  .is-revealed { animation: none; }
  * { scroll-behavior: auto !important; }
}
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  :root { --section-y: 80px; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .proof-inner { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(3) { border-left: none; padding-left: 0; }
  .proof-item { border-top: 1px solid var(--hair); }
  .proof-item:nth-child(1), .proof-item:nth-child(2) { border-top: none; }
  .price-grid { grid-template-columns: 1fr; max-width: 520px; }
  .price-desc { min-height: 0; }
  .signup-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(3) { border-left: none; }
  .flow-step { border-top: 1px solid var(--border); }
  .flow-step:nth-child(-n+2) { border-top: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

/* The masthead keeps its desktop nav only while it actually fits: at 761px the
   larger logo and links overflowed by 31px, so the collapse starts at 820. */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-links--open {
    display: flex; position: absolute; left: 0; right: 0; top: 70px;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #0a0b0c; border-bottom: 1px solid var(--border);
    padding: 12px var(--gutter) 18px;
  }
  .nav-links--open a { padding: 11px 8px; font-size: 15px; }
  .site-nav .topbar { gap: 12px; }
  .nav-cta .btn { display: none; }
  .nav-cta .btn--primary { display: inline-flex; padding: 9px 13px; font-size: 12.5px; }
}

/* Phones: the masthead cannot hold brand + status + CTA + toggle. The hero
   repeats the call to action, so the header keeps the status label. */
@media (max-width: 560px) {
  .nav-cta .btn--primary { display: none; }
  /* A 21px eyebrow sits at 75% of the 28px section title on a phone, which
     flattens the hierarchy; 16px keeps it a label and still beats the old 10.5. */
  .eyebrow { font-size: 16px; gap: 9px; }
  .eyebrow::before { width: 26px; height: 1px; }
}

@media (max-width: 760px) {
  :root { --gutter: 18px; --section-y: 64px; }

  .hero { padding-top: 56px; }
  .hero .btn-row .btn { flex: 1 1 auto; }
  .hero-shot { margin-top: 40px; }
  .app-frame { border-radius: var(--radius-lg); }
  .frame-bar { height: 30px; }
  .frame-url { font-size: 9px; }
  .frame-badge { display: none; }

  .g2, .g3, .g4, .feature-grid, .proof-inner { grid-template-columns: 1fr; }
  .proof-item { border-left: none; padding-left: 0; }
  .proof-item + .proof-item { border-top: 1px solid var(--hair); }
  .feature-grid { gap: 1px; }
  .flow { grid-template-columns: 1fr; }
  .flow-step { border-left: none; border-top: 1px solid var(--border); }
  .flow-step:first-child { border-top: none; }
  .step { grid-template-columns: 1fr; gap: 10px; }
  .price { padding: 22px 20px; }
  .billing { width: 100%; justify-content: center; }
  .billing button { flex: 1; padding: 9px 8px; font-size: 12px; }
  .billing .save { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-band { padding: 56px 0; }
  .signup { padding: 22px; }
  .manifesto-quote { padding: 20px 18px; }
}
