/* ==========================================================================
   QuoteBuddi styles
   Periwinkle + deep navy, frosted 3D glass, light theme.
   ========================================================================== */

/* ---------- Static tokens ---------- */
:root {
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

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

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 64px;

  --navy: #0b0d45;
  --violet: #7a63ff;
  --peri: #a9acf6;

  /* The glowing dark tile used for icons, the primary button and active states */
  --tile-glow:
    radial-gradient(110% 80% at 50% 122%, #b29cff 0%, rgba(122, 99, 255, 0.6) 36%, rgba(60, 50, 180, 0) 72%),
    linear-gradient(180deg, #1d2058 0%, #0c0d2e 100%);
  --tile-glow-border: rgba(196, 186, 255, 0.4);
  --tile-glow-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -6px 14px -6px rgba(180, 160, 255, 0.85),
    0 12px 28px -10px rgba(107, 86, 255, 0.85);
}

/* ---------- Colour tokens ---------- */
:root {
  color-scheme: light;
  --bg: #eef0ff;
  --bg-elev: #ffffff;
  --page-glow: radial-gradient(1200px 640px at 50% -220px, rgba(146, 150, 247, 0.45), transparent 70%);

  --text: #0b0d45;
  --text-2: rgba(11, 13, 69, 0.78);
  --text-3: rgba(11, 13, 69, 0.62);
  --line: rgba(11, 13, 69, 0.09);
  --line-2: rgba(11, 13, 69, 0.15);

  --glass: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.52));
  --glass-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.68));
  --glass-border: rgba(255, 255, 255, 0.95);
  --glass-hi: inset 0 1px 0 #ffffff, inset 0 -1px 0 rgba(90, 95, 200, 0.08);
  --glass-fallback: rgba(255, 255, 255, 0.94);
  --specular: linear-gradient(140deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 40%);
  --shadow: 0 30px 70px -32px rgba(45, 48, 150, 0.42);
  --inset-bg: rgba(79, 83, 217, 0.06);

  --accent: #4f53d9;
  --accent-text: #3539b8;
  --accent-soft: rgba(79, 83, 217, 0.09);
  --accent-border: rgba(79, 83, 217, 0.26);
  --check-bg: linear-gradient(160deg, #5d61e6, #2d2fa6);

  --grad-text: linear-gradient(100deg, #0b0d45 0%, #3438c0 50%, #6a58ff 100%);
  --grad-price: linear-gradient(100deg, #171a7c 0%, #5747ee 100%);

  --glow-a: rgba(255, 255, 255, 0.75);
  --glow-b: rgba(120, 124, 240, 0.55);
  --glow-c: rgba(140, 110, 255, 0.35);
  --section-glow: rgba(146, 150, 247, 0.45);
  --hero-bg: linear-gradient(180deg, #a9acf6 0%, #b6b9f8 55%, #eef0ff 100%);
  --watermark: linear-gradient(180deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0) 78%);

  --bubble-user: linear-gradient(180deg, #2f329f, #11135e);
  --bubble-user-shadow: 0 10px 24px -12px rgba(17, 19, 94, 0.8);
  --bubble-bot: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.78));
  --bubble-bot-border: rgba(79, 83, 217, 0.14);

  --chip-bg: rgba(255, 255, 255, 0.72);
  --chip-bg-hover: #ffffff;
  --chip-border: rgba(79, 83, 217, 0.32);
  --chip-text: #1f2290;

  --field-bg: rgba(255, 255, 255, 0.72);
  --field-bg-focus: #ffffff;

  --phone-rim: linear-gradient(160deg, #ffffff, rgba(255, 255, 255, 0.55) 40%, rgba(190, 194, 255, 0.9));
  --phone-screen:
    radial-gradient(120% 55% at 15% -8%, rgba(146, 150, 247, 0.6), transparent 62%),
    #f5f6ff;

  --tile-underglow: rgba(146, 150, 247, 0.5);
  --vin-bg: rgba(255, 255, 255, 0.85);

  /* Deep navy glossy tile, like a lacquered app icon */
  --hero-tile:
    radial-gradient(80% 55% at 30% 6%, rgba(255, 255, 255, 0.34), transparent 60%),
    radial-gradient(100% 70% at 50% 120%, rgba(122, 99, 255, 0.55), transparent 65%),
    linear-gradient(160deg, #20247a, #0b0d45 60%, #05062a);
  --hero-tile-border: rgba(255, 255, 255, 0.45);
  --hero-tile-edge: #05062a;

  --floor-tile: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(214, 216, 255, 0.75) 55%, rgba(170, 174, 246, 0.6));
  --floor-edge: rgba(120, 124, 230, 0.55);
  --floor-lit: linear-gradient(135deg, #ffffff, rgba(170, 160, 255, 0.8) 60%, rgba(110, 96, 255, 0.7));

  --nav-bg: rgba(255, 255, 255, 0.5);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.8);
  --menu-bg: rgba(255, 255, 255, 0.98);

  --danger: #c23b3b;
  --mint: #13a36b;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--page-glow), var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
p a, .lead a, .shopview__note a, .consent a, .legal a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-color: var(--accent-border);
  text-underline-offset: 3px;
}
p a:hover, .consent a:hover, .legal a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; color: var(--text); font-weight: 700; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: rgba(146, 150, 247, 0.45); color: var(--text); }

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

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* Film grain: breaks up gradient banding */
.grain {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.05;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Type ---------- */
h2 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 800;
  text-wrap: balance;
}
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.015em; font-weight: 700; }
.lead {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  color: var(--text-2);
  max-width: 40em;
  text-wrap: pretty;
}
.muted { color: var(--text-3); }

.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  padding: 0.45em 0.95em;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  margin-bottom: 20px;
}

.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .lead { margin-top: 18px; }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 44px;
  padding: 0.8em 1.4em;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { transition: transform 0.25s var(--ease); }
.btn:active { transform: translateY(0) scale(0.98); }

/* Dark glass pill lit from below */
.btn--primary {
  color: #fff;
  background: var(--tile-glow);
  border: 1px solid var(--tile-glow-border);
  box-shadow: var(--tile-glow-shadow);
}
.btn--primary::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 1px 1px 52% 1px;
  border-radius: 999px 999px 40% 40% / 999px 999px 100% 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}

.btn--glass {
  color: var(--text);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi), 0 10px 30px -14px rgba(20, 20, 80, 0.5);
}

@media (hover: hover) {
  .btn--primary:hover {
    transform: translateY(-2px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.3),
      inset 0 -8px 18px -6px rgba(190, 170, 255, 0.95),
      0 18px 40px -10px rgba(107, 86, 255, 0.95);
  }
  .btn--glass:hover { transform: translateY(-2px); }
  .btn:hover .icon:last-child { transform: translateX(3px); }
}

.btn--sm { min-height: 40px; padding: 0.6em 1.1em; font-size: 0.92rem; }
.btn--lg { min-height: 54px; padding: 0.95em 1.65em; font-size: 1.02rem; }
.btn--block { width: 100%; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  color: var(--text-2);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi);
  transition: color 0.2s, transform 0.3s var(--ease);
}
.icon-btn:hover { color: var(--text); }
.icon-btn .icon { width: 18px; height: 18px; }

