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

:root {
  --paper: #fbfaf6;
  --paper-deep: #f2efe7;
  --white: #ffffff;
  --ink: #1a1917;
  --ink-soft: #4a4741;
  --ink-muted: #78736a;
  --ink-hint: #9c968b;
  --line: rgba(26, 25, 23, 0.11);
  --line-strong: rgba(26, 25, 23, 0.24);
  --acc: #c92a1d;
  --acc-soft: rgba(201, 42, 29, 0.08);
  --green: #16794c;
  --green-soft: rgba(22, 121, 76, 0.09);
  --gold-bg: #fef6d8;
  --gold-ink: #7a5700;
  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;
  --r: 12px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 246, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 13px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.brand-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.nav-link { font-size: 13px; color: var(--ink-soft); text-decoration: none; }
.nav-link:hover { color: var(--ink); }
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acc);
  animation: pulse 1.3s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.75); }
}
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

.nav-cta {
  background: var(--ink);
  color: var(--white);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 15px;
  border-radius: 999px;
  transition: background 0.15s;
}
.nav-cta:hover { background: var(--acc); }

/* Hero */
.hero { padding: 60px 0 44px; text-align: center; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 24px;
}
.hero-eyebrow strong { color: var(--acc); }

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 90px);
  line-height: 0.96;
  letter-spacing: -0.025em;
  max-width: 840px;
  margin: 0 auto 22px;
}
h1 em { font-style: italic; color: var(--acc); }
h1 .strike {
  color: var(--ink-hint);
  text-decoration: line-through;
  text-decoration-color: var(--acc);
  text-decoration-thickness: 3px;
}
.hero-sub {
  font-size: 16.5px;
  color: var(--ink-soft);
  max-width: 640px;
  margin: 0 auto 34px;
  line-height: 1.62;
}
.hero-sub a {
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.hero-sub a:hover { color: var(--acc); }

/* Interactive prompt box */
.prompt-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 28px 22px;
  max-width: 780px;
  margin: 0 auto 24px;
  box-shadow: 0 18px 50px rgba(26, 25, 23, 0.055), 0 1px 2px rgba(26, 25, 23, 0.04);
  text-align: left;
}
.prompt-sentence {
  font-family: var(--serif);
  font-size: clamp(23px, 3.5vw, 33px);
  line-height: 1.44;
  letter-spacing: -0.015em;
}
.prompt-chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  background: var(--paper-deep);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 4px 11px;
  margin: 0 3px;
  vertical-align: 3px;
  color: var(--ink);
}
.prompt-chip:focus { border-color: var(--ink); background: var(--white); }
.prompt-select {
  cursor: pointer;
  appearance: none;
  padding-right: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%231a1917' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}
.prompt-input-kw { width: min(290px, 76vw); }
.prompt-input-site { width: min(195px, 60vw); color: var(--acc); font-weight: 600; }

.prompt-bar {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.prompt-hint { font-family: var(--mono); font-size: 11px; color: var(--ink-muted); }

.btn-primary {
  background: var(--ink);
  color: var(--white);
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 22px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, transform 0.12s;
}
.btn-primary:hover { background: var(--acc); transform: translateY(-1px); }

/* Hero 4-column proof spec strip */
.hero-specs {
  max-width: 780px;
  margin: 0 auto 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: left;
}
.hero-spec {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
.hero-spec strong {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3px;
}
.hero-spec.acc strong { color: var(--acc); }
.hero-spec span {
  display: block;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.38;
}

.gate-trust {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
}
.gate-trust span::before {
  content: '✓ ';
  color: var(--green);
  font-weight: 700;
}

/* Parody logo wall */
.logos-strip { padding: 26px 0 40px; text-align: center; }
.logos-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-hint);
  margin-bottom: 16px;
}
.logos-marquee {
  overflow: hidden;
  max-width: 920px;
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logos-track {
  display: flex;
  width: max-content;
  animation: logos-scroll 38s linear infinite;
}
.logos-marquee:hover .logos-track { animation-play-state: paused; }
.logos-group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 40px;
  padding-right: 40px;
}
@keyframes logos-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logos-marquee { -webkit-mask-image: none; mask-image: none; }
  .logos-track { width: auto; animation: none; justify-content: center; }
  .logos-group { flex-wrap: wrap; justify-content: center; gap: 10px 26px; padding-right: 0; flex-shrink: 1; }
  .logos-group[aria-hidden="true"] { display: none; }
}
.logo-fake { font-family: var(--serif); font-size: 20px; color: var(--ink-muted); opacity: 0.8; white-space: nowrap; }
.logo-fake.mono {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: center;
}

