/* MailCull v7 "Ledger" — shared stylesheet for the feature pages.

   Composed from colors_and_type.css (tokens) + landing-proposal-v7.css

   (design system) + feature-pages-v7.css (feature layer) + chrome overrides.

   Generated; edit the source layers, not this file. */

/* ============================================================
   MailCull Design Tokens — Colors & Type
   Source: Inspired by Intercom, implemented with Inter (Google)
   Load order (in app):
     design-system.css → marketing-ui.css → public-content-ui.css
     → workspace-ui.css
   ============================================================ */

/* -----  FONTS  ------------------------------------------------
   Primary: Inter (load via Google Fonts in <head>)
     <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap" rel="stylesheet">
   Mono / eyebrows: Courier New (system stack, no webfont)
------------------------------------------------------------- */

/* -----  @FONT-FACE  -------------------------------------------
   Inter is bundled with the design system (fonts/). Variable font:
   one file covers weights 100–900. Paths resolve relative to this
   file (project root). The Google Fonts <link> in the header note
   is an optional CDN fallback; these local faces take precedence.
------------------------------------------------------------- */

:root {
  color-scheme: light;

  /* === CORE SURFACES === */
  --bg:             #faf9f6;  /* Warm cream — page canvas */
  --panel:          #ffffff;  /* @kind color */ /* Pure white — card surface */
  --panel-strong:   #fdfcfa;  /* @kind color */ /* Slightly tinted elevated panel */
  --surface:        #f5f3ef;  /* Hover / active nav background */

  /* === TEXT === */
  --ink:            #111111;  /* @kind color */ /* Off-black — primary text, primary btn */
  --muted:          #7b7b78;  /* @kind color */ /* Warm grey — secondary text, labels */

  /* === BRAND ACCENT === */
  --accent:         #ff5600;  /* Fin Orange — brand, focus, eyebrow */
  --accent-dark:    #cc4400;  /* Hover / link state */

  /* === SEMANTIC STATUSES === */
  --good:           #067647;  /* Deliverable */
  --warn:           #b54708;  /* Risky */
  --danger:         #c41c1c;  /* Undeliverable / failed */
  --unknown:        #7b7b78;  /* Unknown / pending */

  /* === BORDERS === */
  --line:           #dedbd6;  /* @kind color */ /* Oat — all borders */
  --line-strong:    #c8c4bf;  /* @kind color */ /* Warm sand — focus, hover borders */

  /* === SEMANTIC COLOR ALIASES === */
  --fg1:            var(--ink);
  --fg2:            var(--muted);
  --bg1:            var(--bg);
  --bg2:            var(--panel);
  --bg3:            var(--surface);

  /* === RADII ===
     Sharp geometry is part of the brand.
     Never exceed 8px. No pills. */
  --radius-card:    8px;
  --radius-btn:     4px;
  --radius-nav:     6px;

  /* === ELEVATION ===
     Flat by default. Shadow only on toasts + modals. */
  --shadow-modal:   0 4px 24px rgba(0, 0, 0, 0.10);
  --shadow-toast:   0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-none:    none;

  /* === SPACING SCALE ===
     8 · 10 · 12 · 14 · 16 · 20 · 24 · 32 · 40 · 48 · 60 · 64 · 80 · 96 */
  --space-1:   4px;
  --space-2:   8px;
  --space-3:  10px;
  --space-4:  12px;
  --space-5:  14px;
  --space-6:  16px;
  --space-7:  20px;
  --space-8:  24px;
  --space-9:  32px;
  --space-10: 40px;
  --space-11: 48px;
  --space-12: 60px;
  --space-13: 64px;
  --space-14: 80px;
  --space-15: 96px;

  /* === MOTION === */
  --dur-fast:  0.12s; /* @kind other */
  --ease:      ease;  /* @kind other */
  --hover-scale:  1.06; /* @kind other */
  --press-scale:  0.92; /* @kind other */

  /* === TYPE FAMILIES === */
  --font-sans:   "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:   "Courier New", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* === BASE TYPE VARS === */
  --text-body-size:    15px;
  --text-body-line:    1.55;
  --text-body-weight:  400;

  --tracking-display:  -2.4px;
  --tracking-h2:       -1.6px;
  --tracking-h3:       -0.96px;
  --tracking-section:  -0.72px;
  --tracking-feature:  -0.48px;
  --tracking-mono:      0.06em;

  /* === MOTION TOKENS (see README "Animation & motion") === */
  --motion-instant: 80ms; /* @kind other */
  --motion-fast:    120ms; /* @kind other */
  --motion-base:    220ms; /* @kind other */
  --motion-slow:    420ms; /* @kind other */
  --motion-reveal:  700ms; /* @kind other */
  --ease-standard: cubic-bezier(0.2, 0, 0, 1); /* @kind other */
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1); /* @kind other */
  --ease-in:       cubic-bezier(0.4, 0, 1, 1); /* @kind other */
  --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1); /* @kind other */
}