/* ---------- Frosted glass surfaces ---------- */
.card {
  position: relative;
  isolation: isolate;
  border-radius: var(--r-lg);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi), var(--shadow);
}
/* Specular sheen across the top-left of every glass card */
.card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--specular);
}
/* Real background blur only on larger screens, to keep phones smooth */
@media (min-width: 900px) and (hover: hover) {
  .card, .tile, .faq__item {
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .card, .tile, .faq__item, .nav__inner, .btn--glass { background: var(--glass-fallback) !important; }
}

/* Cursor-follow highlight (JS sets --mx / --my on pointer devices) */
.glow-card { overflow: hidden; isolation: isolate; }
.glow-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), var(--accent-soft), transparent 60%);
}
@media (hover: hover) {
  .glow-card:hover::after { opacity: 1; }
}

/* Glowing dark icon tile */
.icon-tile {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: var(--tile-glow);
  border: 1px solid var(--tile-glow-border);
  box-shadow: var(--tile-glow-shadow);
  margin-bottom: 20px;
}
.icon-tile .icon { width: 22px; height: 22px; stroke: url(#qb-chrome); stroke-width: 2; }

/* ---------- Buddi mascot ---------- */
.buddi { width: 100%; height: 100%; overflow: visible; }
.buddi__body { fill: url(#qb-body); }
.buddi__limb { fill: url(#qb-limb); }
.buddi__under { fill: url(#qb-under); }
.buddi__shadow { fill: #0b0d45; opacity: 0.14; }
.buddi__rim { fill: none; stroke: url(#qb-rim); stroke-width: 1.4; }
.buddi__shine { fill: url(#qb-shine); }
.buddi__eyes ellipse { fill: #0b0d45; }
.buddi__eyes circle { fill: #ffffff; opacity: 0.9; }
.buddi__face { transition: transform 0.35s var(--ease); }
.buddi__eyes {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 6s infinite;
  animation-delay: var(--blink-delay, 0s);
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 50;
  padding-inline: var(--gutter);
  pointer-events: none;
}
.nav__inner {
  position: relative;
  pointer-events: auto;
  max-width: var(--container);
  margin-inline: auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 10px 0 16px;
  border-radius: 999px;
  background: var(--nav-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi), 0 10px 40px -14px rgba(10, 10, 60, 0.5);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  transition: background 0.3s;
}
.nav.is-scrolled .nav__inner { background: var(--nav-bg-scrolled); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav__inner { background: var(--menu-bg); }
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__word { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.03em; }
.brand__word span {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a:not(.btn) {
  padding: 0.5em 0.95em;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:not(.btn):hover { color: var(--text); background: var(--accent-soft); }
.nav__links a.is-active {
  color: var(--text);
  background: var(--glass-strong);
  box-shadow: var(--glass-hi);
}
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__cta-mobile { display: none; }
.nav__toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  color: var(--text);
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi);
  transition: transform 0.35s var(--spring);
}
.nav__toggle { display: none; }
.nav__toggle .icon { width: 22px; height: 22px; }

@media (max-width: 920px) {
  .nav__toggle { display: grid; }
  .nav__links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border-radius: 26px;
    background: var(--menu-bg);
    border: 1px solid var(--line-2);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s;
  }
  .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.3s var(--ease);
  }
  .nav__links a:not(.btn) { padding: 14px 16px; font-size: 1.05rem; border-radius: 16px; }
  .nav__cta-mobile { display: inline-flex; margin-top: 6px; min-height: 50px; }
}
@media (max-width: 560px) {
  .nav__cta { display: none; }
  .nav { top: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--hero-bg);
  padding: calc(var(--nav-h) + clamp(64px, 10vw, 120px)) 0 clamp(90px, 12vw, 160px);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 200px;
  z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  animation: drift 24s ease-in-out infinite alternate;
}
.blob--1 {
  width: min(70vw, 900px); aspect-ratio: 1;
  left: -18%; top: -30%;
  background: radial-gradient(closest-side, var(--glow-a), transparent);
}
.blob--2 {
  width: min(55vw, 760px); aspect-ratio: 1;
  right: -14%; top: -6%;
  background: radial-gradient(closest-side, var(--glow-b), transparent);
  animation-duration: 28s;
  animation-direction: alternate-reverse;
}
.blob--3 {
  width: min(48vw, 640px); aspect-ratio: 1;
  right: 6%; bottom: -30%;
  background: radial-gradient(closest-side, var(--glow-c), transparent);
  animation-duration: 20s;
}

.hero__watermark {
  position: absolute;
  left: 50%;
  bottom: -0.2em;
  transform: translateX(-50%);
  z-index: -1;
  font-size: clamp(4.5rem, 19vw, 17rem);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  background: var(--watermark);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero__title {
  font-size: clamp(2.8rem, 7vw, 5.7rem);
  line-height: 1;
  letter-spacing: -0.042em;
  font-weight: 800;
  margin: 0 0 22px;
}
.hero__lead {
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  color: var(--text-2);
  max-width: 34em;
  text-wrap: pretty;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__for { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.hero__for li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi);
}
.hero__for .icon { color: var(--accent); }

/* Hero visual: layered 3D glass */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  margin-inline: auto;
}
.hero__halo {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow-a), transparent);
  opacity: 0.8;
}

/* Tilted frosted slab behind the main tile, for depth */
.glass-slab {
  position: absolute;
  inset: 20%;
  border-radius: 30%;
  transform: translate(7%, 6%) rotate(7deg);
  opacity: 0.85;
  background:
    radial-gradient(90% 60% at 30% 0%, rgba(255, 255, 255, 0.35), transparent 60%),
    linear-gradient(160deg, rgba(200, 203, 255, 0.28), rgba(120, 110, 255, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.5),
    0 10px 0 -2px rgba(90, 80, 220, 0.3),
    0 40px 70px -30px rgba(20, 16, 90, 0.6);
}

/* Main tile: thick glass with a visible extruded edge */
.buddi-tile {
  position: absolute;
  inset: 20%;
  display: grid;
  place-items: center;
  border-radius: 30%;
  background: var(--hero-tile);
  border: 1px solid var(--hero-tile-border);
  box-shadow:
    inset 0 2px 1px rgba(255, 255, 255, 0.45),
    inset 0 -3px 2px rgba(255, 255, 255, 0.12),
    inset 0 -26px 44px rgba(70, 56, 200, 0.4),
    0 14px 0 -2px var(--hero-tile-edge),
    0 50px 100px -24px rgba(60, 50, 200, 0.7);
  animation: bob 7s ease-in-out infinite;
}
.buddi-tile::after {
  /* diagonal specular streak */
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 28%;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, 0.12) 100%);
}
.hero-buddi {
  display: block;
  width: 66%;
  aspect-ratio: 1;
  filter: drop-shadow(0 18px 22px rgba(10, 8, 60, 0.5));
}
@media (min-width: 900px) and (hover: hover) {
  .buddi-tile, .glass-slab { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}

/* Frosted glass orb */
.glass-orb {
  position: absolute;
  top: 3%;
  left: 12%;
  width: 20%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.95) 0 5%, rgba(255, 255, 255, 0.35) 12%, transparent 34%),
    radial-gradient(circle at 68% 78%, rgba(170, 150, 255, 0.7), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 40%, rgba(255, 255, 255, 0.22) 72%, rgba(255, 255, 255, 0.55) 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    inset -10px -14px 26px rgba(70, 56, 200, 0.4),
    inset 8px 10px 18px rgba(255, 255, 255, 0.28),
    0 30px 50px -20px rgba(20, 16, 90, 0.6);
  animation: floaty 9s ease-in-out infinite;
  animation-delay: -4s;
}

/* Frosted glass capsule lit from below */
.glass-pill {
  position: absolute;
  left: 4%;
  top: 41%;
  width: 10%;
  height: 26%;
  border-radius: 999px;
  transform: rotate(-14deg);
  background:
    radial-gradient(120% 60% at 50% 115%, rgba(170, 150, 255, 0.9), transparent 60%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12) 50%, rgba(160, 164, 255, 0.3));
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    inset 0 2px 2px rgba(255, 255, 255, 0.7),
    inset 0 -4px 10px rgba(120, 100, 255, 0.5),
    0 8px 0 -2px rgba(90, 80, 220, 0.35),
    0 30px 40px -18px rgba(20, 16, 90, 0.55);
}

.float { position: absolute; animation: floaty 8s ease-in-out infinite; }
.float--1 { top: 2%; right: 0; max-width: 64%; animation-delay: -1s; }
.float--2 { left: -3%; top: 70%; max-width: 58%; animation-delay: -3s; }
.float--3 { right: 0; bottom: -1%; animation-delay: -5s; }
.float--4 { left: -2%; top: 26%; animation-delay: -2s; }

.chip-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi), 0 12px 30px -12px rgba(20, 20, 80, 0.55);
}
.chip-badge .icon {
  width: 22px; height: 22px; padding: 4px;
  border-radius: 50%;
  color: #fff;
  background: var(--check-bg);
  stroke-width: 3;
}

/* ---------- Chat bubbles (shared) ---------- */
.bubble {
  width: fit-content;
  max-width: 85%;
  padding: 0.7em 1em;
  border-radius: 20px;
  font-size: 0.95rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
}
.bubble--user {
  margin-left: auto;
  color: #fff;
  background: var(--bubble-user);
  border-bottom-right-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), var(--bubble-user-shadow);
}
.bubble--bot {
  color: var(--text);
  background: var(--bubble-bot);
  border: 1px solid var(--bubble-bot-border);
  border-bottom-left-radius: 6px;
  box-shadow: var(--glass-hi);
}
.bubble--sm { font-size: 0.88rem; }
/* Floating hero cards: solid frosted fill by default (phones get no live blur),
   real see-through blur on larger screens */
.float.bubble--bot, .float.chip-badge, .float.quote-mini { background: var(--glass-fallback); }
@media (min-width: 900px) and (hover: hover) {
  .float.bubble--bot, .float.chip-badge, .float.quote-mini {
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}

.quote-mini {
  display: grid;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 20px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi), 0 20px 50px -18px rgba(90, 70, 255, 0.5);
}
.quote-mini__label { font-size: 0.78rem; color: var(--text-2); font-weight: 600; }
.quote-mini__total {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  background: var(--grad-price);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.quote-mini__total small { font-size: 0.8rem; font-weight: 700; }
.quote-mini__meta { font-size: 0.75rem; color: var(--text-3); }

/* ---------- Sections ---------- */
.section {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  padding-block: clamp(80px, 11vw, 150px);
}
.section-glow {
  position: absolute;
  z-index: -1;
  width: min(80vw, 960px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, var(--section-glow), transparent);
}
.section-glow--left { left: -30%; top: 0; }
.section-glow--right { right: -30%; top: 5%; }
.section-glow--center { left: 50%; top: 18%; transform: translateX(-50%); width: min(110vw, 1200px); }

/* Problem */
.problem { padding-top: clamp(40px, 6vw, 80px); }
.problem__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.problem .card { padding: 30px; }
.problem .card h3 { margin-bottom: 10px; }
.problem .card p { color: var(--text-2); }
.problem__answer {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(40px, 5vw, 64px);
  text-align: center;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  color: var(--text-2);
}
.problem__answer strong { color: var(--text); }
.buddi-inline { width: 46px; height: 46px; flex: none; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { padding: 28px; overflow: hidden; }
.step__num {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}
.step__art {
  display: flex;
  align-items: center;
  min-height: 110px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 18px;
  background: var(--inset-bg);
  border: 1px solid var(--line);
}
.step__art .bubble { max-width: 100%; }
.step__art .quote-mini { width: 100%; padding: 10px 14px; box-shadow: var(--glass-hi); }
.step__art .quote-mini__total { font-size: 1.4rem; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-2); }

/* ---------- Demo ---------- */
.demo__grid {
  display: grid;
  grid-template-columns: minmax(0, 392px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  max-width: 1040px;
  margin-inline: auto;
}
.phone {
  width: 100%;
  max-width: 392px;
  margin-inline: auto;
  padding: 9px;
  border-radius: 54px;
  background: var(--phone-rim);
  box-shadow:
    0 0 0 1px var(--line),
    0 50px 100px -30px rgba(5, 5, 40, 0.8),
    0 30px 140px -40px rgba(98, 86, 255, 0.65);
}
.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 690px;
  max-height: calc(100svh - 120px);
  min-height: 540px;
  border-radius: 45px;
  overflow: hidden;
  background: var(--phone-screen);
}
.phone__notch {
  position: absolute;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 28px;
  border-radius: 999px;
  background: #000;
  z-index: 2;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 52px 16px 14px;
  border-bottom: 1px solid var(--line);
  flex: none;
}
.chat-head__avatar {
  width: 40px;
  height: 40px;
  flex: none;
  padding: 4px;
  border-radius: 14px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi);
}
.chat-head__who { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.chat-head__who strong { font-size: 1rem; }
.chat-head__who span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.online-dot, .live-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  flex: none;
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--mint);
  animation: ping 2s var(--ease) infinite;
}

/* Chat engine */
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat__log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.chat__log > * { flex-shrink: 0; }
.msg {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  animation: msg-in 0.4s var(--ease) both;
}
.msg--user { justify-content: flex-end; }
.msg__avatar { width: 26px; height: 26px; flex: none; margin-bottom: 2px; }
.msg--bot .bubble { max-width: calc(100% - 50px); }
.msg--user .bubble { max-width: 82%; }
.msg--follow .msg__avatar { visibility: hidden; }
.bubble strong { font-weight: 700; }

.msg__img {
  max-width: 190px;
  border-radius: 18px;
  border-bottom-right-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  box-shadow: 0 10px 24px -10px rgba(10, 10, 60, 0.6);
}
.msg__img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }

.typing { display: inline-flex; align-items: center; gap: 4px; padding: 0.85em 1em; }
.typing i, .typing-demo i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-2);
  animation: typing 1.2s infinite ease-in-out;
}
.typing i:nth-child(2), .typing-demo i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3), .typing-demo i:nth-child(3) { animation-delay: 0.3s; }

.chat__replies {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  padding: 4px 14px 10px;
  flex: none;
}
.chat__replies:empty { display: none; }
.chip {
  min-height: 36px;
  padding: 0.5em 0.95em;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  color: var(--chip-text);
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease);
  animation: chip-in 0.4s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 60ms);
}
.chip:hover { background: var(--chip-bg-hover); }
.chip:active { transform: scale(0.96); }
.chip--accent {
  color: #fff;
  background: var(--tile-glow);
  border-color: var(--tile-glow-border);
  box-shadow: var(--tile-glow-shadow);
}
.chip--accent:hover { background: var(--tile-glow); filter: brightness(1.12); }

