@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Work+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Live Straticom AI Palette — Charcoal + Signature Ice/Light Blue */
  --charcoal-950: #0b1120;
  --charcoal: #0f172a;
  --charcoal-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;

  --sky: #82c0e8;
  --sky-bright: #a7d5f2;
  --sky-deep: #38bdf8;
  --sky-mid: #2b7bbb;
  --sky-soft: #eaf4fc;
  --sky-glow: rgba(130, 192, 232, 0.35);

  --blue: #1e3a8a;
  --blue-mid: #224099;
  --blue-dark: #172554;

  /* Surfaces & Borders */
  --bg: #f3f7fe;
  --surface: #ffffff;
  --surface-muted: #eef4fa;
  --surface-subtle: #f8fbff;
  --ink: #0f172a;
  --ink-soft: #334155;
  --ink-muted: #475569;
  --border: #dce6f2;
  --border-strong: #b8cbe0;

  /* Legacy variable aliases mapped to Straticom brand palette */
  --teal: #1e3a8a;
  --teal-dark: #172554;
  --teal-soft: #eaf4fc;
  --amber: #b45309;
  --amber-soft: #fef3c7;
  --crimson: #b91c1c;
  --crimson-soft: #fee2e2;
  --emerald: #047857;
  --emerald-soft: #e6f7f0;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(130, 192, 232, 0.14);
  --shadow-charcoal: 0 18px 42px rgba(11, 17, 32, 0.22), 0 0 0 1px rgba(130, 192, 232, 0.22);
  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  background:
    radial-gradient(ellipse 85% 42% at 50% -6%, rgba(130, 192, 232, 0.24), transparent 66%),
    linear-gradient(180deg, #f7faff 0%, var(--bg) 42%, #f8fbff 100%);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: var(--blue-mid);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

[hidden] {
  display: none !important;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ==================== HEADER & NAVIGATION (Live Straticom Frosted Topbar) ==================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.04);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--ink);
}

.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 196px;
  object-fit: contain;
}

.brand-logo-dark {
  display: block;
  height: 42px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
}

/* Fallback if brand-mark still exists anywhere */
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--charcoal-800) 0%, var(--charcoal) 100%);
  border: 1px solid rgba(130, 192, 232, 0.55);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--sky);
  letter-spacing: -0.03em;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.22);
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.mode-switch {
  display: inline-flex;
  background: var(--surface-muted);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  gap: 4px;
}

.mode-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mode-btn:hover {
  color: var(--ink);
  background: rgba(130, 192, 232, 0.16);
}

.mode-btn[aria-selected="true"] {
  background: var(--charcoal);
  color: var(--sky);
  border-color: rgba(130, 192, 232, 0.55);
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.22);
}

.badge-count {
  background: var(--sky);
  color: var(--charcoal);
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 999px;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.contact-chip {
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--surface);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.contact-chip:hover {
  background: var(--charcoal);
  color: var(--sky-bright);
  border-color: var(--sky);
}

/* Sonoma Vertical Navigation Strip */
.vertical-nav {
  background: rgba(243, 247, 254, 0.9);
  border-top: 1px solid var(--border);
}

.vertical-nav-bar,
.vertical-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.vertical-nav-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-right: 4px;
}

.vertical-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.vertical-nav-link:hover {
  color: var(--charcoal);
  background: var(--surface);
  border-color: var(--sky);
}

.vertical-nav-link.active,
.vertical-nav-link[aria-current="page"] {
  background: var(--charcoal);
  color: var(--sky);
  border-color: rgba(130, 192, 232, 0.55);
}

/* ==================== MAIN SHELL ==================== */
.shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 26px 24px 72px;
}

/* ==================== HERO BANNER (Signature Charcoal + Ice-Blue Frame) ==================== */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 18%, rgba(130, 192, 232, 0.22) 0%, transparent 46%),
    linear-gradient(140deg, #0b1120 0%, #142136 58%, #1a2d47 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(130, 192, 232, 0.32);
  padding: 34px 38px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-charcoal);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sky-bright);
  background: rgba(130, 192, 232, 0.12);
  border: 1px solid rgba(130, 192, 232, 0.32);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
  color: #ffffff;
}