/* Sections */
.sec { padding: 64px 0; border-top: 1px solid var(--line); }
.sec.tight-bottom { padding-bottom: 0; }
.sec-kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--acc);
  margin-bottom: 10px;
}
.sec-h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.03;
  letter-spacing: -0.02em;
  max-width: 720px;
  margin-bottom: 14px;
}
.sec-lead { font-size: 15.5px; color: var(--ink-soft); max-width: 640px; margin-bottom: 30px; }

/* Simulation dashboard */
.sim-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.month-toggle {
  display: inline-flex;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.month-btn {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.month-btn.active { background: var(--ink); color: var(--white); }

.dash-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; }
.ui-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: 0 6px 24px rgba(26, 25, 23, 0.03);
}
.ui-card-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.badge-up, .badge-down { padding: 3px 8px; border-radius: 999px; font-weight: 700; }
.badge-up { color: var(--green); background: var(--green-soft); }
.badge-down { color: var(--acc); background: var(--acc-soft); }

.chat-bubble-q {
  background: var(--paper-deep);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13.5px;
  margin-bottom: 12px;
  display: inline-block;
}
.chat-bubble-a {
  border-left: 2px solid var(--ink);
  padding: 4px 0 4px 14px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.chat-bubble-a strong { color: var(--ink); }
.chat-bubble-a .hl {
  background: var(--gold-bg);
  color: var(--ink);
  padding: 1px 5px;
  border-radius: 4px;
  font-weight: 600;
}
.chat-card { display: flex; flex-direction: column; }
.month-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
}
.chat-foot { margin: -4px 0 16px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.card-note { font-size: 12.5px; color: var(--ink-soft); margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }

/* Frontshelf-style 2x2 metric tiles */
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mini-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 16px 14px;
  box-shadow: 0 6px 22px rgba(26, 25, 23, 0.04);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mini-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 10px;
}
.mini-head .badge-up, .mini-head .badge-down { font-family: var(--mono); font-size: 9.5px; }
.mini-head strong { font-family: var(--mono); font-size: 12px; }
.mini-kpi { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 7px; margin-bottom: 10px; }
.mini-num { font-family: var(--serif); font-size: 34px; line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.mini-lbl { font-family: var(--mono); font-size: 10px; color: var(--ink-muted); }
.mini-foot { font-size: 11.5px; color: var(--ink-muted); margin-top: auto; padding-top: 10px; line-height: 1.4; }

.chart-svg { width: 100%; height: 64px; display: block; margin-top: auto; overflow: visible; }
#chartArea, #chartLine { transition: d 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.mini-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 9px; color: var(--ink-hint); margin-top: 6px; }

.meter { height: 6px; border-radius: 999px; background: var(--paper-deep); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--acc); border-radius: inherit; transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1); }

.ref-list { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-top: 2px; }
.ref-list li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-soft);
}
.ref-list i { display: block; height: 5px; border-radius: 999px; background: var(--paper-deep); overflow: hidden; }
.ref-list b { display: block; height: 100%; background: var(--ink); border-radius: inherit; transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.ref-list li:first-child b { background: var(--acc); }
.ref-list em { font-style: normal; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-top: auto; }
.bars span {
  flex: 1;
  min-height: 3px;
  background: var(--paper-deep);
  border-radius: 4px 4px 2px 2px;
  transition: height 0.7s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s;
}
.bars span:last-child { background: var(--acc); }

@media (prefers-reduced-motion: reduce) {
  #chartArea, #chartLine, .meter span, .ref-list b, .bars span { transition: none; }
}
.sim-footnote { margin-top: 12px; font-family: var(--mono); font-size: 10.5px; color: var(--ink-muted); }

/* Gate & Ledger */
.gate-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.gate-card {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 20px 60px rgba(26, 25, 23, 0.08);
}
.gate-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gold-bg);
  color: var(--gold-ink);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.gate-h3 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1; margin-bottom: 8px; }
.gate-sub { font-size: 14px; color: var(--ink-soft); margin-bottom: 20px; }

