/* ==========================================================================
   Optimon — Bold v3 (Semrush-style marketing site)
   ========================================================================== */

:root {
  /* Theme: Orange (default) */
  --bg:        #ffffff;
  --bg-2:      #faf9f6;
  --bg-3:      #f1efe8;
  --ink:       #0c0d10;
  --ink-2:     #36383f;
  --ink-3:     #6b6f7a;
  --rule:      #e6e4dc;
  --rule-soft: #f1efe8;

  --accent:      #7c3aed;
  --accent-ink:  #ffffff;
  --accent-soft: #ddd0fa;
  --accent-deep: #5018b3;

  --positive: #2a6b3e;
  --warn:     #a8730d;
  --danger:   #a23a16;

  /* Color cards */
  --card-yellow:   #fef3c7;
  --card-yellow-2: #fde68a;
  --card-sky:      #dbeafe;
  --card-sky-2:    #93c5fd;
  --card-mint:     #d1fae5;
  --card-mint-2:   #6ee7b7;
  --card-blush:    #fce7f3;
  --card-blush-2:  #f9a8d4;
  --card-lavender: #ede9fe;
  --card-lavender-2: #c4b5fd;
  --card-citrus:   #f6f3c4;
  --card-citrus-2: #cce039;

  --font-sans:    "Outfit", system-ui, sans-serif;
  --font-display: "Outfit", system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, monospace;

  --container: 1280px;
  --gutter: 32px;

  /* Tweaks */
  --radius:      14px;
  --radius-card: 18px;
  --radius-pill: 999px;     /* default fully rounded buttons in this version */
  --headline-w:  700;
  --section-pad: 48px;
  --scale:       1;

  --hero-h:    calc(clamp(48px, 6.6vw, 100px) * var(--scale));
  --section-h: calc(clamp(34px, 4.4vw, 64px) * var(--scale));
  --feature-h: calc(clamp(26px, 2.6vw, 38px) * var(--scale));
  --body-s:    calc(16px * var(--scale));
  --deck-s:    calc(20px * var(--scale));
}

/* Theme presets */
[data-theme="orange"] { --accent: #ff5b1f; --accent-soft: #ffe2d2; --accent-deep: #c63d0a; }
[data-theme="pink"]   { --accent: #ec4899; --accent-soft: #fbcfe8; --accent-deep: #b51e6c; }
[data-theme="blue"]   { --accent: #2563eb; --accent-soft: #d3e1fa; --accent-deep: #1741a8; }
[data-theme="lime"]   { --accent: #84cc16; --accent-soft: #ecfccb; --accent-deep: #547a0e; --accent-ink: #0c0d10; }
[data-theme="violet"] { --accent: #7c3aed; --accent-soft: #ddd0fa; --accent-deep: #5018b3; }
[data-theme="black"]  { --accent: #0c0d10; --accent-soft: #e3e3e6; --accent-deep: #000000; }

/* Font swap */
html[data-font="outfit"]     { --font-sans: "Outfit", system-ui, sans-serif; --font-display: "Outfit", system-ui, sans-serif; }
html[data-font="space"]      { --font-sans: "Space Grotesk", system-ui, sans-serif; --font-display: "Space Grotesk", system-ui, sans-serif; }
html[data-font="manrope"]    { --font-sans: "Manrope", system-ui, sans-serif; --font-display: "Manrope", system-ui, sans-serif; }
html[data-font="plex"]       { --font-sans: "IBM Plex Sans", system-ui, sans-serif; --font-display: "IBM Plex Sans", system-ui, sans-serif; }
html[data-font="instrument"] { --font-sans: "Instrument Sans", system-ui, sans-serif; --font-display: "Instrument Serif", "Instrument Sans", system-ui, sans-serif; }
html[data-font="archivo"]    { --font-sans: "Archivo", system-ui, sans-serif; --font-display: "Archivo Black", "Archivo", system-ui, sans-serif; }

/* Dark mode bg tone */
[data-bgtone="dark"] {
  --bg: #0c0d10; --bg-2: #15161b; --bg-3: #1f2128;
  --ink: #f5f5f7; --ink-2: #c2c4cc; --ink-3: #82848f;
  --rule: #25272f; --rule-soft: #1d1f25;
  --accent-soft: #2a1547;
  --card-yellow:   #2d2613;
  --card-sky:      #122438;
  --card-mint:     #112a1f;
  --card-blush:    #2a1320;
  --card-lavender: #1b1530;
  --card-citrus:   #232712;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--body-s);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background 0.2s, color 0.2s;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announce {
  background: var(--ink);
  color: var(--bg);
  padding: 11px var(--gutter);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.announce > span { white-space: nowrap; }
.announce a { white-space: nowrap; }
.announce .pill {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.announce a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}
[data-bgtone="dark"] .announce { background: var(--bg-2); border-bottom: 1px solid var(--rule); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding: 16px 0;
}
.nav-left { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; font-weight: 600; color: var(--ink); }
.nav-links a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 6px 0;
  transition: color .15s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a::after {
  content: "▾";
  font-size: 9px;
  margin-left: 2px;
  color: var(--ink-3);
}
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-right .signin { font-size: 14px; font-weight: 600; color: var(--ink); padding: 9px 16px; border-radius: var(--radius-pill); border: 1px solid var(--ink); white-space: nowrap; }
.nav-right .signin:hover { background: var(--ink); color: var(--bg); }

.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 22px; letter-spacing: -0.025em;
  color: var(--ink);
}
.logo-mark { width: 28px; height: 28px; display: inline-block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  white-space: nowrap;
  padding: 11px 20px;
  font-size: 14px; font-weight: 700;
  border-radius: var(--radius-pill);
  background: var(--accent); color: var(--accent-ink);
  border: 2px solid var(--accent);
  transition: background .15s, border-color .15s, transform .12s, box-shadow .15s;
}
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn .arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* Get a demo button with "Free trial" sub-label */
.btn-demo {
  flex-direction: column;
  gap: 0;
  padding: 7px 20px 9px;
  line-height: 1.1;
}
.btn-demo .btn-demo-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.72;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 56px 0 40px;
  position: relative;
  background: var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent-deep);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 20px;
}
.hero-eyebrow::before { content: "✦"; color: var(--accent); font-size: 11px; }
.hero-headline {
  font-family: var(--font-display);
  font-size: var(--hero-h);
  font-weight: var(--headline-w);
  line-height: 0.96;
  letter-spacing: -0.038em;
  color: var(--ink);
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero-headline em {
  font-style: normal;
  color: var(--accent);
  background-image: linear-gradient(180deg, transparent 60%, var(--accent-soft) 60%);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 100%;
  padding: 0 0.1em;
}
.hero-deck {
  font-size: calc(17px * var(--scale)); line-height: 1.5;
  color: var(--ink-2); max-width: 56ch; margin: 0 0 28px;
}
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-features {
  margin-top: 22px;
  display: flex; gap: 28px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-2);
}
.hero-features span { display: inline-flex; align-items: center; gap: 6px; }
.hero-features span::before {
  content: "✓"; color: var(--accent); font-weight: 800;
}

/* Hero scan form — URL audit CTA */
.hero-scan {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
  max-width: 560px;
  margin: 0 0 14px;
}
.hero-scan-input {
  display: flex; align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 0 14px;
  height: 60px;
  transition: box-shadow .15s, border-color .15s;
}
.hero-scan-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 18%, transparent);
}
.hero-scan-prefix {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-3);
  padding-right: 8px;
  margin-right: 8px;
  border-right: 1px solid var(--rule);
  user-select: none;
}
.hero-scan-input input {
  flex: 1; min-width: 0;
  border: 0; background: transparent;
  font: inherit; font-size: 17px; color: var(--ink);
  font-weight: 500;
  outline: 0;
  padding: 0;
}
.hero-scan-input input::placeholder { color: var(--ink-3); font-weight: 400; }
.hero-scan button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--accent); color: var(--accent-ink);
  border: 0;
  border-radius: 14px;
  padding: 0 26px;
  height: 60px;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .15s, transform .15s;
}
.hero-scan button:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}
.hero-scan button > * { position: relative; z-index: 2; }
.hero-scan button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    transparent 30%,
    color-mix(in oklab, white 55%, transparent) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  animation: cta-shimmer 2.6s ease-in-out infinite;
  pointer-events: none;
}
.hero-scan button::after {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent);
  animation: cta-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