.hero h1 em,
.hero h1 .hero-accent {
  font-style: italic;
  color: var(--sky);
}

.hero-copy {
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.6;
  max-width: 60ch;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--sky-bright);
  background: rgba(11, 17, 32, 0.72);
  border: 1px solid rgba(130, 192, 232, 0.38);
  padding: 6px 13px;
  border-radius: 999px;
}

/* Matches live Straticom AI dark slate stat tiles */
.hero-summary-card {
  background: linear-gradient(180deg, rgba(51, 65, 85, 0.56) 0%, rgba(15, 23, 42, 0.9) 100%);
  border: 1px solid rgba(130, 192, 232, 0.36);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 26px rgba(2, 6, 23, 0.32);
}

.hero-summary-label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--sky);
  font-weight: 700;
}

.hero-summary-value {
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 6px 0 4px;
}

.hero-summary-sub {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 16px;
}

.hero-summary-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(130, 192, 232, 0.22);
}

.hero-mini-label {
  font-size: 11px;
  color: var(--sky-bright);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.hero-mini-val {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
}

/* ==================== SUB-TABS ==================== */
.subnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  align-items: center;
  justify-content: space-between;
}

.tab-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-soft);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.16s ease;
}

.tab-btn:hover {
  border-color: var(--sky-mid);
  background: var(--sky-soft);
  color: var(--charcoal);
}

