/* ══════════════════════════════════════════════════════════════════════════
   BORDERLOCKER.COM v4.0 — OBSIDIAN LUXE (DARK) & PORCELAIN PEARL LUXE (LIGHT)
   MOBILE-CENTRIC · ROYAL SAPPHIRE · SATIN CHAMPAGNE GOLD · LUMINOUS EMERALD
   ══════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root,
[data-theme="dark"] {
  --bg: #06080F;
  --bg-alt: #0B101D;
  --surface: rgba(15, 21, 37, 0.84);
  --surface-solid: #0F1525;
  --surface-2: #172038;
  --surface-glass: rgba(6, 8, 15, 0.86);
  --fg: #F8FAFC;
  --fg-2: #94A3B8;
  --fg-3: #64748B;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.30);
  --accent: #2563EB;
  --accent-fg: #FFFFFF;
  --brand-grad: linear-gradient(115deg, #38BDF8 0%, #60A5FA 48%, #E6C07B 100%);
  --btn-grad: linear-gradient(135deg, #1D4ED8 0%, #2563EB 52%, #0EA5E9 100%);
  --champagne: #E6C07B;
  --champagne-bg: rgba(230, 192, 123, 0.13);
  --signal: #38BDF8;
  --signal-bg: rgba(56, 189, 248, 0.13);
  --ok: #10B981;
  --ok-bg: rgba(16, 185, 129, 0.13);
  --warn: #F59E0B;
  --warn-bg: rgba(245, 158, 11, 0.13);
  --danger: #F43F5E;
  --danger-bg: rgba(244, 63, 94, 0.14);
  --grid-line: rgba(148, 163, 184, 0.055);
  --hero-mesh-1: radial-gradient(ellipse 65% 58% at 15% 14%, rgba(37, 99, 235, 0.22), transparent 64%);
  --hero-mesh-2: radial-gradient(ellipse 52% 50% at 86% 24%, rgba(230, 192, 123, 0.13), transparent 62%);
  --hero-mesh-3: radial-gradient(ellipse 46% 42% at 55% 92%, rgba(16, 185, 129, 0.10), transparent 60%);
  --wa: #16A34A;
  --shadow: 0 18px 46px rgba(2, 6, 23, 0.65);
  --card-inset: inset 0 1px 0 rgba(255, 255, 255, 0.06);

  /* Semantic aliases */
  --ink: var(--bg-alt);
  --ink2: var(--bg-alt);
  --ink3: var(--surface-solid);
  --card: var(--surface-solid);
  --card2: var(--surface-2);
  --white: var(--fg);
  --text: var(--fg);
  --text2: var(--fg-2);
  --text3: var(--fg-3);
  --gold: var(--champagne);
  --gold2: var(--champagne);
  --mint: var(--ok);
  --indigo: var(--signal);
  --indigo2: var(--signal);
  --fdisplay: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --fserif: var(--fdisplay);
  --fsans: 'Inter', system-ui, -apple-system, sans-serif;
  --fmono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --r8: 8px;
  --r10: 10px;
  --r14: 14px;
  --r18: 16px;
}