.hero-scan button .arrow {
  display: inline-block;
  animation: cta-arrow 1.6s ease-in-out infinite;
}
@keyframes cta-shimmer {
  0%   { transform: translateX(-120%); }
  55%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}
@keyframes cta-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 55%, transparent); }
  70%  { box-shadow: 0 0 0 14px color-mix(in oklab, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 0%, transparent); }
}
@keyframes cta-arrow {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(4px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scan button::before,
  .hero-scan button::after,
  .hero-scan button .arrow { animation: none; }
}
.hero-scan button .arrow { font-size: 18px; }
.hero-scan-meta {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  font-size: 13px; color: var(--ink-2);
}
.hero-scan-meta-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 999px;
}
.hero-scan-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent);
  animation: hero-scan-pulse 2.2s ease-out infinite;
}
@keyframes hero-scan-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 55%, transparent); }
  70%  { box-shadow: 0 0 0 8px color-mix(in oklab, var(--accent) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 0%, transparent); }
}
.hero-scan-checks {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  max-width: 560px;
}
.hero-scan-checks-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.hero-scan-checks ul {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.hero-scan-checks li {
  font-size: 14px;
  color: var(--ink);
  display: flex; align-items: center; gap: 10px;
  line-height: 1.35;
}
.hero-scan-checks li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 2px;
  transform: rotate(45deg);
}
@media (max-width: 620px) {
  .hero-scan { grid-template-columns: 1fr; }
  .hero-scan-checks ul { grid-template-columns: 1fr; }
}

/* Hero product visual */
.hero-vis {
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 22px;
  position: relative;
  box-shadow: 0 24px 60px -28px rgba(0,0,0,0.18);
}
.hero-vis-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}
.hero-vis-header .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--rule);
}
.hero-vis-header .dot.r { background: #ff5b5b; }
.hero-vis-header .dot.y { background: #ffd60a; }
.hero-vis-header .dot.g { background: #2dd06f; }
.hero-vis-header .title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ============================================================
   TRUST BADGES
   ============================================================ */
.trust {
  background: var(--bg-2);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 36px 0 32px;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-align: center;
  margin: 0 0 22px;
}
.trust-row {
  display: flex; align-items: center; justify-content: center;
  gap: 36px; flex-wrap: wrap;
}
.trust-row .badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  white-space: nowrap;
  transition: border-color .15s, transform .15s;
}
.trust-row .badge:hover { border-color: var(--accent); transform: translateY(-1px); }
.trust-row .badge .star {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: -0.05em;
}
.trust-row .badge .num {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
}

/* ============================================================
   LOGO MARQUEE
   ============================================================ */
.logo-bar {
  padding: 56px 0;
}
.logo-bar-label {
  font-size: 14px; color: var(--ink-3);
  text-align: center; margin-bottom: 28px;
}
.logo-bar-label strong { color: var(--ink); font-weight: 700; }
.logos-row { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos-row.logos-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: auto;
}
.logos-row.logos-scroll::-webkit-scrollbar { display: none; }
.logos-row.logos-scroll .logos-track { animation: none; }
.logos-frame {
  position: relative;
}
.logos-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink);
  display: grid; place-items: center;
  font-size: 24px;
  line-height: 1;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,0.18);
  transition: transform .18s cubic-bezier(0.22, 1, 0.36, 1), background .15s, color .15s, border-color .15s;
  padding: 0 0 3px;
}
.logos-arrow:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-50%) scale(1.06);
}
.logos-arrow:active { transform: translateY(-50%) scale(0.96); }
.logos-arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.logos-arrow-l { left: 14px; }
.logos-arrow-r { right: 14px; }
@media (max-width: 720px) {
  .logos-arrow { width: 38px; height: 38px; font-size: 20px; }
  .logos-arrow-l { left: 8px; }
  .logos-arrow-r { right: 8px; }
}
.logos-track {
  display: flex; gap: 64px;
  animation: marquee 70s linear infinite;
  flex-shrink: 0; padding-right: 64px;
}
.logos-row:hover .logos-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-chip {
  font-size: 19px; font-weight: 700; letter-spacing: -0.015em;
  color: var(--ink-3); flex-shrink: 0; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 9px;
  transition: color .15s;
}
.logo-chip:hover { color: var(--ink); }
.logo-chip .glyph {
  width: 26px; height: 26px; display: inline-grid; place-items: center;
  background: var(--ink); color: var(--bg); border-radius: 6px;
  font-size: 13px; font-weight: 800;
}