.tab-btn[aria-selected="true"] {
  background: linear-gradient(180deg, #162238 0%, #0f172a 100%);
  border-color: rgba(130, 192, 232, 0.65);
  color: var(--sky);
  box-shadow: 0 4px 14px rgba(11, 17, 32, 0.24), 0 0 0 1px rgba(130, 192, 232, 0.22);
}

/* ==================== SIGNATURE CHARCOAL + LIGHT-BLUE BUTTONS (Live straticom.ai) ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Signature live straticom.ai pill CTA: deep charcoal bg + crisp #82C0E8 light-blue text (9.5:1 AAA) */
.btn-primary,
.btn-charcoal {
  background: linear-gradient(180deg, #162238 0%, #0f172a 100%);
  color: var(--sky);
  border-color: rgba(130, 192, 232, 0.38);
  box-shadow: 0 4px 14px rgba(11, 17, 32, 0.24), inset 0 1px 0 rgba(130, 192, 232, 0.14);
}

.btn-primary:hover,
.btn-charcoal:hover {
  background: var(--charcoal-950);
  color: var(--sky-bright);
  border-color: var(--sky);
  box-shadow: 0 6px 20px rgba(11, 17, 32, 0.3), 0 0 0 2px rgba(130, 192, 232, 0.26);
}

/* High-emphasis CTA: signature charcoal bg + luminous light-blue text + crisp #82C0E8 border & glow */
.btn-accent,
.btn-amber {
  background: linear-gradient(180deg, #162238 0%, #0b1120 100%);
  color: var(--sky-bright);
  border: 1.5px solid var(--sky);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(130, 192, 232, 0.26), 0 4px 12px rgba(11, 17, 32, 0.26);
}

.btn-accent:hover,
.btn-amber:hover {
  background: var(--charcoal-950);
  color: #c8e7fb;
  border-color: var(--sky-bright);
  box-shadow: 0 6px 22px rgba(130, 192, 232, 0.4), 0 0 0 2px rgba(130, 192, 232, 0.24);
}

/* Keep charcoal CTAs crisply framed with #82C0E8 border when placed inside dark charcoal sections */
.hero .btn-primary,
.hero .btn-charcoal,
.hero .btn-accent,
.hero .btn-amber,
.phone-stage .btn-primary,
.phone-stage .btn-charcoal,
.phone-stage .btn-accent,
.phone-stage .btn-amber,
.vertical-hero .btn-primary,
.vertical-hero .btn-charcoal,
.vertical-hero .btn-accent,
.vertical-hero .btn-amber,
.card-dark .btn-primary,
.card-dark .btn-charcoal,
.card-dark .btn-accent,
.card-dark .btn-amber,
.dark-cta-card .btn-primary,
.dark-cta-card .btn-charcoal,
.dark-cta-card .btn-accent,
.dark-cta-card .btn-amber,
.booking-embed-card .btn-primary,
.booking-embed-card .btn-charcoal,
.booking-embed-card .btn-accent,
.booking-embed-card .btn-amber,
.vertical-cta-band .btn-primary,
.vertical-cta-band .btn-charcoal,
.vertical-cta-band .btn-accent,
.vertical-cta-band .btn-amber {
  background: var(--charcoal-950);
  color: var(--sky-bright);
  border: 1.5px solid var(--sky);
  box-shadow: 0 4px 18px rgba(130, 192, 232, 0.26);
}

.hero .btn-primary:hover,
.hero .btn-charcoal:hover,
.hero .btn-accent:hover,
.hero .btn-amber:hover,
.phone-stage .btn-primary:hover,
.phone-stage .btn-charcoal:hover,
.phone-stage .btn-accent:hover,
.phone-stage .btn-amber:hover,
.vertical-hero .btn-primary:hover,
.vertical-hero .btn-charcoal:hover,
.vertical-hero .btn-accent:hover,
.vertical-hero .btn-amber:hover,
.card-dark .btn-primary:hover,
.card-dark .btn-charcoal:hover,
.card-dark .btn-accent:hover,
.card-dark .btn-amber:hover,
.dark-cta-card .btn-primary:hover,
.dark-cta-card .btn-charcoal:hover,
.dark-cta-card .btn-accent:hover,
.dark-cta-card .btn-amber:hover,
.booking-embed-card .btn-primary:hover,
.booking-embed-card .btn-charcoal:hover,
.booking-embed-card .btn-accent:hover,
.booking-embed-card .btn-amber:hover,
.vertical-cta-band .btn-primary:hover,
.vertical-cta-band .btn-charcoal:hover,
.vertical-cta-band .btn-accent:hover,
.vertical-cta-band .btn-amber:hover {
  background: #132038;
  color: #cde8fa;
  border-color: var(--sky-bright);
  box-shadow: 0 6px 22px rgba(130, 192, 232, 0.38);
}

.btn-secondary {
  background: var(--surface);
  color: var(--charcoal);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--sky-soft);
  border-color: var(--sky);
  color: var(--charcoal-950);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--sky-soft);
  color: var(--charcoal);
}

.btn-danger {
  background: var(--surface);
  color: var(--crimson);
  border-color: #fca5a5;
}

.btn-danger:hover {
  background: var(--crimson-soft);
  border-color: var(--crimson);
}

.btn-sm {
  padding: 7px 14px;
  font-size: 13px;
  border-radius: 999px;
}

.btn-pill {
  border-radius: 999px;
}

/* ==================== GRIDS & CARDS ==================== */
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr);
  gap: 22px;
  align-items: start;
}

.grid-equal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.card-dark {
  background: linear-gradient(150deg, #0b1120 0%, #16243a 100%);
  color: #f8fbff;
  border: 1px solid rgba(130, 192, 232, 0.34);
  box-shadow: var(--shadow-charcoal);
}

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-header > div:first-child {
  flex: 1 1 220px;
  min-width: 0;
}

.card-header > :last-child:not(:first-child) {
  flex-shrink: 0;
}

.card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.card-subtitle {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 3px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--charcoal);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.kpi-card:hover {
  border-top-color: var(--sky-mid);
  box-shadow: var(--shadow-md);
}

.kpi-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.kpi-value {
  font-size: 28px;
  font-weight: 800;
  margin-top: 6px;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

.kpi-foot {
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.kpi-value.teal,
.kpi-value.blue,
.kpi-value.sky {
  color: var(--blue);
}

.kpi-value.amber {
  color: var(--amber);
}

/* ==================== FORM CONTROLS ==================== */
.form-section {
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
}

.form-section:first-of-type {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.section-label {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-mid);
  margin-bottom: 12px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.field-val {
  font-weight: 700;
  color: var(--blue);
}

select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink);
  font-size: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

select:focus,
input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--blue-mid);
  outline-offset: 2px;
}

select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
textarea:focus {
  border-color: var(--sky-mid);
  box-shadow: 0 0 0 3px rgba(130, 192, 232, 0.28);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--charcoal);
  cursor: pointer;
}

