/* ANTONMAW theme tokens + light/beige overrides
   Apply via <html data-theme="dark|light|beige"> (default: dark) */

:root,
[data-theme="dark"] {
  --bg: #07080c;
  --bg-2: #0c0f16;
  --card: #12161f;
  --line: rgba(255,255,255,0.08);
  --text: #f2f4f8;
  --muted: #9aa3b5;
  --accent: #6ee7ff;
  --accent-2: #8b9cff;
  --warm: #ffb86b;
  --ok: #34d399;
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
  --wa: #25d366;
  --nav-bg: rgba(7,8,12,0.55);
  --nav-bg-scrolled: rgba(7,8,12,0.82);
  --btn-primary-fg: #061018;
  --card-grad-top: #161c28;
  --card-grad-bot: #0e1219;
  --card-grad-sheen: linear-gradient(165deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.012) 40%, transparent 100%);
  --card-border: rgba(255,255,255,0.13);
  --card-inset: rgba(255,255,255,0.07);
  --pkg-featured-top: #1a2436;
  --pkg-featured-bot: #10151e;
  --pkg-featured-sheen: linear-gradient(165deg, rgba(110,231,255,0.12), transparent 45%);
  --section-alt: linear-gradient(180deg, rgba(6,8,14,0.98), rgba(12,16,26,0.96) 50%, rgba(6,8,14,0.98));
  --body-bg-grad: linear-gradient(180deg, #0b0d12 0%, #0e1118 45%, #0b0d12 100%);
  --mesh-1: rgba(110,231,255,0.14);
  --mesh-2: rgba(139,156,255,0.16);
  --mesh-3: rgba(167,139,250,0.07);
  --mesh-4: rgba(255,184,107,0.06);
  --mesh-body-1: rgba(110,231,255,0.16);
  --mesh-body-2: rgba(167,139,250,0.14);
  --mesh-body-3: rgba(56,189,248,0.10);
  --stage-grad: linear-gradient(165deg, #161b26, #0a0d13);
  --hero-visual-grad: linear-gradient(180deg, #12151c 0%, #0a0b0f 100%);
  --hero-visual-glow: rgba(110, 231, 255, 0.14);
  --flow-node-bg: #12161f;
  --flow-node-border: rgba(255,255,255,0.08);
  --flow-node-fg: #e8eef7;
  --flow-node-strong: #fff;
  --flow-accent-grad: linear-gradient(135deg,#15202c,#12161f);
  --web-ex-bg: #0a0d13;
  --web-ex-cap: rgba(18,22,31,0.95);
  --kinetic-fg: rgba(242,244,248,0.5);
  --kinetic-border: rgba(255,255,255,0.06);
  --kinetic-bg: linear-gradient(90deg, rgba(110,231,255,0.03), rgba(139,156,255,0.05), rgba(255,184,107,0.03));
  --ghost-hover-border: rgba(255,255,255,0.28);
  --ghost-hover-bg: rgba(255,255,255,0.03);
  --brand-img-bg: #0a0a0a;
  --li-card-bg: #0f1420;
  --band-bg: linear-gradient(180deg, rgba(12,15,22,0.92), rgba(10,12,18,0.95));
  --surface-soft: rgba(255,255,255,0.025);
  --surface-soft-border: rgba(255,255,255,0.16);
  --hover-glow: rgba(110,231,255,0.38);
  --accent-rgb: 110,231,255;
  --accent-2-rgb: 139,156,255;
  --color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-2: #eef1f7;
  --card: #ffffff;
  --line: rgba(0,0,0,0.10);
  --text: #0a0a0a;
  --muted: #2a2a2a;
  --accent: #0891b2;
  --accent-2: #4f46e5;
  --warm: #c2410c;
  --ok: #059669;
  --shadow: 0 20px 60px rgba(15,23,42,0.10);
  --wa: #25d366;
  --nav-bg: rgba(246,247,251,0.72);
  --nav-bg-scrolled: rgba(255,255,255,0.92);
  --btn-primary-fg: #ffffff;
  --card-grad-top: #ffffff;
  --card-grad-bot: #f3f5fa;
  --card-grad-sheen: linear-gradient(165deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.4) 40%, transparent 100%);
  --card-border: rgba(15,23,42,0.10);
  --card-inset: rgba(255,255,255,0.85);
  --pkg-featured-top: #eef6ff;
  --pkg-featured-bot: #f8fafc;
  --pkg-featured-sheen: linear-gradient(165deg, rgba(8,145,178,0.10), transparent 45%);
  --section-alt: linear-gradient(180deg, rgba(238,241,247,0.98), rgba(246,247,251,0.96) 50%, rgba(238,241,247,0.98));
  --body-bg-grad: linear-gradient(180deg, #f6f7fb 0%, #eef1f7 45%, #f6f7fb 100%);
  --mesh-1: rgba(8,145,178,0.10);
  --mesh-2: rgba(79,70,229,0.10);
  --mesh-3: rgba(99,102,241,0.06);
  --mesh-4: rgba(194,65,12,0.05);
  --mesh-body-1: rgba(8,145,178,0.12);
  --mesh-body-2: rgba(79,70,229,0.10);
  --mesh-body-3: rgba(14,165,233,0.08);
  --stage-grad: linear-gradient(165deg, #e8ecf5, #f4f6fb);
  --hero-visual-grad: linear-gradient(180deg, #eef1f7 0%, #f8f9fc 100%);
  --hero-visual-glow: rgba(8,145,178,0.12);
  --flow-node-bg: #ffffff;
  --flow-node-border: rgba(0,0,0,0.10);
  --flow-node-fg: #0a0a0a;
  --flow-node-strong: #0a0a0a;
  --flow-accent-grad: linear-gradient(135deg,#e0f7fa,#ffffff);
  --web-ex-bg: #eef1f7;
  --web-ex-cap: rgba(255,255,255,0.95);
  --kinetic-fg: rgba(10,10,10,0.88);
  --kinetic-border: rgba(0,0,0,0.06);
  --kinetic-bg: linear-gradient(90deg, rgba(8,145,178,0.04), rgba(79,70,229,0.05), rgba(194,65,12,0.03));
  --ghost-hover-border: rgba(0,0,0,0.18);
  --ghost-hover-bg: rgba(0,0,0,0.03);
  --brand-img-bg: #ffffff;
  --li-card-bg: #f0f7ff;
  --band-bg: linear-gradient(180deg, rgba(238,241,247,0.95), rgba(246,247,251,0.98));
  --surface-soft: rgba(0,0,0,0.025);
  --surface-soft-border: rgba(0,0,0,0.12);
  --hover-glow: rgba(8,145,178,0.35);
  --accent-rgb: 8,145,178;
  --accent-2-rgb: 79,70,229;
  --color-scheme: light;
}

[data-theme="beige"] {
  --bg: #e8d5b5;
  --bg-2: #dcc6a0;
  --card: #f5ebda;
  --line: rgba(40,28,16,0.18);
  --text: #1a120c;
  --muted: #3a2a1c;
  --accent: #c45c3e;
  --accent-2: #2a7a6e;
  --warm: #b87333;
  --ok: #3d7a5a;
  --shadow: 0 20px 60px rgba(58,47,36,0.12);
  --wa: #25d366;
  --nav-bg: rgba(175,132,82,0.90);
  --nav-bg-scrolled: rgba(158,115,68,0.93);
  --btn-primary-fg: #fff8ef;
  --card-grad-top: #f5ebda;
  --card-grad-bot: #ead9bc;
  --card-grad-sheen: linear-gradient(165deg, rgba(255,252,245,0.85) 0%, rgba(250,246,236,0.35) 40%, transparent 100%);
  --card-border: rgba(90,70,40,0.16);
  --card-inset: rgba(255,252,245,0.7);
  --pkg-featured-top: #ecd7b4;
  --pkg-featured-bot: #f5ebda;
  --pkg-featured-sheen: linear-gradient(165deg, rgba(196,92,62,0.12), transparent 45%);
  --section-alt: linear-gradient(180deg, rgba(220,198,160,0.92), rgba(232,213,181,0.94) 50%, rgba(220,198,160,0.92));
  --body-bg-grad: linear-gradient(180deg, #e8d5b5 0%, #dcc6a0 45%, #e8d5b5 100%);
  --mesh-1: rgba(196,92,62,0.10);
  --mesh-2: rgba(42,122,110,0.10);
  --mesh-3: rgba(184,115,51,0.08);
  --mesh-4: rgba(196,92,62,0.06);
  --mesh-body-1: rgba(196,92,62,0.12);
  --mesh-body-2: rgba(42,122,110,0.10);
  --mesh-body-3: rgba(184,115,51,0.08);
  --stage-grad: linear-gradient(180deg, var(--card-grad-top), var(--card-grad-bot));
  --hero-visual-grad: linear-gradient(180deg, var(--card-grad-top), var(--card-grad-bot));
  --hero-visual-glow: rgba(255,252,245,0.35);
  --flow-node-bg: #f5ebda;
  --flow-node-border: rgba(40,28,16,0.18);
  --flow-node-fg: #1a120c;
  --flow-node-strong: #1a120c;
  --flow-accent-grad: linear-gradient(135deg,#f0dcc4,#f5ebda);
  --web-ex-bg: #e2cfaa;
  --web-ex-cap: rgba(245,235,218,0.96);
  --kinetic-fg: rgba(26,18,12,0.88);
  --kinetic-border: rgba(90,70,40,0.10);
  --kinetic-bg: linear-gradient(90deg, rgba(196,92,62,0.05), rgba(42,122,110,0.05), rgba(184,115,51,0.04));
  --ghost-hover-border: rgba(90,70,40,0.28);
  --ghost-hover-bg: rgba(90,70,40,0.04);
  --brand-img-bg: #f5ebda;
  --li-card-bg: #e8d7b8;
  --band-bg: linear-gradient(180deg, rgba(220,198,160,0.95), rgba(232,213,181,0.98));
  --surface-soft: rgba(90,70,40,0.04);
  --surface-soft-border: rgba(90,70,40,0.16);
  --hover-glow: rgba(196,92,62,0.35);
  --accent-rgb: 196,92,62;
  --accent-2-rgb: 42,122,110;
  --color-scheme: light;
}

html { color-scheme: var(--color-scheme, dark); }

/* ——— Theme switcher UI ——— */
.theme-switcher {
  /* In-flow by default so it never overlays header WhatsApp */
  position: static;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.35rem;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(1.15);
  -webkit-backdrop-filter: blur(12px) saturate(1.15);
}
/* Only when JS falls back to body (no WA in nav) */
body > .theme-switcher {
  position: fixed;
  top: 0.75rem;
  right: 0.75rem;
}
.theme-switcher button {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}
.theme-switcher button:hover { transform: scale(1.08); }
.theme-switcher button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.theme-switcher button[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent),
              inset 0 0 0 1px rgba(0,0,0,0.1);
}
.theme-switcher button[data-theme-set="dark"] {
  background: radial-gradient(circle at 35% 30%, #2a3140, #07080c 70%);
}
.theme-switcher button[data-theme-set="light"] {
  background: radial-gradient(circle at 35% 30%, #ffffff, #cfd5e2 75%);
}
.theme-switcher button[data-theme-set="beige"] {
  background: radial-gradient(circle at 35% 30%, #faf6ec, #d4ba8e 75%);
}
.theme-switcher .theme-switcher-label {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
/* Cluster: theme switcher + header WA — ALWAYS in-flow, never overlap.
   Desktop: same row with gap; if width runs out, wrap/stack with vertical gap. */
.nav-theme-wa {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  column-gap: 0.65rem;
  row-gap: 0.45rem;
  flex-shrink: 0;
  min-width: 0;
  max-width: 100%;
}
.nav-theme-wa .theme-switcher {
  position: static !important;
  top: auto !important;
  right: auto !important;
  flex-shrink: 0;
}
.nav-theme-wa .btn-nav-wa {
  flex-shrink: 0;
}
/* Native mobile: theme switcher BETWEEN brand and WhatsApp on the SAME row */
@media (max-width: 900px) {
  .nav-theme-wa {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.35rem;
    row-gap: 0.35rem;
  }
  .theme-switcher {
    flex-shrink: 0;
    gap: 0.22rem;
    padding: 0.18rem 0.24rem;
  }
  .theme-switcher button { width: 1.1rem; height: 1.1rem; }
  .nav-inner {
    align-items: center;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }
  .btn-nav-wa { padding: 0.42rem 0.7rem !important; font-size: 0.78rem !important; }
}
@media (max-width: 480px) {
  .theme-switcher {
    gap: 0.22rem;
    padding: 0.18rem 0.24rem;
  }
  .theme-switcher button { width: 1.1rem; height: 1.1rem; }
}

/* ——— Shared overrides (home + articles) ——— */
.nav {
  background: var(--nav-bg) !important;
}
.nav.is-scrolled {
  background: var(--nav-bg-scrolled) !important;
}
.btn-primary {
  color: var(--btn-primary-fg) !important;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-2)) 50%, var(--accent-2)) !important;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--accent) 22%, transparent) !important;
}
.btn-primary:hover {
  box-shadow: 0 12px 36px color-mix(in srgb, var(--accent) 35%, transparent),
              0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent) !important;
}
.btn-ghost:hover {
  border-color: var(--ghost-hover-border) !important;
  background: var(--ghost-hover-bg) !important;
}
.brand img,
.logo-flip--cta img {
  background: var(--brand-img-bg) !important;
}
.bg-mesh {
  background:
    radial-gradient(ellipse 90% 55% at 8% -8%, var(--mesh-1), transparent 52%),
    radial-gradient(ellipse 70% 48% at 96% 8%, var(--mesh-2), transparent 48%),
    radial-gradient(ellipse 55% 40% at 70% 70%, var(--mesh-3), transparent 55%),
    radial-gradient(ellipse 50% 35% at 40% 100%, var(--mesh-4), transparent 55%),
    var(--bg) !important;
}

/* Home-specific premium surfaces */
.card, .pkg, .step, .audience-item, details.faq, .case-panel {
  border-color: var(--card-border) !important;
  background:
    var(--card-grad-sheen),
    linear-gradient(180deg, var(--card-grad-top), var(--card-grad-bot)) !important;
  box-shadow:
    0 18px 48px color-mix(in srgb, var(--text) 12%, transparent),
    inset 0 1px 0 var(--card-inset) !important;
}
.card:hover, .pkg:hover, .step:hover, .audience-item:hover, .case-panel:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, transparent) !important;
  box-shadow:
    0 26px 60px color-mix(in srgb, var(--text) 14%, transparent),
    0 0 0 1px color-mix(in srgb, var(--accent) 14%, transparent),
    0 0 48px color-mix(in srgb, var(--accent) 10%, transparent),
    inset 0 1px 0 var(--card-inset) !important;
}
.pkg.featured {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent) !important;
  background:
    var(--pkg-featured-sheen),
    linear-gradient(180deg, var(--pkg-featured-top), var(--pkg-featured-bot)) !important;
  box-shadow:
    0 26px 66px color-mix(in srgb, var(--text) 14%, transparent),
    0 0 90px color-mix(in srgb, var(--accent) 14%, transparent),
    inset 0 1px 0 var(--card-inset) !important;
}
section.alt {
  background: var(--section-alt) !important;
  box-shadow: inset 0 40px 80px color-mix(in srgb, var(--text) 6%, transparent),
              inset 0 -40px 80px color-mix(in srgb, var(--text) 4%, transparent) !important;
}
body::before {
  background:
    radial-gradient(900px 500px at 12% -10%, var(--mesh-body-1), transparent 60%),
    radial-gradient(700px 480px at 95% 15%, var(--mesh-body-2), transparent 55%),
    radial-gradient(600px 400px at 50% 110%, var(--mesh-body-3), transparent 50%),
    var(--body-bg-grad) !important;
}
.stage {
  background: var(--stage-grad) !important;
}
.hero-visual {
  background:
    radial-gradient(ellipse at 50% 20%, var(--hero-visual-glow), transparent 55%),
    var(--hero-visual-grad) !important;
}
.flow-node {
  background: var(--flow-node-bg) !important;
  border-color: var(--flow-node-border) !important;
  color: var(--flow-node-fg) !important;
}
.flow-node strong { color: var(--flow-node-strong) !important; }
.flow-node .tag {
  background: color-mix(in srgb, var(--accent) 14%, transparent) !important;
  color: var(--accent) !important;
}
.flow-node.accent {
  border-color: color-mix(in srgb, var(--accent) 30%, transparent) !important;
  background: var(--flow-accent-grad) !important;
}
.flow-arrow { color: var(--accent) !important; }
.web-ex-item {
  border-color: var(--line) !important;
  background: var(--web-ex-bg) !important;
}
.web-ex-item figcaption {
  border-top-color: var(--line) !important;
  background: var(--web-ex-cap) !important;
}
.kinetic {
  border-block-color: var(--kinetic-border) !important;
  background: var(--kinetic-bg) !important;
}
.kinetic-track { color: var(--kinetic-fg) !important; }
.li-card {
  background:
    linear-gradient(135deg, rgba(10,102,194,0.26), color-mix(in srgb, var(--accent) 8%, transparent) 70%),
    var(--li-card-bg) !important;
}
.band, .proof-band, .trust-band {
  background: var(--band-bg);
}
.icon {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent-2) 16%, transparent)) !important;
  border-color: color-mix(in srgb, var(--accent) 18%, transparent) !important;
}
.related-links a:hover {
  border-color: var(--ghost-hover-border) !important;
}
[data-theme="dark"] .article-body a:not(.btn):hover {
  color: color-mix(in srgb, var(--accent) 70%, white) !important;
}

