
/* =========================================================
   Compare Driving Instructors™ — Design System
   Mobile-first. Poppins only. Black / White / Brand Green.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root{
  --ink:#14171F;
  --paper:#FFFFFF;
  --mist:#F5F7FA;
  --mist-deep:#ECF1F7;
  --blue:#2D7FF6;
  --blue-deep:#1A56C4;
  --blue-block:#4FACE6;
  --blue-block-deep:#3D93D6;
  --blue-mist:#EAF3FE;
  --navy:#0B1F3D;
  --navy-deep:#081730;
  --green:#00A53C;
  --green-deep:#00822F;
  --green-mist:#EAFBF0;
  --amber:#FFB100;
  --amber-mist:#FFF6E0;
  --slate:#5B6072;
  --slate-light:#8B91A1;
  --line:#E6E9EE;
  --red:#E5484D;
  /* legacy aliases kept so any remaining references resolve sensibly */
  --black:#0B1F3D;
  --black-soft:#13294F;
  --black-line: rgba(255,255,255,.14);

  --radius-sm:12px;
  --radius:18px;
  --radius-lg:26px;
  --shadow-sm: 0 2px 10px rgba(15,17,25,.06);
  --shadow: 0 14px 34px rgba(15,17,25,.10);
  --shadow-lg: 0 24px 64px rgba(15,17,25,.16);

  --container: 1240px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  font-family:'Poppins',Arial,sans-serif;
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button,input,select,textarea{ font-family:'Poppins',Arial,sans-serif; }
button{ cursor:pointer; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p{ margin:0; }
:focus-visible{ outline:2.5px solid var(--blue); outline-offset:2px; border-radius:4px; }

.container{ width:min(var(--container), calc(100% - 32px)); margin:0 auto; min-width:0; }

/* ---------- type scale ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase;
}
.eyebrow .dashes{ display:inline-flex; gap:4px; }
.eyebrow .dashes span{ width:10px; height:3px; border-radius:2px; background:var(--blue); }

h1{ font-weight:800; letter-spacing:-0.02em; line-height:1.08; font-size:clamp(30px,7vw,56px); }
h2{ font-weight:800; letter-spacing:-0.015em; line-height:1.14; font-size:clamp(24px,5vw,38px); }
h3{ font-weight:700; letter-spacing:-0.01em; line-height:1.25; font-size:clamp(17px,3vw,21px); }
.lede{ font-size:clamp(15px,2.4vw,18px); color:var(--slate); line-height:1.6; font-weight:400; }
.section-head{ max-width:680px; margin-bottom:28px; }
.section-head p{ margin-top:10px; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:0; border-radius:999px; padding:14px 22px; font-size:14.5px; font-weight:700;
  white-space:nowrap; transition:transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
  line-height:1;
}
.btn-lg{ padding:16px 26px; font-size:15.5px; }
@media (max-width:520px){
  .btn{ white-space:normal; text-align:center; line-height:1.3; }
}
.btn:active{ transform:scale(.96); }
.btn-sm{ padding:10px 16px; font-size:13px; }
.btn-green{ background:var(--blue); color:var(--black); box-shadow:0 6px 16px rgba(20,30,25,.14); }
.btn-green:hover{ background:var(--blue-deep); color:#fff; transform:translateY(-1px); }
.btn-black{ background:var(--black); color:#fff; box-shadow:0 12px 26px rgba(0,0,0,.22); }
.btn-black:hover{ transform:translateY(-1px); box-shadow:0 16px 32px rgba(0,0,0,.28); }
.btn-ghost{ background:#fff; color:var(--ink); border:1.5px solid var(--line); }
.btn-ghost:hover{ border-color:var(--blue); color:var(--blue-deep); }
.btn-ghost-dark{ background:transparent; color:#fff; border:1.5px solid var(--black-line); }
.btn-ghost-dark:hover{ border-color:var(--blue); color:var(--blue); }
.btn-white{ background:#fff; color:var(--black); }
.btn-white:hover{ background:var(--blue); }
.btn-block{ width:100%; }
.btn[disabled]{ opacity:.45; pointer-events:none; }

/* ---------- ambient glow / texture (hero + dark sections) ---------- */
.glow-field{ position:absolute; inset:0; pointer-events:none; overflow:hidden; z-index:0; }
.glow-field::before{
  content:''; position:absolute; width:680px; height:680px; border-radius:50%;
  background:radial-gradient(circle, rgba(45,127,246,.30) 0%, rgba(45,127,246,0) 70%);
  top:-280px; right:-180px; filter:blur(10px);
}
.glow-field::after{
  content:''; position:absolute; width:520px; height:520px; border-radius:50%;
  background:radial-gradient(circle, rgba(45,127,246,.16) 0%, rgba(45,127,246,0) 70%);
  bottom:-260px; left:-160px;
}
.grid-texture{
  position:absolute; inset:0; pointer-events:none; z-index:0; opacity:.5;
  background-image:linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size:46px 46px;
  -webkit-mask-image:linear-gradient(180deg, rgba(0,0,0,.9), transparent 75%);
  mask-image:linear-gradient(180deg, rgba(0,0,0,.9), transparent 75%);
}
.rel-z1{ position:relative; z-index:1; }

/* ---------- "open-bracket" signature frame — taken directly from the logo mark ---------- */
.bracket-frame{ position:relative; }
.bracket-frame::before{
  content:''; position:absolute; inset:0; border-radius:var(--radius-lg);
  border:2px solid var(--blue); pointer-events:none;
  -webkit-mask: linear-gradient(#000 0 0);
  clip-path: polygon(0 0, 72% 0, 72% 2.5px, 0 2.5px, 0 100%, 100% 100%, 100% 0, 78% 0, 78% 2.5px, 100% 2.5px, 100% 0);
}
.bracket-tick{
  width:34px; height:34px; flex:none; display:grid; place-items:center;
}

/* ---------- hero split layout + AI match mock visual (signature element) ---------- */
.hero-grid{ display:grid; grid-template-columns:minmax(0,1fr); gap:40px; align-items:center; min-width:0; }
.hero-grid > *{ min-width:0; }
.match-mock{
  background:var(--black-soft); border:1px solid var(--black-line); border-radius:var(--radius-lg);
  padding:18px; box-shadow:0 30px 70px rgba(0,0,0,.5);
}
.match-mock-head{ display:flex; align-items:center; justify-content:space-between; padding:2px 4px 14px; border-bottom:1px solid var(--black-line); margin-bottom:14px; }
.match-mock-head span{ font-size:12px; font-weight:700; color:#fff; }
.match-mock-head .live{ display:flex; align-items:center; gap:6px; font-size:11px; font-weight:700; color:#fff; }
.match-mock-head .live i{ width:7px; height:7px; border-radius:50%; background:#fff; display:block; box-shadow:0 0 0 4px rgba(255,255,255,.22); }
.mm-row{ display:flex; align-items:center; gap:12px; padding:11px; border-radius:14px; background:rgba(255,255,255,.035); margin-bottom:8px; }
.mm-row:last-child{ margin-bottom:0; }
.mm-avatar{ width:38px; height:38px; border-radius:11px; flex:none; display:grid; place-items:center; font-weight:800; font-size:13px; color:var(--black); background:linear-gradient(155deg,var(--blue),var(--blue-deep)); }
.mm-row.alt .mm-avatar{ background:linear-gradient(155deg,#3A3F4C,#1B1D24); color:#fff; }
.mm-info{ flex:1; min-width:0; }
.mm-info b{ display:block; color:#fff; font-size:13.5px; font-weight:700; }
.mm-info span{ display:block; color:#8B91A1; font-size:11.5px; margin-top:1px; }
.mm-score{ flex:none; text-align:right; }
.mm-score b{ display:block; color:#fff; font-size:14.5px; font-weight:800; }
.mm-score span{ font-size:10px; color:#73798A; font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.mm-bar{ height:5px; border-radius:3px; background:rgba(255,255,255,.08); margin-top:9px; overflow:hidden; }
.mm-bar i{ display:block; height:100%; background:#fff; border-radius:3px; }
.match-mock-foot{ display:flex; align-items:center; gap:8px; margin-top:14px; padding-top:14px; border-top:1px solid var(--black-line); font-size:11.5px; color:#8B91A1; font-weight:600; }

/* ---------- light hero (replaces dark hero band) ---------- */
/* ---------- flat colour hero block (Uswitch-style) ---------- */
.hero-block{ background:var(--blue-block); position:relative; overflow:hidden; }
.hero-light{ background:var(--paper); position:relative; overflow:hidden; }
.glow-field-light{ position:absolute; inset:0; pointer-events:none; overflow:hidden; z-index:0; }
.glow-field-light::before{
  content:''; position:absolute; width:560px; height:560px; border-radius:50%;
  background:radial-gradient(circle, rgba(14,92,52,.07) 0%, rgba(14,92,52,0) 70%);
  top:-240px; right:-160px; filter:blur(6px);
}
.glow-field-light::after{
  content:''; position:absolute; width:420px; height:420px; border-radius:50%;
  background:radial-gradient(circle, rgba(46,125,246,.05) 0%, rgba(46,125,246,0) 70%);
  bottom:-200px; left:-140px;
}
.blob-amber{ display:none; }

/* ---------- CTA strip: deep, restrained brand colour (not loud saturated green) ---------- */
.cta-band{ background:var(--blue-block); color:var(--ink); position:relative; overflow:hidden; }
.cta-band .glow-field::before, .cta-band .glow-field::after{ display:none; }

/* ---------- top nav ---------- */
.topnav{
  position:fixed; top:0; left:0; right:0; z-index:400;
  background:rgba(11,31,61,.93);
  -webkit-backdrop-filter:blur(20px) saturate(160%);
  backdrop-filter:blur(20px) saturate(160%);
  border-bottom:none;
}
.topnav.scrolled{ background:rgba(11,31,61,.98); border-bottom:none; }
.topnav{ transition:background .25s ease; }
.topnav .row{ height:90px; display:flex; align-items:center; justify-content:space-between; gap:20px; }
.brand-logo img{ width:140px; height:auto; filter:brightness(0) invert(1); }
.foot-brand img{ width:180px; height:auto; }

@media (min-width:680px){
  .topnav .row{ height:90px; }
  .brand-logo img{ width:160px; height:auto; filter:brightness(0) invert(1); }
  .foot-brand img{ width:220px; height:auto; }
}
.topnav-spacer{ height:90px; background:transparent; border:none; padding:0; margin:0; }
@media (min-width:680px){ .topnav-spacer{ height:90px; } }

.nav-links{ display:none; }
.nav-actions{ display:flex; align-items:center; gap:8px; }
.nav-actions .btn-ghost-dark{ display:none; }
.hamburger{
  width:38px; height:38px; border-radius:9px; background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.1); display:grid; place-items:center; gap:4px;
}
.hamburger span{ width:17px; height:1.5px; background:rgba(255,255,255,.85); border-radius:2px; display:block; }
.hamburger span:nth-child(2){ width:12px; align-self:flex-end; margin-right:0; }

/* mobile drawer */
.mobile-drawer{
  position:fixed; inset:0; z-index:500; background:#0B1F3D;
  transform:translateX(100%); transition:transform .32s cubic-bezier(.4,0,.2,1);
  display:flex; flex-direction:column;
}
.mobile-drawer.open{ transform:translateX(0); }
.mobile-drawer .dtop{ height:64px; display:flex; align-items:center; justify-content:space-between; padding:0 20px; border-bottom:1px solid rgba(255,255,255,.07); }
.mobile-drawer .dtop img{ filter:brightness(0) invert(1); }
.mobile-drawer .dclose{ width:38px;height:38px;border-radius:9px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.1); color:rgba(255,255,255,.7); font-size:16px; display:grid; place-items:center; }
.mobile-drawer nav{ padding:16px 20px; display:flex; flex-direction:column; gap:1px; overflow-y:auto; flex:1; }
.mobile-drawer nav a{ color:rgba(255,255,255,.82); font-weight:500; font-size:17px; padding:15px 6px; border-bottom:1px solid rgba(255,255,255,.06); display:flex; align-items:center; justify-content:space-between; opacity:0; transform:translateX(16px); letter-spacing:-.01em; }
.mobile-drawer nav a:hover{ color:#fff; }
.mobile-drawer.open nav a{ animation:drawerItemIn .38s cubic-bezier(.2,.8,.3,1) forwards; }
.mobile-drawer.open nav a:nth-child(1){ animation-delay:.05s; }
.mobile-drawer.open nav a:nth-child(2){ animation-delay:.09s; }
.mobile-drawer.open nav a:nth-child(3){ animation-delay:.13s; }
.mobile-drawer.open nav a:nth-child(4){ animation-delay:.17s; }
.mobile-drawer.open nav a:nth-child(5){ animation-delay:.21s; }
.mobile-drawer.open nav a:nth-child(6){ animation-delay:.25s; }
.mobile-drawer.open nav a:nth-child(7){ animation-delay:.29s; }
.mobile-drawer.open nav a:nth-child(8){ animation-delay:.33s; }
@keyframes drawerItemIn{ to{ opacity:1; transform:translateX(0); } }
.mobile-drawer nav a span.tag{ font-size:10.5px; font-weight:600; color:rgba(45,127,246,.9); background:rgba(45,127,246,.12); padding:3px 8px; border-radius:999px; }
.mobile-drawer .dfoot{ padding:16px 20px 32px; display:flex; flex-direction:column; gap:10px; opacity:0; transform:translateY(12px); }
.mobile-drawer.open .dfoot{ animation:drawerItemIn .42s cubic-bezier(.2,.8,.3,1) forwards; animation-delay:.36s; }
.mobile-drawer .dfoot .btn-green{ box-shadow:0 10px 26px rgba(45,127,246,.32); }

/* ---------- footer ---------- */
.site-footer{ background:var(--navy); color:#fff; padding:56px 0 22px; }
.foot-grid{ display:grid; gap:34px; grid-template-columns:1fr; }
.foot-brand p{ color:#9FB3D1; font-size:14.5px; line-height:1.7; margin-top:14px; max-width:340px; }
.foot-col h4{ font-size:13px; text-transform:uppercase; letter-spacing:.08em; color:#9FB3D1; font-weight:700; margin-bottom:14px; }
.foot-col ul{ display:flex; flex-direction:column; gap:11px; }
.foot-col a{ font-size:14.5px; color:#E7EEF7; font-weight:500; }
.foot-col a:hover{ color:var(--blue); }
.foot-bottom{ border-top:1px solid var(--black-line); margin-top:36px; padding-top:20px; display:flex; flex-direction:column; gap:10px; font-size:12.5px; color:#8B91A1; }
.foot-social{ display:flex; gap:10px; }
.foot-social a{ width:36px; height:36px; border-radius:50%; border:1px solid var(--black-line); display:grid; place-items:center; }
.foot-social a:hover{ border-color:var(--blue); color:var(--blue); }

/* ---------- sections ---------- */
.section{ padding:52px 0; }
.section-tight{ padding:36px 0; }
.bg-mist{ background:var(--mist); }
.bg-black{ background:var(--black); color:#fff; }
.bg-green-mist{ background:var(--blue-mist); }

/* ---------- pill / chip / badge ---------- */
.chip{
  display:inline-flex; align-items:center; gap:6px; padding:8px 14px; border-radius:999px;
  font-size:13px; font-weight:600; background:#fff; border:1.5px solid var(--line); color:var(--ink);
  white-space:nowrap;
}
.chip.active{ background:var(--black); border-color:var(--black); color:#fff; }
.chip-row{ display:flex; gap:9px; overflow-x:auto; padding-bottom:4px; scrollbar-width:none; min-width:0; max-width:100%; }
.chip-row::-webkit-scrollbar{ display:none; }
.badge{ display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:700; padding:5px 10px; border-radius:7px; }
.badge-green{ background:var(--green-mist); color:var(--green-deep); }
.badge-black{ background:var(--black); color:#fff; }
.badge-amber{ background:#FFF6E0; color:#9A6B00; }
.badge-blue{ background:var(--blue-mist); color:var(--blue-deep); }

/* ---------- card: provider / instructor (premium) ---------- */
.grid{ display:grid; gap:18px; grid-template-columns:1fr; }
.results-grid{ display:grid; gap:18px; grid-template-columns:1fr; }
@media (min-width:640px){ .results-grid{ grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); } }

.p-card{
  background:#fff; border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow-sm); overflow:hidden; transition:box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  display:flex; flex-direction:column; position:relative;
}
.p-card:hover{ box-shadow:var(--shadow-lg); transform:translateY(-3px); border-color:#fff; }
.p-card-top{ padding:18px 18px 0; display:flex; gap:12px; align-items:flex-start; }
.p-card.has-compare .p-card-top{ padding-right:64px; }
.avatar{
  width:54px; height:54px; border-radius:16px; flex:none; display:grid; place-items:center;
  font-weight:800; font-size:17px; color:#fff; background:linear-gradient(155deg,var(--black) 0%, #2B2F3A 100%);
  position:relative; box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}
.avatar.av-green{ background:linear-gradient(155deg, var(--blue) 0%, var(--blue-deep) 100%); color:var(--black); box-shadow:inset 0 0 0 1px rgba(0,0,0,.08); }
.avatar .av-tick{
  position:absolute; bottom:-5px; right:-5px; width:20px; height:20px; border-radius:50%;
  background:var(--blue); display:grid; place-items:center; border:2.5px solid #fff;
}
.p-card-info{ flex:1; min-width:0; }
.p-card-compare{
  position:absolute; top:14px; right:14px; z-index:2; display:flex; flex-direction:column; align-items:center; gap:3px;
  background:#fff; border:1px solid var(--line); border-radius:10px; padding:6px 7px 5px; box-shadow:var(--shadow-sm);
}
.p-card-compare input{ width:14px; height:14px; accent-color:var(--blue); }
.p-card-compare span{ font-size:8px; font-weight:700; color:var(--slate-light); text-transform:uppercase; letter-spacing:.02em; }
.p-card-name{ display:flex; align-items:center; justify-content:space-between; gap:8px; }
.p-card-name h3{ font-size:16.5px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.p-card-role{ font-size:12.5px; color:var(--slate); font-weight:600; margin-top:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rating-row{ display:flex; align-items:center; gap:5px; font-size:12.5px; font-weight:700; color:var(--ink); margin-top:5px; }
.rating-row .stars{ color:var(--amber); letter-spacing:1px; font-size:12px; }
.rating-row .count{ color:var(--slate-light); font-weight:500; }
.p-card-badges{ display:flex; flex-wrap:wrap; gap:6px; padding:13px 18px 0; }
.p-card-meta{ display:flex; gap:14px; padding:14px 18px 0; font-size:12.5px; color:var(--slate); }
.p-card-meta b{ color:var(--ink); }
.match-score{
  margin:14px 18px 0; padding:10px 12px; border-radius:12px; background:var(--blue-mist);
  display:flex; align-items:center; justify-content:space-between; font-size:12.5px; font-weight:700; color:var(--blue-deep);
}
.match-score .pct{ font-size:15px; }
.p-card-foot{
  margin-top:auto; padding:16px 18px 18px; display:flex; align-items:center; justify-content:space-between; gap:10px;
  border-top:1px solid var(--line); margin-top:16px;
}
.price-from{ font-size:11.5px; color:var(--slate); font-weight:600; }
.price-from b{ display:block; font-size:19px; color:var(--ink); font-weight:800; }
.mini-bar{ height:5px; border-radius:3px; background:var(--mist-deep); margin-top:9px; overflow:hidden; }
.mini-bar i{ display:block; height:100%; border-radius:3px; background:linear-gradient(90deg,var(--blue),var(--blue-deep)); }

/* horizontal scroll-snap row (mobile-first carousel) */
.scroller{ display:flex; gap:16px; overflow-x:auto; padding:6px 16px 18px; margin:0 -16px; scroll-snap-type:x mandatory; scrollbar-width:none; }
.scroller::-webkit-scrollbar{ display:none; }
.scroller > *{ scroll-snap-align:start; flex:0 0 84%; max-width:340px; }

/* ---------- search / AI bar ---------- */
.ai-search{
  background:#fff; border-radius:var(--radius-lg); padding:8px; box-shadow:var(--shadow-lg);
  display:flex; flex-direction:column; gap:8px; min-width:0; max-width:100%;
}
.ai-search input{
  border:0; outline:0; padding:15px 16px; font-size:15.5px; font-weight:500; color:var(--ink); background:transparent; width:100%;
}
.ai-search input::placeholder{ color:var(--slate-light); }
.ai-search .ai-row{ display:flex; gap:8px; align-items:center; border-top:1px solid var(--line); padding-top:8px; }
.ai-chip{ font-size:12px; font-weight:600; color:var(--slate); background:var(--mist); padding:7px 12px; border-radius:999px; white-space:nowrap; }

/* ---------- form controls ---------- */
.field-label{ font-size:12.5px; font-weight:700; color:var(--ink); margin-bottom:7px; display:block; }
.input, select.input{
  width:100%; border:1.5px solid var(--line); border-radius:12px; padding:13px 14px; font-size:14.5px;
  font-weight:500; color:var(--ink); background:#fff; outline:0; transition:border-color .15s;
}
.input:focus{ border-color:var(--blue); }
.checkbox-row{ display:flex; align-items:center; gap:10px; padding:9px 0; font-size:14px; font-weight:500; }
.checkbox-row input{ width:18px; height:18px; accent-color:var(--blue); }
.range-row{ display:flex; align-items:center; justify-content:space-between; font-size:12.5px; font-weight:700; color:var(--slate); margin-bottom:6px; }
input[type="range"]{ width:100%; accent-color:var(--blue); }

/* ---------- stat strip ---------- */
.stat-strip{ display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.stat{ }
.stat b{ display:block; font-size:clamp(22px,5vw,30px); font-weight:800; }
.stat span{ font-size:12px; color:var(--slate-light); font-weight:600; }
.bg-black .stat span{ color:#8B91A1; }
.stat-strip.divided .stat{ padding-left:0; }

/* ---------- tables (comparison) ---------- */
.compare-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; border-radius:var(--radius); border:1px solid var(--line); }
table.compare{ border-collapse:collapse; width:100%; min-width:680px; background:#fff; }
table.compare th, table.compare td{ padding:16px 18px; text-align:left; border-bottom:1px solid var(--line); font-size:14px; }
table.compare thead th{ background:var(--mist); font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--slate); font-weight:700; }
table.compare tbody tr:last-child td{ border-bottom:0; }
table.compare td.feat-col, table.compare th.feat-col{ font-weight:700; color:var(--ink); position:sticky; left:0; background:#fff; }
table.compare thead th.feat-col{ background:var(--mist); }
table.compare td.highlight{ background:var(--blue-mist); }

/* ---------- tabs ---------- */
.tabs{ display:flex; gap:4px; border-bottom:1px solid var(--line); overflow-x:auto; scrollbar-width:none; }
.tabs::-webkit-scrollbar{ display:none; }
.tab-btn{ background:none; border:0; padding:13px 16px; font-size:14px; font-weight:700; color:var(--slate); white-space:nowrap; border-bottom:2.5px solid transparent; }
.tab-btn.active{ color:var(--ink); border-bottom-color:var(--blue); }
.tab-panel{ display:none; padding-top:22px; }
.tab-panel.active{ display:block; }

/* ---------- accordion / FAQ ---------- */
.acc-item{ border-bottom:1px solid var(--line); }
.acc-q{ width:100%; text-align:left; background:none; border:0; padding:18px 4px; display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:15.5px; font-weight:700; }
.acc-q .plus{ flex:none; width:24px; height:24px; border-radius:50%; background:var(--mist); display:grid; place-items:center; font-size:15px; font-weight:700; transition:transform .2s; }
.acc-item.open .acc-q .plus{ transform:rotate(45deg); background:var(--blue); color:var(--black); }
.acc-a{ max-height:0; overflow:hidden; transition:max-height .25s ease; }
.acc-item.open .acc-a{ max-height:400px; }
.acc-a p{ padding:0 4px 20px; color:var(--slate); font-size:14.5px; line-height:1.7; max-width:640px; }

/* ---------- floating AI assistant ---------- */
.ai-fab{
  position:fixed; right:16px; bottom:16px; z-index:150; background:var(--black); color:#fff;
  border-radius:999px; padding:14px 18px 14px 14px; display:flex; align-items:center; gap:10px;
  box-shadow:0 16px 38px rgba(0,0,0,.32); font-size:13.5px; font-weight:700; border:1px solid var(--black-line);
}
.ai-fab .dot{ width:9px; height:9px; border-radius:50%; background:var(--blue); animation:fabPulse 2.2s infinite; }
@keyframes fabPulse{
  0%{ box-shadow:0 0 0 0 rgba(45,127,246,.55); }
  70%{ box-shadow:0 0 0 9px rgba(45,127,246,0); }
  100%{ box-shadow:0 0 0 0 rgba(45,127,246,0); }
}

/* ---------- toast ---------- */
.toast-wrap{ position:fixed; top:16px; left:50%; transform:translateX(-50%) translateY(-130%); z-index:400; transition:transform .3s ease; }
.toast-wrap.show{ transform:translateX(-50%) translateY(0); }
.toast{ background:var(--black); color:#fff; padding:13px 20px; border-radius:999px; font-size:13.5px; font-weight:600; display:flex; align-items:center; gap:9px; box-shadow:var(--shadow-lg); white-space:nowrap; }
.toast .dot{ width:8px; height:8px; border-radius:50%; background:var(--blue); }

/* ---------- sticky mobile CTA bar ---------- */
.sticky-cta{
  position:sticky; bottom:0; z-index:120; background:#fff; border-top:1px solid var(--line);
  padding:12px 16px; display:flex; align-items:center; gap:12px; box-shadow:0 -8px 24px rgba(0,0,0,.06);
}
.sticky-cta .scta-price{ flex:none; }
.sticky-cta .scta-price b{ display:block; font-size:18px; font-weight:800; }
.sticky-cta .scta-price span{ font-size:11px; color:var(--slate); font-weight:600; }
.sticky-cta .btn{ flex:1; }

/* ---------- browse layout (instructors.html) ---------- */
.browse-toolbar{ position:sticky; top:68px; z-index:90; background:#fff; border-bottom:1px solid var(--line); padding:12px 0; }
.browse-toolbar .row{ display:flex; align-items:center; gap:10px; }
.browse-toolbar select.input{ width:auto; padding:11px 12px; }
.result-count{ font-size:13px; color:var(--slate); font-weight:600; white-space:nowrap; }
.browse-layout{ display:block; padding-top:22px; }
.filters-sidebar{ display:none; }
.filters-panel-inner h4{ font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--slate); font-weight:700; margin:22px 0 10px; }
.filters-panel-inner h4:first-child{ margin-top:0; }

.filters-drawer{
  position:fixed; inset:0; z-index:300; background:rgba(10,10,10,.4);
  opacity:0; pointer-events:none; transition:opacity .25s ease;
  display:flex; align-items:flex-end;
}
.filters-drawer.open{ opacity:1; pointer-events:auto; }
.filters-sheet{
  background:#fff; width:100%; max-height:88vh; border-radius:24px 24px 0 0; overflow-y:auto;
  transform:translateY(100%); transition:transform .3s cubic-bezier(.4,0,.2,1); padding-bottom:90px;
}
.filters-drawer.open .filters-sheet{ transform:translateY(0); }
.filters-sheet-top{ position:sticky; top:0; background:#fff; display:flex; align-items:center; justify-content:space-between; padding:18px 20px; border-bottom:1px solid var(--line); }
.filters-sheet-body{ padding:6px 20px 20px; }
.filters-sheet-foot{ position:fixed; bottom:0; left:0; right:0; background:#fff; border-top:1px solid var(--line); padding:14px 20px; display:flex; gap:10px; }

.compare-tray{
  position:fixed; left:50%; bottom:16px; transform:translateX(-50%) translateY(140%); z-index:140;
  background:var(--black); color:#fff; border-radius:999px; padding:10px 10px 10px 18px;
  display:flex; align-items:center; gap:12px; box-shadow:var(--shadow-lg); transition:transform .25s ease; white-space:nowrap;
}
.compare-tray.show{ transform:translateX(-50%) translateY(0); }
.compare-tray b{ color:var(--blue); }

/* ---------- instructor profile page ---------- */
.profile-head{ display:flex; flex-direction:column; gap:24px; }
.profile-head-main{ display:flex; gap:16px; align-items:flex-start; }
.profile-head-info{ flex:1; min-width:0; }
.booking-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow-sm); }
.booking-card-meta{ display:flex; flex-direction:column; gap:8px; font-size:12.5px; font-weight:600; color:var(--slate); }
.profile-layout{ display:block; }
.pkg-list{ display:flex; flex-direction:column; gap:8px; font-size:13.5px; color:var(--slate); }
.review-card{ border-bottom:1px solid var(--line); padding:20px 0; }
.review-card:first-child{ padding-top:0; }
.avail-grid{ display:grid; grid-template-columns:repeat(7,1fr); gap:8px; }
.avail-day{ background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px 6px; text-align:center; display:flex; flex-direction:column; gap:8px; align-items:center; }
.avail-day b{ font-size:12px; color:var(--slate); }
.av-slot{ font-size:11px; font-weight:700; color:var(--green-deep); background:var(--green-mist); padding:5px 6px; border-radius:7px; width:100%; }
.av-slot.busy{ color:var(--slate-light); background:var(--mist); }

/* ---------- dashboard mock visual (for-instructors hero) ---------- */
.dash-mock{ background:#0E1712; border:1px solid var(--black-line); border-radius:var(--radius-lg); overflow:hidden; display:flex; box-shadow:0 30px 70px rgba(0,0,0,.5); }
.dash-side{ width:58px; background:#0A100C; border-right:1px solid var(--black-line); display:flex; flex-direction:column; align-items:center; gap:16px; padding:18px 0; flex:none; }
.dash-side i{ width:28px; height:28px; border-radius:9px; background:rgba(255,255,255,.06); display:block; }
.dash-side i.active{ background:var(--blue); }
.dash-main{ flex:1; padding:18px; min-width:0; }
.dash-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.dash-top span{ font-size:11.5px; font-weight:700; color:#fff; }
.dash-kpis{ display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.dash-kpi{ background:rgba(255,255,255,.035); border-radius:12px; padding:11px; }
.dash-kpi b{ display:block; color:#fff; font-size:17px; font-weight:800; }
.dash-kpi span{ font-size:9.5px; color:#8B91A1; font-weight:700; text-transform:uppercase; letter-spacing:.03em; }
.dash-leads{ margin-top:12px; }
.dash-lead-row{ display:flex; align-items:center; justify-content:space-between; padding:9px 11px; border-radius:10px; background:rgba(255,255,255,.03); margin-bottom:7px; }
.dash-lead-row b{ color:#fff; font-size:12px; font-weight:700; display:block; }
.dash-lead-row span.sub{ color:#73798A; font-size:10.5px; }
.dash-lead-row .new{ background:var(--blue); color:var(--black); font-weight:800; font-size:9.5px; padding:3px 8px; border-radius:999px; flex:none; }

/* ---------- AI match-engine score breakdown ---------- */
.score-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:24px; box-shadow:var(--shadow); }
.score-card-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
.score-card-top span{ font-size:11.5px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; color:var(--slate-light); }
.score-bar-row{ margin-bottom:16px; }
.score-bar-row:last-child{ margin-bottom:0; }
.score-bar-row .lbl{ display:flex; justify-content:space-between; align-items:baseline; font-size:13.5px; font-weight:700; color:var(--ink); margin-bottom:7px; }
.score-bar-row .lbl span{ color:var(--blue-deep); font-weight:800; }
.score-bar-track{ height:9px; border-radius:5px; background:var(--mist-deep); overflow:hidden; }
.score-bar-track i{ display:block; height:100%; border-radius:5px; background:linear-gradient(90deg,var(--blue),var(--blue-deep)); }
.score-total{ margin-top:18px; padding-top:18px; border-top:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; }
.score-total b{ font-size:26px; color:var(--ink); }
.score-total span{ font-size:12px; color:var(--slate); font-weight:600; }

/* ---------- AI steps (numbered, connected) ---------- */
.ai-step{ display:flex; gap:16px; }
.ai-step-num{ flex:none; width:36px; height:36px; border-radius:11px; background:var(--blue-mist); color:var(--blue-deep); display:grid; place-items:center; font-weight:800; font-size:14px; }
.ai-step-body h3{ font-size:15.5px; }
.ai-step-body p{ font-size:13.5px; color:var(--slate); margin-top:4px; line-height:1.6; }

/* ---------- driving journey timeline ---------- */
.journey{ position:relative; }
.journey-stage{ position:relative; padding-left:64px; padding-bottom:30px; }
.journey-stage:last-child{ padding-bottom:0; }
.journey-stage::before{ content:''; position:absolute; left:23px; top:50px; bottom:-30px; width:2px; background:var(--line); }
.journey-stage:last-child::before{ display:none; }
.journey-num{
  position:absolute; left:0; top:0; width:48px; height:48px; border-radius:14px; z-index:1;
  background:linear-gradient(155deg,var(--black) 0%, #1B2B20 100%); color:#fff; display:grid; place-items:center; font-weight:800; font-size:15px;
}
.journey-num.is-pass{ background:linear-gradient(155deg,var(--blue),var(--blue-deep)); color:var(--black); }
.journey-body h3{ font-size:16.5px; padding-top:8px; }
.journey-split{ display:grid; grid-template-columns:1fr; gap:10px; margin-top:12px; }
.journey-pain, .journey-help{ padding:12px 14px; border-radius:12px; font-size:13px; line-height:1.6; }
.journey-pain{ background:#FDF1F1; color:#8C3437; }
.journey-pain b{ display:block; font-size:10.5px; text-transform:uppercase; letter-spacing:.04em; color:var(--red); margin-bottom:4px; }
.journey-help{ background:var(--blue-mist); color:#0C6B27; }
.journey-help b{ display:block; font-size:10.5px; text-transform:uppercase; letter-spacing:.04em; color:var(--blue-deep); margin-bottom:4px; }

/* ---------- AI readiness estimate card ---------- */
.readiness-card{
  background:linear-gradient(155deg, var(--black) 0%, #16261B 100%); border-radius:var(--radius-lg);
  padding:26px; color:#fff; position:relative; overflow:hidden; border:1px solid var(--black-line);
}
.readiness-top{ display:flex; align-items:center; gap:8px; font-size:11.5px; font-weight:800; text-transform:uppercase; letter-spacing:.04em; color:var(--blue); }
.readiness-big{ font-size:clamp(30px,5vw,42px); font-weight:800; margin-top:10px; }
.readiness-big span{ color:var(--blue); }
.readiness-sub{ color:#9AA1AC; font-size:13px; margin-top:6px; }
.readiness-pills{ display:flex; gap:8px; flex-wrap:wrap; margin-top:18px; }
.readiness-pills span{ background:rgba(255,255,255,.07); border:1px solid var(--black-line); padding:7px 12px; border-radius:999px; font-size:12px; font-weight:700; }

/* ---------- featured/promoted listings (admin-controlled placement) ---------- */
.featured-strip{ margin-bottom:28px; }
.featured-strip-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.featured-strip-head h3{ font-size:14px; display:flex; align-items:center; gap:7px; }
.featured-strip-head h3 i{ width:16px; height:16px; border-radius:5px; background:var(--amber); display:inline-block; }
.featured-strip-head span{ font-size:12px; color:var(--slate-light); font-weight:500; }
.featured-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.p-card.featured{ border:1.5px solid #F2C744; background:linear-gradient(180deg,#FFFBEF 0%, #fff 120px); position:relative; }
.p-card.featured::before{ content:'★ FEATURED'; position:absolute; top:14px; right:14px; background:var(--amber); color:#5A3D00; font-size:9.5px; font-weight:800; letter-spacing:.04em; padding:4px 8px; border-radius:6px; }

@media (max-width:900px){
  .featured-grid{
    display:flex; overflow-x:auto; scroll-snap-type:x mandatory; gap:12px;
    margin:0 -20px; padding:2px 20px 8px; -webkit-overflow-scrolling:touch;
  }
  .featured-grid::-webkit-scrollbar{ display:none; }
  .featured-grid{ scrollbar-width:none; }
  .featured-grid .p-card{ flex:0 0 80%; scroll-snap-align:center; }
}

/* ---------- instructor pricing cards (swipeable on mobile) ---------- */
.pricing-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; align-items:start; }
.price-card{ background:#fff; border:1.5px solid var(--line); border-radius:var(--radius-lg); padding:26px 22px; position:relative; }
.price-card.popular{ border-color:var(--blue); box-shadow:0 24px 56px rgba(45,127,246,.16); }
.price-card .tier-badge{ position:absolute; top:-13px; left:50%; transform:translateX(-50%); background:var(--blue); color:#fff; font-size:10.5px; font-weight:800; padding:5px 14px; border-radius:999px; text-transform:uppercase; letter-spacing:.05em; white-space:nowrap; }
.price-card h3{ font-size:16px; }
.price-card .price-tagline{ font-size:12.5px; color:var(--slate); margin-top:4px; min-height:32px; }
.price-card .price-num{ font-size:34px; font-weight:800; margin-top:14px; color:var(--ink); line-height:1; }
.price-card .price-num span{ font-size:13px; font-weight:600; color:var(--slate-light); }
.price-feat-list{ margin-top:18px; display:flex; flex-direction:column; gap:10px; padding-top:16px; border-top:1px solid var(--line); }
.price-feat-list li{ display:flex; align-items:flex-start; gap:8px; font-size:12.5px; color:var(--ink); line-height:1.5; }
.price-feat-list .feat-check{ flex:none; width:15px; height:15px; border-radius:5px; background:var(--blue-mist); color:var(--blue-deep); display:grid; place-items:center; font-size:9px; margin-top:2px; font-weight:800; }
.price-card.popular .feat-check{ background:var(--blue); color:#fff; }
.price-card .btn{ width:100%; margin-top:20px; }
.swipe-hint{ display:none; text-align:center; font-size:12px; color:var(--slate-light); font-weight:600; margin-top:10px; }

@media (max-width:900px){
  .pricing-grid{
    display:flex; overflow-x:auto; scroll-snap-type:x mandatory; gap:14px;
    margin:0 -20px; padding:4px 20px 10px; -webkit-overflow-scrolling:touch;
  }
  .pricing-grid::-webkit-scrollbar{ display:none; }
  .pricing-grid{ scrollbar-width:none; }
  .price-card{ flex:0 0 80%; scroll-snap-align:center; }
  .swipe-hint{ display:block; }
}

/* ---------- cost calculator widget ---------- */
.calc-card{ background:#fff; border:1px solid var(--line); border-radius:var(--radius-lg); padding:26px; box-shadow:var(--shadow); max-width:640px; margin:0 auto; }
.calc-row{ margin-bottom:20px; }
.calc-label{ display:block; font-size:13px; font-weight:700; color:var(--ink); margin-bottom:10px; }
.seg-control{ display:flex; flex-wrap:wrap; gap:8px; }
.seg-btn{ flex:1; min-width:118px; padding:11px 12px; border-radius:12px; border:1.5px solid var(--line); background:#fff; color:var(--slate); font-weight:700; font-size:12.5px; cursor:pointer; transition:all .15s ease; font-family:inherit; }
.seg-btn.active{ background:var(--blue-mist); border-color:var(--blue); color:var(--blue-deep); }
.seg-btn:hover{ border-color:var(--blue); }
.calc-results{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; padding-top:20px; margin-top:4px; border-top:1px solid var(--line); }
.calc-result{ text-align:center; padding:14px 6px; border-radius:12px; background:var(--mist); }
.calc-result.highlight{ background:var(--blue-mist); }
.calc-result b{ display:block; font-size:18px; font-weight:800; color:var(--ink); }
.calc-result.highlight b{ color:var(--blue-deep); }
.calc-result span{ font-size:10px; color:var(--slate); font-weight:600; display:block; margin-top:4px; line-height:1.3; }

/* ---------- live chat widget ---------- */
.chat-panel{
  position:fixed; right:16px; bottom:88px; width:min(360px, calc(100vw - 32px)); height:min(480px, calc(100vh - 160px));
  background:#fff; border-radius:var(--radius-lg); box-shadow:0 30px 70px rgba(20,30,25,.25); border:1px solid var(--line);
  display:flex; flex-direction:column; z-index:401; overflow:hidden;
  opacity:0; transform:translateY(16px) scale(.97); pointer-events:none; transition:opacity .2s ease, transform .2s ease;
}
.chat-panel.open{ opacity:1; transform:translateY(0) scale(1); pointer-events:auto; }
.chat-head{ background:linear-gradient(120deg,var(--emerald) 0%, var(--emerald-deep) 100%); color:#fff; padding:16px 18px; display:flex; align-items:center; justify-content:space-between; flex:none; }
.chat-head-info{ display:flex; align-items:center; gap:10px; }
.chat-head-dot{ width:9px; height:9px; border-radius:50%; background:#fff; box-shadow:0 0 0 3px rgba(255,255,255,.35); }
.chat-head b{ font-size:14px; display:block; }
.chat-head span{ font-size:11px; opacity:.85; }
.chat-close{ background:rgba(255,255,255,.18); border:0; color:#fff; width:28px; height:28px; border-radius:8px; cursor:pointer; font-size:14px; display:grid; place-items:center; }
.chat-messages{ flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; background:var(--mist); }
.chat-bubble{ max-width:80%; padding:10px 13px; border-radius:14px; font-size:13.5px; line-height:1.5; }
.chat-bubble.bot{ background:#fff; border:1px solid var(--line); align-self:flex-start; border-bottom-left-radius:4px; }
.chat-bubble.user{ background:var(--blue); color:var(--black); font-weight:600; align-self:flex-end; border-bottom-right-radius:4px; }
.chat-typing{ display:flex; gap:4px; padding:12px 14px; background:#fff; border:1px solid var(--line); border-radius:14px; border-bottom-left-radius:4px; align-self:flex-start; }
.chat-typing i{ width:6px; height:6px; border-radius:50%; background:var(--slate-light); animation:chatTyping 1s infinite ease-in-out; }
.chat-typing i:nth-child(2){ animation-delay:.15s; }
.chat-typing i:nth-child(3){ animation-delay:.3s; }
@keyframes chatTyping{ 0%,60%,100%{ transform:translateY(0); opacity:.5; } 30%{ transform:translateY(-4px); opacity:1; } }
.chat-input-row{ display:flex; gap:8px; padding:12px; border-top:1px solid var(--line); background:#fff; flex:none; }
.chat-input-row input{ flex:1; border:1.5px solid var(--line); border-radius:12px; padding:10px 13px; font-size:13.5px; font-family:inherit; min-width:0; }
.chat-input-row input:focus{ outline:0; border-color:var(--blue); }
.chat-input-row button{ width:40px; height:40px; border-radius:11px; background:var(--blue); border:0; flex:none; display:grid; place-items:center; cursor:pointer; font-size:15px; }

/* ---------- breadcrumb ---------- */
.crumbs{ display:flex; align-items:center; gap:8px; font-size:12.5px; font-weight:600; color:var(--slate-light); flex-wrap:wrap; }
.crumbs a:hover{ color:var(--blue-deep); }
.crumbs span{ opacity:.5; }

/* ---------- keyword block / link cloud (AI/SEO) ---------- */
.kw-cloud{ display:flex; flex-wrap:wrap; gap:10px; }
.kw-cloud a{ background:#fff; border:1.5px solid var(--line); padding:9px 15px; border-radius:10px; font-size:13.5px; font-weight:600; color:var(--ink); }
.kw-cloud a:hover{ border-color:var(--blue); color:var(--blue-deep); }

/* ---------- utility ---------- */
.flex{ display:flex; }
.flex-between{ display:flex; align-items:center; justify-content:space-between; }
.gap-8{ gap:8px;} .gap-10{ gap:10px;} .gap-12{ gap:12px;} .gap-14{ gap:14px;} .gap-16{ gap:16px;}
.mt-8{ margin-top:8px;} .mt-12{ margin-top:12px;} .mt-16{ margin-top:16px;} .mt-24{ margin-top:24px;} .mt-32{ margin-top:32px;}
.hide-mobile{ display:none; }
.show-mobile{ display:block; }
.center{ text-align:center; margin-left:auto; margin-right:auto; }
.muted{ color:var(--slate); }
.relative{ position:relative; }

/* =========================================================
   TABLET — 768px+
   ========================================================= */
@media (min-width:768px){
  .section{ padding:74px 0; }
  .section-tight{ padding:50px 0; }
  .grid-2{ grid-template-columns:repeat(2,1fr); }
  .grid-3{ grid-template-columns:repeat(3,1fr); }
  .stat-strip{ grid-template-columns:repeat(4,1fr); }
  .stat-strip.divided .stat:not(:first-child){ border-left:1px solid var(--black-line); padding-left:24px; }
  .scroller > *{ flex:0 0 360px; }
  .foot-grid{ grid-template-columns:1.4fr 1fr 1fr 1fr; }
  .ai-search{ flex-direction:row; align-items:center; padding:10px 10px 10px 22px; border-radius:999px; }
  .ai-search input{ padding:12px 0; flex:1; min-width:0; }
  .ai-search .ai-row{ border-top:0; padding-top:0; flex:none; }
  .hide-mobile{ display:block; }
  .show-mobile{ display:none; }
}

/* =========================================================
   DESKTOP — 1100px+
   ========================================================= */
@media (min-width:1100px){
  .container{ width:min(var(--container), calc(100% - 64px)); }
  .nav-links{ display:flex; align-items:center; gap:2px; font-size:13.5px; font-weight:500; }
  .nav-links > *{ position:relative; }
  .nav-links > a, .nav-mega-trigger > a{
    color:rgba(255,255,255,.65); padding:8px 13px; border-radius:8px;
    transition:color .15s ease, background .15s ease;
    display:flex; align-items:center; gap:5px; white-space:nowrap; letter-spacing:-.01em;
  }
  .nav-links > a:hover, .nav-mega-trigger > a:hover, .nav-mega-trigger.open > a{ color:#fff; background:rgba(255,255,255,.07); }
  .nav-links > a.active, .nav-mega-trigger.open > a{ color:#fff; }

  /* ---------- mega menu (desktop, full-width, premium) ---------- */
  .nav-mega-trigger{ position:relative; }
  .nav-mega-chevron{
    width:14px; height:14px; display:inline-block;
    background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,.5)' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-size:contain; background-repeat:no-repeat; background-position:center;
    transition:transform .2s cubic-bezier(.4,0,.2,1);
    flex:none;
  }
  .nav-mega-trigger.open .nav-mega-chevron,
  .nav-mega-trigger:focus-within .nav-mega-chevron{ transform:rotate(180deg); }

  /* PANEL */
  .nav-mega-panel{
    position:fixed; left:0; right:0; top:68px;
    background:rgba(8,21,48,.97);
    -webkit-backdrop-filter:blur(32px) saturate(180%);
    backdrop-filter:blur(32px) saturate(180%);
    border-bottom:1px solid rgba(255,255,255,.07);
    box-shadow:0 40px 80px rgba(0,0,0,.6);
    opacity:0; visibility:hidden; pointer-events:none;
    transform:translateY(-8px);
    transition:opacity .22s cubic-bezier(.4,0,.2,1), transform .22s cubic-bezier(.4,0,.2,1), visibility 0s linear .22s;
    z-index:380;
  }
  .nav-mega-trigger.open .nav-mega-panel{
    opacity:1; visibility:visible; pointer-events:auto; transform:translateY(0);
    transition:opacity .22s cubic-bezier(.4,0,.2,1), transform .22s cubic-bezier(.4,0,.2,1), visibility 0s;
  }

  /* INNER GRID */
  .nav-mega-inner{
    max-width:1200px; margin:0 auto; padding:36px 40px 40px;
    display:grid; grid-template-columns:260px 1fr 1fr 1fr; gap:0;
  }

  /* LEFT FEATURED PANEL */
  .nav-mega-featured{
    padding:28px 32px 28px 0; border-right:1px solid rgba(255,255,255,.07);
    display:flex; flex-direction:column; gap:0;
  }
  .nav-mega-featured-eyebrow{
    font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
    color:rgba(255,255,255,.3); margin-bottom:16px;
  }
  .nav-mega-featured-title{
    font-size:22px; font-weight:700; color:#fff; line-height:1.25; letter-spacing:-.02em; margin-bottom:10px;
  }
  .nav-mega-featured-desc{
    font-size:13px; color:rgba(255,255,255,.5); line-height:1.65; flex:1; margin-bottom:24px;
  }
  .nav-mega-featured-cta{
    display:inline-flex; align-items:center; gap:7px;
    font-size:13px; font-weight:600; color:#2D7FF6;
    transition:gap .18s ease, color .15s ease;
  }
  .nav-mega-featured-cta:hover{ color:#5ba3ff; gap:10px; }
  .nav-mega-featured-cta-arrow{ font-size:16px; line-height:1; }

  /* RIGHT LINK COLUMNS */
  .nav-mega-col{
    padding:28px 0 28px 28px;
    display:flex; flex-direction:column; gap:0;
    border-right:1px solid rgba(255,255,255,.04);
  }
  .nav-mega-col:last-child{ border-right:0; }
  .nav-mega-col h4{
    font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
    color:rgba(255,255,255,.3); margin-bottom:14px; padding:0 4px;
  }
  .nav-mega-item{
    display:flex; align-items:center; gap:10px;
    padding:9px 10px; border-radius:8px;
    transition:background .12s ease; margin-bottom:2px;
  }
  .nav-mega-item:hover{ background:rgba(255,255,255,.06); }
  .nav-mega-item:hover .nav-mega-item-arrow{ opacity:1; transform:translateX(0); }
  .nav-mega-item-icon{
    width:32px; height:32px; border-radius:8px;
    background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.07);
    display:grid; place-items:center; flex:none; color:rgba(255,255,255,.6);
  }
  .nav-mega-item-icon svg{ width:15px; height:15px; }
  .nav-mega-item-text{ flex:1; min-width:0; }
  .nav-mega-item b{ display:block; font-size:13px; color:rgba(255,255,255,.88); font-weight:600; letter-spacing:-.01em; }
  .nav-mega-item small{ display:block; font-size:11px; color:rgba(255,255,255,.38); margin-top:2px; line-height:1.4; }
  .nav-mega-item-arrow{
    font-size:13px; color:rgba(255,255,255,.3);
    opacity:0; transform:translateX(-4px);
    transition:opacity .15s ease, transform .15s ease;
    flex:none;
  }

  /* CITIES GRID (Locations panel) */
  .nav-mega-cities{
    display:grid; grid-template-columns:repeat(2,1fr); gap:2px;
  }
  .nav-mega-cities a{
    font-size:12.5px; color:rgba(255,255,255,.6); font-weight:500;
    padding:8px 10px; border-radius:7px; letter-spacing:-.005em;
    transition:background .12s ease, color .12s ease;
  }
  .nav-mega-cities a:hover{ background:rgba(255,255,255,.07); color:#fff; }

  /* DIVIDER LINE between panels */
  .nav-mega-divider{ width:1px; background:rgba(255,255,255,.07); margin:28px 0; }

  .nav-mega-foot{ margin-top:20px; padding-top:16px; border-top:1px solid rgba(255,255,255,.07); }
  .nav-mega-foot a{ font-size:12.5px; color:rgba(45,127,246,.8); font-weight:600; }
  .nav-mega-foot a:hover{ color:#5ba3ff; }

  .hamburger{ display:none; }
  .nav-actions .btn-ghost-dark{ display:inline-flex; }

  /* Override action buttons for dark nav */
  .topnav .btn-ghost-dark{
    color:rgba(255,255,255,.75); border-color:rgba(255,255,255,.18); background:transparent;
  }
  .topnav .btn-ghost-dark:hover{ background:rgba(255,255,255,.08); color:#fff; border-color:rgba(255,255,255,.3); }
  .topnav .btn-green{ background:var(--blue); border-color:var(--blue); }
  .grid-4{ grid-template-columns:repeat(4,1fr); }
  .grid-3-d{ grid-template-columns:repeat(3,1fr); }
  .hero-grid{ grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr); gap:30px; }
  .step-row{ position:relative; }
  .step-row::before{ content:''; position:absolute; top:42px; left:16.6%; right:16.6%; height:1px; background:repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px); z-index:0; }
  .step-row .p-card{ position:relative; z-index:1; }
  .ai-explain-grid{ display:grid; grid-template-columns:1fr .85fr; gap:48px; align-items:start; }
  .journey-grid{ display:grid; grid-template-columns:1fr .8fr; gap:48px; align-items:start; }
  .scroller{ overflow:visible; display:grid; grid-template-columns:repeat(3,1fr); margin:0; padding:0; }
  .scroller.scroller-4{ grid-template-columns:repeat(4,1fr); }
  .scroller > *{ flex:none; max-width:none; }
  .sticky-cta{ display:none; }
  .browse-layout{ display:grid; grid-template-columns:280px 1fr; gap:30px; align-items:start; }
  .filters-sidebar{ display:block; position:sticky; top:140px; background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:22px; }
  [data-filters-open]{ display:none; }
  .profile-head{ flex-direction:row; align-items:flex-start; justify-content:space-between; gap:40px; }
  .profile-head-main{ flex:1; }
  .booking-card{ width:300px; flex:none; }
  .profile-layout{ display:grid; grid-template-columns:1fr 300px; gap:40px; align-items:start; }
}
@media (min-width:1300px){
  .grid-4-d{ grid-template-columns:repeat(4,1fr); }
}

/* ---------- scroll-reveal microanimations ---------- */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .65s cubic-bezier(.16,.84,.44,1), transform .65s cubic-bezier(.16,.84,.44,1); will-change:opacity, transform; }
.reveal-in{ opacity:1; transform:translateY(0); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
}

