/* True Rate — job-site palette: safety yellow, charcoal, concrete, blueprint. Mobile-first. */
:root {
  --yellow: #ffc20e;
  --yellow-deep: #e5a900;
  --charcoal: #1c1e21;
  --charcoal-2: #2a2d31;
  --steel: #4a5058;
  --concrete: #f3f1ec;
  --paper: #ffffff;
  --ink: #1c1e21;
  --ink-soft: #4a4f57;
  --line: #d9d5cc;
  --blueprint: #173a5e;
  --blueprint-line: rgba(255, 255, 255, 0.08);
  --good: #1f7a3f;
  --bad: #b3261e;
  --radius: 6px;
  --gutter: 16px;
  --max: 1080px;
  --font-head: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--concrete);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--font-body);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--blueprint); text-underline-offset: 2px; }
a:hover { color: #0e2742; }
:focus-visible { outline: 3px solid var(--yellow-deep); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); color: var(--ink); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.05; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.5rem, 9vw, 4.4rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(1.9rem, 6vw, 2.8rem); font-weight: 800; text-transform: uppercase; }
h3 { font-size: 1.45rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 40em; }
.eyebrow { font: 700 .85rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--steel); margin-bottom: .8em; display: inline-block; }
.hl { background: linear-gradient(transparent 58%, var(--yellow) 58%); padding: 0 .08em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0; }
.section.tight { padding: 36px 0; }

