/* 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.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url("assets/fonts/manrope-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url("assets/fonts/manrope-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url("assets/fonts/manrope-800.woff2") format("woff2"); 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;
  }
}
/* The hidden attribute must win over display rules such as .field and .button. */
[hidden] { display: none !important; }
* { 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; }
.feature-hero { display: grid; align-items: center; gap: clamp(20px, 4vw, 58px); padding-block: 32px; }
.feature-hero .actions { align-items: center; gap: 18px; }
.feature-hero .room-note { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.feature-hero .room-note-phone, .feature-hero .hero-loop { display: none; }
.feature-hero figure { margin: 0; min-width: 0; border: 1px solid var(--line-strong); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.feature-hero img, .feature-hero .hero-loop video { display: block; width: 100%; height: auto; }
.feature-hero .hero-loop video { background: #0a1224; cursor: pointer; }
.feature-hero figcaption { padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 800; }
.feature-hero figcaption span { font-weight: 400; color: var(--muted); }
.hero-loop-toggle { position: relative; flex: none; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); font: 700 11.5px/1.2 inherit; cursor: pointer; }
.hero-loop-toggle:hover { border-color: var(--blue); color: var(--blue); }
.hero-loop-toggle::after { content: ""; position: absolute; inset: -9px -4px; }
@media (min-width: 761px) { .feature-hero .phone-signup { display: none !important; } }
@media (min-width: 800px) {
  .feature-hero { width: min(1100px, calc(100vw - 64px)); margin-left: 50%; transform: translateX(-50%); grid-template-columns: 1fr 1fr; }
}
.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; }
/* Phones arriving from an ad get the brief answer (site-config.js sets html[data-ad-visit]); everyone else the full one. */
.answer .answer-brief { display: none; }
@media (max-width: 760px) {
  html[data-ad-visit] .answer[data-answer-brief] .answer-full { display: none; }
  html[data-ad-visit] .answer[data-answer-brief] .answer-brief { display: block; }
}

/* 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; }
/* Screenshots in guides: the app is dark in both themes, so the frame is too. */
.prose .shot { margin: 26px 0 30px; }
.prose .shot img { display: block; width: 100%; margin: 0 auto; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #0b0d12; box-shadow: 0 10px 30px rgba(15, 30, 60, .12); }
.prose .shot figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.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 :not(pre) > code { overflow-wrap: anywhere; }
.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; }
.plan .plan-alt { margin-top: 10px; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.plan .plan-alt:hover { color: var(--ink); }
.pass-callout { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin: 16px 0; }
.pass-callout > div:first-child { flex: 1 1 420px; }
.pass-callout h2 { font-size: 20px; margin: 0 0 6px; }
.pass-callout p { margin: 0; font-size: 14.5px; }
.pass-callout .pass-helper { margin-top: 8px; font-size: 13px; color: var(--muted); }
.pass-buy { display: flex; flex-wrap: wrap; gap: 10px; }

/* 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); }

/* Calculators: spacing and a smaller figure that used to be inline styles (the embedded pages allow no inline styles). */
.tool-grid-spaced { margin-top: 14px; }
.result strong.result-small { font-size: 19px; }

/* "Embed this tool" box under each calculator */
.embed-box { margin-top: 46px; padding-top: 6px; border-top: 1px solid var(--line); }
.embed-box h2 { margin-top: 34px; }
.embed-options { max-width: 320px; margin: 18px 0 14px; }
.embed-code textarea { display: block; width: 100%; font: 500 13px/1.6 var(--mono); color: var(--ink); background: var(--code); border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px 16px; resize: vertical; min-height: 118px; }
.embed-code .actions { align-items: center; margin-top: 12px; }
.embed-code .tool-status { margin: 0; min-height: 0; }
.embed-preview { margin: 14px 0 6px; }
.embed-preview iframe { display: block; width: 100%; max-width: 640px; border: 0; }
.embed-resize { margin: 22px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 4px 18px 6px; font-size: 15px; }
.embed-resize summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 12px 0; }
.embed-resize pre { margin-bottom: 14px; }

/* 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; }

/* "Run it live" pitch under each tool and template. */
.tool-pitch { margin: 28px 0 0; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(220px, 1fr); gap: 20px 40px; align-items: center; background: var(--surface); border: 1px solid var(--line-strong); border-left: 4px solid var(--blue); border-radius: var(--radius); padding: 28px 32px; box-shadow: var(--shadow); }
.tool-pitch .eyebrow { margin-bottom: 8px; }
.tool-pitch h2 { font-size: 23px; line-height: 1.2; letter-spacing: -.03em; margin: 0; color: var(--ink); }
.tool-pitch-text > p:not(.eyebrow) { margin: 10px 0 0; font-size: 14.5px; color: var(--text); max-width: 62ch; }
.tool-pitch ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 7px; font-size: 13.5px; color: var(--text); }
.tool-pitch li { position: relative; padding-left: 22px; }
.tool-pitch li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--tally); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tally) 18%, transparent); }
.tool-pitch-actions { display: grid; gap: 10px; }
.tool-pitch-actions p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
@media (max-width: 760px) { .tool-pitch { grid-template-columns: 1fr; padding: 22px 20px; } .tool-pitch h2 { font-size: 20px; } }

