/* ==========================================================================
   Horizon Credit Repair — V2 FinTech Design System (2026)
   Obsidian + Emerald + Cobalt | Geometric Sans + Monospace | WCAG 2.2 AA
   ========================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/jetbrains-mono-latin.woff2') format('woff2');
}

:root {
  --obsidian-950: #060913;
  --obsidian-900: #0b1120;
  --obsidian-800: #111a2e;
  --obsidian-700: #1b2845;
  --obsidian-border: rgba(255, 255, 255, 0.10);
  --obsidian-border-strong: rgba(255, 255, 255, 0.18);

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #090e1a;
  --white: #ffffff;

  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-950: #032219;
  --emerald-tint: #ecfdf5;
  --emerald-border: #a7f3d0;

  --cobalt-400: #60a5fa;
  --cobalt-500: #3b82f6;
  --cobalt-600: #2563eb;
  --cobalt-700: #1d4ed8;
  --cobalt-tint: #eff6ff;

  --amber-700: #b45309;
  --amber-tint: #fffbeb;
  --amber-border: #fde68a;

  --danger-600: #dc2626;
  --danger-700: #b91c1c;
  --danger-tint: #fef2f2;
  --danger-border: #fecaca;

  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 9999px;

  --shadow-xs: 0 1px 2px rgba(9, 14, 26, 0.05);
  --shadow-sm: 0 4px 14px rgba(9, 14, 26, 0.06);
  --shadow-md: 0 14px 34px rgba(9, 14, 26, 0.09);
  --shadow-lg: 0 24px 56px rgba(6, 9, 19, 0.22);
  --shadow-glow: 0 8px 28px rgba(16, 185, 129, 0.30);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --container-max: 1240px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  scroll-padding-bottom: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--slate-700);
  background-color: var(--slate-50);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.mono, code, .price-num, .kpi-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

code {
  font-size: 0.86em;
  background: var(--slate-100);
  color: var(--slate-900);
  padding: 0.16rem 0.42rem;
  border-radius: 6px;
  border: 1px solid var(--slate-200);
}

a {
  color: var(--cobalt-700);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.16s ease;
}

a:hover {
  color: var(--emerald-700);
}

:is(.dark-surface, .glass-card, .sim-card, .checkout-summary-sticky) a:not(.btn) {
  color: var(--emerald-400);
}

:is(.dark-surface, .glass-card, .sim-card, .checkout-summary-sticky) a:not(.btn):hover {
  color: #6ee7b7;
}

:focus-visible {
  outline: 2.5px solid var(--cobalt-600);
  outline-offset: 3px;
}

.dark-surface :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--emerald-400);
}

h1, h2, h3, h4 {
  color: var(--slate-900);
  margin-top: 0;
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.75rem);
  letter-spacing: -0.038em;
  line-height: 1.07;
  margin-bottom: 1.1rem;
}

h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.55rem);
  margin-bottom: 0.85rem;
}

h3 {
  font-size: clamp(1.16rem, 1.9vw, 1.38rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.ui-icon {
  flex-shrink: 0;
  vertical-align: middle;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 10px;
  z-index: 9999;
  background: var(--emerald-500);
  color: var(--emerald-950);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  left: 14px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container-narrow {
  max-width: 860px;
}

/* ==========================================================================
   STICKY GLASSMORPHIC HEADER (OBSIDIAN FROSTED)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(6, 9, 19, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--obsidian-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  text-decoration: none;
  color: var(--white);
  flex-shrink: 0;
}

.brand-logo:hover {
  color: var(--white);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--white);
}

.brand-sub {
  font-size: 0.69rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-400);
  font-weight: 600;
}

.main-nav {
  display: none;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--slate-300);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.42rem 0.56rem;
  border-radius: var(--radius-xs);
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

@media (min-width: 1280px) {
  .main-nav ul {
    gap: 0.35rem;
  }
  .main-nav a {
    font-size: 0.9rem;
    padding: 0.48rem 0.76rem;
  }
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.header-actions .btn {
  white-space: nowrap;
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--obsidian-border-strong);
  border-radius: var(--radius-xs);
  padding: 0.5rem 0.8rem;
  min-height: 40px;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  font-size: 0.88rem;
}

.mobile-drawer {
  display: none;
  background: var(--obsidian-900);
  border-bottom: 1px solid var(--obsidian-border-strong);
  padding: 1rem 1.25rem 1.5rem;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
}

.mobile-drawer li {
  border-bottom: 1px solid var(--obsidian-border);
}

.mobile-drawer a {
  display: block;
  padding: 0.78rem 0;
  text-decoration: none;
  font-weight: 600;
  color: var(--slate-100);
}

@media (min-width: 1140px) {
  .main-nav {
    display: block;
  }
  .header-actions {
    display: flex;
  }
  .mobile-menu-btn,
  .mobile-drawer {
    display: none !important;
  }
}

/* PPC Distraction-Free Header */
.ppc-header {
  background: var(--obsidian-950);
  border-bottom: 1px solid var(--obsidian-border);
  padding: 0.85rem 0;
}

