/* =========================================================
   SQ DRIVING SCHOOL — Design System
   A brand owned & managed by DriveSQ
   Crafted by Mohammed Qaim Abbas · sqwebsites.co.uk
   ========================================================= */

/* Warm, comfortable light palette by default. Dark "zones" (hero, nav, CTA, footer) keep the neon SQ glow. */
:root {
  --bg: #fbf7f2;
  --bg-2: #ffffff;
  --bg-3: #f4ece3;
  --panel: #ffffff;
  --panel-2: #fff9f4;
  --line: rgba(70, 35, 20, 0.09);
  --line-2: rgba(70, 35, 20, 0.16);
  --red: #e3141c;
  --red-2: #c80f16;
  --red-deep: #8a0000;
  --red-hot: #ff4d4d;
  --red-glow: rgba(255, 31, 31, 0.45);
  --red-soft: rgba(227, 20, 28, 0.08);
  --white: #1f1714;
  --grey: #5d534d;
  --grey-2: #8a7f78;
  --green: #12a35a;
  --amber: #d98a00;
  --shadow: 0 18px 40px -24px rgba(90, 40, 20, 0.35), 0 2px 6px -2px rgba(90, 40, 20, 0.08);
  --radius: 16px;
  --radius-lg: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font-display: "Russo One", "Outfit", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --maxw: 1240px;
  --nav-h: 76px;
  color-scheme: light;
}

:root[data-theme="dark"], .zone-dark {
  --bg: #050506;
  --bg-2: #0b0b0d;
  --bg-3: #121215;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --red: #ff1f1f;
  --red-2: #e00000;
  --red-glow: rgba(255, 31, 31, 0.55);
  --red-soft: rgba(255, 31, 31, 0.12);
  --white: #f6f4f1;
  --grey: #a3a0a6;
  --grey-2: #6c6c74;
  --green: #22e07a;
  --amber: #ffb020;
  --shadow: none;
  color-scheme: dark;
}
.zone-dark { background: var(--bg); color: var(--white); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
body.is-locked { overflow: hidden; }
img, svg, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 9999;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; margin: 0 0 0.5em; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1em; color: var(--grey); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--grey); max-width: 680px; }
.red { color: var(--red); }
.glow-text { color: var(--red); text-shadow: 0 0 18px var(--red-glow), 0 0 42px rgba(255, 31, 31, 0.35); }
.mono { font-family: var(--font-mono); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 10px var(--red), 0 0 20px var(--red-glow);
  animation: blink 1.6s infinite;
}
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- SQ Logo ---------- */
.sq-logo {
  font-family: var(--font-display); font-style: italic; color: var(--red);
  letter-spacing: -0.02em; line-height: 1; display: inline-block; position: relative;
  text-shadow: 0 0 6px rgba(255, 60, 60, 0.9), 0 0 16px var(--red-glow), 0 0 34px rgba(255, 31, 31, 0.45), 0 0 70px rgba(255, 31, 31, 0.3);
  animation: neon-pulse 3.2s ease-in-out infinite;
}
.sq-logo--nav { font-size: 2rem; }
.sq-logo--xl { font-size: clamp(7rem, 26vw, 19rem); }
.sq-logo--flicker { animation: neon-flicker 4.5s linear infinite, neon-pulse 3.2s ease-in-out infinite; }
@keyframes neon-pulse {
  0%, 100% { text-shadow: 0 0 6px rgba(255, 60, 60, 0.9), 0 0 16px var(--red-glow), 0 0 34px rgba(255, 31, 31, 0.45), 0 0 70px rgba(255, 31, 31, 0.3); }
  50% { text-shadow: 0 0 8px rgba(255, 90, 90, 1), 0 0 26px rgba(255, 31, 31, 0.8), 0 0 60px rgba(255, 31, 31, 0.6), 0 0 120px rgba(255, 31, 31, 0.45); }
}
@keyframes neon-flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: 0.35; }
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; white-space: nowrap; }
.brand__name { font-family: var(--font-display); font-size: 0.92rem; letter-spacing: 0.08em; text-transform: uppercase; }
.brand__sub { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.2em; color: var(--grey); text-transform: uppercase; }

/* ---------- Preloader: engine start ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 10000; background: #070708;
  display: grid; place-items: center; transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__inner { text-align: center; }
.preloader .sq-logo { font-size: clamp(5rem, 18vw, 9rem); opacity: 0; animation: soft-on 0.7s 0.05s var(--ease) forwards; }
@keyframes soft-on { from { opacity: 0; transform: scale(0.92); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes power-on {
  0% { opacity: 0; filter: blur(8px); }
  10% { opacity: 0.8; filter: blur(0); }
  14% { opacity: 0.1; }
  22% { opacity: 1; }
  26% { opacity: 0.3; }
  34%, 100% { opacity: 1; filter: blur(0); }
}
.preloader__bar { width: 200px; height: 3px; margin: 26px auto 12px; background: rgba(255, 255, 255, 0.08); border-radius: 3px; overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0; background: var(--red); box-shadow: 0 0 12px var(--red); animation: load 0.8s var(--ease) forwards; }
@keyframes load { to { width: 100%; } }
.preloader__label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.3em; color: var(--grey); text-transform: uppercase; }

/* ---------- Page transition ---------- */
.page-wipe {
  position: fixed; inset: 0; z-index: 9998; pointer-events: none; background: var(--bg); opacity: 0; transition: opacity 0.25s var(--ease);
}
.page-wipe.is-in { opacity: 0.85; }

/* ---------- Scroll progress + road ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1001; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-hot)); box-shadow: 0 0 12px var(--red); }

.road-rail { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); height: 58vh; width: 18px; z-index: 50; pointer-events: none; }
.road-rail__track { position: absolute; inset: 0; margin: 0 auto; width: 6px; border-radius: 6px; background: var(--panel-2); overflow: hidden; }
.road-rail__track::after {
  content: ""; position: absolute; left: 2px; top: 0; bottom: 0; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--grey-2) 0 8px, transparent 8px 16px);
  animation: dashes 1s linear infinite; opacity: 0.6;
}
@keyframes dashes { to { background-position: 0 16px; } }
.road-rail__car { position: absolute; left: 50%; top: 0; transform: translate(-50%, -50%); width: 18px; filter: drop-shadow(0 0 8px var(--red)); transition: top 0.15s linear; }
@media (max-width: 900px) { .road-rail { display: none; } }

/* ---------- Cursor glow ---------- */
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(255, 31, 31, 0.07), transparent 65%);
  transform: translate(-50%, -50%); transition: opacity 0.3s; mix-blend-mode: screen;
}
.cursor-dot {
  position: fixed; left: 0; top: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  pointer-events: none; z-index: 10001; transform: translate(-50%, -50%);
  box-shadow: 0 0 12px var(--red); transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s;
}
.cursor-dot.is-hover { width: 44px; height: 44px; background: rgba(255, 31, 31, 0.18); border: 1px solid var(--red); }
@media (hover: none), (max-width: 900px) { .cursor-glow, .cursor-dot { display: none; } }