/* Soft surfaces that used white-alpha on dark */
[data-theme="light"] .surface-soft,
[data-theme="beige"] .surface-soft,
[data-theme="light"] .faq-item,
[data-theme="beige"] .faq-item {
  background: var(--surface-soft);
  border-color: var(--surface-soft-border);
}

/* Grain less harsh on light themes */
[data-theme="light"] .bg-grain,
[data-theme="beige"] .bg-grain {
  opacity: 0.028;
  mix-blend-mode: multiply;
}
[data-theme="light"] body::after,
[data-theme="beige"] body::after {
  opacity: 0.18;
  mix-blend-mode: multiply;
}

/* Nav scrolled shadow softer on light themes */
[data-theme="light"] .nav.is-scrolled,
[data-theme="beige"] .nav.is-scrolled {
  box-shadow: 0 8px 28px color-mix(in srgb, var(--text) 8%, transparent);
}

/* Cursor glyph + shadow readable on light/beige */
[data-theme="light"] .cursor-fx__icon path,
[data-theme="beige"] .cursor-fx__icon path {
  fill: #1a1a1a;
  stroke: #ffffff;
}
[data-theme="light"] .cursor-fx__icon {
  filter: drop-shadow(16px 18px 5px rgba(0, 0, 0, 0.38));
}
[data-theme="beige"] .cursor-fx__icon {
  filter: drop-shadow(16px 18px 5px rgba(40, 28, 16, 0.45));
}
[data-theme="light"] .cursor-fx.is-down .cursor-fx__icon {
  filter: drop-shadow(2px 3px 1px rgba(0, 0, 0, 0.55));
}
[data-theme="beige"] .cursor-fx.is-down .cursor-fx__icon {
  filter: drop-shadow(2px 3px 1px rgba(40, 28, 16, 0.6));
}

