:root {
  color-scheme: light;
  --ink: #102c49;
  --muted: #43586d;
  --line: #cedae4;
  --blue: #125394;
  --paper: #f7f9fa;
  font: 100%/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
.wrap { width: min(100% - 2.5rem, 64rem); margin-inline: auto; }
p, h1, h2, h3 { margin: 0; }
p { max-width: 72ch; }
p + p { margin-top: .75rem; }
h1, h2, .logo { font-family: Georgia, "Times New Roman", serif; }
h1, h2 { font-weight: 500; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4.7rem); }
h2 { margin-bottom: 1rem; font-size: clamp(1.65rem, 3vw, 2.4rem); }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: #08385e; }
:focus-visible { outline: 3px solid #1972bf; outline-offset: 3px; }
.site { background: #fff; border-bottom: 1px solid var(--line); }
.site .wrap, footer nav, .site nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2rem); }
.site .wrap { min-height: 4rem; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; font-size: 1.65rem; font-weight: bold; letter-spacing: -.05em; text-decoration: none; color: var(--ink); }
.logo::before { content: ""; width: 1.75rem; height: 1.75rem; margin-right: .5rem; background: url(/assets/favicon.svg) center/contain no-repeat; }
.logo span { color: var(--blue); font-style: italic; }
.site nav a, footer a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: .88rem; }
.site nav a { text-decoration: none; }
.site nav a:hover { text-decoration: underline; }
main > section { padding-block: clamp(2rem, 5vw, 4rem); }
main > section + section { border-top: 1px solid var(--line); }
.hero { position: relative; isolation: isolate; background: #102c49; color: #fff; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-radial-gradient(ellipse at 110% 165%, transparent 0 43px, #a0d4fa20 44px, transparent 46px 77px);
  mask-image: linear-gradient(to right, transparent 26%, #000);
}
.hero .wrap { padding-block: .35rem; }
.hero h1 { max-width: 19ch; }
.hero p { max-width: 64ch; margin-top: 1rem; color: #dbe8f3; line-height: 1.65; }
.crumbs { font-size: .84rem; margin-bottom: 1rem; color: #d4e4f1; }
.crumbs ol { display: flex; align-items: center; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: .15rem .55rem; }
.crumbs li + li::before { content: "/"; margin-right: .55rem; color: #9cb5ca; }
.crumbs a { color: inherit; padding-block: .4rem; }
.card { border: 1px solid var(--line); border-radius: 1rem; background: #fff; }
.calc-card { padding: clamp(1.15rem, 3vw, 2.5rem); margin: 1.5rem 0 .5rem; border-top: 4px solid #488bc5; box-shadow: 0 8px 25px #102c490c; }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.5rem; }
.calc-grid .full { grid-column: 1 / -1; }
label { display: block; margin-bottom: .4rem; font-weight: 650; font-size: .92rem; }
input, select, button { font: inherit; }
input, select { width: 100%; min-width: 0; height: 3.1rem; padding: .6rem .85rem; border: 1px solid #8399ae; border-radius: .45rem; background: #fff; color: var(--ink); font-variant-numeric: tabular-nums; }
input:focus, select:focus { border-color: var(--blue); }
.btn { width: 100%; min-height: 3.15rem; padding: .7rem 1.2rem; border: 0; border-radius: .45rem; color: white; background: var(--blue); font-weight: 700; cursor: pointer; }
.btn:hover { background: #0a3a68; }
.btn:active { background: #072c50; }
#result { margin-top: 1.65rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
#result h3 { font: 600 1.25rem/1.3 Georgia, serif; margin-bottom: .75rem; }
.breakdown, .fee-table { width: 100%; border-spacing: 0; font-variant-numeric: tabular-nums; }
.breakdown td, .fee-table :is(td, th) { padding: .72rem .9rem; border-bottom: 1px solid #dbe3eb; }
:is(.breakdown, .fee-table) tr > :last-child { text-align: right; }
.breakdown td:first-child { padding-left: 0; }
.breakdown .total td { background: #e8f2fa; color: #0b3c66; padding: 1rem .9rem; font-weight: 750; }
.fineprint { font-size: .83rem; color: var(--muted); margin-top: .85rem; }
.fee-table { overflow: hidden; border: 1px solid var(--line); border-radius: .65rem; background: #fff; }
.fee-table th { background: var(--ink); color: #fff; font-size: .88rem; text-align: left; }
.fee-table tr:nth-child(odd) td { background: #f2f6f9; }
.fee-table tr:last-child td { border-bottom: 0; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.05rem .25rem; font-weight: 650; }
.faq summary::marker { color: var(--blue); }
.faq details[open] summary { color: var(--blue); }
.faq details p { padding: 0 .25rem 1.2rem; color: var(--muted); }
.states-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); gap: .5rem .75rem; }
.states-grid a { display: flex; align-items: center; min-height: 44px; padding: .55rem .75rem; background: #fff; border: 1px solid var(--line); border-radius: .35rem; font-weight: 600; font-size: .9rem; text-decoration: none; }
.states-grid a:hover { background: #e8f2fa; border-color: #5283aa; text-decoration: underline; }
footer { padding: 2rem 0; background: #0e2339; color: #d4e2ec; font-size: .86rem; }
footer a, footer a:hover { color: white; }
footer p { margin-top: .5rem; }
@media (max-width: 37rem) {
  .wrap { width: min(100% - 2rem, 64rem); }
  .calc-card { margin-top: 1rem; }
  .calc-grid { grid-template-columns: 1fr; gap: .9rem; }
  .states-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero::after { opacity: .55; }
}
@page { margin: 16mm; }
@media print {
  body { color: #000; background: white; font-size: 11pt; }
  .wrap { width: 100%; }
  body:has(#result table) :is(.site, footer, main > section, .calc-grid) { display: none; }
  .calc-card, #result { margin: 0; padding: 0; border: 0; box-shadow: none; }
  #result { break-inside: avoid; }
  #result::before { content: "OTD Price  /  otd-price.com"; display: block; font-weight: 700; border-bottom: 2pt solid; padding-bottom: 8pt; margin-bottom: 14pt; }
  .breakdown tr { break-inside: avoid; }
  .breakdown .total td { color: #000; border-block: 2pt solid; }
  .fineprint { color: #333; }
}
