/* ===========================================================================
   Onkall — Réceptionniste IA · Design system
   Premium SaaS · white background · indigo/violet accent · Geist type
   =========================================================================== */

:root {
  /* Neutrals — subtly cool whites & inks */
  --bg:        #fbfbfd;
  --bg-tint:   #f5f4fb;
  --surface:   #ffffff;
  --ink:       #15131d;
  --ink-2:     #4c4956;
  --ink-3:     #807d8b;
  --line:      #ecebf2;
  --line-2:    #e1e0ea;

  /* Accent — indigo → violet (tweakable). ink + soft derive automatically. */
  --accent:    #6c5cf6;
  --accent-2:  #9a63ef;
  --accent-ink: color-mix(in oklab, var(--accent) 74%, #1a1234);
  --accent-soft: color-mix(in oklab, var(--accent) 12%, #fff);
  --on-accent: #ffffff;

  /* inline checkmark glyph (mask) */
  --check: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M20 6L9 17l-5-5' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");

  /* Intensity knobs (driven by Tweaks) */
  --grad:      1;     /* gradient visibility 0..1.4 */
  --shadow:    1;     /* shadow strength 0..1.4 */
  --pad:       1;     /* section padding scale 0.7..1.25 */

  /* Type */
  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-display: var(--font-sans);

  /* Shadows — soft, indigo-tinted */
  --sh-xs: 0 1px 2px rgba(24, 20, 50, calc(.05 * var(--shadow)));
  --sh-sm: 0 2px 8px rgba(24, 20, 50, calc(.06 * var(--shadow)));
  --sh-md: 0 12px 30px -12px rgba(40, 30, 90, calc(.16 * var(--shadow)));
  --sh-lg: 0 30px 60px -22px rgba(45, 30, 100, calc(.28 * var(--shadow)));
  --sh-accent: 0 14px 34px -10px rgba(108, 92, 246, calc(.45 * var(--shadow)));

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--accent-soft); color: var(--accent-ink); }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

/* ---- Layout primitives ---------------------------------------------------- */
.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 26px; }
.wrap-narrow { max-width: 880px; margin-inline: auto; padding-inline: 26px; }
.section { padding-block: calc(132px * var(--pad)); position: relative; }
.section--tight { padding-block: calc(96px * var(--pad)); }

/* Eyebrow / kicker */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}