/* ——— Contrast + wood (2026-09-28, pass 2) ———
   Light/beige must beat home inline CSS + article.css hardcodes
   (#f2f4f8, #fff, #e8eef7, #d5dae6, color:transparent gradients).
   Dark theme is not targeted here. */

/* Near-black body + copy (beats leftover light hardcodes) */
[data-theme="light"] body,
[data-theme="light"] p,
[data-theme="light"] li,
[data-theme="light"] dd,
[data-theme="light"] td,
[data-theme="light"] .article-body p,
[data-theme="light"] .article-body ul,
[data-theme="light"] .article-body ol,
[data-theme="light"] .article-body li,
[data-theme="light"] .market-table td,
[data-theme="beige"] body,
[data-theme="beige"] p,
[data-theme="beige"] li,
[data-theme="beige"] dd,
[data-theme="beige"] td,
[data-theme="beige"] .article-body p,
[data-theme="beige"] .article-body ul,
[data-theme="beige"] .article-body ol,
[data-theme="beige"] .article-body li,
[data-theme="beige"] .market-table td {
  color: var(--text) !important;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] .sec-title,
[data-theme="light"] .pkg-price,
[data-theme="light"] .brand-text,
[data-theme="light"] .logo,
[data-theme="light"] .flow-node,
[data-theme="light"] .flow-node strong,
[data-theme="light"] .li-card-text strong,
[data-theme="light"] .market-table td strong,
[data-theme="light"] .article-body p strong,
[data-theme="light"] .note strong,
[data-theme="light"] footer .founder,
[data-theme="light"] .footer-inner .founder,
[data-theme="beige"] h1,
[data-theme="beige"] h2,
[data-theme="beige"] h3,
[data-theme="beige"] h4,
[data-theme="beige"] .sec-title,
[data-theme="beige"] .pkg-price,
[data-theme="beige"] .brand-text,
[data-theme="beige"] .logo,
[data-theme="beige"] .flow-node,
[data-theme="beige"] .flow-node strong,
[data-theme="beige"] .li-card-text strong,
[data-theme="beige"] .market-table td strong,
[data-theme="beige"] .article-body p strong,
[data-theme="beige"] .note strong,
[data-theme="beige"] footer .founder,
[data-theme="beige"] .footer-inner .founder {
  color: var(--text) !important;
}

