/* Content pages (guides, templates, tools, compare, pricing, blog, glossary).
   Self-contained and token-driven: light and dark follow the visitor's system setting. */
@font-face { font-family: Manrope; src: url("assets/fonts/manrope-400.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url("assets/fonts/manrope-600.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url("assets/fonts/manrope-700.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url("assets/fonts/manrope-800.ttf") format("truetype"); font-weight: 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #fdfcfb; --surface: #ffffff; --ink: #142c59; --text: #2b3d62; --muted: #5b6780;
  --blue: #284d8e; --blue-hover: #193a73; --line: #e2e7ef; --line-strong: #cfd9ea;
  --powder: #eaf1fb; --lavender: #f1edfa; --peach: #f8e9dd; --code: #f3f6fb;
  --btn: #284d8e; --btn-line: #284d8e; --btn-text: #ffffff;
  --ok: #23614f; --ok-bg: #e8f3ee; --warn: #7f560a; --warn-bg: #fdf0d7; --no: #8a3a41;
  --aud: #e6f2ec; --aud-t: #235a49; --lx: #fbf1d6; --lx-t: #72530d; --gfx: #ece7fa; --gfx-t: #4e3b93; --cam: #e2ecfb; --cam-t: #234a8a; --vid: #fbe7dd; --vid-t: #84452a;
  --tally: #c9343f; --lamp: #d93a45; --shadow: 0 10px 30px #1c366611;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0a1224; --surface: #111c35; --ink: #e7edf9; --text: #cbd6ea; --muted: #a7b4cd;
    --blue: #9cbcf2; --blue-hover: #c3d7f8; --line: #25324f; --line-strong: #344567;
    --powder: #14233f; --lavender: #1c1b3a; --peach: #2a2029; --code: #0f1930;
    --btn: #284d8e; --btn-line: #4a72b8; --btn-text: #ffffff;
    --ok: #8fd6b8; --ok-bg: #153127; --warn: #f1c877; --warn-bg: #372a12; --no: #f0a3a9;
    --aud: #16332a; --aud-t: #9bdcc2; --lx: #3a2e10; --lx-t: #f0d089; --gfx: #2a2450; --gfx-t: #c6baf5; --cam: #172c52; --cam-t: #a9c6f6; --vid: #3a2318; --vid-t: #f3b99c;
    --lamp: #ff5c63; --shadow: 0 10px 30px #0006;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.7 Manrope, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); letter-spacing: -.035em; line-height: 1.15; margin: 0; }
p { margin: 0 0 1.1em; }
.container { width: min(1180px, calc(100% - 56px)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 56px)); margin-inline: auto; }
.tc, code, kbd { font-family: var(--mono); }
.tc { font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip-link:focus { top: 12px; }
.eyebrow { font: 700 11px/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 0 0 12px; }

/* Header */
.header { position: sticky; top: 0; z-index: 20; height: 80px; background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { color: var(--ink); }
.brand-logo { display: block; height: 25px; width: auto; aspect-ratio: 821.4 / 150.2; flex: none; overflow: visible; position: relative; top: -2px; }
.logo-ink { fill: var(--ink); } .logo-of { fill: var(--blue); } .logo-lamp { fill: var(--lamp); }
.site-nav { display: flex; gap: 28px; font-size: 13px; font-weight: 600; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 8px 0; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--blue); }
.site-nav a[aria-current] { box-shadow: inset 0 -2px var(--blue); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 12px 20px; border-radius: 9px; border: 1px solid var(--btn-line); background: var(--btn); color: var(--btn-text); font-weight: 700; font-size: 13px; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; font-family: inherit; }
.button:hover { color: var(--btn-text); background: #193a73; box-shadow: 0 5px 12px #142c5930; transform: translateY(-1px); }
.button-small { min-height: 42px; padding: 10px 16px; font-size: 12px; }
.button-outline { background: transparent; color: var(--blue); border-color: var(--line-strong); }
.button-outline:hover { background: var(--powder); color: var(--blue); box-shadow: none; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink); align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-toggle span { width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.mobile-nav { display: none; }

/* Page head */
.crumbs { font: 600 11px/1.4 var(--mono); letter-spacing: .04em; color: var(--muted); padding: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .6; }
.page-head { padding: 26px 0 8px; }
.page-head h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -.05em; line-height: 1.07; text-wrap: balance; }
.page-head .lede { font-size: 18px; line-height: 1.65; color: var(--muted); margin: 18px 0 0; max-width: 640px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; font-size: 12px; color: var(--muted); }
.meta b { color: var(--text); font-weight: 600; }
.answer { margin: 28px 0 8px; background: var(--powder); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px 6px; }
.answer > span { display: block; font: 700 10px/1 var(--mono); letter-spacing: .12em; color: var(--blue); margin-bottom: 10px; }
.answer p { font-size: 17px; line-height: 1.6; color: var(--ink); font-weight: 600; margin-bottom: 14px; }

/* Prose */
.prose { padding: 14px 0 20px; font-size: 16.5px; }
.prose h2 { font-size: 28px; margin: 46px 0 14px; scroll-margin-top: 96px; }
.prose h3 { font-size: 20px; margin: 30px 0 10px; letter-spacing: -.025em; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1.2em; }
.prose li { margin: 0 0 .5em; }
.prose li::marker { color: var(--blue); font-weight: 700; }
.prose strong { color: var(--ink); }
.prose blockquote { margin: 22px 0; padding: 14px 18px; border-left: 3px solid var(--blue); background: var(--powder); border-radius: 0 10px 10px 0; color: var(--ink); font-size: .94em; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-size: .86em; background: var(--code); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.prose pre { background: var(--code); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; overflow-x: auto; font-size: 13px; line-height: 1.6; }
.prose pre code { background: none; border: 0; padding: 0; font-size: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.table-wrap { position: relative; overflow-x: auto; margin: 20px 0 26px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 700 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: color-mix(in srgb, var(--powder) 55%, transparent); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { color: var(--ink); font-weight: 600; }
.note { margin: 22px 0; padding: 14px 18px; border-radius: 12px; background: var(--lavender); border: 1px solid var(--line); font-size: 14.5px; }
.note p:last-child { margin: 0; }
.sources { font-size: 13.5px; color: var(--muted); }
.sources li { margin-bottom: .35em; }
.toc { margin: 22px 0 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 4px 18px; font-size: 14px; }
.toc summary { cursor: pointer; font: 700 10px/1 var(--mono); letter-spacing: .12em; color: var(--muted); padding: 13px 0; }
.toc ol { margin: 0 0 14px; padding-left: 20px; columns: 2; column-gap: 28px; }
.toc li { margin-bottom: 6px; break-inside: avoid; }
.toc a { text-decoration: none; }
.faq h3 { font-size: 18px; margin-top: 26px; }
.related { margin: 46px 0 0; padding-top: 26px; border-top: 1px solid var(--line); }
.related h2 { font-size: 13px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }

/* Cards and hubs */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0 8px; padding: 0; list-style: none; }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 20px; text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s, box-shadow .2s; height: 100%; }
a.card:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
.card .kicker { font: 700 10px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.card h3, .card h2 { font-size: 19px; letter-spacing: -.03em; line-height: 1.25; }
.card p { font-size: 14px; line-height: 1.65; color: var(--muted); margin: 0; }
.card .more { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 700; color: var(--blue); }
.tone-powder { background: var(--powder); } .tone-lavender { background: var(--lavender); } .tone-peach { background: var(--peach); }
.section { padding: 34px 0 10px; }
.section > h2 { font-size: 26px; }
.section > p { color: var(--muted); max-width: 640px; margin-top: 10px; }

/* Rundown table (templates, tools) */
.rd { font-size: 13.5px; }
.rd td, .rd th { padding: 9px 12px; vertical-align: middle; }
.rd .c-cue { width: 52px; font-family: var(--mono); font-weight: 700; color: var(--muted); }
.rd .c-time { white-space: nowrap; font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; font-weight: 500; color: var(--ink); }
.rd td.c-seg { font-weight: 700; color: var(--ink); min-width: 170px; }
.rd td.c-seg small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; }
.rd tr.is-break td { background: color-mix(in srgb, var(--powder) 45%, transparent); }
.rd tfoot td { font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--powder) 55%, transparent); border-top: 1px solid var(--line-strong); }
.depts { display: flex; flex-wrap: wrap; gap: 5px; }
.dept { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; line-height: 1; padding: 4px 8px 4px 4px; border-radius: 5px; white-space: nowrap; }
.dept b { font: 700 9px/1 var(--mono); letter-spacing: .04em; padding: 3px 4px; border-radius: 3px; background: var(--surface); }
.dept-aud { background: var(--aud); color: var(--aud-t); } .dept-lx { background: var(--lx); color: var(--lx-t); } .dept-gfx { background: var(--gfx); color: var(--gfx-t); } .dept-cam { background: var(--cam); color: var(--cam-t); } .dept-vid { background: var(--vid); color: var(--vid-t); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 6px; }
.pill { display: inline-block; font: 700 10px/1 var(--mono); letter-spacing: .06em; padding: 5px 8px; border-radius: 99px; background: var(--ok-bg); color: var(--ok); white-space: nowrap; }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.yes { color: var(--ok); font-weight: 700; } .no { color: var(--no); font-weight: 700; } .part { color: var(--warn); font-weight: 700; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 30px 0 12px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px 20px 22px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--blue); box-shadow: var(--shadow); }
.plan h2 { font-size: 20px; }
.plan .price { font-size: 38px; font-weight: 800; letter-spacing: -.05em; color: var(--ink); line-height: 1.1; margin: 14px 0 2px; }
.plan .price small { font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.plan .sub { font-size: 12.5px; color: var(--muted); min-height: 40px; margin: 0 0 12px; }
.plan ul { list-style: none; margin: 6px 0 20px; padding: 0; font-size: 13.5px; display: grid; gap: 8px; }
.plan li { display: flex; gap: 9px; align-items: baseline; }
.plan li::before { content: ""; flex: none; width: 9px; height: 5px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: translateY(-3px) rotate(-45deg); }
.plan .button { margin-top: auto; }

/* Tools */
.tool { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 26px 0; box-shadow: var(--shadow); }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 16px; align-items: end; }
.field { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea, .rd input, .rd select { font: inherit; font-weight: 500; font-size: 14px; color: var(--ink); background: var(--paper); border: 1px solid var(--line-strong); border-radius: 8px; padding: 9px 11px; min-height: 42px; width: 100%; }
.field textarea { min-height: 150px; line-height: 1.6; resize: vertical; }
.rd input { min-height: 36px; padding: 6px 8px; font-size: 13px; }
.rd input.dur { width: 74px; font-family: var(--mono); }
.rd .row-actions { white-space: nowrap; text-align: right; }
.icon-btn { width: 32px; height: 32px; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; font-size: 14px; line-height: 1; }
.icon-btn:hover { color: var(--blue); border-color: var(--blue); }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 20px; }
.result { background: var(--powder); border-radius: 12px; padding: 14px 16px; }
.result span { display: block; font: 700 9px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.result strong { font: 700 26px/1.1 var(--mono); letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.result.over strong { color: var(--tally); }
.tool-status { font-size: 13px; color: var(--muted); margin: 14px 0 0; min-height: 22px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.button-quiet { background: transparent; border-color: transparent; color: var(--muted); }
.button-quiet:hover { background: var(--powder); color: var(--ink); box-shadow: none; }
.paste { margin: 8px 0 4px; padding: 16px; border: 1px dashed var(--line-strong); border-radius: 12px; }
.paste textarea { font-family: var(--mono); font-size: 13px; min-height: 120px; }
.tool .table-wrap { margin: 18px 0 6px; }
.tool .rd td { vertical-align: middle; }
.tool .rd td.c-seg input { min-width: 170px; font-weight: 700; }
.tool .rd td input:not(.dur) { min-width: 120px; }
.rd input[aria-invalid="true"] { border-color: var(--tally); box-shadow: 0 0 0 2px color-mix(in srgb, var(--tally) 22%, transparent); }

/* Glossary */
.alpha { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 0; padding: 0; list-style: none; }
.alpha a { display: grid; place-items: center; min-width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font: 700 12px/1 var(--mono); text-decoration: none; }
.terms { margin: 10px 0; }
.terms h2 { font: 700 12px/1 var(--mono); letter-spacing: .12em; color: var(--muted); margin: 38px 0 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.terms dt { font-size: 19px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); margin-top: 22px; scroll-margin-top: 96px; }
.terms dt small { font: 600 11px/1 var(--mono); letter-spacing: .02em; color: var(--muted); margin-left: 8px; }
.terms dd { margin: 6px 0 0; }

/* CTA + footer */
.cta { margin: 64px auto 0; background: #284d8e; color: #fff; border-radius: var(--radius); padding: 38px 44px; display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: 28px; }
.cta p { color: #d8e3f8; margin: 8px 0 0; font-size: 14.5px; }
.cta .button { background: #fff; color: #1d3e79; border-color: #fff; }
.cta .button:hover { background: #eef3fc; color: #142c59; }
.footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 44px 0 28px; font-size: 13.5px; }
.footer-cols { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 34px; }
.footer-cols p { color: var(--muted); font-size: 13px; margin: 14px 0 0; max-width: 280px; }
.footer-cols h2 { font: 700 10px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-cols a { color: var(--text); text-decoration: none; }
.footer-cols a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 34px; padding-top: 18px; font-size: 11.5px; color: var(--muted); }
.footer-bottom a { color: var(--muted); }

@media (min-width: 1160px) { .narrow .table-wrap.wide { width: min(1080px, calc(100vw - 80px)); margin-left: 50%; transform: translateX(-50%); } }
@media (max-width: 1000px) {
  .site-nav { gap: 18px; font-size: 12px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .container, .narrow { width: calc(100% - 40px); }
  .header { height: 72px; }
  .site-nav { display: none; }
  .menu-toggle { display: flex; }
  .nav-actions .button { display: none; }
  .mobile-nav:not([hidden]) { display: grid; position: absolute; left: 0; right: 0; top: 72px; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 20px 18px; }
  .mobile-nav a { padding: 12px 0; color: var(--ink); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-nav a:last-child { border: 0; }
  .brand-logo { height: 22px; }
  .page-head .lede { font-size: 16px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 24px; margin-top: 38px; }
  .toc ol { columns: 1; }
  .cards, .cards.two { grid-template-columns: 1fr; }
  .cta { padding: 28px 24px; }
  .cta h2 { font-size: 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 26px; }
  .tool { padding: 18px 16px; }
}
@media (max-width: 480px) {
  .plans { grid-template-columns: 1fr; }
  .answer p { font-size: 16px; }
  th, td { padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print {
  .header, .footer, .cta, .crumbs, .actions, .toc, .related, .tool-inputs, .row-actions, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .table-wrap { border: 0; overflow: visible; } .tool { border: 0; box-shadow: none; padding: 0; }
  .rd input { border: 0; padding: 0; min-height: 0; background: none; }
}

a.login-link{font-size:13px;font-weight:600;padding:8px 0}@media(max-width:760px){.nav-actions a.login-link{display:none}}