.chat__form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--inset-bg);
  flex: none;
}
.chat__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 16px; /* prevents iOS zoom-on-focus */
  background: var(--field-bg);
  border: 1px solid var(--line-2);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chat__input::placeholder { color: var(--text-3); }
.chat__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chat__send {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  color: #fff;
  background: var(--tile-glow);
  border: 1px solid var(--tile-glow-border);
  box-shadow: var(--tile-glow-shadow);
  transition: transform 0.2s var(--ease);
}
.chat__send:hover { transform: scale(1.06); }
.chat__send .icon { width: 20px; height: 20px; stroke-width: 2.4; }
.chat__file { display: none; }

/* Quote card inside chat */
.qcard {
  position: relative;
  width: calc(100% - 34px);
  margin-left: 34px;
  padding: 16px 16px 14px;
  border-radius: 22px;
  border-bottom-left-radius: 6px;
  background: var(--bubble-bot);
  border: 1px solid var(--bubble-bot-border);
  box-shadow: var(--glass-hi), 0 20px 50px -20px rgba(98, 86, 255, 0.55);
  overflow: hidden;
  animation: msg-in 0.5s var(--ease) both;
  font-size: 0.86rem;
}
.qcard::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #c9cbff, #7a63ff, #4f53d9);
}
.qcard__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.qcard__kicker { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.qcard__id { font-family: var(--mono); font-size: 0.7rem; color: var(--text-3); }
.qcard__title { font-size: 1rem; font-weight: 700; margin: 6px 0 2px; line-height: 1.3; }
.qcard__vehicle { color: var(--text-2); font-size: 0.8rem; }
.qcard__lines { margin: 12px 0 10px; padding: 10px 0; border-block: 1px dashed var(--line-2); display: grid; gap: 7px; }
.qcard__lines li, .qcard__sum li { display: flex; justify-content: space-between; gap: 12px; }
.qcard__lines li span:first-child { color: var(--text-2); }
.qcard__lines li small { display: block; color: var(--text-3); font-size: 0.72rem; }
.qcard__lines li span:last-child, .qcard__sum li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }
.qcard__sum { display: grid; gap: 4px; color: var(--text-2); }
.qcard__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-2);
}
.qcard__total span { font-weight: 700; }
.qcard__total strong {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-price);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.qcard__total small { font-size: 0.7rem; color: var(--text-3); margin-left: 4px; font-weight: 700; -webkit-text-fill-color: var(--text-3); }
.qcard__note { margin-top: 10px; font-size: 0.72rem; color: var(--text-3); line-height: 1.45; }
.qcard__extra {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 0.76rem;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

/* Shop view */
.shopview { padding: clamp(22px, 3vw, 32px); }
.shopview__kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.shopview h3 { font-size: 1.35rem; margin-bottom: 14px; }
.shopview__list { margin: 0; }
.sv-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.sv-row dt { font-size: 0.82rem; color: var(--text-3); font-weight: 600; }
.sv-row dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.sv-row dd.is-empty { color: var(--text-3); font-weight: 500; }
.sv-row.is-flash dd { animation: flash 1.2s var(--ease); }
.sv-row--total { border-bottom: 0; }
.sv-row--total dd { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; }
.sv-row--total dd:not(.is-empty) {
  background: var(--grad-price);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.shopview__note {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.86rem;
  color: var(--text-2);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}
.shopview__note .icon { margin-top: 3px; color: var(--accent); }

/* ---------- Industries (tabs) ---------- */
.tabs { display: flex; flex-direction: column; align-items: center; }
.segmented {
  position: relative;
  display: inline-flex;
  padding: 6px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi), 0 14px 34px -18px rgba(20, 20, 90, 0.5);
  max-width: 100%;
}
.segmented__thumb {
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 0;
  border-radius: 999px;
  background: var(--tile-glow);
  border: 1px solid var(--tile-glow-border);
  box-shadow: var(--tile-glow-shadow);
  transform: translateX(var(--x, 6px));
  width: var(--w, 0);
  transition: transform 0.45s var(--spring), width 0.45s var(--spring);
}
.segmented [role="tab"] {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0.6em 1.25em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.25s;
}
.segmented [role="tab"][aria-selected="true"] { color: #fff; }
.segmented [role="tab"]:not([aria-selected="true"]):hover { color: var(--text); }

.tab-panel {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 4vw, 48px);
  animation: panel-in 0.5s var(--ease) both;
}
.tab-panel h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.03em; margin-bottom: 12px; }
.tab-panel__copy > p { color: var(--text-2); margin-bottom: 22px; }
.tab-panel__chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: 22px;
  background:
    radial-gradient(100% 70% at 0% 0%, var(--accent-soft), transparent 60%),
    var(--inset-bg);
  border: 1px solid var(--line);
}