/* Marquee viewport for Data Integrations */
.logos-viewport {
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.logos-viewport .logos-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: none;
  will-change: transform;
  padding: 0 32px;
}

.logos-pause {
  position: absolute;
  top: 50%;
  right: 70px;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.logos-pause:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  transform: translateY(-50%) scale(1.06);
}
.logos-pause.is-paused {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.logos-pause:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
@media (max-width: 720px) {
  .logos-pause { right: 58px; width: 32px; height: 32px; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: var(--section-pad) 0; }
.section-head {
  text-align: center;
  max-width: 880px;
  margin: 0 auto 64px;
}
.section-tag {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--accent-deep);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--section-h);
  font-weight: var(--headline-w);
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 0 22px;
  color: var(--ink);
  text-wrap: balance;
}
.section-head h2 em {
  font-style: normal;
  color: var(--accent);
  background-image: linear-gradient(180deg, transparent 62%, var(--accent-soft) 62%);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 100%;
  padding: 0 0.08em;
}
.section-head p {
  font-size: var(--deck-s); line-height: 1.5; color: var(--ink-2);
  margin: 0 auto; max-width: 64ch;
}

/* Narrow container variant */
.container-narrow { max-width: 1040px; }

/* Section head row (heading + side link) */
.section-head-row {
  text-align: left;
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.section-head-row h2 { margin-bottom: 0; }
.cta-inline {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 700;
  color: var(--ink);
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: gap .15s;
}
.cta-inline:hover { gap: 8px; }

/* ============================================================
   FEATURE ROWS (alternating)
   ============================================================ */
.section-features .section-head { margin-bottom: 48px; }

.feature-row {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
  padding: 40px 48px;
  background: var(--card-yellow);
  border-radius: 24px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.feature-row[data-color="sky"]      { background: var(--card-sky); }
.feature-row[data-color="mint"]     { background: var(--card-mint); }
.feature-row[data-color="blush"]    { background: var(--card-blush); }
.feature-row[data-color="lavender"] { background: var(--card-lavender); }
.feature-row[data-color="citrus"]   { background: var(--card-citrus); }
.feature-row.flipped { grid-template-columns: 1.1fr 1fr; }
.feature-row.flipped .feature-text  { grid-column: 2; grid-row: 1; }
.feature-row.flipped .feature-art   { grid-column: 1; grid-row: 1; }

.feature-text .pill {
  display: inline-block;
  background: var(--ink); color: var(--bg);
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 16px;
  white-space: nowrap;
}
.feature-text h3 {
  font-family: var(--font-display);
  font-size: var(--feature-h);
  font-weight: var(--headline-w);
  letter-spacing: -0.028em;
  line-height: 1.04;
  margin: 0 0 16px;
  color: var(--ink);
}
.feature-text h3 em {
  font-style: normal;
  background: var(--ink);
  color: var(--bg);
  padding: 0 0.12em 0.04em;
  border-radius: 4px;
  display: inline-block;
  transform: rotate(-0.5deg);
}
.feature-text p {
  font-size: 17px; line-height: 1.5; color: var(--ink-2);
  margin: 0 0 18px; max-width: 50ch;
}
.feature-text ul {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: flex; flex-direction: column; gap: 8px;
}
.feature-text ul li {
  font-size: 15px;
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--ink-2);
}
.feature-text ul li::before {
  content: "→";
  color: var(--ink);
  font-weight: 700;
  flex: 0 0 14px;
  margin-top: 2px;
}
.feature-text .cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: var(--bg);
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 700;
  white-space: nowrap;
  transition: gap .15s, background .15s;
}
.feature-text .cta:hover { gap: 10px; background: var(--accent); color: var(--accent-ink); }

/* Feature art frame */
.feature-art {
  background: var(--bg);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 18px 40px -22px rgba(0,0,0,0.2);
}
.feature-art-header {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px; margin-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em;
}
.feature-art-header .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); }

/* ============================================================
   Widget styles (shared)
   ============================================================ */
.widget-alerts { display: flex; flex-direction: column; gap: 8px; }
.alert-item {
  display: grid; grid-template-columns: 8px 1fr auto;
  align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-radius: 10px; font-size: 13px;
}
.alert-item.fresh { background: var(--accent-soft); border-color: color-mix(in oklab, var(--accent) 40%, transparent); }
.alert-item .ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.alert-item.warn .ai-dot   { background: var(--warn); }
.alert-item.danger .ai-dot { background: var(--danger); }
.alert-item.pos .ai-dot    { background: var(--positive); }
.alert-item .ai-body { display: flex; flex-direction: column; gap: 1px; }
.alert-item .ai-body strong { font-weight: 600; color: var(--ink); }
.alert-item .ai-body span { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.alert-item .ai-val { font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--ink); }
.alert-item .ai-val.dn { color: var(--danger); }
.alert-item .ai-val.up { color: var(--positive); }

.widget-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.widget-table th {
  text-align: left; font-weight: 600; color: var(--ink-3);
  padding: 8px; border-bottom: 1px solid var(--rule); font-size: 11px;
}
.widget-table td {
  padding: 10px 8px; border-bottom: 1px solid var(--rule-soft);
  color: var(--ink); font-family: var(--font-mono); font-variant-numeric: tabular-nums;
}
.widget-table td:first-child { font-family: var(--font-sans); color: var(--ink-2); }
.widget-table td.up { color: var(--positive); font-weight: 700; }
.widget-table td.dn { color: var(--danger); font-weight: 700; }
.widget-table td.right { text-align: right; }
.widget-table tr:last-child td { border-bottom: 0; }
.widget-table .bar-cell { width: 24%; padding-right: 0; }
.widget-table .bar { height: 6px; background: var(--accent); border-radius: 2px; }

.widget-bids { display: grid; gap: 5px; font-family: var(--font-mono); font-size: 12px; }
.bid-row { display: grid; grid-template-columns: 90px 1fr 56px; align-items: center; gap: 12px; padding: 7px 0; }
.bid-name { color: var(--ink); font-family: var(--font-sans); font-weight: 600; }
.bid-bar-wrap { height: 9px; background: var(--bg-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--rule); }
.bid-bar { height: 100%; background: var(--accent); transition: width 1.2s cubic-bezier(.4,0,.2,1); }
.bid-row.runner-up .bid-bar { background: var(--ink-3); }
.bid-value { text-align: right; color: var(--ink); }