/* Kill white/silver/accent clipped title fills (WebKit keeps text-fill transparent) */
[data-theme="light"] h1,
[data-theme="light"] h1 em,
[data-theme="light"] .sec-title,
[data-theme="light"] .logo,
[data-theme="beige"] h1,
[data-theme="beige"] h1 em,
[data-theme="beige"] .sec-title,
[data-theme="beige"] .logo {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: var(--text) !important;
  color: var(--text) !important;
  text-shadow: none !important;
}

/* Brand mark: light uses accent; beige uses deep teal (not terracotta) */
[data-theme="light"] .logo span {
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
  background: none !important;
}
[data-theme="beige"] .logo span {
  color: #2a7a6e !important;
  -webkit-text-fill-color: #2a7a6e !important;
  background: none !important;
}

/* Dark muted copy: lede, cards, nav, brand subtitle, lists, footer */
[data-theme="light"] .lede,
[data-theme="light"] .sec-sub,
[data-theme="light"] .sec-not,
[data-theme="light"] .card p,
[data-theme="light"] .pkg p,
[data-theme="light"] .pkg ul li,
[data-theme="light"] .pkg-price small,
[data-theme="light"] .step p,
[data-theme="light"] .audience-item p,
[data-theme="light"] .case p,
[data-theme="light"] .bullets li,
[data-theme="light"] .muted,
[data-theme="light"] .logo-edit,
[data-theme="light"] .nav-links,
[data-theme="light"] .nav-links a:not(.btn),
[data-theme="light"] .trust,
[data-theme="light"] .stage-bar,
[data-theme="light"] .cta-band p,
[data-theme="light"] .cta-meta,
[data-theme="light"] .contact-item .label,
[data-theme="light"] .contact-note,
[data-theme="light"] details.faq p,
[data-theme="light"] .faq-block details p,
[data-theme="light"] .note,
[data-theme="light"] .compare-card p,
[data-theme="light"] .split-card li,
[data-theme="light"] .breadcrumb,
[data-theme="light"] .breadcrumb a,
[data-theme="light"] .market-table th,
[data-theme="light"] .market-grid dt,
[data-theme="light"] .flow-title,
[data-theme="light"] .li-card-text span,
[data-theme="light"] .related-links a,
[data-theme="light"] .footer-links a,
[data-theme="light"] footer,
[data-theme="light"] footer.site-footer,
[data-theme="light"] .kinetic-track,
[data-theme="beige"] .lede,
[data-theme="beige"] .sec-sub,
[data-theme="beige"] .sec-not,
[data-theme="beige"] .card p,
[data-theme="beige"] .pkg p,
[data-theme="beige"] .pkg ul li,
[data-theme="beige"] .pkg-price small,
[data-theme="beige"] .step p,
[data-theme="beige"] .audience-item p,
[data-theme="beige"] .case p,
[data-theme="beige"] .bullets li,
[data-theme="beige"] .muted,
[data-theme="beige"] .logo-edit,
[data-theme="beige"] .nav-links,
[data-theme="beige"] .nav-links a:not(.btn),
[data-theme="beige"] .trust,
[data-theme="beige"] .stage-bar,
[data-theme="beige"] .cta-band p,
[data-theme="beige"] .cta-meta,
[data-theme="beige"] .contact-item .label,
[data-theme="beige"] .contact-note,
[data-theme="beige"] details.faq p,
[data-theme="beige"] .faq-block details p,
[data-theme="beige"] .note,
[data-theme="beige"] .compare-card p,
[data-theme="beige"] .split-card li,
[data-theme="beige"] .breadcrumb,
[data-theme="beige"] .breadcrumb a,
[data-theme="beige"] .market-table th,
[data-theme="beige"] .market-grid dt,
[data-theme="beige"] .flow-title,
[data-theme="beige"] .li-card-text span,
[data-theme="beige"] .related-links a,
[data-theme="beige"] .footer-links a,
[data-theme="beige"] footer,
[data-theme="beige"] footer.site-footer,
[data-theme="beige"] .kinetic-track {
  color: var(--muted) !important;
}