/* ============================================================
   DARK MODE — opt in with <html data-theme="dark"> or
   apply `.dark-scope` to a subtree.
   Designed to preserve the warm-editorial feel: ink is replaced
   with warm cream, surfaces are dark-warm-near-black, not blue.
   Accent shifts +6% lightness so it still reads on the dark bg.
   ============================================================ */

:root[data-theme="dark"],
.dark-scope {
  color-scheme: dark;

  /* Surfaces — warm near-black ladder */
  --bg:             #15130f;
  --panel:          #1c1a16;
  --panel-strong:   #221f1a;
  --surface:        #28241e;

  /* Text — warm cream on dark */
  --ink:            #f4efe7;
  --muted:          #8a847b;

  /* Brand — slightly lifted for dark bg contrast */
  --accent:         #ff6a1a;
  --accent-dark:    #ff8a4a;

  /* Status — lifted ~+8% lightness for AA on dark */
  --good:           #2eb678;
  --warn:           #e08542;
  --danger:         #e94545;
  --unknown:        #8a847b;

  /* Borders — warm dark grey */
  --line:           #2d2a24;
  --line-strong:    #3a3631;

  /* Aliases */
  --fg1: var(--ink);
  --fg2: var(--muted);
  --bg1: var(--bg);
  --bg2: var(--panel);
  --bg3: var(--surface);

  /* Shadows — heavier so cards still detach from dark bg */
  --shadow-modal: 0 6px 28px rgba(0, 0, 0, 0.55);
  --shadow-toast: 0 4px 24px rgba(0, 0, 0, 0.50);
}

/* Dark mode is opt-in via [data-theme="dark"] / .dark-scope (declared
   above). Set one of those on <html> or a subtree to enable it.
   NOTE: a prior `@media (prefers-color-scheme: dark) { :root:not([data-theme]) }`
   block was removed here — it redeclared the same 16 tokens under an
   unregistered scope AND was missing its closing brace, which trapped
   every .mc-* type class below inside the media query so they never
   applied in light mode. */

/* -----  SEMANTIC TYPE CLASSES  --------------------------------
   Match design-system.css. Headings are weight 400 with
   aggressive negative tracking and 1.00 line-height.
------------------------------------------------------------- */

.mc-display {
  font-family: var(--font-sans);
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 400;
  letter-spacing: var(--tracking-display);
  line-height: 1.00;
  color: var(--ink);
}

.mc-h1,
.mc-heading {
  font-family: var(--font-sans);
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 400;
  letter-spacing: var(--tracking-h2);
  line-height: 1.00;
  color: var(--ink);
}

.mc-h2,
.mc-subheading,
.mc-card-title {
  font-family: var(--font-sans);
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: var(--tracking-h3);
  line-height: 1.00;
  color: var(--ink);
}

.mc-section-title {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: var(--tracking-section);
  line-height: 1.10;
  color: var(--ink);
}

.mc-feature-title {
  font-family: var(--font-sans);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  letter-spacing: var(--tracking-feature);
  line-height: 1.15;
  color: var(--ink);
}

.mc-body {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
}

.mc-body-ink {
  color: var(--ink);
}

.mc-eyebrow,
.mc-label,
.mc-chip-text {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--muted);
}