[data-theme="light"] {
  --bg: #FAFBFD;
  --bg-alt: #F1F5FA;
  --surface: #FFFFFF;
  --surface-solid: #FFFFFF;
  --surface-2: #E8EFF8;
  --surface-glass: rgba(250, 251, 253, 0.88);
  --fg: #0B1120;
  --fg-2: #475569;
  --fg-3: #64748B;
  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.22);
  --accent: #1D4ED8;
  --accent-fg: #FFFFFF;
  --brand-grad: linear-gradient(115deg, #1D4ED8 0%, #0284C7 55%, #9A631B 100%);
  --btn-grad: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 55%, #0284C7 100%);
  --champagne: #9A631B;
  --champagne-bg: rgba(180, 123, 43, 0.11);
  --signal: #1D4ED8;
  --signal-bg: rgba(29, 78, 216, 0.09);
  --ok: #059669;
  --ok-bg: rgba(5, 150, 105, 0.10);
  --warn: #B45309;
  --warn-bg: rgba(180, 83, 9, 0.10);
  --danger: #E11D48;
  --danger-bg: rgba(225, 29, 72, 0.10);
  --grid-line: rgba(15, 23, 42, 0.045);
  --hero-mesh-1: radial-gradient(ellipse 65% 58% at 15% 14%, rgba(37, 99, 235, 0.085), transparent 64%);
  --hero-mesh-2: radial-gradient(ellipse 52% 50% at 86% 24%, rgba(212, 155, 75, 0.09), transparent 62%);
  --hero-mesh-3: radial-gradient(ellipse 46% 42% at 55% 92%, rgba(5, 150, 105, 0.06), transparent 60%);
  --wa: #15803D;
  --shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
  --card-inset: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html { scroll-behavior: smooth; font-size: 16px; max-width: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  font-family: var(--fsans);
  font-size: 13.5px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--fg);
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  transition: background-color 0.15s ease, color 0.15s ease;
}

::selection { background: var(--accent); color: #FFFFFF; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }

button, input, select, textarea { font-family: inherit; color: inherit; border: none; outline: none; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
code, .mono { font-family: var(--fmono); }
.tnum { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2.5px; width: 0%; z-index: 1200;
  background: var(--brand-grad);
}

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 14px;
}

/* ─── TYPOGRAPHY ─── */
.hero-h1 {
  font-family: var(--fdisplay);
  font-size: clamp(30px, 8.2vw, 62px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--fg);
}
.hero-h1 span, .page-h1 span {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-h1 {
  font-family: var(--fdisplay);
  font-size: clamp(23px, 6vw, 42px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--fg);
}
.sec-h2 {
  font-family: var(--fdisplay);
  font-size: clamp(19px, 4.6vw, 30px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--fg);
}
.card-h3 {
  font-family: var(--fdisplay);
  font-size: clamp(15px, 3.8vw, 18px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fmono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--champagne); margin-bottom: 8px;
}
.eyebrow::before { content: ''; width: 16px; height: 2px; background: var(--brand-grad); border-radius: 2px; }
.lead { font-size: clamp(13.5px, 3.2vw, 16px); color: var(--fg-2); max-width: 600px; line-height: 1.55; }
.grad-gold { color: var(--champagne); }
.grad-mint { color: var(--ok); }
.italic { font-style: normal; }

/* ─── PILLS & SIGNALS ─── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--fmono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.04em; white-space: nowrap;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--fg);
}
.pill-mint { background: var(--ok-bg); border-color: rgba(16, 185, 129, 0.32); color: var(--ok); }
.pill-gold { background: var(--champagne-bg); border-color: rgba(230, 192, 123, 0.36); color: var(--champagne); }
.pill-indigo { background: var(--signal-bg); border-color: rgba(56, 189, 248, 0.34); color: var(--signal); }
.pill-rose { background: var(--danger-bg); border-color: rgba(244, 63, 94, 0.36); color: var(--danger); }

.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65);
  animation: pulseDot 2.2s infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
  50% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}

/* ─── BUTTONS & INPUTS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 40px; padding: 0 16px; border-radius: var(--r10);
  font-family: var(--fsans); font-size: 13px; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: transform 0.16s var(--ease), box-shadow 0.16s ease, opacity 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }
.btn-sm { height: 34px; padding: 0 12px; font-size: 12px; border-radius: var(--r8); }
.btn-lg { height: 44px; padding: 0 20px; font-size: 14px; }

.btn-primary, .btn-gold, .btn-indigo {
  background: var(--btn-grad);
  color: #FFFFFF;
  border: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 22px rgba(29, 78, 216, 0.28);
}
.btn-primary:hover, .btn-gold:hover, .btn-indigo:hover { opacity: 0.93; }
.btn-mint {
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  border: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 8px 20px rgba(16, 185, 129, 0.24);
}
.btn-ghost, .btn-outline {
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  color: var(--fg);
}
.btn-ghost:hover, .btn-outline:hover { background: var(--surface-2); border-color: var(--signal); }
.btn-wa {
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: #FFFFFF; border: none;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.24);
}

.field-label {
  display: block; font-family: var(--fmono); font-size: 10.5px; font-weight: 600;
  color: var(--fg-2); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px;
}
.field-input, .field-select, .field-textarea {
  width: 100%; height: 40px; padding: 0 12px; border-radius: var(--r10);
  background: var(--bg-alt); border: 1px solid var(--border-strong);
  font-size: 13.5px; color: var(--fg);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field-textarea { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; }
.field-input:focus, .field-select:focus, .field-textarea:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-bg);
}
.field-input::placeholder, .field-textarea::placeholder { color: var(--fg-3); }

/* ─── LUXURY GLASS CARDS & HUD CORNERS ─── */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r14);
  padding: 14px;
  box-shadow: var(--card-inset);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform 0.2s var(--ease), border-color 0.2s ease, box-shadow 0.2s ease;
}
[data-theme="light"] .card { box-shadow: 0 8px 26px rgba(15, 23, 42, 0.055), var(--card-inset); }
.card-hover:hover { transform: translateY(-2px); border-color: rgba(56, 189, 248, 0.42); }
.card-highlight { border-color: rgba(56, 189, 248, 0.32); }
.card-mint { border-color: rgba(16, 185, 129, 0.32); }

