:root {
  --bg: #F6F8F6; --fg: #0F2A2A; --card: #fff; --muted: #EEF2EF; --muted-fg: #4F6262;
  --border: #DCE3DE; --primary: #0B6E4F; --primary-soft: #E1F1EA; --cta: #D2462E; --cta-hover: #B93A24;
  --link: #1B4F8A; --sand: #F2E4C9; --danger: #C0392B; --shadow: 0 18px 40px -24px rgba(15,42,42,.35);
  --radius: 14px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.5; }
h1, h2, h3, h4 { font-family: "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -0.02em; margin: 0; line-height: 1.1; }
a { color: var(--link); }
img { max-width: 100%; }
.money { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 600px; margin: 0 auto; padding: 24px 16px 0; }
.muted { color: var(--muted-fg); }
.small { font-size: 14px; }
.hidden { display: none !important; }

/* header */
.site-header { background: var(--primary); color: #fff; position: sticky; top: 0; z-index: 20; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.site-header .logo img { height: 34px; display: block; }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 10px; border-radius: 8px; }
.site-header nav a:hover { background: rgba(255,255,255,.12); }
.site-header nav a.btn-cta { background: var(--cta); padding: 9px 16px; border-radius: 999px; font-weight: 600; margin-left: 6px; }
.menu-btn { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; padding: 4px 8px; }
.flag-stripe { height: 5px; background: linear-gradient(to right, #D2462E 0 30%, #fff 30% 34%, #1B4F8A 34% 66%, #fff 66% 70%, #0B6E4F 70% 100%); }
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .site-header nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--primary); flex-direction: column; align-items: stretch; padding: 8px 16px 16px; box-shadow: 0 10px 20px rgba(0,0,0,.15); }
  .site-header nav.open { display: flex; }
  .site-header nav a.btn-cta { margin: 6px 0 0; text-align: center; }
}

/* cards & layout */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; }
.pad { padding: 20px; }
.shadow { box-shadow: var(--shadow); }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g3 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .g4, .g2 { grid-template-columns: 1fr; } }
section { padding: 28px 0; }
section h2 { font-size: clamp(26px, 4vw, 32px); font-weight: 800; }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; padding: 48px 0; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; gap: 28px; padding: 28px 0; } }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary); margin: 0; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); font-weight: 800; line-height: 1.04; margin-top: 12px; }
.hero .lead { font-size: 18px; color: var(--muted-fg); max-width: 520px; }
.checks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.tick { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 2px; }
.num { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: 14px; }