/* ---------- Background FX ---------- */
.fx-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.45; display: none; }
:root[data-theme="dark"] .fx-canvas { display: block; }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.noise {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
main, header, footer, section { position: relative; z-index: 2; }

/* ---------- Top bar ---------- */
.topbar {
  position: relative; z-index: 1002; background: linear-gradient(90deg, var(--red-deep), var(--red-2), var(--red-deep));
  background-size: 200% 100%; animation: shimmer 6s linear infinite;
  color: #fff; font-size: 0.85rem; text-align: center; padding: 8px 16px;
}
.topbar a { text-decoration: underline; font-weight: 600; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  position: relative; padding: 8px 9px; font-size: 0.88rem; color: var(--grey); border-radius: 8px; transition: color 0.2s; white-space: nowrap;
}
.nav__links a::after {
  content: ""; position: absolute; left: 9px; right: 9px; bottom: 2px; height: 2px; background: var(--red);
  box-shadow: 0 0 8px var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--white); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: var(--panel); transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.icon-btn:hover { border-color: var(--red); background: var(--red-soft); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.lang-select {
  height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); padding: 0 10px; font-size: 0.85rem;
}
.lang-select option { background: var(--bg-2); color: var(--white); }
.burger { display: none; }
.burger span { display: block; width: 20px; height: 2px; background: var(--white); margin: 4px auto; transition: transform 0.3s var(--ease), opacity 0.3s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 999; background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column; justify-content: center; padding: 100px 28px 40px;
  clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path 0.7s var(--ease); overflow-y: auto;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 40px) 40px); }
.mobile-menu a { display: block; font-family: var(--font-display); font-size: clamp(1.5rem, 6vw, 2.2rem); padding: 8px 0; color: var(--white); opacity: 0; transform: translateX(-30px); transition: opacity 0.4s, transform 0.5s var(--ease), color 0.2s; }
.mobile-menu.is-open a { opacity: 1; transform: none; }
.mobile-menu a:hover { color: var(--red); }

@media (max-width: 1320px) {
  .nav__links { display: none; }
  .burger { display: grid; }
}
@media (max-width: 520px) { .lang-select { display: none; } .nav .btn--sm { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; letter-spacing: 0.01em;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, border-color 0.3s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 0 0 0 var(--red-glow), 0 10px 30px -10px var(--red-glow); }
.btn--red::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.8s var(--ease);
}
.btn--red:hover { box-shadow: 0 0 30px 2px var(--red-glow), 0 14px 40px -10px var(--red-glow); transform: translateY(-2px); }
.btn--red:hover::before { transform: translateX(120%); }
.btn--ghost { border: 1px solid var(--line-2); background: var(--panel); color: var(--white); }
.btn--ghost:hover { border-color: var(--red); background: var(--red-soft); transform: translateY(-2px); }
.btn--wa { background: #25d366; color: #04210f; }
.btn--wa:hover { box-shadow: 0 0 30px rgba(37, 211, 102, 0.5); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 0.88rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.45); transform: scale(0); animation: ripple 0.7s linear; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--tight { padding: clamp(50px, 7vw, 80px) 0; }
.section--alt { background: linear-gradient(180deg, transparent, var(--bg-3) 12%, var(--bg-3) 88%, transparent); }
.section__head { margin-bottom: clamp(40px, 6vw, 70px); }
.section__head.center { display: flex; flex-direction: column; align-items: center; }

/* ---------- Hero ---------- */
.hero { min-height: calc(100svh - var(--nav-h)); display: flex; align-items: center; padding: 60px 0 90px; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(110%); animation: line-up 1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: 0.12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: 0.24s; }
@keyframes line-up { to { transform: none; } }
.hero__visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero__ring {
  position: absolute; width: min(460px, 90vw); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line-2); animation: spin 30s linear infinite;
}
.hero__ring::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 16px var(--red); }
.hero__ring--2 { width: min(340px, 70vw); animation-duration: 18s; animation-direction: reverse; border-style: dashed; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 31, 31, 0.35), transparent 65%); filter: blur(30px); animation: breathe 5s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.15); opacity: 0.7; } }
.hero__powered { margin-top: 12px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.25em; color: var(--grey); text-transform: uppercase; text-align: center; }
.hero__powered b { color: var(--white); }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--panel); font-size: 0.85rem; color: var(--white);
}
.chip svg { width: 16px; height: 16px; color: var(--red); }
.chip--red { border-color: rgba(255, 31, 31, 0.5); background: var(--red-soft); }
.type-cursor::after { content: "|"; color: var(--red); animation: blink 0.9s infinite; margin-left: 2px; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { order: -1; min-height: 300px; }
}

/* ---------- Speed lines (hero) ---------- */
.speed-lines { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.speed-lines i {
  position: absolute; height: 2px; width: 30%; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent); opacity: 0; animation: streak linear infinite;
}
@keyframes streak { 0% { transform: translateX(-120%); opacity: 0; } 20% { opacity: 0.35; } 100% { transform: translateX(420%); opacity: 0; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; background: var(--bg-2); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: 1.15rem; color: var(--grey); white-space: nowrap; }
.marquee__item::after { content: "◆"; color: var(--red); font-size: 0.7rem; text-shadow: 0 0 10px var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  position: relative; padding: 30px; border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease), border-color 0.3s, background 0.3s; transform-style: preserve-3d; overflow: hidden;
}
.card:hover { border-color: rgba(255, 31, 31, 0.4); background: var(--panel-2); }
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 0.4s;
  background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 31, 31, 0.14), transparent 45%);
}
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 22px;
  background: var(--red-soft); border: 1px solid rgba(255, 31, 31, 0.3); color: var(--red);
  box-shadow: inset 0 0 20px rgba(255, 31, 31, 0.15);
}
.card__icon svg { width: 26px; height: 26px; }
.card__num { position: absolute; top: 20px; right: 24px; font-family: var(--font-display); font-size: 3.2rem; color: transparent; -webkit-text-stroke: 1px var(--line-2); }

/* Rotating neon border */
.neon-border { position: relative; }
.neon-border::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, var(--red) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: rotate-angle 4s linear infinite;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes rotate-angle { to { --angle: 360deg; } }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; padding: 34px 30px; }
.price-card--featured { background: linear-gradient(180deg, rgba(255, 31, 31, 0.12), var(--panel)); border-color: rgba(255, 31, 31, 0.5); }
.price-card__tag {
  position: absolute; top: 18px; right: 18px; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; background: var(--red); color: #fff; box-shadow: 0 0 16px var(--red-glow);
}
.price { font-family: var(--font-display); font-size: 3.4rem; line-height: 1; color: var(--white); margin: 14px 0 4px; }
.price small { font-family: var(--font-body); font-size: 1rem; color: var(--grey); }
.price s { font-size: 1.4rem; color: var(--grey-2); margin-right: 6px; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 26px; flex: 1; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; color: var(--grey); font-size: 0.95rem; }
.price-card li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 4px; border-radius: 50%; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff1f1f' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- Discount cards ---------- */
.discount { display: flex; flex-direction: column; gap: 6px; }
.discount__badge { font-family: var(--font-display); font-size: 2.6rem; color: var(--red); text-shadow: 0 0 20px var(--red-glow); line-height: 1; }
.discount__who { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); }
.discount__proof { font-size: 0.85rem; color: var(--grey-2); border-top: 1px dashed var(--line-2); padding-top: 12px; margin-top: 8px; }