.card-highlight::before, .hud-card::before {
  content: ''; position: absolute; top: -1px; left: -1px; width: 11px; height: 11px;
  border-top: 2px solid var(--signal); border-left: 2px solid var(--signal);
  border-top-left-radius: 6px; pointer-events: none;
}
.card-highlight::after, .hud-card::after {
  content: ''; position: absolute; bottom: -1px; right: -1px; width: 11px; height: 11px;
  border-bottom: 2px solid var(--champagne); border-right: 2px solid var(--champagne);
  border-bottom-right-radius: 6px; pointer-events: none;
}

/* ─── COMPACT NAVBAR & THEME SWITCHER ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: 52px; z-index: 900;
  display: flex; align-items: center;
  background: var(--surface-glass);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 9px; flex-shrink: 0; color: var(--fg); }
.brand-name {
  font-family: var(--fdisplay); font-size: 16px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg);
}
.brand-name span {
  background: var(--brand-grad);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.nav-links { display: none; align-items: center; gap: 4px; }
.nav-link, .nav-dd-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 11px; border-radius: var(--r8);
  font-size: 13px; font-weight: 600; color: var(--fg-2);
  cursor: pointer; white-space: nowrap; transition: 0.16s ease;
}
.nav-link:hover, .nav-dd-btn:hover, .nav-dd.open .nav-dd-btn, .nav-dd.is-active .nav-dd-btn, .nav-link.is-active {
  color: var(--fg); background: var(--surface-2);
}
.chev { font-size: 10px; opacity: 0.7; transition: transform 0.2s ease; }
.nav-dd.open .chev { transform: rotate(180deg); }

.nav-dd { position: relative; }
.nav-dd-menu {
  position: absolute; top: calc(100% + 10px); left: 0; width: 310px;
  padding: 6px; border-radius: var(--r14);
  background: var(--surface-solid); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.18s var(--ease), visibility 0.16s;
}
.nav-dd-menu::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-dd:hover .nav-dd-menu, .nav-dd.open .nav-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dd-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border-radius: 9px; transition: background 0.14s ease; }
.dd-item:hover { background: var(--signal-bg); }
.dd-ico {
  width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  color: var(--signal); flex-shrink: 0; margin-top: 1px;
}
.dd-item strong { display: block; font-size: 12.5px; color: var(--fg); }
.dd-item small { display: block; font-size: 11.5px; color: var(--fg-2); line-height: 1.3; }

.nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav-account-btn, .nav-quote-btn { display: none; }

.theme-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 32px; padding: 0 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border-strong);
  color: var(--fg); font-family: var(--fmono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; cursor: pointer;
}
.theme-btn svg { color: var(--champagne); }
.theme-btn:hover { border-color: var(--signal); }

.hamburger {
  width: 34px; height: 34px; border-radius: var(--r8);
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
}
.hamburger span { width: 16px; height: 1.6px; background: var(--fg); border-radius: 2px; transition: 0.2s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(3.3px) rotate(45deg); }
.hamburger.open span:nth-child(2) { transform: translateY(-3.3px) rotate(-45deg); }

/* ─── MOBILE DRAWER & NATIVE APP BOTTOM DOCK ─── */
.drawer {
  position: fixed; inset: 52px 0 0 0; z-index: 880;
  background: var(--bg); padding: 16px 14px 96px; overflow-y: auto;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  display: flex; flex-direction: column; gap: 16px;
}
.drawer.open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.drawer-label {
  font-family: var(--fmono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--champagne); margin-bottom: 4px;
}
.drawer-group a {
  display: flex; justify-content: space-between; padding: 10px 0;
  font-size: 14px; font-weight: 600; color: var(--fg); border-bottom: 1px solid var(--border);
}

