/* ============================================================
   Brandstract.ai — Marketing Site Styles
   Fonts: DM Serif Display, DM Mono, Instrument Sans (Google Fonts)
   ============================================================ */

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

/* ── Screen-reader only ────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Skip to main content ──────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--purple, #5b3fde);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 16px 24px;
  text-decoration: none;
  text-align: center;
  transition: top 0.1s;
}
.skip-link:focus { top: 0; }

/* ── Focus styles — WCAG 2.1 AA ────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--purple, #5b3fde);
  outline-offset: 3px;
  border-radius: 2px;
}
/* On dark backgrounds use the lighter purple ring */
nav :focus-visible,
.mobile-menu :focus-visible,
.site-footer :focus-visible,
.cookie-banner :focus-visible {
  outline-color: #a78bfa;
}

:root {
  --ink:          #0f0e0d;
  --paper:        #f5f2ee;
  --cream:        #ede9e3;
  --purple:       #5b3fde;
  --purple-light: #ece8fd;
  --muted:        #7a7570;
  --border:       #d8d3cc;
  --danger:       #c0392b;
  --warning:      #d4891a;
  --success:      #2d7d4f;
  --mono:         'DM Mono', monospace;
  --serif:        'DM Serif Display', serif;
  --sans:         'Instrument Sans', sans-serif;
  --radius:       6px;
  --nav-h:        72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================================
   NAV
   ============================================================ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 16px rgba(0,0,0,0.35);
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: 0 1px 0 rgba(255,255,255,0.04), 0 4px 24px rgba(0,0,0,0.45);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-decoration: none;
  line-height: 1;
}

.nav-logo span {
  color: #a78bfa;
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  font-weight: 450;
  color: var(--paper);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #a78bfa;
}

.nav-links a.active {
  color: #a78bfa;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
  text-decoration-color: #a78bfa;
}

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s;
}

.nav-cta:hover {
  background: var(--cream);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--paper);
  transition: transform 0.2s, opacity 0.2s;
}

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 24px 24px 32px;
  flex-direction: column;
  gap: 0;
  z-index: 99;
}

.mobile-menu.open {
  display: flex;
}

.mobile-link {
  font-size: 16px;
  color: rgba(245, 242, 238, 0.65);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link.active {
  color: #a78bfa;
  font-weight: 500;
}

.mobile-cta {
  margin-top: 16px;
  padding: 13px 0;
  font-weight: 500;
  color: #a78bfa;
  border-bottom: none;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 28px;
  opacity: 0;
  animation: fadeUp 0.6s 0.2s forwards;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 820px;
  opacity: 0;
  animation: fadeUp 0.7s 0.35s forwards;
}

.hero-headline em {
  font-style: italic;
  color: var(--purple);
}

.hero-sub {
  margin-top: 28px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 0.7s 0.5s forwards;
}

.hero-actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.7s 0.65s forwards;
}

.btn-primary {
  font-size: 14px;
  font-weight: 500;
  padding: 13px 28px;
  background: var(--purple);
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(91, 63, 222, 0.3);
}

.btn-ghost {
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}

.btn-ghost:hover {
  color: var(--ink);
}

.btn-ghost::after {
  content: '→';
  transition: transform 0.2s;
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

.hero-grid {
  position: absolute;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  width: 520px;
  height: 520px;
  opacity: 0;
  animation: fadeIn 1s 0.8s forwards;
  pointer-events: none;
}

/* ============================================================
   SIGNAL TICKER
   ============================================================ */

.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  background: var(--cream);
  opacity: 0;
  animation: fadeIn 0.6s 1s forwards;
}

.ticker {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: ticker 28s linear infinite;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--purple);
  flex-shrink: 0;
}

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */

section {
  padding: 100px 48px;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  max-width: 640px;
}

.section-title em {
  font-style: italic;
  color: var(--purple);
}

/* ============================================================
   PROBLEM
   ============================================================ */

.problem {
  background: var(--ink);
  color: var(--paper);
}

.problem .section-label {
  color: #8b7de8;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin-top: 64px;
  background: rgba(255, 255, 255, 0.08);
}

.problem-cell {
  padding: 40px;
  background: var(--ink);
  transition: background 0.2s;
}

.problem-cell:hover {
  background: #1a1917;
}

.problem-cell-num {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 20px;
}

.problem-cell-title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--paper);
  margin-bottom: 12px;
  line-height: 1.2;
}