.mc-serif { /* rarely used — reserved for editorial moments */
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

/* ============================================================
   MailCull Landing Proposal v7 — "The Ledger"
   Intercom-weight editorial system on MailCull tokens.

   System:
   - Full-bleed chapters divided by strong near-black rules.
   - One wide editorial grid (max 1380px) shared by header,
     chapters, and footer.
   - Massive tight grotesk headlines (Inter 650), Newsreader
     italic for <em> accents. html[data-type="serif"] swaps
     headlines to Newsreader.
   - Paintings (img) as the only imagery. Hidden via
     html[data-paintings="off"].
   - Dark bands: developers (html[data-dark="two"]) + final CTA
     (always dark).
   - Calm motion: scroll reveals only, gated on
     html[data-motion="calm"] + prefers-reduced-motion.
   Loads after colors_and_type.css + site-chrome.css.
   ============================================================ */

/* ── Base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --rule: #1c1a16;             /* strong editorial rule */
  --ed-max: 1380px;
  --ed-pad: clamp(20px, 4vw, 56px);
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, p, figure, dl, dd, dt { margin: 0; }

.ed-wrap {
  width: min(var(--ed-max), 100% - 2 * var(--ed-pad));
  margin-inline: auto;
}

/* ── Type primitives ──────────────────────────────────────── */
.mono-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono-label.accent { color: var(--accent); }

h1, .ch-title, .v7-cta h2 {
  font-weight: 460;
  letter-spacing: -0.035em;
  line-height: 1.04;
  text-wrap: balance;
}
/* Two-tone headlines, Intercom-style: ink phrase + warm grey phrase */
.mut { color: var(--head-mut, #a8a297); }
h1 em, .ch-title em, .v7-cta h2 em { font-style: normal; }
html[data-type="serif"] h1 em,
html[data-type="serif"] .ch-title em,
html[data-type="serif"] .v7-cta h2 em { font-style: italic; }
.price-compare em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 450;
  letter-spacing: -0.015em;
}

/* Serif headline tweak */
html[data-type="serif"] h1,
html[data-type="serif"] .ch-title,
html[data-type="serif"] .v7-cta h2 {
  font-family: var(--serif);
  font-weight: 470;
  letter-spacing: -0.022em;
  line-height: 1.02;
}

/* ── Buttons / chips ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.btn-accent { background: var(--accent); color: #ffffff; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-primary { background: #1c1a16; color: #faf9f6; }
.btn-primary:hover { background: #000000; }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--surface); }

.aside-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: var(--line-strong);
}
.aside-link:hover { text-decoration-color: var(--accent); color: var(--accent-dark); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border: 1px solid;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.chip-good   { color: var(--good);   border-color: rgba(6, 118, 71, 0.4);  background: rgba(6, 118, 71, 0.06); }
.chip-warn   { color: var(--warn);   border-color: rgba(181, 71, 8, 0.4);  background: rgba(181, 71, 8, 0.06); }
.chip-danger { color: var(--danger); border-color: rgba(196, 28, 28, 0.4); background: rgba(196, 28, 28, 0.06); }
.chip-muted  { color: var(--muted);  border-color: var(--line-strong);     background: var(--surface); }

/* ── Scroll reveal (calm) ─────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  html[data-motion="calm"] [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }
  html[data-motion="calm"] [data-reveal].visible {
    opacity: 1;
    transform: none;
  }
}

/* ── Site chrome alignment overrides ──────────────────────── */
.v7 .mc-header { border-bottom: 1px solid var(--rule); }
.v7 .mc-header.is-scrolled { border-bottom-color: var(--rule); }
.v7 .mc-header-inner,
.v7 .mc-footer-inner,
.v7 .mc-footer-bottom {
  width: min(var(--ed-max), 100% - 2 * var(--ed-pad));
}
.v7 .mc-header-inner { min-height: 68px; }
.v7 .mc-footer { border-top: 1px solid var(--rule); }

/* ============================================================
   HERO
   ============================================================ */
.v7-hero { padding: clamp(45px, 5.5vw, 83px) 0 clamp(45px, 5.5vw, 77px); }
.v7-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 5vw, 96px);
  align-items: center;
}
.v7-hero h1 {
  font-size: clamp(52px, 6.6vw, 104px);
  margin: 22px 0 0;
}
.hero-sub {
  margin: 26px 0 0;
  max-width: 56ch;
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-cta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
}
.hero-trust {
  display: flex;
  gap: 26px;
  margin-top: 26px;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero-trust span::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 1px;
}

