/* MPCC — Magnus Pesticide Certification Center
   Look: ancient-official seal, navy + gold, serif headings.
   Body font = Atkinson Hyperlegible (built for easy reading), headings = Cinzel / Libre Caslon.
   Mobile-first. Tested at 390px. */

:root {
  --navy: #0E2447;
  --navy-2: #13305C;
  --navy-3: #1E4580;
  --gold: #B8892B;
  --gold-2: #C9A24A;
  --gold-soft: #E9D08E;
  --parchment: #F8F3E6;
  --parchment-2: #EFE6CF;
  --ink: #1A1D24;
  --muted: #4A5262;
  --line: #D9CFB4;
  --white: #FFFFFF;
  --good: #1F7A3A;
  --good-bg: #E5F4E9;
  --bad: #A3271F;
  --bad-bg: #FBE8E6;
  --note: #FFF4B8;
  --radius: 10px;
  --space: 16px;
  --wrap: 1120px;
  --display: "Cinzel", "Times New Roman", serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--navy-3); }
a:hover { color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 14px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--space); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.eyebrow {
  font-family: var(--display); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 0.8rem; color: var(--gold); margin-bottom: 8px; display: block;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--white); padding: 8px; z-index: 99; }

/* ---------- review notes (Tyler only; remove before launch) ---------- */
.tyler {
  background: var(--note); color: #5a4500; border: 1px dashed #B79A00;
  padding: 1px 6px; border-radius: 4px; font-family: var(--sans); font-weight: 700;
  overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.tyler-note {
  background: var(--note); border: 1px dashed #B79A00; color: #4a3900;
  padding: 10px 12px; border-radius: 6px; font-size: 0.9rem; margin: 10px 0;
}
.tyler-note::before { content: "REVIEW NOTE: "; font-weight: 700; }
.proof-slot {
  border: 2px dashed var(--line); border-radius: var(--radius); padding: 18px;
  background: rgba(255,255,255,0.5); color: var(--muted); text-align: center; font-size: 0.95rem;
}

/* ---------- top bar ---------- */
.topbar { background: var(--gold-2); color: var(--navy); text-align: center; font-weight: 700; padding: 8px var(--space); font-size: 0.95rem; }
.topbar a { color: var(--navy); }

/* ---------- header ---------- */
.site-header { background: var(--navy); color: var(--white); border-bottom: 3px solid var(--gold-2); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-mark { font-family: var(--display); font-weight: 700; font-size: 1.4rem; letter-spacing: 0.08em; color: var(--gold-soft); }
.brand-full { font-family: var(--display); font-size: 0.62rem; letter-spacing: 0.08em; color: #C8D2E3; }
.menu-btn {
  background: transparent; border: 1px solid var(--gold-2); color: var(--gold-soft);
  border-radius: 8px; padding: 8px 12px; font: inherit; font-size: 1rem; cursor: pointer;
}
.nav { display: none; flex-direction: column; gap: 4px; padding: 8px 0 14px; }
.nav.open { display: flex; }
.nav a { color: var(--white); text-decoration: none; padding: 10px 4px; border-bottom: 1px solid rgba(255,255,255,0.08); font-weight: 700; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-soft); }
.header-phone { display: block; color: var(--gold-soft); font-weight: 700; padding: 10px 4px; text-decoration: none; }

@media (min-width: 900px) {
  .menu-btn { display: none; }
  .nav { display: flex !important; flex-direction: row; align-items: center; gap: 18px; padding: 0; }
  .nav a { border: 0; padding: 6px 0; font-size: 0.98rem; }
  .header-phone { padding: 0; }
  .nav .btn { margin-left: 4px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--sans); font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer;
  text-align: center;
}
.btn-gold { background: var(--gold-2); color: var(--navy); border-color: var(--gold-2); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-3); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: var(--gold-2); }
.btn-ghost-light:hover { background: var(--gold-2); color: var(--navy); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row .btn { flex: 1 1 220px; }
.nav .btn { min-height: 42px; padding: 8px 16px; font-size: 0.95rem; color: var(--navy); }

.read-btn {
  display: inline-flex; align-items: center; gap: 8px; background: var(--white); color: var(--navy);
  border: 2px solid var(--navy); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 700;
  font-size: 0.95rem; cursor: pointer; min-height: 44px;
}
.read-btn:hover { background: var(--parchment-2); }
.read-btn svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero { background: var(--navy); color: var(--white); padding: 40px 0 48px; position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px;
  background: url("seal.svg") no-repeat center / contain; opacity: 0.08; pointer-events: none;
}
.hero h1 { color: var(--white); font-size: 2.1rem; }
.hero p { color: #DCE3EF; font-size: 1.1rem; }
.hero .eyebrow { color: var(--gold-soft); }
.hero-grid { display: grid; gap: 24px; position: relative; z-index: 1; }
@media (min-width: 900px) {
  .hero h1 { font-size: 2.8rem; }
  .hero-grid { grid-template-columns: 1.2fr 1fr; align-items: center; }
}
.check-list { list-style: none; padding: 0; margin: 0 0 18px; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 8px; }
.check-list li::before { content: "\2714"; position: absolute; left: 0; color: var(--gold-2); font-weight: 700; }
.hero .check-list li { color: #E8EDF5; }
.x-list li::before { content: "\2014"; color: var(--muted); }

/* picker card */
.picker { background: var(--white); color: var(--ink); border-radius: 14px; padding: 20px; border-top: 5px solid var(--gold-2); box-shadow: 0 10px 30px rgba(0,0,0,0.25); }
.picker h2 { font-size: 1.3rem; }
label { display: block; font-weight: 700; margin: 12px 0 6px; color: var(--navy); }
select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea {
  width: 100%; min-height: 52px; padding: 10px 14px; font: inherit; font-size: 1.05rem;
  border: 2px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink);
}
select:focus, input:focus, textarea:focus { outline: 3px solid var(--gold-soft); border-color: var(--navy); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); margin: 12px 0; font-weight: 400; }
.consent input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- sections ---------- */
.section { padding: 48px 0; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: #DCE3EF; }
.section-head { max-width: 720px; margin: 0 auto 28px; text-align: center; }
.rule { width: 70px; height: 3px; background: var(--gold-2); border: 0; margin: 10px auto 18px; }

.grid { display: grid; gap: 18px; }
.grid > *, .tiers > *, .hero-grid > *, .footer-grid > * { min-width: 0; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) and (max-width: 999px) { .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.section-alt .card { background: var(--parchment); }
.card .icon { width: 52px; height: 52px; border-radius: 50%; background: var(--navy); color: var(--gold-soft); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 8px; }

/* trust bar */
.trust-bar { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 18px; }
@media (min-width: 900px) { .trust-bar { grid-template-columns: repeat(4, 1fr); } }
.trust-item { background: rgba(255,255,255,0.06); border: 1px solid rgba(201,162,74,0.4); border-radius: 8px; padding: 12px; text-align: center; color: #E8EDF5; font-size: 0.92rem; }
.trust-item strong { display: block; color: var(--gold-soft); font-family: var(--serif); font-size: 1.1rem; }

/* state grid */
.state-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 700px) { .state-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .state-grid { grid-template-columns: repeat(5, 1fr); } }
.state-grid a { display: block; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: 0.95rem; }
.state-grid a span { display: block; font-weight: 400; color: var(--muted); font-size: 0.8rem; }
.state-grid a:hover { border-color: var(--gold-2); }

/* steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 70px; position: relative; }
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: var(--gold-soft); font-family: var(--display); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.steps h3 { margin-bottom: 4px; }

/* ---------- pricing ---------- */
.tiers { display: grid; gap: 18px; align-items: stretch; }
@media (min-width: 900px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { background: var(--white); border: 2px solid var(--line); border-radius: 14px; padding: 24px 20px; display: flex; flex-direction: column; position: relative; }
.tier.featured { border-color: var(--gold-2); box-shadow: 0 10px 30px rgba(14,36,71,0.15); }
.tier .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--navy); color: var(--gold-soft); font-family: var(--display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.tier.featured .badge { background: var(--gold-2); color: var(--navy); }
.tier h3 { font-size: 1.45rem; text-align: center; margin-top: 6px; }
.tier .blurb { text-align: center; color: var(--muted); min-height: 3em; }
.price { text-align: center; font-family: var(--serif); font-size: 2.2rem; color: var(--navy); margin: 8px 0 2px; }
.price-sub { text-align: center; color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.tier .check-list { flex: 1; }
.tier .guar-line { text-align: center; font-weight: 700; color: var(--good); font-size: 0.95rem; margin-top: 10px; }

.compare { width: 100%; border-collapse: collapse; background: var(--white); font-size: 0.95rem; }
.compare th, .compare td { border-bottom: 1px solid var(--line); padding: 12px 8px; text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--navy); color: var(--gold-soft); font-family: var(--serif); }
.compare .yes { color: var(--good); font-weight: 700; }
.compare .no { color: #9AA0AB; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }

/* guarantee */
.guarantee { display: grid; gap: 22px; background: var(--white); border: 3px double var(--gold-2); border-radius: 16px; padding: 24px; }
@media (min-width: 900px) { .guarantee { grid-template-columns: 1fr 1.2fr; padding: 34px; } }
.guarantee .seal-big { width: 120px; margin: 0 auto 10px; display: block; }
.guarantee h2 { text-align: center; }
.conditions { counter-reset: c; list-style: none; padding: 0; margin: 0; }
.conditions li { counter-increment: c; padding: 10px 0 10px 40px; border-bottom: 1px solid var(--line); position: relative; }
.conditions li::before { content: counter(c); position: absolute; left: 0; top: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-2); color: var(--navy); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; }

/* FAQ */
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 48px 16px 18px; font-weight: 700; color: var(--navy); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.5rem; color: var(--gold); }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 18px 16px; }

/* state-rule banner */
.license-note { background: var(--parchment-2); border-left: 5px solid var(--gold-2); padding: 12px 16px; border-radius: 6px; font-weight: 700; color: var(--navy); }

/* ---------- dialog (two-step forms) ---------- */
dialog { border: 0; border-radius: 14px; padding: 0; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); border-top: 5px solid var(--gold-2); }
dialog::backdrop { background: rgba(8, 20, 40, 0.7); }
.dialog-body { padding: 22px; position: relative; }
.dialog-close { position: absolute; right: 10px; top: 8px; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: var(--muted); width: 44px; height: 44px; }
.form-done { display: none; text-align: center; }

/* ---------- footer ---------- */
.site-footer { background: #0A1A35; color: #C8D2E3; padding: 40px 0 28px; font-size: 0.95rem; }
.site-footer a { color: #E8EDF5; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-grid { display: grid; gap: 24px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-grid h4 { font-family: var(--display); color: var(--gold-soft); letter-spacing: 0.08em; margin: 0 0 10px; font-size: 0.9rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-state-line { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); color: var(--gold-soft); font-weight: 700; text-align: center; }
.footer-legal { text-align: center; font-size: 0.82rem; margin-top: 10px; color: #8D9AB2; }

/* ---------- quiz ---------- */
.quiz-shell { max-width: 760px; margin: 0 auto; }
.quiz-card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: 0 8px 24px rgba(14,36,71,0.08); }
.quiz-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.q-count { font-weight: 700; color: var(--navy); }
.q-topic { background: var(--navy); color: var(--gold-soft); border-radius: 999px; padding: 4px 12px; font-size: 0.85rem; font-weight: 700; }
.progress { height: 10px; background: var(--parchment-2); border-radius: 999px; overflow: hidden; margin-bottom: 18px; }
.progress span { display: block; height: 100%; background: var(--gold-2); width: 0; transition: width .3s; }
.q-text { font-family: var(--sans); font-size: 1.35rem; font-weight: 700; color: var(--ink); margin: 6px 0 18px; line-height: 1.4; }
.answers { display: grid; gap: 12px; }
.answer {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; min-height: 64px;
  background: var(--parchment); border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px;
  font: inherit; font-size: 1.15rem; color: var(--ink); cursor: pointer;
}
.answer:hover:not(:disabled) { border-color: var(--navy); background: var(--white); }
.answer .letter { flex: 0 0 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--white); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.answer.correct { border-color: var(--good); background: var(--good-bg); }
.answer.correct .letter { background: var(--good); }
.answer.wrong { border-color: var(--bad); background: var(--bad-bg); }
.answer.wrong .letter { background: var(--bad); }
.answer:disabled { cursor: default; }
.feedback { margin-top: 16px; padding: 14px 16px; border-radius: 10px; display: none; }
.feedback.show { display: block; }
.feedback.good { background: var(--good-bg); border-left: 5px solid var(--good); }
.feedback.bad { background: var(--bad-bg); border-left: 5px solid var(--bad); }
.feedback strong { display: block; font-size: 1.15rem; margin-bottom: 4px; }
.quiz-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-top: 18px; }
.toggle { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); cursor: pointer; margin: 0; }
.toggle input { width: 24px; height: 24px; }

.score-ring { width: 170px; height: 170px; margin: 0 auto 12px; position: relative; }
.score-ring svg { width: 170px; height: 170px; transform: rotate(-90deg); }
.score-ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--serif); font-size: 2.4rem; color: var(--navy); line-height: 1; }
.score-ring .num small { font-family: var(--sans); font-size: 0.85rem; color: var(--muted); margin-top: 6px; }
.topic-row { margin-bottom: 12px; }
.topic-row .label { display: flex; justify-content: space-between; font-weight: 700; font-size: 0.98rem; }
.bar { height: 14px; background: var(--parchment-2); border-radius: 999px; overflow: hidden; margin-top: 4px; }
.bar span { display: block; height: 100%; background: var(--navy-3); }
.bar span.weak { background: var(--bad); }
.review-item { border-bottom: 1px solid var(--line); padding: 14px 0; }
.review-item .mark { font-weight: 700; }
.review-item .mark.ok { color: var(--good); }
.review-item .mark.no { color: var(--bad); }
.hidden { display: none !important; }