.ppc-header-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.85rem;
}

/* ==========================================================================
   FINTECH BUTTON SYSTEM (WCAG AA/AAA VERIFIED)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  min-height: 44px;
  padding: 0.72rem 1.35rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

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

/* Vibrant Emerald CTA: #10B981 bg + #032219 ultra-dark text = 8.6:1 AAA contrast */
.btn-primary {
  background: var(--emerald-500);
  color: var(--emerald-950);
  border-color: var(--emerald-500);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: var(--emerald-400);
  border-color: var(--emerald-400);
  color: var(--emerald-950);
  transform: translateY(-1px);
}

.btn-cobalt {
  background: var(--cobalt-600);
  color: var(--white);
  border-color: var(--cobalt-600);
}

.btn-cobalt:hover {
  background: var(--cobalt-700);
  border-color: var(--cobalt-700);
  color: var(--white);
}

.btn-obsidian {
  background: var(--slate-900);
  color: var(--white);
  border-color: var(--slate-900);
}

.btn-obsidian:hover {
  background: var(--obsidian-700);
  border-color: var(--obsidian-700);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--slate-900);
  border-color: #64748b;
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  border-color: var(--slate-900);
  background: var(--slate-50);
  color: var(--slate-900);
}

.btn-dark-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-dark-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-800);
  border-color: #64748b;
}

.btn-ghost:hover {
  background: var(--slate-100);
  border-color: var(--slate-400);
  color: var(--slate-900);
}

.btn-danger {
  background: var(--danger-600);
  color: var(--white);
  border-color: var(--danger-600);
}

.btn-danger:hover {
  background: var(--danger-700);
  color: var(--white);
}

.btn-sm {
  min-height: 36px;
  padding: 0.45rem 0.9rem;
  font-size: 0.84rem;
}

.btn-lg {
  min-height: 52px;
  padding: 0.92rem 1.7rem;
  font-size: 1.02rem;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   SECTIONS, DARK OBSIDIAN MESH HEROES & BENTO GRIDS
   ========================================================================== */
.section {
  padding: 4.5rem 0;
}

@media (min-width: 960px) {
  .section {
    padding: 6rem 0;
  }
}

.section-sm {
  padding: 2.75rem 0;
}

.section-white {
  background: var(--white);
}

.section-slate {
  background: var(--slate-50);
}

.dark-surface {
  background-color: var(--obsidian-950);
  background-image:
    radial-gradient(850px circle at 85% 15%, rgba(16, 185, 129, 0.15), transparent 58%),
    radial-gradient(750px circle at 12% 85%, rgba(59, 130, 246, 0.15), transparent 58%);
  color: var(--slate-300);
}

.dark-surface h1,
.dark-surface h2,
.dark-surface h3,
.dark-surface h4,
.glass-card h1,
.glass-card h2,
.glass-card h3,
.glass-card h4 {
  color: var(--white);
}

.dark-surface .card h1,
.dark-surface .card h2,
.dark-surface .card h3,
.dark-surface .card h4 {
  color: var(--slate-900);
}

.dark-surface .card .eyebrow {
  color: var(--emerald-700);
  background: var(--emerald-tint);
  border-color: var(--emerald-border);
}

.dark-surface .card .lead {
  color: var(--slate-600);
}

.hero-obsidian {
  padding: 4rem 0 5rem;
  border-bottom: 1px solid var(--obsidian-border);
}

@media (min-width: 960px) {
  .hero-obsidian {
    padding: 5.25rem 0 6.25rem;
  }
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.75rem;
  align-items: center;
}

@media (min-width: 980px) {
  .hero-split {
    grid-template-columns: 1.08fr 0.92fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-700);
  background: var(--emerald-tint);
  border: 1px solid var(--emerald-border);
  padding: 0.34rem 0.8rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.05rem;
}

.dark-surface .eyebrow {
  color: var(--emerald-400);
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(52, 211, 153, 0.28);
}

.lead {
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  color: var(--slate-600);
  line-height: 1.65;
}

.dark-surface .lead {
  color: var(--slate-300);
}

.section-header {
  max-width: 760px;
  margin-bottom: 2.85rem;
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Grids & Asymmetric Bento */
.grid {
  display: grid;
  gap: 1.35rem;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
}

@media (min-width: 960px) {
  .bento-grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .bento-7 { grid-column: span 7; }
  .bento-5 { grid-column: span 5; }
  .bento-6 { grid-column: span 6; }
  .bento-4 { grid-column: span 4; }
  .bento-8 { grid-column: span 8; }
}

/* ==========================================================================
   CARDS & GLASSMORPHIC PRODUCT PREVIEWS
   ========================================================================== */
.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.3rem;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

@media (min-width: 640px) {
  .card {
    padding: 1.85rem;
  }
}

.card-elevated {
  box-shadow: var(--shadow-md);
}

.card-featured {
  border: 2px solid var(--emerald-500);
  box-shadow: var(--shadow-md);
  position: relative;
}

.glass-card {
  background: rgba(17, 26, 46, 0.76);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--obsidian-border-strong);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), var(--shadow-lg);
  color: var(--slate-100);
}

