/* Boxio — site styles */
:root {
  /* Boxio brand palette — built around the logo indigo #29254F */
  --ink: #0f0d1f;
  --ink-2: #403d55;
  --muted: #6b6880;
  --bg: #f9f9fb;
  --surface: #ffffff;
  --sand: #f2f1f7;
  --line: #e4e2ee;
  --navy: #1b1836;
  --navy-2: #29254f;
  --accent: #29254f;
  --accent-2: #3b3570;
  --accent-dark: #4b4596;
  --accent-soft: #eceaf7;
  --accent-bright: #8f86f0;
  --ok: #22c55e;
  --on-dark: #f0eff8;
  --on-dark-2: #b4b0d0;
  --on-dark-line: rgba(255, 255, 255, .1);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 13, 31, .06), 0 8px 24px rgba(15, 13, 31, .06);
  --shadow-lg: 0 24px 60px rgba(15, 13, 31, .14);
  --max: 1180px;
  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 700 1rem/1 var(--font-head);
  padding: 15px 22px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(41, 37, 79, .28); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-light { background: #fff; color: var(--ink); }
.btn-sm { padding: 10px 16px; font-size: .92rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(249, 250, 251, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(11, 14, 26, .05); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.5rem/1 var(--font-head); letter-spacing: -.03em; }
.logo img { height: 32px; width: auto; }
.site-footer .logo img { height: 34px; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > a, .nav .dd > button {
  font: 600 .96rem/1 var(--font-head); color: var(--ink-2); text-decoration: none;
  padding: 10px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px;
}
.nav > a:hover, .nav .dd > button:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--sand); }
.dd { position: relative; }
.dd-menu {
  position: absolute; top: calc(100% + 8px); left: -12px; min-width: 300px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s;
}
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { display: flex; gap: 12px; padding: 12px; border-radius: 10px; text-decoration: none; }
.dd-menu a:hover { background: var(--sand); }
.dd-menu strong { display: block; font-family: var(--font-head); }
.dd-menu span { font-size: .88rem; color: var(--muted); }
.pin { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 800 .8rem var(--font-head); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone { font: 700 .95rem var(--font-head); text-decoration: none; color: var(--ink-2); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

@media (max-width: 1020px) {
  .header-phone { display: none; }
}
@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .nav, .header-cta { display: none; }
  .site-header.menu-open .nav {
    display: flex; flex-direction: column; align-items: stretch; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg); padding: 12px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 72px); overflow: auto;
  }
  .site-header.menu-open .nav > a, .site-header.menu-open .dd > button { padding: 14px 8px; font-size: 1.05rem; }
  .site-header.menu-open .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 8px; min-width: 0; background: transparent; }
  .site-header.menu-open .nav .btn { margin-top: 12px; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
.nav .mobile-only { display: none; }
@media (max-width: 880px) { .site-header.menu-open .nav .mobile-only { display: inline-flex; } }

/* ---------- Sections ---------- */
section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 700 .8rem/1 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 640px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lede { margin: 0 auto; }
.bg-sand { background: var(--sand); }
.bg-navy { background: var(--navy); color: var(--on-dark); }
.bg-navy h2, .bg-navy h3 { color: #fff; }
.bg-navy .lede { color: var(--on-dark-2); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } section { padding: 72px 0; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
a.card { text-decoration: none; display: block; }
a.card:hover, .card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card p { color: var(--ink-2); margin: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; }
.more { display: inline-flex; gap: 6px; align-items: center; margin-top: 16px; font: 700 .95rem var(--font-head); color: var(--accent); }
a.card:hover .more span { transform: translateX(4px); }
.more span { transition: transform .2s; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(143, 134, 240, .18), transparent 70%),
    radial-gradient(500px 400px at 0% 100%, rgba(11, 14, 26, .05), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.2rem, 4.3vw, 3.5rem); }
.hero h1 .hl { color: var(--accent); background: linear-gradient(transparent 64%, rgba(143, 134, 240, .32) 64%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.h1-kicker {
  display: flex; align-items: center; gap: 8px; margin-bottom: 20px;
  font: 700 .8rem/1.3 var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark);
}
.h1-kicker::before { content: ""; width: 18px; height: 2px; background: currentColor; flex: none; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 40px; }
.stats { display: grid; grid-template-columns: repeat(4, auto); gap: 28px; justify-content: start; }
@media (max-width: 1100px) and (min-width: 961px), (max-width: 600px) { .stats { grid-template-columns: 1fr 1fr; gap: 20px; } }
.stat strong { display: block; font: 800 2rem/1 var(--font-head); letter-spacing: -.03em; }
.stat span { font-size: .9rem; color: var(--muted); }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr 1fr; gap: 20px; } }

/* Hub card in hero */
.hub-card { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 24px; border: 1px solid var(--line); }
.hub-tabs { display: flex; gap: 6px; background: var(--sand); padding: 5px; border-radius: 999px; margin-bottom: 20px; }
.hub-tabs button {
  flex: 1; border: 0; background: transparent; padding: 10px 12px; border-radius: 999px; cursor: pointer;
  font: 700 .92rem var(--font-head); color: var(--ink-2); transition: .2s;
}
.hub-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.hub-panel h3 { font-size: 1.35rem; margin-bottom: 4px; }
.hub-panel .addr { color: var(--muted); font-size: .95rem; margin-bottom: 16px; }
.hub-panel ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.hub-panel li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.hub-panel li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%2329254f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.hub-panel[hidden] { display: none; }


/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; background: var(--surface); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scroll 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font: 800 1.3rem var(--font-head); color: #b4b0d0; letter-spacing: -.02em; white-space: nowrap; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step-list { display: grid; gap: 8px; }
.step-btn {
  text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 18px 20px; cursor: pointer;
  display: flex; gap: 14px; align-items: center; font: 700 1.05rem var(--font-head); color: var(--ink-2); position: relative; overflow: hidden;
  transition: .2s;
}
.step-btn .n { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sand); font-size: .9rem; transition: .2s; }
.step-btn[aria-selected="true"] { color: var(--ink); border-color: var(--ink); box-shadow: var(--shadow); }
.step-btn[aria-selected="true"] .n { background: var(--accent); color: #fff; }
.step-btn .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--accent); }
.step-btn[aria-selected="true"] .bar { animation: fill 6s linear forwards; }
.steps.paused .step-btn .bar { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.step-stage { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 40px; min-height: 360px; box-shadow: var(--shadow); }
.step-panel[hidden] { display: none; }
.step-panel { animation: rise .4s ease; }
.step-panel .big { font: 800 4.5rem/1 var(--font-head); color: var(--accent-soft); -webkit-text-stroke: 2px var(--accent); margin-bottom: 12px; }
.step-panel ul { padding-left: 20px; color: var(--ink-2); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Map ---------- */
.map-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .map-wrap { grid-template-columns: 1fr; } }
.map-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 9px 16px;
  font: 700 .9rem var(--font-head); cursor: pointer; transition: .15s;
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.bg-navy .chip { background: transparent; color: var(--on-dark-2); border-color: rgba(255, 255, 255, .16); }
.bg-navy .chip[aria-pressed="true"] { background: var(--accent-bright); border-color: var(--accent-bright); color: var(--navy); }
.d1 { background: #c4bfff; } .d2 { background: #8f86f0; } .d3 { background: #5a52b0; } .d4 { background: #3d3780; } .d5 { background: #2f2a5c; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; font-size: .85rem; color: var(--on-dark-2); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.map-info { background: rgba(255, 255, 255, .05); border: 1px solid var(--on-dark-line); border-radius: var(--radius); padding: 24px; }
.map-info h3 { font-size: 1.5rem; }
.map-info .row { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--on-dark-line); }
.map-info .row strong { font-family: var(--font-head); color: #fff; }
.map-info .best { display: inline-block; margin-top: 14px; background: var(--accent-bright); color: var(--navy); padding: 6px 12px; border-radius: 999px; font: 700 .85rem var(--font-head); }
.fine { font-size: .82rem; color: var(--muted); }
.bg-navy .fine { color: var(--on-dark-2); }

/* ---------- Location cards ---------- */
.loc-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.loc-card .map { height: 220px; background: var(--sand); border-bottom: 1px solid var(--line); }
.loc-card .map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3); }
.loc-card .body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.loc-card address { font-style: normal; color: var(--ink-2); margin: 8px 0 16px; }
.loc-card .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.tag { display: inline-block; font: 700 .75rem var(--font-head); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); background: var(--accent-soft); padding: 5px 10px; border-radius: 999px; }
.todo { background: #fff6c2; outline: 1px dashed #c9a400; border-radius: 4px; padding: 0 4px; }

/* ---------- Checklist / features ---------- */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { padding-left: 34px; position: relative; color: var(--ink-2); }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%2329254f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat; }
.checks strong { color: var(--ink); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.big-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.big-stats .card strong { display: block; font: 800 2.6rem/1 var(--font-head); letter-spacing: -.03em; color: var(--accent); margin-bottom: 8px; }

/* ---------- Cities ---------- */
.cities { display: flex; flex-wrap: wrap; gap: 10px; }
.cities span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .95rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font: 700 1.12rem var(--font-head);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--ink), var(--ink)) center/14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center/2px 14px no-repeat;
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .answer { padding: 0 0 24px; color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #fff; border-radius: 28px; padding: 64px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .1); }
.cta-band h2 { color: #fff; margin: 0 0 8px; }
.cta-band p { margin: 0; opacity: .9; font-size: 1.1rem; }
.cta-band .btns { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 1; }
.cta-band .btn-ghost { color: #fff; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 40px 28px; } }

/* ---------- Integrations ---------- */
.int-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
.search { position: relative; flex: 1 1 260px; max-width: 360px; }
.search input { width: 100%; padding: 12px 16px 12px 42px; border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: .97rem; background: var(--surface); }
.search svg { position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.int-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.int { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: .2s; }
.int:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.int .mono { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 800 1.1rem var(--font-head); color: #fff; }
.int strong { font-family: var(--font-head); }
.int small { color: var(--muted); }
.int[hidden] { display: none; }
.empty { color: var(--muted); padding: 24px 0; }

/* ---------- Forms ---------- */
.form-shell { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
@media (max-width: 960px) { .form-shell { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 36px; box-shadow: var(--shadow); }
@media (max-width: 520px) { .form-card { padding: 24px 18px; } }
.progress { display: flex; gap: 6px; margin-bottom: 28px; }
.progress i { flex: 1; height: 5px; border-radius: 99px; background: var(--sand); position: relative; overflow: hidden; }
.progress i.on::after { content: ""; position: absolute; inset: 0; background: var(--accent); animation: grow .35s ease; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } }
.step-label { font: 700 .8rem var(--font-head); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
fieldset { border: 0; padding: 0; margin: 0; }
fieldset[hidden] { display: none; }
fieldset legend { font: 800 1.6rem/1.2 var(--font-head); letter-spacing: -.02em; margin: 6px 0 22px; padding: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: flex; flex-direction: column; gap: 4px; height: 100%; border: 2px solid var(--line); border-radius: 14px; padding: 16px; cursor: pointer;
  font: 700 1rem var(--font-head); transition: .15s;
}
.choice small { font: 500 .82rem var(--font-body); color: var(--muted); }
.choice span:hover { border-color: var(--ink-2); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(41, 37, 79, .12); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font: 700 .9rem var(--font-head); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(41, 37, 79, .12); }
.field .err { display: none; color: #c2370c; font-size: .85rem; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c2370c; }
.field.invalid .err { display: block; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.range-out { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.range-out output { font: 800 2rem var(--font-head); color: var(--accent); }
input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.form-nav .btn[hidden] { display: none; }
.success { text-align: center; padding: 24px 0; animation: rise .4s ease; }
.success .check { width: 72px; height: 72px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 20px; }
.success .check svg { width: 36px; height: 36px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .2s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.summary { background: var(--sand); border-radius: 14px; padding: 18px 20px; margin-top: 8px; font-size: .95rem; }
.summary div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }
.aside-card { background: var(--navy); color: var(--on-dark-2); border-radius: 22px; padding: 32px; position: sticky; top: 96px; }
.aside-card h3 { color: #fff; }
.aside-card a { color: #fff; }
.aside-card .contact-line { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--on-dark-line); }
.aside-card .contact-line svg { width: 20px; height: 20px; flex: none; color: var(--accent-2); margin-top: 3px; }
.hp { position: absolute; left: -9999px; }

/* ---------- Breadcrumbs & page hero ---------- */
.page-hero { padding: 56px 0 72px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 360px at 90% 0%, rgba(143, 134, 240, .16), transparent 70%); }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 20px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #b4b0d0; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-2); padding: 72px 0 32px; font-size: .95rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer .logo { color: #fff; margin-bottom: 16px; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; border-top: 1px solid var(--on-dark-line); margin-top: 56px; padding-top: 24px; font-size: .85rem; }

/* ---------- Floating quote button ---------- */
.fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; transform: translateY(120px); opacity: 0; transition: .3s;
}
.fab.show { transform: none; opacity: 1; }
.mobile-bar { display: none; }
@media (max-width: 640px) {
  .fab { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(249, 250, 251, .95); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { padding: 13px 10px; }
  body { padding-bottom: 76px; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: .32s; }
.reveal-stagger.in > *:nth-child(6) { transition-delay: .4s; }
.no-js .reveal, .no-js .reveal-stagger > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; }
}

.prose { max-width: 760px; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--ink-2); }

/* Above-the-fold content renders immediately (better Largest Contentful Paint for SEO) */
.hero .reveal, .page-hero .reveal, .page-hero .reveal-stagger > * { opacity: 1; transform: none; transition: none; }

/* ---------- U.S. maps ---------- */
.hero-map { background: var(--navy); border-radius: 14px; padding: 12px 10px 6px; margin-bottom: 20px; min-height: 180px; }
.us-svg { width: 100%; height: auto; overflow: visible; }
.us-svg .states path { fill: #2f2a5c; stroke: var(--navy); stroke-width: 1; transition: fill .4s; }
.hero-map .states path.hub-state { fill: #4a4396; }
.hero-map .states path.hub-state.on { fill: var(--accent-bright); }
.hero-map .states path.ping { fill: #3d3780; transition: fill .15s; }
.us-svg .pins text { font: 800 22px var(--font-head); fill: #fff; paint-order: stroke; stroke: var(--navy); stroke-width: 6px; stroke-linejoin: round; pointer-events: none; }
.hub-pin { transition: opacity .3s; }
.hub-pin.dim { opacity: .35; }
.pin-dot { fill: #fff; }
.pin-halo { fill: var(--accent-bright); }
.pin-pulse { fill: none; stroke: var(--accent-bright); stroke-width: 3; transform-box: fill-box; transform-origin: center; animation: pulse 2s ease-out infinite; }
.hero-map .hub-pin:not(.on) .pin-pulse { animation: none; opacity: 0; }
.hero-map .hub-pin:not(.on) { opacity: .75; }
@keyframes pulse { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
.link-route { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 2; }
.ship-route { fill: none; stroke: #a59ef5; stroke-width: 2.5; stroke-linecap: round; }
.ship-dot { fill: none; stroke: #c4bfff; stroke-width: 3; }
.hover-route { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; pointer-events: none; }
.us-map .states path { cursor: pointer; stroke-width: 1.2; }
.us-map .states path.d1 { fill: #c4bfff; } .us-map .states path.d2 { fill: #8f86f0; } .us-map .states path.d3 { fill: #5a52b0; } .us-map .states path.d4 { fill: #3d3780; } .us-map .states path.d5 { fill: #2f2a5c; }
.us-map .states path:hover { filter: brightness(1.2); }
.us-map .states path.active { stroke: #fff; stroke-width: 2.5; }
.us-map .states path:focus { outline: none; }
.us-map .states path:focus-visible { stroke: #fff; stroke-width: 3; }

/* ---------- Interactive backgrounds ---------- */
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }
.fx-canvas {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.card, .int, .form-card { position: relative; }
.card::after, .int::after, .form-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(143, 134, 240, .14), transparent 45%);
}
.card:hover::after, .int:hover::after, .form-card:hover::after { opacity: 1; }
[data-tilt] { transition: transform .25s ease-out; will-change: transform; }
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent-bright); transform-origin: left; transform: scaleX(0); }
/* Hero map is drawn small, so its strokes need to be heavier */
.hero-map .ship-route { stroke-width: 6; }
.hero-map .link-route { stroke-width: 4; stroke-dasharray: 2 12 !important; stroke-linecap: round; }
.hero-map .ship-dot { stroke-width: 6; }
.hero-map .states path { stroke-width: 2; }

/* ---------- Customer logos ---------- */
.logos { padding: 40px 0 48px; border-block: 1px solid var(--line); background: var(--surface); }
.logos-title { text-align: center; font: 700 .8rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 64px; width: max-content; animation: scroll 55s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-track li { flex: none; height: 44px; display: flex; align-items: center; }
.logo-track img { filter: brightness(0); opacity: .45; transition: opacity .25s, transform .25s; }
.logo-track li:hover img { opacity: .9; transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { .logo-track { flex-wrap: wrap; justify-content: center; width: auto; padding: 0 20px; } .logo-track li[aria-hidden], .logo-track img[aria-hidden] { display: none; } }

/* Floating quote button: keep it visible over dark indigo sections */
.fab { box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 10px 30px rgba(15, 13, 31, .35); }
/* Hero map packages */
.ship-box rect { fill: #fff; stroke: var(--accent-bright); stroke-width: 3; }
.ship-route.dim, .ship-box.dim { opacity: .55; }
.ship-route { transition: opacity .3s; }

/* Integration logos */
.int-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.int-logo { height: 72px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 6px 10px; overflow: hidden; }
.int-logo img { max-height: 60px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
.int-logo-api { background: var(--accent); color: #fff; font: 800 1.4rem var(--font-head); }
.logo-track img.badge { filter: grayscale(1) contrast(1.15); opacity: .6; }

/* Sales rep booking calendar (Free Quote page) */
.form-shell-booking { grid-template-columns: 1fr 400px; align-items: stretch; }
/* Keep the quote form the same height as the booking calendar, with its buttons at the bottom */
.form-shell-booking .form-card { display: flex; flex-direction: column; }
.form-shell-booking .form-card .form-nav { margin-top: auto; padding-top: 28px; }
.form-shell-booking .form-card fieldset:not([hidden]) { margin-bottom: 8px; }
@media (max-width: 1060px) { .form-shell-booking { grid-template-columns: 1fr; } }
.aside-card.booking { position: static; padding: 28px 20px 20px; }
.aside-card.booking h3, .aside-card.booking > p { padding: 0 8px; }
.calendly-box { background: #fff; border-radius: 14px; overflow: hidden; min-height: 600px; margin-top: 18px; }
.calendly-box .calendly-inline-widget { min-width: 300px; height: 600px; }
.calendly-loading { color: var(--muted); text-align: center; padding: 120px 20px; margin: 0; }

/* ---------- Mobile hardening ---------- */
/* Grid/flex children default to min-width:auto, which lets wide content (big stat numbers) stretch the page */
.grid > *, .split > *, .hero-grid > *, .form-shell > *, .map-wrap > *, .steps > *, .foot-grid > * { min-width: 0; }
.big-stats .card strong { font-size: clamp(1.9rem, 7.5vw, 2.6rem); }
@media (max-width: 520px) {
  .big-stats { gap: 12px; }
  .big-stats .card { padding: 20px 16px; }
  .stat strong { font-size: 1.7rem; }
  .hero-actions .btn { flex: 1 1 auto; }
  .cta-band .btns .btn { flex: 1 1 100%; }
  .step-stage { padding: 28px 20px; min-height: 0; }
  .form-card .choice-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
}
/* Comfortable tap targets for footer and sidebar links on touch screens */
@media (max-width: 900px) {
  .site-footer ul { gap: 2px; }
  .site-footer li a, .site-footer p a, .site-footer address a { display: inline-block; padding: 10px 0; }
  .aside-card .contact-line a { display: inline-block; padding: 8px 0; }
}
/* Calendly: let it shrink on small phones instead of forcing 300px */
@media (max-width: 520px) {
  .aside-card.booking { padding: 24px 10px 10px; }
  .calendly-box .calendly-inline-widget { min-width: 0; width: 100%; }
}
fieldset { min-width: 0; }
.choice span { overflow-wrap: normal; }
@media (max-width: 520px) { .form-card .choice span { padding: 12px; font-size: .95rem; } .form-card .choice-grid { gap: 8px; } }
@media (max-width: 900px) {
  .logo { padding: 6px 0; }
  .foot-bottom a, address a, .loc-card address a { display: inline-block; padding: 10px 0; }
  .foot-bottom { line-height: 1.4; }
}
@media (max-width: 360px) {
  .form-card .choice-grid { grid-template-columns: 1fr; }
}
@media (pointer: coarse) { .nav > a, .nav .dd > button { padding: 13px 12px; } }
.nav > a.btn-primary, .nav > a.btn-primary:hover { background: var(--accent); color: #fff; justify-content: center; }
.nav > a.btn-primary:hover { background: var(--accent-2); }

/* Legal pages */
.legal { font-size: 1rem; }
.legal h2 { font-size: 1.45rem; margin-top: 2em; }
.legal h3 { font-size: 1.15rem; margin-top: 1.6em; }
.legal h4 { font-size: 1rem; margin-top: 1.4em; }
.legal p, .legal li { color: var(--ink-2); overflow-wrap: anywhere; }