/* 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; }
  @media (min-width: 360px) {
    .nav-actions .button { display: inline-flex; font-size: 12px; padding-inline: 12px; }
    .nav-actions { gap: 8px; }
  }
  .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; }
  .narrow:has(.feature-hero) > .crumbs { padding-top: 16px; }
  .feature-hero { padding-block: 16px 20px; gap: 18px; }
  .feature-hero h1 { font-size: clamp(30px, 8vw, 36px); }
  .feature-hero .lede { margin-top: 12px; font-size: 15.5px; line-height: 1.55; }
  .feature-hero .actions { margin-top: 16px; gap: 10px; }
  .feature-hero .actions .button { padding-inline: 16px; }
  .feature-hero[data-phone-signup] .compare-plans,
  .feature-hero[data-phone-signup] .room-note-default { display: none; }
  .feature-hero[data-phone-signup] .room-note-phone { display: inline; }
  .feature-hero .hero-still { display: none; }
  .feature-hero .hero-loop { display: block; }
  .feature-hero .hero-loop figcaption span { display: block; margin-top: 2px; font-size: 12px; }
  html[data-phone-hero-video] .prose-walkthrough-video { display: none !important; }
  @media (max-width: 359px) {
    .feature-hero .actions .button { width: 100%; }
  }
  .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, .tool-pitch, .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; }
}

/* Print sheet: pages.js builds it right before printing a tool or template page, so only the rundown or calculator
   reaches paper, with the same "Created by runofsho" credit as the app's PDF exports. Always printed light. */