.problem-cell-body {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */

.how {
  background: var(--paper);
}

.steps {
  display: flex;
  flex-direction: column;
  margin-top: 64px;
  max-width: 800px;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.step:last-child {
  border-bottom: none;
}

.step-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  padding-top: 4px;
}

.step-title {
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.step-badge {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--purple-light);
  color: var(--purple);
  padding: 3px 8px;
  border-radius: 2px;
}

.step-body {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   TRUTH SCORE
   ============================================================ */

.truth {
  background: var(--cream);
}

.truth-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-top: 64px;
}

.truth-body {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
}

.gap-item {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.gap-item:last-child {
  margin-bottom: 0;
}

.gap-severity {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.gap-severity.high  { color: var(--danger); }
.gap-severity.medium { color: var(--warning); }

.gap-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.gap-text strong { color: var(--ink); font-weight: 500; }
.gap-text em     { font-style: italic; }

/* Score card */
.score-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  font-family: var(--mono);
}

.score-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.score-brand {
  font-size: 13px;
  font-weight: 500;
  font-family: var(--sans);
}

.score-index {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.score-grade {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--purple);
  line-height: 1;
}

.drift-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--success);
  justify-content: flex-end;
  margin-top: 4px;
}

.dim-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.dim-label {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.dim-bar-wrap {
  grid-column: 1 / -1;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  margin-top: -8px;
  margin-bottom: 4px;
}

.dim-bar {
  height: 100%;
  border-radius: 2px;
  background: var(--purple);
}

.dim-bar.danger  { background: var(--danger); }
.dim-bar.warning { background: var(--warning); }

.dim-score {
  font-size: 11px;
  color: var(--ink);
  font-weight: 500;
}

.score-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================================
   API
   ============================================================ */

.api {
  background: var(--ink);
  color: var(--paper);
}

.api .section-label {
  color: #8b7de8;
}

.api-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 64px;
  align-items: start;
}

.code-block {
  background: #1a1917;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  overflow-x: auto;
}

.code-block .kw  { color: #8b7de8; }
.code-block .str { color: #7ec8a4; }
.code-block .fn  { color: #e8c97d; }
.code-block .cm  { color: rgba(255, 255, 255, 0.25); }

.api-note {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 16px;
  line-height: 1.6;
}

.api-note code {
  font-family: var(--mono);
  font-size: 12px;
  color: #8b7de8;
}

.endpoint-list {
  margin-bottom: 28px;
}

.endpoint-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.endpoint-row:last-child {
  border-bottom: none;
}

.method {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 3px 7px;
  border-radius: 2px;
  min-width: 42px;
  text-align: center;
}

.method.get  { background: rgba(126, 200, 164, 0.15); color: #7ec8a4; }
.method.post { background: rgba(139, 125, 232, 0.15); color: #8b7de8; }

.endpoint-path {
  font-family: var(--mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.api-footnote {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.7;
}

.api-footnote code {
  font-family: var(--mono);
  font-size: 12px;
  color: #8b7de8;
}

/* ============================================================
   MCP
   ============================================================ */

.mcp {
  background: var(--paper);
}

.mcp-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 64px;
  align-items: start;
}

.mcp-body {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.mcp-meta {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 28px;
}

.mcp-meta-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.mcp-meta-row:last-child {
  border-bottom: none;
}

.mcp-meta-label { color: var(--purple); }
.mcp-meta-value { color: var(--muted); }

.mcp-meta-value code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--purple);
}

.mcp-resources {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mcp-resource {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 20px;
  background: var(--cream);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  align-items: start;
  transition: border-color 0.2s;
}

.mcp-resource:hover {
  border-color: var(--purple);
}

.resource-icon {
  width: 32px;
  height: 32px;
  background: var(--purple-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--purple);
  font-weight: 500;
}

.resource-name {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.resource-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   FOOTER
   ============================================================ */

/* ── Site footer ── */
footer.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 48px 48px;
}

.footer-cta-row {
  text-align: center;
  padding-bottom: 56px;
}

.footer-cta-btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 32px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 4px;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: border-color 0.2s, background 0.2s;
}

.footer-cta-btn:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
}

.footer-rule {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 48px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}

.footer-col-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--paper);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

.footer-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 5px 14px 5px 10px;
}

.footer-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
  nav {
    padding: 0 32px;
  }
  .nav-links {
    gap: 20px;
  }
}

@media (max-width: 900px) {
  nav {
    padding: 0 24px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .hero {
    padding: 100px 24px 60px;
  }

  .hero-grid {
    display: none;
  }

  section {
    padding: 64px 24px;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .truth-inner,
  .api-grid,
  .mcp-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  footer.site-footer {
    padding: 56px 24px 40px;
  }
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

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

@media (max-width: 600px) {
  .hero-headline {
    font-size: clamp(38px, 10vw, 56px);
  }

  .step {
    grid-template-columns: 32px 1fr;
    gap: 16px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ticker { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-eyebrow,
  .hero-headline,
  .hero-sub,
  .hero-actions,
  .hero-grid,
  .ticker-wrap { animation: none; opacity: 1; }
}

/* ============================================================
   READING PROGRESS BAR
   ============================================================ */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--purple);
  z-index: 400;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* ============================================================
   ACCESS MODAL
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 14, 13, 0.55);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 48px;
  max-width: 440px;
  width: 100%;
  position: relative;
  transform: translateY(14px);
  transition: transform 0.25s;
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
}

.modal-close:hover { color: var(--ink); }

.modal-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}

.modal-title {
  font-family: var(--serif);
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.15;
}

.modal-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 28px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--sans);
  font-size: 14px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--ink);
  transition: border-color 0.2s;
}