.section-head { max-width: 720px; }
.section-head .title {
  font-size: clamp(32px, 4.4vw, 52px);
  margin-top: 18px;
}
.section-head .lede {
  margin-top: 20px; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2);
  line-height: 1.55; letter-spacing: -0.006em;
}
.center { text-align: center; margin-inline: auto; }
.center .eyebrow { justify-content: center; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  --b-pad-y: 14px; --b-pad-x: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-sans); font-size: 15.5px; font-weight: 500; letter-spacing: -0.01em;
  padding: var(--b-pad-y) var(--b-pad-x);
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s var(--ease), border-color .2s;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 88%, white), var(--accent));
  color: var(--on-accent);
  box-shadow: var(--sh-accent), inset 0 1px 0 rgba(255,255,255,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 42px -10px rgba(108,92,246,calc(.55*var(--shadow))), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  background: var(--surface); color: var(--ink); border-color: var(--line-2);
  box-shadow: var(--sh-xs);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: #d3d1de; box-shadow: var(--sh-sm); }
.btn-lg { --b-pad-y: 17px; --b-pad-x: 28px; font-size: 16.5px; }
.btn-block-sm { }
@media (max-width: 560px) { .btn { width: 100%; } }

/* ---- Nav ------------------------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s;
}
.nav.scrolled {
  background: rgba(251,251,253,.72);
  -webkit-backdrop-filter: blur(18px) saturate(180%); backdrop-filter: blur(18px) saturate(180%);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; box-shadow: var(--sh-accent);
  position: relative;
}
.brand .mark svg { width: 17px; height: 17px; color: #fff; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 15px; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-burger { display: none; }
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---- Hero ----------------------------------------------------------------- */
.hero { position: relative; padding-top: 150px; padding-bottom: calc(110px * var(--pad)); overflow: hidden; }
.hero-bg {
  position: absolute; inset: -10% -10% auto -10%; height: 720px; z-index: -1; pointer-events: none;
}
.hero-bg::before {
  content: ""; position: absolute; left: 50%; top: -180px; transform: translateX(-50%);
  width: 1100px; height: 760px;
  background:
    radial-gradient(58% 60% at 50% 30%, rgba(123,99,247, calc(.20*var(--grad))), transparent 70%),
    radial-gradient(40% 50% at 78% 18%, rgba(159,99,239, calc(.18*var(--grad))), transparent 70%),
    radial-gradient(40% 45% at 22% 22%, rgba(96,120,250, calc(.14*var(--grad))), transparent 72%);
  filter: blur(8px);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: calc(.5 * var(--grad));
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 22%, #000, transparent 78%);
  mask-image: radial-gradient(70% 55% at 50% 22%, #000, transparent 78%);
}
.hero-inner { text-align: center; max-width: 920px; margin-inline: auto; }
.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 7px 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-xs);
  font-size: 13.5px; color: var(--ink-2); margin-bottom: 30px; white-space: nowrap;
}
@media (max-width: 400px){ .pill { font-size: 12px; padding-left: 11px; } }
.pill b { color: var(--ink); font-weight: 500; }
.pill .tag {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 500;
}
.hero h1 {
  font-size: clamp(42px, 6.6vw, 82px);
  letter-spacing: -0.04em; line-height: 0.98;
}
.hero h1 .grad {
  background: linear-gradient(115deg, var(--accent), var(--accent-2) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  margin: 28px auto 0; max-width: 660px;
  font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-2); line-height: 1.55; letter-spacing: -0.008em;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.trust {
  margin-top: 30px; display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-3);
}
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust span::before {
  content: ""; width: 15px; height: 15px; flex: none;
  background: var(--accent); -webkit-mask: var(--check) center/contain no-repeat; mask: var(--check) center/contain no-repeat;
  opacity: .9;
}