.input-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.toggle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.check-row:hover {
  border-color: var(--sky);
  background: var(--sky-soft);
}

.check-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--charcoal);
  cursor: pointer;
}

/* ==================== BILL UPLOADER DROPZONE & BREAKDOWN ==================== */
.dropzone {
  position: relative;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--surface-subtle) 0%, var(--sky-soft) 100%);
  padding: 20px 18px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.dropzone:hover,
.dropzone.drag-over {
  border-color: var(--sky-mid);
  background: #e1effb;
  box-shadow: 0 0 0 4px rgba(130, 192, 232, 0.24);
}

.dropzone-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border-radius: 10px;
  background: var(--charcoal);
  color: var(--sky);
  border: 1px solid rgba(130, 192, 232, 0.45);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
}

.dropzone-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
}

.dropzone-sub {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 4px;
}

.sample-bills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.sample-bill-btn {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--charcoal);
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sample-bill-btn:hover {
  background: var(--charcoal);
  color: var(--sky-bright);
  border-color: var(--sky);
}

.bill-result-panel {
  margin-top: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--surface-subtle);
  border: 1px solid var(--sky);
}

.bill-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.bill-stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.bill-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.bill-stat-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--charcoal);
  margin-top: 3px;
}

.bill-stat-val.accent {
  color: var(--blue);
}

.fee-flag-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0 14px;
}

.fee-flag-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  padding: 7px 10px;
  border-radius: 8px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #78350f;
}

.bill-apply-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* ==================== CHARTS & SPEND BREAKDOWN ==================== */
.chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.chart-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 8px;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.legend-dot-primary {
  background: var(--charcoal);
  box-shadow: 0 0 0 2px var(--sky);
}

.legend-dot-secondary {
  background: var(--sky-mid);
}

.spend-row {
  margin-bottom: 14px;
}

.spend-row:last-child {
  margin-bottom: 0;
}

.spend-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.spend-label {
  font-weight: 600;
  color: var(--charcoal);
}

.spend-values {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--ink-muted);
}

.pill-save {
  background: var(--emerald-soft);
  color: var(--emerald);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}

.spend-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
}

.spend-bar-current {
  position: absolute;
  inset: 0 auto 0 0;
  background: #cbd5e1;
  border-radius: 999px;
}

.spend-bar-range {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--sky);
  border-radius: 999px;
}

.spend-bar-optimized {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--charcoal) 0%, var(--sky-mid) 100%);
  border-radius: 999px;
}

/* ==================== READINESS SCORE ==================== */
.score-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.score-ring {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  background: var(--charcoal);
  color: var(--sky-bright);
  border: 3px solid var(--sky);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.22);
  flex-shrink: 0;
}

.pillar-row {
  margin-bottom: 10px;
}

.pillar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--charcoal);
}

.pillar-bar-bg {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-muted);
  overflow: hidden;
}

.pillar-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--charcoal) 0%, var(--sky-mid) 100%);
  transition: width 0.25s ease;
}

/* ==================== STATUS PILLS & BADGES ==================== */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}

