/* Simple Certified Payroll, public pages. Design pass 8 Nov 2026 (unslop by @heydamir, CC BY 4.0, for the method).
   Direction: exact, ledger-like, steady. World: a site trailer office, paper payroll forms. The moments are the product
   window (the week grid with one shortfall line) and the WH-347 sheet. Signature: the WH-347 column codes, set in mono,
   like "(6A)", used as section tags and in the product frames, nowhere else. */
@font-face { font-family: "Oswald"; src: url("/fonts/oswald-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Oswald"; src: url("/fonts/oswald-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/ibm-plex-mono-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  /* Ledger Road's palette (owner 8 Nov 2026) */
  --bg: #faf9f7; --card: #ffffff; --raised: #f1efea; --ink: #16181c; --ink2: #4a4f58; --muted: #666c76;
  --line: #dfdbd3; --line2: #c4bfb5;
  --accent: #1b4d8f; --accent-bright: #2c6bc4; --accent-wash: #eaf0f8; --accent-ink: #ffffff;
  --short: #b3261e; --short-bg: #fbe9e7; --ok: #1f7a4c; --ok-bg: #e6f2ea; --due: #b4700a; --due-bg: #fbf0dc;
  --deep: #14171c; --deep-ink: #f2f0ec; --deep-soft: #a9aeb6; --deep-rule: #2a2e35;
  --paper: #fdfcf8; --r: 14px; --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Public Sans", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --display: "Oswald", "Arial Narrow", sans-serif; --mono: "Plex Mono", ui-monospace, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111214; --card: #17181b; --raised: #1f2024; --ink: #ecedef; --ink2: #a9adb5; --muted: #888c95;
    --line: rgba(236, 237, 239, .08); --line2: rgba(236, 237, 239, .14); --accent: #7aa2f7; --accent-bright: #9dbcf9; --accent-wash: #16213a; --accent-ink: #0d1424; --deep: #0b0c0e; --deep-ink: #f2f0ec; --deep-soft: #a9aeb6; --deep-rule: #2a2e35;
    --short: #ff9b6b; --short-bg: #2a1a12; --ok: #79d3a4; --ok-bg: #12241a; --paper: #fdfcf8; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font);  }
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.mono, .tag { font-family: var(--mono); }
.tag { font-size: 12px; line-height: 16px; color: var(--muted); letter-spacing: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------------------------------------------------------------- header */
.top { position: relative; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 64px; padding: 0 32px; max-width: 1280px; margin: 0 auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; }
.logo svg { width: 22px; height: 22px; }
.top nav { display: flex; gap: 24px; align-items: center; font-size: 15px; }
.top nav a { color: var(--ink2); text-decoration: none; transition: color .15s var(--ease); }
.top nav a:hover { color: var(--ink); }
.top nav a.btn { color: var(--accent-ink); }
.home .top { position: absolute; left: 0; right: 0; max-width: none; padding: 0 max(32px, calc((100vw - 1216px) / 2)); }
.home .top .logo, .home .top nav a:not(.btn) { color: rgba(255, 255, 255, .92); }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--line2);
  background: var(--card); color: var(--ink); text-decoration: none; font: 500 15px/1 var(--font); cursor: pointer; transition: background-color .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease); }
.btn:hover { border-color: var(--ink2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- home hero: scene + product window */
.hero { position: relative; height: 720px; overflow: hidden; color: #fff; background: #1b1d21; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14, 15, 18, .86) 0%, rgba(14, 15, 18, .62) 38%, rgba(14, 15, 18, .18) 70%, rgba(14, 15, 18, .1) 100%); }
.hero-inner { position: relative; z-index: 2; max-width: 1216px; margin: 0 auto; padding: 152px 32px 0; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 13fr); gap: 56px; align-items: start; }
.hero-text { padding-top: 40px; }
.hero h1 { font-size: 54px; line-height: 1.04; letter-spacing: -0.03em; font-weight: 500; margin: 0 0 20px; }
.hero .lead { font-size: 19px; line-height: 30px; color: rgba(255, 255, 255, .8); max-width: 34rem; margin: 0 0 32px; }
.hero .btn:not(.primary) { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); color: #fff; }
.hero .btn.primary { background: #fff; border-color: #fff; color: #17181b; }
.hero .fine { margin-top: 20px; font-size: 13px; color: rgba(255, 255, 255, .64); }
.hero-stage { position: relative; margin-right: -200px; padding-top: 48px; }

/* ---------------------------------------------------------------- the product window (shared by hero and how-it-works) */
.win { position: relative; background: var(--card); color: var(--ink); border-radius: 14px; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 24px 60px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .2); overflow: hidden; font-size: 13px; }
.win-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--line); background: var(--raised); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
.win-bar .url { margin-left: 12px; font: 12px/1 var(--mono); color: var(--muted); }
.win-body { display: grid; grid-template-columns: 172px 1fr; min-height: 456px; }
.win-side { border-right: 1px solid var(--line); padding: 16px 12px; display: grid; align-content: start; gap: 2px; }
.win-side .w-brand { font-weight: 500; font-size: 13px; padding: 0 8px 14px; }
.win-side span { display: block; padding: 6px 8px; border-radius: 6px; color: var(--ink2); }
.win-side span.on { background: var(--raised); color: var(--ink); }
.win-main { padding: 20px 0 0 24px; min-width: 0; }
.w-title { font-size: 17px; font-weight: 500; margin: 0 0 2px; }
.w-sub { color: var(--muted); font-size: 12px; margin: 0 0 16px; }
.w-sub .mono { color: var(--ink2); }
table.w-grid { border-collapse: collapse; width: 760px; font-variant-numeric: tabular-nums; }
.w-grid th { text-align: left; font: 500 11px/14px var(--mono); color: var(--muted); padding: 0 8px 8px 0; white-space: nowrap; border-bottom: 1px solid var(--line); }
.w-grid td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); white-space: nowrap; height: 40px; }
.w-grid td.n, .w-grid th.n { text-align: right; }
.w-grid .who { font-weight: 500; }
.w-grid .bar { display: inline-block; height: 7px; border-radius: 4px; background: var(--raised); vertical-align: middle; }
.w-grid tr.focus td:first-child { box-shadow: inset 2px 0 0 var(--short); }
.w-grid tr.focus td:first-child .who { padding-left: 8px; }
.cell { display: inline-block; min-width: 54px; padding: 3px 6px; border-radius: 6px; border: 1px solid var(--line2); background: var(--card); text-align: right; transition: border-color .18s var(--ease), background-color .18s var(--ease); }
.cell.edit { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.cell .caret { display: inline-block; width: 1px; height: 13px; background: var(--accent); vertical-align: -2px; margin-left: 1px; animation: caret 1s steps(2) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.w-check { margin: 16px 24px 0 0; display: grid; }
.w-short, .w-ok { border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 18px; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.w-short { background: var(--short-bg); color: var(--short); }
.w-ok { background: var(--ok-bg); color: var(--ok); }
.w-short b, .w-ok b { font-weight: 500; }
.w-check > * { grid-area: 1 / 1; }
.w-check .hide { opacity: 0; transform: translateY(6px); pointer-events: none; }
.w-actions { display: flex; gap: 8px; margin: 16px 0 24px; }
.w-actions .wbtn { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line2); display: inline-flex; align-items: center; font-weight: 500; font-size: 13px; color: var(--ink); background: var(--card); transition: transform .12s var(--ease), background-color .15s var(--ease); }
.w-actions .wbtn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.w-actions .wbtn.press { transform: scale(.97); }
/* the paper WH-347 (satellite): straddles the window's lower edge */
.sheet { position: absolute; left: -64px; bottom: -40px; width: 300px; background: var(--paper); color: #26282c; border-radius: 6px; padding: 16px 16px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28), 0 1px 3px rgba(0, 0, 0, .18); transform: rotate(-3deg); transition: transform .5s var(--ease), opacity .4s var(--ease); z-index: 3; }
.sheet.hide { opacity: 0; transform: rotate(-3deg) translateY(40px); }
.sheet .s-head { font: 600 11px/14px var(--font); margin-bottom: 2px; }
.sheet .s-sub { font: 10px/13px var(--mono); color: #6c6f75; margin-bottom: 10px; }
.sheet .s-row { display: grid; grid-template-columns: 18px 1fr 40px 44px; gap: 6px; align-items: center; font: 10px/14px var(--mono); padding: 4px 0; border-top: 1px solid #e6e3da; }
.sheet .s-row b { font-weight: 500; }
.sheet .s-sign { margin-top: 12px; border-top: 1px solid #c9c5b9; padding-top: 4px; font: 9px/12px var(--mono); color: #6c6f75; }
.cursor { opacity: 0; position: absolute; z-index: 4; width: 18px; height: 22px; left: 0; top: 0; pointer-events: none; transition: transform .7s var(--ease); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.cursor.down { transition: transform .12s var(--ease); }
.compact-only { display: none; }

/* ---------------------------------------------------------------- sections */
main { display: block; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.sec { padding-top: 96px; padding-bottom: 0; }   /* top only: the side gutter comes from .wrap */
.sec-head { display: grid; gap: 8px; max-width: 46rem; margin-bottom: 40px; }
.sec-head h2 { font-size: 36px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 500; margin: 0; }
.sec-head p { color: var(--ink2); font-size: 18px; line-height: 28px; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.step .tag { display: block; margin-bottom: 16px; }
.step h3 { font-size: 18px; line-height: 26px; font-weight: 500; margin: 0 0 8px; }
.step p { margin: 0; color: var(--ink2); font-size: 15px; line-height: 24px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.panel h3 { font-size: 18px; font-weight: 500; margin: 0 0 16px; }
.panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.panel li { position: relative; padding-left: 24px; color: var(--ink2); font-size: 15px; line-height: 24px; }
.panel li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); }
.panel.does li::before { border-color: var(--ok); background: var(--ok); }
.data-band { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 48px; }
.data-band h2 { font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 500; margin: 8px 0 12px; }
.data-band p { color: var(--ink2); margin: 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fact { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--bg); }
.fact b { display: block; font-weight: 500; font-size: 15px; margin-bottom: 4px; }
.fact span { color: var(--ink2); font-size: 14px; line-height: 22px; }
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line2); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line2); }
.faq summary { cursor: pointer; font-weight: 500; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--ink2); margin: 12px 0 0; }
.end-cta { margin: 96px 0 0; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 40px 48px; border-radius: 20px; background: #17181b; color: #fff; }
.end-cta h2 { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 4px; }
.end-cta p { margin: 0; color: rgba(255, 255, 255, .7); }
.end-cta .btn.primary { background: #fff; border-color: #fff; color: #17181b; }

/* ---------------------------------------------------------------- inner pages */
.page-head { max-width: 1216px; margin: 0 auto; padding: 64px 32px 32px; }
.page-head .tag { display: block; margin-bottom: 12px; }
.page-head h1 { font-size: 44px; line-height: 1.08; letter-spacing: -0.025em; font-weight: 500; margin: 0 0 16px; max-width: 46rem; }
.page-head .lead { font-size: 19px; line-height: 30px; color: var(--ink2); margin: 0; max-width: 40rem; }
.page-body { max-width: 1216px; margin: 0 auto; padding: 0 32px 32px; }
.demo-stage { position: relative; margin: 8px 0 32px; padding: 48px 0 72px 64px; border-radius: 20px; background: #1b1d21 url("/img/hero-1360.webp") center / cover; overflow: hidden; }
.demo-stage::before { content: ""; position: absolute; inset: 0; background: rgba(14, 15, 18, .55); }
.demo-stage .win { margin-right: -120px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 880px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: grid; gap: 12px; align-content: start; }
.plan h2 { font-size: 20px; font-weight: 500; margin: 0; }
.plan p { margin: 0; color: var(--ink2); }
.price { margin: 8px 0 0; color: var(--ink2); font-size: 15px; }
.price span { font-size: 40px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.plan-msg { min-height: 24px; color: var(--ink2); }
.meta { color: var(--muted); font-size: 14px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--ink2); }
.prose ul { padding-left: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.auth { max-width: 460px; display: grid; gap: 14px; }
.auth label { display: grid; gap: 6px; font-size: 14px; color: var(--ink2); }
.auth label.check { display: flex; gap: 8px; align-items: flex-start; }
.auth input, .auth select { font: inherit; height: 44px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--card); color: var(--ink); }
.auth input[type="checkbox"] { height: auto; margin-top: 4px; }
.auth .btn { width: 100%; }
.note { background: var(--raised); padding: 12px 14px; border-radius: 10px; }
.msg { min-height: 22px; font-size: 14px; color: var(--ink2); }
.msg.error, .hint.error { color: var(--short); }

/* ---------------------------------------------------------------- footer */
.foot { max-width: 1216px; margin: 96px auto 0; padding: 40px 32px 48px; border-top: 1px solid var(--line2); display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; color: var(--ink2); font-size: 14px; }
.foot b { color: var(--ink); font-weight: 500; }
.foot p { margin: 8px 0 0; max-width: 28rem; }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot nav a { color: var(--ink2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot .fine { grid-column: 1 / -1; color: var(--muted); margin: 0; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 120px; }
  .hero-stage { margin-right: -96px; padding-top: 0; }
  .hero { height: auto; max-height: 1180px; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .top { padding: 0 16px; height: 56px; }
  .home .top { padding: 0 16px; }
  .top nav { gap: 16px; }
  .top nav a:not(.btn):not(.quiet) { display: none; }
  .hero-inner { padding: 96px 16px 0; gap: 32px; }
  .hero h1 { font-size: 38px; line-height: 1.08; letter-spacing: -0.02em; }
  .hero .lead { font-size: 17px; line-height: 27px; margin-bottom: 24px; }
  .hero .btn { flex: 1 1 auto; }
  .hero-stage { margin-right: -16px; }
  .hero { max-height: 1040px; }
  .full-only { display: none; }
  .compact-only { display: block; }
  .win-body { grid-template-columns: 1fr; min-height: 0; }
  .win-side { display: none; }
  .win-main { padding: 16px 0 0 16px; }
  table.w-grid { width: 420px; }
  .sheet { width: 236px; left: auto; right: 12px; bottom: -28px; }
  .wrap, .page-head, .page-body { padding-left: 16px; padding-right: 16px; }
  .sec { padding-top: 64px; }
  .sec-head h2 { font-size: 28px; }
  .page-head { padding-top: 40px; }
  .page-head h1 { font-size: 34px; }
  .steps, .two, .plans, .facts { grid-template-columns: 1fr; }
  .data-band { grid-template-columns: 1fr; padding: 24px; gap: 24px; }
  .end-cta { flex-direction: column; align-items: flex-start; padding: 28px 24px; margin-top: 64px; }
  .demo-stage { padding: 24px 0 56px 16px; }
  .demo-stage .win { margin-right: -16px; }
  .foot { grid-template-columns: 1fr 1fr; padding: 32px 16px 40px; margin-top: 64px; }
  .foot > div:first-child { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.page-body .wrap { padding-left: 0; padding-right: 0; }
.page-body .sec { padding-top: 80px; }
.logo { white-space: nowrap; }
@media (max-width: 760px) {
  .top nav a.btn { display: none; }
  .top nav a.quiet { display: inline; }
}
.photo-band { margin: 0 0 16px; height: 320px; border-radius: 20px; overflow: hidden; background: var(--raised); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.end-cta { position: relative; overflow: hidden; min-height: 240px; }
.end-cta .end-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.end-cta::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14, 15, 18, .9), rgba(14, 15, 18, .55)); }
.end-cta > div, .end-cta > a { position: relative; z-index: 2; }
@media (max-width: 760px) { .photo-band { height: 200px; border-radius: 14px; } }
.lookup { display: grid; gap: 16px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lookup label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink2); }
.lookup select { font: inherit; height: 44px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--card); color: var(--ink); }
.det-list { display: grid; gap: 8px; }
.det { display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; cursor: pointer; transition: border-color .15s var(--ease); }
.det:hover, .det.on { border-color: var(--accent); }
.det b { font-weight: 500; }
.rates-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin: 8px 0 12px; }
.rates-head h3 { font-size: 20px; font-weight: 500; margin: 4px 0 0; }
.rates-head .links { margin: 0; font-size: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.rates { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: 14px; }
.rates th { background: var(--raised); font: 500 12px/16px var(--mono); color: var(--muted); text-align: left; padding: 10px 14px; }
.rates td { padding: 10px 14px; border-top: 1px solid var(--line); }
.rates .n { text-align: right; white-space: nowrap; }
@media (max-width: 760px) { .row3 { grid-template-columns: 1fr; } }
.lookup .msg:empty, .lookup #r-list:empty, .lookup #r-rates:empty { display: none; }
.lookup, .lookup > *, .row3 > label { min-width: 0; }
.lookup select { width: 100%; }
.rates td .meta { display: block; font-size: 12px; }
@media (max-width: 760px) { .rates th, .rates td { padding: 10px; } .rates th { white-space: normal; } }
.rates .short { display: none; }
@media (max-width: 760px) { .rates .long, .det .show { display: none; } .rates .short { display: inline; } }

/* guides */
.guide { display: grid; grid-template-columns: minmax(0, 760px) 240px; gap: 24px 64px; align-items: start; }
.guide-cta { grid-column: 1 / -1; display: flex; gap: 24px; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; max-width: 1064px; }
.guide-cta p { margin: 0; color: var(--ink2); max-width: 620px; }
.guide-cta .btn { flex: none; }
.guide .prose { grid-column: 1; grid-row: 2 / span 2; }
.toc { grid-column: 2; grid-row: 2; position: sticky; top: 24px; font-size: 14px; }
.toc b, .related b { display: block; font: 500 12px/16px var(--mono); color: var(--muted); margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toc a, .related a { color: var(--ink2); text-decoration: none; }
.toc a:hover, .related a:hover { color: var(--accent); }
.related { grid-column: 1; display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 16px; }
.prose h3 { font-size: 17px; font-weight: 500; margin: 28px 0 8px; }
.prose h2, .prose h3 { scroll-margin-top: 24px; }
.prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose .cite { font-size: 13px; color: var(--muted); white-space: normal; }
.prose .cite a { color: var(--muted); }
.prose .note { background: var(--raised); border-radius: 10px; padding: 12px 16px; color: var(--ink2); font-size: 14px; margin: 0 0 24px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
table.prose-table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
.prose-table th { background: var(--raised); font: 500 12px/16px var(--mono); color: var(--muted); text-align: left; padding: 10px 14px; }
.prose-table td { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--ink2); }
.prose .table-wrap { margin: 16px 0 24px; }
.guide-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 1064px; }
.guide-card { display: grid; gap: 8px; padding: 20px 24px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); transition: border-color .15s var(--ease); }
.guide-card:hover { border-color: var(--accent); }
.guide-card b { font-weight: 500; font-size: 17px; }
.guide-card span { color: var(--ink2); font-size: 14px; }
@media (max-width: 960px) {
  .guide { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; grid-column: 1; grid-row: auto; }
  .guide .prose { grid-row: auto; }
  .guide-cta { flex-direction: column; align-items: flex-start; }
  .guide-list { grid-template-columns: 1fr; }
}

/* home benefit strip */
.facts.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.benefits { padding-top: 48px; padding-bottom: 0; }
.hero-text .tag { display: block; margin-bottom: 12px; }
@media (max-width: 1100px) { .facts.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .facts.four { grid-template-columns: 1fr; } }
/* home copy v2: a longer H1 and lead fit the hero (8 Nov) */
.hero { height: auto; min-height: 720px; padding-bottom: 56px; }
.hero-inner { padding-top: 128px; }
.hero-text { padding-top: 24px; }
.hero h1 { font-size: 48px; hyphens: manual; }
.hero h1 .nb { white-space: nowrap; }
.hero .lead { font-size: 18px; line-height: 29px; }
.hero-text .tag { color: rgba(255, 255, 255, .64); }
@media (max-width: 760px) { .hero h1 { font-size: 36px; } }
.nb { white-space: nowrap; }
@media (min-width: 1101px) { .hero .fine { white-space: nowrap; } }

/* 8 Nov mobile + layout pass (Radar's check of Emmanuel 4751) */
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; font-size: 15px; padding: 6px 12px; border: 1px solid var(--line2); border-radius: 8px; color: var(--ink); }
.menu summary::-webkit-details-marker { display: none; }
.home .menu summary { color: #fff; border-color: rgba(255, 255, 255, .4); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; display: grid; gap: 4px; padding: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(0, 0, 0, .14); z-index: 10; }
.top nav .menu-panel a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink); }
.top nav .menu-panel a:hover { background: var(--raised); }
.top nav .menu-panel a.btn { color: var(--accent-ink); text-align: center; margin-top: 4px; }
@media (max-width: 760px) {
  .menu { display: block; }
  .top nav a.quiet, .top nav > a.btn { display: none !important; }
  .home .top nav .menu-panel a:not(.btn) { color: var(--ink); }
}
/* pricing centred */
.centered .page-head { text-align: center; }
.centered .page-head h1, .centered .page-head .lead { margin-left: auto; margin-right: auto; }
.centered .plans { margin: 0 auto; }
.centered .page-body > .meta, .centered .plan-msg { text-align: center; }
.centered .faq, .centered .sec-head { max-width: 880px; margin-left: auto; margin-right: auto; }
/* auth pages: centred, form beside a facts panel */
.authpage .page-head { max-width: 1000px; margin-left: auto; margin-right: auto; }
.auth-wrap { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 48px; max-width: 1000px; margin: 0 auto; align-items: start; }
.authpage .page-body { max-width: 1064px; }
form.auth { gap: 12px; }
.auth .msg:empty, .auth .note[hidden] { display: none; }
.auth .hint { font-size: 13px; color: var(--muted); }
#turnstile { width: 100%; }
.auth-aside { display: grid; gap: 20px; }
.auth-aside img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.auth-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.auth-aside b { display: block; font-weight: 500; }
.auth-aside span { color: var(--ink2); font-size: 14px; }
@media (max-width: 860px) { .auth-wrap { grid-template-columns: 1fr; } .auth-aside { display: none; } }
/* phone demo: the window drops its sidebar and filler rows so the shortfall line shows */
@media (max-width: 760px) {
  .win-body { grid-template-columns: 1fr; min-height: 0; }
  .win-side { display: none; }
  .win tr.fill { display: none; }
  .hero { max-height: none; }
  .hero-stage { margin-bottom: -24px; }
}

/* Ledger Road's colour use (8 Nov): accent for eyebrows and links, the wash behind key cards, a deep band, the bright accent on hover */
.tag { color: var(--accent); }
.hero .tag, .hero-text .tag { color: rgba(255, 255, 255, .72); }
.btn.primary:hover { background: var(--accent-bright); border-color: var(--accent-bright); }
.benefits .fact { background: var(--accent-wash); border-color: transparent; }
.benefits .fact b { color: var(--accent); }
.data-band { background: var(--deep); color: var(--deep-ink); border-color: var(--deep-rule); }
.data-band p, .data-band .fact span { color: var(--deep-soft); }
.data-band .tag { color: #9dbcf9; }
.data-band .fact { background: transparent; border-color: var(--deep-rule); }
.data-band a { color: #9dbcf9; }
.end-cta { background: var(--deep); }
.plan { border-color: var(--line); }
.plan .price span { color: var(--accent); }
.guide-cta { background: var(--accent-wash); border-color: transparent; }
.prose .note { background: var(--accent-wash); }
.auth-aside b { color: var(--accent); }

/* Ledger Road's type (owner 8 Nov): Oswald 600 headings and brand, Public Sans body, IBM Plex Mono labels */
h1, h2, h3, .logo, .plan h2 { font-family: var(--display); font-weight: 600; letter-spacing: -0.005em; }
.hero h1 { font-weight: 600; letter-spacing: -0.005em; line-height: 1.06; font-size: 54px; }
.page-head h1 { font-weight: 600; letter-spacing: -0.005em; }
.logo { font-size: 18px; letter-spacing: 0.01em; }
.price span { font-family: var(--display); font-weight: 600; }
.fact b, .benefits .fact b, .faq summary, .auth-aside b, .guide-card b { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.005em; }
.win, .win h3, .win .w-title { font-family: var(--font); }
.win .w-title { font-weight: 600; }
@media (max-width: 760px) { .hero h1 { font-size: 40px; } }

/* phone menu: its links stay visible (the small-screen rule hides header links) */
@media (max-width: 760px) { .top nav .menu-panel a { display: block !important; } }
/* home: "What is certified payroll?" and the FAQ use the full container, heading left and content right */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.split .sec-head { margin: 0; }
.split .faq { max-width: none; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 16px; } }
/* login/signup heading on the card's edge */
.authpage .page-head { max-width: 1064px; }
/* one content edge (112–1328 at 1440): the end band and the hero line up with the sections; the product window stays inside */
@media (min-width: 1101px) {
  .hero-inner { max-width: 1280px; padding-left: 32px; padding-right: 32px; grid-template-columns: minmax(0, 10fr) minmax(0, 14fr); gap: 48px; }
  .hero-stage .full-only { display: none; }
  .hero-stage table.w-grid { width: 100%; }
  .hero-stage { margin-right: 0; }
  .hero-stage .win-body { grid-template-columns: 140px 1fr; }
}
.page-head { max-width: 1280px; } .page-body { max-width: 1280px; }
.centered .page-head, .authpage .page-head { max-width: 1064px; }

/* "By hand vs." comparison on the deep band (Emmanuel 4761) */
.data-band.compare { display: block; }
.compare .sec-head h2 { color: var(--deep-ink); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { text-align: left; padding: 14px 16px; border-top: 1px solid var(--deep-rule); vertical-align: top; }
.cmp thead th { border-top: 0; font: 500 12px/16px var(--mono); color: var(--deep-soft); }
.cmp thead th:last-child { color: #9dbcf9; }
.cmp tbody th { font-family: var(--display); font-weight: 600; color: var(--deep-ink); width: 22%; }
.cmp td { color: var(--deep-soft); width: 39%; }
.cmp td.us { color: var(--deep-ink); }
@media (max-width: 760px) { .cmp th, .cmp td { padding: 10px 8px; font-size: 14px; } .cmp tbody th { width: 28%; } }
/* the demo table fits its window at every width */
@media (max-width: 1100px) { .w-grid .full-only { display: none; } table.w-grid { width: 100%; } }
@media (max-width: 760px) { .w-grid tr > :nth-child(2) { display: none; } }
/* how-it-works demo: the window stays inside its stage so every column is readable (Radar 8 Nov) */
.demo-stage { padding: 48px 64px 72px; }
.demo-stage .win { margin-right: 0; }
.demo-stage table.w-grid { width: 100%; }
@media (max-width: 760px) { .demo-stage { padding: 16px 12px 24px; } .demo-stage .win { margin-right: 0; } }

/* 8 Nov: footer text on the content edge (112 at 1440), brand in Oswald; the phone hero card keeps a 16 px gutter on both sides */
@media (min-width: 761px) { .foot { max-width: 1280px; padding-left: 32px; padding-right: 32px; border-top: 0; position: relative; }
  .foot::before { content: ""; position: absolute; top: 0; left: 32px; right: 32px; border-top: 1px solid var(--line2); } }
.foot > div > b { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: 0.01em; }
@media (max-width: 760px) { .hero-stage { margin-right: 0; } .hero-stage .win { border-radius: 14px; } }

/* how-it-works: six steps, each a real screenshot of the app (demo data) */
.hiw-step { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; }
.hiw-step.flip .hiw-text { order: 2; }
.hiw-text h2 { font-size: 32px; line-height: 1.1; margin: 8px 0 12px; }
.hiw-text p { color: var(--ink2); font-size: 17px; line-height: 28px; margin: 0; }
.shot { margin: 0; background: var(--raised); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.shot img { display: block; width: 100%; height: auto; border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 12px 32px rgba(0, 0, 0, .08); background: var(--card); }
.hiw-step.tall .shot { max-width: 420px; justify-self: center; }
@media (max-width: 900px) { .hiw-step { grid-template-columns: 1fr; gap: 24px; } .hiw-step.flip .hiw-text { order: 0; } .shot { padding: 8px; } }
.rates details.full { margin-top: 4px; font-size: 12px; } .rates details.full summary { cursor: pointer; color: var(--accent); }

/* how-it-works hero with the WH-347 as a sheet on the right; step captions */
.page-head.with-visual { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 56px; align-items: center; }
.head-visual { margin: 0; transform: rotate(1.2deg); }
.head-visual img { display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 2px 4px rgba(0, 0, 0, .06), 0 24px 48px rgba(0, 0, 0, .12); }
.shot figcaption { margin-top: 10px; font-size: 14px; }
.sec-body .lead-sm { font-size: 17px; line-height: 28px; color: var(--ink2); margin: 0; }
@media (max-width: 900px) { .page-head.with-visual { grid-template-columns: 1fr; gap: 32px; } .head-visual { transform: none; } }
@media (min-width: 901px) { .hiw-step.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .hiw-step.flip .shot { order: 1; } }
.rates tr.grp th { background: var(--accent-wash); color: var(--accent); font: 600 13px/18px var(--display); letter-spacing: .02em; text-align: left; padding: 10px 14px; }
/* guides on the full container (Radar 8 Nov): 3 cards per row on desktop; guide pages run to the right content edge */
.guide-list { max-width: none; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.guide { grid-template-columns: minmax(0, 1fr) 260px; }
.guide-cta { max-width: none; }
.guide .prose { max-width: 760px; }
@media (max-width: 960px) { .guide-list { grid-template-columns: 1fr; } .guide { grid-template-columns: minmax(0, 1fr); } }
.guide-card.wide { grid-column: 1 / -1; }
.rates td .due { display: block; background: var(--due-bg); color: #8a5300; border-radius: 6px; padding: 6px 8px; margin-top: 6px; font-size: 12px; }