@media (min-width: 640px) {
  .glass-card {
    padding: 1.65rem;
  }
}

.icon-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--cobalt-tint);
  color: var(--cobalt-600);
  margin-bottom: 1rem;
}

.icon-chip-emerald {
  background: var(--emerald-tint);
  color: var(--emerald-700);
}

.price-amount {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 2.85rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0.6rem 0;
}

.price-period {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-600);
  letter-spacing: 0;
}

/* Feature Lists with Crisp SVG Check/Cross */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.1rem 0 1.5rem;
  display: grid;
  gap: 0.65rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.94rem;
  line-height: 1.5;
}

.feature-list .icon-ok {
  color: var(--emerald-600);
  margin-top: 0.15rem;
}

.dark-surface .feature-list .icon-ok {
  color: var(--emerald-400);
}

.feature-list .icon-no {
  color: var(--danger-600);
  margin-top: 0.15rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.24rem 0.68rem;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: normal;
  text-align: left;
}

.badge-emerald {
  background: var(--emerald-tint);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-border);
}

.badge-cobalt {
  background: var(--cobalt-tint);
  color: var(--cobalt-700);
  border: 1px solid #bfdbfe;
}

.badge-amber {
  background: var(--amber-tint);
  color: var(--amber-700);
  border: 1px solid var(--amber-border);
}

.badge-danger {
  background: var(--danger-tint);
  color: var(--danger-700);
  border: 1px solid var(--danger-border);
}

.badge-dark {
  background: rgba(255, 255, 255, 0.09);
  color: var(--slate-100);
  border: 1px solid var(--obsidian-border-strong);
}

.card .badge-dark,
.table-wrap .badge-dark {
  background: var(--slate-200);
  color: var(--slate-800);
  border-color: #64748b;
}

/* Callouts & Verbatim Legal Boxes */
.callout-card {
  background: var(--slate-100);
  border-left: 4px solid var(--cobalt-600);
  padding: 1.15rem 1.35rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.35rem 0;
  color: var(--slate-800);
  font-size: 0.93rem;
}

.compliance-strip {
  background: var(--amber-tint);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.89rem;
  color: #78350f;
  margin: 1.35rem 0;
}

.legal-verbatim-box {
  background: var(--white);
  border: 1.5px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 1.35rem;
  margin: 1.2rem 0;
  max-height: 360px;
  overflow-y: auto;
  font-size: 0.88rem;
  color: var(--slate-800);
}

.legal-verbatim-box pre {
  white-space: pre-wrap;
  font-family: var(--font-sans);
  margin: 0;
  line-height: 1.6;
}

/* ==========================================================================
   INTERACTIVE SIMULATORS (COST CONFIGURATOR & UTILIZATION GAUGE)
   ========================================================================== */
.sim-card {
  background: var(--obsidian-900);
  border: 1px solid var(--obsidian-border-strong);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  color: var(--slate-100);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), var(--shadow-lg);
}

@media (min-width: 640px) {
  .sim-card {
    padding: 2rem;
  }
}