.tone-good {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.tone-warn {
  background: var(--amber-soft);
  color: var(--amber);
}

.tone-alert {
  background: var(--crimson-soft);
  color: var(--crimson);
}

.tone-teal,
.tone-blue,
.tone-sky {
  background: var(--sky-soft);
  color: var(--blue);
  border: 1px solid rgba(130, 192, 232, 0.55);
}

.tone-charcoal {
  background: var(--charcoal);
  color: var(--sky-bright);
  border: 1px solid rgba(130, 192, 232, 0.45);
}

/* ==================== PRIORITY LIST ==================== */
.priority-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.priority-item {
  border: 1px solid var(--border);
  border-left: 4px solid var(--sky-mid);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--surface-subtle);
}

.priority-item.high {
  border-left-color: var(--charcoal);
  background: #f5f9ff;
}

.priority-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--charcoal);
}

.priority-impact {
  color: var(--blue);
  font-weight: 600;
  font-size: 13px;
  margin-top: 4px;
}

.priority-time {
  color: var(--ink-muted);
  font-size: 12px;
  margin-top: 2px;
}

/* ==================== LIVE AI RECEPTIONIST SIMULATOR & AUDIO WAVEFORM ==================== */
.sim-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 22px;
  align-items: start;
}

.phone-stage {
  background:
    radial-gradient(circle at 88% 12%, rgba(130, 192, 232, 0.16), transparent 44%),
    linear-gradient(155deg, #0b1120 0%, #0f172a 58%, #16243a 100%);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(130, 192, 232, 0.34);
  padding: 22px;
  box-shadow: var(--shadow-charcoal);
}

.call-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(130, 192, 232, 0.22);
  margin-bottom: 14px;
}

.call-header > div:first-child {
  flex: 1 1 220px;
  min-width: 0;
}

.call-header > :last-child:not(:first-child) {
  flex-shrink: 0;
}

.live-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sky);
  margin-right: 7px;
  box-shadow: 0 0 0 4px rgba(130, 192, 232, 0.26);
}

/* Audio & Voice Controls Bar */
.voice-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.72);
  border: 1px solid rgba(130, 192, 232, 0.28);
}

.voice-btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.voice-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--sky-bright);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.waveform-bars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 6px;
}

.wave-bar {
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background: rgba(130, 192, 232, 0.45);
  transition: height 0.15s ease, background 0.15s ease;
}

.waveform-bars.active .wave-bar {
  background: var(--sky);
  animation: straticomWave 0.75s ease-in-out infinite;
}

.waveform-bars.active .wave-bar:nth-child(2) { animation-delay: 0.12s; }
.waveform-bars.active .wave-bar:nth-child(3) { animation-delay: 0.24s; }
.waveform-bars.active .wave-bar:nth-child(4) { animation-delay: 0.36s; }
.waveform-bars.active .wave-bar:nth-child(5) { animation-delay: 0.18s; }
.waveform-bars.active .wave-bar:nth-child(6) { animation-delay: 0.30s; }
.waveform-bars.active .wave-bar:nth-child(7) { animation-delay: 0.08s; }

@keyframes straticomWave {
  0%, 100% { height: 5px; opacity: 0.55; }
  50% { height: 20px; opacity: 1; }
}

.transcript-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 16px;
}

.bubble {
  max-width: 88%;
  padding: 12px 15px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.48;
}

.bubble-ai {
  align-self: flex-start;
  background: rgba(130, 192, 232, 0.15);
  border: 1px solid rgba(130, 192, 232, 0.38);
  color: #f0f8ff;
}

.bubble-caller {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.bubble-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  color: var(--sky);
}

.bubble-caller .bubble-tag {
  color: #e2e8f0;
}

.action-log {
  background: rgba(130, 192, 232, 0.08);
  border: 1px dashed rgba(130, 192, 232, 0.42);
  color: var(--sky-bright);
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 10px;
}

