:root {
  --navy: #102a3d;
  --navy-2: #173f59;
  --blue: #1f5e8c;
  --teal: #167b74;
  --mint: #8bddd4;
  --ink: #1f313f;
  --muted: #5c6d78;
  --paper: #ffffff;
  --soft: #edf5f6;
  --input: #fff6cf;
  --line: #d5e0e5;
  --red: #a72922;
  --shadow: 0 16px 45px rgba(16, 42, 61, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
button, input, select { font: inherit; }

.site-header { color: #fff; background: radial-gradient(circle at 88% 5%, #2c6d82 0, transparent 34%), linear-gradient(135deg, #0c2334, #184d6e); padding: 0 6vw 86px; }
.nav { max-width: 1180px; margin: auto; display: flex; justify-content: space-between; align-items: center; padding: 26px 0; }
.brand { color: var(--mint); font-weight: 900; letter-spacing: .09em; text-decoration: none; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: #d8e8f1; font-size: .91rem; text-decoration: none; }
.nav-links a:hover, .nav-links a:focus-visible { color: #fff; }
.hero { max-width: 1180px; margin: 68px auto 0; display: grid; grid-template-columns: 1.55fr .65fr; gap: 76px; align-items: end; }
.eyebrow { margin: 0 0 12px; color: var(--mint); font-size: .78rem; font-weight: 900; letter-spacing: .15em; }
.eyebrow.dark { color: var(--teal); }
.hero h1 { max-width: 840px; margin: 0 0 24px; font-size: clamp(3rem, 6vw, 5.8rem); line-height: .98; letter-spacing: -.058em; }
.lead { max-width: 760px; margin: 0 0 34px; color: #d7e7f0; font-size: 1.23rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-block; padding: 14px 19px; border-radius: 9px; font-weight: 850; text-decoration: none; }
.button.primary { color: #0f2b3e; background: var(--mint); }
.button.secondary { color: #fff; border: 1px solid rgba(255,255,255,.35); }
.hero-proof { display: grid; gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.17); border-radius: 18px; background: rgba(255,255,255,.13); box-shadow: 0 24px 60px rgba(0,0,0,.17); }
.hero-proof div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 20px 24px; background: rgba(12,35,52,.43); }
.hero-proof span { color: var(--mint); font-size: 1.8rem; font-weight: 900; }
.hero-proof p { margin: 0; color: #d5e5ee; font-size: .89rem; text-align: right; }

.tool-section, .method { padding: 88px 6vw; }
.tool-section.tint { background: var(--soft); }
.section-copy { max-width: 1180px; margin: 0 auto 34px; }
.section-copy.compact { margin-bottom: 28px; }
.section-copy h2, .method h2 { max-width: 800px; margin: 0 0 12px; font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1.04; letter-spacing: -.045em; }
.section-copy > p:last-child { max-width: 760px; color: var(--muted); }
.tool-shell { max-width: 1180px; margin: auto; display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.tool-picker { display: grid; gap: 8px; position: sticky; top: 16px; }
.tool-picker button, .service-index button { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; text-align: left; transition: .16s ease; }
.tool-picker button { padding: 13px 14px; }
.tool-picker button span, .service-index button span { display: block; margin-bottom: 3px; color: var(--teal); font-size: .7rem; font-weight: 900; letter-spacing: .1em; }
.tool-picker button:hover, .service-index button:hover { border-color: #96b2be; transform: translateY(-1px); }
.tool-picker button[aria-pressed="true"], .service-index button[aria-pressed="true"] { border-color: var(--navy); color: #fff; background: var(--navy); box-shadow: 0 8px 24px rgba(16,42,61,.18); }
.tool-picker button[aria-pressed="true"] span, .service-index button[aria-pressed="true"] span { color: var(--mint); }
.calculator { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.calculator.standalone { max-width: 1180px; margin: 20px auto 0; }
.calculator-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; padding: 26px 28px 22px; border-bottom: 1px solid var(--line); }
.calculator-head h3 { margin: 2px 0 7px; color: var(--navy); font-size: 1.55rem; line-height: 1.15; }
.calculator-head p:not(.tool-id) { max-width: 710px; margin: 0; color: var(--muted); }
.tool-id { margin: 0; color: var(--teal); font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.reset { flex: 0 0 auto; border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; color: var(--navy); background: #fff; cursor: pointer; font-size: .81rem; font-weight: 800; }
.calculator form { padding: 26px 28px; }
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 16px; }
.field-grid label { min-width: 0; color: #41535f; font-size: .82rem; font-weight: 750; }
.field-grid input, .field-grid select { width: 100%; margin-top: 6px; border: 1px solid #c6d3d9; border-radius: 8px; padding: 10px 11px; color: #173348; background: var(--input); }
.field-grid input:focus, .field-grid select:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(31,94,140,.22); outline-offset: 2px; }
.field-grid small { display: block; margin-top: 5px; color: #6c7a84; font-size: .72rem; font-weight: 500; line-height: 1.35; }
.input-wrap { display: block; position: relative; }
.input-wrap input { margin-top: 6px; }
.suffix { position: absolute; right: 11px; bottom: 10px; color: #657680; }
.error { min-height: 1.4em; margin: 16px 0 8px; color: var(--red); font-size: .84rem; font-weight: 800; }
.results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.result { min-width: 0; padding: 13px 14px; border-radius: 9px; background: #f4f7f8; }
.result:nth-child(3n+1) { background: #e5f3f1; }
.result span { display: block; color: #687984; font-size: .7rem; font-weight: 800; letter-spacing: .055em; text-transform: uppercase; }
.result strong { display: block; overflow-wrap: anywhere; margin-top: 4px; color: var(--navy); font-size: 1.26rem; }
.method-note { padding: 18px 28px; border-top: 1px solid var(--line); color: var(--muted); background: #f7fafb; font-size: .86rem; }
.method-note strong { color: var(--navy); }
.method-note p { margin: 5px 0; }
.tool-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 28px; color: #fff; background: var(--navy); }
.tool-cta p { margin: 3px 0 0; color: #c8dae4; font-size: .83rem; }
.tool-cta a { flex: 0 0 auto; border-radius: 8px; padding: 11px 14px; color: var(--navy); background: var(--mint); font-size: .85rem; font-weight: 900; text-decoration: none; }
.article-callout { max-width: 1180px; margin: 28px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; border: 1px solid #c7d9dc; border-radius: 14px; padding: 22px 24px; background: #fff; }
.article-callout.compact-callout { margin-top: 12px; }
.article-callout h3 { margin: 0; font-size: 1.35rem; }
.article-callout p:not(.eyebrow) { margin: 4px 0 0; color: var(--muted); }
.text-link { flex: 0 0 auto; color: var(--blue); font-weight: 850; text-decoration: none; }
.service-index { max-width: 1180px; margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.service-index button { padding: 14px 15px; }

.guides-section { padding: 88px 6vw; background: #f7fafb; }
.guide-cards { max-width: 1180px; margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guide-cards article { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: #fff; box-shadow: 0 8px 28px rgba(16,42,61,.05); }
.guide-cards h2, .guide-cards h3 { margin: 6px 0 10px; color: var(--navy); line-height: 1.16; }
.guide-cards h2 { font-size: 1.45rem; }
.guide-cards h3 { font-size: 1.28rem; }
.guide-cards h2 a, .guide-cards h3 a { text-decoration: none; }
.guide-cards article > p:not(.eyebrow) { color: var(--muted); }
.guide-index { padding: 72px 24px; background: #f7fafb; }
.home-guides { grid-template-columns: repeat(4, 1fr); }
.updates-callout { max-width: 1180px; margin: 28px auto 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-radius: 15px; padding: 28px; color: #fff; background: var(--navy); }
.updates-callout h2, .updates-callout h3 { margin: 0 0 8px; }
.updates-callout p { max-width: 740px; margin: 0; color: #cddde5; }
.updates-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }

.guide-hero { padding: 68px 6vw 74px; color: #fff; background: linear-gradient(135deg,#0c2334,#195b72); }
.guide-wrap { max-width: 860px; margin: auto; }
.guide-hero h1 { margin: 12px 0 22px; font-size: clamp(2.8rem,6vw,5.3rem); line-height: 1; letter-spacing: -.05em; }
.guide-hero p:last-child { max-width: 760px; color: #d7e7f0; font-size: 1.15rem; }
.guide { max-width: 860px; margin: auto; padding: 64px 24px 82px; }
.guide h2 { margin: 52px 0 12px; color: var(--navy); font-size: 2rem; line-height: 1.1; }
.guide p, .guide li { color: #4e616d; }
.guide-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; color: #637985; font-size: .83rem; }
.guide-breadcrumb a { color: var(--blue); text-decoration: none; }
.back { display: inline-block; margin-bottom: 18px; color: var(--blue); font-weight: 800; text-decoration: none; }
.guide .faq { margin-top: 54px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { color: var(--navy); cursor: pointer; font-weight: 800; }
.faq details p { margin-bottom: 0; }
.guide-cta { margin-top: 54px; border-radius: 15px; padding: 30px; color: #fff; background: var(--navy); }
.guide-cta h2 { margin-top: 0; color: #fff; }
.guide-cta p { color: #cedee7; }
.guide-cta .button { background: var(--mint); color: var(--navy); }
.guide-cta .button.light { background: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px; }
.mini-calculator { margin: 38px 0 48px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.mini-calculator h2 { margin: 0; padding: 26px 28px 8px; font-size: 1.75rem; }
.mini-calculator > p { margin: 0; padding: 0 28px 8px; }
.mini-calculator form { padding: 18px 28px 28px; }
.mini-calculator .field-grid { margin-bottom: 20px; }
.mini-results { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 8px; }
.mini-results .result { min-height: 72px; }
.calc-error { min-height: 1.5em; margin: 12px 0 0; color: #9f2d20; font-weight: 700; }
.formula-note { border-left: 4px solid var(--mint); padding: 14px 18px; background: #f2f8f7; }
.secondary-cta { display: inline-block; margin-top: 10px; color: var(--mint); font-weight: 800; }
.fine-print { font-size: .8rem; }
.related { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; border-top: 1px solid var(--line); padding-top: 22px; color: var(--blue); font-size: .88rem; }
.related strong { color: var(--navy); }

.calculator-page-head { padding: 28px 6vw 62px; color: #fff; background: linear-gradient(135deg,#0c2334,#195b72); }
.calculator-page-head .nav { padding-top: 0; }
.calculator-page-head .page-intro { max-width: 960px; margin: 44px auto 0; }
.calculator-page-head h1 { margin: 8px 0 18px; font-size: clamp(2.6rem,5vw,4.8rem); line-height: 1; letter-spacing: -.05em; }
.calculator-page-head .direct-answer { max-width: 820px; color: #d7e7f0; font-size: 1.1rem; }
.calculator-page-main { max-width: 1040px; margin: auto; padding: 52px 24px 84px; }
.calculator-page-main > section { margin-top: 48px; }
.calculator-page-main h2 { color: var(--navy); font-size: 1.9rem; line-height: 1.15; }
.calculator-page-main p, .calculator-page-main li { color: #4e616d; }
.calculator-page-main .calculator { margin-top: 0; }
.example-table, .source-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.example-table th, .example-table td, .source-table th, .source-table td { border-bottom: 1px solid var(--line); padding: 11px 12px; text-align: left; vertical-align: top; }
.example-table th, .source-table th { color: #fff; background: var(--navy); }
.widget-code { border-radius: 14px; padding: 26px; background: #eef5f6; }
.widget-code pre { overflow-x: auto; border-radius: 10px; padding: 16px; color: #e9f2f6; background: #0b202f; font-size: .82rem; white-space: pre-wrap; }
.embed-attribution { display: none; margin: 0; border-top: 1px solid var(--line); padding: 12px 20px; text-align: center; font-size: .8rem; }
.answer-box { margin: 0 0 34px; border-left: 4px solid var(--teal); padding: 18px 22px; background: #eef7f6; }
.answer-box h2 { margin: 0 0 8px; font-size: 1.4rem; }
.answer-box p { margin: 0 0 12px; }
.answer-box table { width: 100%; border-collapse: collapse; }
.answer-box th, .answer-box td { border-top: 1px solid #c9ddda; padding: 8px; text-align: left; font-size: .86rem; }
.embed-mode body { background: #fff; }
.embed-mode .calculator-page-head, .embed-mode .content-info, .embed-mode .widget-code, .embed-mode footer { display: none; }
.embed-mode .calculator-page-main { max-width: 980px; padding: 12px; }
.embed-mode .calculator-page-main > section { display: none; }
.embed-mode .calculator-page-main > .calculator { display: block; }
.embed-mode .embed-attribution { display: block; }

.method { background: #e8f1f3; }
.method-grid { max-width: 1180px; margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.method-grid article { border-radius: 13px; padding: 22px; background: #fff; }
.method-grid span { color: var(--teal); font-weight: 900; }
.method-grid h3 { margin: 20px 0 7px; }
.method-grid p { margin: 0; color: var(--muted); font-size: .89rem; }
.products { display: grid; grid-template-columns: 1fr 1fr; }
.product-card { min-height: 410px; padding: 70px max(6vw, calc((100vw - 1180px) / 2)); color: #fff; }
.contractor-product { background: var(--navy); }
.trucking-product { background: #195b72; }
.business-product { background: #26455d; }
.service-product { background: #166f6a; }
.product-card h2 { max-width: 560px; margin: 0 0 15px; font-size: clamp(2rem, 3.5vw, 3.3rem); line-height: 1.04; letter-spacing: -.04em; }
.product-card > p:not(.eyebrow) { max-width: 570px; color: #d4e3eb; }
.product-card .small { font-size: .82rem; }
.button.light { margin-top: 12px; color: var(--navy); background: #fff; }
footer { padding: 42px 6vw; color: #b9cad4; background: #0b202f; font-size: .82rem; }
footer p { max-width: 1180px; margin: 7px auto; }
footer strong { color: #fff; }

@media (max-width: 920px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 36px; }
  .hero-proof { grid-template-columns: repeat(3, 1fr); }
  .hero-proof div { display: block; }
  .hero-proof p { text-align: left; }
  .tool-shell { grid-template-columns: 1fr; }
  .tool-picker { position: static; grid-template-columns: repeat(3, 1fr); }
  .field-grid, .service-index { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .home-guides { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .site-header, .tool-section, .method { padding-left: 20px; padding-right: 20px; }
  .hero { margin-top: 38px; }
  .hero h1 { font-size: 3rem; }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof div { display: flex; }
  .hero-proof p { text-align: right; }
  .tool-picker, .field-grid, .service-index, .results, .mini-results, .method-grid, .guide-cards, .home-guides { grid-template-columns: 1fr; }
  .updates-callout { align-items: flex-start; flex-direction: column; }
  .updates-actions { width: 100%; justify-content: stretch; }
  .updates-actions .button { width: 100%; text-align: center; }
  .calculator-head, .tool-cta, .article-callout { align-items: flex-start; flex-direction: column; }
  .calculator-head, .calculator form, .method-note, .tool-cta { padding-left: 20px; padding-right: 20px; }
  .reset, .tool-cta a { width: 100%; text-align: center; }
  .products { display: block; }
  .product-card { min-height: 0; padding: 56px 20px; }
}