.price-ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
.tier { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px; font-family: var(--mono); }
.tier.active { background: var(--white); border: 1.5px solid var(--acc); }
.tier.soldout { opacity: 0.45; text-decoration: line-through; }
.tier-lbl, .tier-sub { font-size: 9px; color: var(--ink-muted); }
.tier-lbl { text-transform: uppercase; }
.tier-val { font-family: var(--serif); font-size: 28px; line-height: 1.05; }
.tier.active .tier-val { color: var(--acc); }

.slots-wrap { margin-bottom: 18px; }
.slots-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.slots-segments { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.seg { height: 9px; border-radius: 999px; background: var(--paper-deep); border: 1px solid var(--line); }
.seg.taken { background: var(--acc); border-color: var(--acc); }
.seg.next { background: var(--gold-bg); border-color: #d4a11a; }

.signup-form { display: flex; flex-direction: column; gap: 10px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.email-input {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  padding: 13px 14px;
}
.email-input:focus { border-color: var(--ink); background: var(--white); }

.cta-full {
  width: 100%;
  background: var(--ink);
  color: var(--white);
  border: 0;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 18px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s, transform 0.12s;
}
.cta-full:hover { background: var(--acc); transform: translateY(-1px); }
.cta-full:disabled { opacity: 0.55; cursor: wait; transform: none; }
.cta-full.sm { font-size: 14px; padding: 11px 16px; }
.cta-full.outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-size: 13.5px;
  padding: 11px 14px;
}
.cta-full.outline:hover { background: var(--ink); color: var(--white); }

.form-msg { font-family: var(--mono); font-size: 11px; min-height: 16px; }
.form-msg.err { color: var(--acc); }

.download-box {
  display: none;
  background: var(--green-soft);
  border: 1px solid rgba(22, 121, 76, 0.3);
  border-radius: 10px;
  padding: 16px;
  margin-top: 8px;
}
.download-box.show { display: block; }
.download-kicker {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 6px;
}
.download-box p { font-size: 13px; color: var(--ink); margin-bottom: 12px; }
.donate-block { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(22, 121, 76, 0.22); }
.donate-block p { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 10px; }

.paid-box {
  display: none;
  background: var(--gold-bg);
  border: 1px solid rgba(122, 87, 0, 0.25);
  border-radius: 10px;
  padding: 16px;
}
.paid-box.show { display: block; }
.paid-box p { font-size: 13.5px; margin-bottom: 14px; }

.ledger-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.ledger-sub { font-size: 13px; color: var(--ink-soft); margin-top: -8px; }
.roster-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin: 14px 0 16px; }
.roster-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.roster-item.open { background: transparent; border-style: dashed; color: var(--ink-hint); }
.roster-slot { color: var(--acc); font-weight: 700; margin-right: 10px; }
.roster-item.open .roster-slot { color: var(--ink-hint); }
.roster-when { color: var(--ink-muted); font-size: 10px; }

.privacy-box {
  background: var(--paper-deep);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.tip-box {
  margin-top: 16px;
  padding: 16px;
  border-radius: 10px;
  background: var(--gold-bg);
  border: 1px solid rgba(122, 87, 0, 0.22);
}
.tip-kicker {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 6px;
}
.tip-box p { font-size: 13px; margin-bottom: 12px; }

/* Free SEO Toolkit (6-tab suite) */
.toolkit-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding: 5px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 18px;
}
.toolkit-tab {
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 8px 11px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.15s, color 0.15s;
}
.toolkit-tab:hover { color: var(--ink); background: rgba(255, 255, 255, 0.55); }
.toolkit-tab.active { background: var(--ink); color: var(--white); }
.toolkit-tab .tab-num { opacity: 0.55; font-size: 9.5px; }
.toolkit-tab.active .tab-num { color: #f58b7e; opacity: 1; }

.toolkit-panel { display: none; }
.toolkit-panel.active { display: block; }

.tool-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.tool-inputs.cols-4 { grid-template-columns: repeat(4, 1fr); }
.tool-inputs.cols-2 { grid-template-columns: repeat(2, 1fr); }
.tool-field label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 5px;
}
.tool-field input, .tool-field select, .tool-field textarea {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
}
.tool-field textarea {
  resize: vertical;
  min-height: 82px;
  line-height: 1.5;
}
.tool-field input:focus, .tool-field select:focus, .tool-field textarea:focus {
  border-color: var(--ink);
  background: var(--white);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 14px;
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-pill {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-pill:hover { border-color: var(--ink); color: var(--ink); }
.filter-pill.active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.q-list { display: flex; flex-direction: column; gap: 10px; }
.q-row {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}
.q-name { font-weight: 600; font-size: 13.5px; margin-bottom: 4px; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.q-tag {
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--paper-deep);
  color: var(--ink-muted);
}
.q-code { font-family: var(--mono); font-size: 11px; color: var(--ink-soft); word-break: break-word; }
.q-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; max-width: 100%; }
.filter-row .q-actions { flex-shrink: 1; min-width: 0; }
.q-btn {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.q-btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.q-btn.primary { background: var(--ink); color: var(--white); border-color: var(--ink); }
.q-btn.primary:hover { background: var(--acc); border-color: var(--acc); }
.q-btn.subtle { background: var(--paper); }

/* Vetter dock & scorecard */
.vet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vet-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.vet-box-title {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.vet-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vet-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.15s, transform 0.12s;
}
.vet-link:hover { border-color: var(--ink); transform: translateY(-1px); }
.vet-link strong { font-size: 12.5px; color: var(--ink); }
.vet-link span { font-family: var(--mono); font-size: 9.5px; color: var(--ink-muted); }

.check-list { display: flex; flex-direction: column; gap: 8px; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 11px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-soft);
}
.check-item input { margin-top: 3px; accent-color: var(--green); flex-shrink: 0; }
.check-item strong { color: var(--ink); font-weight: 600; }

.verdict-bar {
  margin-top: 12px;
  padding: 11px 14px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
}
.verdict-bar.pass { background: var(--green-soft); border-color: rgba(22, 121, 76, 0.25); color: var(--green); }
.verdict-bar.warn { background: var(--gold-bg); border-color: rgba(122, 87, 0, 0.24); color: var(--gold-ink); }
.verdict-bar.fail { background: var(--acc-soft); border-color: rgba(201, 42, 29, 0.24); color: var(--acc); }

/* Anchor ratio bar & legend */
.anchor-bar {
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  margin: 10px 0 12px;
}
.anchor-seg { height: 100%; transition: width 0.25s ease; }
.anchor-seg.s-brand { background: var(--ink); }
.anchor-seg.s-naked { background: #5a574f; }
.anchor-seg.s-generic { background: #a8a296; }
.anchor-seg.s-exact { background: var(--acc); }
.anchor-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.anchor-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.anchor-plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 12px;
}
.anchor-plan strong { color: var(--ink); }
.anchor-paste-wrap { margin-top: 12px; }
.anchor-paste-wrap summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

/* Link velocity KPI strip */
.vel-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 4px; }
.vel-kpi {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}
.vel-kpi-lbl {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 6px;
}
.vel-kpi-num {
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
  color: var(--ink);
}
.vel-kpi-num.acc { color: var(--acc); }
.vel-kpi-num.green { color: var(--green); }
.vel-kpi-sub { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }

/* Outreach generator */
.pitch-preview {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
}
.pitch-subj {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.pitch-subj span { color: var(--ink-muted); text-transform: uppercase; margin-right: 6px; }
.pitch-body {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.62;
  color: var(--ink);
  white-space: pre-wrap;
}
.pitch-bar {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* GSC + Bing Content-Gap Analyser (Tab 06) */
.gap-box-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.gap-upload-lbl {
  cursor: pointer;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.gap-upload-lbl:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.gap-ext-link { text-decoration: none; color: var(--ink-soft); }
.gap-ext-link:hover { color: var(--acc); }
.gap-textarea {
  width: 100%;
  min-height: 128px;
  resize: vertical;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 10px 11px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.48;
  color: var(--ink);
}
.gap-textarea:focus { border-color: var(--ink); }
.gap-meta {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  min-height: 15px;
}
.gap-controls { margin-top: 14px; }
.gap-kpis { margin-bottom: 14px; }
.gap-table-wrap {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  max-height: 360px;
  overflow-y: auto;
  background: var(--white);
}
.gap-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 12px;
  white-space: nowrap;
}
.gap-table td {
  padding: 10px 12px;
  font-size: 12.5px;
  vertical-align: top;
}
.gap-table td.num {
  text-align: right;
  font-family: var(--mono);
  font-size: 11.5px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.gap-cluster-name {
  font-weight: 600;
  color: var(--ink);
  display: block;
}
.gap-examples {
  display: block;
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-muted);
  line-height: 1.4;
}
.src-pill, .prio-pill, .sig-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}
.src-pill.bing { background: var(--gold-bg); color: var(--gold-ink); border: 1px solid rgba(122, 87, 0, 0.22); }
.src-pill.both { background: var(--green-soft); color: var(--green); }
.src-pill.gsc { background: var(--paper-deep); color: var(--ink-soft); }
.prio-pill.high { background: var(--acc-soft); color: var(--acc); }
.prio-pill.med { background: var(--gold-bg); color: var(--gold-ink); }
.prio-pill.low { background: var(--paper-deep); color: var(--ink-muted); }
.sig-wrap { display: flex; flex-wrap: wrap; gap: 4px; }
.sig-tag { background: var(--paper-deep); color: var(--ink-soft); font-weight: 600; }
.sig-tag.win { background: var(--green-soft); color: var(--green); }
.sig-tag.warn { background: var(--acc-soft); color: var(--acc); }
.sig-tag.edge { background: var(--gold-bg); color: var(--gold-ink); }
.gap-serp-link {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.gap-serp-link:hover { color: var(--acc); }
.gap-empty {
  text-align: center;
  padding: 26px 16px !important;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-muted);
}
.gap-prompt-wrap { margin-top: 14px; }
.gap-prompt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.gap-prompt-pre {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-height: 230px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.gap-prompt-pre.collapsed { display: none; }

/* Email chooser dialog (Cream Swiss style) */
.mail-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 420px;
  width: calc(100% - 32px);
  margin: auto;
  color: var(--ink);
}
.mail-dialog::backdrop {
  background: rgba(26, 25, 23, 0.46);
  backdrop-filter: blur(4px);
}
.mail-dialog__panel {
  background: var(--white);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: 0 24px 64px rgba(26, 25, 23, 0.22);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mail-dialog__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.mail-dialog__head h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px;
  line-height: 1;
}
.mail-dialog__addr {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  word-break: break-all;
}
.mail-dialog__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mail-dialog__status {
  min-height: 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--green);
  text-align: center;
}
.mail-dialog__fallback {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-muted);
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.mail-dialog__fallback a:hover { color: var(--acc); }

.tool-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.tool-foot-note { font-family: var(--mono); font-size: 10.5px; color: var(--ink-muted); }

/* Tables */
.table-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 20px; }
.table-card.last { margin-bottom: 0; }
.clean-table { width: 100%; border-collapse: collapse; }
.clean-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--paper-deep);
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.clean-table th.right { text-align: right; }
.clean-table th.w32 { width: 32%; }
.clean-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.clean-table tr:last-child td { border-bottom: 0; }
.clean-table .title-cell { font-weight: 600; color: var(--ink); display: block; margin-bottom: 3px; }
.clean-table .title-cell a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.clean-table .title-cell a:hover { color: var(--acc); }
.clean-table .price-col {
  text-align: right;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-hint);
  text-decoration: line-through;
  text-decoration-color: var(--acc);
  white-space: nowrap;
}
.clean-table .price-col.total { color: var(--ink); font-weight: 700; }
.clean-table tr.summary-row td {
  background: var(--gold-bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
}
.clean-table tr.summary-row td:last-child { text-align: right; color: var(--acc); text-decoration: none; }

/* PDF Spread & Lightbox */
.spread-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.spread-card {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  transition: transform 0.2s ease, border-color 0.15s;
}
.spread-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.spread-trigger {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  text-align: left;
}
.spread-card img { width: 100%; height: auto; display: block; border-radius: 4px; box-shadow: 0 12px 32px rgba(26, 25, 23, 0.14); }
.spread-zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(26, 25, 23, 0.88);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 999px;
}
.spread-cap {
  gap: 8px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 12px;
}