.checklist { display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; color: var(--text-2); }
.checklist .icon {
  width: 22px;
  height: 22px;
  padding: 4px;
  margin-top: 1px;
  border-radius: 50%;
  color: #fff;
  background: var(--check-bg);
  stroke-width: 3;
}
.checklist--lg li { font-size: 1.05rem; color: var(--text); }

/* ---------- Revenue calculator ---------- */
@property --pct {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
.calc__grid {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
}
.calc .section-head .lead { max-width: 44em; }
.calc .section-head { margin-bottom: 0; }
.calc__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-text);
}
.calc-card {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  overflow: hidden;
  background:
    radial-gradient(70% 50% at 75% 115%, var(--tile-underglow), transparent 70%),
    var(--glass);
}
.calc-card__controls {
  display: grid;
  gap: 26px;
  align-content: center;
  padding: clamp(22px, 3vw, 34px);
  border-right: 1px solid var(--line);
}
.calc-card__result {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(22px, 3vw, 34px);
}

/* One plain-language question per slider */
.calc-q__label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.calc-q__num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  margin-top: -1px;
  border-radius: 50%;
  font-size: 0.8rem;
  font-weight: 800;
  color: #fff;
  background: var(--tile-glow);
  border: 1px solid var(--tile-glow-border);
  box-shadow: var(--tile-glow-shadow);
}
.calc-q__help { margin: 4px 0 8px 36px; font-size: 0.86rem; color: var(--text-3); }
.calc-q__row { display: flex; align-items: center; gap: 14px; margin-left: 36px; }
.calc-q__row input[type="range"] { flex: 1; min-width: 0; }
.calc-q__out {
  flex: none;
  min-width: 104px;
  padding: 6px 12px;
  border-radius: 999px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  font-variant-numeric: tabular-nums;
}