.print-sheet { display: none; }
@media print {
  @page { margin: 0.5in 0.5in 0.45in; }
  html.print-sheet-on body > :not(.print-sheet) { display: none !important; }
  html.print-sheet-on, html.print-sheet-on body { background: #fff !important; color-scheme: light; }
  html.print-sheet-on .print-sheet {
    display: block; color: #1a2540; font-size: 9.5pt; line-height: 1.4;
    --paper: #fff; --surface: #fff; --ink: #142c59; --text: #2b3d62; --muted: #5b6780; --line: #e2e7ef; --line-strong: #cfd9ea; --powder: #eaf1fb; --tally: #c9343f;
    --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;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .print-frame, .print-frame > * > tr > td { width: 100%; border: 0; padding: 0; margin: 0; background: none; border-collapse: collapse; }
  .print-foot-space { height: 0.32in; }
  .print-head { margin: 0 0 12pt; padding-bottom: 9pt; border-bottom: 1.5pt solid #142c59; }
  .print-kicker { margin: 0 0 3pt; font: 700 7pt/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: #5b6780; }
  .print-head h1 { margin: 0; font-size: 17pt; line-height: 1.2; letter-spacing: -.02em; color: #142c59; }
  .print-facts { display: flex; flex-wrap: wrap; gap: 4pt 18pt; margin: 7pt 0 0; }
  .print-facts div { display: flex; gap: 5pt; align-items: baseline; }
  .print-facts dt { font: 700 6.5pt/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #5b6780; }
  .print-facts dd { margin: 0; font: 600 9pt/1.3 var(--mono); color: #142c59; font-variant-numeric: tabular-nums; }
  .print-body table { width: 100%; border-collapse: collapse; font-size: 8.5pt; }
  .print-body thead { display: table-header-group; }
  .print-body tfoot { display: table-row-group; }
  .print-body tfoot td { font-weight: 700; color: #142c59; background: #eaf1fb; border-top: 1px solid #cfd9ea; }
  .print-body tr { break-inside: avoid; page-break-inside: avoid; }
  .print-body th { text-align: left; font: 700 6.5pt/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #5b6780; background: #eaf1fb; padding: 5pt 6pt; border-bottom: 1px solid #cfd9ea; }
  .print-body td { padding: 5pt 6pt; border-bottom: 1px solid #e2e7ef; vertical-align: top; }
  .print-body .rd .c-cue { width: 30pt; }
  .print-body .rd td.c-seg { min-width: 0; }
  .print-body .rd td.c-seg small { font-size: 7.5pt; }
  .print-body .dept { font-size: 7pt; padding: 2pt 4pt 2pt 2pt; white-space: normal; }
  .print-body .dept b { font-size: 6pt; }
  .print-results { display: flex; flex-wrap: wrap; gap: 6pt; margin: 0 0 12pt; }
  .print-results div { flex: 1 1 0; min-width: 90pt; background: #eaf1fb; border-radius: 5pt; padding: 6pt 8pt; break-inside: avoid; }
  .print-results span { display: block; font: 700 6pt/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #5b6780; margin-bottom: 3pt; }
  .print-results strong { font: 700 13pt/1.1 var(--mono); color: #142c59; font-variant-numeric: tabular-nums; }
  .print-results .over strong { color: #c9343f; }
  .print-status { margin: 10pt 0 0; font-size: 9pt; color: #2b3d62; }
  .print-credit { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 12pt; padding-top: 4pt; border-top: 1px solid #e2e7ef; font-size: 7pt; color: #5b6780; }
  .print-credit span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .print-credit a { color: #5b6780; text-decoration: none; white-space: nowrap; }
}

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

/* Author byline (blog posts) and author profile pages. */
.byline { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; }
.byline > div { min-width: 0; }
.byline-meta { font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.byline-avatar { flex-shrink: 0; display: block; border-radius: 50%; line-height: 0; }
.byline-avatar img { display: block; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--powder); }
.byline-name { font-size: 14px; color: var(--text); line-height: 1.35; }
.byline-name a { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--line-strong); }
.byline-name a:hover { color: var(--blue); text-decoration: underline; }
.author-card { display: flex; gap: 28px; align-items: flex-start; margin: 30px 0 10px; max-width: 760px; }
.author-card picture { flex-shrink: 0; line-height: 0; }
.author-photo { display: block; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); background: var(--powder); }
@media (max-width: 560px) { .author-card { flex-direction: column; gap: 16px; } .author-photo { width: 96px; height: 96px; } }

/* Stage timer (/tools/stage-timer/). The display is dark in both themes, like a confidence monitor, and uses fixed
   signal colors (green, amber, red) rather than palette colors, as the app's own timer screens do. */
.st-stage { background: #070b16; border-radius: 14px; overflow: hidden; color: #f3f6fb; }
.st-display { --sig: #3ddc84; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 28px 20px 22px; min-height: 300px; text-align: center; }
.st-display[data-state="amber"] { --sig: #ffb020; }
.st-display[data-state="red"], .st-display[data-state="over"] { --sig: #ff4d57; }
.st-label { margin: 0; min-height: 1.4em; font-size: clamp(16px, 2.6vw, 24px); font-weight: 700; color: #cbd6ea; letter-spacing: -.01em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-time { font: 700 clamp(84px, 21vw, 220px)/1 var(--mono); letter-spacing: -.06em; font-variant-numeric: tabular-nums; color: var(--sig); transition: color .25s; white-space: nowrap; }
.st-display.is-long .st-time { font-size: clamp(64px, 15vw, 170px); }
.st-bar { width: min(560px, 86%); height: 8px; border-radius: 99px; background: #ffffff1f; overflow: hidden; margin-top: 10px; }
.st-bar span { display: block; height: 100%; background: var(--sig); transform-origin: left center; transition: transform .2s linear, background .25s; }
.st-state { margin: 6px 0 0; font: 700 12px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #a7b4cd; }
.st-display[data-state="over"] .st-state { color: #ff8f96; }
@media (prefers-reduced-motion: no-preference) { .st-display[data-state="over"] .st-time { animation: st-pulse 1s steps(2, jump-none) infinite; } }
@keyframes st-pulse { 50% { opacity: .7; } }
.st-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 16px; border-top: 1px solid #ffffff14; transition: opacity .3s; }
.st-controls .button { min-width: 104px; }
.st-controls .button-outline { color: #e7edf9; border-color: #ffffff38; }
.st-controls .button-outline:hover { background: #ffffff14; color: #ffffff; }
.st-controls #st-toggle { min-width: 132px; }
.st-settings { margin-top: 22px; }
.st-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.st-presets .button { min-height: 38px; padding: 8px 14px; }
.st-presets .button[aria-pressed="true"] { background: var(--btn); color: var(--btn-text); border-color: var(--btn-line); }
.st-check { display: flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.st-check input { width: 18px; height: 18px; accent-color: var(--blue); }
/* Full screen, native or (iPhone) by filling the window. */
.st-stage.is-full { position: relative; display: flex; flex-direction: column; border-radius: 0; width: 100%; height: 100%; }
/* The buttons sit over the bottom edge, so the time can use the whole height, and fade out when idle. */
.st-stage.is-full .st-controls { position: absolute; left: 0; right: 0; bottom: 0; background: #070b16e6; }
.st-stage.is-full .st-label:empty { display: none; }
.st-stage.st-max { position: fixed; inset: 0; z-index: 100; height: 100dvh; }
html.st-lock, html.st-lock body { overflow: hidden; }
.st-stage.is-full .st-display { flex: 1; min-height: 0; padding: 3vh 2vw; }
.st-stage.is-full .st-time { font-size: min(28vw, 56vh); }
.st-stage.is-full .st-display.is-long .st-time { font-size: min(20vw, 48vh); }
.st-stage.is-full .st-label { font-size: min(5vw, 7vh); }
.st-stage.is-full .st-bar { height: 12px; }
.st-stage.is-full .st-state { font-size: min(2.4vw, 3vh); }
.st-stage.is-full.st-idle { cursor: none; }
.st-stage.is-full.st-idle .st-controls { opacity: 0; pointer-events: none; }
@media (max-width: 760px) {
  .tool:has(.st-stage) { padding: 14px; }
  .st-display { min-height: 230px; padding: 22px 12px 16px; }
  .st-controls { gap: 8px; padding: 12px; }
  .st-controls .button { min-width: 0; flex: 1 1 28%; padding: 12px 10px; }
  .st-controls #st-toggle { flex-basis: 100%; }
}