.sim-card h3, .sim-card h4 {
  color: var(--white);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.65), rgba(59, 130, 246, 0.55));
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--emerald-400);
  border: 3px solid var(--obsidian-950);
  box-shadow: 0 0 0 2px var(--emerald-400), 0 4px 12px rgba(16, 185, 129, 0.45);
  transition: transform 0.14s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.65), rgba(59, 130, 246, 0.55));
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--emerald-400);
  border: 3px solid var(--obsidian-950);
  box-shadow: 0 0 0 2px var(--emerald-400);
}

.editorial-photo {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--obsidian-border-strong);
  box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   FORMS, SPLIT-SCREEN CHECKOUT & STEPPERS
   ========================================================================== */
.form-group {
  margin-bottom: 1.1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.95rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--slate-900);
  margin-bottom: 0.36rem;
}

.label-hint {
  font-weight: 500;
  color: var(--slate-600);
  font-size: 0.8rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.68rem 0.9rem;
  border: 1.5px solid #64748b;
  border-radius: var(--radius-xs);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  color: var(--slate-900);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
select:focus,
textarea:focus {
  border-color: var(--cobalt-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  outline: none;
}

fieldset.consent-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
}

fieldset.consent-fieldset legend {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-600);
  margin-bottom: 0.5rem;
}

.checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.78rem 0.92rem;
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xs);
  margin-bottom: 0.6rem;
}

.checkbox-card input[type="checkbox"],
.checkbox-card input[type="radio"] {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--emerald-600);
  cursor: pointer;
}

.checkbox-card label {
  margin: 0;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--slate-700);
  cursor: pointer;
  line-height: 1.48;
}

.alert {
  padding: 0.92rem 1.15rem;
  border-radius: var(--radius-xs);
  margin-bottom: 1.2rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.alert-error {
  background: var(--danger-tint);
  border: 1px solid var(--danger-border);
  color: var(--danger-700);
}

.alert-success {
  background: var(--emerald-tint);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-700);
}

/* Split-Screen Checkout Layout */
.checkout-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 980px) {
  .checkout-split {
    grid-template-columns: 1.38fr 0.62fr;
  }
}

.checkout-summary-sticky {
  position: sticky;
  top: 90px;
  background: var(--obsidian-950);
  color: var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--obsidian-border-strong);
  box-shadow: var(--shadow-lg);
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}

@media (min-width: 640px) {
  .wizard-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.wizard-step-pill {
  padding: 0.62rem 0.45rem;
  text-align: center;
  border-radius: var(--radius-xs);
  background: var(--slate-100);
  color: var(--slate-600);
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--slate-200);
}

.wizard-step-pill.is-active {
  background: var(--slate-900);
  color: var(--white);
  border-color: var(--slate-900);
}

.wizard-step-pill.is-done {
  background: var(--emerald-tint);
  color: var(--emerald-700);
  border-color: var(--emerald-border);
}

.wizard-panel {
  display: none;
}

.wizard-panel.is-active {
  display: block;
}

.signature-canvas-wrap {
  border: 1.5px dashed var(--slate-400);
  border-radius: var(--radius-xs);
  background: var(--slate-50);
  padding: 0.45rem;
}

#signatureCanvas {
  width: 100%;
  height: 140px;
  display: block;
  touch-action: none;
  cursor: crosshair;
  background: var(--white);
  border-radius: 6px;
}

/* Booking Slots */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 0.55rem;
  min-height: 112px;
  margin-top: 0.5rem;
}

.slot-btn {
  min-height: 42px;
  padding: 0.58rem 0.5rem;
  border: 1.5px solid #64748b;
  border-radius: var(--radius-xs);
  background: var(--white);
  color: var(--slate-900);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
}

.slot-btn:hover:not(:disabled) {
  border-color: var(--emerald-600);
  background: var(--emerald-tint);
}

.slot-btn.is-selected {
  background: var(--slate-900);
  color: var(--white);
  border-color: var(--slate-900);
}

.slot-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* ==========================================================================
   TABLES, FAQ ACCORDIONS & DROPZONE
   ========================================================================== */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.91rem;
}

th, td {
  padding: 0.88rem 1rem;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: top;
}

td .badge,
td .btn {
  white-space: nowrap;
}