.prompt-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.prompt-choice {
  text-align: left;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(130, 192, 232, 0.26);
  color: #ffffff;
  padding: 11px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.prompt-choice:hover {
  background: rgba(130, 192, 232, 0.2);
  border-color: var(--sky);
}

.custom-prompt-form {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(130, 192, 232, 0.2);
}

.custom-prompt-input,
.custom-prompt-form input[type="text"] {
  flex: 1;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(130, 192, 232, 0.36);
  color: #ffffff;
  border-radius: 10px;
  padding: 10px 13px;
  font-size: 13.5px;
}

.custom-prompt-input::placeholder,
.custom-prompt-form input[type="text"]::placeholder {
  color: #94a3b8;
}

.sms-card {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  color: var(--ink);
}

.booking-card {
  background: var(--sky-soft);
  border: 1px solid var(--sky);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  color: var(--charcoal);
}

/* ==================== CAL.COM BOOKING WIDGET CARD ==================== */
.booking-embed-card {
  background:
    radial-gradient(circle at 92% 16%, rgba(130, 192, 232, 0.2), transparent 46%),
    linear-gradient(145deg, #0b1120 0%, #16243a 100%);
  color: #ffffff;
  border: 1px solid rgba(130, 192, 232, 0.38);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-charcoal);
}

.booking-embed-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.booking-embed-head > div:first-child {
  flex: 1 1 240px;
  min-width: 0;
}

.booking-embed-head > :last-child:not(:first-child) {
  flex-shrink: 0;
}

.booking-embed-card h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 400;
  color: #ffffff;
}

.booking-embed-card p {
  color: #cbd5e1;
  font-size: 14px;
  margin-top: 6px;
}

.booking-slot-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.booking-slot-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--sky-bright);
  background: rgba(130, 192, 232, 0.12);
  border: 1px solid rgba(130, 192, 232, 0.34);
  padding: 6px 12px;
  border-radius: 999px;
}

.booking-cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.audit-confirm-box {
  background: var(--sky-soft);
  border: 1px solid var(--sky);
  border-radius: var(--radius-md);
  padding: 18px;
  color: var(--charcoal);
}

/* ==================== ADVISOR HUB LOGIN GATE ==================== */
.auth-gate {
  display: grid;
  place-items: center;
  padding: 36px 16px;
}

.auth-gate-card {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-top: 4px solid var(--charcoal);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  box-shadow: var(--shadow-md);
}

.auth-gate-logo {
  display: block;
  height: 38px;
  width: auto;
  margin-bottom: 16px;
}

.auth-gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: var(--sky-soft);
  border: 1px solid rgba(130, 192, 232, 0.6);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.auth-hint {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.auth-error {
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: var(--crimson-soft);
  border: 1px solid #fca5a5;
  color: var(--crimson);
  font-size: 13px;
  font-weight: 600;
}

/* ==================== ADVISOR WORKSPACE & NOTIFICATIONS ==================== */
.advisor-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.client-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.client-item {
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.client-item:hover {
  border-color: var(--sky-mid);
  background: var(--surface-subtle);
}

.client-item.active {
  border-color: var(--charcoal);
  box-shadow: 0 0 0 2px rgba(130, 192, 232, 0.45);
  background: var(--sky-soft);
}

.client-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 4px;
}

.client-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--charcoal);
}

.client-meta {
  font-size: 12px;
  color: var(--ink-muted);
}

.client-upside {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  display: flex;
  justify-content: space-between;
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.notif-item {
  border: 1px solid var(--border);
  border-left: 3px solid var(--sky-mid);
  border-radius: 10px;
  padding: 11px 14px;
  background: var(--surface-subtle);
  font-size: 13px;
}

.notif-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-weight: 700;
  color: var(--charcoal);
}

.notif-meta {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 3px;
}

/* ==================== TABLES & MILESTONES ==================== */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  font-weight: 700;
  background: var(--surface-muted);
}

.milestone-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.milestone-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: all 0.15s ease;
}

.milestone-btn:hover {
  border-color: var(--sky-mid);
}

.milestone-btn.done {
  background: var(--charcoal);
  border-color: var(--sky);
  color: var(--sky-bright);
}