/* Frosted glass progress ring */
.ring {
  --pct: 35;
  position: relative;
  display: grid;
  place-items: center;
  width: min(190px, 60vw);
  aspect-ratio: 1;
  margin-bottom: 18px;
  border-radius: 50%;
  background:
    conic-gradient(from -90deg, #4f53d9 0, #7a63ff calc(var(--pct) * 0.5%), #a9acf6 calc(var(--pct) * 1%), rgba(79, 83, 217, 0.1) 0);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, 0.9),
    inset 0 -4px 10px rgba(79, 83, 217, 0.25),
    0 22px 44px -20px rgba(60, 50, 200, 0.6);
  transition: --pct 0.5s var(--ease);
}
.ring__inner {
  display: grid;
  place-content: center;
  width: 72%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow:
    var(--glass-hi),
    inset 0 -8px 16px rgba(79, 83, 217, 0.12),
    0 8px 20px -10px rgba(40, 40, 140, 0.5);
}
.ring__inner strong {
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--grad-price);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.ring__inner span { font-size: 0.78rem; font-weight: 700; color: var(--text-3); margin-top: 4px; max-width: 9em; line-height: 1.25; }

.calc__label { font-size: 0.9rem; font-weight: 700; color: var(--text-2); }
.calc__big {
  font-size: clamp(2.2rem, 4.4vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 2px 0 14px;
  background: var(--grad-price);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.calc__big { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 0 8px; }
.calc__big small { white-space: nowrap; font-size: 1rem; font-weight: 700; letter-spacing: 0; -webkit-text-fill-color: var(--text-3); }
.calc__story {
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-2);
  background: var(--inset-bg);
  border: 1px solid var(--line);
}
.calc__story b { color: var(--text); }
.calc__fine { margin-top: 14px; font-size: 0.76rem; color: var(--text-3); line-height: 1.45; }

.field-range label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
}
.field-range output { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; font-size: 1rem; }

input[type="range"] {
  --p: 50%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 28px;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) 0 var(--p), var(--line-2) var(--p) 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border-radius: 50%;
  border: 0;
  background: radial-gradient(circle at 35% 30%, #fff, #e3e4ff 55%, #a9acf6);
  box-shadow: 0 0 0 5px var(--accent-soft), 0 4px 12px rgba(10, 10, 60, 0.45);
}
input[type="range"]::-moz-range-track { height: 8px; border-radius: 99px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--accent); }
input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: radial-gradient(circle at 35% 30%, #fff, #e3e4ff 55%, #a9acf6);
  box-shadow: 0 0 0 5px var(--accent-soft), 0 4px 12px rgba(10, 10, 60, 0.45);
}
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); }
input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); }

/* ---------- 3D frosted glass floor (decorative) ---------- */
.glass-floor {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: -60px;
  width: 1200px;
  height: 620px;
  transform: translateX(-50%);
  perspective: 1000px;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 35%, transparent 100%);
}
.glass-floor__grid {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  grid-template-columns: repeat(6, 150px);
  gap: 16px;
  transform: translate(-50%, -38%) rotateX(60deg) rotateZ(-40deg);
}
.glass-floor__grid i {
  aspect-ratio: 1;
  border-radius: 22px;
  background: var(--floor-tile);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 12px 0 -2px var(--floor-edge),
    0 30px 30px -10px rgba(5, 5, 40, 0.35);
}
.glass-floor__grid i:nth-child(8),
.glass-floor__grid i:nth-child(15),
.glass-floor__grid i:nth-child(21) { background: var(--floor-lit); }
.glass-floor__grid i:nth-child(3n) { opacity: 0.75; }

/* ---------- Features (bento) ---------- */
.features .section-head { position: relative; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative;
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 28px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(90% 55% at 50% 118%, var(--tile-underglow), transparent 70%),
    var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi), var(--shadow);
}
.tile h3 { margin-bottom: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.tile p { color: var(--text-2); font-size: 0.95rem; }
.tile > p { margin-bottom: 20px; }
.tile--vin, .tile--install {
  grid-column: span 4;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
}

.tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}

/* VIN visual */
.vin { display: grid; gap: 16px; }
.vin__chars { display: grid; grid-template-columns: repeat(17, minmax(0, 1fr)); gap: 3px; }
.vin__c {
  display: grid;
  place-items: center;
  aspect-ratio: 0.72;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1.5vw, 1.05rem);
  font-weight: 500;
  color: var(--text);
  background: var(--vin-bg);
  border: 1px solid var(--line-2);
  border-top-color: var(--seg);
  box-shadow: inset 0 2px 0 -1px var(--seg);
}
.vin__c[data-g="a"], .vin__seg--a { --seg: #6d71ee; }
.vin__c[data-g="b"], .vin__seg--b { --seg: #a9acf6; }
.vin__c[data-g="c"], .vin__seg--c { --seg: var(--mint); }
.vin__c[data-g="d"], .vin__seg--d { --seg: var(--violet); }
.vin__c[data-g="d"] { background: var(--accent-soft); }
.vin__c[data-g="e"], .vin__seg--e { --seg: var(--line-2); }
.vin__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.8rem; font-weight: 600; color: var(--text-2); }
.vin__seg { display: inline-flex; align-items: center; gap: 6px; }
.vin__seg::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--seg); }

