/* ============================================================
   AI Enrichment page — Claude warm-orange accent
============================================================ */

:root {
  --ai: #D97757;          /* Anthropic warm orange */
  --ai-deep: #E8865F;     /* brightened for text on dark */
  --ai-tint: color-mix(in srgb, #D97757 12%, transparent);
}

.nav-links a.active { color: var(--ink); font-weight: 500; }
.nav-links a.active::after {
  content: "";
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--ink);
  margin-left: 6px;
  vertical-align: middle;
}

/* subnav (shared pattern with other pages) */
.subnav {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 65px;
  z-index: 40;
}
.subnav-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px var(--pad-x);
  overflow-x: auto;
}
.subnav-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.subnav-inner a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
  padding: 4px 0;
}
.subnav-inner a:hover { color: var(--ink); }
.subnav-inner a.active {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 2px;
}

/* kicker + hero */
.kicker.ai {
  background: var(--ai-tint);
  border-color: rgba(217,119,87,0.20);
  color: #F2A07E;
}
.kicker .dot.ai {
  background: var(--ai);
  box-shadow: 0 0 0 3px rgba(217,119,87,0.22);
}
.hero-ai .display { font-size: clamp(56px, 9vw, 120px); line-height: 0.94; }

/* Claude mark — solid orange-pinkish dot */
.claude-mark {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #F2A07E, var(--ai) 60%, #B6512F 100%);
  flex-shrink: 0;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,0.35) inset;
}
.claude-mark.big {
  width: 36px; height: 36px;
}