.widget-shading { display: grid; grid-template-rows: auto 1fr auto; gap: 14px; }
.shading-stat { display: flex; justify-content: space-between; align-items: baseline; }
.shading-stat .big {
  font-family: var(--font-display); font-size: 48px; font-weight: 800;
  letter-spacing: -0.04em; color: var(--ink); line-height: 1;
}
.shading-stat .lab { font-size: 11px; color: var(--ink-3); text-align: right; max-width: 16ch; line-height: 1.4; }
.shading-bar { position: relative; height: 12px; background: var(--bg-3); border-radius: 999px; overflow: hidden; }
.shading-bar .recovered { position: absolute; top: 0; left: 0; bottom: 0; background: var(--accent); width: 64%; }
.shading-legend { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.shading-legend strong { color: var(--ink); font-weight: 600; }

.widget-pricerules { display: flex; flex-direction: column; gap: 7px; }
.rule-card {
  display: grid; grid-template-columns: 70px 1fr auto;
  gap: 10px; padding: 10px 13px;
  border: 1px solid var(--rule); background: var(--bg-2);
  border-radius: 9px; font-size: 12px; align-items: center;
}
.rule-card .floor { font-family: var(--font-mono); color: var(--ink); font-weight: 700; }
.rule-card .target { color: var(--ink-2); }
.rule-card .lift { font-family: var(--font-mono); color: var(--positive); font-weight: 700; }
.rule-card.recommended { border-color: var(--accent); background: var(--accent-soft); }
.rule-card.recommended::before { content: "★"; color: var(--accent); font-weight: 700; }

/* Hero yield card layout (re-using yield-card from widget) */
.yield-card-header h3 .live::before {
  content: ""; display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--positive);
  margin-right: 5px;
}
.yield-card-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--rule); margin-bottom: 14px; }
.yield-card-header h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; }
.yield-card-header h3 .live { font-family: var(--font-mono); font-size: 10px; color: var(--positive); text-transform: uppercase; letter-spacing: 0.06em; }
.yield-card-header .date { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.yield-big { display: flex; align-items: baseline; gap: 12px; margin: 4px 0; }
.yield-big .num { font-family: var(--font-display); font-size: 44px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.05; }
.yield-big .delta { font-family: var(--font-mono); font-size: 12px; color: var(--positive); background: color-mix(in oklab, var(--positive) 14%, transparent); padding: 3px 8px; border-radius: 999px; font-weight: 700; }
.yield-row { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.yield-spark { margin: 14px 0 16px; }
.yield-spark svg { width: 100%; height: 84px; display: block; }
.yield-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--rule); padding-top: 16px; }
.yield-cell { display: flex; flex-direction: column; gap: 4px; padding: 0 12px; border-right: 1px solid var(--rule-soft); }
.yield-cell:first-child { padding-left: 0; }
.yield-cell:last-child { border-right: 0; padding-right: 0; }
.yield-cell .label { font-size: 11px; color: var(--ink-3); }
.yield-cell .val { font-family: var(--font-mono); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.yield-cell .val.up { color: var(--positive); }
.yield-alert { margin-top: 16px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--rule); border-radius: 10px; display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.yield-alert .alert-icon { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-mono); font-weight: 800; font-size: 12px; }
.yield-alert .alert-body { color: var(--ink-2); line-height: 1.4; }
.yield-alert .alert-body strong { color: var(--ink); font-weight: 700; }
.yield-alert .alert-body .alert-time { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--ink-3); margin-top: 2px; }
.yield-card { background: var(--bg); border: 1px solid var(--rule); border-radius: 14px; padding: 22px; }

/* ============================================================
   STATS BAND
   ============================================================ */
.stats-band {
  background: var(--ink);
  color: var(--bg);
  border-radius: 28px;
  padding: 56px 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 0 32px;
  border-right: 1px solid color-mix(in oklab, var(--bg) 12%, transparent);
}
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; padding-right: 0; }
.stat .val {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--bg);
  line-height: 1;
}
.stat .val .accent-flash {
  color: var(--accent);
}
.stat .lab {
  font-size: 14px;
  color: color-mix(in oklab, var(--bg) 64%, transparent);
  margin-top: 10px;
  line-height: 1.4;
}

/* ============================================================
   CATEGORY GRID (bento with colored corners)
   ============================================================ */
.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cat {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 280px;
  transition: transform .15s, box-shadow .15s;
}
.cat:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -22px rgba(0,0,0,0.15); }
.cat::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: var(--card-yellow);
  border-radius: 50%;
  z-index: 0;
}
.cat[data-color="sky"]::before      { background: var(--card-sky); }
.cat[data-color="mint"]::before     { background: var(--card-mint); }
.cat[data-color="blush"]::before    { background: var(--card-blush); }
.cat[data-color="lavender"]::before { background: var(--card-lavender); }
.cat[data-color="citrus"]::before   { background: var(--card-citrus); }
.cat-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  border-radius: 12px;
  position: relative; z-index: 1;
}
.cat h3 {
  font-family: var(--font-display);
  font-size: 24px; font-weight: 800; letter-spacing: -0.022em;
  margin: 0; color: var(--ink); position: relative; z-index: 1;
}
.cat p {
  margin: 0; font-size: 14px; line-height: 1.5;
  color: var(--ink-2); flex: 1; position: relative; z-index: 1;
}
.cat .cat-link {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 700;
  color: var(--ink); position: relative; z-index: 1;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
  transition: gap .15s;
}
.cat .cat-link:hover { gap: 8px; }

/* ============================================================
   TEAM
   ============================================================ */
.team {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.team-card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  position: relative;
}
.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 40px -22px rgba(0,0,0,0.18);
  border-color: var(--ink-3);
}
.team-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  background: var(--card-yellow);
  overflow: hidden;
}
.team-card[data-color="sky"]      .team-photo { background: var(--card-sky); }
.team-card[data-color="mint"]     .team-photo { background: var(--card-mint); }
.team-card[data-color="blush"]    .team-photo { background: var(--card-blush); }
.team-card[data-color="lavender"] .team-photo { background: var(--card-lavender); }
.team-card[data-color="citrus"]   .team-photo { background: var(--card-citrus); }

