:root {
  --brand: #1160e0;          /* AUNUSA blue — big-carrier feel, original brand */
  --brand-dark: #0b3d91;
  --brand-navy: #072a66;
  --brand-soft: #e8f0fe;
  --accent: #ff8f1f;         /* warm orange accent for highlights/CTAs */
  --bg: #f4f7fc;
  --card: #ffffff;
  --border: #dbe4f0;
  --text: #1a2740;
  --muted: #5b6b85;
  --ok: #059669;
  --ok-bg: #ecfdf5;
  --err: #dc2626;
  --err-bg: #fef2f2;
  --shadow: 0 1px 3px rgba(7, 42, 102, 0.08), 0 8px 24px rgba(7, 42, 102, 0.05);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--brand); }

/* ---------- Top bar (white, blue wordmark — national-carrier look) ---------- */
.topbar {
  background: #fff;
  color: var(--brand-navy);
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 62px;
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(7, 42, 102, 0.06);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  color: var(--brand-dark);
}
.brand .logo-img { width: 42px; height: 42px; display: block; }
.brand-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.brand-name {
  font-weight: 800;
  font-size: 22px;
  font-style: italic;               /* forward-motion wordmark */
  letter-spacing: 0.02em;
  color: var(--brand-dark);
}
.brand-tag {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}
@media (max-width: 640px) { .brand-tag { display: none; } }
.topbar .spacer { flex: 1; }
.topbar .phone { font-size: 13px; color: var(--muted); }
.topbar .phone b { font-weight: 700; color: var(--brand-dark); }
.login-btn {
  background: var(--brand); color: #fff; text-decoration: none;
  font-size: 13.5px; font-weight: 700; border-radius: 9px; padding: 9px 18px;
  transition: background 0.12s;
}
.login-btn:hover { background: var(--brand-dark); }
@media (max-width: 640px) { .topbar .phone { display: none; } }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: none; margin: 0 auto; padding: 28px 4vw 80px; }
.wrap.narrow { max-width: 780px; padding: 28px 20px 80px; }

/* ---------- Hero / landing ---------- */
.hero { text-align: center; padding: 28px 0 8px; }
.hero h1 { font-size: 30px; margin: 0 0 8px; letter-spacing: -0.02em; }
.hero p { font-size: 16px; color: var(--muted); margin: 0 auto; max-width: 560px; }