.mobile-dock {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 860;
  height: calc(58px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--surface-glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
}
.dock-item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-family: var(--fmono); font-size: 10px; font-weight: 600; color: var(--fg-2); padding: 6px 2px;
}
.dock-item.is-active {
  color: var(--signal);
  box-shadow: inset 0 2px 0 var(--signal);
}
.dock-item.is-active svg { color: var(--signal); }

/* ─── SECTIONS & AURORA GRID HERO ─── */
.main-wrap { padding-top: 52px; }
.sec { padding: 28px 0; }
.sec-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.sec-head { max-width: 680px; margin-bottom: 18px; }

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 22px 0 18px;
  background:
    var(--hero-mesh-1),
    var(--hero-mesh-2),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px),
    var(--bg-alt);
  background-size: 100% 100%, 100% 100%, 32px 32px, 32px 32px, 100% 100%;
  border-bottom: 1px solid var(--border);
}

.home-hero {
  position: relative;
  padding: 20px 0 24px;
  overflow: hidden;
  background:
    var(--hero-mesh-1),
    var(--hero-mesh-2),
    var(--hero-mesh-3),
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px),
    var(--bg);
  background-size: 100% 100%, 100% 100%, 100% 100%, 32px 32px, 32px 32px, 100% 100%;
}
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0.82; }
.home-hero-inner { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; text-align: left; }

.live-telemetry {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 5px 11px; border-radius: 999px;
  background: var(--surface); border: 1px solid rgba(56, 189, 248, 0.3);
  font-family: var(--fmono); font-size: 10.5px; color: var(--fg);
  box-shadow: var(--card-inset);
}

/* Single-Row Inline Capsule Bar — Compact EVEN on Mobile */
.qq-form {
  margin: 14px 0 0; max-width: 680px; padding: 4px; border-radius: 12px;
  background: var(--surface-solid); border: 1px solid var(--border-strong);
  box-shadow: 0 10px 30px rgba(29, 78, 216, 0.14);
  display: flex; flex-direction: row; align-items: center; gap: 6px;
}
.qq-form:focus-within { border-color: var(--signal); box-shadow: 0 0 0 3px var(--signal-bg); }
.qq-form input { flex: 1; min-width: 0; height: 38px; padding: 0 10px; font-size: 13px; color: var(--fg); }
.qq-form input::placeholder { color: var(--fg-3); }
.qq-form button { height: 38px; padding: 0 14px; font-size: 12.5px; flex-shrink: 0; }