.milestone-btn.done .milestone-step {
  color: var(--sky);
}

.milestone-step {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.milestone-title {
  font-size: 13px;
  font-weight: 700;
}

/* ==================== SONOMA COUNTY VERTICAL LANDING PAGES ==================== */
.vertical-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 20%, rgba(130, 192, 232, 0.24) 0%, transparent 48%),
    linear-gradient(142deg, #0b1120 0%, #142237 58%, #1d3352 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(130, 192, 232, 0.34);
  padding: 40px 42px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-charcoal);
}

.vertical-hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 32px;
  align-items: center;
}

.vertical-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sky-bright);
  background: rgba(130, 192, 232, 0.14);
  border: 1px solid rgba(130, 192, 232, 0.34);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.vertical-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 400;
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: 14px;
}

.vertical-hero h1 em {
  font-style: italic;
  color: var(--sky);
}

.vertical-hero p {
  color: #cbd5e1;
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 58ch;
}

.vertical-calc-card {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid rgba(130, 192, 232, 0.55);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.34);
}

.vertical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.vertical-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.vertical-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.vertical-feature-card:hover {
  border-color: var(--sky);
  box-shadow: var(--shadow-md);
}

.vertical-proof-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  margin-bottom: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
}

.vertical-cta-band {
  background: linear-gradient(140deg, #0b1120 0%, #16243a 100%);
  color: #ffffff;
  border: 1px solid rgba(130, 192, 232, 0.36);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-charcoal);
}

/* ==================== MODALS & TOAST ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 17, 32, 0.62);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 60;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 28px 64px rgba(11, 17, 32, 0.34);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.modal-header > div:first-child {
  flex: 1 1 220px;
  min-width: 0;
}

.modal-header > :last-child:not(:first-child) {
  flex-shrink: 0;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  background: var(--charcoal);
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 14px 32px rgba(11, 17, 32, 0.34);
  border: 1px solid rgba(130, 192, 232, 0.35);
  border-left: 4px solid var(--sky);
}

.toast[hidden] {
  display: none !important;
}

/* ==================== FOOTER ==================== */
.footer {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 44px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-muted);
}

.footer a {
  color: var(--blue-mid);
  font-weight: 600;
  text-decoration: none;
}

.footer a:hover {
  color: var(--charcoal);
  text-decoration: underline;
}

/* ==================== EXECUTIVE PDF PROPOSAL DOCUMENT ==================== */
.proposal-doc {
  background: #ffffff;
  color: var(--ink);
}

.proposal-banner {
  background: linear-gradient(135deg, #0b1120 0%, #16243a 100%);
  color: #ffffff;
  padding: 22px 26px;
  border-radius: 12px;
  border-bottom: 3px solid var(--sky);
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.proposal-banner > div:first-child {
  flex: 1 1 240px;
  min-width: 0;
}

.proposal-banner > :last-child:not(:first-child) {
  flex-shrink: 0;
}

.proposal-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.proposal-kpi {
  border: 1px solid var(--border);
  border-top: 3px solid var(--sky-mid);
  border-radius: 10px;
  padding: 14px;
  background: var(--surface-subtle);
}

/* ==================== WEBSITE EMBED & CHATBOT HANDOFF SNIPPETS ==================== */
.snippet-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.snippet-card {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.snippet-list .snippet-card {
  margin-bottom: 0;
}

.snippet-card:last-child {
  margin-bottom: 0;
}

.snippet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.snippet-header > div:first-child {
  flex: 1 1 200px;
  min-width: 0;
}

.snippet-header > :last-child:not(:first-child) {
  flex-shrink: 0;
}

.snippet-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--charcoal);
}

.snippet-desc,
.snippet-sub {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 2px;
}

.snippet-code {
  display: block;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--charcoal);
  color: #e2e8f0;
  border: 1px solid rgba(130, 192, 232, 0.34);
  border-left: 3px solid var(--sky);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 12px;
  line-height: 1.55;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.snippet-code::selection {
  background: rgba(130, 192, 232, 0.32);
  color: #ffffff;
}

.snippet-code strong,
.snippet-code .snippet-accent {
  color: var(--sky-bright);
  font-weight: 600;
}

/* ==================== ACCURACY, SCENARIO TOGGLE & PUBLISHED SOURCES ==================== */
.disclaimer-note {
  background: linear-gradient(180deg, #f6faff 0%, var(--sky-soft) 100%);
  border: 1px solid rgba(130, 192, 232, 0.55);
  border-left: 3.5px solid var(--sky-mid);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.disclaimer-note strong {
  color: var(--charcoal);
}

.hero-disclaimer,
.disclaimer-note-dark {
  margin-top: 12px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(130, 192, 232, 0.09);
  border: 1px solid rgba(130, 192, 232, 0.24);
  font-size: 11.5px;
  line-height: 1.45;
  color: #cbd5e1;
}

.scenario-toggle {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
}

.scenario-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-soft);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.scenario-btn:hover {
  color: var(--charcoal);
  background: rgba(130, 192, 232, 0.18);
}

.scenario-btn.active,
.scenario-btn[aria-pressed="true"],
.scenario-btn[aria-selected="true"] {
  background: var(--charcoal);
  color: var(--sky);
  border-color: rgba(130, 192, 232, 0.6);
  box-shadow: 0 2px 10px rgba(11, 17, 32, 0.22);
}

.sources-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--sky-mid);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.assumptions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.assumption-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 999px;
}