[data-theme="light"] .nav-links a:not(.btn):hover,
[data-theme="light"] .nav-links a.is-active,
[data-theme="light"] .breadcrumb a:hover,
[data-theme="light"] .footer-links a:hover,
[data-theme="light"] .related-links a:hover,
[data-theme="light"] .trust strong,
[data-theme="beige"] .nav-links a:not(.btn):hover,
[data-theme="beige"] .nav-links a.is-active,
[data-theme="beige"] .breadcrumb a:hover,
[data-theme="beige"] .footer-links a:hover,
[data-theme="beige"] .related-links a:hover,
[data-theme="beige"] .trust strong {
  color: var(--text) !important;
}

/* Ghost / chip buttons: light text on light fill is unreadable */
[data-theme="light"] .btn-ghost,
[data-theme="beige"] .btn-ghost {
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
  background: color-mix(in srgb, var(--text) 5%, transparent) !important;
  border-color: color-mix(in srgb, var(--text) 22%, transparent) !important;
}
[data-theme="light"] .btn-ghost:hover,
[data-theme="beige"] .btn-ghost:hover {
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
  border-color: var(--ghost-hover-border) !important;
  background: var(--ghost-hover-bg) !important;
}

/* Primary CTAs keep their token fg (white/cream on accent fill) */
[data-theme="light"] .btn-primary,
[data-theme="beige"] .btn-primary {
  color: var(--btn-primary-fg) !important;
  -webkit-text-fill-color: var(--btn-primary-fg) !important;
}
[data-theme="light"] .btn-wa,
[data-theme="light"] .btn-nav-wa,
[data-theme="beige"] .btn-wa,
[data-theme="beige"] .btn-nav-wa {
  color: #06210f !important;
  -webkit-text-fill-color: #06210f !important;
}

/* Hardcoded cyan flow accents → theme accent (keep readable, not #6ee7ff) */
[data-theme="light"] .flow-arrow,
[data-theme="beige"] .flow-arrow {
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
}
[data-theme="light"] .flow-node .tag,
[data-theme="beige"] .flow-node .tag {
  background: color-mix(in srgb, var(--accent) 14%, transparent) !important;
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
}

/* Soften dark cinematic vignette on light themes */
[data-theme="light"] .bg-vignette {
  background: radial-gradient(ellipse 78% 70% at 50% 42%, transparent 55%, rgba(15,23,42,0.10) 100%) !important;
}
[data-theme="beige"] .bg-vignette {
  background: radial-gradient(ellipse 78% 70% at 50% 42%, transparent 50%, rgba(40,28,16,0.22) 100%) !important;
}

/* Article link hover: don't mix toward white on light themes */
[data-theme="light"] .article-body a:not(.btn),
[data-theme="beige"] .article-body a:not(.btn) {
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
}
[data-theme="light"] .article-body a:not(.btn):hover,
[data-theme="beige"] .article-body a:not(.btn):hover {
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
  filter: brightness(0.82);
}

/* Beige sticky nav: darker warm wood tint vs photo body */
[data-theme="beige"] .nav {
  border-bottom: 1px solid rgba(70,45,22,0.28) !important;
  box-shadow: 0 6px 22px rgba(58,40,20,0.18);
}
[data-theme="beige"] .nav.is-scrolled {
  box-shadow: 0 10px 32px rgba(58,40,20,0.28) !important;
}

/* ——— Beige wood: ONE full-viewport photo (no stacked layers / seams) ———
   Asset: wood-beige.jpg/webp @3840x2160 (hq-20260928) ———
   Use fixed .bg-mesh as the single wood floor (cover). Kill body::before,
   body::after, grain, and opaque section.alt / band fills that cut the photo.
   Mobile-first: fixed overlay + cover (avoids iOS background-attachment bugs). */
[data-theme="beige"] body {
  background-color: var(--bg) !important;
  background-image: none !important;
}

[data-theme="beige"] .bg-mesh {
  background-color: var(--bg) !important;
  background-image:
    linear-gradient(180deg, rgba(250,244,230,0.38), rgba(245,235,218,0.30)),
    image-set(
      url("wood-beige.webp") type("image/webp"),
      url("wood-beige.jpg") type("image/jpeg")
    ) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important; /* layer is position:fixed; cover once */
  opacity: 1 !important;
  background-blend-mode: normal !important;
}

/* Remove competing mesh / grain / body washes (were doubling wood + seams) */
[data-theme="beige"] body::before {
  background: none !important;
  background-image: none !important;
  opacity: 0 !important;
  content: none !important;
}
[data-theme="beige"] body::after {
  background: none !important;
  background-image: none !important;
  opacity: 0 !important;
}
[data-theme="beige"] .bg-grain {
  opacity: 0 !important;
  background-image: none !important;
  visibility: hidden !important;
}

/* Full-bleed sections must NOT paint opaque fills over the wood */
[data-theme="beige"] section.alt {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-top-color: rgba(90,70,40,0.14) !important;
  border-bottom-color: rgba(90,70,40,0.14) !important;
}
[data-theme="beige"] .kinetic {
  background: transparent !important;
  background-image: none !important;
  border-block-color: rgba(90,70,40,0.12) !important;
}
[data-theme="beige"] .band,
[data-theme="beige"] .proof-band,
[data-theme="beige"] .trust-band {
  background: transparent !important;
  background-image: none !important;
}

/* Cards stay slightly clearer than the wood floor so text pops.
   Hero logo flip .stage/.hero-visual use the SAME surface as details.faq. */
[data-theme="beige"] .card,
[data-theme="beige"] .pkg,
[data-theme="beige"] .step,
[data-theme="beige"] .audience-item,
[data-theme="beige"] details.faq,
[data-theme="beige"] .faq-item,
[data-theme="beige"] .case-panel,
[data-theme="beige"] .article-hero,
[data-theme="beige"] .cta-band,
[data-theme="beige"] .stage,
[data-theme="beige"] .hero-visual {
  background:
    linear-gradient(180deg, rgba(255,250,240,0.92), rgba(245,235,218,0.95)),
    var(--card) !important;
  border-color: var(--card-border) !important;
  box-shadow:
    0 18px 48px color-mix(in srgb, var(--text) 12%, transparent),
    inset 0 1px 0 var(--card-inset) !important;
}

