/* Certified Payroll Co: site styles. Plain CSS, no build step. */
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 800;
  font-display: optional; /* no layout jump: if the font is slow, the system font stays */
  src: url("/assets/fonts/public-sans-latin.woff2") format("woff2");
}

:root {
  --navy: #0B1F3A;
  --navy-2: #13315C;
  --ink: #1A2333;
  --muted: #4A5568;
  --line: #DCE2EB;
  --soft: #F3F6FA;
  --orange: #FF6A13;
  --orange-hover: #FF7F33;
  --orange-text: #B94600; /* orange that passes contrast on white */
  --radius: 12px;
  --wrap: 1160px;
  --font: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  text-rendering: optimizeLegibility;
}
@media (min-width: 900px) { body { font-size: 18px; } }

h1, h2, h3 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 6.4vw, 3.5rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.65rem, 4.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--navy-2); text-underline-offset: 3px; }
strong { font-weight: 700; }

.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 860px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 12px 22px;
  border-radius: 10px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--orange); color: var(--navy); }
.btn-primary:hover { background: var(--orange-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--soft); }
.btn-lg { min-height: 58px; padding: 14px 26px; font-size: 1.08rem; }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: .95rem; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; min-height: 44px; }
.logo-mark { width: 32px; height: 32px; flex: none; }
.nav { display: none; gap: 26px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; padding: 10px 0; }
.nav a:hover { color: var(--navy-2); text-decoration: underline; }
.header-cta { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.header-phone { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--navy); font-weight: 700; text-decoration: none; min-height: 44px; min-width: 44px; }
.header-phone span { display: none; }
.header-cta .btn { display: none; }
@media (min-width: 640px) {
  .header-phone span { display: inline; }
}
@media (min-width: 980px) {
  .nav { display: flex; }
  .header-cta { margin-left: 8px; }
  .header-cta .btn { display: inline-flex; }
}

/* Hero */
.hero { padding: 40px 0 56px; background: linear-gradient(180deg, #fff 0%, var(--soft) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 980px) { .hero { padding: 72px 0 88px; } .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; } }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-text); margin-bottom: .75em; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 36em; }
.lede strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 24px; }
.hero-actions .btn { flex: 1 1 260px; }
@media (min-width: 640px) { .hero-actions .btn { flex: 0 0 auto; } }
.trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 600; color: var(--navy); font-size: .98rem; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .ic { color: var(--orange-text); stroke-width: 3; }

/* Report mock */
.report { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(11,31,58,.06), 0 18px 40px -18px rgba(11,31,58,.28); padding: 20px; font-size: .9rem; }
@media (min-width: 768px) { .report { padding: 26px; } }
.report-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--navy); }
.report-kicker { margin: 0; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.report-title { margin: 2px 0 0; font-weight: 800; color: var(--navy); font-size: 1.05rem; }
.report-badge { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: #FFF1E8; color: #8A3400; border: 1px solid #FFC9A6; font-weight: 700; font-size: .8rem; padding: 6px 10px; border-radius: 999px; }
.report-badge .ic { stroke-width: 3; width: 1em; height: 1em; }
.report-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 14px 0; }
.report-meta div:first-child { grid-column: 1 / -1; }
@media (min-width: 480px) { .report-meta { grid-template-columns: repeat(3, auto); } .report-meta div:first-child { grid-column: auto; } }
.report-meta dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.report-meta dd { margin: 0; font-weight: 600; color: var(--ink); }
.report-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.report-table th, .report-table td { padding: 9px 6px; text-align: center; border-bottom: 1px solid var(--line); }
.report-table thead th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--soft); font-weight: 700; }
.report-table tbody th { text-align: left; font-weight: 700; color: var(--navy); }
.report-table tbody th span { display: block; font-weight: 500; color: var(--muted); font-size: .8rem; }
.report-table .n { text-align: right; }
.report-table td.n:last-child { font-weight: 700; color: var(--ink); }
.report-table .d { display: none; }
@media (min-width: 480px) { .report-table .d { display: table-cell; } }
.report-foot { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; color: var(--navy); font-weight: 600; font-size: .85rem; }
.report-foot span { display: flex; align-items: center; gap: 8px; }
.report-foot .ic { color: var(--orange-text); }
.report figcaption { margin-top: 12px; font-size: .78rem; color: var(--muted); }

