/* BoostAEO - ink navy, electric lime, warm paper */
:root {
  /* Text stays near-black in every theme; --brand / --lime (accent) change per theme. */
  --ink: #14121f; --ink-2: #2f2c45; --muted: #5d5a73; --line: #e7e6ee;
  --paper: #ffffff; --card: #ffffff; --band: #f8f8fb;
  --brand: #120f2e; --brand-dark: #120f2e; --brand-hi: #c6ff3d;
  --lime: #c6ff3d; --lime-deep: #8fcc00; --on-accent: #14121f;
  --coral: #e5482a; --coral-soft: #ffe9e4; --green-soft: #e4f6dd; --amber-soft: #fff4d0; --grey-soft: #f1f1f5;
  --radius: 10px; --shadow: 0 1px 2px rgba(18,15,46,.06);
  --head: 'Space Grotesk', system-ui, sans-serif; --body: 'Inter', system-ui, sans-serif;
}
/* Logo colour options (BRAND_THEME in .env, or ?theme= to preview) */
html[data-theme="blue"] { --brand: #1d4ed8; --brand-dark: #0f2a7a; --brand-hi: #ffd2c6; --lime: #ff6b4a; --lime-deep: #e5482a; --on-accent: #14121f; }
html[data-theme="emerald"] { --brand: #0b6b57; --brand-dark: #063d32; --brand-hi: #ffd166; --lime: #ffb81c; --lime-deep: #d99600; --on-accent: #14121f; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: #fff; line-height: 1.55; font-size: 16px; }
a { color: var(--ink); }
img { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mark { background: linear-gradient(transparent 58%, var(--lime) 58%); padding: 0 .1em; }

/* Header */
.topbar { background: var(--brand-dark); color: #fff; font-size: .9rem; text-align: center; padding: 8px 16px; }
.topbar a { color: var(--brand-hi); font-weight: 600; }
header.site { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 1.25rem; text-decoration: none; }
.logo svg { width: 36px; height: 36px; flex: none; overflow: visible; }
.logo .wm { color: var(--brand); letter-spacing: -0.03em; }
.logo .wm b { font-weight: 700; } .logo .wm span { font-weight: 500; background: linear-gradient(transparent 62%, var(--lime) 62%); padding: 0 2px; }
.m-bubble { fill: var(--brand); } .m-b { fill: #fff; } .m-spark { fill: var(--lime); stroke: var(--brand); stroke-width: 3.5; stroke-linejoin: round; paint-order: stroke; }
.logo.rev .wm { color: #fff; } .logo.rev .m-bubble { fill: var(--lime); } .logo.rev .m-b { fill: var(--brand-dark); } .logo.rev .m-spark { fill: #fff; stroke: var(--brand-dark); }
.logo.rev .wm span { background: none; color: var(--brand-hi); }
nav.main { display: flex; gap: 18px; margin-left: auto; align-items: center; }
nav.main a { text-decoration: none; font-weight: 500; font-size: .95rem; }
nav.main a:hover { text-decoration: underline; }
.cur-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: .8rem; }
.cur-toggle a { padding: 4px 10px; text-decoration: none; }
.cur-toggle a.on { background: var(--brand); color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 1rem; }
@media (max-width: 820px) {
  .menu-btn { display: block; }
  nav.main { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--paper); flex-direction: column; align-items: flex-start; padding: 16px; border-bottom: 1px solid var(--line); }
  nav.main.open { display: flex; }
}

/* Buttons + forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem var(--body); padding: 13px 22px; border-radius: 12px; border: 2px solid var(--brand); background: var(--brand); color: #fff; text-decoration: none; cursor: pointer; transition: transform .08s ease, box-shadow .08s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 0 -2px var(--lime-deep); }
.btn.lime { background: var(--lime); color: var(--on-accent); border-color: var(--brand); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.sm { padding: 7px 12px; font-size: .875rem; border-radius: 9px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
label { display: block; font-weight: 600; font-size: .9rem; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=url], textarea, select {
  width: 100%; font: 1rem var(--body); padding: 13px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(198,255,61,.55); }
.field { margin-bottom: 14px; }
.row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .row { grid-template-columns: 1fr; } }

/* Cards + sections */
section { padding: 64px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card.dark { background: var(--brand-dark); color: #fff; border-color: var(--brand-dark); }
.card.dark a { color: var(--brand-hi); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .74rem var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.eyebrow::before { content: ''; width: 22px; height: 4px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 0 1px var(--brand); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--grey-soft); white-space: nowrap; }
.pill.ok { background: var(--green-soft); color: #2d6a00; }
.pill.no { background: var(--coral-soft); color: #b3270f; }
.pill.wait { background: var(--amber-soft); color: #7a5b00; }
.pill.dark { background: var(--brand); color: var(--brand-hi); }
.flash { padding: 12px 16px; border-radius: 12px; margin: 16px 0; font-weight: 500; }
.flash.ok { background: var(--green-soft); } .flash.error { background: var(--coral-soft); }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero p.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 560px; }
.engines { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.engine-chip { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 600; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.chatgpt { background: #10a37f; } .dot.gemini { background: linear-gradient(135deg,#4285f4,#9b72cb,#d96570); }
.dot.ai_mode { background: #fbbc04; } .dot.ai_overview { background: #ea4335; }
.q-list .q-row { display: flex; gap: 8px; margin-bottom: 8px; }
.q-row input { flex: 1; }
.q-row button { flex: none; }
.add-q { background: none; border: 2px dashed var(--line); border-radius: 12px; width: 100%; padding: 10px; font: 600 .9rem var(--body); cursor: pointer; color: var(--muted); }
.suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.suggestions button { border: 1px solid var(--line); background: var(--grey-soft); border-radius: 999px; padding: 5px 10px; font-size: .82rem; cursor: pointer; }

/* Mock answer tracker */
.tracker { font-size: .92rem; }
.tracker .t-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.tracker .t-row:last-child { border-bottom: 0; }
.answer-bubble { background: var(--grey-soft); border-radius: 14px; padding: 14px 16px; font-size: .9rem; white-space: pre-wrap; }
.answer-bubble mark { background: var(--lime); padding: 0 2px; border-radius: 3px; }

/* Marquee */
.marquee { overflow: hidden; background: var(--brand-dark); color: #fff; padding: 12px 0; white-space: nowrap; }
.marquee div { display: inline-block; animation: slide 40s linear infinite; font-family: var(--head); font-weight: 600; }
.marquee span { margin: 0 22px; } .marquee span::before { content: '✦'; color: var(--brand-hi); margin-right: 22px; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee div { animation: none; } }

/* Steps / features */
.num { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--brand-hi); font: 700 1rem var(--head); display: grid; place-items: center; margin-bottom: 12px; }
.stat-big { font: 700 clamp(2.5rem, 7vw, 4.5rem) var(--head); letter-spacing: -0.03em; line-height: 1; }

/* Report */
.section-head { display: flex; align-items: center; gap: 12px; margin: 48px 0 18px; }
.section-head .num { margin: 0; }
.section-head h2 { margin: 0; }
.verdict { font: 700 clamp(3rem, 10vw, 5.5rem) var(--head); letter-spacing: -0.04em; line-height: 1; margin: 6px 0 12px; }
.verdict.Yes { color: #3f8a00; } .verdict.Sometimes { color: #a37300; } .verdict.No { color: var(--coral); }
.engine-card { border-radius: 16px; padding: 18px; border: 1px solid var(--line); background: #fff; }
.engine-card .pct { font: 700 2.4rem var(--head); }
.bar { height: 8px; background: var(--grey-soft); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.bar.lime i { background: var(--lime-deep); }
.matrix { width: 100%; border-collapse: separate; border-spacing: 6px; }
.matrix th { font-size: .78rem; font-weight: 600; text-align: left; color: var(--muted); max-width: 140px; }
.matrix td { text-align: center; border-radius: 10px; height: 44px; font-weight: 700; min-width: 70px; }
.matrix td.mentioned { background: var(--green-soft); color: #2d6a00; }
.matrix td.not_mentioned { background: var(--coral-soft); color: #b3270f; }
.matrix td.no_answer, .matrix td.error { background: var(--grey-soft); color: var(--muted); }
.matrix td.engine-name { text-align: left; background: none; font-weight: 600; white-space: nowrap; }
.matrix td button { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; }
.scroll-x { overflow-x: auto; }
table.list { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.list th { text-align: left; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 8px; border-bottom: 2px solid var(--brand); }
table.list td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list tr.you td { background: color-mix(in srgb, var(--lime) 45%, #fff); }
.progress-wrap { max-width: 560px; margin: 80px auto; text-align: center; }
.spinner { width: 48px; height: 48px; border: 5px solid var(--grey-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.quote-box { border-left: 4px solid var(--lime-deep); padding: 10px 16px; background: #fff; border-radius: 0 12px 12px 0; margin-bottom: 10px; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
details summary { cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details summary::after { content: '+'; font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { margin: 10px 0 0; color: var(--ink-2); }

/* Dashboard */
.dash-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 32px 0 20px; }
.kpi { font: 700 2rem var(--head); }
.trend { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 10px; }
.trend div { flex: 1; background: var(--brand); border-radius: 6px 6px 0 0; min-height: 4px; position: relative; }
.trend div span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: .7rem; color: var(--muted); }
.task { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.task pre { white-space: pre-wrap; font: .85rem var(--body); background: var(--grey-soft); padding: 10px; border-radius: 10px; margin: 8px 0 0; }
.task.done .t-title { text-decoration: line-through; color: var(--muted); }
.banner-demo { background: var(--amber-soft); border: 1px solid #f0d77a; padding: 10px 16px; border-radius: 12px; font-size: .9rem; margin: 16px 0; }

footer.site { background: var(--brand-dark); color: #cfcce4; padding: 48px 0 32px; margin-top: 40px; font-size: .92rem; }
footer.site a { color: #fff; }

footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { footer.site .cols { grid-template-columns: 1fr; } }
footer.site ul { list-style: none; padding: 0; margin: 0; } footer.site li { margin-bottom: 6px; }
@media print { header.site, footer.site, .topbar, .no-print { display: none !important; } body { background: #fff; } }

/* Modal (ebook popup) */
.modal { position: fixed; inset: 0; background: rgba(18,15,46,.6); z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-card { max-width: 420px; width: 100%; position: relative; text-align: center; }
.modal-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; font-size: 1.2rem; cursor: pointer; }
/* Book cover (CSS only) */
.book-cover { width: 200px; aspect-ratio: 3/4; margin: 0 auto 18px; background: var(--brand); color: var(--brand-hi); border-radius: 6px 14px 14px 6px; box-shadow: inset 10px 0 0 rgba(255,255,255,.08), 0 20px 40px -18px rgba(18,15,46,.7); display: flex; flex-direction: column; justify-content: center; padding: 18px; text-align: left; transform: rotate(-3deg); }
.book-cover span { font: 700 1.25rem/1.05 var(--head); }
.book-cover i { font-style: normal; color: #fff; font-size: .8rem; margin-top: 10px; }
.book-cover.small-cover { width: 120px; } .book-cover.small-cover span { font-size: .8rem; }
.book-cover.big { width: 260px; } .book-cover.big span { font-size: 1.6rem; }
/* Tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: 600 .82rem var(--body); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.tabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.check-list { list-style: none; padding: 0; } .check-list li { padding-left: 28px; position: relative; margin-bottom: 10px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 6px; background: var(--lime); font-size: .75rem; display: grid; place-items: center; font-weight: 700; }

/* Question tracker */
.q-track { padding: 16px 0; border-bottom: 1px solid var(--line); }
.q-track:last-child { border-bottom: 0; }
.steps { display: inline-flex; align-items: center; gap: 6px; }
.step { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink-2); display: grid; place-items: center; font: 600 .78rem var(--body); }
.step.hit { background: #2d8a1a; border-color: var(--brand); color: #fff; }
.step-dot { width: 7px; height: 7px; border-radius: 50%; background: #cfcbbd; }
details.win summary::after { content: ''; }
.dot.perplexity { background: #20808d; } .dot.claude { background: #d97757; }

/* Campaign builder */
input.locked { background: var(--grey-soft); color: var(--muted); }
.checking-bar { height: 10px; border: 2px solid var(--brand); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.checking-bar i { display: block; height: 100%; width: 40%; background: repeating-linear-gradient(45deg, var(--coral) 0 6px, #ff8a73 6px 12px); animation: chk 1.2s ease-in-out infinite alternate; }
@keyframes chk { from { margin-left: 0; } to { margin-left: 60%; } }
.diff-meter { position: relative; height: 10px; border-radius: 99px; border: 2px solid var(--brand); background: linear-gradient(90deg, #3aa845 0 25%, #e3c534 25% 50%, #f08a2b 50% 75%, #e0301e 75% 100%); margin: 10px 0 2px; }
.diff-meter i { position: absolute; top: -10px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--brand); transform: translateX(-6px); }
.price-skel { display: inline-block; width: 64px; height: 18px; border-radius: 99px; background: var(--grey-soft); }
.linklike { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: .8rem; padding: 0 4px; }
.cb-table td { vertical-align: middle; }
.cb-table input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--ink); }
.paybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 2px solid var(--brand); padding: 14px 0; box-shadow: 0 -8px 24px -16px rgba(18,15,46,.4); }
.paybar[hidden] { display: none; }
.cb-table th, .cb-table td { padding: 10px 6px; }
.cb-table th:first-child, .cb-table td:first-child { padding-left: 12px; }
.cb-table th:last-child, .cb-table td:last-child { padding-right: 14px; }
@media (max-width: 480px) { .cb-table td:nth-child(3) { min-width: 92px !important; } .cb-table th:nth-child(3) { font-size: .65rem; } }

/* Tools: audit, schema, recommendations */
.score-ring { width: 104px; height: 104px; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 8px solid var(--grey-soft); }
.score-ring b { font: 700 2rem var(--head); line-height: 1; } .score-ring span { font-size: .8rem; color: var(--muted); }
.score-ring.good { border-color: #6cc24a; } .score-ring.mid { border-color: #f2b632; } .score-ring.bad { border-color: var(--coral); }
.audit-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.audit-row:last-child { border-bottom: 0; }
.code-out { background: #0f1020; color: #e8e8f0; border-radius: 12px; padding: 14px; font: 12.5px/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-word; max-height: 60vh; overflow: auto; margin: 12px 0; }
.faq-row { display: grid; gap: 6px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.recs { display: grid; gap: 10px; margin-top: 10px; }
.rec { padding: 14px 18px; } .rec summary { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.rec summary::after { display: none; }
.rec-rank { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); color: var(--brand-hi); display: grid; place-items: center; font: 700 .85rem var(--head); flex: none; }
.rec-title { flex: 1 1 280px; display: flex; flex-direction: column; gap: 2px; }
.rec-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.rec-legend { margin-top: -6px; }

/* Promise strip */
.promise-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border: 2px solid var(--brand); border-radius: var(--radius); overflow: hidden; }
.promise-strip > div { padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); }
.promise-strip > div:last-child { border-right: 0; }
.promise-num { font: 700 1.6rem var(--head); color: var(--brand); background: linear-gradient(transparent 62%, var(--lime) 62%); align-self: flex-start; padding: 0 2px; }
@media (max-width: 640px) { .promise-strip > div { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Pricing */
.period-toggle { display: flex; justify-content: center; gap: 0; margin: 0 auto 20px; border: 1px solid var(--line); border-radius: 999px; width: max-content; overflow: hidden; }
.period-toggle a { padding: 8px 16px; text-decoration: none; font-weight: 600; font-size: .9rem; }
.period-toggle a.on { background: var(--brand); color: #fff; }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan-card h3 { margin: 0; } .plan-card form, .plan-card > .btn { margin-top: auto; }
.plan-card.featured { border: 2px solid var(--brand); }
.plan-badge { position: absolute; top: -12px; right: 16px; }
.plan-price { font: 700 2rem var(--head); margin: 10px 0; letter-spacing: -0.02em; }

/* AEO/GEO audit v2 */
.score-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.score-pair .score-ring { margin: 0 auto; }
@media (max-width: 520px) { .score-pair { gap: 10px; } .score-pair .card { padding: 14px 10px; } .score-pair .score-ring { width: 84px; height: 84px; border-width: 6px; } .score-pair .score-ring b { font-size: 1.6rem; } }
.prio { display: inline-block; font: 700 .78rem var(--head); padding: 4px 9px; border-radius: 8px; background: var(--grey-soft); color: var(--ink, #222); }
.prio.p1 { background: #ff5a1f; color: #fff; } .prio.p2 { background: var(--amber-soft); color: #7a5b00; } .prio.p3 { background: var(--grey-soft); color: var(--muted); }
.prio.sm { font-size: .68rem; padding: 2px 6px; vertical-align: 2px; }
.rec-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; margin-bottom: 10px; }
.audit-group { margin-bottom: 16px; padding: 18px 22px; }
.audit-group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.audit-group-head h3 { margin: 0; }
.dot-st { width: 10px; height: 10px; border-radius: 50%; margin-top: 7px; flex: none; background: #c9c9c9; }
.dot-st.pass { background: #22c55e; } .dot-st.fail { background: #e11d1d; } .dot-st.warn { background: #c9c9c9; }
.rec-line { margin-top: 6px; color: #d9480f; font-weight: 600; }
.bot-list { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 8px; }
.st-pass { color: #16a34a; } .st-fail { color: #e11d1d; } .st-warn { color: #a16207; }
table.cmp { width: 100%; border-collapse: collapse; } table.cmp th, table.cmp td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
table.cmp td:not(:first-child), table.cmp th:not(:first-child) { text-align: center; width: 22%; }


/* ---- BoostAEO home components ---- */
.band { background: var(--band); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-split { background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--band) 100%); }
.tick-list { list-style: none; padding: 0; margin: 18px 0 0; }
.tick-list li { padding-left: 28px; position: relative; margin: 8px 0; }
.tick-list li::before { content: ''; position: absolute; left: 0; top: 6px; width: 16px; height: 10px; border-left: 3px solid var(--brand); border-bottom: 3px solid var(--brand); transform: rotate(-45deg); }
.form-card { border-top: 5px solid var(--lime); }
.form-tag { font: 700 .72rem var(--head); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.engines-band { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.engines-band .wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.split-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: end; margin-bottom: 28px; }
.split-head h2 { margin: 0; } .split-head p { margin: 0; }
@media (max-width: 760px) { .split-head { grid-template-columns: 1fr; gap: 8px; } }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .metric-grid { grid-template-columns: 1fr; } }
.metric { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.metric h3 { margin: 10px 0 4px; }
.metric-top { display: flex; justify-content: space-between; align-items: center; }
.metric-n { font: 700 2.6rem var(--head); letter-spacing: -.03em; color: var(--brand); line-height: 1; }
.sov div { display: grid; grid-template-columns: 96px 1fr 40px; gap: 8px; align-items: center; font-size: .82rem; margin-top: 8px; }
.sov i { display: block; height: 10px; border-radius: 3px; background: var(--brand); } .sov i.c { background: #c9c7d6; }
.sov b { text-align: right; }
.source-list { list-style: none; padding: 0; margin: 10px 0 0; } .source-list li { display: flex; justify-content: space-between; padding: 6px 0; border-top: 1px dashed var(--line); }
.mini-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; } .mini-bars span { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
.loop { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: loop; }
.loop li { counter-increment: loop; padding: 20px 22px 20px 0; border-top: 3px solid var(--brand); position: relative; }
.loop li::before { content: counter(loop, decimal-leading-zero); display: block; font: 700 .8rem var(--head); color: var(--muted); margin-bottom: 6px; }
.loop li b { display: block; font: 700 1.25rem var(--head); margin-bottom: 4px; }
.loop li span { color: var(--muted); font-size: .92rem; }
.loop li:not(:last-child)::after { content: '→'; position: absolute; right: 8px; top: 16px; color: var(--brand); font-weight: 700; }
@media (max-width: 760px) { .loop { grid-template-columns: 1fr 1fr; gap: 0 16px; } }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 760px) { .tool-grid { grid-template-columns: 1fr; } }
.tool { background: #fff; padding: 22px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.tool:hover { background: var(--band); }
.tool-ic { width: 38px; height: 38px; border-radius: 8px; background: var(--brand); color: var(--lime); display: grid; place-items: center; font: 700 1rem var(--head); margin-bottom: 8px; }
.tool span:last-child { color: var(--muted); font-size: .9rem; }
.answer-card { padding: 0; overflow: hidden; }
.answer-head, .answer-foot { padding: 12px 18px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.answer-head { border-bottom: 1px solid var(--line); } .answer-foot { border-top: 1px solid var(--line); background: var(--band); }
.answer-card .answer-bubble { margin: 16px 18px; }
.who-card h3 { margin-top: 0; } .who-card .btn { margin-top: 14px; }
.addon { display: flex; gap: 24px; align-items: center; justify-content: space-between; border-left: 6px solid var(--lime); }
@media (max-width: 760px) { .addon { flex-direction: column; align-items: flex-start; } }
.faq-n { font: 700 .8rem var(--head); color: var(--muted); margin-right: 12px; }
.cta-band { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 32px; }
.cta-form { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; max-width: 460px; } .cta-form input { flex: 1; min-width: 180px; }

.run-strip { display: inline-flex; gap: 3px; } .run-strip i { width: 12px; height: 18px; border-radius: 2px; background: #dcdbe6; }
.run-strip i.hit { background: var(--brand); box-shadow: inset 0 -4px 0 var(--lime); } .run-strip i.todo { background: transparent; border: 1px dashed #dcdbe6; }
.toc { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
@media (max-width: 760px) { .toc { grid-template-columns: 1fr; } }
.toc li { display: flex; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.toc-n { font: 700 1.4rem var(--head); color: var(--brand); min-width: 36px; }
.toc b { display: block; } .toc span { color: var(--muted); font-size: .9rem; }
.excerpt { border-left: 6px solid var(--lime); } .excerpt u { text-decoration-color: var(--lime); text-decoration-thickness: 3px; }
.day-bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding-top: 8px; }
.day-bars div { flex: 1; max-width: 36px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; min-width: 8px; }
.day-bars i { display: block; width: 100%; background: var(--brand); border-radius: 3px 3px 0 0; box-shadow: inset 0 3px 0 var(--lime); }
.day-bars span { font-size: .65rem; color: var(--muted); }

.src-matrix th, .src-matrix td { white-space: nowrap; }
.heat { display: inline-block; min-width: 44px; padding: 3px 6px; border-radius: 6px; font-size: .8rem; font-weight: 600; background: #f3f2f7; color: var(--muted); }
.heat.h1 { background: #ecebf4; color: var(--brand); } .heat.h2 { background: #c9c6e0; color: var(--brand); } .heat.h3 { background: var(--brand); color: #fff; }

/* Fix plan */
.fp-progress { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
.fp-bar { height: 10px; background: #ecebf4; border-radius: 6px; margin-top: 8px; overflow: hidden; } .fp-bar i { display: block; height: 100%; background: var(--brand); box-shadow: inset 0 -3px 0 var(--lime); }
.fp-stage { margin-top: 22px; } .fp-stage-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; } .fp-stage-head h3 { margin: 0; }
.fp-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: 8px; }
.fp-item > summary { padding: 12px 16px; cursor: pointer; list-style: none; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.fp-item > summary::-webkit-details-marker { display: none; }
.fp-item.done > summary { opacity: .65; }
.fp-tick { width: 18px; height: 18px; border: 2px solid var(--brand); border-radius: 5px; display: inline-grid; place-items: center; font-size: .75rem; flex: none; transform: translateY(3px); }
.fp-item.done .fp-tick { background: var(--brand); color: var(--lime); }
.fp-body { padding: 0 16px 14px 44px; } .fp-body ol { margin: 6px 0 10px; padding-left: 18px; }
.fp-snippet { position: relative; } .fp-snippet pre { background: #14112b; color: #e9e7f5; border-radius: 8px; padding: 14px; overflow-x: auto; font-size: .78rem; line-height: 1.5; margin: 0; white-space: pre-wrap; word-break: break-word; }
.fp-snippet .fp-copy { position: absolute; top: 8px; right: 8px; background: #fff; }
.fp-item > summary { justify-content: flex-start; text-align: left; } .fp-item > summary::after { content: none !important; }

/* Compliance checklist */
.cl-summary { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.cl-ok, .cl-no { font: 700 1.1rem var(--head); } .cl-ok { color: #16a34a; } .cl-no { color: #e11d1d; }
.cl-table { width: 100%; border-collapse: collapse; } .cl-table td { padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.cl-table tr:first-child td { border-top: 0; }
.cl-mark { width: 28px; font-weight: 800; font-size: 1.05rem; text-align: center; } .cl-mark.pass { color: #16a34a; } .cl-mark.fail { color: #e11d1d; } .cl-mark.warn { color: #d97706; }
.fp-x { width: 18px; color: #e11d1d; font-weight: 800; flex: none; }
@media (max-width: 640px) { .cl-table td:nth-child(3) { display: none; } }
@media print { .fp-item { break-inside: avoid; } .fp-item:not([open]) .fp-body { display: block; } }
.play-tag { display: inline-block; font: 700 .66rem var(--head); letter-spacing: .04em; padding: 2px 6px; border-radius: 5px; background: #eefbd6; color: #3f5f00; vertical-align: 2px; white-space: nowrap; }

[hidden] { display: none !important; }

/* FAQ questions are real headings (AI reads them), styled like the summary text. */
details.faq summary { align-items: baseline; }
.faq-q { display: inline; font: inherit; margin: 0; flex: 1; }
details.faq summary > .faq-n + .faq-q { margin-left: 0; }
.period-pick { display: flex; gap: 14px; justify-content: center; margin: 4px 0 10px; }
.period-pick label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; font-weight: 500; }
/* Learn articles and About */
.learn h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin: 8px 0 10px; }
.learn h2 { margin-top: 36px; }
.learn-sec ul, .learn-sec ol, .learn ul { padding-left: 20px; }
.learn-sec li, .learn li { margin: 6px 0; }
.crumbs { margin-top: 28px; color: var(--muted); }
.crumbs a { color: inherit; }
.byline { margin: 0 0 18px; }
.answer-box { border-left: 4px solid var(--accent, #c6ff3d); background: var(--band); padding: 14px 18px; border-radius: 8px; }
.answer-box p { margin: 8px 0 0; font-size: 1.08rem; }
.learn-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.learn-list li { display: flex; gap: 12px; align-items: flex-start; }
.related li { margin: 6px 0; }
.learn section.learn-sec { padding: 0; }
.learn h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); margin: 32px 0 10px; }
.cur-toggle.cur-big { font-size: .95rem; }
.cur-toggle.cur-big a { padding: 8px 18px; font-weight: 600; }
