/* Talentdecx editorial dark-gold UI. Mobile first; every tap target is at least 44px; text contrast at least 4.5:1. */
:root {
  --bg: #0e0d0b;
  --surface: #17150f;
  --surface-2: #1f1c14;
  --line: #3a3325;
  --ink: #f3ede0;
  --ink-2: #e9e1cf;
  --muted: #bdb39c;
  --gold: #d9b65a;
  --gold-2: #e8cb7a;
  --on-gold: #15110a;
  --danger: #ff9b8a;
  --ok: #9bddb1;
  --warn: #f2c46b;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 14px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #0e0d0b; color: #f3ede0; font: 16px/1.6 var(--sans); padding-bottom: 96px; overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0 0 12px; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 7vw, 52px); }
h2 { font-size: clamp(22px, 4.6vw, 32px); }
h3 { font-size: 20px; }
h4 { font-size: 17px; }
p { margin: 0 0 12px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: 8px; top: -120px; background: #d9b65a; color: #15110a; padding: 12px 16px; border-radius: 8px; z-index: 50; min-height: 44px; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow { font: 700 13px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 760px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: #0e0d0b; position: sticky; top: 0; z-index: 20; }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding-top: 6px; padding-bottom: 6px; }
.wordmark { font: 700 21px/1 var(--serif); letter-spacing: 0.08em; color: var(--ink); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.wordmark span { color: var(--gold); }
.nav { display: flex; flex-wrap: wrap; gap: 2px 4px; margin-left: auto; }
.nav-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; color: var(--ink-2); text-decoration: none; border-radius: 10px; font-size: 15px; }
.nav-link.on, .nav-link:hover { color: var(--gold-2); background: var(--surface-2); }
@media (max-width: 640px) {
  .top { position: static; }
  .nav { margin-left: -10px; width: calc(100% + 20px); }
  .nav-link { padding: 0 10px; font-size: 14px; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 999px;
  font: 600 15px/1.25 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; text-align: center; }
.btn-gold { background: #d9b65a; color: #15110a; }
.btn-gold:hover { background: #e8cb7a; color: #15110a; }
.btn-ghost { background: transparent; color: #f3ede0; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-line { background: transparent; color: var(--gold-2); border-color: var(--gold); }
.btn-sm { min-height: 44px; padding: 8px 14px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.cta-col { display: grid; gap: 10px; align-content: center; }
button { font: inherit; }

/* sections */
.hero { padding: 40px 0 24px; }
.page-head { padding: 32px 0 12px; }
.page-head.center { text-align: center; max-width: 640px; margin: 0 auto; }
.page-head.center .lede { margin-left: auto; margin-right: auto; }
.page-head.center .cta-row { justify-content: center; }
.band { padding: 28px 0; border-top: 1px solid var(--line); }
.split { display: grid; gap: 20px; }
@media (min-width: 820px) { .split { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.prose { max-width: 720px; padding: 32px 0; }
.crumb { margin: 16px 0 0; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; }
.ref { font: 700 22px/1.2 ui-monospace, Consolas, monospace; color: var(--gold-2); letter-spacing: 0.06em; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 10px; margin: 20px 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stat b { display: block; font: 600 28px/1.1 var(--serif); color: var(--gold-2); }
.stat span { color: var(--muted); font-size: 14px; }

.ticks { padding: 0; list-style: none; display: grid; gap: 10px; }
.ticks li { padding-left: 28px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 12px; height: 7px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.steps { list-style: none; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.step { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.step-n { flex: 0 0 36px; height: 36px; border-radius: 50%; background: #d9b65a; color: #15110a; display: grid; place-items: center; font-weight: 700; }

/* cards */
.grid { display: grid; gap: 14px; }
.grid.cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin: 16px 0; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.creator { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 12px; }
.creator .thumb { display: block; border-radius: 10px; overflow: hidden; align-self: start; }
.creator .thumb img { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.card-body { min-width: 0; }
.vid { font: 700 16px/1.3 ui-monospace, Consolas, monospace; letter-spacing: 0.04em; color: var(--ink); margin: 0 0 6px; }
.vid-h { font-family: ui-monospace, Consolas, monospace; letter-spacing: 0.04em; }
.meta { color: var(--muted); font-size: 14px; margin: 8px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 13px; background: #1f1c14; color: #e9e1cf; border: 1px solid var(--line); }
.chip-gold { background: #2a2415; color: #e8cb7a; border-color: #5a4a22; }
.chip-line { background: transparent; color: #e9e1cf; }
.card-actions { display: grid; gap: 8px; margin-top: 12px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 8px; font: 700 12px/1.4 var(--sans); letter-spacing: 0.04em; background: #1f1c14; color: #bdb39c; border: 1px solid var(--line); }
.badge.t1 { background: #1d2420; color: #9bddb1; border-color: #35513f; }
.badge.t2 { background: #2a2415; color: #e8cb7a; border-color: #5a4a22; }
.badge.t3 { background: #d9b65a; color: #15110a; border-color: #d9b65a; }
.empty { padding: 24px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* profile */
.profile { display: grid; gap: 20px; padding: 16px 0 24px; }
@media (min-width: 860px) { .profile { grid-template-columns: 1.1fr 1fr; } }
.facts { display: grid; gap: 10px; margin: 0; }
.facts div { border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.facts dt { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
.facts dd { margin: 2px 0 0; }
.radar-wrap { display: grid; gap: 16px; align-items: center; }
@media (min-width: 760px) { .radar-wrap { grid-template-columns: minmax(0, 460px) 1fr; } }
.radar { width: 100%; max-width: 460px; display: block; }
.axes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; margin: 0; }
.axes div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.axes dt { color: var(--muted); font-size: 13px; }
.axes dd { margin: 0; font-weight: 700; }
.hooks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.hook { margin: 0; }
.hook img { width: 100%; aspect-ratio: 9 / 16; border-radius: 12px; display: block; border: 1px solid var(--line); }
.hook figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }

/* forms */
.form { display: grid; gap: 6px; }
.form.narrow { max-width: 620px; }
label { font-weight: 600; font-size: 15px; margin-top: 8px; }
input, select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 10px; border: 1px solid #5a5140; background: #17150f; color: #f3ede0; font: 16px/1.4 var(--sans); }
textarea { min-height: 96px; resize: vertical; }
input[readonly] { color: #e9e1cf; overflow-wrap: anywhere; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: 2px solid var(--gold); outline-offset: 0; }
fieldset { border: 0; padding: 0; margin: 8px 0 0; min-width: 0; }
legend { font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 6px; }
.group { margin-top: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px; margin: 0; border: 1px solid var(--line); border-radius: 999px;
  background: #17150f; color: #f3ede0; font-weight: 500; cursor: pointer; }
.check input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: #d9b65a; flex: 0 0 auto; }
.check:has(input:checked) { border-color: var(--gold); background: #2a2415; color: #f3ede0; }
.check.consent { border-radius: 12px; align-items: flex-start; }
.check.consent input { margin-top: 3px; }
.err { color: var(--danger); font-size: 14px; }
.alert { border: 1px solid #7a3b32; background: #2a1613; color: #ffd8d0; padding: 12px 14px; border-radius: 12px; margin: 12px 0; }
.alert ul { margin: 0; padding-left: 20px; }
.alert.ok { border-color: #35513f; background: #16231b; color: #d6f5e0; }
.alert.warn { border-color: #6b5420; background: #2a2210; color: #fbe6b5; }
.note-box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 14px 0; }
.note-box summary, details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 600; }

/* discover filters */
.filters details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 14px; }
.filters summary { font-weight: 700; }
.filter-grid { display: grid; gap: 4px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

/* join steps */
.progress { list-style: none; padding: 0; margin: 8px 0 4px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 13px; }
.progress li { padding: 8px; border-radius: 10px; background: #17150f; color: #bdb39c; border: 1px solid var(--line); text-align: center; }
.progress li.on { background: #2a2415; color: #e8cb7a; border-color: var(--gold); }
.form-step legend { font-family: var(--serif); font-size: 22px; }
.step-nav { display: flex; gap: 10px; margin-top: 16px; }
.step-nav .btn { flex: 1; }
.js .steps-form .form-step[hidden] { display: none; }
.channel { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 10px; display: grid; gap: 4px; }
.channel-name { margin: 0; font-weight: 700; color: var(--gold-2); }
.scout-note b { color: var(--gold-2); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { padding: 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.state { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 13px; font-weight: 700; background: #1f1c14; color: #e9e1cf; }
.state.active, .state.licensed { background: #16231b; color: #9bddb1; }
.state.expiring, .state.whitelist_ready { background: #2a2210; color: #f2c46b; }
.state.expired, .state.revoked { background: #2a1613; color: #ff9b8a; }
.state.pending { background: #1f1c14; color: #bdb39c; }

/* vault */
.status-card { background: var(--surface); border: 1px solid var(--gold); border-radius: var(--radius); padding: 14px; display: grid; gap: 8px; justify-items: start; }
.ladder { list-style: none; padding: 0; display: grid; gap: 10px; }
.tier-rung { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); }
.tier-rung.reached { border-color: var(--gold); }
.tier-rung ul { margin: 0; padding-left: 20px; color: var(--ink-2); }
.guide { list-style: none; padding: 0; display: grid; gap: 10px; }
.guide-step { display: grid; grid-template-columns: 40px 1fr; gap: 12px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface); }
.guide-step.done { border-color: #35513f; }
.guide-n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #1f1c14; color: #e8cb7a; border: 1px solid var(--gold); }
.guide-step.done .guide-n { background: #16231b; color: #9bddb1; border-color: #35513f; }
.guide-step b { color: var(--gold-2); }
.progress-line { color: var(--gold-2); font-weight: 600; }
.ok-line { color: var(--ok); font-weight: 600; }

/* scout */
.qr-band { display: grid; gap: 18px; align-items: center; }
@media (min-width: 760px) { .qr-band { grid-template-columns: auto 1fr; } }
.qr-box { background: #ffffff; border-radius: 16px; padding: 10px; justify-self: center; max-width: 300px; }
.qr-box svg { display: block; width: 100%; height: auto; }

/* admin */
.admin-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 24px 0 8px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }
.tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: 14px; }
.tab.on, .tab:hover { border-color: var(--gold); color: var(--gold-2); background: #2a2415; }
.row-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin: 10px 0; padding: 0 14px; }
.row-card > summary { gap: 8px; flex-wrap: wrap; padding: 8px 0; }
.row-card .vid { margin: 0; }
.row-body { display: grid; gap: 16px; padding: 8px 0 16px; }
.row-body > *, .grid > *, .calc > *, .split > * { min-width: 0; }
.private li, .kv li { overflow-wrap: anywhere; }
@media (min-width: 900px) { .row-body { grid-template-columns: 1fr 1fr; } }
.private { background: #120f0a; border: 1px solid #5a4a22; border-radius: 12px; padding: 12px; }
.private ul, .kv { padding-left: 18px; margin: 0 0 12px; }
.radar-inputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 0 10px; }
.brief-items { list-style: none; padding: 0; display: grid; gap: 12px; }
.brief-item { border-top: 1px solid var(--line); padding-top: 10px; }
.form-row { display: grid; gap: 0 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.split-preview { background: #120f0a; border: 1px solid var(--gold); border-radius: 12px; padding: 12px; margin-top: 10px; }
.mini { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.mini label { margin: 0; }
.mini input, .mini select { width: auto; min-width: 110px; flex: 1; }
.ticket { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--surface); margin: 10px 0; }
.link-list { padding-left: 18px; }
.link-list a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.studio-sec { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 14px; margin: 10px 0; }
.studio-sec > summary { font-family: var(--serif); font-size: 20px; }
.studio-body { padding-bottom: 14px; display: grid; gap: 4px; }
.studio-group, .studio-item { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 10px; display: grid; gap: 4px; }
.studio-item.new { border-style: dashed; }
.studio-save { position: sticky; bottom: 76px; padding: 10px 0; background: #0e0d0b; }

/* calculator and playbook */
.calc { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.calc-card { display: grid; gap: 4px; align-content: start; }
.calc-out { display: grid; gap: 8px; margin: 14px 0; }
.calc-out div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.calc-out dt { color: var(--muted); }
.calc-out dd { margin: 0; font-weight: 700; color: var(--gold-2); text-align: right; }
.pitch ol { padding-left: 20px; display: grid; gap: 8px; }
.faq { border-bottom: 1px solid var(--line); }
.faq p { color: var(--ink-2); }

/* floating controls */
.brief-fab, .ux-pill { position: fixed; bottom: 16px; z-index: 30; min-height: 48px; padding: 0 18px; border-radius: 999px; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }
.brief-fab { right: 16px; background: #d9b65a; color: #15110a; border: 0; }
.brief-fab .count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 13px; background: #15110a; color: #e8cb7a; margin-left: 6px; font-size: 13px; }
.ux-pill { left: 16px; background: #17150f; color: #e8cb7a; border: 1px solid #d9b65a; }
.sheet { border: 1px solid var(--line); border-radius: 18px; background: #17150f; color: #f3ede0; padding: 0; width: min(100% - 24px, 560px); max-height: calc(100vh - 48px); }
.sheet::backdrop { background: rgba(0, 0, 0, 0.72); }
.sheet-in { padding: 16px; display: grid; gap: 6px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-head h2 { margin: 0; font-size: 22px; }
.brief-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.brief-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 4px 4px 12px; }

/* footer */
.foot { border-top: 1px solid var(--line); margin-top: 40px; padding: 24px 0 12px; background: #0e0d0b; }
.foot-brand { font-family: var(--serif); font-size: 18px; color: #f3ede0; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0; }
.foot-links a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; overflow-wrap: anywhere; }

/* v2: staging bar, rate tiers, legal documents */
.staging-bar { background: #2a2210; color: #fbe6b5; border-bottom: 1px solid #6b5420; font-size: 14px; padding: 8px 0; }
.staging-bar b { color: #f2c46b; text-transform: uppercase; letter-spacing: 0.08em; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.pkg { display: grid; gap: 6px; align-content: start; border-color: #5a4a22; }
.pkg-name { margin: 0; }
.pkg-price { margin: 0; }
.pkg-price b { font: 600 30px/1.1 var(--serif); color: #e8cb7a; }
.pkg-inc { font-weight: 600; color: #f3ede0; margin: 0; }
.pkg [aria-pressed="true"] { background: #d9b65a; color: #15110a; border-color: #d9b65a; }
.rate-card { padding-top: 16px; }
.legal { max-width: 780px; }
.legal-sec { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.legal-sec h2 { font-size: 22px; }
.legal-sec p { color: #e9e1cf; }
.toc-list { padding-left: 22px; margin: 4px 0 8px; }
.toc-list a { display: inline-flex; align-items: center; min-height: 44px; }

/* v2: hook and script matrix */
.hk-filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; }
.hk-filters .form-row { gap: 0 10px; }
.hk-count { font-weight: 600; color: #e8cb7a; margin: 12px 0 4px; }
.hk-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); margin: 12px 0; }
.hk-card { display: grid; gap: 8px; align-content: start; }
.js .hk-card[hidden] { display: none; }
.hk-card h3 { margin: 0; }
.hk-open { margin: 0; padding: 12px 14px; border-left: 4px solid #d9b65a; background: #120f0a; border-radius: 0 10px 10px 0;
  font: 600 19px/1.35 var(--serif); color: #f3ede0; }
.hk-label { font: 700 12px/1.4 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: #bdb39c; margin: 4px 0 0; }
.hk-shots { margin: 4px 0 8px; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.hk-shots li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.hk-shots .tc { font: 700 13px/1.5 ui-monospace, Consolas, monospace; color: #e8cb7a; }
.hk-cta { display: inline-block; padding: 8px 12px; border-radius: 10px; background: #d9b65a; color: #15110a; font-weight: 700; }
.hk-why { color: #e9e1cf; margin: 0; }
.hk-verticals { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }

/* v2: playbook language toggle */
.lang-toggle { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.lang-toggle a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 120px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); color: #f3ede0; text-decoration: none; font-weight: 700; }
.lang-toggle a[aria-current="true"] { background: #d9b65a; color: #15110a; border-color: #d9b65a; }
.lang-sub a { min-width: 0; font-weight: 600; font-size: 14px; }
.js [data-lang-pane][hidden], [data-lang-pane][hidden] { display: none; }
.pitch-say { font-size: 17px; color: #f3ede0; }
.tier-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 12px; }
.tier-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px; border-radius: 999px; border: 1px solid #5a4a22;
  background: #2a2415; color: #f3ede0; text-decoration: none; font-size: 14px; }
.tier-chip b { color: #e8cb7a; }
.tier-chip span { color: #bdb39c; }
.tier-chip:hover { border-color: var(--gold); color: #f3ede0; }

/* v2.5: Accredited card, deposits, go-live */
.badge-wrap { display: grid; gap: 16px; align-items: start; }
@media (min-width: 760px) { .badge-wrap { grid-template-columns: 240px 1fr; } }
.badge-img { width: 100%; max-width: 240px; aspect-ratio: 9 / 16; height: auto; border-radius: 14px; border: 1px solid #5a4a22; justify-self: center; }
.deposit { border: 1px solid #5a4a22; border-radius: 12px; padding: 10px 12px; }
.golive-check { list-style: none; padding: 0; display: grid; gap: 10px; }
.golive-check li { overflow-wrap: anywhere; }
.state.bad { background: #2a1613; color: #ff9b8a; }

/* v3.5: Dark Ads Bible */
.chapters { margin: 16px 0; }
.chapter-card { display: grid; gap: 8px; align-content: start; }
.chapter-card-title { font-size: 20px; margin: 0; }
.chapter-card-title a { color: #f3ede0; text-decoration: none; }
.chapter-card-title a:hover { color: #e8cb7a; }
.chapter h1 { font-size: clamp(28px, 6vw, 44px); }
.takeaways, .checklist { margin-top: 20px; }
.takeaways h2, .checklist h2 { font-size: 20px; margin-top: 8px; }
.check-list { padding-left: 22px; display: grid; gap: 8px; color: #e9e1cf; }
.chapter-nav { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 16px; }

/* v4.0: Quantitative Science volume */
.formula { font: 600 14px/1.55 ui-monospace, Consolas, "Courier New", monospace; color: #e8cb7a; background: #120f0a; border: 1px solid #5a4a22;
  border-left: 4px solid #d9b65a; border-radius: 0 10px 10px 0; padding: 10px 12px; margin: 10px 0 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.volume { border-top: 1px solid var(--line); }
.volume.flagship { border-top: 2px solid #d9b65a; }
.volume h2 { font-size: clamp(24px, 5vw, 34px); }
.source-note { border-top: 1px solid var(--line); padding-top: 10px; }

/* v4.5: accreditation standard, estimator, outbound kit */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.tier-std .facts { margin-top: 12px; }
.principle h3, .tier-std h3, .template .eyebrow { margin-top: 0; }
.inline-form { display: grid; grid-template-columns: 1fr; gap: 10px; max-width: 520px; }
.estimator .form-row { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.tier-pick { flex-wrap: wrap; }
.tier-pick .btn[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-2); background: #2a2415; }
.group-details { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.group-details > summary, .note-box > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.est-out { margin-top: 16px; }
.verdict { font-weight: 600; color: var(--ink); border-left: 3px solid var(--gold); padding-left: 10px; }
.score { margin-top: 12px; }
.tool { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.toc { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 8px 0 16px; padding: 0; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 10px; }
.copy-text { font: 14px/1.5 ui-monospace, Consolas, monospace; margin: 8px 0; }
.pill { display: inline-block; margin-left: 6px; padding: 2px 8px; border: 1px solid var(--gold); border-radius: 999px; font-size: 13px; color: var(--gold-2); }
.checklist li { margin: 4px 0; }
/* 2026-11-25 home line icons (Android 360 px + large font check) */
.ico { display: block; margin: 0 0 10px; }
.step .ico { margin-bottom: 6px; }