/* ============================================================
   HERO PEEK — AI Sidebar
============================================================ */
.ai-peek .peek-frame { background: var(--bg-card); }
.ai-toolbar { background: var(--bg-soft); }
.chip.ai-chip { background: var(--ai-tint); color: #F2A07E; gap: 7px; padding-right: 12px; }
.chip.ai-chip .claude-mark { width: 10px; height: 10px; }

.ai-chat {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 540px;
}
@media (max-width: 920px){ .ai-chat { grid-template-columns: 1fr; } }

.ac-side {
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  background: var(--bg-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ac-side-h {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.ac-ctx {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
}
.ac-ctx-tn {
  width: 38px; height: 38px;
  border-radius: 7px;
  background: linear-gradient(135deg, #2A2A26, #4A4A45);
  position: relative;
  overflow: hidden;
}
.ac-ctx-tn::before {
  content: "";
  position: absolute;
  inset: 8px 6px 4px 6px;
  background: rgba(255,255,255,0.10);
  border-radius: 4px 4px 0 0;
}
.ac-ctx b { display: block; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.ac-ctx .mono { font-size: 11px; color: var(--muted); }

.ac-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}
.acm-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.acm-row span { color: var(--muted); }
.acm-row b { font-weight: 500; font-size: 12px; }

.ac-tools {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ac-tool {
  display: block;
  padding: 5px 9px;
  background: rgba(217,119,87,0.07);
  border: 1px solid rgba(217,119,87,0.18);
  border-radius: 5px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ai-deep);
}

/* chat stream */
.ac-stream {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  max-height: 540px;
}
.msg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13.5px;
  line-height: 1.5;
}
.msg-h {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.msg.ai .msg-h .claude-mark { width: 12px; height: 12px; }
.msg-body {
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.msg.user .msg-body {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  max-width: 75%;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}
.msg.user .msg-h { align-self: flex-end; }
.msg.ai .msg-body {
  background: rgba(217,119,87,0.05);
  border-color: rgba(217,119,87,0.18);
  border-bottom-left-radius: 2px;
}
.msg.ai.final .msg-body { background: var(--bg-card); }

.tool-call {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  background: var(--bg-card);
  border: 1px solid rgba(217,119,87,0.25);
  border-radius: 7px;
  margin-bottom: 8px;
}
.tc-name {
  font-family: var(--f-mono);
  font-weight: 500;
  font-size: 12px;
  color: var(--ai-deep);
  background: var(--ai-tint);
  padding: 2px 7px;
  border-radius: 4px;
}
.tc-args {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}
.tool-result {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 0 0;
  font-size: 12.5px;
  color: var(--ink-mid);
}
.diff-mini {
  margin-top: 10px;
  border-top: 1px dashed rgba(217,119,87,0.25);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dm-row { font-size: 12.5px; display: flex; gap: 8px; align-items: baseline; }
.dm-row > span:first-child {
  font-family: var(--f-mono);
  font-size: 10.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: 80px;
  flex-shrink: 0;
}
.dm-row b { font-weight: 600; }

.msg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

.msg-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 6px;
  font-size: 13.5px;
}
.mi-prompt { color: var(--muted); }
.mi-placeholder { color: var(--muted); flex: 1; }
.mi-cursor {
  display: inline-block;
  width: 2px;
  height: 16px;
  background: var(--ink);
  animation: cursorBlink 1s steps(2) infinite;
}
@keyframes cursorBlink { 50% { opacity: 0; } }

/* ============================================================
   STAT STRIP
============================================================ */
.ai-trust { padding: 50px 0 30px; }
.trust-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 4vw, 60px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px){ .trust-stats { grid-template-columns: 1fr 1fr; gap: 30px; } }
.ts { display: flex; flex-direction: column; gap: 6px; }
.ts b {
  font-weight: 500;
  font-size: clamp(36px, 4.4vw, 56px);
  letter-spacing: -0.035em;
  line-height: 1;
}
.ts span { font-size: 13.5px; color: var(--muted); }

/* ============================================================
   ENRICHMENT BEFORE / AFTER
============================================================ */
.enrich {
  padding: clamp(32px, 4vw, 56px);
}
.en-cols {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}
@media (max-width: 920px){
  .en-cols { grid-template-columns: 1fr; }
  .en-engine { transform: rotate(90deg); margin: 16px auto; }
}

.en-col { display: flex; flex-direction: column; gap: 14px; }
.en-tag {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 4px 10px;
  background: rgba(var(--ink-rgb),0.06);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--muted);
}
.en-tag.ok { background: rgba(84,181,106,0.14); color: var(--ok); }
.en-bar {
  height: 4px;
  background: rgba(var(--ink-rgb),0.08);
  border-radius: 2px;
  overflow: hidden;
}
.en-bar > span {
  display: block; height: 100%;
  background: rgba(var(--ink-rgb),0.3);
  border-radius: 2px;
}
.en-bar.ok > span { background: var(--ok); }
.en-fields {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.en-field {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 8px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12.5px;
}
.en-field.empty .en-val { color: var(--muted-2); }
.en-field.on {
  background: rgba(84,181,106,0.08);
  border-color: rgba(84,181,106,0.25);
}
.en-after .en-field.on { opacity: 0; transform: translateX(8px); transition: opacity .4s ease, transform .4s ease; }
.en-after .en-field.on.lit { opacity: 1; transform: translateX(0); }
.en-label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.en-val { font-weight: 500; }

/* engine column */
.en-engine {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  min-width: 220px;
}
.ee-arrow svg { width: 70px; height: 16px; }
.ee-arrow svg path {
  stroke-dashoffset: 0;
  animation: dashFlow 1.4s linear infinite;
}
@keyframes dashFlow { to { stroke-dashoffset: -16; } }
.ee-engine {
  background: var(--bg-card);
  border: 1px solid rgba(217,119,87,0.30);
  border-radius: 14px;
  padding: 16px 18px;
  width: 100%;
  box-shadow: 0 8px 24px -10px rgba(217,119,87,0.30);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ee-card {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ee-card b { font-size: 14px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
.ee-card span { font-size: 11.5px; color: var(--muted); }
.ee-meter {
  height: 5px;
  background: rgba(217,119,87,0.10);
  border-radius: 3px;
  overflow: hidden;
}
.ee-meter > span {
  display: block; height: 100%;
  width: 0%;
  background: var(--ai);
  border-radius: 3px;
}
.ee-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.ee-meta b { color: var(--ink); font-weight: 500; }

.en-foot {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  margin-top: 28px;
}
@media (max-width: 720px){ .en-foot { grid-template-columns: 1fr 1fr; } }
.en-foot > div { display: flex; flex-direction: column; gap: 4px; }
.en-foot b {
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.025em;
  line-height: 1;
}
.en-foot span { font-size: 12px; color: var(--muted); }

/* ============================================================
   BRAND VOICE PROMPT
============================================================ */
.bv-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  width: 100%;
  max-width: 540px;
}
.bv-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.bv-prompt-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  background: var(--ink);
  color: var(--bg);
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.bv-meta { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
.bv-prompt {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-mid);
}
.bvp-text { display: inline; }
.bvp-var {
  font-family: var(--f-mono);
  font-size: 12.5px;
  background: rgba(var(--ink-rgb),0.07);
  color: var(--ink);
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-block;
  margin: 0 1px;
}
.bvp-var.brand {
  background: rgba(217,119,87,0.12);
  color: var(--ai-deep);
}
.bv-divider {
  text-align: center;
  margin: 14px 0;
  position: relative;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.bv-divider::before,
.bv-divider::after {
  content: "";
  display: inline-block;
  height: 1px;
  width: 36%;
  background: var(--line);
  vertical-align: middle;
  margin: 0 8px;
}
.bv-resolved {
  background: var(--bg-dark);
  border: 1px solid var(--line);
  color: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 13.5px;
  line-height: 1.6;
}
.bv-resolved b { color: #fff; font-weight: 600; }
.bv-hl {
  color: #F2A07E;
}
.bv-hl.ban { color: #F08070; text-decoration: line-through; text-decoration-color: rgba(240,128,112,0.5); }

/* ============================================================
   COLLECTION SEO (dark)
============================================================ */
.cseo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
  position: relative;
  margin-top: 30px;
}
@media (max-width: 920px){
  .cseo { grid-template-columns: 1fr; }
  .cseo-arrow { transform: rotate(90deg); justify-self: center; margin: 8px auto; }
}
.cseo-stage {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cseo-stage.s2 {
  opacity: 0.4;
  transform: translateY(8px);
  transition: opacity .6s ease, transform .6s ease;
}
.cseo-stage.s2.on { opacity: 1; transform: translateY(0); }

.cs-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.cseo-stage h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0 0 6px;
  color: #fff;
}
.cs-kw-h {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-top: 8px;
}
.cs-kws {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.kw {
  font-family: var(--f-mono);
  font-size: 11.5px;
  padding: 5px 10px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s ease, transform .35s ease, background .35s ease;
}
.kw.on { opacity: 1; transform: translateY(0); }
.kw.lg {
  font-size: 13px;
  font-weight: 500;
  background: rgba(217,119,87,0.20);
  color: #F2A07E;
}
.cs-intent {
  font-family: var(--f-mono);
  font-size: 12px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.16);
  border-radius: 6px;
  color: rgba(255,255,255,0.78);
  display: inline-block;
}
.cs-h1 { font-family: var(--f-serif); font-style: italic; font-weight: 400; font-size: 22px; line-height: 1.3; }
.cs-meta-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  padding: 10px 12px;
}
.cs-mc-h {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 4px;
}
.cs-mc-v { font-size: 13px; color: rgba(255,255,255,0.92); }
.cs-html {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: rgba(110,210,122,0.08);
  border: 1px solid rgba(110,210,122,0.18);
  border-radius: 8px;
  font-size: 12.5px;
  color: rgba(255,255,255,0.85);
}
.cs-html-tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  background: rgba(110,210,122,0.20);
  color: #6ED27A;
  padding: 2px 7px;
  border-radius: 4px;
}

.cseo-arrow svg { width: 80px; height: 16px; }
.cseo-arrow svg path {
  stroke-dashoffset: 0;
  animation: dashFlow 1.4s linear infinite;
}

.cseo-cost {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 6px;
  padding: 14px 22px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.78);
}
.cseo-cost .dt.ok { background: #6ED27A; }

/* ============================================================
   TEMPLATES GRID
============================================================ */
.tmpl-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 920px){ .tmpl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px){ .tmpl-grid { grid-template-columns: 1fr; } }
.tmpl {
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tmpl.featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.tmpl.featured p { color: rgba(30,30,42,0.7); }
.tmpl.featured .tmpl-model { background: rgba(30,30,42,0.10); color: var(--bg); }
.tmpl-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.tmpl-tag {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(var(--ink-rgb),0.08);
  color: var(--ink-mid);
}
.tmpl.featured .tmpl-tag { background: rgba(30,30,42,0.12); color: var(--bg); }
.tmpl-tag.t-seo    { background: rgba(122,142,240,0.14); color: var(--info); }
.tmpl-tag.t-prod   { background: rgba(217,119,87,0.18); color: var(--ai-deep); }
.tmpl-tag.t-social { background: rgba(149,191,72,0.16); color: #A9CB6B; }
.tmpl-tag.t-feed   { background: rgba(217,119,87,0.18); color: var(--ai-deep); }
.tmpl.featured .tmpl-tag.t-prod,
.tmpl.featured .tmpl-tag.t-feed { background: rgba(217,119,87,0.25); color: #6B2A14; }

.tmpl-model {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: rgba(var(--ink-rgb),0.04);
  border-radius: 999px;
  color: var(--muted);
}
.tmpl h4 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.022em;
  margin: 0;
  line-height: 1.15;
}
.tmpl p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.tmpl-foot {
  text-align: center;
  margin: 32px auto 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

/* ============================================================
   IMPACT TABLE
============================================================ */
.impact-table {
  padding: 0;
  overflow: hidden;
}
.imp-row {
  display: grid;
  grid-template-columns: 1.4fr 1.3fr 1.3fr 0.8fr;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.imp-row:last-child { border-bottom: none; }
.imp-row > span:first-child { font-weight: 500; }
.imp-row .hl {
  background: rgba(217,119,87,0.08);
  margin: -16px 0;
  padding: 16px 14px;
  font-weight: 500;
  color: var(--ai-deep);
}
.imp-row .del {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ok);
  font-weight: 600;
}
.imp-row.imp-head {
  background: var(--bg-card);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 22px;
}
.imp-row.imp-head .hl {
  background: var(--ai);
  color: #fff;
  margin: -14px 0;
  padding: 14px 14px;
}
.imp-row.imp-head .del { color: var(--muted); font-weight: 500; }
@media (max-width: 820px){
  .imp-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 16px; font-size: 13px; }
  .imp-row .hl { margin: 0; padding: 6px 10px; border-radius: 5px; }
  .imp-row.imp-head { display: none; }
  .imp-row .del::before { content: "Saved: "; color: var(--muted); font-weight: 400; }
}
.imp-foot {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  margin: 28px auto 0;
  max-width: 720px;
  line-height: 1.6;
}

/* ============================================================
   MODELS + BUDGET
============================================================ */
.models-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 14px;
}
@media (max-width: 920px){ .models-grid { grid-template-columns: 1fr; } }
.model-card { padding: 26px 26px 24px; }
.mc-h {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.mc-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin-bottom: 4px;
}
.mc-price { font-size: 12.5px; color: var(--muted); }

.budget-card {
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bc-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.bc-eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.bc-num {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.bc-num b {
  font-weight: 500;
  font-size: clamp(30px, 3.4vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1;
}
.bc-num .muted { font-size: 13px; }
.bc-bar {
  height: 6px;
  background: rgba(var(--ink-rgb),0.08);
  border-radius: 3px;
  overflow: hidden;
  margin: 4px 0 6px;
}
.bc-bar > span {
  display: block; height: 100%;
  background: var(--ai);
  border-radius: 3px;
}
.bc-feats {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bcf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 5px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
}
.bcf:last-child { border-bottom: none; }
.bcf-l { font-family: var(--f-mono); color: var(--muted); font-size: 11.5px; }
.bcf-v { color: var(--ink); }
.bc-foot { margin: 4px 0 0; }

/* ============================================================
   COMPARE
============================================================ */
.compare-table { padding: 0; overflow: hidden; }
.cmp-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cmp-row:last-child { border-bottom: none; }
.cmp-row > span { display: inline-flex; align-items: center; gap: 8px; }
.cmp-row .hl.ai-hl {
  background: rgba(217,119,87,0.08);
  margin: -16px 0;
  padding: 16px 14px;
  font-weight: 500;
}
.cmp-row.cmp-head {
  background: var(--bg-soft);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 14px 24px;
}
.cmp-row.cmp-head .hl.ai-hl {
  background: var(--ai);
  color: #fff;
  margin: -14px 0;
  padding: 14px 14px;
}
.cmp-row .dim { color: var(--muted-2); }
.cmp-row .dim.partial { color: var(--warn); }
.cmp-row .dt { width: 9px; height: 9px; }
@media (max-width: 720px){
  .cmp-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; padding: 12px 14px; font-size: 12.5px; }
  .cmp-row.cmp-head { padding: 12px 14px; }
  .cmp-row .hl.ai-hl { padding: 12px 8px; margin: -12px 0; }
}

.foot-cols a.on { color: #fff; }

/* ── White mode (html[data-theme="light"]) overrides ── */

/* token: --ai-deep was brightened for text on dark; restore the original
   ink-weight orange (covers every rule that reads var(--ai-deep)) */
html[data-theme="light"] { --ai-deep: #B6512F; }

/* brightened accent text → original dark-on-light values */
html[data-theme="light"] .kicker.ai { color: #6B2A14; }
html[data-theme="light"] .chip.ai-chip { color: #6B2A14; }
html[data-theme="light"] .tmpl-tag.t-social { color: #4F6F22; }

/* enrichment greens: original light-theme tints */
html[data-theme="light"] .en-tag.ok { background: rgba(29,122,58,0.12); }
html[data-theme="light"] .en-field.on {
  background: rgba(29,122,58,0.05);
  border-color: rgba(29,122,58,0.20);
}

/* featured template card: its var(--ink) surface is dark again in white
   mode, so chips/copy flip back to white-on-dark */
html[data-theme="light"] .tmpl.featured p { color: rgba(255,255,255,0.7); }
html[data-theme="light"] .tmpl.featured .tmpl-model { background: rgba(255,255,255,0.10); }
html[data-theme="light"] .tmpl.featured .tmpl-tag { background: rgba(255,255,255,0.12); }
html[data-theme="light"] .tmpl.featured .tmpl-tag.t-prod,
html[data-theme="light"] .tmpl.featured .tmpl-tag.t-feed {
  background: rgba(242,160,126,0.30);
  color: #FBEEE6;
}