/* colour overlay handled by React TeamPhoto component — no CSS ::after needed */
.team-photo image-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.team-body {
  padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.team-body h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800; letter-spacing: -0.022em;
  margin: 0; color: var(--ink); line-height: 1.15;
}
.team-role {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.team-body p {
  margin: 0;
  font-size: 14px; line-height: 1.55;
  color: var(--ink-2);
  flex: 1;
  text-wrap: pretty;
}
.team-link {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700;
  color: var(--ink);
  padding: 8px 14px 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
  margin-top: 4px;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.team-link svg { display: block; }
.team-link:hover {
  background: #0a66c2;
  color: #fff;
  border-color: #0a66c2;
  transform: translateY(-1px);
}
/* ── Team section: single viewport height on desktop ── */
.section-team {
  padding: 48px 0;
}
.section-team .container { width: 100%; }
.section-team .section-head { margin-bottom: 40px; }
.section-team .team-body { padding: 16px 18px 18px; gap: 7px; }
.section-team .team-body h3 { font-size: 19px; }
.section-team .team-body p  { font-size: 13px; }
.section-team .team-link    { padding: 6px 12px; font-size: 12px; }

@media (max-width: 1080px) {
  .team { grid-template-columns: repeat(2, 1fr); }
  .section-team { min-height: unset; }
}
@media (max-width: 560px) {
  .team { grid-template-columns: 1fr; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.pull {
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 28px;
  padding: 56px 48px;
  margin-bottom: 48px;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.pull-check {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--accent-ink);
  color: var(--accent);
  margin-bottom: 22px;
}
.pull-check svg { display: block; }
.pull blockquote {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 700; letter-spacing: -0.025em;
  line-height: 1.1; text-wrap: balance;
  max-width: 22ch;
}
.pull blockquote::before { content: none; }
.pull-signature {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.01em;
  opacity: 0.8;
  max-width: 44ch;
  line-height: 1.4;
  border-top: 1px solid color-mix(in oklab, var(--accent-ink) 22%, transparent);
  padding-top: 22px;
}
.pull .attrib {
  margin-top: 28px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  font-size: 14px; font-weight: 600;
}
.pull .attrib .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-ink); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
}
.pull .attrib .who { display: flex; flex-direction: column; gap: 1px; text-align: left; }
.pull .attrib .who .role { font-weight: 500; opacity: 0.75; font-size: 13px; }

.tg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .15s, border-color .15s;
}
.tcard:hover { transform: translateY(-3px); border-color: var(--ink); }
.tcard .stars { display: flex; gap: 2px; color: var(--accent); }
.tcard blockquote { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink); flex: 1; text-wrap: pretty; }
.tcard footer { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--rule); margin-top: auto; }
.tcard .avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--bg-3); color: var(--ink-2); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.tcard .who { display: flex; flex-direction: column; gap: 1px; }
.tcard .who .name { font-weight: 700; font-size: 14px; color: var(--ink); }
.tcard .who .role { font-size: 12px; color: var(--ink-3); }
.tcard .pub { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--ink-3); }

/* ============================================================
   FINAL MEGA CTA
   ============================================================ */
/* Gently emphasise the contact form: warm off-white card with a faint
   accent-tinted dot pattern and a soft border. */
