/* Crewvia public pages (tools, comparisons, pricing). Hi-Vis Jobsite: asphalt, safety yellow (fill only, dark text), concrete. */
@font-face { font-family: Barlow; font-weight: 400; font-display: swap; src: url(/site/fonts/Barlow_400Regular.ttf) format('truetype'); }
@font-face { font-family: Barlow; font-weight: 600; font-display: swap; src: url(/site/fonts/Barlow_600SemiBold.ttf) format('truetype'); }
@font-face { font-family: Barlow; font-weight: 700; font-display: swap; src: url(/site/fonts/Barlow_700Bold.ttf) format('truetype'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url(/site/fonts/BarlowCondensed_700Bold.ttf) format('truetype'); }

:root {
  --asphalt: #1E2124; --asphalt-deep: #16181B; --yellow: #FFC20E; --ink: #17191B; --concrete: #ECEDE9;
  --surface: #FFFFFF; --surface-alt: #F4F4F1; --border: #D9DBD5; --border-strong: #B9BCB5;
  --text: #17191B; --text-2: #565C63; --muted: #5F656C; --green: #157A3C; --red: #C0262D;
  --radius: 8px; --max: 1120px;
  --sans: Barlow, "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --display: 'Barlow Condensed', "Arial Narrow", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--concrete); color: var(--text); font: 400 17px/1.55 var(--sans); }
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: 100%; max-width: calc(var(--max) + 64px); margin: 0 auto; padding: 0 32px; }
@media (max-width: 760px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* Header */
.top { background: var(--asphalt); color: #fff; border-bottom: 4px solid var(--yellow); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: #fff; }
.brand .mark { width: 32px; height: 32px; border-radius: 4px; background: var(--yellow); display: grid; place-items: center; }
.brand .mark svg { width: 19px; height: 19px; }
.brand b { font: 700 26px/1 var(--display); letter-spacing: .5px; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: rgba(255,255,255,.85); }
.nav a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 4px; }
@media (max-width: 760px) { .nav .hide-sm { display: none; } .nav { gap: 14px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--radius);
  font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer; border: 2px solid transparent; white-space: nowrap; }
.btn-accent { background: var(--yellow); color: var(--ink); }
.btn-accent:hover { background: #F2B500; }
.btn-dark { background: var(--asphalt); color: #fff; }
.btn-dark:hover { background: var(--asphalt-deep); }
.btn-outline { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-outline:hover { border-color: var(--text); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 18px; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* Hero */
.hero { background: var(--asphalt); color: #fff; padding: 48px 0 56px; }
.hero h1 { font: 700 clamp(36px, 5vw, 56px)/1.02 var(--display); text-transform: uppercase; letter-spacing: .3px; margin: 0 0 14px; max-width: 900px; }
.hero p.lead { font-size: 19px; color: rgba(255,255,255,.82); max-width: 720px; margin: 0 0 22px; }
.eyebrow { display: inline-block; background: var(--yellow); color: var(--ink); font: 700 13px/1 var(--sans); letter-spacing: .8px; text-transform: uppercase; padding: 6px 10px; border-radius: 4px; margin-bottom: 16px; }
.crumbs { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 14px; }
.crumbs a { color: rgba(255,255,255,.8); }

/* Sections */
main { padding: 40px 0 64px; }
section + section { margin-top: 48px; }
h2 { font: 700 34px/1.08 var(--display); text-transform: uppercase; margin: 0 0 14px; letter-spacing: .3px; }
h3 { font: 700 20px/1.25 var(--sans); margin: 0 0 8px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 24px; }
.grid { display: grid; gap: 20px; }
.grid > *, .stack > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } .card { padding: 18px; } h2 { font-size: 28px; } }
.prose { max-width: 760px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.callout { border-left: 5px solid var(--yellow); background: var(--surface); padding: 16px 20px; border-radius: 0 10px 10px 0; }

/* Tool cards (hub) */
.tool-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.tool-card:hover { border-color: var(--text); }
.tool-card .go { margin-top: auto; font-weight: 700; }

/* Forms */
label.f { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; color: var(--text-2); }
input, select, textarea { font: 400 16px/1.3 var(--sans); color: var(--text); background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius);
  min-height: 44px; padding: 10px 12px; width: 100%; }
textarea { min-height: 88px; resize: vertical; }
.row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font: 700 20px/1.2 var(--sans); margin-bottom: 12px; padding: 0; }

/* Line item editor */
.items { width: 100%; border-collapse: collapse; }
.items th { text-align: left; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 0 6px 6px; }
.items td { padding: 4px 6px; vertical-align: top; }
.items td.amt { text-align: right; font-weight: 700; padding-top: 14px; white-space: nowrap; }
.items .del { background: none; border: 0; color: var(--muted); font-size: 22px; cursor: pointer; padding: 8px; min-height: 44px; }
.items .del:hover { color: var(--red); }
@media (max-width: 760px) {
  .items thead { display: none; }
  .items tr { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--border); }
  .items td { padding: 0; }
  .items td.desc { grid-column: 1 / -1; }
  .items td.amt { padding-top: 12px; }
}

/* Results */
.result { background: var(--asphalt); color: #fff; border-radius: 10px; padding: 22px 24px; }
.result .big { font: 700 48px/1 var(--display); }
.result .lbl { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: rgba(255,255,255,.7); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; }
table.data { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
table.data th, table.data td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.data thead th { background: var(--surface-alt); font-size: 14px; text-transform: uppercase; letter-spacing: .4px; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data tfoot td { font-weight: 700; background: var(--surface-alt); }
.qty-line { display: none; font-weight: 700; margin-top: 2px; }
@media (max-width: 760px) { .qty-line { display: block; } .col-q { display: none; } }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.yes { color: var(--green); font-weight: 700; }
.no { color: var(--muted); }

/* Pricing */
.price { font: 700 52px/1 var(--display); }
.price small { font: 600 16px var(--sans); color: var(--muted); }
.plan.popular { border: 3px solid var(--yellow); }
.toggle { display: inline-flex; background: #fff; border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px; gap: 4px; }
.toggle button { border: 0; background: none; font: 700 15px var(--sans); padding: 8px 16px; border-radius: 999px; cursor: pointer; min-height: 40px; color: var(--text); }
.toggle button[aria-pressed="true"] { background: var(--asphalt); color: #fff; }
.checks { list-style: none; padding: 0; margin: 14px 0 20px; }
.checks li { padding-left: 26px; position: relative; margin-bottom: 8px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 14px; height: 8px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }

/* CTA band + footer */
.band { background: var(--asphalt); color: #fff; border-radius: 12px; padding: 32px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.band h2 { margin: 0 0 6px; }
.band p { margin: 0; color: rgba(255,255,255,.8); }
footer.site { background: var(--asphalt-deep); color: rgba(255,255,255,.75); padding: 32px 0; font-size: 14px; }
footer.site .wrap { display: flex; gap: 20px; justify-content: space-between; flex-wrap: wrap; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
details { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; }
details[open] summary { margin-bottom: 8px; }

/* Printable estimate (estimate template) */
.doc { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 32px; color: #111; font-size: 15px; }
.doc .doc-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-bottom: 3px solid var(--ink); padding-bottom: 16px; margin-bottom: 18px; }
.doc .doc-title { font: 700 36px/1 var(--display); text-transform: uppercase; }
.doc .biz { font-weight: 700; font-size: 20px; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.doc th { text-align: left; border-bottom: 2px solid #111; padding: 8px 6px; font-size: 13px; text-transform: uppercase; }
.doc td { border-bottom: 1px solid #ddd; padding: 8px 6px; vertical-align: top; }
.doc .num { text-align: right; white-space: nowrap; }
.doc .totals { margin-left: auto; width: min(320px, 100%); }
.doc .totals div { display: flex; justify-content: space-between; padding: 4px 0; }
.doc .totals .grand { font-weight: 700; font-size: 20px; border-top: 2px solid #111; padding-top: 8px; margin-top: 4px; }
.doc .made { margin-top: 28px; font-size: 12px; color: #666; }
.doc .pre { white-space: pre-wrap; }
@media (max-width: 760px) { .doc { padding: 18px; } }
.print-only { display: none; }
@media print {
  @page { margin: 14mm; }
  body { background: #fff; }
  .no-print, header.top, footer.site, .hero, .band { display: none !important; }
  .print-only { display: block; }
  main { padding: 0; }
  .doc { border: 0; padding: 0; }
  .grid:has(> .doc), .grid:has(.doc) { display: block; }
  .stack:has(> .doc) { position: static !important; }
  .wrap { padding: 0; max-width: none; }
}

/* Pricing: yearly vs monthly, trial timeline */
.was { font-size: 15px; color: var(--text-2); }
.was s { color: var(--muted); }
[hidden] { display: none !important; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.timeline li { background: var(--surface); border: 1px solid var(--border); border-top: 5px solid var(--yellow); border-radius: 10px; padding: 18px; }
.timeline li.end { border-top-color: var(--red); }
.timeline .when { display: block; font: 700 24px/1 var(--display); text-transform: uppercase; margin-bottom: 8px; }
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }

/* Switching guide checklist */
.tag-no { color: var(--red); font-weight: 700; }
.tag-test { color: var(--text-2); font-weight: 700; }

/* Demand letter */
.doc .letter p { margin: 0 0 12px; }
.doc .letter .re { font-weight: 700; margin: 18px 0; }
