/* ==========================================================
   CoverMe Insurance Agency — shared styles
   ========================================================== */
:root {
  --navy: #13235b;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-soft: #edf1f6;
  --bg: #ffffff;
  --bg-soft: #f1f4f8;
  --bg-field: #f8fafc;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #e8f0fe;
  --blue-line: #93b4f5;
  --sky: #60a5fa;
  --green: #16a34a;
  --green-soft: #dcfce7;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --red: #dc2626;
  --footer: #0f172a;
  --sidebar: #0c2345;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-blue: 0 8px 20px rgba(37, 99, 235, .28);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--blue); }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .05s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: #fff; color: var(--ink); border-color: #cbd5e1; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-dark { background: var(--sidebar); color: #fff; }
.btn-dark:hover { background: #163262; }
.btn-soft { background: var(--blue-soft); color: var(--blue-dark); border-color: #c7d8fb; }
.btn-soft:hover { background: #dbe7fd; }
.btn-block { width: 100%; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px;
  border: 1px solid #334a8a; box-shadow: 0 4px 14px rgba(15, 23, 42, .25);
}
.brand-badge .icon { width: 30px; height: 30px; color: var(--sky); stroke-width: 1.6; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.02em; line-height: 1; color: inherit; }
.brand-name span { color: var(--sky); }
.brand-sub { display: block; font-size: 9px; font-weight: 700; letter-spacing: .14em; margin-top: 3px; text-transform: uppercase; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line-soft); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.nav { display: flex; gap: 28px; }
.nav a { color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav a:hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px; cursor: pointer; }
.header-portal { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { background: var(--bg-soft); padding: 72px 0 80px; text-align: center; }
.hero h1 { font-size: clamp(36px, 6vw, 58px); font-weight: 800; color: var(--navy); }
.hero h1 .accent { color: var(--blue); }
.hero h1 .accent::after { content: "."; color: var(--blue); }
.tagline {
  margin-top: 14px; font-weight: 800; font-size: clamp(20px, 3vw, 28px); letter-spacing: -0.01em;
  background: linear-gradient(90deg, #d97706 0%, #b45309 40%, #7c5c9c 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { max-width: 600px; margin: 18px auto 0; font-size: 17px; color: var(--text); }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.hero-ctas .btn { padding: 14px 24px; }
.hero ul.hero-perks { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 40px; font-size: 13px; font-weight: 700; color: var(--ink); }
.hero-perks li { display: flex; align-items: center; gap: 6px; }
.hero-perks .icon { width: 15px; height: 15px; }
.hero-perks .g { color: var(--green); } .hero-perks .b { color: var(--blue); } .hero-perks .o { color: #d97706; }
ul.clean { list-style: none; margin: 0; padding: 0; }

/* ---------- Section headings ---------- */
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.eyebrow { display: block; text-align: center; color: var(--blue); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.section-title { text-align: center; font-size: clamp(26px, 3.5vw, 34px); font-weight: 800; }
.section-lead { text-align: center; max-width: 560px; margin: 12px auto 0; font-size: 17px; }
.pill {
  display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--blue-soft);
  border: 1px solid #c7d8fb; color: var(--blue-dark); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- Product cards ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.product {
  position: relative; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.product:hover { border-color: var(--blue-line); transform: translateY(-2px); }
.product .p-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.product .p-icon .icon { width: 20px; height: 20px; }
.product h3 { font-size: 18px; margin-top: 16px; }
.product p { font-size: 13px; color: var(--muted); margin-top: 8px; }
.product .badge-active {
  display: none; position: absolute; top: 16px; right: 16px; align-items: center; gap: 4px;
  background: var(--blue); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px;
}
.product .badge-active .icon { width: 11px; height: 11px; stroke-width: 3; }
.product[aria-pressed="true"] { border: 2px solid var(--blue); padding: 19px; box-shadow: 0 10px 30px rgba(37, 99, 235, .14); }
.product[aria-pressed="true"] .p-icon { background: var(--blue); color: #fff; }
.product[aria-pressed="true"] .badge-active { display: inline-flex; }

/* ---------- Quote form ---------- */
.quote-wrap { text-align: center; }
.quote-wrap h2 { margin-top: 14px; }
.quote-card {
  max-width: 560px; margin: 28px auto 0; text-align: left; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; padding: 26px; box-shadow: var(--shadow);
}
.label-caps { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--text); text-transform: uppercase; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.tab {
  padding: 9px 6px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-soft);
  font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.tab:hover { border-color: var(--blue-line); }
.tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

.form-head { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.form-head h3 { font-size: 17px; }
.form-head small { font-size: 11px; color: var(--muted); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label, .field > .flabel { font-size: 12px; font-weight: 700; color: var(--ink); }
.input, select.input {
  width: 100%; padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-field);
  font-size: 14px; color: var(--ink); transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder { color: #94a3b8; }
.input:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
select.input { background-color: #fff; cursor: pointer; }
.input.upper { text-transform: uppercase; letter-spacing: .04em; }
.field.invalid .input, .field.invalid .seg { border-color: var(--red); }
.err { display: none; font-size: 11px; color: var(--red); font-weight: 600; }
.field.invalid .err { display: block; }

.seg-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg {
  padding: 10px 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  font-size: 13px; font-weight: 700; color: var(--ink); cursor: pointer;
}
.seg:hover { border-color: var(--blue-line); }
.seg[aria-pressed="true"] { background: var(--blue-soft); border-color: var(--blue-line); color: var(--blue-dark); }

.subpanel { background: var(--bg-field); border: 1px solid var(--line-soft); border-radius: 10px; padding: 14px; }
.subpanel .flabel { display: flex; align-items: center; gap: 6px; }
.subpanel .flabel .icon { width: 14px; height: 14px; color: var(--blue); fill: var(--blue); stroke: var(--blue); }

.divider { border: 0; border-top: 1px solid var(--line); margin: 22px 0 16px; }
.vehicles-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.vehicles-head h4 { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.vehicles-head h4 .icon { color: var(--blue); width: 16px; height: 16px; }
.vehicle { background: var(--bg-field); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; }
.vehicle-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.vehicle-top strong { font-size: 13px; color: var(--ink); }
.vehicle .remove { background: none; border: 0; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.vehicle .remove:hover { color: var(--red); }
.vehicle .input { background: #fff; }

.form-panel[hidden] { display: none; }
.submit-row { margin-top: 20px; }
.submit-row .btn { padding: 14px; font-size: 15px; }
.fineprint { font-size: 11px; color: var(--muted); text-align: center; margin-top: 12px; }

/* ---------- Bundle home + auto ---------- */
.bundle {
  display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center;
  background: linear-gradient(135deg, #0c2345 0%, #13235b 55%, #1d3a8a 100%);
  border-radius: 24px; padding: 44px; color: #cbd5e1; box-shadow: 0 20px 50px rgba(19, 35, 91, .25);
}
.bundle .eyebrow { text-align: left; color: var(--sky); }
.bundle h2 { color: #fff; font-size: clamp(26px, 3.5vw, 34px); font-weight: 800; }
.bundle-lead { margin-top: 14px; font-size: 16px; max-width: 520px; }
.bundle ul.bundle-list { margin: 20px 0 26px; display: grid; gap: 10px; }
.bundle-list li { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 600; font-size: 15px; }
.bundle-list .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(96, 165, 250, .2); color: var(--sky); stroke-width: 3; }
.bundle-visual { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.bundle-tiles { display: flex; align-items: center; gap: 16px; }
.bundle-tile {
  width: 120px; height: 120px; border-radius: 20px; background: #fff; color: var(--blue);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25); font-weight: 800; color: var(--ink);
}
.bundle-tile .icon { width: 40px; height: 40px; color: var(--blue); stroke-width: 1.8; }
.bundle-tile:last-child { transform: rotate(3deg); }
.bundle-tile:first-child { transform: rotate(-3deg); }
.bundle-plus { font-size: 34px; font-weight: 800; color: var(--sky); }
.bundle-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: var(--amber-soft); color: var(--amber); font-weight: 800; font-size: 14px;
}
.bundle-badge .icon { width: 17px; height: 17px; }

.tabs { grid-template-columns: repeat(4, 1fr) 1.3fr; }
.bundle-heading {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--blue-dark); background: var(--blue-soft); padding: 8px 12px; border-radius: 8px; margin-top: 16px;
}
.bundle-heading .icon { width: 16px; height: 16px; }
[data-panel="home"] .bundle-heading { margin-top: 28px; }

/* ---------- Why choose us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.why-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.why-card .w-icon { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; }
.why-card h3 { font-size: 18px; margin-top: 14px; }
.why-card p { font-size: 14px; margin-top: 8px; }
.w-green { background: var(--green-soft); color: var(--green); }
.w-blue { background: var(--blue-soft); color: var(--blue); }
.w-amber { background: var(--amber-soft); color: var(--amber); }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #cbd5e1; padding: 48px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 0.7fr 0.7fr 1.5fr; gap: 32px; }
.site-footer .brand-name { color: #fff; font-size: 20px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 10px; }
.site-footer ul a { color: #cbd5e1; text-decoration: none; line-height: 2; }
.site-footer ul a:hover { color: #fff; }
.site-footer .about { margin-top: 10px; max-width: 240px; }
.footer-email { white-space: nowrap; }
@media (max-width: 1100px) and (min-width: 961px) { .footer-email { font-size: 13px; } }
@media (max-width: 360px) { .footer-email { font-size: 12.5px; } }
.service-areas { margin-top: 10px; line-height: 1.6; }
.service-areas strong { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 32px; padding-top: 18px; font-size: 12px; color: #94a3b8; }
.footer-bottom a { color: #94a3b8; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .3); transition: opacity .2s, transform .2s; z-index: 100; max-width: calc(100% - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================
   Quotes page
   ========================================================== */
.page-soft { background: #f8fafc; min-height: 100vh; }
.slim-header { background: #fff; border-bottom: 1px solid var(--line); }
.slim-header .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.slim-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.slim-brand .mark { width: 28px; height: 28px; border-radius: 7px; background: var(--sidebar); color: #fff; display: grid; place-items: center; }
.slim-brand .mark .icon { width: 17px; height: 17px; }
.slim-brand .brand-name { color: var(--ink); font-size: 19px; }
.slim-brand .brand-name span { color: var(--blue); }
.slim-brand small { font-size: 10px; font-weight: 700; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.back-link { font-size: 14px; font-weight: 700; text-decoration: none; }

.quotes-main { padding: 36px 0 60px; }
.quotes-main h1 { font-size: clamp(26px, 4vw, 34px); font-weight: 800; margin-top: 10px; }
.quotes-main .lead { max-width: 560px; margin-top: 8px; font-size: 15px; }
.quotes-layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; margin-top: 28px; align-items: start; }
.quotes-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--ink); }
.quotes-toolbar label { display: flex; align-items: center; gap: 8px; }
.quotes-toolbar select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 13px; }

.quote {
  display: grid; grid-template-columns: 1.4fr 2fr auto; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 12px;
}
.quote.pick { border: 2px solid var(--blue); padding: 19px; }
.quote .carrier { display: flex; align-items: center; gap: 12px; }
.pick-badge { display: inline-block; background: var(--blue-dark); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; margin-bottom: 8px; }
.logo-ph { width: 42px; height: 42px; border: 1px dashed #cbd5e1; border-radius: 8px; display: grid; place-items: center; font-size: 10px; color: var(--muted); flex: none; }
.carrier-name { font-size: 17px; font-weight: 800; color: var(--ink); }
.specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.spec small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.spec strong { font-size: 13px; color: var(--ink); }
.price-col { text-align: right; }
.price { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.price small { font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-col .btn { margin-top: 6px; padding: 10px 16px; font-size: 14px; box-shadow: none; background: var(--blue-dark); }
.price-col .btn.chosen { background: var(--green); }
.disclaimer { font-size: 12px; color: var(--muted); margin-top: 12px; }

.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.side-card + .side-card { margin-top: 14px; }
.agent-row { display: flex; gap: 12px; align-items: center; margin: 12px 0; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.agent-row strong { display: block; color: var(--ink); }
.agent-row small { color: var(--muted); font-size: 12px; }
.side-card p { font-size: 13px; margin-bottom: 14px; }
.side-card .btn + .btn { margin-top: 8px; }
.side-card.tint { background: #eef4ff; border-color: transparent; }
.side-card.tint h3 { font-size: 15px; margin-bottom: 8px; }
.side-card.tint a { font-weight: 700; font-size: 13px; }

/* ==========================================================
   Client portal
   ========================================================== */
.portal { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: var(--bg-soft); }
.sidebar { background: var(--sidebar); color: #cbd5e1; padding: 20px 16px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .slim-brand .mark { background: var(--blue); }
.sidebar .slim-brand .brand-name { color: #fff; }
.sidebar .slim-brand .brand-name span { color: var(--sky); }
.side-nav { margin-top: 24px; display: flex; flex-direction: column; gap: 4px; }
.side-nav a { color: #e2e8f0; text-decoration: none; font-size: 15px; font-weight: 600; padding: 10px 12px; border-radius: 8px; }
.side-nav a:hover { background: rgba(255,255,255,.06); }
.side-nav a.active { background: #1e3a64; color: #fff; }
.side-agent { margin-top: auto; background: #163262; border-radius: 10px; padding: 14px; }
.side-agent small { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--sky); }
.side-agent strong { display: block; color: #fff; margin-top: 4px; }
.side-agent a { color: #cbd5e1; text-decoration: none; font-size: 14px; display: block; margin-top: 6px; }

.portal-main { padding: 28px 28px 48px; min-width: 0; }
.portal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.portal-head h1 { font-size: 30px; font-weight: 800; }
.portal-head p { margin-top: 4px; }
.portal-head a { font-weight: 700; font-size: 14px; white-space: nowrap; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; }
.stat small { font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.stat .big { font-size: 30px; font-weight: 800; color: var(--ink); margin: 6px 0 4px; letter-spacing: -0.02em; }
.stat .mid { font-size: 22px; font-weight: 800; color: var(--ink); margin: 6px 0 4px; }
.stat p { font-size: 13px; }
.stat.dark { background: var(--sidebar); border-color: var(--sidebar); }
.stat.dark small { color: var(--sky); }
.stat.dark .big { color: #fff; }
.stat.dark p { color: #cbd5e1; }
.stat.dark .btn { margin-top: 12px; background: #fff; color: var(--ink); }
.stat.dark .btn:hover { background: #e2e8f0; }
.stat.dark.paid .btn { background: var(--green); color: #fff; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; margin-top: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.panel-head h2 { font-size: 19px; }
.panel-head a { font-size: 14px; font-weight: 700; }
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.data th { white-space: nowrap; text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; padding: 10px; border-bottom: 1px solid var(--line); }
table.data td { white-space: nowrap; padding: 12px 10px; border-bottom: 1px solid var(--line-soft); color: var(--text); }
table.data tr:last-child td { border-bottom: 0; }
table.data td.strong { font-weight: 700; color: var(--ink); }
table.data td.right, table.data th.right { text-align: right; }
table.data a { font-weight: 700; font-size: 13px; }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.status.ok { background: var(--green-soft); color: #15803d; }
.status.due { background: var(--amber-soft); color: var(--amber); }

.portal-bottom { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 16px; }
.portal-bottom .panel { margin-top: 16px; }
.card-row { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-top: 4px; }
.card-row strong { display: block; color: var(--ink); font-size: 14px; }
.card-row small { color: var(--muted); font-size: 12px; }
.card-row a { font-size: 13px; font-weight: 700; }
.autopay { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.autopay strong { display: block; color: var(--ink); font-size: 14px; }
.autopay small { color: var(--muted); font-size: 12px; }
.switch { position: relative; width: 46px; height: 26px; border-radius: 999px; border: 0; background: #cbd5e1; cursor: pointer; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch[aria-checked="true"] { background: var(--blue); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.note { font-size: 12px; color: var(--muted); margin-top: 14px; }
.portal-topbar { display: none; }

/* Password screen */
.lock-screen { display: none; }
body.locked .portal { display: none; }
body.locked .lock-screen {
  display: grid; place-items: center; min-height: 100vh; padding: 24px 16px;
  background: linear-gradient(135deg, #0c2345 0%, #13235b 55%, #1d3a8a 100%);
}
.lock-card { width: 100%; max-width: 380px; background: #fff; border-radius: 20px; padding: 32px 28px; text-align: center; box-shadow: 0 20px 50px rgba(0,0,0,.3); }
.lock-icon { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.lock-icon .icon { width: 24px; height: 24px; }
.lock-card h1 { font-size: 24px; font-weight: 800; }
.lock-card p { margin: 6px 0 20px; color: var(--muted); font-size: 14px; }
.lock-card .field { text-align: left; margin-bottom: 14px; }
.lock-back { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 700; text-decoration: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 960px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quotes-layout { grid-template-columns: 1fr; }
  .quote { grid-template-columns: 1fr auto; }
  .quote .specs { grid-column: 1 / -1; grid-row: 2; }
  .stats { grid-template-columns: 1fr; }
  .portal-bottom { grid-template-columns: minmax(0,1fr); }

  .portal { grid-template-columns: minmax(0,1fr); grid-template-rows: auto 1fr; }
  .sidebar { display: none; position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 60; }
  .portal.nav-open .sidebar { display: flex; }
  .portal-topbar { display: flex; align-items: center; justify-content: space-between; background: var(--sidebar); padding: 12px 16px; position: sticky; top: 0; z-index: 40; }
  .portal-topbar .slim-brand .brand-name { color: #fff; }
  .portal-topbar .slim-brand .brand-name span { color: var(--sky); }
  .portal-topbar .slim-brand .mark { background: var(--blue); }
  .portal-topbar button { background: none; border: 1px solid #334a8a; color: #fff; border-radius: 8px; padding: 6px; cursor: pointer; }
}

@media (max-width: 760px) {
  .container { padding: 0 16px; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px; box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; }
  .header-portal .label { display: none; }
  .header-portal { padding: 10px; }
  .brand-badge { padding: 6px 10px; }
  .brand-badge .icon { width: 24px; height: 24px; }
  .hero { padding: 48px 0 56px; }
  .hero-perks { gap: 12px 20px; }
  .section { padding: 56px 0; }
  .products { grid-template-columns: 1fr; }
  .quote-card { padding: 18px; }
  .tabs { grid-template-columns: repeat(2, 1fr); }
  .tab-bundle { grid-column: 1 / -1; }
  .bundle { grid-template-columns: 1fr; padding: 28px 22px; gap: 28px; }
  .bundle-visual { order: -1; }
  .bundle-tile { width: 96px; height: 96px; }
  .bundle-tile .icon { width: 32px; height: 32px; }
  .bundle .btn { width: 100%; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .portal-main { padding: 20px 16px 40px; }
  .portal-head h1 { font-size: 24px; }
  .quote { grid-template-columns: 1fr; }
  .price-col { text-align: left; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .price-col .btn { margin-top: 0; }
  .slim-brand small { display: none; }
}