/* ---------- Header ---------- */
.site-header { background: var(--charcoal); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 4px solid var(--yellow); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { white-space: nowrap; display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 1.35rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .04em; }
.brand:hover { color: var(--yellow); }
.brand svg { width: 32px; height: 32px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: #e8e8e8; text-decoration: none; font: 600 1rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .06em; padding: 10px 8px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--yellow); }
.nav .hide-sm { display: none; }
@media (max-width: 380px) { .nav a:not(.btn) { padding: 10px 4px; font-size: .92rem; } .brand { font-size: 1.15rem; } }
[id] { scroll-margin-top: 76px; }
@media (min-width: 760px) { .nav .hide-sm { display: inline-block; } .nav { gap: 10px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 12px 24px; border-radius: var(--radius); border: 2px solid var(--charcoal);
  background: var(--yellow); color: var(--charcoal); text-decoration: none; cursor: pointer;
  font: 800 1.2rem/1.1 var(--font-head); text-transform: uppercase; letter-spacing: .06em;
  box-shadow: 4px 4px 0 var(--charcoal); transition: transform .08s, box-shadow .08s;
  text-align: center;
}
.btn:hover { color: var(--charcoal); background: #ffcf3d; }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--charcoal); }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 1rem; box-shadow: 3px 3px 0 #000; }
.btn.ghost { background: transparent; color: inherit; border-color: currentColor; box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 194, 14, .15); }
.btn.block { width: 100%; }
.btn.is-disabled, .btn[disabled] { background: #d4d0c6; color: #555; border-color: #8a8a8a; box-shadow: none; cursor: not-allowed; transform: none; }
.site-header .btn.is-disabled { background: #3a3d42; color: #bbb; border-color: #555; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 22px; }
.cta-meta { font-size: .95rem; color: var(--ink-soft); }
.dark .cta-meta { color: #c9ccd1; }

/* ---------- Blueprint / hazard surfaces ---------- */
.blueprint {
  background-color: var(--blueprint);
  background-image:
    linear-gradient(var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--blueprint-line) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  color: #eef3f8;
}
.dark { background: var(--charcoal); color: #eceef0; }
.dark a:not(.btn) { color: var(--yellow); }
.dark .lead, .blueprint .lead { color: #c9d3de; }
.dark .eyebrow, .blueprint .eyebrow { color: var(--yellow); }
.hazard { height: 12px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 16px, var(--charcoal) 16px 32px); }

/* ---------- Hero ---------- */
.hero { padding: 44px 0 52px; }
.hero-grid { display: grid; gap: 34px; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; } .hero { padding: 72px 0 80px; } }
.hero h1 { color: #fff; }
.hero h1 .y { color: var(--yellow); }

/* ---------- Spreadsheet mock ---------- */
.sheet { margin: 0; background: #fff; color: var(--ink); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(0,0,0,.35); overflow: hidden; border: 1px solid #0b1f33; font-size: .86rem; }
.sheet-bar { display: flex; gap: 6px; align-items: center; padding: 8px 10px; background: #e9ecef; border-bottom: 1px solid #cfd4da; }
.sheet-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c3c8ce; display: block; }
.sheet-bar span { margin-left: 8px; font: 600 .8rem/1 var(--font-body); color: #444; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-scroll { overflow-x: auto; }
.sheet table { border-collapse: collapse; width: 100%; min-width: 340px; font-variant-numeric: tabular-nums; }
.sheet th, .sheet td { border: 1px solid #e1e4e8; padding: 6px 8px; text-align: left; white-space: nowrap; }
.sheet thead th { background: #f6f7f9; color: #666; font-weight: 600; font-size: .75rem; text-align: center; }
.sheet .rn { background: #f6f7f9; color: #888; text-align: center; width: 28px; font-size: .75rem; }
.sheet .h td { font-weight: 700; background: #fff8dc; }
.sheet .num { text-align: right; }
.sheet .tot td { font-weight: 800; background: var(--yellow); }
.sheet-tabs { display: flex; gap: 2px; background: #e9ecef; padding: 4px 6px 0; overflow-x: auto; border-top: 1px solid #cfd4da; }
.sheet-tabs span { font-size: .72rem; padding: 5px 10px; background: #dde1e5; border-radius: 4px 4px 0 0; white-space: nowrap; color: #444; }
.sheet-tabs span.on { background: #fff; font-weight: 700; color: #111; }
.mock-note { font-size: .8rem; color: #9fb2c6; margin-top: 10px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
.card.tab { border-top: 6px solid var(--yellow); }
.tab-no { font: 800 .85rem/1 var(--font-head); letter-spacing: .12em; color: var(--steel); text-transform: uppercase; display: block; margin-bottom: 8px; }
.card.bonus { border: 2px dashed var(--charcoal); background: #fffbea; }
.tag { display: inline-block; font: 700 .75rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; background: var(--charcoal); color: var(--yellow); padding: 5px 8px; border-radius: 3px; margin-bottom: 10px; }

/* Quotes (not testimonials) */
.quotes { display: grid; gap: 14px; }
@media (min-width: 700px) { .quotes { grid-template-columns: 1fr 1fr; } }
.quote { margin: 0; padding: 18px 20px; background: var(--charcoal-2); border-left: 6px solid var(--yellow); color: #fff; font: 700 1.35rem/1.2 var(--font-head); }
.quote::before { content: "\201C"; color: var(--yellow); margin-right: 2px; }
.quote::after { content: "\201D"; color: var(--yellow); }
.fineprint { font-size: .85rem; color: var(--ink-soft); }
.dark .fineprint { color: #aeb3ba; }

/* Checklist */
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { padding-left: 32px; position: relative; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 3px; background: var(--yellow) no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5l4 4 8-9' fill='none' stroke='%231c1e21' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.checks.x li::before { background: #e4e0d8 no-repeat center/12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3l10 10M13 3L3 13' fill='none' stroke='%23b3261e' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* Screenshot slots */
.shots { display: grid; gap: 18px; }
@media (min-width: 700px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shot { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #e9ecef; }
.shot figcaption { padding: 10px 14px; font-size: .92rem; color: var(--ink-soft); }

/* Comparison table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; -webkit-overflow-scrolling: touch; }
.cmp { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .97rem; }
.cmp caption { text-align: left; padding: 12px 14px; font-weight: 600; color: var(--ink-soft); caption-side: bottom; font-size: .85rem; }
.cmp th, .cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { background: var(--charcoal); color: #fff; font: 700 1.05rem/1.1 var(--font-head); text-transform: uppercase; letter-spacing: .05em; }
.cmp thead th.us { background: var(--yellow); color: var(--charcoal); }
.cmp tbody th { font-weight: 700; background: #faf9f6; width: 22%; }
.cmp td.us { background: #fffbea; }

/* FAQ */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font: 700 1.2rem/1.2 var(--font-head); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--steel); }
.faq details[open] summary::after { content: "\2212"; }
.faq .ans { padding: 0 18px 16px; }
.faq .ans p:last-child { margin-bottom: 0; }

/* Price box */
.pricebox { background: #fff; border: 3px solid var(--charcoal); border-radius: var(--radius); padding: 26px 22px; box-shadow: 8px 8px 0 var(--yellow); max-width: 560px; }
.pricebox .price { font: 800 4rem/1 var(--font-head); }
.pricebox .price small { font-size: 1.1rem; font-weight: 600; color: var(--ink-soft); margin-left: 6px; letter-spacing: .02em; }

/* ---------- Calculator ---------- */
.calc { display: grid; gap: 22px; }
@media (min-width: 900px) { .calc { grid-template-columns: 1fr 1fr; align-items: start; } .calc .results { position: sticky; top: 84px; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.field { margin-bottom: 16px; }
.field label { display: flex; align-items: center; gap: 8px; font: 700 1.1rem/1.2 var(--font-head); letter-spacing: .02em; margin-bottom: 6px; }
.field .hint { display: block; font-size: .88rem; color: var(--ink-soft); margin-top: 4px; }
.input-affix { display: flex; align-items: stretch; border: 2px solid #b9b4a9; border-radius: var(--radius); background: #fff; overflow: hidden; }
.input-affix:focus-within { border-color: var(--charcoal); box-shadow: 0 0 0 3px rgba(255, 194, 14, .55); }
.input-affix span { display: flex; align-items: center; padding: 0 12px; background: #f0eee8; color: var(--steel); font-weight: 700; }
.input-affix input { flex: 1; min-width: 0; border: 0; padding: 12px; font: 600 1.2rem/1.2 var(--font-body); color: var(--ink); background: transparent; font-variant-numeric: tabular-nums; }
.input-affix input:focus { outline: none; }
.input-affix input[aria-invalid="true"] { color: var(--bad); }
.tip-btn { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--steel); background: #fff; color: var(--steel); font: 800 .9rem/1 var(--font-body); cursor: pointer; padding: 0; flex: none; }
.tip-btn[aria-expanded="true"] { background: var(--charcoal); color: var(--yellow); border-color: var(--charcoal); }
.tip { background: #fffbea; border-left: 4px solid var(--yellow); padding: 10px 12px; font-size: .92rem; margin: 6px 0 0; border-radius: 0 4px 4px 0; }
.results { background: var(--charcoal); color: #fff; border-radius: var(--radius); padding: 20px; border-top: 6px solid var(--yellow); }
.results h2 { color: #fff; font-size: 1.6rem; }
.stat { padding: 14px 0; border-bottom: 1px solid #3b3f45; }
.stat:last-of-type { border-bottom: 0; }
.stat .k { display: block; font: 700 .9rem/1.2 var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: #b5bac1; }
.stat .v { display: block; font: 800 2.4rem/1.1 var(--font-head); font-variant-numeric: tabular-nums; }
.stat .s { display: block; font-size: .9rem; color: #c3c7cd; }
.stat.big { background: var(--yellow); color: var(--charcoal); margin: 8px -20px; padding: 16px 20px; border: 0; }
.stat.big .k, .stat.big .s { color: #3a3a3a; }
.stat.big .v { font-size: 3rem; }
.stat.good .v { color: #7ee2a0; }
.margin-inline { display: inline-flex; align-items: center; gap: 6px; }
.margin-inline input { width: 4.2em; padding: 4px 6px; border-radius: 4px; border: 2px solid var(--yellow); background: #111; color: var(--yellow); font: 800 1rem/1 var(--font-body); text-align: right; }
.err { color: #ffb4ab; font-weight: 600; }
.mini-conv { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .mini-conv { grid-template-columns: 1fr 1fr; } }
.conv-out { font: 800 1.8rem/1 var(--font-head); }

/* Email form */
.optin { background: #fff; border: 3px solid var(--charcoal); border-radius: var(--radius); padding: 22px; box-shadow: 6px 6px 0 var(--yellow); }
.optin .row { display: grid; gap: 10px; }
@media (min-width: 640px) { .optin .row { grid-template-columns: 1fr 1.4fr auto; align-items: end; } }
.optin label { font: 700 1rem/1.2 var(--font-head); display: block; margin-bottom: 4px; }
.optin input[type="email"], .optin input[type="text"] { width: 100%; min-height: 52px; padding: 10px 12px; border: 2px solid #b9b4a9; border-radius: var(--radius); font: 500 1.05rem var(--font-body); }
.optin input:disabled { background: #efede7; }
.optin [data-form-note] { margin: 10px 0 0; font-size: .88rem; color: var(--ink-soft); }

/* Steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 16px 64px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 36px; height: 36px; border-radius: 4px; background: var(--yellow); color: var(--charcoal); font: 800 1.3rem/36px var(--font-head); text-align: center; }
.steps strong { font-family: var(--font-head); font-size: 1.15rem; }

.dl-list { display: grid; gap: 12px; }
.dl { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--yellow); border-radius: var(--radius); padding: 16px; }
.dl h3 { margin: 0; font-size: 1.25rem; }
.dl p { margin: 2px 0 0; font-size: .92rem; color: var(--ink-soft); }
.notice { background: #fff3cd; border: 1px solid #e5c56b; padding: 12px 14px; border-radius: var(--radius); font-size: .95rem; }

/* Prose (legal pages) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: #b9bdc3; padding: 36px 0 110px; font-size: .9rem; }
@media (min-width: 760px) { .site-footer { padding-bottom: 36px; } }
.site-footer a { color: #e6e6e6; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px; }
.foot-links a { font: 600 1rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .06em; text-decoration: none; padding: 6px 0; }
.foot-links a:hover { color: var(--yellow); }

/* Sticky mobile CTA */
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--charcoal); border-top: 4px solid var(--yellow); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; align-items: center; }
.sticky-cta .btn { flex: 1; min-height: 48px; box-shadow: none; }
.sticky-cta .p { color: #fff; font: 800 1.6rem/1 var(--font-head); }
@media (min-width: 760px) { .sticky-cta { display: none; } }

.is-stale { opacity: .35; }
.h3-size { font-size: 1.6rem; }

.hero-grid > *, .grid > *, .calc > *, .mini-conv > * { min-width: 0; }
.blueprint .cta-meta, .blueprint .fineprint { color: #c9d3de; }
/* light surfaces inside dark sections keep dark text */
.card, .panel, .pricebox, .optin, .dl, .steps li, .faq details, .table-wrap { color: var(--ink); }
.dark .card .fineprint, .dark .panel .fineprint, .dark .pricebox .fineprint, .dark .panel .eyebrow, .dark .pricebox .eyebrow { color: var(--ink-soft); }
.dark .card a:not(.btn), .dark .panel a:not(.btn), .dark .pricebox a:not(.btn) { color: var(--blueprint); }
.card.bonus { margin-top: 18px; }
.results .fineprint { color: #aeb3ba; margin: 12px 0 0; }
.notice { color: var(--ink); }