th {
  background: var(--slate-50);
  color: var(--slate-600);
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

tr:last-child td {
  border-bottom: none;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  margin-bottom: 0.7rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.3rem;
  font-weight: 700;
  color: var(--slate-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  transition: transform 0.18s ease;
  color: var(--emerald-600);
  flex-shrink: 0;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0.9rem 1.3rem 1.25rem;
  color: var(--slate-700);
  border-top: 1px solid var(--slate-100);
}

/* ==========================================================================
   DEDICATED SAAS APP SHELL (PORTAL & ADMIN — LINEAR/MERCURY STYLE)
   ========================================================================== */
.app-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100vh - 70px);
  background: var(--slate-50);
}

@media (min-width: 980px) {
  .app-layout {
    grid-template-columns: 264px 1fr;
  }
}

.app-sidebar {
  background: var(--obsidian-950);
  color: var(--slate-300);
  padding: 1.5rem 1rem;
  border-right: 1px solid var(--obsidian-border);
}

.app-tab-list {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.4rem;
  padding-bottom: 0.25rem;
}

.app-tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: auto;
  flex-shrink: 0;
  min-height: 42px;
  padding: 0.62rem 0.85rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  color: var(--slate-300);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

@media (min-width: 980px) {
  .app-tab-list {
    flex-direction: column;
    overflow-x: visible;
    padding-bottom: 0;
  }
  .app-tab-btn {
    display: flex;
    width: 100%;
  }
}

.app-tab-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.app-tab-btn[aria-selected="true"] {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.32);
  color: var(--emerald-400);
}

.app-main {
  padding: 1.75rem 1.25rem 3.5rem;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .app-main {
    padding: 2.25rem 2.25rem 4rem;
  }
}

.app-tabpanel {
  display: none;
}

.app-tabpanel.is-active {
  display: block;
}

.kpi-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.45rem;
  box-shadow: var(--shadow-xs);
}

.kpi-label {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-600);
  font-weight: 700;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-top: 0.3rem;
}

.vault-dropzone {
  border: 2px dashed #64748b;
  border-radius: var(--radius-md);
  background: var(--slate-50);
  padding: 1.65rem;
  text-align: center;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.vault-dropzone input[type="file"] {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--slate-700);
  cursor: pointer;
}

.vault-dropzone input[type="file"]::file-selector-button {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0.48rem 1rem;
  margin-right: 0.75rem;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--slate-900);
  background: var(--slate-900);
  color: var(--white);
  cursor: pointer;
  transition: background 0.15s ease;
}

.vault-dropzone input[type="file"]::file-selector-button:hover {
  background: var(--cobalt-600);
  border-color: var(--cobalt-600);
}

.vault-dropzone.is-dragover {
  border-color: var(--emerald-500);
  background: var(--emerald-tint);
}

/* Slide-Over Letter / Contract Drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 9, 19, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 980;
  display: none;
}

.drawer-backdrop.is-open {
  display: flex;
  justify-content: flex-end;
}

.drawer-panel {
  width: min(680px, 100vw);
  height: 100%;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.drawer-header {
  padding: 1.15rem 1.5rem;
  background: var(--obsidian-950);
  color: var(--white);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.drawer-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

/* Timeline */
.timeline-list {
  list-style: none;
  padding: 0;
  margin: 0 0 0 0.6rem;
  border-left: 2px solid var(--slate-300);
}

.timeline-list li {
  position: relative;
  padding: 0 0 1.4rem 1.35rem;
}

.timeline-list li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--emerald-500);
  border: 2px solid var(--white);
}

/* Blog Editorial */
.article-prose h2 {
  margin-top: 2.1rem;
  font-size: 1.55rem;
}

.article-prose ul,
.article-prose ol {
  padding-left: 1.35rem;
  margin-bottom: 1.25rem;
}