/* Mobile Horizontal Swipe Rail */
.snap-row {
  display: flex; gap: 8px; overflow-x: auto; max-width: 100%; min-width: 0; padding-bottom: 2px;
  justify-content: flex-start;
  scrollbar-width: none; -ms-overflow-style: none; scroll-snap-type: x mandatory;
}
.snap-row::-webkit-scrollbar { display: none; }
.snap-row > * { scroll-snap-align: start; flex-shrink: 0; }

.bento-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.bento-box {
  padding: 11px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); min-width: 0;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform 0.16s var(--ease), border-color 0.16s ease;
}
.bento-box:hover { transform: translateY(-1px); }
.bento-m1 {
  border-color: rgba(16, 185, 129, 0.34);
  background: linear-gradient(145deg, var(--ok-bg), var(--surface) 72%);
}
.bento-m1 strong { color: var(--ok) !important; }
.bento-m2 {
  border-color: rgba(56, 189, 248, 0.34);
  background: linear-gradient(145deg, var(--signal-bg), var(--surface) 72%);
}
.bento-m2 strong { color: var(--signal) !important; }
.bento-box strong { display: block; font-family: var(--fdisplay); font-size: 17px; color: var(--fg); margin-top: 2px; }
.bento-box span { display: block; font-family: var(--fmono); font-size: 10px; color: var(--fg-2); }

/* ─── GRIDS & TABS ─── */
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 12px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 10px; }
.grid-4.compact-2 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.container > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .oracle-shell > *, .card { min-width: 0; max-width: 100%; }

.tab-bar {
  display: inline-flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; min-width: 0;
  gap: 4px; padding: 4px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--border); scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 7px 12px; border-radius: 8px; white-space: nowrap;
  font-size: 12px; font-weight: 700; color: var(--fg-2); cursor: pointer; transition: border-color 0.12s ease;
}
.tab-btn:hover { color: var(--fg); }
.tab-btn.active {
  background: var(--btn-grad); color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.25);
}

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn {
  padding: 7px 11px; border-radius: var(--r8); font-size: 12px; font-weight: 600;
  background: var(--surface-solid); border: 1px solid var(--border); color: var(--fg); cursor: pointer; transition: border-color 0.12s ease;
}
.chip-btn:hover { border-color: var(--signal); }
.chip-btn.active {
  background: var(--btn-grad); border-color: transparent; color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.22);
}
.chip-sm { padding: 4px 9px; font-size: 11px; }

.check-list { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--fg); }
.check-list li { display: flex; align-items: flex-start; gap: 8px; }