/* ---------- Offer banner ---------- */
.offer {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(32px, 6vw, 64px);
  background: radial-gradient(circle at 85% 20%, rgba(255, 31, 31, 0.45), transparent 50%), linear-gradient(135deg, #1a0202, #0a0a0c 70%);
  border: 1px solid rgba(255, 31, 31, 0.4); color: #f6f4f1;
}
.offer p { color: #c9c6c2; }
.offer__codes { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0; }
.offer__code {
  font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.6rem); padding: 10px 22px; border-radius: 14px;
  border: 2px solid var(--red); color: #fff; text-shadow: 0 0 14px var(--red); box-shadow: 0 0 24px rgba(255, 31, 31, 0.35), inset 0 0 24px rgba(255, 31, 31, 0.25);
  animation: code-pulse 2.4s ease-in-out infinite;
}
.offer__code:nth-child(2) { animation-delay: 0.3s; }
.offer__code:nth-child(3) { animation-delay: 0.6s; }
@keyframes code-pulse { 50% { box-shadow: 0 0 44px rgba(255, 31, 31, 0.65), inset 0 0 30px rgba(255, 31, 31, 0.4); } }
.offer__price { font-family: var(--font-display); font-size: clamp(3.4rem, 10vw, 7rem); line-height: 1; color: #fff; text-shadow: 0 0 30px var(--red); }

/* ---------- Stats / counters ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.stat { background: var(--bg); padding: 34px 24px; text-align: center; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; color: var(--white); }
.stat__num .red { text-shadow: 0 0 18px var(--red-glow); }
.stat__label { margin-top: 10px; font-size: 0.85rem; color: var(--grey); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Steps / timeline ---------- */
.timeline { position: relative; display: grid; gap: 26px; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: var(--line-2); }
.timeline__fill { position: absolute; left: 27px; top: 10px; width: 2px; height: 0; background: var(--red); box-shadow: 0 0 12px var(--red); transition: height 0.1s linear; }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 22px; align-items: start; }
.step__dot {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 1.2rem;
  background: var(--bg); border: 2px solid var(--line-2); position: relative; z-index: 1; transition: border-color 0.4s, box-shadow 0.4s, color 0.4s;
}
.step.is-active .step__dot { border-color: var(--red); color: var(--red); box-shadow: 0 0 22px var(--red-glow); }
.step__body { padding: 22px 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.step__body h3 { font-size: 1.25rem; }

/* ---------- Speedometer ---------- */
.gauge { position: relative; width: min(320px, 80vw); aspect-ratio: 1; }
.gauge svg { width: 100%; height: 100%; overflow: visible; }
.gauge__val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 30px; }
.gauge__val b { font-family: var(--font-display); font-size: 3.6rem; line-height: 1; }
.gauge__val span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--grey); text-transform: uppercase; }

/* ---------- Tools ---------- */
.tool { padding: clamp(24px, 4vw, 40px); border-radius: 30px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tool__head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.tool__head .card__icon { margin: 0; }
.tool__head h3 { margin: 0; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label, .field .label { font-size: 0.85rem; color: var(--grey); font-weight: 500; }
.input, .select, .textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2);
  transition: border-color 0.2s, box-shadow 0.2s; font-size: 1rem;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.select option { background: var(--bg-2); }
.textarea { min-height: 120px; resize: vertical; }
.input--big { font-family: var(--font-display); font-size: 1.6rem; text-transform: uppercase; letter-spacing: 0.08em; text-align: center; }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--grey); font-size: 0.9rem;
  cursor: pointer; transition: all 0.25s var(--ease);
}
.seg label:hover { border-color: var(--red); color: var(--white); }
.seg input:checked + label { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 18px var(--red-glow); }
.seg input:focus-visible + label { outline: 2px solid var(--red); outline-offset: 2px; }

.range { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--red) var(--p, 0%), var(--line-2) var(--p, 0%)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 4px solid var(--red); box-shadow: 0 0 14px var(--red); cursor: grab; }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--red); box-shadow: 0 0 14px var(--red); cursor: grab; }

.result {
  margin-top: 22px; padding: 24px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line-2);
  display: none; animation: pop-in 0.6s var(--ease-back);
}
.result.is-visible { display: block; }
.result--ok { border-color: rgba(34, 224, 122, 0.5); box-shadow: 0 0 30px rgba(34, 224, 122, 0.12); }
.result--warn { border-color: rgba(255, 176, 32, 0.5); }
.result--bad { border-color: rgba(255, 31, 31, 0.5); }
.result--offer { border-color: var(--red); box-shadow: 0 0 40px rgba(255, 31, 31, 0.3); background: linear-gradient(135deg, rgba(255, 31, 31, 0.14), var(--bg-2)); }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
.result__big { font-family: var(--font-display); font-size: clamp(2.2rem, 6vw, 3.4rem); line-height: 1; margin: 6px 0 10px; }

.summary { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 0.95rem; }
.summary td { padding: 9px 0; border-bottom: 1px dashed var(--line-2); }
.summary td:last-child { text-align: right; font-family: var(--font-mono); }
.summary tr.total td { border: 0; padding-top: 16px; font-family: var(--font-display); font-size: 1.4rem; color: var(--white); }
.summary tr.save td { color: var(--green); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist label {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line);
  cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.checklist input { width: 22px; height: 22px; accent-color: var(--red); flex: none; }
.checklist label:has(input:checked) { border-color: rgba(255, 31, 31, 0.5); background: var(--red-soft); }

.progress { height: 12px; border-radius: 12px; background: var(--line); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-hot)); box-shadow: 0 0 14px var(--red); transition: width 0.8s var(--ease); }

/* ---------- Quiz ---------- */
.quiz__q { font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.25; margin-bottom: 22px; }
.quiz__opts { display: grid; gap: 12px; }
.quiz__opt {
  text-align: left; padding: 16px 20px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2);
  transition: border-color 0.2s, background 0.2s, transform 0.2s; display: flex; gap: 14px; align-items: center;
}
.quiz__opt:hover:not(:disabled) { border-color: var(--red); transform: translateX(4px); }
.quiz__opt b { font-family: var(--font-mono); color: var(--red); }
.quiz__opt.is-right { border-color: var(--green); background: rgba(34, 224, 122, 0.12); }
.quiz__opt.is-wrong { border-color: var(--red); background: var(--red-soft); animation: shake 0.4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.quiz__explain { margin-top: 16px; padding: 14px 18px; border-left: 3px solid var(--red); background: var(--panel); border-radius: 0 12px 12px 0; display: none; }
.quiz__explain.is-visible { display: block; animation: pop-in 0.4s var(--ease); }
.quiz__meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--grey); }