/* calculator */
.calc { background: var(--white); border: 2px solid var(--gold-2); border-radius: 14px; padding: 22px; }
.calc-out { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 14px; }
.calc-out div { background: var(--parchment); border-radius: 10px; padding: 14px; text-align: center; }
.calc-out strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--navy); }

.status-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.82rem; font-weight: 700; }
.status-live { background: var(--good-bg); color: var(--good); }
.status-soon { background: var(--parchment-2); color: var(--muted); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* picker card sits inside the navy hero: reset hero text colors */
.hero .picker p, .hero .picker li { color: var(--muted); }
.hero .picker .check-list li { color: var(--ink); }
.hero .picker .tyler-note { color: #4a3900; }

/* ---------- US tile map (generated by build_states.py) ---------- */
.map-wrap { max-width: 760px; margin: 0 auto; }
.usmap { width: 100%; height: auto; display: block; }
.usmap .tile rect { fill: var(--parchment-2); stroke: var(--line); stroke-width: 1.5; transition: fill .15s; }
.usmap .tile text { font-family: var(--sans); font-weight: 700; font-size: 15px; fill: var(--muted); pointer-events: none; }
.usmap .tile.ready rect { fill: var(--navy); stroke: var(--navy); }
.usmap .tile.ready text { fill: var(--gold-soft); }
.usmap .tile:hover rect, .usmap .tile:focus rect { fill: var(--gold-2); stroke: var(--navy); stroke-width: 3; }
.usmap .tile:hover text, .usmap .tile:focus text { fill: var(--navy); }
.usmap .tile:focus { outline: none; }
.usmap .tile:focus-visible rect { stroke: #000; stroke-width: 4; }
.map-legend { display: flex; justify-content: center; gap: 18px; margin: 12px 0 4px; font-size: 0.9rem; color: var(--muted); flex-wrap: wrap; }
.map-legend i { display: inline-block; width: 16px; height: 16px; border-radius: 4px; vertical-align: -3px; margin-right: 6px; }
.lg-ready { background: var(--navy); }
.lg-soon { background: var(--parchment-2); border: 1px solid var(--line); }
.state-list-toggle { max-width: 1120px; margin: 18px auto 0; }
.state-list-toggle summary, .cat-details summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); min-height: 52px; }
.state-list-toggle[open] summary { margin-bottom: 12px; }

/* ---------- state pages ---------- */
.crumbs { font-size: 0.9rem; color: #C8D2E3; margin-bottom: 12px; }
.crumbs a { color: var(--gold-soft); }
.narrow { max-width: 820px; }
.section-tight { padding: 20px 0; }
.small-h { font-size: 1.1rem; }
.jump { display: flex; gap: 8px; overflow-x: auto; padding-top: 14px; padding-bottom: 6px; -webkit-overflow-scrolling: touch; }
.jump span { font-weight: 700; color: var(--muted); white-space: nowrap; align-self: center; }
.jump a { white-space: nowrap; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; text-decoration: none; font-weight: 700; font-size: 0.92rem; min-height: 40px; display: inline-flex; align-items: center; }
.state-layout { display: grid; gap: 28px; }
.state-layout > * { min-width: 0; }
@media (min-width: 1000px) { .state-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .facts { position: sticky; top: 90px; } }
.prose { max-width: 720px; }
.prose h2 { margin-top: 34px; padding-top: 6px; scroll-margin-top: 90px; }
.prose ul, .prose ol { padding-left: 24px; }
.prose li { margin-bottom: 6px; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px; text-align: left; }
.prose .read-btn { margin-bottom: 8px; }
.facts { background: var(--white); border: 2px solid var(--gold-2); border-radius: 14px; padding: 20px; order: -1; }
@media (min-width: 1000px) { .facts { order: 0; } }
.facts h2 { font-size: 1.25rem; }
.facts dl { margin: 0; }
.facts dl div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 0.85rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.cat-table td:first-child { white-space: nowrap; font-weight: 700; }
.src-list { font-size: 0.85rem; overflow-wrap: anywhere; padding-left: 20px; }

/* ---------- dry-test checkout ---------- */
.checkout { max-width: 640px; margin: 0 auto; }
.order-line { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.order-total { font-weight: 700; font-size: 1.2rem; color: var(--navy); }
.pay-choice { display: grid; gap: 10px; margin: 12px 0; }
.pay-choice label { display: flex; gap: 12px; align-items: center; background: var(--parchment); border: 2px solid var(--line); border-radius: 10px; padding: 14px; margin: 0; cursor: pointer; font-weight: 700; }
.pay-choice input { width: 22px; height: 22px; }
.pay-choice label:has(input:checked) { border-color: var(--gold-2); background: var(--white); }
.state-jump { max-width: 520px; margin: 0 auto; }
.state-jump-row { display: flex; gap: 10px; }
.state-jump-row select { flex: 1; min-width: 0; }
.cc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cc-row > div { min-width: 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- sticky mobile button (phones only) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--navy); border-top: 3px solid var(--gold-2);
  padding: 10px var(--space) calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  transition: transform .2s;
}
.sticky-cta .sticky-text { color: #E8EDF5; font-size: 0.9rem; line-height: 1.25; flex: 1 1 auto; min-width: 0; }
.sticky-cta .sticky-text strong { display: block; color: var(--gold-soft); font-size: 1rem; }
.sticky-cta .btn { flex: 0 0 auto; min-height: 48px; padding: 10px 18px; font-size: 1rem; }
.sticky-cta.is-hidden { transform: translateY(110%); }
body.has-sticky { padding-bottom: 80px; }
@media (min-width: 900px) { .sticky-cta { display: none; } body.has-sticky { padding-bottom: 0; } }

/* ---------- price anchors + value tags ---------- */
.save-tag { display: inline-block; background: var(--good-bg); color: var(--good); font-weight: 700; font-size: 0.85rem; border-radius: 999px; padding: 2px 10px; margin-left: 4px; }
.value-tag { color: var(--muted); font-size: 0.9rem; }
.urgency { text-align: center; font-weight: 700; color: var(--navy); background: var(--parchment-2); border-radius: 8px; padding: 10px 14px; max-width: 720px; margin: 0 auto 24px; }

/* ---------- checkout order bump (plain card: never styled like a state license) ---------- */
.bump { display: flex; gap: 12px; align-items: flex-start; border: 2px dashed var(--gold); background: #FFFBEF; border-radius: 10px; padding: 14px; margin: 16px 0 4px; cursor: pointer; font-weight: 400; color: var(--ink); }
.bump input { width: 24px; height: 24px; flex: 0 0 24px; margin-top: 2px; }
.bump strong { color: var(--navy); }
.bump .bump-price { white-space: nowrap; font-weight: 700; color: var(--navy); }
.order-due { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--muted); font-size: 0.95rem; }
.legal-line { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 10px; }

/* ---------- legal pages ---------- */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin-top: 30px; }
.legal ul, .legal ol { padding-left: 24px; }
.legal li { margin-bottom: 6px; }
.draft-flag { font-size: 0.85rem; color: var(--muted); }