/* forms */
label.lbl { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: 13px; color: var(--muted-fg); margin-top: 4px; }
.err { font-size: 13px; color: var(--danger); font-weight: 600; margin-top: 4px; }
input.in, select.in, textarea.in { width: 100%; font: inherit; font-size: 16px; color: var(--fg); background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; outline: none; }
input.in:focus, select.in:focus, textarea.in:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,110,79,.15); }
input.in[aria-invalid="true"] { border-color: var(--danger); }
textarea.in { min-height: 110px; resize: vertical; }
.addon { display: flex; }
.addon > span { display: flex; align-items: center; padding: 0 14px; background: var(--muted); border: 1px solid var(--border); border-right: 0; border-radius: 12px 0 0 12px; font-weight: 600; }
.addon > input { border-radius: 0 12px 12px 0; }
.addon.right > span { border-radius: 0 12px 12px 0; border: 1px solid var(--border); border-left: 0; gap: 8px; }
.addon.right > input { border-radius: 12px 0 0 12px; }
.big { font-family: "Bricolage Grotesque", sans-serif; font-size: 24px !important; font-weight: 600; }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row label { flex: 1; min-width: 140px; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; gap: 8px; align-items: center; cursor: pointer; background: #fff; font-weight: 500; }
.radio-row label:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.check { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: #fff; font-size: 14px; font-weight: 500; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: 16px; border-radius: 12px; padding: 13px 20px; border: 1px solid transparent; cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: .6; cursor: default; }
.btn-cta { background: var(--cta); color: #fff; }
.btn-cta:hover:not(:disabled) { background: var(--cta-hover); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-outline { background: #fff; color: var(--fg); border-color: var(--border); }
.btn-outline:hover { background: var(--muted); }
.btn-sm { padding: 7px 12px; font-size: 14px; border-radius: 10px; }
.btn-block { width: 100%; }
.actions { display: flex; gap: 12px; justify-content: space-between; margin-top: 8px; }
@media (max-width: 560px) { .actions { flex-direction: column-reverse; } .actions .btn { width: 100%; } }

/* summary rows */
dl.sum { margin: 0; background: var(--muted); border-radius: 12px; padding: 14px 16px; display: grid; gap: 8px; font-size: 14px; }
dl.sum.line { background: #fff; border: 1px solid var(--border); }
dl.sum div { display: flex; justify-content: space-between; gap: 16px; }
dl.sum dt { color: var(--muted-fg); }
dl.sum dd { margin: 0; text-align: right; word-break: break-word; }
dl.sum .strong dd { font-weight: 700; }

/* calculator */
.calc h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; font-family: "Instrument Sans", sans-serif; letter-spacing: 0; }
.calc .rows { border-top: 1px dashed var(--border); border-bottom: 1px dashed var(--border); padding: 12px 0; margin: 14px 0 8px; display: grid; gap: 8px; font-size: 14px; }
.calc .rows div { display: flex; justify-content: space-between; }
.flag { width: 20px; height: 14px; border-radius: 2px; display: inline-block; }
.flag.us { background: repeating-linear-gradient(#B22234 0 2px, #fff 2px 4px); position: relative; overflow: hidden; }
.flag.us::before { content: ""; position: absolute; left: 0; top: 0; width: 9px; height: 8px; background: #3C3B6E; }
.flag.gm { background: linear-gradient(#CE1126 0 33%, #fff 33% 38%, #0C1C8C 38% 62%, #fff 62% 67%, #3A7728 67%); }

/* steps */
.steps { list-style: none; padding: 0; margin: 0 0 24px; display: flex; gap: 6px; }
.steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-fg); }
.steps .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: var(--muted); color: var(--muted-fg); }
.steps li.done .dot { background: var(--primary); color: #fff; }
.steps li.cur .dot { background: var(--cta); color: #fff; }
.steps li.cur { color: var(--fg); font-weight: 600; }
.refbox { background: var(--sand); border-radius: 16px; padding: 20px; text-align: center; }
.refbox .ref { font-family: "Bricolage Grotesque", sans-serif; font-size: clamp(34px, 9vw, 48px); font-weight: 800; letter-spacing: .06em; }
.paylist { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; }
.paylist li { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: 12px; padding: 12px; font-size: 15px; }
.paylist li > span:nth-child(2) { flex: 1; }

/* faq */
details.faq { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 0 18px; margin-bottom: 8px; }
details.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; font-size: 20px; color: var(--muted-fg); }
details.faq[open] summary::after { content: "–"; }
details.faq p { margin: 0 0 16px; color: var(--muted-fg); }

/* agent banner */
.band { background: var(--primary); color: #fff; border-radius: 20px; padding: 28px; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.band h2 { color: #fff; }
.band p { margin: 8px 0 0; opacity: .9; max-width: 560px; }

/* footer */
footer.site { margin-top: 56px; border-top: 1px solid var(--border); background: #fff; }
footer.site .wrap { padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--muted-fg); display: grid; gap: 6px; }
footer.site a { text-decoration: none; }
footer.site a:hover { text-decoration: underline; }

/* toast */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--fg); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; max-width: calc(100% - 32px); z-index: 100; display: none; }
#toast.show { display: block; }

/* admin */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tabs button { font: inherit; font-weight: 600; background: none; border: 0; padding: 10px 14px; cursor: pointer; color: var(--muted-fg); border-bottom: 3px solid transparent; }
.tabs button.on { color: var(--fg); border-bottom-color: var(--cta); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--muted); color: var(--muted-fg); white-space: nowrap; }
.badge.awaiting, .badge.new { background: #FFF1D6; color: #8A5A00; }
.badge.received, .badge.sending, .badge.contacted { background: #E3ECF8; color: #1B4F8A; }
.badge.delivered, .badge.approved, .badge.sent { background: var(--primary-soft); color: var(--primary); }
.badge.problem, .badge.failed, .badge.declined { background: #FBE3DF; color: #A1301E; }
.badge.skipped, .badge.cancelled { background: var(--muted); color: var(--muted-fg); }
.item { padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; margin-bottom: 10px; }
.item .top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.item .meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 4px 16px; font-size: 14px; margin: 10px 0; }
.item .meta b { font-weight: 600; }
.item .ctrl { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.item .ctrl select { width: auto; padding: 8px 10px; font-size: 14px; }
.notice { border-radius: 12px; padding: 14px 16px; font-size: 14px; margin-bottom: 16px; }
.notice.warn { background: #FFF1D6; color: #6B4600; }
.notice.ok { background: var(--primary-soft); color: #08513A; }
.stat { font-family: "Bricolage Grotesque", sans-serif; font-size: 30px; font-weight: 800; }
table.simple { width: 100%; border-collapse: collapse; font-size: 14px; }
table.simple td, table.simple th { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.scroll-x { overflow-x: auto; }