/* ─── CALCULATOR STUDIO ─── */
.oracle-shell { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
.seg-card {
  padding: 10px 12px; border-radius: var(--r10); background: var(--bg-alt);
  border: 1px solid var(--border); text-align: left; cursor: pointer; transition: border-color 0.12s ease;
}
.seg-card:hover { border-color: var(--signal); }
.seg-card.active {
  background: var(--btn-grad); border-color: transparent; color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 6px 18px rgba(29, 78, 216, 0.25);
}
.seg-title { font-size: 13px; font-weight: 700; color: var(--fg); }
.seg-sub { font-size: 11.5px; color: var(--fg-2); margin-top: 2px; }
.seg-card.active .seg-title { color: #FFFFFF; }
.seg-card.active .seg-sub { color: rgba(255, 255, 255, 0.88); }

.vol-box {
  padding: 10px 12px; border-radius: var(--r10);
  background: var(--bg-alt); border: 1px solid var(--border);
}
.vol-box summary {
  cursor: pointer; font-family: var(--fmono); font-size: 11.5px; font-weight: 600;
  color: var(--fg); list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.vol-box summary::after { content: '+'; font-size: 15px; color: var(--signal); }
.vol-box[open] summary::after { content: '−'; }

.addon-row {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
  border-radius: var(--r10); background: var(--bg-alt); border: 1px solid var(--border);
  font-size: 12.5px; cursor: pointer;
}
.addon-row.disabled { opacity: 0.45; cursor: not-allowed; }
.addon-row input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }

.split-box { padding: 12px; border-radius: var(--r10); background: var(--bg-alt); border: 1px solid var(--border); }
.split-box.delhi {
  border-color: rgba(230, 192, 123, 0.42);
  background: linear-gradient(155deg, var(--champagne-bg), var(--bg-alt) 78%);
}
.split-val { font-family: var(--fdisplay); font-size: 24px; font-weight: 700; color: var(--fg); line-height: 1.1; margin: 3px 0; }
.split-box.delhi .split-val { color: var(--champagne); }

.guard-banner {
  padding: 10px 12px; border-radius: var(--r10); font-size: 12.5px; font-weight: 600;
  border: 1px solid rgba(16, 185, 129, 0.32); background: var(--ok-bg); color: var(--ok);
}
.guard-banner.amber { background: var(--warn-bg); border-color: rgba(245, 158, 11, 0.34); color: var(--warn); }
.guard-banner.red { background: var(--danger-bg); border-color: rgba(244, 63, 94, 0.36); color: var(--danger); }

/* ─── TABLES ─── */
.table-wrap { overflow-x: auto; border-radius: var(--r14); border: 1px solid var(--border); background: var(--surface-solid); }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 580px; }
.data-table th, .data-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th {
  font-family: var(--fmono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--fg-2); background: var(--bg-alt);
}
.data-table th.us-col { color: var(--fg); border-bottom: 2px solid var(--champagne); background: var(--signal-bg); }
.data-table td.us-col { color: var(--signal); font-weight: 700; background: var(--signal-bg); }
.data-table tr.active-row td { background: var(--btn-grad); color: #FFFFFF; font-weight: 700; }

/* ─── TRACKER & FAQ ─── */
.stage-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; margin-top: 12px; }
.stage-dot {
  padding: 7px 6px; border-radius: 8px; text-align: center;
  font-family: var(--fmono); font-size: 10.5px; font-weight: 700;
  background: var(--bg-alt); border: 1px solid var(--border); color: var(--fg-3);
}
.stage-dot.done { background: var(--ok-bg); border-color: rgba(16, 185, 129, 0.34); color: var(--ok); }
.stage-dot.current { background: var(--champagne-bg); border-color: var(--champagne); color: var(--champagne); }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; padding: 14px 0; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; text-align: left;
  font-size: 14px; font-weight: 700; color: var(--fg); cursor: pointer;
}
.faq-plus {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--signal); font-size: 15px; flex-shrink: 0; transition: 0.18s ease;
}
.faq-item.open .faq-plus { transform: rotate(45deg); background: var(--btn-grad); color: #FFFFFF; border-color: transparent; }
.faq-a { max-height: 0; overflow: hidden; font-size: 13px; color: var(--fg-2); line-height: 1.65; transition: max-height 0.28s ease, padding-bottom 0.28s ease; }
.faq-item.open .faq-a { max-height: 360px; padding-bottom: 14px; }

.prose-card { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; font-size: 13.5px; color: var(--fg-2); line-height: 1.68; }
.prose-card h2 { font-family: var(--fdisplay); font-size: 18px; color: var(--fg); margin-top: 6px; }

/* ─── BREADCRUMBS & AEO DIRECT ANSWER BOX ─── */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  font-family: var(--fmono); font-size: 11px; color: var(--fg-2); margin-bottom: 10px;
}
.breadcrumb a { color: var(--signal); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .bc-sep { color: var(--fg-3); }
.answer-box {
  padding: 14px 16px; border-radius: var(--r14);
  background: linear-gradient(155deg, var(--signal-bg), var(--surface) 70%);
  border: 1px solid rgba(56, 189, 248, 0.34);
  box-shadow: var(--card-inset);
}
.answer-box-label {
  font-family: var(--fmono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--champagne); margin-bottom: 6px;
}
.answer-box p { font-size: 13.5px; line-height: 1.62; color: var(--fg); }

/* ─── FOOTER ─── */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 34px 0 88px; }
.footer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.footer-brand { grid-column: 1 / -1; }
.footer-desc { font-size: 12.5px; color: var(--fg-2); max-width: 360px; }
.footer-hubs { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; font-family: var(--fmono); font-size: 11px; color: var(--fg-2); }
.footer-col { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--fg-2); }
.footer-col h4 { font-family: var(--fmono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--champagne); margin-bottom: 2px; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  font-family: var(--fmono); font-size: 11px; color: var(--fg-3);
}