/* Beige hero frame: no dark sheen overlay; keep dark theme untouched */
[data-theme="beige"] .stage::before {
  background: linear-gradient(135deg, rgba(255,252,245,0.55), transparent 50%) !important;
}
[data-theme="beige"] .hero-visual img,
[data-theme="beige"] .hero-visual .logo-flip--hero img {
  border-color: rgba(90,70,40,0.14) !important;
  box-shadow: 0 16px 40px rgba(58,40,20,0.10), inset 0 1px 0 rgba(255,252,245,0.6) !important;
}

/* ——— Article contrast HARD FIX (2026-09-28 pass 3) ———
   Muted pass above re-applies --muted to .lede/.note/.split-card li/.cta-band p
   with equal specificity. Beat it here for ARTICLE pages only (home untouched). */
[data-theme="light"] .article-body,
[data-theme="light"] .article-body p,
[data-theme="light"] .article-body li,
[data-theme="light"] .article-body ul,
[data-theme="light"] .article-body ol,
[data-theme="light"] .article-body td,
[data-theme="light"] .article-body .note,
[data-theme="light"] .article-body .note strong,
[data-theme="light"] .article-body .cta-band p,
[data-theme="light"] .article-body .cta-meta,
[data-theme="light"] .article-body .faq-block details p,
[data-theme="light"] .article-body .compare-card p,
[data-theme="light"] .article-body .split-card li,
[data-theme="light"] .article-body .market-table td,
[data-theme="light"] .article-body .market-table td strong,
[data-theme="light"] .article-hero .lede,
[data-theme="light"] .note,
[data-theme="light"] .note strong,
[data-theme="light"] .faq-block details p,
[data-theme="light"] .compare-card p,
[data-theme="light"] .split-card li,
[data-theme="light"] .market-table td,
[data-theme="light"] article .cta-band p,
[data-theme="light"] article .cta-meta {
  color: #0a0a0a !important;
  -webkit-text-fill-color: #0a0a0a !important;
  opacity: 1 !important;
}

[data-theme="beige"] .article-body,
[data-theme="beige"] .article-body p,
[data-theme="beige"] .article-body li,
[data-theme="beige"] .article-body ul,
[data-theme="beige"] .article-body ol,
[data-theme="beige"] .article-body td,
[data-theme="beige"] .article-body .note,
[data-theme="beige"] .article-body .note strong,
[data-theme="beige"] .article-body .cta-band p,
[data-theme="beige"] .article-body .cta-meta,
[data-theme="beige"] .article-body .faq-block details p,
[data-theme="beige"] .article-body .compare-card p,
[data-theme="beige"] .article-body .split-card li,
[data-theme="beige"] .article-body .market-table td,
[data-theme="beige"] .article-body .market-table td strong,
[data-theme="beige"] .article-hero .lede,
[data-theme="beige"] .note,
[data-theme="beige"] .note strong,
[data-theme="beige"] .faq-block details p,
[data-theme="beige"] .compare-card p,
[data-theme="beige"] .split-card li,
[data-theme="beige"] .market-table td,
[data-theme="beige"] article .cta-band p,
[data-theme="beige"] article .cta-meta {
  color: #1a120c !important;
  -webkit-text-fill-color: #1a120c !important;
  opacity: 1 !important;
}

/* Keep accent links in articles (don't force near-black on anchors) */
[data-theme="light"] .article-body a:not(.btn),
[data-theme="beige"] .article-body a:not(.btn),
[data-theme="light"] .cta-meta a,
[data-theme="beige"] .cta-meta a {
  color: var(--accent) !important;
  -webkit-text-fill-color: var(--accent) !important;
}

/* --- UI 2026-09-28: beige nav contrast, caption red, bold hover --- */
[data-theme="beige"] .nav-links a:not(.btn) {
  color: #0a0a0a !important;
}
[data-theme="beige"] .nav-links a:not(.btn):hover,
[data-theme="beige"] .nav-links a:not(.btn).is-active {
  color: #000 !important;
  font-weight: 700;
}
[data-theme="light"] .nav-links a:not(.btn):hover,
[data-theme="light"] .nav-links a:not(.btn).is-active,
[data-theme="dark"] .nav-links a:not(.btn):hover,
[data-theme="dark"] .nav-links a:not(.btn).is-active,
html:not([data-theme]) .nav-links a:not(.btn):hover,
html:not([data-theme]) .nav-links a:not(.btn).is-active {
  font-weight: 700;
}
/* --- UI 2026-09-28 home polish: stage crop, YES caption, beige hero ghosts --- */
/* Crop empty zone under logo frame (Mac chrome removed; no leftover min-heights) */
.stage { min-height: 0 !important; }
.hero-visual {
  min-height: 0 !important;
  padding: 1.35rem 1.25rem 1.1rem !important;
  gap: 0.85rem !important;
}

/* Flip-logo caption — comic / YES: UPPERCASE ultra-bold red + white stroke + dark red depth.
   Slightly larger + ~22ch + softer tracking → two balanced lines on mobile
   (GIRA EL LOGO PARA VER / LA VERSIÓN EXTENDIDA). Theme-tuned outline/lift.
   Hero H1 stays normal sentence case / theme text (no beige special). */
