/* =========================================================
   Keystone — mobile-first styles
   ========================================================= */
:root {
  --bg: #0A0F24;
  --ink: #EEF1FA;
  --muted: #B3BAD1;
  --faint: #6F7897;
  --line: rgba(255, 255, 255, .10);
  --glass: rgba(11, 16, 36, .62);
  --accent: #B98AF0;
  --accent-2: #7C4DDB;
  --radius: 22px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--accent-2); color: #fff; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: #0A0F24; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(720px, 100% - 32px); }

/* ---------- Typography ---------- */
h1, h2, h3 { font-weight: 600; letter-spacing: -.035em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 10vw, 5.8rem); }
h2 { font-size: clamp(2.1rem, 7vw, 3.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.02em; line-height: 1.2; }
h1 em, h2 em {
  background-size: 200% auto; animation: shimmer 6s linear infinite;
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
  background-image: linear-gradient(100deg, #E6D4FC, var(--accent) 25%, var(--accent-2) 50%, var(--accent) 75%, #E6D4FC);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.lead { font-size: clamp(1.1rem, 1.4vw + .8rem, 1.35rem); color: var(--muted); max-width: 30ch; margin-top: 18px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(170, 110, 221, .18); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(170, 110, 221, 0); } }

/* ---------- Scene (fixed background room) ---------- */
.scene { position: fixed; inset: 0; height: 100vh; height: 100lvh; z-index: 0; pointer-events: none; overflow: hidden; }
.wall { position: absolute; inset: 0; }
/* Before: dull, stained old wall */
.wall-old {
  background:
    radial-gradient(40% 30% at 25% 30%, rgba(140, 115, 80, .16), transparent 70%),
    radial-gradient(35% 25% at 80% 55%, rgba(110, 85, 60, .18), transparent 70%),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .08) 0 2px, transparent 2px 90px),
    linear-gradient(180deg, #2A251F, #1B1814);
}
/* After: modern, warm-lit wall */
.wall-new {
  opacity: var(--reno, 0);
  background:
    radial-gradient(60% 45% at 68% 30%, rgba(255, 181, 71, calc(.14 * var(--lamp, 0))), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 140px),
    linear-gradient(180deg, #111838, #0A0F24);
}
#scene { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 15, 36, .75) 0%, rgba(10, 15, 36, .25) 35%, transparent 60%); }

/* Scene animations */
.flicker { animation: flicker 3s steps(1) infinite; }
@keyframes flicker { 0%, 100% { opacity: .9; } 8% { opacity: .3; } 10% { opacity: .85; } 52% { opacity: .4; } 54% { opacity: .9; } }
.flow { stroke-dasharray: 5 9; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }
.heart { animation: heart 2.6s ease-out infinite; }
@keyframes heart { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-90px); opacity: 0; } }
.bob { animation: bob 2.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.svg-label { font: 600 11px var(--font); letter-spacing: .08em; }
.neon { font: 600 26px var(--font); letter-spacing: .3em; text-anchor: middle; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; z-index: 50;
  top: max(10px, env(safe-area-inset-top)); left: 10px; right: 10px;
  max-width: 1200px; margin-inline: auto; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 8px 0 16px; border-radius: 999px;
  background: rgba(9, 13, 30, .6); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  transition: transform .5s var(--ease);
}
.nav.hide { transform: translateY(calc(-100% - 20px)); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 1.12rem; letter-spacing: -.025em; white-space: nowrap; }
.brand img { height: 40px; width: auto; filter: drop-shadow(0 0 12px rgba(170, 110, 221, .45)); transition: transform .5s var(--ease); }
.brand:hover img { transform: rotate(-6deg) scale(1.06); }
.brand b { color: var(--accent); font-weight: 650; }
@media (min-width: 900px) { .brand { font-size: 1.3rem; gap: 12px; } .brand img { height: 46px; } }
@media (max-width: 419px) { .nav .nav-cta { display: none; } .brand { font-size: 1.05rem; } .brand img { height: 36px; } }
.nav-links { display: none; gap: 4px; }
.nav-links a { text-decoration: none; color: var(--muted); padding: 8px 14px; border-radius: 999px; font-size: .92rem; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav-cta { margin-left: auto; }
.menu-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); display: grid; place-content: center; gap: 6px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 100px 24px 40px;
  background: rgba(10, 15, 36, .94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.menu[hidden] { display: none; }
.menu a:not(.btn) { font-size: 2rem; font-weight: 600; letter-spacing: -.03em; text-decoration: none; padding: 8px 0; border-bottom: 1px solid var(--line); animation: menuIn .5s var(--ease) both; }
.menu a:nth-child(2) { animation-delay: .05s; } .menu a:nth-child(3) { animation-delay: .1s; }
.menu .btn { margin-top: 24px; animation: menuIn .5s .15s var(--ease) both; }
@keyframes menuIn { from { opacity: 0; transform: translateY(16px); } }
@media (min-width: 900px) {
  .nav { padding: 0 8px 0 22px; top: 16px; }
  .nav-links { display: flex; margin-left: auto; }
  .nav-cta { margin-left: 8px; }
  .menu-btn, .menu { display: none !important; }
}

/* ---------- Progress + HUD ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; }
.progress span { display: block; height: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #67E8F9, var(--accent), var(--accent-2)); }
.hud {
  position: fixed; z-index: 30; left: 50%; top: calc(max(10px, env(safe-area-inset-top)) + var(--nav-h) + 10px);
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(9, 13, 30, .75); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-size: .8rem; color: var(--muted); white-space: nowrap;
  opacity: 0; transform: translate(-50%, -8px); transition: opacity .4s, top .4s var(--ease), transform .4s var(--ease);
}
.hud.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 899px) { .nav-hidden .hud { top: calc(max(10px, env(safe-area-inset-top)) + 4px); } }
.hud-text b { color: var(--ink); font-weight: 600; }
.hud-bars { display: flex; gap: 3px; }
.hud-bars i { display: block; width: 6px; height: 14px; border-radius: 2px; background: rgba(255, 255, 255, .15); transition: background .4s; }
.hud-bars i.on { background: var(--c, var(--accent)); }
@media (min-width: 900px) {
  .hud { left: auto; right: max(24px, calc((100vw - 1200px) / 2)); top: auto; bottom: 28px; transform: translateY(10px); font-size: .85rem; }
  .hud.show { transform: none; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn-sm { height: 42px; padding: 0 18px; font-size: .9rem; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #B889EE, #8B55D6 50%, #6C3FC7);
  box-shadow: 0 12px 34px -12px rgba(124, 77, 219, .75), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary svg { transition: transform .35s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }

/* ---------- Panels ---------- */
main { position: relative; z-index: 1; }
.panel { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-start; padding: 110px 0 64px; }
@media (min-width: 900px) { .panel { align-items: center; } }

.card {
  position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
}
@media (min-width: 600px) { .card { padding: 32px; } }

/* Hero */
.hero h1 { max-width: 11ch; text-shadow: 0 2px 30px rgba(10, 15, 36, .6); }
.actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.actions .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .actions .btn { flex: 0 0 auto; } }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255, 255, 255, .3); border-radius: 20px; display: none; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (min-width: 900px) and (min-height: 700px) { .scroll-cue { display: block; } }

/* Problem */
.problem h2 { max-width: 13ch; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; max-width: 520px; }
.pills li {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  background: rgba(255, 90, 90, .1); border: 1px solid rgba(255, 112, 112, .35); color: #FFC2C2; font-size: .92rem; font-weight: 500;
}
.pills li::before { content: "✕"; font-size: .75rem; color: #FF7070; }

/* Services */
.service { min-height: 120svh; }
.service .card { max-width: 460px; overflow: hidden; }
.service .card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 70% at 0% 0%, color-mix(in srgb, var(--hue) 22%, transparent), transparent 60%);
}
.service .card::after { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--hue), transparent); }
.service h2 { font-size: clamp(2rem, 6.5vw, 3.2rem); margin-bottom: 12px; position: relative; }
.service h2 em { background: none; color: var(--hue); -webkit-text-fill-color: var(--hue); }
.service p { color: var(--muted); font-size: 1.08rem; position: relative; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; position: relative; }
.tag { font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--hue); padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--hue) 12%, transparent); border: 1px solid color-mix(in srgb, var(--hue) 35%, transparent); }
.icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--hue) 14%, transparent); border: 1px solid color-mix(in srgb, var(--hue) 30%, transparent); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--hue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) { .service { min-height: 110vh; } }