/* Hero showcase device */
.hero-stage { margin-top: 64px; position: relative; }
.devicecard {
  max-width: 940px; margin-inline: auto; background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); overflow: hidden;
}
.device-top { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.device-dots { display: flex; gap: 7px; }
.device-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.device-title { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); letter-spacing: .02em; }
.device-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ink-2); font-family: var(--font-mono); }
.device-live i { width: 8px; height: 8px; border-radius: 50%; background: #2bb673; box-shadow: 0 0 0 3px rgba(43,182,115,.18); animation: blink 2.4s var(--ease) infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }
.device-body { display: grid; grid-template-columns: 1.2fr .85fr; gap: 0; min-height: 360px; }
@media (max-width: 760px){ .device-body { grid-template-columns: 1fr; } }

.callpane { padding: 26px 26px 30px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
@media (max-width: 760px){ .callpane { border-right: 0; border-bottom: 1px solid var(--line); } }
.transcript { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.bubble { max-width: 86%; padding: 13px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; opacity: 0; transform: translateY(8px); animation: rise .5s var(--ease-out) forwards; }
.bubble.ai { align-self: flex-start; background: var(--accent-soft); color: var(--accent-ink); border-bottom-left-radius: 5px; }
.bubble.user { align-self: flex-end; background: #f3f3f6; color: var(--ink); border-bottom-right-radius: 5px; }
.bubble .who { display: block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .65; margin-bottom: 4px; }
@keyframes rise { to { opacity: 1; transform: none; } }

.datapane { padding: 24px 22px; background: linear-gradient(180deg, #faf9ff, #fbfbfd); }
.datapane h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin-bottom: 16px; }
.datarow { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); opacity: 0; transform: translateY(6px); }
.datarow:last-child { border-bottom: 0; }
.datarow.show { animation: rise .5s var(--ease-out) forwards; }
.datarow .ic { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.datarow .ic svg { width: 16px; height: 16px; }
.datarow .k { font-size: 11.5px; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.datarow .v { font-size: 15px; color: var(--ink); font-weight: 500; margin-top: 1px; }

/* ---- Logo / proof strip --------------------------------------------------- */
.proof { padding-block: 8px 0; }
.proof p { text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.proof-row { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 18px 46px; justify-content: center; align-items: center; opacity: .8; }
.proof-row span { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink-2); display: inline-flex; align-items: center; gap: 9px; }
.proof-row span svg { width: 22px; height: 22px; color: var(--ink-3); }

/* ---- Stats ---------------------------------------------------------------- */
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
@media (max-width: 820px){ .stats-grid { grid-template-columns: 1fr; gap: 16px; } }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px 30px; box-shadow: var(--sh-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.stat::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 80% at 100% 0%, rgba(108,92,246,calc(.07*var(--grad))), transparent 60%);
}
.stat:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.stat .num { font-size: clamp(46px, 5vw, 62px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { margin-top: 16px; color: var(--ink-2); font-size: 16px; line-height: 1.5; max-width: 26ch; }
.stats-note {
  margin-top: 30px; background: var(--bg-tint); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); padding: 28px 32px; display: flex; gap: 18px; align-items: flex-start;
}
.stats-note .ic { width: 40px; height: 40px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); color: var(--accent-ink); }
.stats-note .ic svg { width: 21px; height: 21px; }
.stats-note p { font-size: 17px; color: var(--ink-2); line-height: 1.6; max-width: 78ch; }
.stats-note b { color: var(--ink); font-weight: 600; }

/* ---- Features ------------------------------------------------------------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
@media (max-width: 900px){ .feat-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px){ .feat-grid { grid-template-columns: 1fr; } }
.feat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px 28px 32px; box-shadow: var(--sh-xs);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
  position: relative;
}
.feat:hover { transform: translateY(-5px); box-shadow: var(--sh-md); border-color: var(--line-2); }
.feat .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(160deg, #fff, #f4f2fe); border: 1px solid var(--line-2);
  color: var(--accent-ink); margin-bottom: 22px; box-shadow: var(--sh-xs);
  transition: transform .35s var(--ease);
}
.feat:hover .ic { transform: translateY(-2px) scale(1.04); }
.feat .ic svg { width: 25px; height: 25px; }
.feat h3 { font-size: 20px; letter-spacing: -0.02em; }
.feat p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }

/* ---- How it works --------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 60px; position: relative; }
@media (max-width: 820px){ .steps { grid-template-columns: 1fr; gap: 18px; } }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 34px 30px; box-shadow: var(--sh-sm); position: relative;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.step:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.step .idx {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 18px; font-weight: 500; color: var(--on-accent);
  background: linear-gradient(150deg, var(--accent), var(--accent-2)); box-shadow: var(--sh-accent);
  margin-bottom: 22px;
}
.step h3 { font-size: 21px; }
.step p { margin-top: 11px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.step .ic { position: absolute; top: 30px; right: 28px; color: var(--line-2); }
.step .ic svg { width: 26px; height: 26px; }

/* ---- Benefits ------------------------------------------------------------- */
.benefits { background: var(--bg-tint); }
.ben-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; margin-top: 52px; }
@media (max-width: 720px){ .ben-grid { grid-template-columns: 1fr; } }
.ben {
  display: flex; align-items: center; gap: 18px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px;
  box-shadow: var(--sh-xs); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.ben:hover { transform: translateX(4px); box-shadow: var(--sh-sm); }
.ben .ic { width: 44px; height: 44px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.ben .ic svg { width: 22px; height: 22px; }
.ben span { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); }

/* ---- Final CTA ------------------------------------------------------------ */
.cta-final { padding-block: calc(40px * var(--pad)); }
.cta-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl);
  padding: clamp(56px, 8vw, 96px) 30px; text-align: center;
  background:
    radial-gradient(80% 120% at 50% -10%, color-mix(in oklab, var(--accent) 70%, #fff 30%), transparent 60%),
    linear-gradient(150deg, var(--accent), var(--accent-2));
  color: #fff; box-shadow: var(--sh-lg);
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; opacity: calc(.5 * var(--grad));
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(80% 80% at 50% 0%, #000, transparent 75%);
}
.cta-card > * { position: relative; }
.cta-card .eyebrow { color: rgba(255,255,255,.85); }
.cta-card .eyebrow::before { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.2); }
.cta-card h2 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.04em; max-width: 18ch; margin-inline: auto; }
.cta-card p { margin: 22px auto 0; max-width: 56ch; font-size: clamp(17px,1.6vw,20px); color: rgba(255,255,255,.86); }
.cta-card .hero-cta { margin-top: 36px; }
.cta-card .btn-primary { background: #fff; color: var(--accent-ink); box-shadow: 0 16px 40px -12px rgba(0,0,0,.4); }
.cta-card .btn-primary:hover { box-shadow: 0 24px 50px -12px rgba(0,0,0,.5); }
.cta-card .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); box-shadow: none; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.cta-card .btn-ghost:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }

/* ---- Footer --------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-block: 60px 44px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand { font-size: 18px; }
.footer .tagline { margin-top: 16px; color: var(--ink-2); font-size: 15.5px; max-width: 34ch; line-height: 1.55; }
.footer-links { display: flex; gap: 16px 38px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; margin: 0 0 14px; }
.footer-col a { display: block; color: var(--ink-2); font-size: 15px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--accent-ink); }
.footer-bottom { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-3); font-size: 13.5px; }

/* ---- Scroll reveal -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: .08s; }
.reveal[data-d="2"]{ transition-delay: .16s; }
.reveal[data-d="3"]{ transition-delay: .24s; }
.reveal[data-d="4"]{ transition-delay: .32s; }
.reveal[data-d="5"]{ transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===========================================================================
   Modals — call demo + booking
   =========================================================================== */
.modal-scrim {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  padding: 22px; background: rgba(20,16,40,.42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.modal-scrim.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 520px; background: var(--surface); border-radius: var(--r-xl);
  box-shadow: var(--sh-lg); border: 1px solid var(--line-2); overflow: hidden;
  transform: translateY(16px) scale(.97); transition: transform .35s var(--ease-out); max-height: calc(100vh - 44px); display: flex; flex-direction: column;
}
.modal-scrim.open .modal { transform: none; }
.modal-x {
  position: absolute; top: 16px; right: 16px; z-index: 3; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer;
  display: grid; place-items: center; transition: background .2s, transform .2s;
}
.modal-x:hover { background: var(--bg-tint); transform: rotate(90deg); }
.modal-x svg { width: 17px; height: 17px; }

/* Call demo modal */
.call { max-width: 440px; }
.call-head { padding: 40px 30px 26px; text-align: center; position: relative; background: linear-gradient(180deg, #faf9ff, var(--surface)); }
.orb {
  width: 108px; height: 108px; border-radius: 50%; margin: 0 auto 20px; position: relative;
  background: linear-gradient(150deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; color: #fff; box-shadow: var(--sh-accent);
}
.orb svg { width: 42px; height: 42px; }
.orb .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.call.live .orb .ring { animation: ring 2.2s var(--ease-out) infinite; }
.call.live .orb .ring:nth-child(2) { animation-delay: 1.1s; }
@keyframes ring { 0%{ transform: scale(1); opacity: .5; } 100%{ transform: scale(1.7); opacity: 0; } }
.call-status { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.call-status b { color: var(--accent-ink); font-weight: 600; }
.call-name { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; }
.call-timer { font-family: var(--font-mono); font-size: 14px; color: var(--ink-2); margin-top: 4px; font-variant-numeric: tabular-nums; }
.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 30px; margin-top: 14px; }
.wave i { width: 4px; height: 8px; border-radius: 4px; background: var(--accent); opacity: .5; }
.call.live .wave i { animation: wv 1s var(--ease) infinite; }
.wave i:nth-child(1){animation-delay:0s} .wave i:nth-child(2){animation-delay:.1s} .wave i:nth-child(3){animation-delay:.2s} .wave i:nth-child(4){animation-delay:.3s} .wave i:nth-child(5){animation-delay:.15s} .wave i:nth-child(6){animation-delay:.25s} .wave i:nth-child(7){animation-delay:.05s}
@keyframes wv { 0%,100%{ height: 8px; opacity:.4 } 50%{ height: 26px; opacity:1 } }
.call-log { padding: 6px 22px 14px; overflow-y: auto; flex: 1; min-height: 120px; display: flex; flex-direction: column; gap: 12px; }
.call-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.call-hangup {
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; margin: 0 auto;
  background: #ef4060; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(239,64,96,.6);
  transition: transform .2s, box-shadow .2s;
}
.call-hangup:hover { transform: scale(1.06); }
.call-hangup svg { width: 24px; height: 24px; }
.call-replay { text-align: center; font-size: 14px; color: var(--ink-3); }
.call-replay button { background: none; border: 0; color: var(--accent-ink); font: inherit; font-weight: 500; cursor: pointer; }

/* Booking modal */
.book-head { padding: 30px 30px 8px; }
.book-head .eyebrow { margin-bottom: 14px; }
.book-head h3 { font-size: 26px; letter-spacing: -0.025em; }
.book-head p { margin-top: 10px; color: var(--ink-2); font-size: 15.5px; }
.book-body { padding: 22px 30px 30px; overflow-y: auto; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; font: inherit; font-size: 15.5px; padding: 13px 15px; border-radius: var(--r-sm);
  border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus { border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input::placeholder { color: var(--ink-3); }
.book-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px){ .book-row { grid-template-columns: 1fr; } }
.book-body .btn-primary { width: 100%; margin-top: 8px; }
.book-fine { margin-top: 14px; text-align: center; font-size: 13px; color: var(--ink-3); }
.book-success { padding: 50px 36px 56px; text-align: center; }
.book-success .check {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-ink); animation: pop .5s var(--ease-out);
}
.book-success .check svg { width: 34px; height: 34px; }
@keyframes pop { 0%{ transform: scale(.6); opacity: 0; } 60%{ transform: scale(1.08);} 100%{ transform: scale(1); opacity: 1; } }
.book-success h3 { font-size: 24px; }
.book-success p { margin-top: 12px; color: var(--ink-2); }

/* Embedded calendar modal */
.modal-cal {
  max-width: 468px; width: 100%;
  height: min(86vh, 760px);
  display: flex; flex-direction: column;
}
.cal-head { padding: 28px 30px 16px; flex: none; }
.cal-head .eyebrow { margin-bottom: 12px; }
.cal-head h3 { font-size: 24px; letter-spacing: -0.025em; }
.cal-head p { margin-top: 9px; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; max-width: 40ch; }
.cal-frame { position: relative; flex: 1; min-height: 0; background: var(--bg); border-top: 1px solid var(--line); }
.cal-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.cal-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px;
  align-items: center; justify-content: center; color: var(--ink-3); font-size: 14px;
  background: var(--bg); transition: opacity .4s var(--ease); pointer-events: none; z-index: 1;
}
.cal-loading.hide { opacity: 0; }
.cal-spin {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2.5px solid var(--line-2); border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 520px) { .modal-cal { height: 90vh; } .cal-head { padding: 24px 22px 14px; } }