.hero-visual-cap,
[data-theme="light"] .hero-visual-cap,
[data-theme="beige"] .hero-visual-cap,
[data-theme="dark"] .hero-visual-cap {
  font-family: Inter, "Arial Black", Impact, system-ui, sans-serif !important;
  font-weight: 900 !important;
  font-style: italic !important;
  text-transform: uppercase !important;
  letter-spacing: -0.005em !important;
  line-height: 1.18 !important;
  font-size: 1.14rem !important;
  max-width: 22ch !important;
  margin-inline: auto !important;
  text-wrap: balance;
  color: #e11d48 !important;
  -webkit-text-fill-color: #e11d48 !important;
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-stroke: 0.055em #ffffff;
  paint-order: stroke fill;
  text-shadow:
    0.045em 0.055em 0 #7f0d2a,
    0.07em 0.09em 0 #5c081e,
    0.1em 0.12em 0.08em rgba(60, 5, 18, 0.35) !important;
  transform: skewX(-3deg);
  transform-origin: center center;
}
@media (max-width: 720px) {
  .hero-visual-cap,
  [data-theme="light"] .hero-visual-cap,
  [data-theme="beige"] .hero-visual-cap,
  [data-theme="dark"] .hero-visual-cap {
    font-size: 1.2rem !important;
    max-width: 22ch !important;
    letter-spacing: 0 !important;
    line-height: 1.2 !important;
  }
}
/* Dark: brighter fill + stronger white outline so letters pop */
[data-theme="dark"] .hero-visual-cap {
  color: #f43f5e !important;
  -webkit-text-fill-color: #f43f5e !important;
  -webkit-text-stroke: 0.078em #ffffff;
  text-shadow:
    0 0 0.14em rgba(255, 255, 255, 0.6),
    0.045em 0.055em 0 #7f0d2a,
    0.07em 0.09em 0 #5c081e,
    0.1em 0.12em 0.1em rgba(60, 5, 18, 0.42) !important;
}
/* Light + beige: soft white lift halo under comic depth */
[data-theme="light"] .hero-visual-cap,
[data-theme="beige"] .hero-visual-cap {
  -webkit-text-stroke: 0.06em #ffffff;
  text-shadow:
    0 0 0.3em rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(255, 255, 255, 0.85),
    0.045em 0.055em 0 #7f0d2a,
    0.07em 0.09em 0 #5c081e,
    0.1em 0.12em 0.08em rgba(60, 5, 18, 0.28) !important;
}

/* Ghost CTAs in hero only — WOOD/BEIGE: solid cream like details.faq / --card.
   Dark/light keep existing ghost style. WhatsApp (.btn-wa) untouched. */
[data-theme="beige"] .hero .btn-ghost {
  background: var(--card) !important;
  background-image:
    linear-gradient(180deg, rgba(255,250,240,0.92), rgba(245,235,218,0.95)),
    var(--card) !important;
  border-color: var(--card-border) !important;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
  box-shadow:
    0 10px 26px color-mix(in srgb, var(--text) 10%, transparent),
    inset 0 1px 0 var(--card-inset) !important;
}
[data-theme="beige"] .hero .btn-ghost:hover {
  background: #fffaf0 !important;
  background-image: none !important;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--card-border)) !important;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
}


/* FAQ more CTA: same solid card surface as details.faq (light + beige only) */
[data-theme="light"] .faq-more .btn-ghost {
  background:
    var(--card-grad-sheen),
    linear-gradient(180deg, var(--card-grad-top), var(--card-grad-bot)) !important;
  border-color: var(--card-border) !important;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
  box-shadow:
    0 10px 26px color-mix(in srgb, var(--text) 8%, transparent),
    inset 0 1px 0 var(--card-inset) !important;
}
[data-theme="light"] .faq-more .btn-ghost:hover {
  background: var(--card) !important;
  background-image: none !important;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--card-border)) !important;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
}
[data-theme="beige"] .faq-more .btn-ghost {
  background: var(--card) !important;
  background-image:
    linear-gradient(180deg, rgba(255,250,240,0.92), rgba(245,235,218,0.95)),
    var(--card) !important;
  border-color: var(--card-border) !important;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
  box-shadow:
    0 10px 26px color-mix(in srgb, var(--text) 10%, transparent),
    inset 0 1px 0 var(--card-inset) !important;
}
[data-theme="beige"] .faq-more .btn-ghost:hover {
  background: #fffaf0 !important;
  background-image: none !important;
  border-color: color-mix(in srgb, var(--accent) 40%, var(--card-border)) !important;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text) !important;
}

/* ——— Dark nested panels: light text on light/beige (2026-09-28 pass 4) ———
   .mock / .mock-card stay near-black across themes. Global light/beige contrast
   pass forces dark --text/--muted onto captions → invisible on navy.
   Raise specificity + !important; lock panel backgrounds. Dark theme untouched. */

.on-dark,
.stage--dark,
.mock-stage,
.flow-stage {
  /* marker utilities — pair with rules below */
}

/* Keep navy chrome even when light/beige tokens try to wash surfaces */
[data-theme="light"] .mock.on-dark,
[data-theme="light"] .mock.mock-stage,
[data-theme="light"] .mock-card.on-dark,
[data-theme="light"] .mock-card.flow-stage,
[data-theme="beige"] .mock.on-dark,
[data-theme="beige"] .mock.mock-stage,
[data-theme="beige"] .mock-card.on-dark,
[data-theme="beige"] .mock-card.flow-stage {
  background-color: #0a0d13 !important;
  background-image:
    linear-gradient(160deg, rgba(110,231,255,0.08), transparent 40%),
    linear-gradient(20deg, rgba(139,156,255,0.10), transparent 45%) !important;
  color: #f5f7fa !important;
  -webkit-text-fill-color: #f5f7fa !important;
}
[data-theme="light"] .mock-card.on-dark,
[data-theme="light"] .mock-card.flow-stage,
[data-theme="beige"] .mock-card.on-dark,
[data-theme="beige"] .mock-card.flow-stage {
  background-color: rgba(18, 22, 31, 0.96) !important;
  background-image: none !important;
}