/* Photos visual */
.photos { position: relative; height: 110px; margin-top: auto; padding-top: 18px; }
.photos__card {
  position: absolute;
  bottom: 0;
  width: 96px;
  height: 78px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px -10px rgba(10, 10, 60, 0.6);
  transition: transform 0.5s var(--spring);
}
.photos__card--1 { left: 0; transform: rotate(-8deg); background: linear-gradient(160deg, #e3e4ff, #a9acf6 60%, #6d71ee); }
.photos__card--2 { left: 70px; transform: rotate(4deg); background: linear-gradient(200deg, #b29cff, #5d52ec 60%, #11135e); z-index: 1; }
.photos__card--3 {
  left: 142px;
  transform: rotate(-3deg);
  display: grid;
  place-items: center;
  color: var(--text-2);
  background: var(--glass-strong);
  border: 2px dashed var(--accent-border);
  z-index: 2;
}
.photos__card--3 .icon { width: 28px; height: 28px; }
@media (hover: hover) {
  .tile:hover .photos__card--1 { transform: rotate(-14deg) translateX(-6px); }
  .tile:hover .photos__card--2 { transform: rotate(0) translateY(-8px); }
  .tile:hover .photos__card--3 { transform: rotate(6deg) translateX(8px); }
}

.mini-rules { display: grid; gap: 8px; margin-top: auto; }
.mini-rules li {
  display: flex;
  justify-content: space-between;
  padding: 9px 14px;
  border-radius: 12px;
  font-size: 0.86rem;
  background: var(--inset-bg);
  border: 1px solid var(--line);
}
.mini-rules span { color: var(--text-2); }

.notif {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi), 0 14px 30px -14px rgba(10, 10, 60, 0.6);
}
.notif__icon { width: 36px; height: 36px; flex: none; }
.notif b { display: block; font-size: 0.9rem; }
.notif small { display: block; font-size: 0.78rem; color: var(--text-3); }

.typing-demo {
  display: inline-flex;
  align-self: flex-start;
  gap: 5px;
  margin-top: auto;
  padding: 14px 18px;
  border-radius: 20px;
  border-bottom-left-radius: 6px;
  background: var(--bubble-bot);
  border: 1px solid var(--bubble-bot-border);
}

.code {
  min-width: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #0b0c2a;
  border: 1px solid rgba(205, 208, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 20px 40px -20px rgba(10, 10, 60, 0.6);
  color: rgba(228, 230, 255, 0.78);
}
.code__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 8px 8px 16px;
  border-bottom: 1px solid rgba(205, 208, 255, 0.1);
  font-family: var(--mono);
  font-size: 0.76rem;
  color: rgba(228, 230, 255, 0.6);
}
.code__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  color: #eef0ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(205, 208, 255, 0.18);
  transition: background 0.2s;
}
.code__copy:hover { background: rgba(255, 255, 255, 0.14); }
.code__copy.is-done { color: #3ddc97; border-color: rgba(61, 220, 151, 0.4); }
.code pre {
  margin: 0;
  padding: 18px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
}
.c-tag { color: #a9acf6; }
.c-attr { color: #cdb8ff; }
.c-str { color: #9ff0c5; }

.orbit { position: relative; width: 130px; height: 130px; margin: auto auto 0; }
.orbit i {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--accent-border);
  animation: spin 18s linear infinite;
}
.orbit i::after {
  content: "";
  position: absolute;
  top: -6px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(160deg, #c9b8ff, #7a63ff);
  box-shadow: 0 0 14px rgba(122, 99, 255, 0.7);
}
.orbit i:nth-child(2) { inset: 18px; animation-duration: 12s; animation-direction: reverse; }
.orbit i:nth-child(2)::after { background: linear-gradient(160deg, #e3e4ff, #8f93f7); box-shadow: 0 0 14px rgba(143, 147, 247, 0.8); }
.orbit i:nth-child(3) { inset: 36px; border-style: solid; border-color: var(--line); animation: none; }
.orbit i:nth-child(3)::after { display: none; }
.orbit span { position: absolute; inset: 44px; }

/* ---------- FAQ ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.faq .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.faq__list { display: grid; gap: 12px; }
.faq__item {
  border-radius: var(--r);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi), 0 14px 34px -24px rgba(20, 20, 90, 0.5);
}
.faq__item[open] {
  background:
    radial-gradient(90% 80% at 50% 120%, var(--tile-underglow), transparent 70%),
    var(--glass);
}
.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  min-height: 44px;
  font-weight: 700;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  border-radius: var(--r);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--inset-bg);
  border: 1px solid var(--line-2);
  transition: transform 0.35s var(--spring);
}
.faq__icon::before, .faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: currentColor;
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon {
  transform: rotate(45deg);
  color: #fff;
  background: var(--tile-glow);
  border-color: var(--tile-glow-border);
}
.faq__body { padding: 0 22px 22px; color: var(--text-2); }
.faq__item[open] .faq__body { animation: faq-in 0.4s var(--ease); }

/* ---------- Book a demo ---------- */
.book__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.book .lead { margin: 18px 0 28px; }
.book__buddi { display: flex; align-items: center; gap: 12px; margin-top: 36px; }
.book__buddi-mark { width: 64px; height: 64px; flex: none; animation: bob 5s ease-in-out infinite; }

.form-card {
  padding: clamp(22px, 4vw, 40px);
  background:
    radial-gradient(90% 50% at 50% 115%, var(--tile-underglow), transparent 70%),
    var(--glass);
}
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field legend { font-size: 0.88rem; font-weight: 700; color: var(--text-2); padding: 0; }
.field legend { margin-bottom: 7px; }
.optional { font-weight: 500; color: var(--text-3); margin-left: 4px; font-size: 0.8rem; }
.field input, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 15px;
  border-radius: 14px;
  font-size: 16px;
  background: var(--field-bg);
  border: 1px solid var(--line-2);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); opacity: 0.75; }
.field input:focus, .field textarea:focus {
  border-color: var(--accent);
  background: var(--field-bg-focus);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field__error { font-size: 0.8rem; color: var(--danger); font-weight: 600; }
.field__error:empty { display: none; }

.choice-group { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 10px;
  border-radius: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-2);
  background: var(--field-bg);
  border: 1px solid var(--line-2);
  transition: all 0.2s;
  pointer-events: none;
}
.choice input:hover + span { color: var(--text); border-color: var(--accent-border); }
.choice input:checked + span {
  color: #fff;
  background: var(--tile-glow);
  border-color: var(--tile-glow-border);
  box-shadow: var(--tile-glow-shadow);
}
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.has-error .choice span { border-color: var(--danger); }

/* Consent checkboxes */
.consent { display: grid; gap: 12px; }
.check {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.5;
  cursor: pointer;
}
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.check__box {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 8px;
  background: var(--field-bg);
  border: 1px solid var(--line-2);
  transition: background 0.2s, border-color 0.2s;
}
.check__box .icon { width: 15px; height: 15px; stroke-width: 3; color: #fff; opacity: 0; transform: scale(0.6); transition: opacity 0.2s, transform 0.3s var(--spring); }
.check input:checked + .check__box { background: var(--tile-glow); border-color: var(--tile-glow-border); }
.check input:checked + .check__box .icon { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.has-error .check__box { border-color: var(--danger); }
.required-mark { color: var(--danger); font-weight: 700; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__fine { font-size: 0.8rem; color: var(--text-3); text-align: center; margin-top: -4px; }
.form__status { font-size: 0.88rem; text-align: center; color: var(--danger); }
.form__status:empty { display: none; }

.form-success { text-align: center; padding: clamp(20px, 5vw, 48px) 0; outline: none; }
.form-success__buddi { display: block; width: 110px; height: 110px; margin: 0 auto 20px; animation: bounce-in 0.8s var(--spring) both; }
.form-success h3 { font-size: 1.6rem; margin-bottom: 10px; }
.form-success p { color: var(--text-2); max-width: 28em; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.footer {
  position: relative;
  padding: 72px 0 32px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--accent-soft), transparent 60%);
}
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.1fr; gap: 40px; }
.footer__brand p { color: var(--text-3); margin-top: 14px; max-width: 26em; font-size: 0.94rem; }
.footer__col { display: grid; gap: 10px; align-content: start; }
.footer__col h4 { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.footer__col a { color: var(--text-2); font-size: 0.95rem; width: fit-content; transition: color 0.2s; }
.footer__col a:hover { color: var(--text); }
.socials { display: flex; gap: 8px; margin-top: 6px; }
.socials a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi);
  transition: transform 0.25s var(--ease);
}
.socials a:hover { transform: translateY(-2px); }
.footer__base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 24px;
  font-size: 0.84rem;
  color: var(--text-3);
}
.footer__base::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  border-top: 1px solid var(--line);
}
.footer__legal { display: flex; gap: 18px; }
.footer__legal a { color: var(--text-2); }
.footer__legal a:hover { color: var(--text); }

/* ---------- Legal pages ---------- */
.legal-page { padding: calc(var(--nav-h) + 80px) 0 100px; }
.legal-hero { max-width: 1080px; margin: 0 auto 40px; }
.legal-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 14px;
}
.legal-hero p { color: var(--text-2); max-width: 44em; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.legal-meta span {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}
.legal-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: start;
}
.legal-toc { position: sticky; top: 110px; padding: 20px; font-size: 0.88rem; }
.legal-toc h2 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.legal-toc ol { display: grid; gap: 4px; }
.legal-toc a { color: var(--text-2); display: block; padding: 3px 0; }
.legal-toc a:hover { color: var(--text); }
.legal { padding: clamp(24px, 4vw, 48px); }
.legal section { scroll-margin-top: 100px; }
.legal section + section { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.legal h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; margin-bottom: 12px; }
.legal h3 { font-size: 1.02rem; margin: 18px 0 8px; }
.legal p, .legal li { color: var(--text-2); }
.legal p + p, .legal ul + p, .legal p + ul { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; }
.legal strong { color: var(--text); }
.legal .callout {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--text);
}
.legal .caps { text-transform: uppercase; font-size: 0.92rem; letter-spacing: 0.01em; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease) var(--d, 0s), transform 0.8s var(--ease) var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Pause decorative animation in off-screen sections (JS toggles) */
.is-offscreen *, .is-offscreen *::before, .is-offscreen *::after { animation-play-state: paused !important; }

/* ---------- Keyframes ---------- */
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(6%, 4%, 0) scale(1.08); }
  100% { transform: translate3d(-4%, 8%, 0) scale(0.96); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(-1.5deg); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes blink {
  0%, 94%, 100% { transform: scaleY(1); }
  96% { transform: scaleY(0.08); }
}
@keyframes ping {
  0% { transform: scale(1); opacity: 0.7; }
  80%, 100% { transform: scale(2.6); opacity: 0; }
}
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
@keyframes chip-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes panel-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes faq-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@keyframes bounce-in {
  0% { opacity: 0; transform: scale(0.6) translateY(10px); }
  100% { opacity: 1; transform: none; }
}
@keyframes flash {
  0% { background: var(--accent-soft); box-shadow: 0 0 0 4px var(--accent-soft); }
  100% { background: transparent; box-shadow: 0 0 0 4px transparent; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { grid-column: span 1; }
  .tile--vin, .tile--install, .tile--soon { grid-column: span 2; }
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__ctas, .hero__for { justify-content: center; }
  .hero__visual { max-width: 460px; margin-top: 12px; }

  .demo__grid { grid-template-columns: minmax(0, 1fr); }
  .shopview { max-width: 560px; width: 100%; margin-inline: auto; }

  .calc__grid, .faq__grid, .book__grid { grid-template-columns: 1fr; }
  .faq .section-head { position: static; }

  .tab-panel { grid-template-columns: 1fr; }
  .problem__grid, .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }

  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .glass-floor { width: 900px; height: 480px; }
  .glass-floor__grid { grid-template-columns: repeat(6, 110px); gap: 12px; }
}

@media (max-width: 720px) {
  .calc-card { grid-template-columns: 1fr; }
  .calc-card__controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .tile--vin, .tile--install { grid-template-columns: minmax(0, 1fr); }
  .nav__inner { -webkit-backdrop-filter: blur(12px) saturate(150%); backdrop-filter: blur(12px) saturate(150%); }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile, .tile--vin, .tile--install, .tile--soon { grid-column: span 1; }
  .tile { min-height: 0; }
  .form__row { grid-template-columns: 1fr; }
  .choice-group { grid-template-columns: 1fr 1fr; }
  .segmented [role="tab"] { padding: 0.6em 0.9em; font-size: 0.88rem; }
  .sv-row { grid-template-columns: 108px minmax(0, 1fr); }
  .hero__ctas .btn { flex: 1 1 100%; }
  .float { font-size: 0.82rem; }
  .float--1 { top: 0; max-width: 78%; }
  .float--2 { display: none; }
  .float--3 { bottom: 2%; }
  .float--4 { top: 22%; left: 0; }
  .glass-pill { left: 2%; }
  .quote-mini__total { font-size: 1.35rem; }
  .phone { padding: 7px; border-radius: 46px; }
  .phone__screen { border-radius: 39px; height: 640px; max-height: calc(100svh - 90px); min-height: 520px; }
  .glass-floor { width: 640px; height: 380px; top: -30px; }
  .glass-floor__grid { grid-template-columns: repeat(6, 80px); gap: 10px; }
  .glass-floor__grid i { border-radius: 14px; }
  .footer__base { flex-direction: column; }
}

@media (max-width: 420px) {
  .segmented [role="tab"] .icon { display: none; }
  .segmented [role="tab"] { padding: 0.6em 0.85em; }
  .footer__grid { grid-template-columns: 1fr; }
  .brand__word { font-size: 1.08rem; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

.footer > .footer__base:first-child { margin-top: 0; }

/* Plain-language summary at the top of each legal page */
.legal-short { margin-top: 24px; padding: 22px 26px; }
.legal-short h2 { font-size: 1.15rem; margin-bottom: 10px; }
.legal-short ul { list-style: disc; padding-left: 1.3em; display: grid; gap: 6px; color: var(--text); }
.legal-short p { margin-top: 12px; font-size: 0.86rem; color: var(--text-3); }

/* ---------- Open hours check ---------- */
.day-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-left: 36px; }
.day-chip {
  min-width: 52px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-2);
  background: var(--field-bg);
  border: 1px solid var(--line-2);
  transition: background 0.2s, color 0.2s, transform 0.2s var(--ease);
}
.day-chip:hover { color: var(--text); border-color: var(--accent-border); }
.day-chip:active { transform: scale(0.95); }
.day-chip[aria-pressed="true"] {
  color: #fff;
  background: var(--tile-glow);
  border-color: var(--tile-glow-border);
  box-shadow: var(--tile-glow-shadow);
}
fieldset.calc-q { margin: 0; padding: 0; border: 0; min-width: 0; }
legend.calc-q__label { padding: 0; }

.hours-card__result { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 34px); }
.hours__kicker { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 12px; }

.week { display: grid; gap: 7px; }
.week__row, .week__axis { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 10px; }
.week__day { font-size: 0.8rem; font-weight: 700; color: var(--text-3); }
.week__bar {
  position: relative;
  height: 16px;
  border-radius: 999px;
  background: var(--inset-bg);
  border: 1px solid var(--line);
}
.week__open {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: var(--l, 33%);
  width: var(--w, 37%);
  border-radius: 999px;
  background: linear-gradient(180deg, #c3c5fb, #7478ec);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 4px 10px -4px rgba(79, 83, 217, 0.6);
  transition: left 0.3s var(--ease), width 0.3s var(--ease), opacity 0.3s;
}
.week__row.is-closed .week__open { opacity: 0; }
.week__row.is-closed .week__day { opacity: 0.55; }
.week__dot {
  position: absolute;
  top: 50%;
  left: var(--x, 0%);
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  background: var(--tile-glow);
  border: 2px solid #fff;
  box-shadow: 0 0 0 5px rgba(122, 99, 255, 0.22), 0 6px 14px -4px rgba(40, 30, 140, 0.7);
  opacity: 0;
  transform: scale(0.4);
  transition: left 0.25s var(--ease), opacity 0.2s, transform 0.3s var(--spring);
}
.week__row.is-now .week__dot { opacity: 1; transform: none; }
.week__row.is-now .week__day { color: var(--accent-text); }
.week__ticks { display: flex; justify-content: space-between; font-size: 0.68rem; font-weight: 700; color: var(--text-3); }
.week__ticks i { font-style: normal; }
.week__legend { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.78rem; font-weight: 600; color: var(--text-3); }
.week__key { display: inline-block; width: 18px; height: 10px; border-radius: 999px; font-style: normal; }
.week__key--open { background: linear-gradient(180deg, #c3c5fb, #7478ec); }
.week__key--dot { width: 12px; height: 12px; margin-left: 8px; background: var(--tile-glow); border: 2px solid #fff; box-shadow: 0 0 0 2px rgba(122, 99, 255, 0.3); }

.hours__status { margin-top: 18px; font-size: 1.02rem; color: var(--text-2); }
.hours__status b { color: var(--text); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.compare__card { padding: 14px 16px; border-radius: 16px; font-size: 0.92rem; line-height: 1.45; color: var(--text-2); }
.compare__card b { color: var(--text); }
.compare__card--without { background: var(--inset-bg); border: 1px dashed var(--line-2); }
.compare__card--with {
  background:
    radial-gradient(90% 70% at 50% 120%, var(--tile-underglow), transparent 70%),
    var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi), 0 14px 30px -18px rgba(79, 83, 217, 0.7);
}
.compare__title { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 4px; }
.compare__card--with .compare__title { color: var(--accent-text); }
.hours__total {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 0.95rem;
  color: var(--text-2);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}
.hours__total b { color: var(--text); }

/* ---------- Clear quotes tile ---------- */
.mini-quote {
  position: relative;
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--bubble-bot);
  border: 1px solid var(--bubble-bot-border);
  box-shadow: var(--glass-hi), 0 20px 44px -22px rgba(79, 83, 217, 0.6);
  overflow: hidden;
  font-size: 0.86rem;
}
.mini-quote::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, #c9cbff, #7a63ff, #4f53d9); }
.mini-quote__kicker { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); }
.mini-quote__title { font-weight: 700; margin: 4px 0 10px; }
.mini-quote__lines { display: grid; gap: 6px; padding: 10px 0; border-block: 1px dashed var(--line-2); }
.mini-quote__lines li { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); }
.mini-quote__lines li span:last-child { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-quote__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; }
.mini-quote__total span { font-weight: 700; }
.mini-quote__total strong {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-price);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 640px) {
  .compare { grid-template-columns: 1fr; }
  .day-chips, .calc-q__help, .calc-q__row { margin-left: 0; }
}

/* ---------- Money calculator: "Here's the math" ---------- */
.calc-math { display: flex; flex-direction: column; padding: clamp(22px, 3vw, 34px); }
.calc-math__title { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
.calc-math__steps { display: grid; }
.calc-math__step, .calc-math__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.calc-math__step { padding: 14px 0; border-bottom: 1px dashed var(--line-2); }
.calc-math__text { display: grid; gap: 2px; }
.calc-math__label { font-size: 0.98rem; font-weight: 700; color: var(--text); line-height: 1.35; }
.calc-math__sum { font-size: 0.86rem; color: var(--text-3); font-variant-numeric: tabular-nums; }
.calc-math__num { font-size: 1.5rem; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.calc-math__total {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background:
    radial-gradient(90% 90% at 50% 130%, var(--tile-underglow), transparent 70%),
    var(--glass-strong);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-hi), 0 16px 34px -20px rgba(79, 83, 217, 0.7);
}
.calc-math__money {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  background: var(--grad-price);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.calc-math .calc__fine { margin-top: 12px; text-align: left; }

/* ---------- Customized to your pricing tile ---------- */
.tune-card {
  padding: 18px 20px;
  border-radius: 20px;
  background: var(--bubble-bot);
  border: 1px solid var(--bubble-bot-border);
  box-shadow: var(--glass-hi), 0 20px 44px -22px rgba(79, 83, 217, 0.6);
}
.tune-card__kicker { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
.tune-card__list { display: grid; }
.tune-card__list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; font-size: 0.9rem; font-weight: 600; border-bottom: 1px dashed var(--line-2); }
.tune-card__list li:last-child { border-bottom: 0; }
.tune-card__list em {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px 3px 6px;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--accent-text);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}
.tune-card__list em .icon { width: 15px; height: 15px; padding: 2px; border-radius: 50%; color: #fff; background: var(--check-bg); stroke-width: 3.2; }

@media (max-width: 720px) {
  .calc-math__num { font-size: 1.3rem; }
}

/* ---------- Money calculator: just the answer ---------- */
.calc-answer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(28px, 4vw, 48px);
}
.calc-answer__label { font-size: 1.1rem; font-weight: 700; color: var(--text-2); }
.calc-answer__money {
  margin: 6px 0 4px;
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  background: var(--grad-price);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.calc-answer__per { font-size: 1.05rem; color: var(--text-2); max-width: 18em; }
.calc-answer .calc__fine { margin-top: 18px; }

/* Money calculator dial */
.calc-answer .ring { margin-bottom: 20px; }
.calc-answer .ring__inner strong { font-size: 2rem; }
.calc-answer__money { transition: filter 0.3s var(--ease), transform 0.3s var(--ease); }
.calc-answer__money.is-counting { filter: drop-shadow(0 0 14px rgba(122, 99, 255, 0.35)); transform: scale(1.02); }

/* Gradient text only paints inside its own box, so give prices room for the
   bottom of "$" and "," (otherwise they get clipped) */
.calc-answer__money { line-height: 1.2; padding: 0.02em 0.04em 0.1em; margin: 0; }
.quote-mini__total { line-height: 1.25; padding-bottom: 0.08em; }
.ring__inner strong { line-height: 1.2; padding-bottom: 0.06em; }