/* ── Quick-check widget ───────────────────────────────────── */
.demo-card {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--panel-strong);
}
.demo-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--good);
}
.demo-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
}
.demo-body { padding: 20px; }
.demo-input-row { display: flex; gap: 10px; }
.demo-input-row input {
  flex: 1;
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-btn);
  background: var(--panel);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
}
.demo-input-row input::placeholder { color: var(--muted); }
.demo-input-row input:focus {
  outline: none;
  border-color: var(--ink);
}
.check-steps { margin-top: 14px; }
.check-step {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.check-step .step-result { color: var(--line-strong); }
.check-step.is-running { color: var(--ink); }
.check-step.is-running .step-result { color: var(--accent); }
.check-step.is-done .step-result { color: var(--good); }
.check-step.is-flagged { color: var(--warn); }
.check-step.is-flagged .step-result { color: var(--warn); }
.verdict {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel-strong);
}
.verdict-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.verdict-addr {
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.verdict-copy {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.verdict-copy strong { color: var(--ink); }
.verdict-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.verdict-evidence span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 8px;
}
.demo-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  overflow: hidden;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: v7-tick 60s linear infinite;
}
html[data-motion="off"] .ticker-track { animation: none; }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }
.ticker-track span {
  display: inline-flex;
  align-items: center;
  padding: 16px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.ticker-track span::after {
  content: "·";
  margin: 0 30px;
  color: var(--accent);
}
@keyframes v7-tick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   GALLERY STRIP (paintings)
   ============================================================ */
.v7-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
html[data-paintings="off"] .v7-gallery { display: none; }
.v7-gallery-cell { padding: clamp(28px, 3.4vw, 52px); }
.v7-gallery-cell + .v7-gallery-cell { border-left: 1px solid var(--rule); }
.ps-frame {
  border: 1px solid var(--rule);
  background: var(--panel);
  padding: 10px;
}
.ps-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
}
.ps-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.ps-cap .no { color: var(--muted); }
.ps-cap .t { color: var(--ink); }

/* ============================================================
   CHAPTERS — shared head
   ============================================================ */
.ch {
  border-top: 1px solid var(--rule);
  padding: clamp(58px, 6.8vw, 106px) 0;
}
.ch-meta {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: clamp(24px, 3.2vw, 42px);
}
.ch-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.ch-row {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: end;
}
.ch-title { font-size: clamp(38px, 4.4vw, 72px); }
.ch-sub {
  font-size: clamp(16px, 1.25vw, 18.5px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
  max-width: 46ch;
}

/* ============================================================
   01 — RECEIPTS / EVIDENCE
   ============================================================ */
.proof-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
  margin-top: clamp(44px, 5vw, 72px);
}