/* ─── FLOATING FUTURISTIC AI ORB, MOBILE SHEET & TOAST ─── */
.ai-fab {
  position: fixed; right: 14px; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); z-index: 890;
  display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--btn-grad); color: #FFFFFF; border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--fmono); font-size: 11px; font-weight: 700;
  box-shadow: 0 10px 28px rgba(29, 78, 216, 0.38); cursor: pointer;
}
.ai-drawer {
  position: fixed; inset: auto 8px calc(66px + env(safe-area-inset-bottom, 0px)) 8px;
  max-height: 70vh; z-index: 910;
  background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: var(--r18);
  box-shadow: var(--shadow); display: none; flex-direction: column; overflow: hidden;
}
.ai-drawer.open { display: flex; }
.ai-head { padding: 12px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.ai-chips { padding: 8px 10px; border-bottom: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 6px; background: var(--surface-solid); }
.ai-body { padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ai-msg { padding: 9px 11px; border-radius: 10px; font-size: 12.5px; line-height: 1.5; max-width: 90%; }
.ai-msg.bot { background: var(--bg-alt); border: 1px solid var(--border); align-self: flex-start; color: var(--fg); }
.ai-msg.user { background: var(--btn-grad); align-self: flex-end; color: #FFFFFF; }
.ai-foot { padding: 9px 10px; border-top: 1px solid var(--border); background: var(--bg-alt); display: flex; gap: 6px; }

.toast {
  position: fixed; top: 64px; right: 14px; z-index: 1100;
  padding: 9px 14px; border-radius: 10px; background: var(--btn-grad); color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25); font-size: 12.5px; font-weight: 700;
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: 0.2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE SCALE-UP (TABLET ≥768PX & DESKTOP ≥960PX) ─── */
@media (min-width: 768px) {
  body { font-size: 14.5px; }
  .container { padding: 0 24px; }
  .sec { padding: 48px 0; }
  .page-hero { padding: 38px 0 28px; }
  .home-hero { padding: 48px 0 44px; }
  .home-hero-inner { text-align: center; }
  .home-hero .snap-row { justify-content: center; }
  .qq-form { margin: 22px auto 0; padding: 5px; }
  .qq-form input { height: 42px; font-size: 14px; }
  .qq-form button { height: 42px; padding: 0 18px; font-size: 13px; }
  .bento-2 { max-width: 680px; margin: 16px auto 0; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .stage-bar { grid-template-columns: repeat(7, 1fr); }
  .nav-account-btn, .nav-quote-btn { display: inline-flex; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .ai-drawer { inset: auto 20px 76px auto; width: 380px; max-height: 520px; }
}

@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .nav { height: 60px; }
  .main-wrap { padding-top: 60px; }
  .sec { padding: 62px 0; }
  .home-hero { padding: 64px 0 56px; }
  .page-hero { padding: 48px 0 34px; }
  .card { padding: 20px; }
  .hamburger, .mobile-dock { display: none !important; }
  .nav-links { display: flex; }
  .grid-4, .grid-4.compact-2 { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .oracle-shell { grid-template-columns: 1.15fr 0.85fr; gap: 20px; }
  .site-footer { padding: 48px 0 40px; }
  .ai-fab { right: 22px; bottom: 22px; }
  .ai-drawer { right: 22px; bottom: 72px; }
}