/* Chapter tear-sheet */
.chapter-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.chapter-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 15px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.chapter-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--acc);
  padding-top: 1px;
}
.chapter-item strong { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 2px; }
.chapter-item span { display: block; font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }

/* Qualifier: Read this if / Close this tab if */
.fit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.fit-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
}
.fit-card.no { background: var(--paper-deep); }
.fit-head {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.fit-card.yes .fit-head { color: var(--green); }
.fit-card.no .fit-head { color: var(--acc); }
.fit-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.fit-list li {
  font-size: 14px;
  color: var(--ink-soft);
  padding-left: 20px;
  position: relative;
  line-height: 1.48;
}
.fit-card.yes .fit-list li::before { content: '✓'; color: var(--green); font-weight: 700; position: absolute; left: 0; }
.fit-card.no .fit-list li::before { content: '×'; color: var(--acc); font-weight: 700; position: absolute; left: 0; font-size: 15px; line-height: 1.3; }
.fit-list strong { color: var(--ink); }

/* Actual receipts strip */
.receipts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.receipt-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.receipt-kicker {
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.receipt-title { font-family: var(--serif); font-size: 24px; line-height: 1.1; color: var(--ink); }
.receipt-body { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.receipt-link {
  margin-top: auto;
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.receipt-link:hover { color: var(--acc); }

/* PDF Preview Zoom Lightbox */
.preview-dialog {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(860px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: auto;
  overflow: visible;
}
.preview-dialog::backdrop {
  background: rgba(26, 25, 23, 0.72);
  backdrop-filter: blur(5px);
}
.preview-dialog__panel {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.preview-dialog__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.preview-dialog__imgwrap {
  max-height: calc(100vh - 110px);
  overflow: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--white);
}
.preview-dialog__imgwrap img {
  display: block;
  width: 100%;
  height: auto;
}

/* Fake Testimonials */
.quotes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.quote-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.quote-tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acc); margin-bottom: 8px; }
.quote-text { font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.quote-meta { font-family: var(--mono); font-size: 10.5px; color: var(--ink-muted); padding-top: 12px; border-top: 1px solid var(--line); }
.quote-meta strong { color: var(--ink); display: block; }

/* Bespoke Close */
.bespoke {
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  padding: 40px 36px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 32px;
  align-items: center;
}
.bespoke .sec-kicker { color: #f58b7e; }
.bespoke h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4.8vw, 48px); line-height: 1; color: var(--white); margin-bottom: 14px; }
.bespoke p { font-size: 14.5px; color: rgba(251, 250, 246, 0.74); margin-bottom: 10px; max-width: 500px; }
.bespoke-side {
  border-left: 1px solid rgba(251, 250, 246, 0.14);
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bespoke-btn {
  display: block;
  background: var(--white);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 13px 18px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.bespoke-btn:hover { background: var(--acc); color: var(--white); }
.bespoke-tip {
  display: block;
  border: 1px solid rgba(251, 250, 246, 0.3);
  color: #f5c842;
  text-align: center;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 11px;
  padding: 10px 14px;
  border-radius: 999px;
  transition: border-color 0.15s, background 0.15s;
}
.bespoke-tip:hover { border-color: #f5c842; background: rgba(245, 200, 66, 0.09); }
.bespoke-meta { font-family: var(--mono); font-size: 10px; color: rgba(251, 250, 246, 0.45); line-height: 1.6; margin-top: 4px; }

/* FAQ accordion */
.faq { margin-top: 44px; }
.faq .sec-kicker { margin-bottom: 6px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 2px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1;
  transition: transform 0.2s ease, background 0.15s, color 0.15s;
}
.faq-item summary:hover::after { background: var(--ink); color: var(--white); border-color: var(--ink); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { font-size: 14.5px; color: var(--ink-soft); max-width: 720px; padding: 0 2px 20px; }

/* Legal */
.legal { margin-top: 28px; background: var(--paper-deep); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; }
.legal + .legal { margin-top: 14px; }
.legal-h { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.legal p { font-family: var(--mono); font-size: 10.5px; color: var(--ink-muted); line-height: 1.62; margin-bottom: 8px; }
.legal p:last-child { margin-bottom: 0; }
.legal strong { color: var(--ink); }

footer.foot {
  max-width: 1080px;
  margin: 48px auto 0;
  padding: 22px 24px 48px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-muted);
}
footer.foot > div:last-child { display: flex; flex-wrap: wrap; gap: 8px 16px; }
footer.foot a { text-decoration: none; }
footer.foot a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .dash-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .gate-split, .bespoke, .tool-inputs, .tool-inputs.cols-4, .tool-inputs.cols-2, .vet-grid, .vel-kpis, .chapter-grid, .fit-grid, .receipts-grid { grid-template-columns: 1fr; }
  .hero-specs { grid-template-columns: 1fr 1fr; }
  .vet-links { grid-template-columns: 1fr; }
  .q-row { grid-template-columns: 1fr; gap: 10px; }
  .bespoke-side { border-left: 0; border-top: 1px solid rgba(251, 250, 246, 0.14); padding-left: 0; padding-top: 20px; }
  .nav-link { display: none; }

  /* iOS Safari zooms into any input under 16px on focus */
  .prompt-chip, .email-input, .tool-field input, .tool-field select, .tool-field textarea, .gap-textarea { font-size: 16px; }

  /* Swipeable rows instead of two-screen-tall stacks */
  .spread-grid, .quotes-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 24px;
    margin: 0 -24px;
    padding: 4px 24px 12px;
    scrollbar-width: none;
  }
  .spread-grid::-webkit-scrollbar, .quotes-grid::-webkit-scrollbar { display: none; }
  .spread-card, .quote-card { scroll-snap-align: start; }
  .spread-card:hover { transform: none; }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .container { padding: 0 20px; }
  .spread-grid, .quotes-grid { margin: 0 -20px; padding: 4px 20px 12px; scroll-padding: 0 20px; }

  /* Nav: one tidy row */
  .nav-inner { padding: 10px 16px; gap: 10px; }
  .brand { white-space: nowrap; }
  .brand-sub { display: none; }
  .nav-right { gap: 8px; }
  .nav-pill { white-space: nowrap; font-size: 10px; padding: 7px 11px; }
  .nav-cta { white-space: nowrap; padding: 8px 13px; }
  .cta-the { display: none; }

  .hero { padding: 36px 0 24px; }
  .hero-eyebrow { flex-direction: column; gap: 1px; font-size: 10px; padding: 7px 14px; border-radius: 14px; }
  .eyebrow-sep { display: none; }
  h1 { font-size: clamp(42px, 12.5vw, 56px); margin-bottom: 18px; }
  .hero-sub { font-size: 15.5px; margin-bottom: 26px; }

  .prompt-card { padding: 20px 18px 18px; border-radius: 14px; }
  .prompt-sentence { font-size: 25px; line-height: 1.5; }
  .prompt-input-kw { width: calc(100% - 48px); margin: 4px 0 4px 3px; }
  .prompt-bar { flex-direction: column; align-items: stretch; }
  .prompt-bar .btn-primary { justify-content: center; }

  .logos-strip { padding: 22px 0 28px; }
  .logo-fake { font-size: 18px; }

  .sec { padding: 48px 0; }
  .sec-lead { font-size: 15px; margin-bottom: 24px; }
  .month-toggle { width: 100%; }
  .month-btn { flex: 1; padding: 9px 8px; }

  .ui-card { padding: 18px; }
  .mini-grid { gap: 10px; }
  .mini-card { padding: 13px 13px 12px; border-radius: 12px; }
  .mini-head { font-size: 11.5px; }
  .mini-num { font-size: 29px; }
  .mini-lbl { font-size: 9.5px; }
  .ref-list li { grid-template-columns: 56px minmax(0, 1fr) 22px; gap: 6px; font-size: 9px; }
  .bars { height: 46px; gap: 4px; }

  .gate-card, .ledger-card { padding: 22px 18px; }
  .gate-h3 { font-size: 32px; }
  .tier { padding: 9px 8px; }
  .tier-val { font-size: 25px; }

  .q-row { padding: 13px; }
  .q-actions .q-btn { flex: 1; text-align: center; padding: 10px 12px; }
  .tool-foot .q-actions { width: 100%; flex-wrap: wrap; }
  .toolkit-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
  .toolkit-tabs::-webkit-scrollbar { display: none; }
  .toolkit-tab { flex-shrink: 0; padding: 8px 11px; font-size: 10px; }

  .clean-table th, .clean-table td { padding-left: 14px; padding-right: 14px; }
  .table-card.stack thead { display: none; }
  .table-card.stack tr { display: block; padding: 14px; border-bottom: 1px solid var(--line); }
  .table-card.stack tr:last-child { border-bottom: 0; }
  .table-card.stack td { display: block; padding: 0; border: 0; }

  .quote-text { font-size: 20px; }
  .bespoke { padding: 28px 22px; gap: 22px; }
  .faq-item summary { font-size: 19px; padding: 16px 0; }
  .legal { padding: 16px; }
  footer.foot { padding: 22px 20px 40px; }
}

@media (max-width: 380px) {
  .nav-cta { display: none; }
  .hero-eyebrow { font-size: 9.5px; padding: 7px 10px; }
}