.contact-form-card {
  background-color: var(--bg-2);
  background-image: radial-gradient(circle at 1px 1px,
    color-mix(in srgb, var(--accent) 9%, transparent) 1px, transparent 0);
  background-size: 20px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  padding: 40px;
}
@media (max-width: 720px) {
  .contact-form-card { padding: 28px; }
}
/* Contact layout: two columns on desktop, stacked (form first) on mobile. */
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 5rem;
  align-items: start;
}
@media (max-width: 720px) {
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.mega-cta {
  background: var(--card-citrus);
  border-radius: 32px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) {
  .mega-cta { padding: 36px 24px; }
}
.mega-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 46px);
  font-weight: var(--headline-w);
  letter-spacing: -0.035em;
  line-height: 1.02;
  margin: 0 auto 18px;
  color: var(--ink);
  max-width: 18ch;
  text-wrap: balance;
}
.mega-cta h2 em {
  font-style: normal;
  background: var(--ink); color: var(--card-citrus);
  padding: 0 0.14em;
  display: inline-block;
  transform: rotate(-1deg);
}
.mega-cta p {
  font-size: 19px; color: var(--ink-2); margin: 0 auto 32px;
  max-width: 50ch;
}
.mega-cta .cta-form {
  display: flex; gap: 8px; max-width: 480px; margin: 0 auto;
  background: var(--bg);
  border-radius: var(--radius-pill);
  padding: 7px 7px 7px 22px;
  align-items: center;
}
.mega-cta .cta-form input {
  flex: 1; border: 0; background: transparent;
  font: inherit; font-size: 15px; color: var(--ink);
  outline: 0;
}
.mega-cta .cta-form input::placeholder { color: var(--ink-3); }
.mega-cta .cta-form button {
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius-pill);
  padding: 12px 22px; font-size: 14px; font-weight: 700;
  white-space: nowrap;
  border: 0;
  transition: background .15s;
}
.mega-cta .cta-form button:hover { background: var(--accent-deep); }
.mega-cta .perks {
  margin-top: 18px;
  display: flex; justify-content: center; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-2);
}
.mega-cta .perks span::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 4px; }
.mega-cta-done { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0 auto; max-width: 480px; }
.mega-cta-err { font-size: 14px; color: #b91c1c; margin: 12px auto 0; }

/* Decorative blobs in mega CTA */
.mega-cta::before, .mega-cta::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.mega-cta::before {
  width: 200px; height: 200px;
  background: var(--accent);
  opacity: 0.35;
  top: -60px; left: -60px;
}
.mega-cta::after {
  width: 280px; height: 280px;
  background: var(--card-mint);
  bottom: -100px; right: -80px;
}
.mega-cta > * { position: relative; z-index: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { padding: 72px 0 32px; background: var(--ink); color: var(--bg); border-top: 1px solid var(--rule); }
.foot-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px; padding-bottom: 48px;
  border-bottom: 1px solid color-mix(in oklab, var(--bg) 14%, transparent);
}
.foot-brand .logo { font-size: 22px; color: var(--bg); }
.foot-brand .logo-mark svg rect { fill: var(--accent); }
.foot-brand .logo-mark svg path,
.foot-brand .logo-mark svg circle { stroke: var(--ink); fill: var(--ink); }
.foot-brand p {
  margin-top: 16px; font-size: 14px;
  color: color-mix(in oklab, var(--bg) 64%, transparent);
  max-width: 36ch; line-height: 1.55;
}
.foot-col h4 {
  font-size: 12px; color: var(--accent);
  margin: 0 0 14px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col li a {
  font-size: 14px;
  color: color-mix(in oklab, var(--bg) 76%, transparent);
  transition: color .15s;
}
.foot-col li a:hover { color: var(--bg); }
.foot-bot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px;
  font-size: 12px; color: color-mix(in oklab, var(--bg) 56%, transparent);
  gap: 24px; flex-wrap: wrap;
}
.foot-bot .colophon { display: flex; gap: 18px; align-items: center; }

/* ============================================================
   AUDIT BAND (under hero) — compact, first-fold
   ============================================================ */
.audit-band {
  padding: 0 0 40px;
  background: var(--bg);
}
.audit-card {
  background: var(--ink);
  color: var(--bg);
  border-radius: 24px;
  padding: 28px 40px 22px;
  position: relative;
  overflow: hidden;
}
.audit-card::before {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 65%);
  opacity: 0.28;
  right: -160px; top: -180px;
  pointer-events: none;
}
.audit-main {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.audit-copy { min-width: 0; }
.audit-eyebrow {
  display: inline-block;
  background: color-mix(in oklab, var(--accent) 22%, transparent);
  color: color-mix(in oklab, var(--accent) 85%, white);
  padding: 6px 14px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.audit-headline {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: var(--headline-w);
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 12px;
  color: var(--bg);
  text-wrap: balance;
}
.audit-headline em {
  font-style: normal;
  color: color-mix(in oklab, var(--accent) 75%, white);
  background-image: linear-gradient(180deg, transparent 62%, color-mix(in oklab, var(--accent) 55%, transparent) 62%);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 100%;
  padding: 0 0.06em;
}
.audit-deck {
  margin: 0;
  font-size: 14px;
  color: color-mix(in oklab, var(--bg) 62%, transparent);
  max-width: 52ch;
  line-height: 1.5;
}
.audit-form {
  display: flex; flex-direction: column; gap: 12px;
  min-width: 0;
}
.audit-input-wrap {
  display: flex; align-items: center;
  background: var(--bg);
  border-radius: 14px;
  padding: 0 18px;
  height: 56px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.audit-prefix {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--ink-3);
  padding-right: 10px;
  margin-right: 4px;
}
.audit-input-wrap input {
  flex: 1;
  border: 0; background: transparent;
  font: inherit; font-size: 15px;
  color: var(--ink);
  outline: 0;
}
.audit-input-wrap input::placeholder { color: var(--ink-3); }
.audit-form button {
  background: var(--accent); color: var(--accent-ink);
  border-radius: 14px;
  padding: 0 24px;
  height: 56px;
  font: inherit;
  font-size: 16px; font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 12px 30px -10px color-mix(in oklab, var(--accent) 70%, transparent);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.audit-form button:hover { background: var(--accent-deep); transform: translateY(-1px); }
.audit-form button .arrow { font-size: 18px; }
.audit-perks {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  font-size: 13px;
  color: color-mix(in oklab, var(--bg) 72%, transparent);
  padding-top: 16px;
  margin-top: 22px;
  border-top: 1px solid color-mix(in oklab, var(--bg) 12%, transparent);
}
.audit-perks span { display: inline-flex; align-items: center; gap: 10px; }
.audit-perks span::before {
  content: "✓";
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in oklab, var(--accent) 22%, transparent);
  color: color-mix(in oklab, var(--accent) 85%, white);
  border-radius: 50%;
  font-size: 12px; font-weight: 800;
  flex-shrink: 0;
}



/* ============================================================
   CASE STUDIES
   ============================================================ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.case-card {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--ink);
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.case-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 24px 40px -22px rgba(0,0,0,0.18); }
.case-art {
  background: var(--card-yellow);
  padding: 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 220px;
  position: relative;
}
.case-card[data-color="sky"]      .case-art { background: var(--card-sky); }
.case-card[data-color="mint"]     .case-art { background: var(--card-mint); }
.case-card[data-color="blush"]    .case-art { background: var(--card-blush); }
.case-card[data-color="lavender"] .case-art { background: var(--card-lavender); }
.case-art-pub {
  display: flex; align-items: center; gap: 10px;
}
.case-logo {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  font-weight: 800; font-size: 14px;
}
.case-pub-name {
  font-size: 13px; font-weight: 700; color: var(--ink);
}
.case-metric {
  display: flex; align-items: baseline; gap: 12px;
}
.case-metric-val {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink);
}
.case-metric-lab {
  font-size: 12px; font-weight: 600;
  color: var(--ink-2);
  max-width: 12ch;
  line-height: 1.3;
}
.case-body {
  padding: 24px 28px 28px;
  display: flex; flex-direction: column; gap: 14px;
  flex: 1;
}
.case-tag {
  font-family: var(--font-mono);
  font-size: 11px; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.case-body h3 {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.case-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
  color: var(--ink-3);
}
.case-arrow {
  font-weight: 700; color: var(--ink);
  transition: gap .15s;
}
.case-card:hover .case-arrow { color: var(--accent); }

/* ============================================================
   BLOG
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.blog-card {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--ink);
  transition: transform .15s, border-color .15s;
}
.blog-card:hover { transform: translateY(-3px); border-color: var(--ink); }
.blog-thumb {
  position: relative;
  background: var(--card-yellow);
  height: 140px;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: 16px;
  overflow: hidden;
}
.blog-card[data-color="yellow"]   .blog-thumb { background: var(--card-yellow); }
.blog-card[data-color="sky"]      .blog-thumb { background: var(--card-sky); }
.blog-card[data-color="mint"]     .blog-thumb { background: var(--card-mint); }
.blog-card[data-color="blush"]    .blog-thumb { background: var(--card-blush); }
.blog-card[data-color="lavender"] .blog-thumb { background: var(--card-lavender); }
.blog-card[data-color="citrus"]   .blog-thumb { background: var(--card-citrus); }
.blog-cat {
  display: inline-block;
  background: var(--ink); color: var(--bg);
  font-size: 11px; font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative; z-index: 1;
}
.blog-thumb-mark {
  position: absolute;
  bottom: -28px; right: -8px;
  font-family: var(--font-display);
  font-size: 160px;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  opacity: 0.08;
  letter-spacing: -0.05em;
  pointer-events: none;
}
.blog-body {
  padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.blog-body h3 {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 700;
  letter-spacing: -0.018em;
  line-height: 1.25;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}
.blog-body p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-2);
  text-wrap: pretty;
  /* max 4 lines then ellipsis */
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-read-more {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 13px; font-weight: 700;
  color: var(--accent);
  transition: gap 0.15s, color 0.15s;
}
.blog-card:hover .blog-read-more {
  gap: 9px;
  color: var(--accent-deep);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature-row, .feature-row.flipped { grid-template-columns: 1fr; gap: 36px; padding: 32px; }
  .feature-row.flipped .feature-text { grid-column: auto; grid-row: auto; }
  .feature-row.flipped .feature-art { grid-column: auto; grid-row: auto; }
  .stats-band { grid-template-columns: 1fr 1fr; gap: 28px 0; padding: 36px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { padding-bottom: 28px; border-bottom: 1px solid color-mix(in oklab, var(--bg) 12%, transparent); }
  .stat { padding: 0 24px; }
  .cats { grid-template-columns: 1fr 1fr; }
  .tg { grid-template-columns: 1fr 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .audit-card { padding: 28px 28px 20px; }
  .audit-main { grid-template-columns: 1fr; gap: 24px; }
  .audit-perks { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 640px) {
  :root { --gutter: 18px; }
  .nav-links { display: none; }
  .stats-band { grid-template-columns: 1fr; padding: 28px 18px; }
  .stat { border-right: 0; padding: 14px 0; border-bottom: 1px solid color-mix(in oklab, var(--bg) 12%, transparent); }
  .stat:last-child { border-bottom: 0; }
  .cats { grid-template-columns: 1fr; }
  .tg { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr; gap: 28px; }
  .mega-cta { padding: 56px 24px; }
  .audit-card { padding: 24px 20px 18px; border-radius: 20px; }
  .audit-perks { grid-template-columns: 1fr; gap: 10px; }
}

/* ============================================================
   MOTION — reveal on scroll, hero entry stagger, em swipe
   ============================================================ */

/* base reveal — used on sections, cards, etc. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Em swipe — when the headline is in view, the accent underline draws in left→right */
.reveal-em .hero-headline em,
.section-head.reveal-em h2 em,
.section-head h2.reveal-em em,
.audit-headline.reveal-em em,
.mega-cta h2.reveal-em em {
  background-size: 0% 100%;
  transition: background-size 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.reveal-em.is-in .hero-headline em,
.section-head.reveal-em.is-in h2 em,
.section-head h2.reveal-em.is-in em,
.audit-headline.reveal-em.is-in em,
.mega-cta h2.reveal-em.is-in em {
  background-size: 100% 100%;
}

/* ---------- HERO entry stagger (fires on first paint) ---------- */
.hero-anim .hero-eyebrow,
.hero-anim .hero-headline,
.hero-anim .hero-deck,
.hero-anim .hero-cta-row,
.hero-anim .hero-features,
.hero-anim .hero-scan,
.hero-anim .hero-scan-meta,
.hero-anim .hero-scan-checks,
.hero-anim .hero-vis {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.hero-anim .hero-eyebrow  { transition-delay: 0.05s; }
.hero-anim .hero-headline { transition-delay: 0.15s; }
.hero-anim .hero-deck     { transition-delay: 0.32s; }
.hero-anim .hero-cta-row  { transition-delay: 0.46s; }
.hero-anim .hero-features { transition-delay: 0.60s; }
.hero-anim .hero-scan     { transition-delay: 0.46s; }
.hero-anim .hero-scan-meta   { transition-delay: 0.58s; }
.hero-anim .hero-scan-checks { transition-delay: 0.70s; }
.hero-anim .hero-vis      { transition-delay: 0.40s; transform: translateY(36px) scale(0.985); }

.hero-anim.hero-anim-go .hero-eyebrow,
.hero-anim.hero-anim-go .hero-headline,
.hero-anim.hero-anim-go .hero-deck,
.hero-anim.hero-anim-go .hero-cta-row,
.hero-anim.hero-anim-go .hero-features,
.hero-anim.hero-anim-go .hero-scan,
.hero-anim.hero-anim-go .hero-scan-meta,
.hero-anim.hero-anim-go .hero-scan-checks,
.hero-anim.hero-anim-go .hero-vis {
  opacity: 1;
  transform: none;
}

/* Hero headline em — animate underline draw on initial load */
.hero-anim .hero-headline em {
  background-size: 0% 100%;
  transition: background-size 1.0s cubic-bezier(0.22, 1, 0.36, 1) 0.65s;
}
.hero-anim.hero-anim-go .hero-headline em {
  background-size: 100% 100%;
}

/* Subtle lift on case-study and blog cards (hover) */
.case-card, .blog-card {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.case-card:hover, .blog-card:hover {
  transform: translateY(-4px);
}

/* Stat counter — subtle scale flicker when revealed */
.stat .val {
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Marquee logos: pause on focus-within (kbd users) — already paused on hover */
.logos-row:focus-within .logos-track { animation-play-state: paused; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero-anim .hero-eyebrow,
  .hero-anim .hero-headline,
  .hero-anim .hero-deck,
  .hero-anim .hero-cta-row,
  .hero-anim .hero-features,
  .hero-anim .hero-scan,
  .hero-anim .hero-scan-meta,
  .hero-anim .hero-scan-checks,
  .hero-anim .hero-vis,
  .case-card, .blog-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reveal-em .hero-headline em,
  .section-head h2.reveal-em em,
  .audit-headline.reveal-em em,
  .mega-cta h2.reveal-em em,
  .hero-anim .hero-headline em {
    background-size: 100% 100% !important;
    transition: none !important;
  }
}

/* ============================================================
   Optimon AI section
   ============================================================ */
.ai-shot {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--bg-2);
}
.ai-shot img { object-fit: cover; }
.ai-shot-ph {
  position: absolute; inset: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px; text-align: center;
  border: 1.5px dashed var(--rule);
  border-radius: 8px;
  background:
    linear-gradient(var(--rule-soft) 1px, transparent 1px) 0 0 / 100% 22px,
    linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px) 0 0 / 22px 100%;
}
.ai-shot-ph .ph-id {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent-deep);
  padding: 3px 10px; border-radius: 999px;
}
.ai-shot-ph strong {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  max-width: 30ch; line-height: 1.4; text-wrap: balance;
}
.ai-shot-ph .ph-crop { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }

.ai-checks {
  margin-top: 28px;
  display: flex; justify-content: center; gap: 28px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-2);
}
.ai-checks span { display: inline-flex; align-items: center; gap: 8px; }
.ai-checks span::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* ============================================================
   AD INSPECTOR SIMULATOR (/ad-inspector — HQ-59)
   Bold-system translation of the extension-page mockup: fake
   publisher page + extension sidebar, revealed on interaction.
   ============================================================ */
.sim-shell {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 18px;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.25);
  overflow: hidden;
}
.sim-chrome {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 18px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--rule);
}
.sim-dots { display: flex; gap: 6px; }
.sim-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--rule); }
.sim-address {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  max-width: 420px; margin: 0 auto;
  background: var(--bg); border: 1px solid var(--rule); border-radius: 10px;
  padding: 5px 14px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-3);
  white-space: nowrap; overflow: hidden;
}
.sim-lock { font-size: 10px; }
.sim-tag {
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-3);
  border: 1px dashed var(--rule); border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.sim-body {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  min-height: 480px;
}