/* ---------- Hazard game ---------- */
.hazard-stage { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: #0e1116; aspect-ratio: 16 / 10; cursor: crosshair; user-select: none; }
.hazard-stage svg { width: 100%; height: 100%; }
.hazard-hit { cursor: crosshair; }
.hazard-mark { position: absolute; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; border: 3px solid var(--green); box-shadow: 0 0 20px var(--green); pointer-events: none; animation: ping 0.6s var(--ease-back); }
.hazard-mark--miss { border-color: var(--red); box-shadow: 0 0 20px var(--red); width: 30px; height: 30px; margin: -15px 0 0 -15px; }
@keyframes ping { from { transform: scale(0.2); opacity: 0; } }
.hud { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hud .chip b { font-family: var(--font-mono); color: var(--red); }

/* ---------- Postcode map dots ---------- */
.pc-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.pc { font-family: var(--font-mono); font-size: 0.8rem; padding: 6px 10px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); color: var(--grey); transition: all 0.2s; }
.pc:hover { border-color: var(--red); color: var(--white); }
.pc--hot { border-color: var(--red); color: #fff; background: var(--red-soft); box-shadow: 0 0 14px rgba(255, 31, 31, 0.3); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); transition: border-color 0.3s, background 0.3s; }
.faq details[open] { border-color: rgba(255, 31, 31, 0.4); background: var(--panel-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-size: 1.6rem; color: var(--red); transition: transform 0.35s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details > div { padding: 0 24px 22px; color: var(--grey); }
.faq details[open] > div { animation: pop-in 0.4s var(--ease); }

/* ---------- Portal mock ---------- */
.phone {
  width: min(320px, 82vw); aspect-ratio: 9 / 19; border-radius: 44px; padding: 12px; margin: 0 auto;
  background: linear-gradient(145deg, #1d1d22, #08080a); border: 1px solid #2a2a30;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.8), 0 0 80px -10px rgba(255, 31, 31, 0.35); position: relative;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-14px) rotate(-1deg); } }
.phone__screen { width: 100%; height: 100%; border-radius: 34px; overflow: hidden; background: #0a0a0c; padding: 26px 16px 16px; color: #f6f4f1; font-size: 0.78rem; position: relative; }
.phone__notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; border-radius: 20px; background: #000; z-index: 2; }
.app-card { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.app-card small { color: #8a8a92; display: block; font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; }
.app-card b { font-family: var(--font-display); font-size: 1.2rem; }
.app-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; background: rgba(34, 224, 122, 0.15); color: var(--green); font-size: 0.66rem; font-weight: 700; }
.app-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.app-row .app-card { text-align: center; padding: 10px 4px; }
.app-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin-top: 6px; }
.app-bar span { display: block; height: 100%; background: var(--red); box-shadow: 0 0 8px var(--red); width: 0; transition: width 1.6s var(--ease); }
.is-in .app-bar span { width: var(--w); }
.bubble { padding: 9px 12px; border-radius: 14px; margin-bottom: 8px; max-width: 85%; font-size: 0.72rem; line-height: 1.4; }
.bubble--in { background: rgba(255, 255, 255, 0.07); border-bottom-left-radius: 4px; }
.bubble--out { background: var(--red); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }
.ticks { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; color: var(--grey); }
.ticks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 7px; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; box-shadow: 0 0 12px var(--red-glow); }
.ticks li b { color: var(--white); }

/* ---------- Page header ---------- */
.page-hero { padding: clamp(70px, 10vw, 130px) 0 clamp(50px, 7vw, 80px); overflow: hidden; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.75rem; color: var(--grey); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 18px; }
.crumbs a:hover { color: var(--red); }
.crumbs span[aria-hidden] { color: var(--red); }

/* ---------- Big CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center; border-radius: 32px; padding: clamp(50px, 8vw, 100px) 24px;
  background: radial-gradient(ellipse at 50% 120%, rgba(255, 31, 31, 0.5), transparent 60%), var(--bg-2); border: 1px solid var(--line);
}
.cta .btn-row { justify-content: center; margin-top: 26px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 80px 0 0; background: var(--bg-2); margin-top: 40px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer h4 { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer ul a { color: var(--grey); font-size: 0.93rem; transition: color 0.2s, padding 0.2s; }
.footer ul a:hover { color: var(--red); padding-left: 4px; }
.footer__own { margin-top: 60px; padding: 26px 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; align-items: center; font-size: 0.88rem; color: var(--grey); }
.footer__own b { color: var(--white); }
.footer__credit {
  border-top: 1px solid var(--line); padding: 18px 0 22px; text-align: center; font-size: 0.82rem; color: var(--grey-2); letter-spacing: 0.04em;
}
.footer__credit a { color: var(--white); font-weight: 600; border-bottom: 1px solid var(--red); padding-bottom: 1px; transition: color 0.2s, text-shadow 0.2s; }
.footer__credit a:hover { color: var(--red); text-shadow: 0 0 12px var(--red-glow); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp + sticky mobile bar ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s var(--ease-back);
}
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: ring 2s infinite; }
@keyframes ring { to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.1) rotate(-8deg); }
.wa-float svg { width: 32px; height: 32px; color: #fff; }
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .wa-float { bottom: 84px; right: 16px; width: 54px; height: 54px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { padding: 13px 10px; font-size: 0.9rem; }
  body { padding-bottom: 76px; }
}

/* ---------- Reveal animations ---------- */
[data-reveal] { opacity: 0; transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease), clip-path 1.1s var(--ease); will-change: transform, opacity; }
[data-reveal="up"] { transform: translateY(50px); }
[data-reveal="down"] { transform: translateY(-40px); }
[data-reveal="left"] { transform: translateX(-60px); }
[data-reveal="right"] { transform: translateX(60px); }
[data-reveal="zoom"] { transform: scale(0.85); }
[data-reveal="blur"] { filter: blur(14px); transform: translateY(20px); }
[data-reveal="flip"] { transform: perspective(900px) rotateX(35deg) translateY(40px); transform-origin: top; }
[data-reveal="clip"] { clip-path: inset(0 100% 0 0); opacity: 1; }
[data-reveal].is-in { opacity: 1; transform: none; filter: none; clip-path: inset(0 0 0 0); }

.split-chars .char { display: inline-block; opacity: 0; transform: translateY(0.6em) rotate(8deg); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.split-chars.is-in .char { opacity: 1; transform: none; }

/* ---------- Traffic light ---------- */
.traffic { display: inline-flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 18px; background: #0c0c0e; border: 1px solid #222; }
.traffic i { width: 26px; height: 26px; border-radius: 50%; background: #222; animation: traffic 4.5s infinite; }
.traffic i:nth-child(1) { --c: #ff1f1f; animation-delay: 0s; }
.traffic i:nth-child(2) { --c: #ffb020; animation-delay: 1.5s; }
.traffic i:nth-child(3) { --c: #22e07a; animation-delay: 3s; }
@keyframes traffic { 0%, 30% { background: var(--c); box-shadow: 0 0 20px var(--c); } 34%, 100% { background: #222; box-shadow: none; } }

/* ---------- Animated road strip ---------- */
.road-strip { position: relative; height: 120px; overflow: hidden; background: #111114; border-block: 1px solid var(--line); }
.road-strip::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; transform: translateY(-50%); background: repeating-linear-gradient(90deg, #f6f4f1 0 50px, transparent 50px 100px); animation: road-move 0.8s linear infinite; opacity: 0.7; }
@keyframes road-move { to { background-position: -100px 0; } }
.road-strip__car { position: absolute; top: 50%; left: -160px; width: 150px; transform: translateY(-62%); animation: drive 7s linear infinite; filter: drop-shadow(0 0 14px rgba(255, 31, 31, 0.6)); }
@keyframes drive { to { left: 110%; } }

/* ---------- Bump ---------- */
.bump { animation: bump 0.45s var(--ease-back); }
@keyframes bump { 40% { transform: scale(1.12); color: var(--red); } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 60px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 24px; }
.note { font-size: 0.82rem; color: var(--grey-2); }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { color: var(--grey); padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--red); text-decoration: underline; }
.table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--grey); }
.table td:first-child { color: var(--white); font-weight: 600; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--panel); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; background: var(--red-soft); color: var(--red); border: 1px solid rgba(255, 31, 31, 0.35); }
.tag--green { background: rgba(34, 224, 122, 0.12); color: var(--green); border-color: rgba(34, 224, 122, 0.35); }

[dir="rtl"] .nav__links a::after { transform-origin: right; }
[dir="rtl"] .ticks li, [dir="rtl"] .price-card li { text-align: right; }

/* ---------- Confetti ---------- */
.confetti { position: fixed; top: -20px; width: 10px; height: 16px; z-index: 10002; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-reveal], .split-chars .char { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .hero h1 .line > span { transform: none; }
  .fx-canvas, .cursor-glow, .cursor-dot, .speed-lines { display: none; }
}

/* ---------- SQ Assistant (chatbot) ---------- */
.bot-launch {
  position: fixed; left: 22px; bottom: 22px; z-index: 950; display: flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 10px; border-radius: 999px; background: var(--bg-2); border: 1px solid rgba(255, 31, 31, 0.5);
  box-shadow: 0 10px 40px -10px var(--red-glow), 0 0 0 0 var(--red-glow); animation: bot-pulse 3s infinite; color: var(--white);
}
.bot-launch__logo { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #0a0a0c; border: 1px solid var(--red); font-family: var(--font-display); font-style: italic; color: var(--red); text-shadow: 0 0 10px var(--red); }
.bot-launch__dot { position: absolute; left: 42px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--green); border: 2px solid var(--bg-2); }
.bot-launch b { font-size: 0.9rem; }
@keyframes bot-pulse { 50% { box-shadow: 0 10px 40px -10px var(--red-glow), 0 0 0 10px rgba(255, 31, 31, 0); } 0% { box-shadow: 0 10px 40px -10px var(--red-glow), 0 0 0 0 rgba(255, 31, 31, 0.4); } }
.bot {
  position: fixed; left: 22px; bottom: 96px; z-index: 960; width: min(400px, calc(100vw - 32px)); height: min(620px, calc(100svh - 130px));
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 60px -20px var(--red-glow);
  transform-origin: bottom left; transform: scale(0.6) translateY(30px); opacity: 0; visibility: hidden;
  transition: transform 0.45s var(--ease-back), opacity 0.3s, visibility 0.3s;
}
.bot.is-open { transform: none; opacity: 1; visibility: visible; }
.bot__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(135deg, #1a0202, #0a0a0c); color: #f6f4f1; border-bottom: 1px solid rgba(255, 31, 31, 0.3); }
.bot__head small { display: block; color: #9a9aa2; font-size: 0.75rem; }
.bot__head small::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 6px; }
.bot__close { margin-left: auto; width: 34px; height: 34px; border-radius: 10px; color: #f6f4f1; border: 1px solid rgba(255, 255, 255, 0.15); }
.bot__close:hover { border-color: var(--red); }
.bot__log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 0.92rem; line-height: 1.5; animation: pop-in 0.35s var(--ease); }
.msg--bot { background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg--user { background: var(--red); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.msg a { color: var(--red); text-decoration: underline; font-weight: 600; }
.msg--user a { color: #fff; }
.msg table { width: 100%; font-size: 0.85rem; margin-top: 6px; border-collapse: collapse; }
.msg td { padding: 3px 0; border-bottom: 1px dashed var(--line-2); }
.msg td:last-child { text-align: right; font-family: var(--font-mono); }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--grey); animation: typing 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 50% { transform: translateY(-5px); background: var(--red); } }
.bot__chips { display: flex; gap: 8px; overflow-x: auto; padding: 0 18px 12px; scrollbar-width: none; }
.bot__chips button { flex: none; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-size: 0.82rem; transition: all 0.2s; }
.bot__chips button:hover { border-color: var(--red); background: var(--red-soft); }
.bot__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.bot__form input { flex: 1; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); font-size: 0.95rem; }
.bot__form input:focus { outline: none; border-color: var(--red); }
.bot__form button { width: 46px; border-radius: 14px; background: var(--red); color: #fff; display: grid; place-items: center; }
.bot__foot { font-size: 0.7rem; color: var(--grey-2); text-align: center; padding: 0 12px 10px; }
@media (max-width: 760px) {
  .bot-launch { left: 16px; bottom: 84px; padding: 6px; }
  .bot-launch b { display: none; }
  .bot { left: 16px; bottom: 150px; height: min(560px, calc(100svh - 170px)); }
}

/* ---------- Flashcards ---------- */
.flash { perspective: 1000px; cursor: pointer; aspect-ratio: 3 / 4; }
.flash__inner { position: relative; width: 100%; height: 100%; transition: transform 0.8s var(--ease); transform-style: preserve-3d; }
.flash.is-flipped .flash__inner { transform: rotateY(180deg); }
.flash__face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 22px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px; text-align: center; }
.flash__face svg { width: 70%; max-width: 160px; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4)); }
.flash__back { transform: rotateY(180deg); background: linear-gradient(160deg, rgba(255, 31, 31, 0.16), var(--panel)); border-color: rgba(255, 31, 31, 0.4); }
.flash__back h3 { font-size: 1.2rem; }
.flash__hint { margin-top: 14px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.15em; color: var(--grey-2); text-transform: uppercase; }
.flash__actions { display: flex; gap: 8px; margin-top: 12px; }

/* ---------- Dashboard lights ---------- */
.dash { background: radial-gradient(ellipse at center, #15151a, #050506); border-radius: 30px; padding: clamp(20px, 4vw, 40px); border: 1px solid #222; }
.dash__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; }
.dlight { aspect-ratio: 1; border-radius: 20px; background: #0b0b0e; border: 1px solid #222; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #555; transition: all 0.35s var(--ease); font-size: 0.72rem; text-align: center; padding: 8px; }
.dlight svg { width: 42px; height: 42px; }
.dlight.is-on, .dlight:hover, .dlight:focus-visible { color: var(--c); border-color: var(--c); box-shadow: 0 0 24px -4px var(--c), inset 0 0 24px -10px var(--c); }
.dlight.is-on svg { filter: drop-shadow(0 0 8px var(--c)); }
.dlight--red { --c: #ff2d2d; } .dlight--amber { --c: #ffb020; } .dlight--green { --c: #22e07a; } .dlight--blue { --c: #3ba0ff; }
.dinfo { margin-top: 22px; min-height: 120px; }

/* =========================================================
   COMFORT LAYER — warm, reassuring components
   ========================================================= */
.nav { background: rgba(7, 7, 8, 0.82); color: #f6f4f1; }
.nav .nav__links a:hover, .nav .nav__links a[aria-current="page"] { color: #fff; }

/* Reassurance strip */
.reassure { background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px 0; }
.reassure__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; list-style: none; margin: 0; padding: 0; }
.reassure__list li { display: inline-flex; align-items: center; gap: 9px; font-size: 0.95rem; color: var(--white); font-weight: 500; }
.reassure__list svg { width: 20px; height: 20px; color: var(--green); flex: none; }

/* Comfort section */
.comfort {
  border-radius: 36px; padding: clamp(32px, 6vw, 70px); background: linear-gradient(140deg, #fff3ea, #ffffff 55%, #fdeceb);
  border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
:root[data-theme="dark"] .comfort { background: linear-gradient(140deg, #1a0d0b, #0b0b0d 60%); }
.comfort h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.comfort__blob { position: absolute; width: 380px; height: 380px; right: -120px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 20, 28, 0.12), transparent 70%); animation: breathe 7s ease-in-out infinite; }
.soft-ticks { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 14px; }
.soft-ticks li { display: flex; gap: 14px; align-items: flex-start; }
.soft-ticks .ico { flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.soft-ticks .ico svg { width: 20px; height: 20px; }
.soft-ticks b { display: block; color: var(--white); }
.soft-ticks span { color: var(--grey); font-size: 0.95rem; }

/* Friendly quote bubble */
.bubble-quote { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px; padding: 22px 24px; box-shadow: var(--shadow); font-size: 1.05rem; color: var(--white); }
.bubble-quote::after { content: ""; position: absolute; left: 36px; bottom: -12px; width: 22px; height: 22px; background: var(--bg-2); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }

/* ---------- Mascot: SQ guide drops in on a rope ---------- */
.mascot { position: absolute; z-index: 5; top: 0; right: 4%; width: clamp(120px, 15vw, 190px); transform-origin: 50% 0; pointer-events: none; }
.mascot__rope { position: absolute; left: 50%; top: 0; width: 2px; height: var(--rope, 120px); background: linear-gradient(var(--grey-2), var(--grey)); transform: translateX(-50%); }
.mascot__body { position: absolute; left: 0; right: 0; top: var(--rope, 120px); pointer-events: auto; cursor: pointer; }
.mascot__body svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.35)); }
.mascot__bubble {
  position: absolute; right: 92%; top: calc(var(--rope, 120px) + 10px); width: max-content; max-width: 220px; pointer-events: auto; cursor: pointer;
  background: #fff; color: #1f1714; border-radius: 18px 18px 4px 18px; padding: 12px 16px; font-size: 0.92rem; font-weight: 500; line-height: 1.4;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5); opacity: 0; transform: scale(0.6) translateY(10px); transform-origin: right bottom;
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease-back);
}
.mascot__bubble b { color: #e3141c; }
.mascot.is-landed .mascot__bubble { opacity: 1; transform: none; transition-delay: 0.2s; }
.mascot.is-dropping { animation: drop 1.5s var(--ease-back) both; }
.mascot.is-landed { animation: sway 5s ease-in-out infinite; }
@keyframes drop { 0% { transform: translateY(-120%); } 70% { transform: translateY(8%); } 85% { transform: translateY(-3%); } 100% { transform: none; } }
@keyframes sway { 0%, 100% { transform: rotate(2deg); } 50% { transform: rotate(-2deg); } }
.mascot .arm-wave { transform-origin: 52px 100px; }
.mascot.is-landed .arm-wave { animation: wave 1.1s ease-in-out 3 0.4s; }
@keyframes wave { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-24deg); } 75% { transform: rotate(14deg); } }
.mascot .blink { animation: eye-blink 4s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes eye-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@media (max-width: 900px) {
  .mascot { right: 2%; width: 110px; --rope: 40px !important; }
  .mascot__bubble { max-width: 150px; font-size: 0.78rem; padding: 9px 12px; }
}
@media (prefers-reduced-motion: reduce) { .mascot { animation: none !important; } .mascot__bubble { opacity: 1; transform: none; } }

/* ---------- First lesson steps ---------- */
.lesson-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; counter-reset: ls; }
.lesson-step { position: relative; padding: 26px 22px 24px; border-radius: 26px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lesson-step__time { display: inline-block; font-family: var(--font-mono); font-size: 0.75rem; padding: 4px 10px; border-radius: 999px; background: var(--red-soft); color: var(--red); margin-bottom: 14px; }
.lesson-step__emoji { font-size: 2rem; display: block; margin-bottom: 8px; }
.lesson-step h3 { font-size: 1.15rem; }

/* ---------- Breathing coach ---------- */
.breathe { display: grid; place-items: center; gap: 22px; text-align: center; }
.breathe__ring { position: relative; width: min(300px, 70vw); aspect-ratio: 1; display: grid; place-items: center; }
.breathe__ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--line-2); }
.breathe__circle {
  width: 40%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff8a8a, var(--red) 60%, var(--red-deep));
  box-shadow: 0 0 60px rgba(227, 20, 28, 0.35); transition: transform 4s ease-in-out;
}
.breathe__circle.is-in { transform: scale(2.2); }
.breathe__circle.is-hold { transition-duration: 0.2s; }
.breathe__label { position: absolute; font-family: var(--font-display); font-size: 1.4rem; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); }
.breathe__count { font-family: var(--font-mono); color: var(--grey); }

/* ---------- Comfort plan result ---------- */
.plan-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.plan-list li { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--line); color: var(--white); }
.plan-list li::before { content: "✓"; color: var(--green); font-weight: 700; }

/* =========================================================
   V3 — features that beat the competition
   ========================================================= */

/* Wave dividers */
.wave { display: block; width: 100%; height: clamp(40px, 6vw, 90px); margin-top: -1px; position: relative; z-index: 3; }
.wave path { fill: var(--wave, var(--bg)); }
.wave--anim path { animation: wave-move 9s ease-in-out infinite alternate; }
@keyframes wave-move { to { d: path("M0,40 C240,10 480,70 720,40 C960,10 1200,70 1440,30 L1440,104 L0,104 Z"); } }

/* Hand-drawn highlight */
.scribble { position: relative; display: inline-block; white-space: nowrap; }
.scribble svg { position: absolute; left: -6%; width: 112%; height: 0.5em; bottom: -0.18em; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke: var(--red); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.4s var(--ease) 0.5s; }
.scribble--circle svg { left: -12%; width: 124%; height: 150%; top: -25%; bottom: auto; }
.scribble.is-in path, .is-in .scribble path { stroke-dashoffset: 0; }

/* Hero car drive-in */
.hero-car { position: absolute; left: 50%; bottom: -6%; width: min(360px, 70%); transform: translateX(-50%); z-index: 2; }
.hero-car svg { width: 100%; filter: drop-shadow(0 20px 30px rgba(255, 31, 31, 0.35)); }
.hero-car.is-driving { animation: drive-in 1.8s cubic-bezier(0.16, 1, 0.3, 1) both; }
@keyframes drive-in { from { transform: translateX(-260%); } 80% { transform: translateX(-46%); } to { transform: translateX(-50%); } }
.hero-car .wheel { transform-box: fill-box; transform-origin: center; }
.hero-car.is-driving .wheel { animation: wheel-spin 0.4s linear 4; }
@keyframes wheel-spin { to { transform: rotate(360deg); } }
.hero-car__beam { position: absolute; right: -40%; top: 38%; width: 60%; height: 50%; background: radial-gradient(ellipse at left, rgba(255, 245, 200, 0.55), transparent 70%); filter: blur(6px); opacity: 0; transition: opacity 0.6s 1.6s; pointer-events: none; }
.hero-car.is-parked .hero-car__beam { opacity: 1; }
@media (max-width: 900px) { .hero-car { bottom: -2%; width: 62%; } }

/* Accessibility panel */
.a11y-btn { position: fixed; left: 22px; bottom: 96px; z-index: 940; width: 48px; height: 48px; border-radius: 50%; background: #1f3fbf; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(31, 63, 191, 0.6); }
.a11y-btn svg { width: 26px; height: 26px; }
.a11y-panel {
  position: fixed; left: 22px; bottom: 156px; z-index: 970; width: min(330px, calc(100vw - 32px)); padding: 22px; border-radius: 24px;
  background: var(--bg-2); color: var(--white); border: 1px solid var(--line-2); box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.5);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(0.96); transform-origin: bottom left; transition: all 0.35s var(--ease-back);
}
.a11y-panel.is-open { opacity: 1; visibility: visible; transform: none; }
.a11y-panel h3 { font-size: 1.1rem; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.a11y-opt { padding: 12px 10px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); font-size: 0.85rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: all 0.2s; }
.a11y-opt span:first-child { font-size: 1.3rem; }
.a11y-opt[aria-pressed="true"] { border-color: #1f3fbf; background: rgba(31, 63, 191, 0.1); box-shadow: 0 0 0 2px #1f3fbf inset; }
.a11y-size { display: flex; align-items: center; justify-content: space-between; gap: 8px; grid-column: 1 / -1; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2); }
.a11y-size button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); font-weight: 700; }
html.a11y-readable body, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3, html.a11y-readable .btn { font-family: Verdana, Tahoma, Arial, sans-serif !important; letter-spacing: 0.02em; }
html.a11y-spacing body { line-height: 1.95; word-spacing: 0.12em; letter-spacing: 0.03em; }
html.a11y-spacing p, html.a11y-spacing li { line-height: 1.95 !important; }
html.a11y-links a:not(.btn) { text-decoration: underline !important; text-underline-offset: 3px; }
html.a11y-contrast { --grey: #2a2a2a; --grey-2: #3a3a3a; --line: rgba(0, 0, 0, 0.35); --line-2: rgba(0, 0, 0, 0.5); }
html.a11y-contrast .zone-dark, html.a11y-contrast[data-theme="dark"] { --grey: #e6e6e6; --grey-2: #cfcfcf; --line: rgba(255, 255, 255, 0.4); --line-2: rgba(255, 255, 255, 0.55); }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { animation: none !important; transition: none !important; }
html.a11y-still [data-reveal], html.a11y-still .split-chars .char { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
html.a11y-still .fx-canvas, html.a11y-still .cursor-glow, html.a11y-still .speed-lines { display: none !important; }
html.a11y-still .mascot { visibility: visible !important; }
html.a11y-still .mascot__bubble { opacity: 1; transform: none; }
html.a11y-still .hero h1 .line > span { transform: none; }
@media (max-width: 760px) { .a11y-btn { left: 16px; bottom: 148px; width: 44px; height: 44px; } .a11y-panel { left: 16px; bottom: 200px; } }

/* Booking wizard */
.wizard { position: relative; overflow: hidden; }
.wizard__bar { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; margin-bottom: 26px; }
.wizard__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--red-deep), var(--red), var(--red-hot)); border-radius: inherit; transition: width 0.6s var(--ease); }
.wizard__step { display: none; animation: step-in 0.55s var(--ease); }
.wizard__step.is-active { display: block; }
.wizard__step.is-back { animation-name: step-back; }
@keyframes step-in { from { opacity: 0; transform: translateX(40px); } }
@keyframes step-back { from { opacity: 0; transform: translateX(-40px); } }
.wizard__q { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 6px; }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 18px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; border-radius: 18px; border: 2px solid var(--line-2); background: var(--bg-2); cursor: pointer; transition: all 0.25s var(--ease); height: 100%; }
.choice label:hover { border-color: var(--red); transform: translateY(-3px); }
.choice label b { font-size: 1.05rem; color: var(--white); }
.choice label small { color: var(--grey); }
.choice label .em { font-size: 1.8rem; }
.choice input:checked + label { border-color: var(--red); background: var(--red-soft); box-shadow: 0 10px 24px -14px var(--red-glow); }
.choice input:focus-visible + label { outline: 2px solid var(--red); outline-offset: 2px; }
.wizard__summary { display: grid; gap: 8px; margin: 16px 0; }
.wizard__summary div { display: flex; justify-content: space-between; gap: 14px; padding: 10px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line); }
.wizard__summary span { color: var(--grey); }
.wizard__summary b { text-align: right; }

/* Gift voucher */
.voucher {
  position: relative; aspect-ratio: 1.75; border-radius: 26px; padding: clamp(18px, 4vw, 34px); overflow: hidden; color: #fff;
  background: radial-gradient(circle at 85% 15%, rgba(255, 60, 60, 0.6), transparent 45%), linear-gradient(135deg, #2a0303, #0a0a0c 65%);
  box-shadow: 0 30px 60px -24px rgba(120, 0, 0, 0.6); transform-style: preserve-3d; transition: transform 0.5s var(--ease);
  display: flex; flex-direction: column; justify-content: space-between;
}
.voucher::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.18) 45%, transparent 60%); transform: translateX(-100%); animation: sheen 4s ease-in-out infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(100%); } }
.voucher__top { display: flex; justify-content: space-between; align-items: flex-start; }
.voucher__amount { font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1; text-shadow: 0 0 24px rgba(255, 31, 31, 0.8); }
.voucher__to { font-size: clamp(1rem, 2.4vw, 1.3rem); }
.voucher__msg { font-size: 0.9rem; opacity: 0.85; max-width: 80%; font-style: italic; }
.voucher__small { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.15em; opacity: 0.7; text-transform: uppercase; }
.voucher.is-bump { animation: v-bump 0.5s var(--ease-back); }
@keyframes v-bump { 40% { transform: scale(1.03) rotate(-1deg); } }

/* v3 layout refinements */
.hero__visual { padding-bottom: 130px; }
.hero .sq-logo--xl { font-size: clamp(6.5rem, 19vw, 14.5rem); }
.hero-car { bottom: 0; }
.hero .mascot { right: 1.5%; }
.lesson-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .lesson-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero__visual { padding-bottom: 110px; } }
@media (max-width: 560px) { .lesson-steps { grid-template-columns: 1fr; } }
@media (min-width: 901px) and (max-width: 1280px) { .hero .mascot { width: 120px; right: 0.5%; } .mascot__bubble { max-width: 170px; font-size: 0.82rem; } }