/* Problem */
.problem { background: var(--navy); color: #fff; padding: 64px 0; }
.problem h2 { color: #fff; }
.quotes { list-style: none; margin: 24px 0 28px; padding: 0; display: grid; gap: 14px; }
@media (min-width: 768px) { .quotes { grid-template-columns: 1fr 1fr; gap: 18px; } }
.quotes li { display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius); padding: 18px 20px; }
.quotes .ic { color: var(--orange); width: 26px; height: 26px; margin-top: 2px; }
.quotes p { margin: 0; font-size: 1.08rem; font-weight: 600; line-height: 1.45; }
.problem-close { font-size: 1.15rem; margin: 0; color: #E4EAF3; max-width: 40em; }

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 980px) { .section { padding: 88px 0; } .problem { padding: 80px 0; } }
.soft { background: var(--soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-lede { font-size: 1.1rem; color: var(--muted); max-width: 40em; margin-bottom: 32px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: none; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px 22px; }
.step-num { position: absolute; top: 20px; right: 20px; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .95rem; }
.step-ic { width: 34px; height: 34px; color: var(--orange-text); margin-bottom: 12px; stroke-width: 1.8; }
.steps p { margin: 0; color: var(--muted); }

/* Included */
.two-col { display: grid; gap: 18px; }
@media (min-width: 860px) { .two-col { grid-template-columns: 1fr 1fr; gap: 24px; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.card-sub { font-weight: 700; color: var(--navy); margin: 14px 0 6px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks .ic { color: var(--orange-text); stroke-width: 3; margin-top: .2em; width: 1.1em; height: 1.1em; }

/* Proof band */
.proof { background: #FFF4EC; border-bottom: 1px solid #FFD9BF; padding: 44px 0; }
.proof-row { display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .proof-row { grid-template-columns: 1fr auto; gap: 40px; } }
.proof h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); }
.proof p { margin: 0; color: var(--ink); max-width: 44em; }

/* Pricing */
.price-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .price-grid { grid-template-columns: 1.2fr 1fr; gap: 40px; } }
.price-box { border: 2px solid var(--navy); border-radius: 16px; overflow: hidden; background: #fff; }
.price-table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.price-table th, .price-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--navy); color: #fff; font-size: .9rem; font-weight: 700; }
.price-table thead th:last-child, .price-table td { text-align: right; }
.price-table tbody th { font-weight: 600; color: var(--ink); }
.price-table td { white-space: nowrap; font-weight: 800; color: var(--navy); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.price-table tbody tr:last-child td { font-size: 1.05rem; }
.examples { padding: 18px 20px 20px; background: var(--soft); }
.examples p { margin: 0 0 6px; }
.examples p:last-child { margin: 0; }
.examples-h { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.price-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 1.05rem; }
.price-notes li { display: flex; gap: 12px; align-items: flex-start; }
.price-notes .ic { color: var(--orange-text); stroke-width: 3; margin-top: .2em; }
.price-cta { margin-top: 8px; }
.price-cta .btn { width: 100%; }
@media (min-width: 640px) { .price-cta .btn { width: auto; } }

@media (min-width: 640px) { .price-table th, .price-table td { padding: 16px 22px; } }

/* Who */
.trades { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.trades li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; font-weight: 600; color: var(--navy); }
.callout { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: var(--radius); padding: 22px 24px; max-width: 760px; }
.callout p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; font-weight: 700; color: var(--navy); font-size: 1.08rem; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2.5px solid var(--orange-text); border-bottom: 2.5px solid var(--orange-text); transform: rotate(45deg); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:hover { color: var(--navy-2); }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 46em; }

/* Form */
.form-section { background: var(--navy); color: #fff; padding: 64px 0; }
@media (min-width: 980px) { .form-section { padding: 88px 0; } }
.form-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 980px) { .form-grid { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.form-intro h2 { color: #fff; }
.form-intro > p { color: #E4EAF3; font-size: 1.1rem; }
.checks-light { margin: 20px 0 24px; }
.checks-light li { font-weight: 600; }
.checks-light .ic { color: var(--orange); }
.form-alt { color: #E4EAF3; margin: 0; }
.form-alt a { color: #fff; font-weight: 700; }
.form-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 24px 20px; box-shadow: 0 24px 50px -24px rgba(0,0,0,.5); }
@media (min-width: 768px) { .form-card { padding: 32px; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field-row { display: grid; gap: 0 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 700; color: var(--navy); font-size: .98rem; }
.opt { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink);
  background: #fff; border: 1.5px solid #9AA6B8; border-radius: 10px;
  padding: 12px 14px; min-height: 52px;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230B1F3A' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(255,106,19,.45); outline-offset: 1px; }
.field input[aria-invalid="true"] { border-color: #C2261B; }
.field-msg { color: #B3261E; font-size: .9rem; font-weight: 600; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #FDECEA; color: #8C1D18; border: 1px solid #F5C2BE; border-radius: 10px; padding: 12px 14px; font-weight: 600; }
.form-note { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.thanks { text-align: center; padding: 24px 8px; }
.thanks:focus { outline: none; }
.thanks-ic { width: 56px; height: 56px; color: #fff; background: var(--navy); border-radius: 50%; padding: 12px; stroke-width: 3; margin-bottom: 8px; }
.thanks h3 { font-size: 1.5rem; }
.thanks p { color: var(--muted); }
.thanks-alt a { font-weight: 700; }
#f-submit[disabled] { opacity: .7; cursor: wait; }

/* Footer */
.site-footer { background: #071528; color: #C9D3E1; padding: 40px 0 44px; font-size: .95rem; }
.footer-row { display: grid; gap: 18px; }
@media (min-width: 900px) { .footer-row { grid-template-columns: auto 1fr; align-items: center; } .copy { grid-column: 1 / -1; } }
.logo-light { color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 24px; }
@media (min-width: 900px) { .footer-links { justify-content: flex-end; } }
.footer-links a { color: #fff; text-decoration: none; display: inline-block; padding: 10px 0; }
.footer-links a:hover { text-decoration: underline; }
.copy { margin: 0; color: #AEBBCD; }

/* Mobile sticky bar */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(11,31,58,.08); transition: transform .2s ease; }
.mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 10px; font-weight: 700; font-size: 1.05rem; text-decoration: none; }
.mb-call { background: #fff; color: var(--navy); border: 2px solid var(--navy); }
.mb-free { background: var(--orange); color: var(--navy); }
.mobile-bar.is-hidden { transform: translateY(110%); }
body { padding-bottom: 78px; }
@media (min-width: 900px) { .mobile-bar { display: none; } body { padding-bottom: 0; } }

/* Simple pages (privacy, terms, thanks, 404) */
.page { padding: 56px 0 72px; }
.page h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.page h2 { font-size: 1.35rem; margin-top: 1.6em; }
.page .updated { color: var(--muted); }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .4em; }
body.simple { padding-bottom: 0; }
a[href^="tel:"] { white-space: nowrap; }
.price-table td.extra { font-weight: 700; color: var(--muted); font-size: 1.05rem; }
.price-rule { margin: 0; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: .98rem; }
@media (min-width: 640px) { .price-rule { padding: 14px 22px; } }
@media (max-width: 420px) { .price-table thead th { font-size: .8rem; } .price-table th, .price-table td { padding: 12px 10px; } .price-table td { font-size: 1.1rem; } }
.price-table thead th + th { text-align: right; }