/* Left: fake publisher page */
.sim-page {
  padding: 26px 28px;
  background: var(--bg-2);
  border-right: 1px solid var(--rule);
  display: flex; flex-direction: column;
}
.sim-page-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sim-pub-pill {
  background: var(--accent-soft); color: var(--accent-deep);
  font-family: var(--font-mono); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 9px; border-radius: 6px;
}
.sim-pub-meta { font-size: 12px; color: var(--ink-3); }
.sim-page-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.sim-skeleton { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.sim-skeleton span { display: block; height: 10px; border-radius: 5px; background: var(--bg-3); }

.sim-ad-wrap {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin: 18px 0; flex: 1; justify-content: center;
}
.sim-ad-hint {
  font-size: 13px; font-weight: 700; color: var(--accent);
  animation: sim-bob 1.6s ease-in-out infinite;
}
@keyframes sim-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.sim-ad {
  width: 150px; min-height: 260px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--card-lavender);
  border: 2px dashed var(--accent);
  border-radius: 14px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background .2s, border-color .2s;
  animation: sim-pulse 2s infinite;
}
@keyframes sim-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.25); }
  50%      { box-shadow: 0 0 0 8px rgba(124,58,237,0.06); }
}
.sim-ad:hover { background: var(--accent-soft); }
.sim-ad.connected {
  border-style: solid; animation: none;
  background: var(--accent-soft);
}
.sim-ad-source {
  background: var(--accent); color: var(--accent-ink);
  font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 2px 7px; border-radius: 4px;
}
.sim-ad strong { font-size: 14px; font-weight: 800; letter-spacing: 0.02em; }
.sim-ad-size { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.sim-ad-div { font-family: var(--font-mono); font-size: 9px; color: var(--ink-3); margin-top: 10px; }

/* Right: extension sidebar */
.sim-panel { display: flex; flex-direction: column; min-width: 0; }
.sim-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px;
  background: var(--bg-2); border-bottom: 1px solid var(--rule);
}
.sim-panel-title {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.sim-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-3);
}
.sim-status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rule); }
.sim-status.on { color: var(--accent); font-weight: 700; }
.sim-status.on .sim-status-dot { background: var(--accent); }

