:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --text: #121826;
  --muted: #586174;
  --border: #dde2ec;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --accent-soft: #dcf3ef;
  --ok: #137a4b;
  --ok-soft: #e3f5ec;
  --warn: #9a5b00;
  --warn-soft: #fff3dc;
  --bad: #b3261e;
  --bad-soft: #fde7e5;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .08);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1117; --surface: #151b24; --surface-2: #1c2430; --text: #e8ecf3; --muted: #9aa5b8;
    --border: #2a3342; --accent: #2dd4bf; --accent-ink: #0d1117; --accent-soft: #0e2f2b;
    --ok: #5fd39a; --ok-soft: #12301f; --warn: #f5bd5a; --warn-soft: #33270f; --bad: #ff8a80; --bad-soft: #3a1714;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1117; --surface: #151b24; --surface-2: #1c2430; --text: #e8ecf3; --muted: #9aa5b8;
  --border: #2a3342; --accent: #2dd4bf; --accent-ink: #0d1117; --accent-soft: #0e2f2b;
  --ok: #5fd39a; --ok-soft: #12301f; --warn: #f5bd5a; --warn-soft: #33270f; --bad: #ff8a80; --bad-soft: #3a1714;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--accent); }
h1, h2, h3, h4 { line-height: 1.2; margin: 1.2em 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }
p { margin: .5em 0 1em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
pre { background: var(--surface-2); padding: 12px; border-radius: 8px; overflow-x: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
header.site { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.brand .mark { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: .85rem; }
nav.main { display: flex; gap: 14px; margin-left: auto; align-items: center; flex-wrap: wrap; }
nav.main a { color: var(--muted); text-decoration: none; font-weight: 500; }
nav.main a:hover, nav.main a.active { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 8px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink) !important; font-weight: 600; text-decoration: none; cursor: pointer; font-size: .95rem; }
.btn.secondary { background: transparent; color: var(--accent) !important; }
.btn.small { padding: 6px 10px; font-size: .85rem; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff !important; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.hero { padding: 56px 0 32px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 720px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 99px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card h3:first-child, .card h2:first-child { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
section.block { padding: 40px 0; }
.countdown { display: flex; gap: 12px; flex-wrap: wrap; }
.countdown .unit { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 10px 14px; text-align: center; min-width: 76px; }
.countdown .num { font-size: 1.6rem; font-weight: 800; display: block; font-variant-numeric: tabular-nums; }
.price { font-size: 2rem; font-weight: 800; }
.price small { font-size: .9rem; font-weight: 500; color: var(--muted); }
.plan.featured { border: 2px solid var(--accent); }
ul.checks { list-style: none; padding: 0; margin: 12px 0; }
ul.checks li { padding-left: 24px; position: relative; margin: 6px 0; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
ul.checks li.no::before { content: "○"; color: var(--muted); }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .92rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }
.table-wrap { overflow-x: auto; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.info { background: var(--accent-soft); color: var(--accent); }
.alert { padding: 12px 16px; border-radius: 8px; margin: 12px 0; border: 1px solid var(--border); background: var(--surface); }
.alert.ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.alert.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.alert.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
form .field { margin: 0 0 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
label.inline { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; margin: 6px 0; }
label.inline input { margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=datetime-local], input[type=url], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit;
}
textarea { min-height: 90px; resize: vertical; }
.hint { color: var(--muted); font-size: .85rem; margin-top: 4px; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 0 0 16px; }
legend { font-weight: 700; padding: 0 6px; }
.progress { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--accent); }
.score { font-size: 2.4rem; font-weight: 800; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 16px 0 20px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--text); border-color: var(--accent); }
.req { border-bottom: 1px solid var(--border); padding: 14px 0; }
.req:last-child { border-bottom: 0; }
.req .head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.req select { width: auto; min-width: 180px; }
.doc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; overflow-wrap: anywhere; }
.doc table { font-size: .85rem; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
footer.site { border-top: 1px solid var(--border); margin-top: 56px; padding: 32px 0; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; gap: 24px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
.timeline { border-left: 2px solid var(--border); padding-left: 16px; margin-left: 6px; }
.timeline .item { position: relative; margin-bottom: 18px; }
.timeline .item::before { content: ""; position: absolute; left: -23px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.timeline .item.past::before { background: var(--ok); }
.kpi { font-size: 1.8rem; font-weight: 800; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 12px 16px; margin: 8px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.article { max-width: 760px; }
.article h2 { margin-top: 1.6em; }
@media print {
  header.site, footer.site, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .doc { border: 0; padding: 0; box-shadow: none; }
}
@media (max-width: 640px) {
  .doc { padding: 16px; }
  nav.main { gap: 10px; margin-left: 0; width: 100%; }
  .hero { padding-top: 32px; }
}
.alert.info { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.bad-text { color: var(--bad); font-weight: 600; }
.brand img { border-radius: 7px; }

/* Lineitemly */
.mtabs { display: flex; gap: 2px; flex-wrap: nowrap; overflow-x: auto; border-bottom: 1px solid var(--border); margin: 8px 0 20px; }
.mtabs a { padding: 9px 12px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; border-bottom: 2px solid transparent; white-space: nowrap; }
.mtabs a.active { color: var(--text); border-color: var(--accent); }
.mtabs a .n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 5px; border-radius: 99px; background: var(--surface-2); font-size: .72rem; text-align: center; }
.mtabs a .n.bad { background: var(--bad-soft); color: var(--bad); }
.crumbs { font-size: .85rem; color: var(--muted); margin-top: 18px; }
.crumbs a { color: var(--muted); }
.mhead { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.mhead h1 { margin: 6px 0 2px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat .kpi { line-height: 1.1; }
.kpi.ok { color: var(--ok); }
.kpi.accent { color: var(--accent); }
.finding { border: 1px solid var(--border); border-left: 4px solid var(--border); border-radius: 8px; padding: 14px 16px; margin: 10px 0; background: var(--surface); }
.finding.sev-high { border-left-color: var(--bad); }
.finding.sev-medium { border-left-color: var(--warn); }
.finding.sev-info { border-left-color: var(--accent); }
.finding .head { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.finding h3 { margin: 0; font-size: 1.02rem; }
.finding .amt { font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.finding .ask { background: var(--surface-2); border-radius: 6px; padding: 8px 10px; margin: 8px 0; font-size: .92rem; }
.finding.st-won { opacity: .8; border-left-color: var(--ok); }
.finding.st-dismissed { opacity: .55; }
.locked { position: relative; }
.locked .blur { filter: blur(5px); user-select: none; pointer-events: none; }
.locked .over { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; }
.locked .over .card { max-width: 420px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.num, th.num { text-align: right; }
.money-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.money-bar span { display: block; height: 100%; }
.money-bar .paid { background: var(--ok); }
.money-bar .held { background: var(--warn); }
.money-bar .gap { background: var(--bad); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 10px 0 10px 40px; position: relative; border-bottom: 1px solid var(--border); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 9px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.steps li.urgent::before { background: var(--bad-soft); color: var(--bad); content: "!"; }
.letter { white-space: pre-wrap; font-family: Georgia, "Times New Roman", serif; font-size: 1rem; line-height: 1.6; }
textarea.letter-edit { min-height: 520px; font-family: Georgia, "Times New Roman", serif; line-height: 1.55; }
.quote { border-left: 3px solid var(--accent); padding: 4px 14px; margin: 12px 0; color: var(--muted); font-style: italic; }
.quote cite { display: block; font-style: normal; font-size: .82rem; margin-top: 4px; }
.demo-banner { background: #0b3b37; color: #fff; text-align: center; font-size: .85rem; padding: 6px 12px; }
.demo-banner a { color: #99f6e4; }
.tl-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: start; }
.tl-row:last-child { border-bottom: 0; }
.tl-date { font-weight: 700; font-variant-numeric: tabular-nums; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.photo-grid figure { margin: 0; font-size: .75rem; color: var(--muted); }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.big-input textarea { min-height: 220px; font-family: ui-monospace, Menlo, monospace; font-size: .85rem; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
@media (max-width: 640px) { .tl-row { grid-template-columns: 1fr; gap: 4px; } }
@media print { .mtabs, .crumbs, .demo-banner { display: none !important; } .finding { break-inside: avoid; } }