/* Landing-page hero: true full-bleed blue band (rendered outside .wrap) */
.hero-band {
  background: linear-gradient(150deg, var(--brand-navy) 0%, var(--brand-dark) 55%, var(--brand) 130%);
  color: #fff;
  text-align: center;
  padding: 46px 4vw 54px;
  margin: 0;
  width: 100%;
}
.hero-band h1 { font-size: 34px; margin: 0 0 10px; letter-spacing: -0.02em; }
.hero-band p { font-size: 16.5px; opacity: 0.92; margin: 0 auto; max-width: 600px; }
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.hero-chip {
  font-size: 12.5px; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px; padding: 6px 14px;
}
.hero-chip::before { content: '✓ '; color: #ffb45e; }
.hero-band .hero-art { font-size: 40px; margin-bottom: 10px; }
.hero-band .hero-img {
  display: block;
  width: 100%;
  max-width: 1020px;
  margin: 30px auto -54px;   /* pull down so the road meets the band's bottom edge */
  filter: drop-shadow(0 10px 30px rgba(4, 20, 50, 0.35));
}
@media (max-width: 600px) {
  .hero-band .hero-img { margin-bottom: -30px; }
}

.section-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--brand); margin: 28px 0 12px;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 190px));
  justify-content: center;   /* partial rows (e.g. 2-tile groups) stay centered */
  gap: 14px;
}
.section-label { text-align: center; }
.tile {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.tile .emoji { font-size: 34px; line-height: 1; }

/* Brand icon set (inline SVG) */
.li-icon { display: inline-flex; align-items: center; justify-content: center; }
.li-icon.tile-icon { margin: 0 auto; }   /* keep the icon dead-center in its tile */
.li-icon.tile-icon svg { width: 54px; height: 54px; }
.li-icon.tile-icon { font-size: 40px; }               /* emoji fallback size */
.li-icon.inline-icon svg { width: 22px; height: 22px; }
.li-icon.inline-icon { vertical-align: -5px; margin-right: 4px; }
.review-line h3 .li-icon.inline-icon svg { width: 26px; height: 26px; }
.tile .name { font-weight: 600; font-size: 14px; }
.tile .desc { font-size: 11.5px; color: var(--muted); }
.tile.selected { border-color: var(--brand); background: var(--brand-soft); }
.tile .badge {
  position: relative; margin-top: 2px;
  font-size: 10px; font-weight: 700; color: var(--ok);
}

.bundle-cta {
  margin-top: 22px; text-align: center;
  background: var(--card); border: 1px dashed var(--border);
  border-radius: 14px; padding: 18px;
}
.bundle-cta .cnt { font-weight: 700; color: var(--brand); }

/* Group taglines under section labels */
.group-tag { text-align: center; font-size: 13.5px; color: var(--muted); margin: -8px 0 14px; }

/* Why AUNUSA — value props */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  justify-content: center;
  gap: 16px;
}
.value-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 20px; text-align: center;
  box-shadow: var(--shadow);
}
.value-card .value-icon { font-size: 30px; margin-bottom: 8px; }
.value-card h3 { margin: 0 0 6px; font-size: 16px; color: var(--brand-dark); }
.value-card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* Human CTA band */
.human-band {
  margin: 34px auto 0; max-width: 720px; text-align: center;
  background: var(--brand-soft); border: 1px solid #c9dcf8;
  border-radius: 14px; padding: 24px 26px;
}
.human-band h3 { margin: 0 0 6px; font-size: 19px; color: var(--brand-dark); }
.human-band p { margin: 0; font-size: 14px; color: var(--text); }
.human-band b { color: var(--brand-dark); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--brand); color: #fff; border: none;
  border-radius: 10px; padding: 12px 22px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: background 0.12s;
}
.btn:hover { background: var(--brand-dark); }
.btn:disabled { background: #cbd5e1; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.lg { padding: 14px 30px; font-size: 16px; }
.btn.block { width: 100%; }

/* ---------- Progress ---------- */
.steps { display: flex; align-items: center; gap: 6px; margin: 4px 0 22px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.step .dot {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: #e2e8f0; color: var(--muted); font-size: 12px; font-weight: 700;
}
.step.active .dot { background: var(--brand); color: #fff; }
.step.done .dot { background: var(--ok); color: #fff; }
.step.active { color: var(--text); font-weight: 600; }
.step .bar { width: 24px; height: 2px; background: #e2e8f0; }

/* ---------- Cards & form ---------- */
.qcard {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 24px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.qcard > h2 {
  margin: 0 0 4px; font-size: 18px; letter-spacing: -0.01em;
}
.qcard > .sub { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; }

.section-title {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--brand-dark); margin: 22px 0 12px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.section-title:first-of-type { margin-top: 4px; }
.section-note { font-size: 12.5px; color: var(--muted); margin: -6px 0 14px; }

.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 18px; }

.field { display: flex; flex-direction: column; font-size: 13px; }
.field.full { grid-column: 1 / -1; }
.field > label { font-weight: 600; color: var(--text); margin-bottom: 5px; }
.field > label .req { color: var(--err); margin-left: 2px; }
.field .help { font-size: 11.5px; color: var(--muted); font-weight: 400; margin-top: 4px; }

.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px; font-size: 14px;
  border: 1px solid var(--border); border-radius: 9px; background: #fff; color: var(--text);
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: var(--err); background: var(--err-bg);
}
.field .err-msg { color: var(--err); font-size: 11.5px; font-weight: 600; margin-top: 4px; min-height: 0; }

/* radio & checkbox groups */
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); border-radius: 9px; padding: 9px 14px;
  font-size: 13.5px; cursor: pointer; background: #fff; user-select: none;
}
.opt:hover { border-color: var(--brand); }
.opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
.opt.checked { border-color: var(--brand); background: var(--brand-soft); font-weight: 600; }

.singlecheck { display: flex; align-items: center; gap: 9px; font-size: 14px; cursor: pointer; }
.singlecheck input { width: 17px; height: 17px; accent-color: var(--brand); }

/* repeatable groups (drivers, vehicles) */
.repeat-item {
  border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px;
  margin-bottom: 12px; background: #fafcfc;
}
.repeat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.repeat-head strong { font-size: 14px; }
.repeat-head .remove { background: none; border: none; color: var(--err); cursor: pointer; font-size: 12.5px; font-weight: 600; }
.add-btn { background: var(--brand-soft); color: var(--brand-dark); border: 1px dashed var(--brand); border-radius: 9px; padding: 10px 16px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.add-btn:hover { background: #d4ece9; }

/* ---------- Nav row ---------- */
.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 12px; }
.nav-row .autosave { font-size: 12px; color: var(--muted); }

/* ---------- Review ---------- */
.review-line { margin-bottom: 22px; }
.review-line h3 { font-size: 15px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.review-line .edit { font-size: 12.5px; font-weight: 600; margin-left: auto; cursor: pointer; background: none; border: none; color: var(--brand); }
.review-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.review-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.review-table td.k { color: var(--muted); width: 45%; }
.review-table td.v { font-weight: 600; }
.review-sub { font-size: 12px; font-weight: 700; color: var(--brand-dark); margin: 12px 0 4px; text-transform: uppercase; letter-spacing: 0.04em; }

.done-box { text-align: center; padding: 40px 20px; }
.done-box .check { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: grid; place-items: center; font-size: 34px; margin: 0 auto 16px; }
.done-box h2 { margin: 0 0 8px; }
.done-box p { color: var(--muted); max-width: 440px; margin: 0 auto 8px; }

.disclaimer { font-size: 11.5px; color: var(--muted); margin-top: 24px; text-align: center; }

.hidden { display: none !important; }

/* ---------- Site footer ---------- */
.site-footer {
  background: var(--brand-navy);
  color: #cdd9ef;
  margin-top: 44px;
  padding: 30px 4vw 26px;
  font-size: 13px;
}
.site-footer .foot-links { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: center; margin-bottom: 16px; }
.site-footer .foot-links a { color: #fff; text-decoration: none; font-weight: 600; }
.site-footer .foot-links a:hover { text-decoration: underline; }
.site-footer .foot-note { text-align: center; color: #9fb3d9; font-size: 12px; max-width: 860px; margin: 0 auto; line-height: 1.6; }

/* ---------- Static info pages ---------- */
a.brand { text-decoration: none; }
.page { padding-top: 30px; }
.page .qcard h1 { font-size: 24px; margin: 0 0 14px; color: var(--brand-dark); }
.page .qcard h2 { font-size: 16px; margin: 24px 0 6px; color: var(--brand-dark); }
.page .qcard p, .page .qcard li { font-size: 14px; line-height: 1.65; color: var(--text); }
.page .qcard ul { padding-left: 22px; margin: 6px 0; }
.page .updated { font-size: 12px; color: var(--muted); margin: -8px 0 18px; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-top: 12px; }
.contact-tile { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; background: #fafcff; }
.contact-tile h3 { margin: 0 0 4px; font-size: 14px; color: var(--brand-dark); }
.contact-tile p { margin: 0; font-size: 13px; }

/* ---------- Login page ---------- */
.login-wrap { max-width: 420px; margin: 48px auto; padding: 0 20px; }
.login-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 30px 28px; box-shadow: var(--shadow); }
.login-card h1 { font-size: 22px; margin: 0 0 6px; color: var(--brand-dark); }
.login-card .sub { font-size: 13.5px; color: var(--muted); margin: 0 0 20px; }
.login-card .field { margin-bottom: 14px; }
.demo-banner {
  background: #fff7ed; border: 1px solid #fdba74; color: #9a3412;
  border-radius: 10px; padding: 8px 14px; font-size: 12.5px; font-weight: 600;
  text-align: center; margin-bottom: 16px;
}

/* ---------- Customer portal ---------- */
.portal-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; }
.portal-head h1 { font-size: 24px; margin: 0; letter-spacing: -0.01em; }
.portal-head .sub { color: var(--muted); font-size: 13.5px; }

.policy-card { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.policy-meta { flex: 1; min-width: 240px; }
.policy-meta h3 { margin: 0 0 2px; font-size: 16px; }
.policy-meta .carrier { color: var(--muted); font-size: 13px; }
.policy-facts { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 10px; font-size: 13px; }
.policy-facts span { color: var(--muted); }
.policy-facts b { display: block; color: var(--text); font-size: 13.5px; }
.policy-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pstatus { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: 0.04em; }
.pstatus.active { background: var(--ok-bg); color: var(--ok); }

/* messages */
.msg-thread { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; max-height: 320px; overflow-y: auto; }
.msg { max-width: 80%; border-radius: 12px; padding: 9px 13px; font-size: 13.5px; line-height: 1.45; }
.msg.me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg.agent { align-self: flex-start; background: #eef2f9; color: var(--text); border-bottom-left-radius: 4px; }
.msg .who { display: block; font-size: 10.5px; opacity: 0.75; margin-top: 3px; }
.msg-input { display: flex; gap: 8px; }
.msg-input textarea { flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-family: inherit; font-size: 14px; resize: vertical; min-height: 44px; }

/* ---------- ID card ---------- */
.idcard {
  position: relative; overflow: hidden;
  width: 100%; max-width: 540px; margin: 0 auto;
  border: 2px solid var(--brand-dark); border-radius: 12px;
  background: #fff; padding: 18px 22px; font-size: 13px;
}
.idcard::after {                 /* specimen watermark — demo data only */
  content: 'SPECIMEN';
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 64px; font-weight: 800; letter-spacing: 0.2em;
  color: rgba(220, 38, 38, 0.13); transform: rotate(-22deg); pointer-events: none;
}
.idcard-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--brand-dark); padding-bottom: 8px; margin-bottom: 10px; }
.idcard-head .co { font-weight: 800; color: var(--brand-dark); font-size: 15px; }
.idcard-head .kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.idcard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; }
.idcard-grid .lab { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.idcard-grid .val { font-weight: 700; }
.idcard-foot { margin-top: 10px; font-size: 10.5px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 8px; }

@media print {
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { position: absolute; left: 0; top: 0; width: 100%; }
  .idcard { box-shadow: none; }
}

/* ---------- Floating agent chat widget ---------- */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--brand); color: #fff; border: none; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(7, 42, 102, 0.35);
  transition: transform 0.12s, background 0.12s;
}
.chat-fab:hover { transform: scale(1.06); background: var(--brand-dark); }
.chat-fab svg { width: 27px; height: 27px; }

.chat-panel {
  position: fixed; right: 22px; bottom: 92px; z-index: 60;
  width: 340px; max-width: calc(100vw - 32px);
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 12px 40px rgba(7, 42, 102, 0.25);
  display: flex; flex-direction: column; overflow: hidden;
}
.chat-head {
  background: var(--brand-dark); color: #fff; padding: 13px 16px;
  display: flex; align-items: center; gap: 10px;
}
.chat-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #34d399; flex: none; }
.chat-head .t { font-weight: 700; font-size: 14.5px; }
.chat-head .s { font-size: 11.5px; opacity: 0.8; }
.chat-head .close { margin-left: auto; background: none; border: none; color: #fff; font-size: 17px; cursor: pointer; opacity: 0.8; }
.chat-head .close:hover { opacity: 1; }
.chat-body { padding: 14px; max-height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.chat-note { font-size: 12px; color: var(--muted); text-align: center; margin: 2px 0 4px; }
.chat-form { padding: 0 14px 6px; display: flex; flex-direction: column; gap: 8px; }
.chat-form input, .chat-input textarea {
  border: 1px solid var(--border); border-radius: 9px; padding: 9px 11px;
  font-size: 13.5px; font-family: inherit; width: 100%;
}
.chat-form input:focus, .chat-input textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.chat-input { display: flex; gap: 7px; padding: 10px 14px 14px; border-top: 1px solid var(--border); }
.chat-input textarea { resize: none; min-height: 40px; max-height: 90px; flex: 1; }
.chat-input .btn { padding: 9px 15px; font-size: 13.5px; border-radius: 9px; }
.chat-err { color: var(--err); font-size: 12px; padding: 0 14px 8px; }

@media (max-width: 480px) {
  .chat-panel { right: 16px; bottom: 84px; }
  .chat-fab { right: 16px; bottom: 16px; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 24px; }
  .qcard { padding: 18px 16px; }
  .step span { display: none; }
}