/* =========================================================
   FLOATING DOCK — WhatsApp, SQ Assistant and accessibility
   stacked neatly bottom-right on every device
   ========================================================= */
:root {
  --dock-r: max(20px, calc(env(safe-area-inset-right) + 14px));
  --dock-b: max(20px, calc(env(safe-area-inset-bottom) + 14px));
}
.road-rail { right: auto; left: 14px; }

.wa-float { left: auto; right: var(--dock-r); bottom: var(--dock-b); width: 58px; height: 58px; }
.bot-launch {
  left: auto; right: var(--dock-r); bottom: calc(var(--dock-b) + 70px);
  width: 58px; height: 58px; padding: 0; border-radius: 50%; justify-content: center; gap: 0;
}
.bot-launch__logo { width: 50px; height: 50px; font-size: 1.05rem; }
.bot-launch__dot { left: auto; right: 4px; top: 4px; }
.bot-launch b {
  position: absolute; right: calc(100% + 12px); top: 50%; transform: translateY(-50%); white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; background: var(--bg-2); color: var(--white); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); font-size: 0.85rem; pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease);
}
.bot-launch[aria-expanded="true"] b { opacity: 0; transform: translate(8px, -50%); }
.a11y-btn { left: auto; right: calc(var(--dock-r) + 5px); bottom: calc(var(--dock-b) + 140px); width: 48px; height: 48px; }

