:root {
  --navy: #04134A;
  --blue: #181BF5;
  --blue-mid: #5a5cf7;
  --blue-soft: #eaebff;
  --bg: #eef1f8;
  --card: #ffffff;
  --ink: #1c2340;
  --muted: #6a7290;
  --line: #dfe3ef;
  --danger: #c02b3b;
  --danger-soft: #fdeef0;
  --ok: #127a4b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(4, 19, 74, .06), 0 6px 20px rgba(4, 19, 74, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  padding-bottom: 96px;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.topbar {
  display: flex; align-items: center; gap: 14px;
  background: #fff; padding: 10px 24px; border-bottom: 1px solid var(--line);
}
.logo { height: 40px; display: block; }
.topbar-title { font-weight: 600; color: var(--navy); border-left: 1px solid var(--line); padding-left: 14px; }

/* Stepper */
.stepper {
  position: relative;
  display: flex; gap: 4px; overflow-x: auto; padding: 14px 24px;
  background: var(--navy); scrollbar-width: none;
}
.stepper::-webkit-scrollbar { display: none; }
.stepper button {
  flex: 1 0 auto; display: flex; align-items: center; gap: 8px;
  background: transparent; border: 0; color: rgba(255,255,255,.55);
  font: inherit; font-size: 14px; padding: 6px 10px; border-radius: 999px; cursor: default; white-space: nowrap;
}
.stepper button .num {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid rgba(255,255,255,.35); font-weight: 600; font-size: 13px;
}
.stepper button.done { color: #fff; cursor: pointer; }
.stepper button.done .num { background: var(--blue-mid); border-color: var(--blue-mid); }
.stepper button.current { color: #fff; background: rgba(255,255,255,.1); }
.stepper button.current .num { background: #fff; color: var(--navy); border-color: #fff; }
.stepper button:focus-visible { outline: 2px solid #fff; }

/* Stage */
.stage { max-width: 980px; margin: 0 auto; padding: 32px 24px; }
.step { animation: slideIn .28s ease; }
.step.back { animation-name: slideInBack; }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes slideInBack { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

.step-head { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }
.step-icon {
  width: 56px; height: 56px; border-radius: 16px; background: var(--blue); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.step-icon svg { width: 28px; height: 28px; }
.step-head h1 { margin: 0; font-size: 26px; color: var(--navy); }
.step-head p { margin: 4px 0 0; color: var(--muted); }

.card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; margin-bottom: 18px;
}
.card h2 { margin: 0 0 14px; font-size: 16px; color: var(--navy); }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-head h2 { margin: 0; }

/* Fields */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: flex; flex-direction: column; gap: 6px; grid-column: span 2; }
.field.half { grid-column: span 1; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field label .req { color: var(--blue); }
.field input, .field textarea, .field select {
  font: inherit; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft);
}
.field.invalid input, .field.invalid textarea { border-color: var(--danger); background: var(--danger-soft); }
.field .err { color: var(--danger); font-size: 12px; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Product tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tile {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 2px solid transparent; overflow: hidden; display: flex; flex-direction: column;
  transition: border-color .15s, transform .15s;
}
.tile:hover { transform: translateY(-2px); }
.tile.selected { border-color: var(--blue); }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--blue-soft); }
.tile-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tile-body h3 { margin: 0; font-size: 15px; color: var(--navy); }
.tile-body p { margin: 0; font-size: 13px; color: var(--muted); flex: 1; }
.price { font-weight: 700; color: var(--blue); }
.price small { font-weight: 500; color: var(--muted); }

.qty { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.qty button {
  width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; font-size: 18px; cursor: pointer; color: var(--navy);
}
.qty button:hover { border-color: var(--blue); color: var(--blue); }
.qty input {
  width: 64px; text-align: center; font: inherit; font-weight: 600; padding: 7px;
  border: 1.5px solid var(--line); border-radius: 10px;
}
.qty input:focus { outline: none; border-color: var(--blue); }

/* Repeatable items */
.btn-add {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 16px; border: 2px dashed var(--blue-mid); border-radius: var(--radius);
  background: transparent; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer;
}
.btn-add:hover { background: var(--blue-soft); }
.btn-remove { background: none; border: 0; color: var(--danger); font: inherit; font-size: 13px; cursor: pointer; }
.step-err { color: var(--danger); background: var(--danger-soft); padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }

/* Buttons + nav */
.btn {
  white-space: nowrap;
  font: inherit; font-weight: 600; padding: 12px 22px; border-radius: 10px; border: 0; cursor: pointer;
  transition: background .15s, opacity .15s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1114c9; }
.btn-primary:disabled { opacity: .55; cursor: wait; }
.btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-link { background: none; border: 0; color: var(--blue); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }

.navbar {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 14px 24px; background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
}
.navbar .btn[hidden] { visibility: hidden; display: inline-block; }
.total-pill {
  background: var(--blue-soft); color: var(--navy); border-radius: 999px; padding: 8px 16px; font-size: 14px;
  text-align: center;
}
.total-pill b { color: var(--blue); }

/* Overview */
.ov-section .rows { display: grid; grid-template-columns: 200px 1fr; gap: 6px 16px; font-size: 14px; }
.ov-section .rows dt { color: var(--muted); }
.ov-section .rows dd { margin: 0; overflow-wrap: anywhere; }
.ov-sub { font-size: 13px; font-weight: 600; color: var(--navy); margin: 14px 0 6px; }
.ov-empty { color: var(--muted); font-style: italic; font-size: 14px; }
table.lines { width: 100%; border-collapse: collapse; font-size: 14px; }
table.lines th { text-align: left; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); padding: 6px 4px; }
table.lines td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
table.lines .num { text-align: right; white-space: nowrap; }
.grand { display: flex; gap: 16px; flex-wrap: wrap; }
.grand div { flex: 1 1 200px; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 18px 20px; }
.grand span { display: block; font-size: 13px; opacity: .75; }
.grand b { font-size: 26px; }
.fineprint { color: var(--muted); font-size: 12px; margin-top: 10px; }

/* Success */
.success { text-align: center; padding: 48px 24px; }
.success .check {
  width: 76px; height: 76px; border-radius: 50%; background: var(--ok); color: #fff;
  display: grid; place-items: center; margin: 0 auto 18px; font-size: 40px;
}
.success h1 { color: var(--navy); margin: 0 0 8px; }
.success p { color: var(--muted); }
.ref { display: inline-block; margin: 10px 0 24px; background: var(--blue-soft); color: var(--navy); font-weight: 700; padding: 8px 16px; border-radius: 999px; }

@media (max-width: 640px) {
  .topbar { padding: 10px 16px; }
  .logo { height: 36px; }
  .topbar-title { font-size: 14px; }
  .stepper { padding: 10px 16px; }
  .stepper button .label { display: none; }
  .stepper button.current .label { display: inline; }
  .stage { padding: 22px 16px; }
  .grid { grid-template-columns: 1fr; }
  .field.half { grid-column: span 2; }
  .navbar { padding: 12px 16px; }
  .btn { padding: 11px 16px; }
  .total-pill { font-size: 11.5px; padding: 6px 10px; line-height: 1.35; }
  .total-pill .sep { display: none; }
  .total-pill .t { display: block; }
  .tiles { grid-template-columns: 1fr; gap: 12px; }
  .tile { flex-direction: row; }
  .tile img { width: 96px; aspect-ratio: auto; flex-shrink: 0; }
  .tile-body { padding: 12px 14px; }
  .tile:hover { transform: none; }
  .ov-section .rows { grid-template-columns: 1fr; gap: 2px; }
  .ov-section .rows dd { margin-bottom: 8px; }
}

/* Categorized product catalogs */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: -6px 0 22px; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--navy); background: #fff;
  border: 1.5px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.cat { margin-bottom: 34px; scroll-margin-top: 16px; }
.cat-title { font-size: 19px; color: var(--navy); margin: 0 0 4px; }
.cat-blurb { color: var(--muted); margin: 0 0 14px; font-size: 14px; max-width: 760px; }
.cat-note {
  font-size: 13px; color: var(--navy); background: #fff7e0; border-left: 4px solid #e0a100;
  border-radius: 8px; padding: 10px 14px; margin: 0 0 14px; max-width: 760px;
}
.cat-title + .cat-note { margin-top: 10px; }
.sku { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.specs { margin: 4px 0 2px; padding-left: 16px; font-size: 12.5px; color: var(--ink); flex: 1; }
.specs li { margin-bottom: 2px; }
.bestfor { font-size: 12px; color: var(--blue); background: var(--blue-soft); border-radius: 8px; padding: 6px 9px; }
.bestfor b { text-transform: uppercase; font-size: 10.5px; letter-spacing: .05em; margin-right: 4px; }
.tile img[src*="/hardware/"] { background: #fff; padding: 14px; }
@media (max-width: 640px) {
  .tile img[src*="/hardware/"] { width: 104px; padding: 8px; align-self: flex-start; aspect-ratio: 1; }
}

/* Group footnote (e.g. customer privacy disclaimer) */
.footnote {
  display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px;
  background: var(--blue-soft); color: var(--navy); border-radius: 10px; font-size: 13px; line-height: 1.45;
}
.footnote svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--blue); margin-top: 1px; }

/* Hero banner */
.hero {
  display: flex; align-items: stretch; background: var(--navy); color: #fff; border-radius: var(--radius);
  overflow: hidden; margin-bottom: 26px; box-shadow: var(--shadow);
}
.hero-text { padding: 26px 28px; flex: 1; }
.hero h2 { margin: 0; font-size: 24px; }
.hero-tag { color: #9ea0ff; font-weight: 600; margin: 4px 0 12px; }
.hero p { margin: 0; font-size: 14px; line-height: 1.55; opacity: .85; max-width: 520px; }
.hero img { width: 34%; max-width: 300px; object-fit: cover; }

/* Tiered plan cards */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 2px solid transparent;
  overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s;
}
.plan.selected { border-color: var(--blue); }
.plan-head { background: var(--navy); color: #fff; text-align: center; padding: 18px 16px 20px; }
.plan-head img { height: 30px; }
.plan-head h3 { margin: 6px 0 4px; font-size: 21px; font-weight: 600; }
.plan-price { font-size: 32px; font-weight: 700; }
.plan-price span { font-size: 13px; font-weight: 500; opacity: .75; margin-left: 3px; }
.plan-body { padding: 16px 18px 4px; flex: 1; }
.plan-plus { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.plan-features { list-style: none; margin: 0 0 12px; padding: 0; font-size: 13.5px; }
.plan-features li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; }
.plan-features svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--ok); }
.plan-features li.new { font-weight: 600; color: var(--navy); }
.plan-features li.new svg { color: var(--blue); }
.plan-all { margin-bottom: 12px; font-size: 13px; }
.plan-all summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.plan-all .plan-features { margin: 8px 0 0; color: var(--muted); }
.plan-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border-top: 1px solid var(--line); padding: 12px 18px; background: #fafbff;
}
.plan-foot > span { font-weight: 600; color: var(--navy); font-size: 14px; }
.plan-foot .qty { margin: 0; }