.article-prose li {
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   OBSIDIAN FOOTER
   ========================================================================== */
.site-footer {
  background: var(--obsidian-950);
  color: var(--slate-400);
  padding: 4rem 0 5.5rem;
  border-top: 1px solid var(--obsidian-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.site-footer h3,
.site-footer h4 {
  color: var(--white);
  font-size: 0.96rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin-bottom: 0.5rem;
}

.site-footer a {
  color: var(--slate-300);
  text-decoration: none;
  font-size: 0.9rem;
}

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

.footer-disclaimer-box {
  border-top: 1px solid var(--obsidian-border);
  border-bottom: 1px solid var(--obsidian-border);
  padding: 1.25rem 0;
  margin-bottom: 1.25rem;
  font-size: 0.86rem;
  color: var(--slate-300);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.82rem;
  color: var(--slate-400);
}

/* ==========================================================================
   COOKIE BANNER, AI CHAT WIDGET & MOBILE STICKY BAR (ZERO COLLISION)
   ========================================================================== */
.mobile-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(6, 9, 19, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--obsidian-border-strong);
  padding: 0.65rem 1rem;
  display: flex;
  gap: 0.6rem;
  z-index: 920;
}

@media (min-width: 768px) {
  .mobile-sticky-cta {
    display: none;
  }
  body {
    padding-bottom: 0;
  }
}

@media (max-width: 767px) {
  body:not(.is-app-shell) {
    padding-bottom: 68px;
  }
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 78px;
  max-width: 880px;
  background: var(--obsidian-900);
  color: var(--slate-100);
  border: 1px solid var(--obsidian-border-strong);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.35rem;
  box-shadow: var(--shadow-lg);
  z-index: 950;
  display: none;
}

@media (min-width: 768px) {
  .cookie-banner {
    bottom: 20px;
    right: 220px;
  }
}

@media (min-width: 1024px) {
  .cookie-banner {
    left: 24px;
    right: 260px;
    bottom: 20px;
  }
}

.cookie-banner.is-visible {
  display: block;
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  font-size: 0.86rem;
  max-width: 580px;
  color: var(--slate-300);
}

.cookie-banner a {
  color: var(--emerald-400);
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

@media (max-width: 1099px) {
  body.cookie-banner-open .chat-widget-launcher,
  body:has(#cookieBanner.is-visible) .chat-widget-launcher {
    display: none;
  }
}

.chat-widget-launcher {
  position: fixed;
  right: 20px;
  bottom: 78px;
  z-index: 940;
  background: var(--obsidian-950);
  color: var(--white);
  border: 1.5px solid var(--emerald-500);
  border-radius: var(--radius-pill);
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .chat-widget-launcher {
    bottom: 20px;
  }
}

.chat-widget-launcher:hover {
  background: var(--obsidian-800);
}

.chat-panel {
  position: fixed;
  right: 20px;
  bottom: 132px;
  width: min(415px, calc(100vw - 32px));
  max-height: min(650px, calc(100vh - 150px));
  background: var(--white);
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 970;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 768px) {
  .chat-panel {
    bottom: 76px;
    max-height: min(655px, calc(100vh - 104px));
  }
}

.chat-panel.is-open {
  display: flex;
}

.chat-panel.has-subform .chat-quick-chips,
.chat-panel.has-subform .chat-input-bar {
  display: none;
}

.chat-header {
  background: var(--obsidian-950);
  color: var(--white);
  padding: 0.92rem 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header strong {
  display: block;
  font-size: 0.94rem;
}

.chat-header span {
  font-size: 0.74rem;
  color: var(--slate-400);
}

.chat-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--obsidian-border-strong);
  color: var(--white);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.chat-messages {
  padding: 0.95rem;
  overflow-y: auto;
  flex: 1;
  background: var(--slate-50);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.chat-bubble {
  padding: 0.72rem 0.92rem;
  border-radius: 12px;
  font-size: 0.87rem;
  line-height: 1.52;
  white-space: pre-wrap;
  max-width: 90%;
}

.chat-bubble-bot {
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-900);
  align-self: flex-start;
}

.chat-bubble-user {
  background: var(--obsidian-950);
  color: var(--white);
  align-self: flex-end;
}

.chat-quick-chips {
  padding: 0.55rem 0.85rem;
  background: var(--slate-100);
  border-top: 1px solid var(--slate-200);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chat-chip {
  min-height: 28px;
  background: var(--white);
  border: 1px solid #64748b;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.72rem;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--slate-900);
  cursor: pointer;
}

.chat-chip:hover {
  border-color: var(--emerald-600);
  color: var(--emerald-700);
}

.chat-input-bar {
  display: flex;
  gap: 0.45rem;
  padding: 0.65rem 0.85rem;
  background: var(--white);
  border-top: 1px solid var(--slate-200);
}

.chat-subform {
  padding: 0.9rem 0.95rem;
  background: var(--white);
  border-top: 2px solid var(--emerald-500);
  font-size: 0.83rem;
  flex-shrink: 0;
  max-height: 380px;
  overflow-y: auto;
}

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

@media print {
  .site-header,
  .ppc-header,
  .site-footer,
  .app-sidebar,
  .mobile-sticky-cta,
  .cookie-banner,
  .chat-widget-launcher,
  .chat-panel,
  .no-print {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
  }
  .card, .card-elevated {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }
}