/* High-contrast captions on navy (beat [data-theme] .flow-title / .case p !important) */
[data-theme="light"] .on-dark .flow-title,
[data-theme="light"] .on-dark .web-ex-note,
[data-theme="light"] .on-dark .chip,
[data-theme="light"] .on-dark > p,
[data-theme="light"] .on-dark p.flow-title,
[data-theme="light"] .on-dark p.web-ex-note,
[data-theme="light"] .mock.on-dark .flow-title,
[data-theme="light"] .mock.on-dark .web-ex-note,
[data-theme="light"] .mock.on-dark .chip,
[data-theme="light"] .mock.mock-stage .flow-title,
[data-theme="light"] .mock.mock-stage .web-ex-note,
[data-theme="light"] .mock.mock-stage .chip,
[data-theme="light"] .mock-card.on-dark .flow-title,
[data-theme="light"] .mock-card.on-dark .chip,
[data-theme="light"] .mock-card.flow-stage .flow-title,
[data-theme="light"] .mock-card.flow-stage .chip,
[data-theme="light"] .case .on-dark .flow-title,
[data-theme="light"] .case .on-dark .web-ex-note,
[data-theme="light"] .case .on-dark .chip,
[data-theme="light"] .case .mock .flow-title,
[data-theme="light"] .case .mock .web-ex-note,
[data-theme="light"] .case .mock .chip,
[data-theme="light"] .case .mock-card .flow-title,
[data-theme="light"] .case .mock-card .chip,
[data-theme="beige"] .on-dark .flow-title,
[data-theme="beige"] .on-dark .web-ex-note,
[data-theme="beige"] .on-dark .chip,
[data-theme="beige"] .on-dark > p,
[data-theme="beige"] .on-dark p.flow-title,
[data-theme="beige"] .on-dark p.web-ex-note,
[data-theme="beige"] .mock.on-dark .flow-title,
[data-theme="beige"] .mock.on-dark .web-ex-note,
[data-theme="beige"] .mock.on-dark .chip,
[data-theme="beige"] .mock.mock-stage .flow-title,
[data-theme="beige"] .mock.mock-stage .web-ex-note,
[data-theme="beige"] .mock.mock-stage .chip,
[data-theme="beige"] .mock-card.on-dark .flow-title,
[data-theme="beige"] .mock-card.on-dark .chip,
[data-theme="beige"] .mock-card.flow-stage .flow-title,
[data-theme="beige"] .mock-card.flow-stage .chip,
[data-theme="beige"] .case .on-dark .flow-title,
[data-theme="beige"] .case .on-dark .web-ex-note,
[data-theme="beige"] .case .on-dark .chip,
[data-theme="beige"] .case .mock .flow-title,
[data-theme="beige"] .case .mock .web-ex-note,
[data-theme="beige"] .case .mock .chip,
[data-theme="beige"] .case .mock-card .flow-title,
[data-theme="beige"] .case .mock-card .chip {
  color: #f5f7fa !important;
  -webkit-text-fill-color: #f5f7fa !important;
  opacity: 1 !important;
}

/* Primary footer / chip captions: near-white, full opacity */
[data-theme="light"] .on-dark .web-ex-note,
[data-theme="light"] .mock.on-dark .web-ex-note,
[data-theme="light"] .mock.mock-stage .web-ex-note,
[data-theme="light"] .case .mock .web-ex-note,
[data-theme="light"] .on-dark .chip,
[data-theme="light"] .mock-card.on-dark .chip,
[data-theme="light"] .mock-card.flow-stage .chip,
[data-theme="light"] .case .mock-card .chip,
[data-theme="beige"] .on-dark .web-ex-note,
[data-theme="beige"] .mock.on-dark .web-ex-note,
[data-theme="beige"] .mock.mock-stage .web-ex-note,
[data-theme="beige"] .case .mock .web-ex-note,
[data-theme="beige"] .on-dark .chip,
[data-theme="beige"] .mock-card.on-dark .chip,
[data-theme="beige"] .mock-card.flow-stage .chip,
[data-theme="beige"] .case .mock-card .chip {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

/* Flow nodes inside dark mock: keep dark chrome + light text */
[data-theme="light"] .mock .flow-node,
[data-theme="light"] .mock-card .flow-node,
[data-theme="light"] .on-dark .flow-node,
[data-theme="light"] .flow-stage .flow-node,
[data-theme="beige"] .mock .flow-node,
[data-theme="beige"] .mock-card .flow-node,
[data-theme="beige"] .on-dark .flow-node,
[data-theme="beige"] .flow-stage .flow-node {
  background: #12161f !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #e8eef7 !important;
  -webkit-text-fill-color: #e8eef7 !important;
}
[data-theme="light"] .mock .flow-node strong,
[data-theme="light"] .mock-card .flow-node strong,
[data-theme="light"] .on-dark .flow-node strong,
[data-theme="light"] .flow-stage .flow-node strong,
[data-theme="beige"] .mock .flow-node strong,
[data-theme="beige"] .mock-card .flow-node strong,
[data-theme="beige"] .on-dark .flow-node strong,
[data-theme="beige"] .flow-stage .flow-node strong {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}
[data-theme="light"] .mock .flow-node.accent,
[data-theme="light"] .mock-card .flow-node.accent,
[data-theme="light"] .on-dark .flow-node.accent,
[data-theme="light"] .flow-stage .flow-node.accent,
[data-theme="beige"] .mock .flow-node.accent,
[data-theme="beige"] .mock-card .flow-node.accent,
[data-theme="beige"] .on-dark .flow-node.accent,
[data-theme="beige"] .flow-stage .flow-node.accent {
  background: linear-gradient(135deg, #15202c, #12161f) !important;
  border-color: rgba(110, 231, 255, 0.28) !important;
}
[data-theme="light"] .mock .flow-node .tag,
[data-theme="light"] .mock-card .flow-node .tag,
[data-theme="light"] .on-dark .flow-node .tag,
[data-theme="light"] .flow-stage .flow-node .tag,
[data-theme="beige"] .mock .flow-node .tag,
[data-theme="beige"] .mock-card .flow-node .tag,
[data-theme="beige"] .on-dark .flow-node .tag,
[data-theme="beige"] .flow-stage .flow-node .tag {
  background: rgba(110, 231, 255, 0.14) !important;
  color: #6ee7ff !important;
  -webkit-text-fill-color: #6ee7ff !important;
}
[data-theme="light"] .mock .flow-node.human .tag,
[data-theme="light"] .mock-card .flow-node.human .tag,
[data-theme="light"] .on-dark .flow-node.human .tag,
[data-theme="light"] .flow-stage .flow-node.human .tag,
[data-theme="beige"] .mock .flow-node.human .tag,
[data-theme="beige"] .mock-card .flow-node.human .tag,
[data-theme="beige"] .on-dark .flow-node.human .tag,
[data-theme="beige"] .flow-stage .flow-node.human .tag {
  background: rgba(255, 193, 7, 0.15) !important;
  color: #ffc107 !important;
  -webkit-text-fill-color: #ffc107 !important;
}
[data-theme="light"] .mock .flow-arrow,
[data-theme="light"] .mock-card .flow-arrow,
[data-theme="light"] .on-dark .flow-arrow,
[data-theme="light"] .flow-stage .flow-arrow,
[data-theme="beige"] .mock .flow-arrow,
[data-theme="beige"] .mock-card .flow-arrow,
[data-theme="beige"] .on-dark .flow-arrow,
[data-theme="beige"] .flow-stage .flow-arrow {
  color: #6ee7ff !important;
  -webkit-text-fill-color: #6ee7ff !important;
}

/* web-ex figcaptions sit on themed (often light) cap bars — keep dark readable text */
[data-theme="light"] .mock .web-ex-item figcaption,
[data-theme="beige"] .mock .web-ex-item figcaption {
  color: var(--muted) !important;
  -webkit-text-fill-color: var(--muted) !important;
}