.bot {
  left: auto; right: var(--dock-r); bottom: calc(var(--dock-b) + 140px); transform-origin: bottom right;
  height: min(620px, calc(100svh - var(--dock-b) - 170px));
}
.a11y-panel { left: auto; right: var(--dock-r); bottom: calc(var(--dock-b) + 200px); transform-origin: bottom right; max-height: calc(100svh - var(--dock-b) - 220px); overflow-y: auto; }

@media (max-width: 1100px) { .bot-launch b { display: none; } }

@media (max-width: 760px) {
  :root { --dock-r: max(14px, calc(env(safe-area-inset-right) + 10px)); --dock-b: calc(80px + env(safe-area-inset-bottom)); }
  .wa-float { right: var(--dock-r); bottom: var(--dock-b); width: 54px; height: 54px; }
  .wa-float svg { width: 28px; height: 28px; }
  .bot-launch { left: auto; right: var(--dock-r); bottom: calc(var(--dock-b) + 64px); width: 54px; height: 54px; padding: 0; }
  .bot-launch__logo { width: 46px; height: 46px; }
  .a11y-btn { left: auto; right: calc(var(--dock-r) + 5px); bottom: calc(var(--dock-b) + 128px); width: 44px; height: 44px; }
  .bot { left: 12px; right: 12px; width: auto; bottom: calc(var(--dock-b) - 4px); height: min(600px, calc(100svh - var(--dock-b) - 80px)); }
  .a11y-panel { left: 12px; right: 12px; width: auto; bottom: calc(var(--dock-b) - 4px); max-height: calc(100svh - var(--dock-b) - 80px); }
}
@media (max-height: 560px) and (min-width: 761px) {
  .bot { height: calc(100svh - var(--dock-b) - 150px); }
}
@media (max-width: 760px) {
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(36px); }
  [data-reveal="flip"] { transform: translateY(36px); }
}

