/* eComCalculators.io — base chrome (loaded on every page) */

@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/JetBrainsMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/JetBrainsMono-Bold.ttf') format('truetype');
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

/* Design tokens — typewriter identity preserved on chrome,
   sans-serif for long-form reading, mid-gray for hierarchy */
:root {
  --mono: 'JetBrains Mono', monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text:           #1a1a1a;
  --text-secondary: #555;
  --text-muted:     #888;
  --border:         #000;
  --border-soft:    #ddd;
  --border-softer:  #eee;
  --accent-warn:    #b54343;  /* desaturated brick — used on negative status only */
  --accent-warn-bg: #fbecec;
  --accent-warn-fg: #6b1d1d;
  --link:           #0a3d62;  /* dark editorial navy — body prose links only */
  --link-bg:        rgba(10, 61, 98, 0.07);
}

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

body {
  font-family: var(--mono);
  background: #fff;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

a { color: var(--text); }

/* --- Long-form prose: sans-serif for paragraphs in reading sections ----- */
/* Calc page About + FAQ */
body.calculator .seo p,
body.calculator .seo li,
body.calculator .faq-a {
  font-family: var(--sans);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.75;
}
body.calculator .seo p strong,
body.calculator .faq-a strong { color: var(--text); }
/* Page-type pages (about, methodology, contact, privacy, playbooks) */
body.page p,
body.page li,
body.page .content-prose p,
body.page .content-prose li {
  font-family: var(--sans);
  color: var(--text-secondary);
  line-height: 1.75;
}
body.page p strong { color: var(--text); }
/* Glossary definitions */
.glossary-def { font-family: var(--sans); color: var(--text-secondary); }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Site nav (sticky on scroll, subtle shadow) */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #000;
}
.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1024px;
  margin: 0 auto;
}
.site-nav.has-shadow {
  box-shadow: 0 2px 0 rgba(0,0,0,0.04), 0 8px 16px -8px rgba(0,0,0,0.06);
}
.logo {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: #000;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  color: #000;
  padding: 8px 12px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  letter-spacing: 0.02em;
}
.nav-link:hover { background: #f5f5f5; }
.nav-link.is-active {
  border-color: #000;
}

/* --- Primary nav links + Categories dropdown --------------------------- */
.nav-primary {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-burger {
  display: none;
  background: transparent;
  border: 1px solid #000;
  padding: 7px 9px;
  cursor: pointer;
  flex-direction: column;
  gap: 3px;
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: #000;
}
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}
.nav-caret { font-size: 9px; margin-left: 1px; transition: transform 0.15s; }
.nav-dropdown.is-open .nav-caret { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 6px;
  display: none;
  flex-direction: column;
  z-index: 60;
}
.nav-dropdown.is-open .nav-dropdown-menu { display: flex; }
.nav-dropdown-menu a {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
  color: #000;
  padding: 8px 12px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.nav-dropdown-menu a:hover {
  background: #000;
  color: #fff;
}

@media (max-width: 800px) {
  .nav-burger { display: inline-flex; }
  .nav-primary {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #000;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 16px;
    gap: 0;
  }
  .site-nav.is-open .nav-primary { display: flex; }
  .nav-primary .nav-link {
    padding: 12px 8px;
    font-size: 12px;
    border-bottom: 1px solid var(--border-soft);
  }
  .nav-primary .nav-link:last-child { border-bottom: 0; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: 0;
    padding: 4px 0 4px 12px;
    background: #fafafa;
    margin: 0 -8px 0 0;
  }
  .nav-dropdown-menu a { padding: 10px 8px; font-size: 11px; }
}
.mega-trigger {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  border: 1px solid #000;
  background: #fff;
  padding: 7px 12px;
  gap: 8px;
}
.mega-trigger:hover {
  background: #000;
  color: #fff;
}
.mega-trigger:hover .mega-grid-icon rect { fill: #fff; }
.mega-trigger[aria-expanded="true"] {
  background: #000;
  color: #fff;
}
.mega-trigger[aria-expanded="true"] .mega-grid-icon rect { fill: #fff; }
.mega-trigger[aria-expanded="true"] .mega-caret {
  transform: rotate(180deg);
}
.mega-grid-icon rect { fill: #000; transition: fill 0.12s ease; }
.mega-caret {
  transition: transform 0.18s ease;
}

/* Mega menu panel */
.mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #fff;
  border-bottom: 1px solid #000;
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.18);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  animation: megaSlide 0.16s ease-out;
}
.mega-menu[hidden] { display: none; }
@keyframes megaSlide {
  from { transform: translateY(-6px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.mega-inner {
  max-width: 1024px;
  margin: 0 auto;
  padding: 24px;
}
.mega-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid #ddd;
}
.mega-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.mega-allcta {
  font-size: 11px;
  text-decoration: none;
  color: #000;
  font-weight: 500;
}
.mega-allcta:hover { text-decoration: underline; }
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 32px;
}
.mega-col { min-width: 0; }
.mega-cat {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid #000;
  padding-bottom: 6px;
}
.mega-cnt {
  font-size: 9px;
  font-weight: 400;
  color: #888;
}
.mega-tools {
  list-style: none;
  margin: 0;
  padding: 0;
}
.mega-tools li { margin: 0; }
.mega-tools a {
  display: block;
  font-size: 11px;
  text-decoration: none;
  color: #333;
  padding: 4px 0;
  line-height: 1.45;
}
.mega-tools a:hover {
  color: #000;
  text-decoration: underline;
}
.mega-tools a.is-active {
  color: #000;
  font-weight: 600;
}
@media (max-width: 800px) {
  .mega-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 24px; }
}
@media (max-width: 560px) {
  .nav-link { padding: 6px 8px; font-size: 10px; }
  .nav-bar  { padding: 12px 16px; }
  .mega-grid { grid-template-columns: 1fr; gap: 16px; }
  .mega-inner { padding: 16px; }
  .mega-menu { max-height: calc(100vh - 56px); }
}

/* Body offset to prevent content from jumping under sticky header (handled by sticky positioning,
   but ensure no large gap is introduced) */

/* Headings + horizontal rules + paragraphs */
h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.035em;
  margin-bottom: 6px;
  line-height: 1.15;
}
h2 {
  font-size: 16px;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
@media (max-width: 700px) {
  h1 { font-size: 24px; }
}
hr {
  border: none;
  border-top: 1px solid #000;
  margin: 28px 0;
}

/* Form controls (used on contact page; calc inputs override sizing) */
label {
  font-size: 11px;
  display: block;
  margin-bottom: 4px;
}
input, textarea, select {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 400;
  padding: 10px 12px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  outline: none;
  width: 100%;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.field {
  margin-bottom: 16px;
}
.btn {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  padding: 12px 24px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.02em;
}
.btn:hover {
  background: #333;
}
.success {
  padding: 20px;
  border: 1px solid #000;
  margin-top: 20px;
  font-size: 13px;
}
.error {
  padding: 12px 14px;
  border: 1px solid #000;
  background: #fff5f5;
  margin-bottom: 16px;
  font-size: 12px;
}

/* Footer */
.foot {
  padding-top: 20px;
  border-top: 1px solid #000;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 60px;
  margin-bottom: 40px;
}
.foot a { color: #000; }
.foot-brand { font-weight: 500; }
.foot-tagline { color: #555; }
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
}
.foot-links a {
  font-size: 10px;
  text-decoration: none;
  color: #555;
}
.foot-links a:hover {
  color: #000;
  text-decoration: underline;
}

@media (max-width: 540px) {
  .foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Report-issue link uses the same styling as other footer links via .foot-links a */

/* Report-issue lightbox modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  cursor: pointer;
}
.modal-content {
  position: relative;
  background: #fff;
  border: 1px solid #000;
  padding: 32px 28px 24px;
  max-width: 480px;
  width: 100%;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  box-shadow: 0 16px 48px -16px rgba(0,0,0,0.4);
}
.modal-content h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.modal-content p {
  font-size: 12px;
  color: #555;
  margin-bottom: 20px;
  line-height: 1.6;
}
.modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: 0;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  padding: 6px 10px;
  color: #000;
}
.modal-close:hover { background: #f5f5f5; }
.report-status {
  font-size: 11px;
  margin-top: 12px;
  min-height: 16px;
}
.report-status-ok  { color: #1a7f37; }
.report-status-err { color: #cf222e; }

/* Generic content paragraphs (about/privacy/contact) */
.content-prose p {
  font-size: 13px;
  line-height: 1.9;
  margin-bottom: 16px;
}

/* --- Glossary layout ----------------------------------------------------- */
.glossary-letters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 16px 0 24px;
  padding: 8px 12px;
  border: 1px solid #000;
  background: #fff;
}
.glossary-letters a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  color: #000;
  padding: 4px 7px;
  border: 1px solid transparent;
}
.glossary-letters a:hover { border-color: #000; background: #f5f5f5; }
.glossary-list { display: flex; flex-direction: column; gap: 24px; }
.glossary-letter-group {
  border-top: 1px solid #000;
  padding-top: 12px;
}
.glossary-letter-h {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.glossary-item {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.glossary-item:target {
  background: #fff8d4;
  margin: 0 -12px;
  padding: 12px;
}
.glossary-term {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.glossary-def {
  font-size: 12px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 6px;
}
.glossary-calc-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555;
  text-decoration: none;
  border-bottom: 1px dotted #ccc;
}
.glossary-calc-link:hover { color: #000; border-bottom-color: #000; }

/* --- Comparison page layout --------------------------------------------- */
.compare-table {
  width: 100%;
  border: 1px solid #000;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 12px;
}
.compare-table th, .compare-table td {
  padding: 10px 12px;
  border: 1px solid #ddd;
  vertical-align: top;
}
.compare-table th {
  background: #000;
  color: #fff;
  font-weight: 600;
  text-align: left;
}
.compare-table td:first-child {
  font-weight: 600;
  background: #fafafa;
  width: 28%;
}
.compare-winner {
  background: #fff8d4 !important;
  font-weight: 600;
}
.compare-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}
.compare-related a {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 6px 10px;
  border: 1px solid #000;
  text-decoration: none;
  color: #000;
}
.compare-related a:hover { background: #000; color: #fff; }

/* --- /vs side-by-side compare ----------------------------------------- */
.vs-picker {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  margin: 16px 0 24px;
  align-items: end;
}
.vs-picker-side label {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  color: #555;
}
.vs-picker-side select {
  width: 100%;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 9px 10px;
  border: 1px solid #000;
  background: #fff;
}
.vs-go {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 9px 16px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}
.vs-go:hover { background: #fff; color: #000; }
.vs-iframes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.vs-side { display: flex; flex-direction: column; }
.vs-side-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-family: 'JetBrains Mono', monospace;
  padding: 8px 12px;
  background: #000;
  color: #fff;
}
.vs-side-head strong { font-weight: 600; }
.vs-open {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px dotted rgba(255,255,255,0.4);
}
.vs-open:hover { border-bottom-color: #fff; }
.vs-iframe {
  width: 100%;
  height: 720px;
  border: 1px solid #000;
  border-top: none;
  background: #fff;
}
.vs-empty {
  padding: 28px 0;
  text-align: center;
  color: #666;
  font-size: 13px;
}
.vs-empty a { color: #000; }
@media (max-width: 800px) {
  .vs-picker { grid-template-columns: 1fr; }
  .vs-iframes { grid-template-columns: 1fr; }
  .vs-iframe { height: 600px; }
}

/* --- Shared card grid (used on /compare, /category, /playbook, calc pages) --- */
.rel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.rel-card {
  padding: 14px 16px;
  border: 1px solid #000;
  text-decoration: none;
  color: #000;
  display: block;
  background: #fff;
  transition: background 0.12s ease, color 0.12s ease;
}
.rel-card:hover { background: #000; color: #fff; }
.rel-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  line-height: 1.3;
}
.rel-desc {
  font-size: 11px;
  line-height: 1.55;
  color: #444;
}
.rel-card:hover .rel-desc { color: #ccc; }
@media (max-width: 600px) {
  .rel-grid { grid-template-columns: 1fr; }
}

/* --- Playbook index — numbered hero cards --------------------------------- */
.playbook-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0 36px;
}
.playbook-card {
  position: relative;
  padding: 24px 22px 20px;
  border: 1px solid #000;
  text-decoration: none;
  color: #000;
  display: flex;
  flex-direction: column;
  background: #fff;
  min-height: 220px;
  transition: background 0.14s ease, color 0.14s ease;
}
.playbook-card:hover { background: #000; color: #fff; }
.playbook-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #aaa;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.playbook-card:hover .playbook-num { color: #777; }
.playbook-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 10px;
}
.playbook-summary {
  font-size: 12px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 18px;
}
.playbook-card:hover .playbook-summary { color: #ddd; }
.playbook-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #ddd;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.playbook-card:hover .playbook-meta { border-top-color: #555; }
.playbook-stats { color: #777; }
.playbook-card:hover .playbook-stats { color: #aaa; }
.playbook-cta { font-weight: 600; }
.playbook-cta::after {
  content: ' →';
  display: inline-block;
  transition: transform 0.14s ease;
}
.playbook-card:hover .playbook-cta::after { transform: translateX(4px); }
@media (max-width: 700px) {
  .playbook-grid { grid-template-columns: 1fr; gap: 10px; }
  .playbook-card { min-height: auto; padding: 20px 18px 18px; }
  .playbook-title { font-size: 17px; }
}

/* --- Status pill auto-coloring ----------------------------------------- */
/* Black-bg pills are unambiguously "this is a problem" — convert to soft red
   so the eye catches negative results at a glance. White-bg pills stay neutral
   because they're overloaded with both "good" and "okay" semantics. */
.status[style*="background:#000"] {
  background: var(--accent-warn-bg) !important;
  color: var(--accent-warn-fg) !important;
  border-color: var(--accent-warn) !important;
}

/* --- Subtler borders on content cards ---------------------------------- */
/* Reserve solid black borders for primary actions and featured cards.
   Content cards (rel-card, glossary items, popular cards) get softer gray. */
.rel-card,
.popular-card,
.glossary-item {
  border-color: var(--border-soft);
}
.rel-card:hover,
.popular-card:hover { border-color: var(--border); }

/* Secondary text colors — descriptions, hints, captions */
.tool-desc,
.rel-desc,
.popular-desc,
.cat-section-count,
.search-count,
.foot-tagline,
.foot-links a,
.hint {
  color: var(--text-secondary);
}

/* --- Body prose links: dark navy with strong underline ----------------- */
/* Applies ONLY to inline links inside reading content. Navigation, footer,
   breadcrumbs, cards, and buttons keep their default black treatment. */
body.calculator .seo p a,
body.calculator .seo li a,
body.calculator .faq-a a,
body.page main p a,
body.page main li a,
body.page .content-prose a,
.glossary-def a,
.auto-link {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2.5px;
  text-decoration-color: var(--link);
  transition: background 0.12s ease, text-decoration-thickness 0.12s ease;
}
body.calculator .seo p a:hover,
body.calculator .seo li a:hover,
body.calculator .faq-a a:hover,
body.page main p a:hover,
body.page main li a:hover,
body.page .content-prose a:hover,
.glossary-def a:hover,
.auto-link:hover {
  background: var(--link-bg);
  text-decoration-thickness: 2px;
}
/* Bold/strong inside prose stays in primary text color (not link navy) — readability */
body.calculator .seo p a strong,
body.calculator .faq-a a strong,
body.page main p a strong { color: inherit; }

/* --- Newsletter signup ------------------------------------------------- */
/* Three variants:
   .newsletter-footer  — single-line strip in <footer>, easy to ignore
   .newsletter-inline  — end-of-page card on calc / playbook / about
   .newsletter-page    — hero on the dedicated /newsletter page              */

.newsletter-status {
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 2px;
  min-height: 16px;
}
.newsletter-status-ok  { color: #1a7f37; }
.newsletter-status-err { color: var(--accent-warn-fg); }

/* --- Footer strip variant --- */
.newsletter-footer {
  width: 100%;
  border-top: 1px solid var(--border-soft);
  padding: 14px 0 18px;
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.foot .newsletter-footer { /* placed inside .foot via include — pull above brand row */
  order: -1;
  margin-top: 0;
  margin-bottom: 4px;
  border-top: 0;
  border-bottom: 1px solid var(--border-soft);
  padding-top: 0;
}
.newsletter-foot-pitch {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 240px;
}
.newsletter-foot-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
}
.newsletter-foot-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.newsletter-form-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.newsletter-form-foot input[type=email] {
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  background: #fff;
  width: 220px;
  outline: none;
}
.newsletter-form-foot input[type=email]:focus {
  box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}
.newsletter-form-foot button {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border: 1px solid var(--border);
  background: #000;
  color: #fff;
  cursor: pointer;
}
.newsletter-form-foot button:hover { background: #222; }
.newsletter-form-foot .newsletter-status {
  flex-basis: 100%;
  margin-top: 4px;
}
@media (max-width: 600px) {
  .newsletter-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .newsletter-form-foot { width: 100%; }
  .newsletter-form-foot input[type=email] { flex: 1 1 auto; min-width: 0; width: auto; }
}

/* --- Inline (end-of-page) variant --- */
.newsletter-inline {
  margin: 36px 0 16px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  background: #fafafa;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
}
.newsletter-inline-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.newsletter-inline-title {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  line-height: 1.25;
}
.newsletter-inline-desc {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}
.newsletter-inline-hint {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.newsletter-inline-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.newsletter-inline-row input[type=email] {
  font-family: var(--mono);
  font-size: 13px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  background: #fff;
  flex: 1 1 180px;
  min-width: 0;
  outline: none;
}
.newsletter-inline-row input[type=email]:focus {
  box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}
.newsletter-inline-row button {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 11px 18px;
  border: 1px solid var(--border);
  background: #000;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}
.newsletter-inline-row button:hover { background: #222; }
@media (max-width: 700px) {
  .newsletter-inline {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 16px;
  }
  .newsletter-inline-title { font-size: 16px; }
}

/* --- Dedicated /newsletter page variant --- */
.newsletter-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.newsletter-page {
  margin: 8px 0 4px;
  padding: 22px 24px;
  border: 1px solid var(--border);
  background: #fafafa;
}
.newsletter-page-label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 8px;
}
.newsletter-page-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.newsletter-page-row input[type=email] {
  font-family: var(--mono);
  font-size: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: #fff;
  flex: 1 1 220px;
  min-width: 0;
  outline: none;
}
.newsletter-page-row input[type=email]:focus {
  box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}
.newsletter-page-row button {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  border: 1px solid var(--border);
  background: #000;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}
.newsletter-page-row button:hover { background: #222; }
.newsletter-fineprint {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 12px;
  margin-bottom: 0;
}
.newsletter-form-page .newsletter-status { margin-top: 10px; }
@media (max-width: 540px) {
  .newsletter-page { padding: 18px 16px; }
}

/* --- Floating scroll-triggered reveal (playbook pages only) ------------- */
/* Bottom-right card on desktop, full-width slide-up on mobile. Hidden by
   default; JS removes [hidden] when scroll passes 60% of doc height.       */
.newsletter-reveal {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 320px;
  z-index: 30;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 18px 20px 16px;
  font-family: var(--mono);
  transform: translateY(12px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.newsletter-reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}
.newsletter-reveal-close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.newsletter-reveal-close:hover { color: #000; background: #f5f5f5; }
.newsletter-reveal-eyebrow {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.newsletter-reveal-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  line-height: 1.3;
}
.newsletter-reveal-desc {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 12px;
}
.newsletter-reveal-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.newsletter-reveal-row input[type=email] {
  font-family: var(--mono);
  font-size: 12px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  background: #fff;
  width: 100%;
  outline: none;
}
.newsletter-reveal-row input[type=email]:focus { box-shadow: 0 0 0 2px rgba(0,0,0,0.06); }
.newsletter-reveal-row button {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 9px 14px;
  border: 1px solid var(--border);
  background: #000;
  color: #fff;
  cursor: pointer;
}
.newsletter-reveal-row button:hover { background: #222; }
.newsletter-reveal-fineprint {
  font-size: 9px;
  color: var(--text-muted);
  margin: 8px 0 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.newsletter-form-reveal .newsletter-status {
  font-size: 11px;
  margin-top: 6px;
}
@media (max-width: 700px) {
  .newsletter-reveal {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
    padding: 14px 16px 12px;
  }
}