.source-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 12px 0;
}

.source-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--surface-subtle);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.source-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--blue);
  background: var(--sky-soft);
  border: 1px solid rgba(130, 192, 232, 0.6);
  padding: 2px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.source-stat {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.48;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-mid);
  text-decoration: none;
}

.source-link:hover {
  color: var(--charcoal);
  text-decoration: underline;
}

.legend-dot-corridor {
  background: rgba(130, 192, 232, 0.55);
  border: 1.5px solid var(--sky-mid);
}

.pill-save {
  white-space: nowrap;
}

/* ==================== EMBED / CHATBOT WIDGET MODE (?embed=true) ==================== */
body.embed-mode {
  background: #ffffff;
  min-height: auto;
}

body.embed-mode .topbar,
body.embed-mode .hero,
body.embed-mode .footer,
body.embed-mode .vertical-nav,
body.embed-mode .vertical-nav-bar {
  display: none !important;
}

body.embed-mode .shell {
  padding: 16px 16px 28px;
  max-width: 100%;
}

body.embed-mode .subnav {
  margin-bottom: 16px;
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */
@media (max-width: 1024px) {
  .hero,
  .vertical-hero-grid,
  .grid-2,
  .sim-grid,
  .advisor-layout {
    grid-template-columns: 1fr;
  }
  .kpi-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .milestone-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .vertical-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .kpi-strip,
  .grid-equal,
  .vertical-grid,
  .input-grid-2,
  .bill-summary-grid,
  .proposal-kpis {
    grid-template-columns: 1fr;
  }
  .hero,
  .vertical-hero {
    padding: 24px 20px;
  }
  .custom-prompt-form {
    flex-direction: column;
  }
  .call-header,
  .booking-embed-head,
  .modal-header,
  .proposal-banner,
  .snippet-header {
    flex-wrap: wrap;
  }
}

/* ==================== PRINT / EXECUTIVE PDF ==================== */
@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body {
    background: #ffffff !important;
  }
  .topbar,
  .vertical-nav,
  .shell,
  .footer,
  .no-print {
    display: none !important;
  }
  .modal-backdrop {
    position: static;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    display: block !important;
  }
  .modal {
    max-width: none;
    max-height: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    overflow: visible;
  }
  .disclaimer-note,
  .sources-card,
  .source-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .sources-card {
    box-shadow: none;
    border: 1px solid var(--border-strong);
  }
  .source-link {
    color: var(--blue);
    text-decoration: underline;
  }
}