/* Responsive hardening — never let content widen the page on any device */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.grid > *, .split > * { min-width: 0; }
@media (max-width: 1000px) { .grid--4, .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.seg label, .choice label { overflow-wrap: anywhere; }
.summary td:first-child { overflow-wrap: anywhere; padding-right: 10px; }
.table-wrap { -webkit-overflow-scrolling: touch; }
img, svg, video, canvas, iframe { max-width: 100%; }
input, select, textarea { max-width: 100%; min-width: 0; }
@media (max-width: 380px) {
  .container { padding: 0 14px; }
  .btn { padding: 13px 18px; font-size: 0.92rem; white-space: normal; text-align: center; }
  .tool, .card { padding: 22px 18px; }
  .price { font-size: 2.8rem; }
  .brand__sub { display: none; }
}
.bot, .a11y-panel { z-index: 1010; }

/* =========================================================
   KNOWLEDGE HUB — article layout
   ========================================================= */
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 50px; align-items: start; }
.article-grid > aside { position: sticky; top: 100px; }
@media (max-width: 1000px) { .article-grid { grid-template-columns: minmax(0, 1fr); } .article-grid > aside { position: static; order: -1; } }
.toc { padding: 22px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.toc h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; font-size: 0.92rem; }
.toc a { color: var(--grey); } .toc a:hover, .toc a.is-active { color: var(--red); }
.takeaways { padding: 24px 26px; border-radius: 22px; background: linear-gradient(135deg, var(--red-soft), var(--panel)); border: 1px solid rgba(227, 20, 28, 0.25); margin-bottom: 30px; }
.takeaways h3 { font-size: 1.1rem; margin-bottom: 10px; }
.takeaways ul { margin: 0; padding-left: 1.1em; color: var(--white); display: grid; gap: 6px; }
.callout { padding: 18px 22px; border-left: 4px solid var(--red); border-radius: 0 16px 16px 0; background: var(--panel-2); margin: 22px 0; color: var(--white); }
.callout--info { border-left-color: #1f3fbf; }
.callout--ok { border-left-color: var(--green); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--font-mono); font-size: 0.75rem; color: var(--grey); letter-spacing: 0.06em; margin-top: 18px; }
.sources { font-size: 0.88rem; }
.sources li { margin-bottom: 4px; }
.prose h2 { scroll-margin-top: 110px; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 0.95rem; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--grey); }
.prose td { color: var(--grey); }
.k-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
.k-filter input { flex: 1; min-width: 220px; }
.k-card[hidden] { display: none !important; }
.k-cat { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
@media (max-width: 380px) {
  .nav .theme-toggle { display: none; }
  .nav__inner { gap: 10px; }
  .nav__actions { gap: 6px; }
  .sq-logo--nav { font-size: 1.65rem; }
  .brand { gap: 8px; }
  .brand__name { font-size: 0.8rem; }
}
.wave { margin-bottom: -2px; overflow: visible; }

/* Assistant label: peek on load, then only on hover/focus */
.bot-launch b { opacity: 0; transform: translate(8px, -50%); }
.bot-launch:hover b, .bot-launch:focus-visible b { opacity: 1; transform: translate(0, -50%); }
.bot-launch.is-peek b { animation: label-peek 5s var(--ease) 1.2s both; }
@keyframes label-peek { 0% { opacity: 0; transform: translate(8px, -50%); } 10%, 85% { opacity: 1; transform: translate(0, -50%); } 100% { opacity: 0; transform: translate(8px, -50%); } }

/* Cookie consent banner */
.consent {
  position: fixed; left: 20px; bottom: var(--dock-b); z-index: 1020; width: min(430px, calc(100vw - 110px));
  padding: 18px 20px; border-radius: 20px; background: var(--bg-2); color: var(--white); border: 1px solid var(--line-2);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45); font-size: 0.9rem; animation: pop-in 0.5s var(--ease);
}
.consent p { margin: 0 0 12px; color: var(--grey); }
.consent b { color: var(--white); }
.consent .btn-row { gap: 8px; }
@media (max-width: 760px) { .consent { left: 12px; width: calc(100vw - 92px); bottom: var(--dock-b); padding: 14px 16px; } }