.sim-tabs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  background: var(--bg-2);
}
.sim-tab {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 4px;
  background: transparent; border: none; border-radius: 10px;
  font-family: var(--font-sans); font-size: 11px; font-weight: 700;
  color: var(--ink-3); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: background .15s, color .15s;
}
.sim-tab span { font-size: 14px; color: var(--accent); }
.sim-tab:hover { background: var(--bg); color: var(--ink); }
.sim-tab.active {
  background: var(--bg); color: var(--ink);
  border-bottom-color: var(--accent);
  box-shadow: 0 2px 8px -4px rgba(0,0,0,0.15);
}

.sim-content { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; min-width: 0; }

/* Idle state */
.sim-idle p { font-size: 13px; color: var(--ink-3); margin: 4px 0 14px; }
.sim-idle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sim-idle-grid button {
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  padding: 12px;
  background: var(--bg); border: 2px solid var(--rule); border-radius: 12px;
  cursor: pointer; font-family: var(--font-sans);
  transition: border-color .15s, background .15s;
}
.sim-idle-grid button:hover { border-color: var(--accent); background: var(--card-lavender); }
.sim-idle-grid strong { font-size: 13px; font-weight: 800; }
.sim-idle-grid strong span { color: var(--accent); margin-right: 2px; }
.sim-idle-grid button > span { font-size: 11px; color: var(--ink-3); line-height: 1.35; }

/* Key/value rows */
.sim-kv { display: flex; flex-direction: column; }
.sim-kv-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 6px 0; border-bottom: 1px solid var(--rule-soft);
  font-size: 12.5px;
}
.sim-kv-key { color: var(--ink-3); white-space: nowrap; }
.sim-kv-val { font-family: var(--font-mono); font-size: 11.5px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-kv-val.accent { color: var(--accent); }
.sim-kv-val.danger { color: var(--danger); }

/* Prebid stat tiles */
.sim-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.sim-stat {
  background: var(--bg-2); border: 1px solid var(--rule); border-radius: 10px;
  padding: 8px 6px; text-align: center;
}
.sim-stat-label {
  display: block; font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3);
}
.sim-stat-val { font-family: var(--font-mono); font-size: 13px; }
.sim-stat-val.accent { color: var(--accent); }
.sim-stat-val.positive { color: var(--positive); }
.sim-stat-val.warn { color: var(--warn); }

/* Diff table */
.sim-diff { font-size: 12px; }
.sim-diff-row {
  display: grid; grid-template-columns: 4fr 3fr 2fr 3fr; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid var(--rule-soft);
  align-items: center;
}
.sim-diff-row.head {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--ink-3);
  border-bottom: 1px solid var(--rule);
}
.sim-diff-row span:nth-child(2) { font-family: var(--font-mono); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-diff-row .muted { color: var(--ink-3); opacity: 0.5; }
.sim-diff-row .warn { color: var(--warn); font-weight: 700; text-align: right; }

/* Step footer */
.sim-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--rule);
}
.sim-foot > span { flex: 1; display: flex; }
.sim-foot > span:last-child { justify-content: flex-end; }
.sim-foot-step {
  justify-content: center !important;
  font-size: 11px; font-weight: 600; color: var(--ink-3); white-space: nowrap;
}
.sim-foot button {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: 12px; font-weight: 800;
  color: var(--ink-3); padding: 4px 0;
}
.sim-foot button.fwd { color: var(--accent); }
.sim-foot button:hover { color: var(--ink); }
.sim-foot button.fwd:hover { color: var(--accent-deep); }

@media (max-width: 900px) {
  .sim-body { grid-template-columns: 1fr; }
  .sim-page { border-right: none; border-bottom: 1px solid var(--rule); }
  .sim-ad { min-height: 200px; }
  .sim-tag { display: none; }
}