.modal-input:focus { border-color: var(--purple); outline: none; }
.modal-input:focus-visible { outline: 2px solid var(--purple); outline-offset: 0; }
.modal-input::placeholder { color: var(--muted); }

.modal-submit {
  padding: 13px;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.modal-submit:hover:not(:disabled) {
  background: var(--ink);
  transform: translateY(-1px);
}

.modal-submit:disabled { opacity: 0.6; cursor: default; }

.modal-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--purple-light);
  color: var(--purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 20px;
}

.modal-error {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--danger);
  margin-top: -4px;
}

/* ============================================================
   BLOG POST PAGES
   ============================================================ */

.post-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 140px 48px 100px;
}

.post-page-back {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 48px;
  transition: color 0.2s;
}

.post-page-back::before { content: '←'; }
.post-page-back:hover { color: var(--ink); }

.post-page-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 20px;
}

.post-page-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 24px;
}

.post-page-title em { color: var(--purple); font-style: italic; }

.post-page-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  display: flex;
  gap: 20px;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.post-page-body p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 24px;
}

.post-page-body p.muted { color: var(--muted); }

.post-page-body h2 {
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: -0.01em;
  margin: 48px 0 16px;
  line-height: 1.2;
}

.post-page-body h2 em { color: var(--purple); font-style: italic; }

.post-page-body blockquote {
  border-left: 3px solid var(--purple);
  padding: 20px 0 20px 28px;
  margin: 36px 0;
}

.post-page-body blockquote p {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
}

.post-page-body blockquote p em { color: var(--purple); font-style: italic; }

.post-footer {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.post-footer-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .post-page { padding: 120px 24px 80px; }
  .modal { padding: 32px 24px; }
}

/* ── Cookie banner ───────────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  gap: 32px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.22,1,0.36,1);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-text {
  flex: 1;
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}
.cookie-banner-text a {
  color: rgba(255,255,255,0.75);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-text a:hover { color: #fff; }
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-accept {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px;
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.cookie-accept:hover { opacity: 0.88; }
.cookie-decline {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px;
  background: transparent;
  color: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.cookie-decline:hover {
  color: rgba(255,255,255,0.9);
  border-color: rgba(255,255,255,0.4);
}
@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
  }
  .cookie-banner-actions { width: 100%; }
  .cookie-accept, .cookie-decline { flex: 1; text-align: center; }
}

/* Cross-links to Solution page */
.solution-link {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--purple);
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(91,63,222,0.3);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.solution-link:hover,
.solution-link:focus-visible {
  border-color: rgba(91,63,222,0.8);
  outline: none;
}
.solution-link:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 1px;
}

.solution-link-dark {
  color: #8b7de8;
  text-decoration: none;
  border-bottom: 1px solid rgba(139,125,232,0.3);
  padding-bottom: 1px;
  transition: border-color 0.2s, color 0.2s;
}
.solution-link-dark:hover,
.solution-link-dark:focus-visible {
  border-color: rgba(139,125,232,0.8);
  outline: none;
}
.solution-link-dark:focus-visible {
  outline: 2px solid #8b7de8;
  outline-offset: 3px;
  border-radius: 1px;
}