/* SMTP transcript — dark terminal */
.transcript {
  display: flex;
  flex-direction: column;
  background: #15130f;
  color: #d8d3c9;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.tx-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid #2c2823;
}
.tx-dots { display: flex; gap: 6px; }
.tx-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #3a3631;
}
.tx-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a847b;
}
.tx-body {
  margin: 0;
  flex: 1;
  padding: 22px 22px 18px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.85;
  overflow-x: auto;
}
.tx-cmd { color: #f4efe7; font-weight: 500; }
.tx-addr { color: #ff8a4a; }
.tx-step { color: #8a847b; }
.tx-srv { color: #d8d3c9; }
.tx-out { color: #8a847b; }
.tx-ok { color: #74cf93; }
.tx-verdict {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 15px 18px;
  border-top: 1px solid #2c2823;
  background: rgba(116, 207, 147, 0.07);
}
.tx-verdict .chip-good { color: #74cf93; border-color: rgba(116, 207, 147, 0.4); background: rgba(116, 207, 147, 0.08); }
.tx-read { font-size: 13.5px; color: #d8d3c9; }

/* AI read — light ledger card */
.ai-read {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.ar-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--panel-strong);
}
.ar-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px 8px;
}
.ar-lines { padding: 6px 20px 2px; display: grid; }
.ar-lines > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.ar-lines dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}
.ar-lines dd { color: var(--muted); line-height: 1.55; }
.ar-lines dd strong { color: var(--ink); font-weight: 600; }
.ar-reco {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 15px 20px;
  border-top: 1px solid var(--rule);
  background: rgba(255, 86, 0, 0.05);
}
.ar-reco span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.ar-reco strong { font-size: 16px; color: var(--ink); font-weight: 600; }

/* Proof points — editorial three-up */
.proof-points {
  margin: clamp(44px, 5vw, 72px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 48px);
}
.proof-points li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  text-wrap: pretty;
}
.proof-points strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.015em;
  margin-bottom: 7px;
}

/* ============================================================
   02 — DEVELOPERS (dark band when data-dark="two")
   ============================================================ */
.v7-dev-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: center;
  margin-top: clamp(36px, 4vw, 56px);
}
.dev-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.dev-tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 7px 12px;
}
.code-block {
  margin: 0;
  background: #100e0b;
  color: #d8d3c9;
  border: 1px solid #2c2823;
  border-radius: var(--radius-card);
  padding: clamp(20px, 2.4vw, 32px);
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.8;
  overflow-x: auto;
}
.c-dim { color: #8a847b; }
.c-acc { color: #ff8a4a; }
.c-good { color: #74cf93; }

/* Dark-band treatment for the dev chapter */
html[data-dark="two"] .v7-dev {
  color-scheme: dark;
  --bg: #15130f;
  --panel: #1c1a16;
  --panel-strong: #221f1a;
  --surface: #28241e;
  --ink: #f4efe7;
  --muted: #8a847b;
  --accent: #ff6a1a;
  --accent-dark: #ff8a4a;
  --line: #2d2a24;
  --line-strong: #3a3631;
  --rule: #3a3631;
  --head-mut: #6e6961;
  background: var(--bg);
  color: var(--ink);
  border-top-color: #1c1a16;
}
html[data-dark="two"] .v7-dev .code-block { border-color: #3a3631; }

/* ============================================================
   03 — TRUST — content left, painting fills the right
   ============================================================ */
.v7-trust-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(36px, 5vw, 96px);
  align-items: center;
}
.v7-trust-main .ch-sub { margin-top: 18px; }
.v7-trust-main .promise-grid { margin-top: clamp(32px, 4vw, 56px); }
.v7-trust-art { width: 100%; max-width: 480px; justify-self: end; }
html[data-paintings="off"] .v7-trust-art { display: none; }
html[data-paintings="off"] .v7-trust-grid { grid-template-columns: 1fr; }
.promise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
}
.promise {
  border-top: 1px solid var(--rule);
  padding-top: 22px;
}
.promise-k {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.promise h3 {
  font-size: clamp(22px, 1.9vw, 28px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.promise p {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}

/* ============================================================
   04 — PRICING
   ============================================================ */
.price-compare {
  font-size: clamp(16px, 1.25vw, 18.5px);
  line-height: 1.7;
  color: var(--muted);
}
.price-compare s { color: var(--muted); text-decoration-color: var(--danger); }
.price-compare strong { color: var(--ink); font-weight: 600; }
.price-compare em { color: var(--accent); }
/* Pricing body: cards left, founder rail right — no dead space */
.v7-pricing-body {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: clamp(28px, 3vw, 56px);
  align-items: start;
  margin-top: clamp(40px, 5vw, 64px);
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.price-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  padding: clamp(24px, 2.4vw, 36px);
  background: var(--panel);
}
.price-card:first-child { border-radius: var(--radius-card) 0 0 var(--radius-card); border-right: 0; }
.price-card.featured {
  border-radius: 0 var(--radius-card) var(--radius-card) 0;
  background: #15130f;
  color: #f4efe7;
  border-color: #15130f;
}
.price-card.featured .mono-label.accent { color: #ff8a4a; }
.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 18px 0 6px;
}
.price-row .amount {
  font-size: clamp(46px, 3.8vw, 64px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-row .per {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-card.featured .per { color: #8a847b; }
.price-features {
  list-style: none;
  margin: 18px 0 28px;
  padding: 0;
  flex: 1;
}
.price-features li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}
.price-card.featured .price-features li { border-top-color: #2d2a24; }
.price-features li::before {
  content: "✓";
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--good);
}
.price-card.featured .price-features li::before { color: #74cf93; }
.price-features li.off { color: var(--muted); }
.price-features li.off::before { content: "×"; color: var(--line-strong); }
.price-card .btn { width: 100%; }
.price-card.featured .btn-accent { background: #ff5600; }
.price-card.featured .btn-accent:hover { background: #ff6a1a; }

/* Founder note — editorial side rail beside the price cards */
.price-note {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.price-note .ps-frame { width: 116px; padding: 6px; }
.price-note .ps-frame img { height: auto; aspect-ratio: 1 / 1; }
html[data-paintings="off"] .price-note > .ps-frame { display: none; }
.price-note-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}
.price-note-body strong { color: var(--ink); font-weight: 600; }
.price-note-sig {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

/* ============================================================
   05 — FAQ — sticky title left, ledger list right
   ============================================================ */
.v7-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 5vw, 96px);
  align-items: start;
}
.v7-faq-grid .ch-title {
  font-size: clamp(32px, 3.2vw, 54px);
  position: sticky;
  top: 104px;
}
.faq-list { min-width: 0; }
.faq-list details { border-top: 1px solid var(--rule); }
.faq-list details:last-child { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 2px;
  font-size: clamp(18px, 1.6vw, 23px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list summary:hover { color: var(--accent-dark); }
.faq-list details p {
  max-width: 76ch;
  padding: 0 2px 28px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--muted);
  text-wrap: pretty;
}
.faq-list details p strong { color: var(--ink); font-weight: 600; }
.faq-list details p a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   FINAL CTA — always dark
   ============================================================ */
.v7-cta {
  color-scheme: dark;
  --head-mut: #6e6961;
  border-top: 1px solid var(--rule);
  background: #15130f;
  color: #f4efe7;
  padding: clamp(64px, 7.2vw, 112px) 0;
}
.v7-cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 6vw, 110px);
  align-items: center;
}
.v7-cta h2 { font-size: clamp(44px, 5.2vw, 84px); }
.v7-cta h2 em { color: #ff6a1a; font-style: normal; }
.v7-cta p {
  margin-top: 24px;
  max-width: 52ch;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
  color: #8a847b;
  text-wrap: pretty;
}
.v7-cta .actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
}
.v7-cta .aside-link { color: #d8d3c9; text-decoration-color: #3a3631; }
.v7-cta .aside-link:hover { color: #ff8a4a; text-decoration-color: #ff8a4a; }
.v7-cta-art .ps-frame {
  background: #1c1a16;
  border-color: #3a3631;
}
html[data-paintings="off"] .v7-cta-art { display: none; }
html[data-paintings="off"] .v7-cta-grid { grid-template-columns: 1fr; }

/* ============================================================
   CHAPTER RAIL — fixed section index, desktop only
   ============================================================ */
.ch-rail {
  position: fixed;
  right: clamp(14px, 1.8vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
html[data-rail="off"] .ch-rail { display: none; }
@media (max-width: 1199px) { .ch-rail { display: none; } }
.ch-rail-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 5px 0;
}
.ch-rail-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #8a847b;
  width: 18px;
  text-align: right;
  transition: color 0.15s ease;
}
.ch-rail-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8a847b;
  opacity: 0;
  transform: translateX(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
  white-space: nowrap;
}
.ch-rail-item:hover .ch-rail-label,
.ch-rail-item.is-active .ch-rail-label { opacity: 1; transform: none; }
.ch-rail-item.is-active .ch-rail-num,
.ch-rail-item:hover .ch-rail-num { color: var(--accent); }
.ch-rail-item.is-active .ch-rail-label { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1380px) {
  .v7-pricing-body { grid-template-columns: 1fr; }
  .price-note {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
    max-width: 760px;
  }
}
@media (max-width: 1060px) {
  .v7-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .v7-hero-grid > .demo-stack { max-width: 600px; }
  .ch-row { grid-template-columns: 1fr; align-items: start; gap: 20px; }
  .ch-sub { max-width: 60ch; }
  .proof-pair { grid-template-columns: 1fr; }
  .v7-dev-grid { grid-template-columns: 1fr; gap: 36px; }
  .v7-trust-grid { grid-template-columns: 1fr; }
  .v7-trust-art { max-width: 360px; justify-self: start; }
  .v7-faq-grid { grid-template-columns: 1fr; gap: 28px; }
  .v7-faq-grid .ch-title { position: static; }
  .v7-cta-grid { grid-template-columns: 1fr; }
  .v7-cta-art { max-width: 380px; }
}
@media (max-width: 760px) {
  .v7-gallery { grid-template-columns: 1fr; }
  .v7-gallery-cell + .v7-gallery-cell {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }
  .proof-points { grid-template-columns: 1fr; gap: 24px; }
  .promise-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card:first-child {
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    border-right: 1px solid var(--rule);
    border-bottom: 0;
  }
  .price-card.featured { border-radius: 0 0 var(--radius-card) var(--radius-card); }
  .price-note { grid-template-columns: 1fr; }
  .hero-cta, .v7-cta .actions { flex-wrap: wrap; }
  .ar-lines > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ============================================================
   MailCull Feature Pages v7 — shared layer for the four short
   feature pages (Clean a List, Verify Email, AI Analyst,
   Developers). Loads after colors_and_type.css +
   site-chrome.css + landing-proposal-v7.css and reuses its
   primitives: .ed-wrap, .mono-label, .mut, .btn, .hero-cta,
   .hero-trust, .ch*, .ps-frame, .ps-cap, .demo-card,
   .transcript, .ai-read, .code-block, .proof-points,
   .promise*, .v7-cta, .chip*.
   ============================================================ */

/* ── Features dropdown (narrow, single column) ────────────── */
.mc-tools-menu.mc-menu-narrow { min-width: 320px; }
.mc-menu-narrow .mc-tools-cols { grid-template-columns: 1fr; }

/* ── Feature hero (contact-hero pattern) ──────────────────── */
.fp-hero { padding: clamp(48px, 6vw, 96px) 0 clamp(52px, 6.4vw, 100px); }
.fp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 88px);
  align-items: center;
}
.fp-title {
  font-size: clamp(44px, 5.2vw, 84px);
  margin-top: 18px;
}
html[data-type="serif"] .fp-title {
  font-family: var(--serif);
  font-weight: 470;
  letter-spacing: -0.022em;
}
.fp-sub {
  margin-top: 22px;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 50ch;
  text-wrap: pretty;
}
.fp-sub strong { color: var(--ink); font-weight: 500; }

/* Painting in the hero (one per page, per ART-STORY) */
.fp-art { width: min(420px, 100%); justify-self: end; margin: 0; }
html[data-paintings="off"] .fp-art { display: none; }
html[data-paintings="off"] .fp-hero-grid,
html[data-paintings="off"] .fp-pair.has-art { grid-template-columns: 1fr; }

/* Hero that carries the live verify widget instead of art */
.fp-hero-grid .demo-stack { width: 100%; }

/* ── Generic chapter pair: artifact + rail ────────────────── */
.fp-pair {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 64px);
}
.fp-stack {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  align-content: start;
}

/* ── Signal ledgers (Verify page · quick vs deep) ─────────── */
.sig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.4vw, 32px);
  margin-top: clamp(40px, 5vw, 64px);
}
.sig-col {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card, 8px);
  overflow: hidden;
}
.sig-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  background: var(--panel-strong);
}
.sig-rows { padding: 4px 20px 10px; flex: 1; }
.sig-row {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  font-size: 14.5px;
}
.sig-row + .sig-row { border-top: 1px solid var(--line); }
.sig-row .k {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 2px;
}
.sig-row .d { color: var(--muted); line-height: 1.55; }
.sig-row .d strong { color: var(--ink); font-weight: 600; }
.sig-foot {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ── Endpoint ledger (Developers page) ────────────────────── */
.ep-rows {
  margin-top: clamp(36px, 4vw, 56px);
  border-top: 1px solid var(--rule);
}
.ep-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 32px);
  align-items: baseline;
  padding: 15px 2px;
  border-bottom: 1px solid var(--line);
}
.ep-row:last-child { border-bottom: 1px solid var(--rule); }
.ep-row .m {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
}
.ep-row .p {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.ep-row .d { font-size: 14px; color: var(--muted); }

/* ── Results ledger (Clean a List page) ───────────────────── */
.list-rows { padding: 2px 20px 8px; }
.list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 44px;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
}
.list-row + .list-row { border-top: 1px solid var(--line); }
.list-row .addr {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.list-row.dim .addr { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.list-row .score {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  text-align: right;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1060px) {
  .fp-hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .fp-hero-grid .demo-stack { max-width: 600px; }
  .fp-art { justify-self: start; max-width: 360px; }
  .fp-pair { grid-template-columns: 1fr; gap: 32px; }
  .sig-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ep-row { grid-template-columns: 64px minmax(0, 1fr); }
  .ep-row .d { grid-column: 2; }
  .list-row { grid-template-columns: minmax(0, 1fr) auto; }
  .list-row .score { display: none; }
}

/* ── Site chrome alignment overrides (v7 treatment) ── */
.v7 .mc-header { border-bottom: 1px solid var(--rule); }
.v7 .mc-header.is-scrolled { border-bottom-color: var(--rule); }
.v7 .mc-header-inner,
.v7 .mc-footer-inner,
.v7 .mc-footer-bottom { width: min(var(--ed-max), 100% - 2 * var(--ed-pad)); }
.v7 .mc-header-inner { min-height: 68px; }
.v7 .mc-footer { border-top: 1px solid var(--rule); }