@media (max-width: 860px) {
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { flex-direction: column-reverse; }
  .hero img { width: 100%; max-width: none; height: 150px; object-position: center 30%; }
  .hero-text { padding: 20px; }
  .hero h2 { font-size: 20px; }
}

/* Standalone plan (e.g. meetings-only seat), shown full-width under the tiers */
.plan-alt-head { margin: 28px 0 12px; font-size: 16px; font-weight: 600; color: var(--navy); }
.plan-tag {
  display: inline-block; margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--navy);
  background: #fff7e0; border-radius: 999px; padding: 4px 10px;
}
.plan-wide { display: grid; grid-template-columns: 240px 1fr; grid-template-rows: 1fr auto; }
.plan-wide .plan-head { grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.plan-wide .plan-features { columns: 2; column-gap: 24px; }
.plan-wide .plan-features li { break-inside: avoid; }
@media (max-width: 640px) {
  .plan-wide { display: flex; }
  .plan-wide .plan-features { columns: 1; }
}

/* Discount request */
.discount { margin-top: 22px; border: 2px dashed var(--line); box-shadow: none; }
.discount.open { border: 2px solid #e0a100; box-shadow: var(--shadow); }
.check-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check-row input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex-shrink: 0; cursor: pointer; }
.check-row b { display: block; color: var(--navy); font-size: 15px; }
.check-row small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.disc-prompt { margin: 16px 0 10px; font-weight: 600; color: var(--navy); font-size: 14px; }
.disc-rows { display: flex; flex-direction: column; gap: 10px; }
.disc-row { display: grid; grid-template-columns: 1fr 170px; gap: 4px 16px; align-items: center; padding: 10px 14px; background: #fafbff; border-radius: 10px; }
.disc-row label { font-size: 14px; }
.disc-row label small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.disc-row .err { grid-column: 1 / -1; text-align: right; }
.money-input { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; padding: 0 10px; }
.money-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.money-input span { color: var(--muted); font-size: 14px; }
.field .money-input input { border: 0; box-shadow: none; padding: 10px 6px; width: 100%; min-width: 0; font-weight: 600; background: transparent; }
.field.invalid .money-input { border-color: var(--danger); background: var(--danger-soft); }
.field.invalid .money-input input { background: transparent; }
#discountErr { margin: 12px 0 0; }
td.req, .lines .req { color: #a86f00; font-weight: 600; }
.lines td .req { font-size: 12px; }
.disc-summary { margin-top: 12px; padding: 10px 14px; background: #fff7e0; border-radius: 10px; font-size: 13px; color: var(--navy); }
.disc-reason { margin-top: 4px; font-style: italic; color: var(--ink); }
.grand .grand-req { background: #a86f00; }
@media (max-width: 640px) {
  .disc-row { grid-template-columns: 1fr; }
  .disc-row .err { text-align: left; }
}
.disc-disclaimer { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0 32px; font-size: 12.5px; color: var(--muted); }
.disc-disclaimer svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.discount.disabled .check-row { cursor: not-allowed; opacity: .6; }
.discount.disabled .check-row input { cursor: not-allowed; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: -3px; }
.total-pill .req-amt { font-style: normal; color: #a86f00; font-weight: 600; }
.money-input span { white-space: nowrap; }
.disc-row { grid-template-columns: 1fr 200px; }
@media (max-width: 640px) { .disc-row { grid-template-columns: 1fr; } }
.bill-tag {
  align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-soft); border-radius: 999px; padding: 3px 9px;
}
.fee-note { font-size: 12px; color: var(--navy); background: #fff7e0; border-radius: 8px; padding: 6px 9px; }
.qty-auto { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.qty-auto-num {
  min-width: 52px; text-align: center; font-size: 15px; font-weight: 700; color: var(--navy);
  background: var(--blue-soft); border-radius: 10px; padding: 8px 10px;
}

/* Overview estimate notice */
.notice {
  display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; padding: 16px 18px;
  background: #fff7e0; border: 1.5px solid #e0a100; border-radius: var(--radius); color: var(--navy);
}
.notice svg { width: 22px; height: 22px; flex-shrink: 0; color: #a86f00; margin-top: 1px; }
.notice b { display: block; font-size: 15px; margin-bottom: 4px; }
.notice p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; }
.bill-tag.badge-alt { color: #a86f00; background: #fff7e0; }

/* Turnstile bot check: invisible unless Cloudflare asks for an interaction */
.captcha-box {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 20;
  display: none; padding: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); max-width: calc(100vw - 32px);
}
.captcha-box.show { display: block; }

/* Splash page in front of the quote builder */
.splash {
  position: fixed; inset: 0; z-index: 50; background: #f3f6fd;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.splash[hidden] { display: none; }
body.splash-open { overflow: hidden; }
/* The artwork keeps its 16:9 shape and fills as much of the screen as it can. */
.splash-art { position: relative; width: min(100vw, calc(100vh * 1672 / 941)); aspect-ratio: 1672 / 941; }
.splash-art img { display: block; width: 100%; height: 100%; }
/* Get Started sits under the tagline, lined up with the left edge of the text. */
.splash-enter {
  position: absolute; left: 5.7%; top: 58%;
  font-size: clamp(14px, 1.5vw, 22px); padding: .7em 2.2em; border-radius: 999px;
  box-shadow: 0 8px 24px rgba(24, 27, 245, .35);
}
.splash-enter:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
/* Narrow or portrait screens: the artwork is too small to hold the button, so put it underneath. */
@media (max-width: 700px), (max-aspect-ratio: 1/1) {
  .splash { flex-direction: column; }
  .splash-art { width: 100vw; aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 28px; }
  .splash-art img { height: auto; }
  .splash-enter { position: static; font-size: 18px; }
}