/* Results */
.results h2 { margin-bottom: 20px; }
.compare { list-style: none; max-width: 480px; padding: 6px 0; }
.compare li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.compare li:last-child { border-bottom: 0; }
.compare s { color: var(--faint); text-decoration-color: rgba(255, 112, 112, .8); }
.compare li span { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.compare li span::before { content: "→"; color: var(--accent); font-weight: 400; }

/* Process */
#process h2 { margin-bottom: 20px; }
.steps { list-style: none; display: grid; gap: 12px; max-width: 480px; }
.steps li { display: flex; gap: 18px; align-items: center; padding: 20px 22px; }
.steps h3 { margin-bottom: 2px; }
.steps p { color: var(--muted); font-size: .95rem; }
.step-n { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, #9A62E3, #6C3FC7); }

/* FAQ */
#faq h2 { margin-bottom: 20px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: border-color .3s; }
.faq details[open] { border-color: rgba(170, 110, 221, .4); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; font-weight: 600; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 400; font-size: 1.3rem; background: rgba(255, 255, 255, .06); transition: transform .35s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: rgba(170, 110, 221, .2); color: var(--accent); }
.faq details p { padding: 0 20px 18px; color: var(--muted); animation: faqIn .45s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* CTA */
.cta-card { display: grid; gap: 24px; max-width: 900px; }
.cta-card h2 { margin: 0 0 10px; }
.cta-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; background: radial-gradient(80% 60% at 100% 0%, rgba(170, 110, 221, .18), transparent 60%); }
.form { display: grid; gap: 12px; position: relative; }
.form label { display: grid; gap: 6px; font-size: .85rem; color: var(--muted); }
.form input {
  width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--ink);
  font-size: 16px; /* prevents iOS zoom on focus */
  transition: border-color .25s, background .25s;
}
.form input:focus { outline: none; border-color: var(--accent); background: rgba(255, 255, 255, .08); }
.form .btn { margin-top: 6px; width: 100%; }
@media (min-width: 1000px) { .cta-card { grid-template-columns: 1fr 1fr; gap: 40px; padding: 44px; align-items: center; } }

/* Footer */
.footer { position: relative; z-index: 1; padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(10, 15, 36, .9); }
.footer-inner { display: grid; gap: 6px; }
.footer em { font-family: var(--serif); font-style: italic; }
@media (min-width: 800px) { .footer-inner { grid-template-columns: 1fr auto; align-items: center; } }

/* Desktop: text on the left, room on the right */
@media (min-width: 900px) {
  .scrim { background: linear-gradient(90deg, rgba(10, 15, 36, .8) 0%, rgba(10, 15, 36, .4) 36%, transparent 58%), linear-gradient(180deg, rgba(10, 15, 36, .5), transparent 22%); }
}

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); filter: blur(8px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
/* Glass cards animate transform only (opacity/filter would break the backdrop blur mid-transition) */
.js .lift { transform: translateY(60px) scale(.97); transition: transform 1.1s var(--ease); }
.js .lift.in { transform: none; }
.js .reveal-card { transform: translateY(40px); transition: transform 1s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal-card > * { opacity: 0; transition: opacity .8s var(--ease); transition-delay: calc(var(--d, 0ms) + 150ms); }
.js .reveal-card.in { transform: none; }
.js .reveal-card.in > * { opacity: 1; }

@keyframes shimmer { to { background-position: -200% center; } }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .05em .14em; margin: 0 -.05em -.14em; }
.split .wi { display: inline-block; perspective: 600px; }
.split .ch, .split .ch-word { display: inline-block; }
.js .split .ch {
  transform: translate3d(0, .9em, 0) rotateX(-85deg); transform-origin: 50% 100%;
  opacity: 0; filter: blur(6px);
  transition: transform .9s cubic-bezier(.2, .9, .25, 1.15), opacity .5s ease, filter .7s ease;
  transition-delay: calc(min(var(--ci), 45) * 18ms);
}
.js .split .ch-word {
  transform: translate3d(0, .25em, 0) scale(.55); opacity: 0; filter: blur(12px);
  transition: transform 1.1s cubic-bezier(.2, .9, .25, 1.25), opacity .7s ease, filter .9s ease;
  transition-delay: calc(min(var(--ci), 45) * 18ms + 80ms);
}
.js .split.in .ch, .js .split.in .ch-word { transform: none; opacity: 1; filter: none; }

/* Words light up as you scroll */
.scrub .sw { opacity: clamp(.18, calc(var(--p, 1) * (var(--n) + 3) - var(--wi)), 1); transition: opacity .2s linear; }

/* Section depth effect (driven by JS) */
.fx { transform-origin: 50% 0%; will-change: transform; }

/* Problem pills: springy pop */
.js .pills li.reveal { transform: translateY(18px) scale(.7) rotate(-6deg); filter: none; transition: opacity .5s ease, transform .8s cubic-bezier(.34, 1.7, .5, 1); transition-delay: calc(var(--d, 0ms) + 250ms); }
.js .pills li.reveal.in { transform: none; }

/* Before → after: strike draws across, then the new state slides in */
.compare s { position: relative; text-decoration: none; }
.compare s::after { content: ""; position: absolute; left: -2px; right: -2px; top: 55%; height: 2px; border-radius: 2px; background: #FF7070; transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); transition-delay: calc(var(--d, 0ms) + 450ms); }
.compare li.in s::after { transform: scaleX(1); }
.js .compare li span { opacity: 0; transform: translateX(22px); transition: opacity .5s ease, transform .7s cubic-bezier(.34, 1.5, .5, 1); transition-delay: calc(var(--d, 0ms) + 750ms); }
.js .compare li.in span { opacity: 1; transform: none; }

/* Step numbers spin in */
.js .reveal-card .step-n { transform: scale(.3) rotate(-120deg); transition: opacity .6s, transform .9s cubic-bezier(.34, 1.6, .5, 1); transition-delay: calc(var(--d, 0ms) + 150ms); }
.js .reveal-card.in .step-n { transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .lift, .js .reveal-card, .js .reveal-card > *, .js .split .ch, .js .split .ch-word, .js .pills li, .js .compare li span, .js .step-n { transition: none !important; transform: none !important; opacity: 1 !important; filter: none !important; }
  h1 em, h2 em { animation: none; }
  .compare s::after { transition: none; }
  .bk-pane, .bk-check, .bk-skel, .flicker, .flow, .heart, .bob, .eyebrow .dot, .scroll-cue span { animation: none !important; }
}

/* ---------- Footer brand ---------- */
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand { font-size: 1.15rem; }
.footer-brand img { height: 34px; width: auto; }

/* ---------- Floating "Book" button (phones) ---------- */
.fab {
  position: fixed; z-index: 35; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translate(-50%, 120px); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease), opacity .4s;
}
.fab.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
@media (min-width: 900px) { .fab { display: none; } }

/* ---------- Booking widget ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }
.booking { max-width: 560px; }
.booking h2 { margin-bottom: 18px; }
.booking fieldset { border: 0; min-width: 0; }

.bk-steps { list-style: none; display: flex; gap: 6px; margin-bottom: 20px; counter-reset: bk; }
.bk-steps li {
  flex: 1; counter-increment: bk; font-size: .78rem; font-weight: 600; color: var(--faint);
  padding-top: 10px; border-top: 3px solid rgba(255, 255, 255, .1); transition: color .3s, border-color .3s;
}
.bk-steps li::before { content: counter(bk) ". "; }
.bk-steps[hidden] { display: none; }
.bk-steps li.on { border-color: var(--accent-2); color: var(--muted); }
.bk-steps li.current { color: var(--ink); border-color: var(--accent); }

.bk-pane { animation: bkIn .45s var(--ease); }
@keyframes bkIn { from { opacity: 0; transform: translateX(16px); } }

.bk-opts { display: grid; gap: 10px; }
.bk-opt { position: relative; cursor: pointer; }
.bk-opt input { position: absolute; opacity: 0; }
.bk-opt span {
  display: grid; gap: 2px; padding: 16px 20px 16px 52px; border-radius: 18px;
  background: rgba(255, 255, 255, .04); border: 1.5px solid var(--line); transition: border-color .25s, background .25s;
}
.bk-opt span::before {
  content: ""; position: absolute; left: 20px; top: 21px; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--faint); transition: all .25s;
}
.bk-opt b { font-size: 1.1rem; }
.bk-opt small { color: var(--accent); font-weight: 600; font-size: .8rem; }
.bk-opt i { font-style: normal; color: var(--muted); font-size: .92rem; }
.bk-opt input:checked + span { border-color: var(--accent); background: rgba(170, 110, 221, .12); }
.bk-opt input:checked + span::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #1a1433; }
.bk-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }

.bk-nav { display: flex; gap: 10px; margin-top: 20px; }
.bk-nav .btn { flex: 1; }
.bk-nav .btn-ghost { flex: 0 0 auto; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn:disabled::after { display: none; }

.form .opt { font-style: normal; color: var(--faint); font-size: .78rem; margin-left: 4px; }
@media (min-width: 600px) { .booking .form { grid-template-columns: 1fr 1fr; } .booking .form .full { grid-column: 1 / -1; } }

.bk-days {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin: 0 -2px;
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent;
}
.bk-day {
  flex: 0 0 64px; scroll-snap-align: start; display: grid; justify-items: center; gap: 0; padding: 10px 0;
  border-radius: 16px; border: 1.5px solid var(--line); background: rgba(255, 255, 255, .04); cursor: pointer;
  transition: all .2s var(--ease);
}
.bk-day small { font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.bk-day b { font-size: 1.35rem; line-height: 1.3; }
.bk-day[aria-pressed="true"] { background: linear-gradient(160deg, #9A62E3, #6C3FC7); border-color: transparent; }
.bk-day[aria-pressed="true"] small { color: #EBDDFD; }
.bk-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
@media (min-width: 480px) { .bk-slots { grid-template-columns: repeat(4, 1fr); } }
.bk-slot {
  min-height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: rgba(255, 255, 255, .04);
  font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .2s var(--ease);
}
.bk-slot:hover, .bk-day:hover { border-color: rgba(185, 138, 240, .6); }
.bk-slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #140E26; }
.bk-skel { display: block; flex: 0 0 64px; height: 46px; border-radius: 12px; background: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.1), rgba(255,255,255,.04)); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
.bk-days .bk-skel { height: 76px; }
@keyframes skel { to { background-position: -200% 0; } }
.bk-tz { font-size: .8rem; color: var(--faint); margin-top: 12px; }
.bk-summary:not(:empty) { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: rgba(170, 110, 221, .12); border: 1px solid rgba(170, 110, 221, .35); font-size: .92rem; }
.bk-error:not(:empty) { margin-top: 12px; color: #FF9B9B; font-size: .92rem; }
.linklike { background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font: inherit; }

.bk-done { text-align: center; padding: 8px 0; outline: none; }
.bk-check {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #34D399, #10B981); box-shadow: 0 0 0 8px rgba(52, 211, 153, .15);
  animation: pop .6s var(--ease);
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.bk-done h3 { font-size: 1.6rem; margin-bottom: 8px; }
.bk-when { font-size: 1.05rem; margin-bottom: 6px; }
.bk-add-label { margin-top: 22px; margin-bottom: 10px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.bk-add { display: grid; gap: 10px; }
@media (min-width: 480px) { .bk-add { grid-template-columns: 1fr 1fr; } }
.bk-meet {
  display: flex; align-items: center; gap: 14px; margin: 18px auto 0; max-width: 360px; padding: 14px 18px; text-align: left;
  border-radius: 16px; text-decoration: none; background: rgba(52, 211, 153, .1); border: 1px solid rgba(52, 211, 153, .4); color: #6EE7B7;
  transition: background .25s;
}
.bk-meet:hover { background: rgba(52, 211, 153, .18); }
.bk-meet[hidden] { display: none; }
.bk-meet span { display: grid; }
.bk-meet b { color: var(--ink); }
.bk-meet small { color: #6EE7B7; font-size: .82rem; word-break: break-all; }
