/* ==========================================================================
   Dental Expert Solution: styles for the website and booking pages.
   Soft glass: a pale blue-mist page lit by soft glowing light, with frosted
   white glass cards, glossy details and one accent colour (azure).
   ========================================================================== */

:root {
  --ink: #252d3c;
  --ink-soft: #4a5467;
  --muted: #646d7f;
  --bg: #f4f7fd;
  --surface: #ffffff;
  --tint: #eaf0fb;
  --line: #e3e8f2;
  /* Frosted glass: translucent white with a bright edge and a soft blue shadow */
  --glass: rgb(255 255 255 / 0.62);
  --glass-strong: rgb(255 255 255 / 0.82);
  --glass-border: rgb(255 255 255 / 0.9);
  --glass-blur: blur(20px) saturate(1.6);
  /* Glossy round icon holders */
  --bubble: linear-gradient(150deg, #ffffff 10%, #dfe8fb 100%);
  --bubble-shadow: inset 0 1px 0 #fff, 0 8px 18px -10px rgb(58 111 216 / 0.55);
  --accent: #3a6fd8;
  --accent-strong: #2c58b5;
  --accent-soft: #e4ecfb;
  --accent-faint: #f2f6fe;
  --danger: #c0392b;
  --danger-soft: #fdeeec;
  --amber: #a8640f;
  --amber-soft: #fdf3e2;
  --radius: 22px;
  --radius-lg: 34px;
  /* Shadows carry a bright top edge (the glass rim) and a blue-tinted glow below */
  --shadow-sm: inset 0 1px 0 rgb(255 255 255 / 0.95), 0 1px 2px rgb(37 45 60 / 0.03), 0 14px 34px -22px rgb(44 88 181 / 0.32);
  --shadow: inset 0 1px 0 rgb(255 255 255 / 0.95), 0 2px 6px rgb(37 45 60 / 0.03), 0 34px 64px -30px rgb(44 88 181 / 0.45);
  --shadow-accent: 0 18px 36px -14px rgb(58 111 216 / 0.6);
  /* Four typefaces: a high-contrast Bodoni for headings, a flowing script for a few
     signature words, Jost for small spaced-out labels and Manrope for reading */
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Bodoni Moda', 'Bodoni 72', Didot, Georgia, serif;
  --font-script: 'Great Vibes', 'Segoe Script', cursive;
  --font-label: 'Jost', 'Manrope', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
  interpolate-size: allow-keywords;
}

/* Base ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  /* Even-height figures, so prices, times and step numbers line up in the serif too */
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  animation: page-in 0.9s var(--ease) both;
}
/* The light behind the glass: soft blue glows fixed to the window, so frosted
   cards pick up gentle colour as the page scrolls over them */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(38% 42% at 12% 18%, rgb(58 111 216 / 0.13), transparent 70%),
    radial-gradient(34% 38% at 88% 12%, rgb(120 160 235 / 0.18), transparent 70%),
    radial-gradient(42% 46% at 78% 88%, rgb(58 111 216 / 0.1), transparent 70%),
    radial-gradient(36% 40% at 8% 92%, rgb(170 196 245 / 0.22), transparent 70%),
    linear-gradient(180deg, #f8faff, var(--bg));
  pointer-events: none;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.12; }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--accent); }
/* A flowing script for a few signature words (the hero, the closing line, the signature) */
.script,
h1 em.script,
h2 em.script {
  padding: 0 0.06em; /* room for the swashes */
  color: var(--accent);
  font-family: var(--font-script);
  font-size: 1.3em;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.8;
}
/* The rupee sign, set in the text face because the serif has no ₹ */
.cur { margin-right: 0.05em; font-family: var(--font); font-size: 0.76em; font-style: normal; font-weight: 500; vertical-align: 0.08em; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 0.85em; }
::selection { background: var(--accent-soft); color: var(--accent-strong); }
section[id] { scroll-margin-top: 96px; }

.container { width: min(1200px, 100% - 48px); margin-inline: auto; }
.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
i[data-icon] { display: inline-block; width: 1.2em; height: 1.2em; }
.muted { color: var(--muted); }
.hint { font-size: 0.85rem; color: var(--muted); }
.grow { flex: 1; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link {
  position: absolute;
  top: 12px;
  left: -9999px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--surface);
  font-weight: 700;
}
.skip-link:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
}

/* Buttons ------------------------------------------------------------- */

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.55rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.45s var(--ease), border-color 0.45s var(--ease), color 0.45s var(--ease), box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}
/* A soft band of light sweeps across on hover */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 1s var(--ease);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover:not([disabled]) { transform: translateY(-2px); }
.btn:active:not([disabled]) { transform: none; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.btn .icon-arrow { transition: transform 0.45s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px); }
/* A luminous blue gradient with a glassy top highlight; the light slides across on hover */
.btn-primary {
  background: linear-gradient(120deg, #6a9af2 0%, var(--accent) 45%, var(--accent-strong) 100%);
  background-size: 180% 100%;
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 10px 24px -12px rgb(58 111 216 / 0.75);
  transition: background-position 0.9s var(--ease), box-shadow 0.45s var(--ease), transform 0.45s var(--ease);
}
.btn-primary:hover { background-position: 100% 0; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), var(--shadow-accent); }
.btn-ghost { border-color: var(--glass-border); background: var(--glass); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #fff; background: var(--glass-strong); color: var(--accent-strong); box-shadow: var(--shadow); }
.btn-soft { background: var(--accent-soft); color: var(--accent-strong); }
.btn-soft:hover { background: #d6e3fa; }
.btn-sm { padding: 0.55rem 1.05rem; font-size: 0.875rem; }
.btn-lg { padding: 1rem 1.8rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn .spinner { border-color: rgb(255 255 255 / 0.4); border-top-color: #fff; }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-strong);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-strong);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.card-link .icon { transition: transform 0.45s var(--ease); }
.card-link:hover .icon { transform: translateX(5px); }

/* Top bar and header ------------------------------------------------------ */

.topbar { border-bottom: 1px solid rgb(255 255 255 / 0.7); background: rgb(255 255 255 / 0.4); color: var(--muted); font-size: 0.84rem; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 40px; }
.topbar-group { display: flex; align-items: center; gap: 28px; min-width: 0; }
.topbar-item { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; text-decoration: none; }
.topbar-item .icon { width: 1em; height: 1em; color: var(--accent); }
a.topbar-item { color: var(--accent-strong); font-weight: 700; }
a.topbar-item:hover { text-decoration: underline; }
@media (max-width: 960px) { .topbar .hide-md { display: none; } }
@media (max-width: 520px) { .topbar .hide-sm { display: none; } .topbar-inner { justify-content: center; } }

/* The header is a floating pill of frosted glass. It slides away as you scroll
   down and glides back when you scroll up. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 14px 0 0;
  transition: transform 0.6s var(--ease), padding 0.5s var(--ease);
}
.site-header.is-scrolled { padding-top: 10px; }
.site-header.is-hidden { transform: translateY(-120%); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 76px;
  padding: 0 12px 0 18px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-sm);
  transition: height 0.5s var(--ease), background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header.is-scrolled .header-inner { height: 66px; background: var(--glass-strong); box-shadow: var(--shadow); }

.logo { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.logo-mark { width: 44px; height: 44px; flex: none; transition: transform 0.8s var(--ease); }
.logo:hover .logo-mark { transform: rotate(-10deg) scale(1.04); }
.mark-bg { fill: var(--accent-soft); }
.mark-line { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; }
.mark-spark { fill: var(--accent); }
.logo-text { display: grid; line-height: 1; }
.logo-name { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; white-space: nowrap; }
.logo-name em { color: var(--accent); font-weight: 400; }
.logo-sub { margin-top: 5px; color: var(--muted); font-family: var(--font-label); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 0.1rem; }
.nav a:not(.btn) {
  position: relative;
  padding: 0.5rem 0.8rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s;
}
.nav a:not(.btn)::after {
  content: '';
  position: absolute;
  right: 50%;
  bottom: 0.15rem;
  left: 50%;
  height: 1px;
  background: var(--accent);
  transition: left 0.45s var(--ease), right 0.45s var(--ease);
}
.nav a:not(.btn):hover, .nav a.active:not(.btn) { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a.active:not(.btn)::after { right: 0.8rem; left: 0.8rem; }
.nav .btn { margin-left: 0.8rem; }

.menu-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: var(--glass);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

@media (max-width: 1040px) {
  .menu-toggle { display: grid; }
  /* The phone menu opens as a panel just under the header pill. It is solid white:
     any see-through would let the large headline ghost through the menu items. */
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 24px;
    left: 24px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 24px;
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; animation: drop-in 0.5s var(--ease); }
  .nav a:not(.btn) { padding: 0.9rem 0.2rem; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin: 16px 0 0; padding: 0.9rem; }
}
@media (max-width: 600px) {
  .nav { right: 16px; left: 16px; }
  .header-inner { height: 66px; padding: 0 8px 0 12px; }
}
@media (max-width: 420px) {
  .logo-name { font-size: 1.2rem; }
  .logo-sub { font-size: 0.5rem; letter-spacing: 0.14em; }
  .logo-mark { width: 36px; height: 36px; }
  .logo { gap: 0.55rem; }
  .menu-toggle { width: 44px; height: 44px; }
}

/* Sections ---------------------------------------------------------------- */

/* Each section has a soft orb of light drifting behind it, alternating sides,
   so the glass cards always have a little colour to catch */
.section { position: relative; isolation: isolate; padding: 128px 0; }
.section::before {
  content: '';
  position: absolute;
  top: 6%;
  right: -180px;
  z-index: -1;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(58 111 216 / 0.13), transparent 68%);
  animation: orb-drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}
main > .section:nth-of-type(even)::before { top: 38%; right: auto; left: -200px; animation-delay: -9s; }
/* Shaded sections are a translucent band that fades in and out at the edges */
.section-tint { background: linear-gradient(180deg, transparent, rgb(226 234 250 / 0.55) 14%, rgb(226 234 250 / 0.55) 86%, transparent); }
.section-head { max-width: 720px; margin-bottom: 64px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head.split-head { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: end; gap: 56px; max-width: none; }
.section-head.split-head .lead { margin: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 20px;
  color: var(--accent);
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 36px; height: 1px; background: currentColor; }
/* Sections are numbered like chapters: "01 | TREATMENTS" */
/* Clip, rather than hide, so things sliding in from the side never cause sideways scrolling
   and sticky elements keep working */
main { overflow-x: clip; counter-reset: chapter; }
main > .section { counter-increment: chapter; }
main > .section .eyebrow::before {
  content: counter(chapter, decimal-leading-zero);
  width: auto;
  height: auto;
  padding-right: 14px;
  border-right: 1px solid color-mix(in srgb, currentColor 35%, transparent);
  background: none;
  font-family: var(--font-display);
  font-size: 1.7em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}
.section h2, .faq-intro h2, .cta h2 { margin: 0 0 0.4em; font-size: clamp(2.6rem, 5.4vw, 4.5rem); line-height: 1.06; }
.lead { max-width: 38em; color: var(--ink-soft); font-size: 1.14rem; }
.lead a { color: var(--accent-strong); font-weight: 700; }

@media (max-width: 860px) {
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 44px; }
  .section-head.split-head { grid-template-columns: 1fr; gap: 0; }
  .section-head.split-head .lead { margin-top: 8px; }
}

/* Hero ---------------------------------------------------------------- */

.hero { position: relative; overflow: hidden; padding: 72px 0 140px; }
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 82% 30%, var(--accent-soft) 0%, transparent 70%),
    radial-gradient(ellipse 40% 45% at 8% 90%, var(--accent-faint) 0%, transparent 70%);
  animation: glow-breathe 12s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 80px; align-items: center; }
.hero-title { margin: 0 0 28px; font-size: clamp(3.1rem, 6.4vw, 6rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.03em; }
.hero-title em { font-weight: 400; }
/* Each word of the headline drifts into focus */
.hero-title .word { display: inline-block; animation: blur-in 1.5s var(--ease) both; animation-delay: calc(0.2s + var(--i) * 0.09s); }
.hero-copy .lead { font-size: 1.15rem; }
.hero-in { animation: fade-up 1.2s var(--ease) both; }
.hero-copy > .eyebrow.hero-in { animation-delay: 0.1s; }
.hero-copy > .lead.hero-in { animation-delay: 0.75s; }
.hero-copy > .hero-actions.hero-in { animation-delay: 0.9s; }
.hero-copy > .assurances.hero-in { animation-delay: 1.05s; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.assurances { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 40px; color: var(--ink-soft); font-size: 0.92rem; font-weight: 500; }
.assurances li { display: flex; align-items: center; gap: 10px; }
.assure-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bubble); color: var(--accent); box-shadow: var(--bubble-shadow); }
.assure-icon .icon { width: 14px; height: 14px; stroke-width: 2.4; }

.hero-visual { position: relative; }
.hero-ring {
  position: absolute;
  top: -40px;
  right: -60px;
  width: 112%;
  aspect-ratio: 1;
  border: 1px solid var(--accent-soft);
  border-radius: 50%;
  animation: ring-in 2s var(--ease) 0.3s both, spin-slow 90s linear infinite;
  pointer-events: none;
}
.hero-ring::before {
  content: '';
  position: absolute;
  top: 12%;
  left: 7%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 8px var(--accent-soft);
}
.hero-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 240px 240px 36px 36px;
  background: var(--accent-soft);
  /* A frosted glass halo around the arch, then a soft blue glow */
  box-shadow: 0 0 0 12px rgb(255 255 255 / 0.45), 0 0 0 13px rgb(255 255 255 / 0.9), 0 50px 90px -40px rgb(44 88 181 / 0.55);
  animation: frame-in 1.8s var(--ease-out) 0.2s both;
}
.hero-frame::after {
  content: '';
  position: absolute;
  inset: 14px;
  z-index: 2;
  border: 1px solid rgb(255 255 255 / 0.65);
  border-radius: 228px 228px 26px 26px;
  pointer-events: none;
}
/* Photos crossfade, each with a slow, gentle zoom */
.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.1);
  transition: opacity 1.8s var(--ease), transform 8s linear;
}
.slide.is-active { opacity: 1; transform: scale(1); }
.slide-dots { position: absolute; bottom: 30px; left: 50%; z-index: 3; display: flex; gap: 8px; transform: translateX(-50%); }
.slide-dots button {
  position: relative;
  width: 34px;
  height: 3px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: rgb(255 255 255 / 0.55);
  cursor: pointer;
}
.slide-dots button::before { content: ''; position: absolute; inset: -10px 0; }
.slide-dots button::after { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.slide-dots button.is-active::after { animation: dot-progress var(--slide-ms, 6000ms) linear forwards; }
.hero-frame.is-paused .slide-dots button.is-active::after { animation-play-state: paused; }

.hero-chip {
  position: absolute;
  top: 12%;
  right: -28px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-strong);
  box-shadow: var(--shadow-sm);
  font-size: 0.86rem;
  font-weight: 600;
  animation: fade-left 1.2s var(--ease) 1.2s both;
  backdrop-filter: var(--glass-blur);
}
.hero-chip .icon { color: var(--accent); }
.next-card {
  position: absolute;
  bottom: 54px;
  left: -64px;
  z-index: 3;
  width: min(290px, 86%);
  padding: 20px 22px;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  background: var(--glass-strong);
  box-shadow: var(--shadow);
  animation: fade-right 1.2s var(--ease) 1.4s both;
  backdrop-filter: var(--glass-blur);
}
.next-label { display: flex; align-items: center; gap: 0.55rem; color: var(--muted); font-family: var(--font-label); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: ping 2.4s ease-out infinite; }
.next-when { margin: 8px 0 2px; font-family: var(--font-display); font-size: 1.4rem; font-weight: 500; line-height: 1.15; white-space: nowrap; }
.next-sub { min-height: 1.4em; margin-bottom: 12px; color: var(--ink-soft); font-size: 0.86rem; line-height: 1.45; }

@media (max-width: 1040px) {
  .hero { padding: 48px 0 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 72px; }
  .hero-visual { width: 100%; max-width: 460px; margin-inline: auto; }
  .hero-chip { right: -12px; }
  .next-card { left: -12px; }
}
@media (max-width: 600px) {
  .hero-visual { max-width: 360px; }
  .hero-ring { top: -24px; right: -24px; width: 100%; }
  .hero-chip { top: auto; right: 12px; bottom: 16px; padding: 0.55rem 0.9rem; font-size: 0.78rem; }
  .next-card { position: relative; bottom: auto; left: auto; width: auto; margin: -48px 14px 0; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Promises ------------------------------------------------------------------ */

.promise { position: relative; z-index: 2; margin-top: -72px; }
.promise-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--glass);
  box-shadow: var(--shadow);
}
.promise-item { padding: 34px 30px; }
.promise-item + .promise-item { border-left: 1px solid var(--line); }
.promise-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 50%; background: var(--bubble); color: var(--accent); box-shadow: var(--bubble-shadow); }
.promise-item h3 { margin-bottom: 6px; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; }
.promise-item p { margin: 0; color: var(--muted); font-size: 0.92rem; }
@media (max-width: 960px) {
  .promise-card { grid-template-columns: repeat(2, 1fr); }
  .promise-item:nth-child(odd) { border-left: 0; }
  .promise-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .promise-card { grid-template-columns: 1fr; }
  .promise-item { border-left: 0 !important; }
  .promise-item + .promise-item { border-top: 1px solid var(--line); }
}

/* Specialities ribbon: names glide slowly across */
.specialities-ribbon { padding: 72px 0 0; overflow: hidden; }
.ribbon { mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ribbon-track { display: flex; width: max-content; animation: glide 60s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon-group { display: flex; align-items: center; gap: 34px; padding-right: 34px; }
.ribbon-group span { color: var(--ink-soft); font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.3rem); font-style: italic; font-weight: 500; white-space: nowrap; }
.ribbon-group .icon { width: 18px; height: 18px; color: var(--accent); }

/* Treatments ------------------------------------------------------------------ */

.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 28px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  background: var(--glass);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease), border-color 0.7s var(--ease);
  box-shadow: var(--shadow-sm);
}
/* A soft light follows the pointer across the card */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), var(--accent-faint), transparent 65%);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.service-card:hover { transform: translateY(-8px); border-color: var(--accent-soft); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }
.service-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid rgb(255 255 255 / 0.9);
  border-radius: 50%;
  background: var(--bubble);
  color: var(--accent);
  transition: background-color 0.6s var(--ease), color 0.6s var(--ease), transform 0.8s var(--ease);
  box-shadow: var(--bubble-shadow);
}
.service-icon .icon { width: 28px; height: 28px; stroke-width: 1.5; }
.service-card:hover .service-icon { background: var(--accent); color: #fff; transform: rotate(-8deg) scale(1.05); }
.service-speciality { color: var(--muted); font-family: var(--font-label); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.18em; text-align: right; text-transform: uppercase; }
.service-card h3 { margin: 26px 0 10px; font-family: var(--font-display); font-size: 1.85rem; font-weight: 600; line-height: 1.08; }
.service-card p { margin: 0 0 24px; color: var(--ink-soft); font-size: 0.95rem; }
.service-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); }
.service-price { display: grid; line-height: 1.15; }
.service-price strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.service-price span { color: var(--muted); font-size: 0.8rem; }
@media (max-width: 1040px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } .service-card { padding: 30px 26px 24px; } }

/* About ------------------------------------------------------------------------ */

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.about-media { position: relative; }
.about-image, .family-image { overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
/* Framed to the right of the photo: the chair and the window light */
.about-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 80% center; transform: scale(1.12); }
.about-quote {
  position: absolute;
  right: -36px;
  bottom: 48px;
  max-width: 290px;
  margin: 0;
  padding: 24px 26px;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  background: var(--glass-strong);
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass-blur);
}
.about-quote .icon { width: 28px; height: 28px; margin-bottom: 8px; color: var(--accent); }
.about-quote p { margin: 0; font-family: var(--font-display); font-size: 1.4rem; font-style: italic; font-weight: 500; line-height: 1.3; }
.commitments { display: grid; gap: 24px; margin: 36px 0 34px; }
.commitments li { display: flex; gap: 18px; }
.commitments h3 { margin-bottom: 4px; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; }
.commitments p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.commit-icon { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bubble); border: 1px solid rgb(255 255 255 / 0.9); color: var(--accent); box-shadow: var(--bubble-shadow); }
.signature { margin: 0; color: var(--accent-strong); font-family: var(--font-script); font-size: 2.6rem; font-weight: 400; line-height: 1.1; }
.signature span { display: block; color: var(--muted); font-family: var(--font-label); font-size: 0.72rem; font-style: normal; letter-spacing: 0.22em; text-transform: uppercase; }
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 64px; }
  .about-media { max-width: 520px; }
  .about-quote { right: 12px; bottom: -32px; }
}

/* Specialists ----------------------------------------------------------------------- */

.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card {
  --c: var(--accent);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  background: var(--glass);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease);
  box-shadow: var(--shadow-sm);
}
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.team-photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, #fff 0%, transparent 55%),
    linear-gradient(160deg, var(--accent-faint), color-mix(in srgb, var(--c) 22%, #fff));
}
.team-photo::after { content: ''; position: absolute; inset: 12px; border: 1px solid rgb(255 255 255 / 0.8); border-radius: 18px; pointer-events: none; }
.team-photo > span {
  color: var(--c);
  font-family: var(--font-display);
  font-size: 4.4rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.9s var(--ease), letter-spacing 0.9s var(--ease);
}
.team-card:hover .team-photo > span { transform: scale(1.08); letter-spacing: 0.08em; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.06); }
.team-body { display: flex; flex: 1; flex-direction: column; padding: 26px 28px 24px; }
.team-role { margin: 0 0 6px; color: var(--accent); font-family: var(--font-label); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.team-body h3 { margin: 0 0 2px; font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; }
.quals { margin: 0; color: var(--muted); font-size: 0.8rem; }
.bio { margin: 14px 0; color: var(--ink-soft); font-size: 0.93rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tag { padding: 0.22rem 0.7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); font-size: 0.76rem; font-weight: 500; }
.team-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.team-days { display: flex; align-items: center; gap: 0.4rem; color: var(--muted); font-size: 0.8rem; }
.team-days .icon { color: var(--accent); }
@media (max-width: 1040px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .team-grid { grid-template-columns: 1fr; } }

/* First visit ------------------------------------------------------------------------ */

.steps { position: relative; }
.steps-line { position: absolute; top: 32px; right: 12.5%; left: 12.5%; height: 1px; background: var(--accent-soft); }
.steps-line span { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 2.2s var(--ease) 0.2s; }
.steps-line.is-in span { transform: scaleX(1); }
.steps-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { text-align: center; }
.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 26px;
  border: 1px solid rgb(255 255 255 / 0.9);
  border-radius: 50%;
  background: var(--bubble);
  box-shadow: 0 0 0 10px var(--tint);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
}
.step h3 { margin-bottom: 8px; font-family: var(--font-display); font-size: 1.65rem; font-weight: 600; }
.step p { max-width: 24em; margin: 0 auto; color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 900px) {
  .steps-line { display: none; }
  .steps-list { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}
@media (max-width: 520px) { .steps-list { grid-template-columns: 1fr; } }

/* Families ------------------------------------------------------------------------------ */

.family-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 96px; align-items: center; }
/* A soft, muted grade keeps the garden and shirt colours from competing with the site's single accent */
.family-image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; transform: scale(1.12); filter: saturate(0.42) contrast(1.03) brightness(1.04); }
.checklist { display: grid; gap: 14px; margin: 30px 0 38px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-soft); font-weight: 500; }
.checklist .icon { width: 22px; height: 22px; margin-top: 2px; padding: 4px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); stroke-width: 2.6; }
@media (max-width: 960px) {
  .family-grid { grid-template-columns: 1fr; gap: 56px; }
  .family-media { max-width: 520px; }
}

/* FAQ ------------------------------------------------------------------------------------ */

.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 88px; align-items: start; }
.faq-intro { position: sticky; top: 110px; }
/* Each question is its own glass card; the open one lifts and brightens */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  padding: 0 28px;
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  background: var(--glass);
  box-shadow: var(--shadow-sm);
  transition: background-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.faq-item[open] { background: var(--glass-strong); box-shadow: var(--shadow); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
  transition: color 0.4s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-strong); }
.faq-item summary .icon {
  width: 38px;
  height: 38px;
  padding: 10px;
  border: 1px solid rgb(255 255 255 / 0.9);
  border-radius: 50%;
  background: var(--bubble);
  box-shadow: var(--bubble-shadow);
  color: var(--accent);
  transition: transform 0.6s var(--ease), background-color 0.4s, color 0.4s;
}
.faq-item[open] summary .icon { transform: rotate(135deg); background: var(--accent); color: #fff; }
.faq-item p { max-width: 62ch; margin: -4px 0 24px; color: var(--ink-soft); }
.faq-item p a { color: var(--accent-strong); font-weight: 700; }
.faq-item::details-content {
  block-size: 0;
  overflow: clip;
  opacity: 0;
  transition: block-size 0.6s var(--ease), opacity 0.6s var(--ease), content-visibility 0.6s allow-discrete;
}
.faq-item[open]::details-content { block-size: auto; opacity: 1; }
@media (max-width: 960px) {
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-intro { position: static; }
  .faq-item summary { font-size: 1.3rem; }
}

/* Location -------------------------------------------------------------------------------- */

.location-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; }
.location-card {
  display: grid;
  gap: 24px;
  align-content: start;
  padding: 36px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--glass);
  box-shadow: var(--shadow-sm);
}
.location-row { display: flex; gap: 16px; }
.location-row h3 { margin: 0 0 2px; color: var(--muted); font-family: var(--font-label); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.location-row p { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.location-row p a { text-decoration: none; }
.location-row p a:hover { color: var(--accent-strong); }
.contact-icon { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--bubble); color: var(--accent); box-shadow: var(--bubble-shadow); }
.location-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 6px; }
.map { min-height: 460px; overflow: hidden; border: 1px solid var(--glass-border); border-radius: var(--radius-lg); background: var(--tint); box-shadow: var(--shadow-sm); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 460px; border: 0; }
.hours-list { display: grid; gap: 6px; font-size: 0.92rem; }
.hours-list li { display: flex; justify-content: space-between; gap: 1rem; }
.hours-list li span:last-child { font-weight: 600; text-align: right; white-space: nowrap; }
@media (max-width: 900px) {
  .location-grid { grid-template-columns: 1fr; }
  .map, .map iframe { min-height: 320px; }
}
@media (max-width: 520px) {
  .location-card { padding: 26px 22px; }
  .location-actions .btn { flex: 1 1 100%; }
}

/* Closing call to action ------------------------------------------------------------------ */

/* A large frosted glass panel floats over soft glows and the drawn tooth outline */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 128px 0;
  text-align: center;
}
.cta-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.cta-glow { position: absolute; border-radius: 50%; filter: blur(40px); animation: glow-breathe 9s ease-in-out infinite alternate; }
/* Kept inside the section's edges, so the clipping never shows as a hard line */
.cta-glow-a { top: 8%; left: 4%; width: 520px; height: 520px; background: radial-gradient(circle, rgb(58 111 216 / 0.3), transparent 65%); }
.cta-glow-b { right: 2%; bottom: 4%; width: 560px; height: 560px; background: radial-gradient(circle, rgb(120 160 235 / 0.32), transparent 65%); animation-delay: -4s; }
.cta-mark { position: absolute; fill: none; stroke: var(--accent); stroke-linecap: round; stroke-linejoin: round; }
.cta-mark-tooth { right: 6%; bottom: -14%; width: 420px; height: 420px; stroke-opacity: 0.2; stroke-width: 0.35; rotate: -8deg; }
.cta-mark-spark { top: 16%; left: 9%; width: 120px; height: 120px; stroke-opacity: 0.3; stroke-width: 0.6; }
/* The outlines draw themselves in when they come into view */
.motion [data-reveal="draw"] path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 3.2s var(--ease-out) 0.2s; }
.motion [data-reveal="draw"].is-in path { stroke-dashoffset: 0; }
@media (max-width: 760px) {
  .cta-mark-tooth { right: -18%; width: 300px; height: 300px; }
  .cta-mark-spark { top: 8%; left: 4%; width: 80px; height: 80px; }
}
.cta-content {
  display: grid;
  justify-items: center;
  width: min(980px, 100% - 48px);
  padding: 84px 56px;
  border: 1px solid var(--glass-border);
  border-radius: 48px;
  background: rgb(255 255 255 / 0.5);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow);
}
.cta-content > p:not(.eyebrow) { max-width: 34em; margin: 0 0 34px; color: var(--ink-soft); font-size: 1.12rem; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
@media (max-width: 600px) {
  .cta { padding: 88px 0; }
  .cta-content { width: calc(100% - 32px); padding: 56px 22px; border-radius: 34px; }
  .cta-actions, .cta-actions .btn { width: 100%; }
}

/* The clinic in numbers -------------------------------------------------------------------- */

.stats { padding: 0 0 128px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--glass);
  box-shadow: var(--shadow-sm);
}
.stats-item { position: relative; display: grid; align-content: start; gap: 8px; padding: 44px 36px 40px; }
.stats-item + .stats-item { border-left: 1px solid var(--line); }
/* A thin accent line grows across the top of each figure as it arrives */
.stats-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 36px;
  width: 44px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.2s var(--ease-out) calc(var(--d, 0s) + 0.3s);
}
.stats-item.is-in::before, html:not(.motion) .stats-item::before { transform: scaleX(1); }
.stats-num {
  /* The figures fade from ink into the accent blue, like light through glass */
  background: linear-gradient(180deg, var(--ink) 30%, var(--accent) 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 6.2vw, 5.6rem);
  font-weight: 400;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stats-label { color: var(--accent); font-family: var(--font-label); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; }
.stats-item p { margin: 2px 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
@media (max-width: 960px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-item:nth-child(3) { border-left: 0; }
  .stats-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .stats { padding-bottom: 88px; }
  .stats-item { padding: 32px 22px 28px; }
  .stats-item::before { left: 22px; }
}

/* Footer: light, never dark --------------------------------------------------------------- */

.site-footer { padding: 96px 0 32px; overflow: hidden; border-top: 1px solid var(--glass-border); background: rgb(255 255 255 / 0.45); box-shadow: 0 -30px 60px -50px rgb(44 88 181 / 0.35); color: var(--ink-soft); font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.8fr 1.1fr 1.2fr; gap: 48px; }
.footer-brand p { max-width: 24em; margin: 18px 0 0; }
.site-footer h4 { margin-bottom: 16px; color: var(--ink); font-family: var(--font-label); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color 0.3s; }
.site-footer a:not(.btn):hover { color: var(--accent-strong); }
.footer-mark {
  margin-top: 72px;
  color: var(--accent-soft);
  font-family: var(--font-display);
  font-size: clamp(3rem, 9.5vw, 8.5rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.02em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
}
.footer-mark em { color: #d2def6; font-family: var(--font-script); font-size: 1.15em; font-style: normal; font-weight: 400; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}
.footer-links { display: flex; gap: 24px; }
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Inner pages (booking, privacy) ------------------------------------------------------------ */

.page-hero { position: relative; overflow: hidden; padding: 64px 0 52px; border-bottom: 1px solid var(--line); }
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 90% at 90% 10%, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero .container > * { animation: fade-up 1s var(--ease) both; }
.page-hero .container > :nth-child(2) { animation-delay: 0.1s; }
.page-hero .container > :nth-child(3) { animation-delay: 0.2s; }
.page-hero h1 { margin-bottom: 0.2em; font-size: clamp(2.8rem, 5.5vw, 4.4rem); line-height: 1; }
.page-hero p { margin: 0; color: var(--ink-soft); }
.page-hero a { color: var(--accent-strong); font-weight: 700; }
.crumbs { display: flex; gap: 0.5rem; margin-bottom: 16px; color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-strong); }

.prose { max-width: 760px; padding: 64px 0 112px; }
.prose h2 { margin: 1.8em 0 0.5em; font-family: var(--font-display); font-size: 1.9rem; }
.prose p, .prose li { color: var(--ink-soft); }
.prose ul { margin: 0 0 1em; padding-left: 1.25em; list-style: disc; }
.prose li { margin-bottom: 0.4em; }
.prose a { color: var(--accent-strong); font-weight: 600; }

/* Shared UI ------------------------------------------------------------------------- */

.panel { padding: 34px; border: 1px solid var(--glass-border); border-radius: 28px; background: var(--glass); box-shadow: var(--shadow-sm); }
@media (max-width: 600px) { .panel { padding: 24px 18px; } }

.alert { display: flex; align-items: flex-start; gap: 0.65rem; margin-bottom: 18px; padding: 0.9rem 1rem; border-radius: 14px; font-size: 0.92rem; font-weight: 500; }
.alert .icon { margin-top: 1px; }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-info { background: var(--accent-faint); color: var(--accent-strong); }

.loading { display: flex; align-items: center; gap: 0.65rem; padding: 12px 0; color: var(--muted); font-weight: 600; }
.spinner { width: 18px; height: 18px; flex: none; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
.empty-state { padding: 24px; border: 1.5px dashed var(--line); border-radius: 16px; color: var(--muted); text-align: center; }
.empty-state a { color: var(--accent-strong); font-weight: 700; }

.avatar {
  --c: var(--accent);
  display: grid;
  flex: none;
  place-items: center;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 12%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 25%, transparent);
  color: var(--c);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  font-weight: 600;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: var(--glass);
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s;
  box-shadow: var(--shadow-sm);
}
.icon-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 700; }
.optional { margin-left: 0.3rem; color: var(--muted); font-size: 0.8rem; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.checkbox { display: flex; align-items: flex-start; gap: 0.7rem; font-size: 0.92rem; font-weight: 600; cursor: pointer; }
.checkbox input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.checkbox .hint { display: block; font-weight: 500; }
#form-error .alert { margin: 0; }
#form-error:empty { display: none; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* Booking page ------------------------------------------------------------------------- */

.booking { padding: 48px 0 112px; }
.booking-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.booking-layout.is-done { grid-template-columns: minmax(0, 1fr); max-width: 720px; margin-inline: auto; }
.booking-layout.is-done .summary, .booking-layout.is-done .stepper { display: none; }

.stepper { display: flex; gap: 8px; margin-bottom: 20px; counter-reset: step; }
.stepper li { display: flex; flex: 1; align-items: center; gap: 0.6rem; min-width: 0; color: var(--muted); font-size: 0.86rem; font-weight: 600; }
.stepper li::before {
  content: counter(step);
  counter-increment: step;
  display: grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  /* Jost's numerals: at this size Bodoni's 1 reads like an I */
  font-family: var(--font-label);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.5s var(--ease), border-color 0.5s, color 0.5s;
}
.stepper li:not(:last-child)::after { content: ''; flex: 1; height: 1px; min-width: 8px; background: var(--line); transition: background-color 0.6s var(--ease); }
.stepper li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stepper li.active { color: var(--ink); }
.stepper li.active::before { border-color: var(--accent); background: var(--accent); color: #fff; }
.stepper li.done::before { content: '✓'; border-color: var(--accent-soft); background: var(--accent-soft); color: var(--accent); font-family: var(--font); font-size: 0.85rem; }
.stepper li.done::after { background: var(--accent); }
@media (max-width: 600px) {
  .stepper li:not(.active) span { display: none; }
  .stepper li.active { flex: 0 0 auto; }
}

.step-head { margin-bottom: 24px; }
.step-head h2 { margin-bottom: 0.2em; font-size: 2.2rem; }
.step-head p { margin: 0; color: var(--muted); }
.step-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; }
.form-grid .step-actions { margin-top: 6px; }

.options { display: grid; gap: 12px; }
.option {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: var(--glass);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.4s var(--ease), background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.5s var(--ease);
  box-shadow: var(--shadow-sm);
}
.option:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: 0 12px 26px -18px rgb(37 45 60 / 0.35); transform: translateX(4px); }
.option.selected { border-color: var(--accent); background: var(--accent-faint); }
.option > .icon { color: var(--muted); transition: transform 0.4s var(--ease), color 0.4s; }
.option:hover > .icon { color: var(--accent); transform: translateX(4px); }
.option-icon { display: grid; flex: none; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--bubble); color: var(--accent); box-shadow: var(--bubble-shadow); }
.option-icon .icon { width: 24px; height: 24px; }
.option-body { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.option-title { font-weight: 700; }
.option-sub { color: var(--muted); font-size: 0.87rem; line-height: 1.45; }
.option-aside { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; white-space: nowrap; }
.option-aside small { color: var(--muted); font-family: var(--font); font-size: 0.8rem; font-weight: 500; }
@media (max-width: 600px) {
  .option { gap: 12px; padding: 14px; }
  .option:hover { transform: none; }
  .option-icon { width: 42px; height: 42px; }
  .option .avatar { width: 44px; height: 44px; }
}

.datetime { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 34px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head h3 { margin: 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.cal-nav { display: flex; gap: 6px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.cal-dow { padding: 4px 0 8px; color: var(--muted); font-family: var(--font-label); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.cal-day {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, transform 0.4s var(--ease);
}
.cal-day:disabled { color: #b7bcc6; cursor: default; }
.cal-day.available { background: var(--bubble); box-shadow: var(--bubble-shadow); color: var(--accent-strong); font-weight: 700; }
.cal-day.available:hover { background: var(--accent-soft); transform: scale(1.08); }
.cal-day.selected, .cal-day.selected:hover { background: var(--accent); color: #fff; }
.cal-day.today::after { content: ''; position: absolute; bottom: 12%; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; }
.cal-legend { display: flex; align-items: center; gap: 0.5rem; margin-top: 12px; color: var(--muted); font-size: 0.8rem; }
.cal-legend .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent-faint); border: 1px solid var(--accent-soft); }

.times-title { margin: 0 0 4px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.slot-group h4 { margin: 18px 0 8px; color: var(--muted); font-family: var(--font-label); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot {
  padding: 0.65rem 0.4rem;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.3s, color 0.3s, background-color 0.3s, transform 0.4s var(--ease);
  box-shadow: var(--shadow-sm);
}
.slot:hover { border-color: var(--accent); color: var(--accent-strong); transform: translateY(-2px); }
.slot.selected { border-color: var(--accent); background: var(--accent); color: #fff; }
.times .empty-state { margin-top: 8px; }
@media (max-width: 760px) {
  .datetime { grid-template-columns: 1fr; gap: 24px; }
  .times { scroll-margin-top: 96px; }
}

.summary { position: sticky; top: 100px; padding: 26px; border: 1px solid var(--glass-border); border-radius: 28px; background: var(--glass); box-shadow: var(--shadow-sm); }
.summary h3 { margin-bottom: 8px; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.summary-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.summary-row:first-of-type { border-top: 0; }
.summary-row > .icon { margin-top: 2px; color: var(--accent); }
.summary-text { flex: 1; min-width: 0; }
.summary-label { color: var(--muted); font-family: var(--font-label); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.summary-value { font-weight: 700; }
.summary-value small { display: block; color: var(--ink-soft); font-size: 0.85rem; font-weight: 500; }
.summary-empty { color: var(--muted); font-size: 0.92rem; }
.change-btn { padding: 0.2rem 0.55rem; border: 0; border-radius: 999px; background: none; color: var(--accent-strong); font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.change-btn:hover { background: var(--accent-faint); }
.summary-total { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.summary-note { margin: 6px 0 0; color: var(--muted); font-size: 0.82rem; }
@media (max-width: 960px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}

.confirm { padding: 12px 0; text-align: center; }
.confirm h2 { font-size: clamp(2.2rem, 5vw, 2.9rem); }
.confirm .muted { margin-bottom: 6px; }
.confirm-badge {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  animation: pop 0.8s var(--ease-out), halo 2.8s ease-out 0.8s infinite;
}
.confirm-badge .icon { width: 38px; height: 38px; stroke-width: 2.2; }
.ref { display: inline-block; margin: 0; padding: 0.45rem 1.1rem; border-radius: 999px; background: var(--accent-faint); font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 1.2rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent-strong); }
.confirm-details { max-width: 440px; margin: 26px auto; padding: 4px 20px; border: 1px solid var(--glass-border); border-radius: 20px; text-align: left; background: var(--glass); box-shadow: var(--shadow-sm); }
.confirm .hint { max-width: 440px; margin: 0 auto 24px; }
.confirm .hint a { color: var(--accent-strong); font-weight: 700; }
.confirm-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.next-steps { display: grid; gap: 12px; max-width: 440px; margin: 0 auto 24px; padding: 0; counter-reset: next; text-align: left; }
.next-steps li { position: relative; padding-left: 42px; color: var(--ink-soft); font-size: 0.92rem; }
.next-steps li::before {
  content: counter(next);
  counter-increment: next;
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent-soft);
  border-radius: 50%;
  background: var(--accent-faint);
  color: var(--accent);
  font-family: var(--font-label);
  font-weight: 500;
}
.next-steps strong { color: var(--ink); }

/* Speciality explorer: tabs on the left, panels slide between them -------------------- */

.explorer { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; }
.explorer-tabs { display: grid; gap: 6px; position: sticky; top: 110px; }
.explorer-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease);
}
.explorer-tab .icon { width: 22px; height: 22px; color: var(--accent); transition: transform 0.6s var(--ease); }
.explorer-tab:hover { color: var(--ink); transform: translateX(4px); }
.explorer-tab.is-active { border-color: var(--glass-border); background: var(--glass-strong); color: var(--ink); box-shadow: var(--shadow-sm); }
.explorer-tab.is-active .icon { transform: rotate(-8deg) scale(1.1); }
.explorer-panels { position: relative; min-height: 460px; }
.explorer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 40px;
  padding: 44px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: var(--glass);
  box-shadow: var(--shadow-sm);
}
.explorer-panel[hidden] { display: none; }
.explorer-panel.is-entering { animation: panel-in 0.8s var(--ease) both; }
.explorer-panel.is-leaving { position: absolute; inset: 0 0 auto; animation: panel-out 0.45s var(--ease) both; }
.panel-kicker { margin: 0 0 8px; color: var(--accent); font-family: var(--font-label); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; }
.panel-copy h3 { margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.7rem); font-weight: 600; line-height: 1.05; }
.panel-copy > p { color: var(--ink-soft); }
.panel-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 26px 0 30px; }
.panel-columns h4 { margin: 0 0 12px; color: var(--muted); font-family: var(--font-label); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.dot-list { display: grid; gap: 9px; }
.dot-list li { position: relative; padding-left: 20px; color: var(--ink-soft); font-size: 0.95rem; }
.dot-list li::before { content: ''; position: absolute; top: 0.7em; left: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.panel-visual {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 24px;
  padding: 32px 22px;
  border-radius: 24px;
  background: linear-gradient(170deg, var(--accent-faint), var(--accent-soft));
  text-align: center;
}
.panel-icon { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: var(--bubble); color: var(--accent); box-shadow: 0 0 0 10px rgb(255 255 255 / 0.5); }
.panel-icon .icon { width: 44px; height: 44px; stroke-width: 1.3; }
.panel-facts { display: grid; gap: 18px; width: 100%; }
.panel-facts li { display: grid; padding-top: 16px; border-top: 1px solid rgb(58 111 216 / 0.18); }
.panel-facts strong { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
.panel-facts span { color: var(--muted); font-size: 0.85rem; }
@media (max-width: 1040px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer-tabs { position: static; display: flex; gap: 8px; padding-bottom: 6px; overflow-x: auto; scrollbar-width: none; }
  .explorer-tabs::-webkit-scrollbar { display: none; }
  .explorer-tab { flex: none; width: auto; border-color: var(--line); background: var(--surface); }
  .explorer-tab:hover { transform: none; }
  .explorer-panel { grid-template-columns: 1fr; }
  .panel-visual { grid-template-columns: auto 1fr; align-items: center; justify-items: start; text-align: left; }
}
@media (max-width: 600px) {
  .explorer-panel { padding: 28px 22px; }
  .panel-columns { grid-template-columns: 1fr; gap: 20px; }
  .panel-visual { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

/* Technology and comfort ------------------------------------------------------------- */

.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tech-card {
  padding: 32px 30px;
  border: 1px solid var(--glass-border);
  border-radius: 26px;
  background: var(--glass);
  transition: transform 0.7s var(--ease), box-shadow 0.7s var(--ease), border-color 0.7s var(--ease);
  box-shadow: var(--shadow-sm);
}
.tech-card:hover { transform: translateY(-6px); border-color: var(--accent-soft); box-shadow: var(--shadow); }
.tech-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px; border-radius: 16px; background: var(--bubble); color: var(--accent); transition: transform 0.8s var(--ease); box-shadow: var(--bubble-shadow); }
.tech-card:hover .tech-icon { transform: rotate(-10deg); }
.tech-card h3 { margin-bottom: 8px; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.tech-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 960px) { .tech-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tech-grid { grid-template-columns: 1fr; } }

/* Nervous patients --------------------------------------------------------------------- */

.nervous-grid { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 88px; align-items: center; }
.nervous-note { max-width: 34em; margin-bottom: 30px; padding-left: 18px; border-left: 2px solid var(--accent-soft); color: var(--ink-soft); }
.comfort-steps { display: grid; gap: 16px; }
.comfort-step {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  padding: 26px 28px;
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  background: var(--glass);
  transition: transform 0.7s var(--ease), border-color 0.7s var(--ease), box-shadow 0.7s var(--ease);
  box-shadow: var(--shadow-sm);
}
.comfort-step:hover { transform: translateX(-6px); border-color: var(--accent-soft); box-shadow: var(--shadow-sm); }
.comfort-num { flex: none; min-width: 44px; color: var(--accent); font-family: var(--font-display); font-size: 2rem; font-style: italic; font-weight: 500; line-height: 1; }
.comfort-step h3 { margin-bottom: 4px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.comfort-step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 960px) { .nervous-grid { grid-template-columns: 1fr; gap: 48px; } }

/* Comparison tables -------------------------------------------------------------------- */

.compare { max-width: 1040px; margin-inline: auto; }
.compare-switch { display: flex; justify-content: center; gap: 6px; width: fit-content; margin: 0 auto 28px; padding: 6px; border: 1px solid var(--glass-border); border-radius: 999px; background: var(--glass); box-shadow: var(--shadow-sm); }
.compare-tab {
  padding: 0.7rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
.compare-tab.is-active { background: var(--accent); color: #fff; }
.compare-panel[hidden], .compare-panel.is-leaving { display: none; }
.compare-panel.is-entering { animation: panel-in 0.8s var(--ease) both; }
.compare-scroll { overflow-x: auto; border: 1px solid var(--glass-border); border-radius: var(--radius-lg); background: var(--glass); box-shadow: var(--shadow-sm); }
.compare-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.compare-table th, .compare-table td { padding: 20px 24px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { padding-top: 28px; background: rgb(234 240 251 / 0.6); font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.compare-table thead th:first-child { width: 20%; }
.compare-table tbody th { color: var(--muted); font-family: var(--font-label); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.compare-table td { color: var(--ink-soft); font-size: 0.95rem; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody tr { transition: background-color 0.3s; }
.compare-table tbody tr:hover { background: #fcfdff; }
.compare-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 50%; background: var(--bubble); color: var(--accent); box-shadow: var(--bubble-shadow); }
.compare-note { display: flex; justify-content: center; gap: 0.5rem; margin: 18px 0 0; color: var(--muted); font-size: 0.88rem; text-align: center; }
.compare-note .icon { color: var(--accent); }

/* Pricing --------------------------------------------------------------------------------- */

.pricing-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: start; }
.price-list { padding: 34px 36px; border: 1px solid var(--glass-border); border-radius: var(--radius-lg); background: var(--glass); box-shadow: var(--shadow-sm); }
.price-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.price-head h3 { margin: 0; font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; }
.price-head span { color: var(--muted); font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; }
.price-rows li:not(.loading) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 4px 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line);
  transition: padding 0.4s var(--ease);
}
.price-rows li:not(.loading):hover { padding-left: 8px; }
.price-rows li:last-child { border-bottom: 0; }
.price-rows a { font-weight: 600; text-decoration: none; transition: color 0.3s; }
.price-rows a:hover { color: var(--accent-strong); }
.price-rows small { grid-column: 1; color: var(--muted); font-size: 0.82rem; }
.price-rows strong { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.pay-cards { display: grid; gap: 16px; }
.pay-card { display: flex; gap: 18px; padding: 24px 26px; border: 1px solid var(--glass-border); border-radius: 24px; background: var(--glass); box-shadow: var(--shadow-sm); }
.pay-icon { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bubble); color: var(--accent); box-shadow: var(--bubble-shadow); }
.pay-card h3 { margin-bottom: 4px; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; }
.pay-card p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }
.pay-note { margin: 4px 6px 0; color: var(--muted); font-size: 0.88rem; }
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .price-list { padding: 26px 22px; } }

/* Emergency band: blue-washed glass ---------------------------------------------------------- */

.emergency { padding: 24px 0 120px; }
.emergency-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 48px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 90% at 0% 0%, rgb(58 111 216 / 0.16) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 100% 100%, rgb(120 160 235 / 0.16) 0%, transparent 70%),
    var(--glass);
  box-shadow: var(--shadow);
}
.emergency-copy { display: flex; gap: 22px; }
.emergency-icon { display: grid; flex: none; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--bubble); color: var(--accent); box-shadow: var(--shadow-sm); }
.emergency-icon .icon { width: 28px; height: 28px; }
.emergency .eyebrow { margin-bottom: 10px; }
.emergency h2 { margin: 0 0 10px; font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.05; }
.emergency-copy p:last-child { margin: 0; color: var(--ink-soft); }
.emergency-list { display: grid; gap: 10px; }
.emergency-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.emergency-list .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--surface); color: var(--accent); stroke-width: 2.6; }
.emergency-actions { display: grid; justify-items: start; gap: 14px; }
.emergency-tip { margin: 6px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--glass); color: var(--ink-soft); font-size: 0.88rem; border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); }
.emergency-tip strong { display: block; color: var(--ink); }
@media (max-width: 1040px) { .emergency-inner { grid-template-columns: 1fr 1fr; } .emergency-copy { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .emergency { padding-bottom: 88px; }
  .emergency-inner { grid-template-columns: 1fr; padding: 32px 24px; }
  .emergency-copy { flex-direction: column; }
  .emergency-actions .btn { width: 100%; }
}

/* Smile care guides ------------------------------------------------------------------------ */

.guides-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.guide-card { padding: 32px 30px; border: 1px solid var(--glass-border); border-radius: 28px; background: var(--glass); transition: box-shadow 0.7s var(--ease), border-color 0.7s var(--ease); box-shadow: var(--shadow-sm); }
.guide-card:hover { border-color: var(--accent-soft); box-shadow: var(--shadow); }
.guide-tag { display: inline-block; margin-bottom: 18px; padding: 0.25rem 0.8rem; border-radius: 999px; background: var(--accent-faint); color: var(--accent-strong); font-family: var(--font-label); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.guide-card h3 { margin-bottom: 10px; font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; line-height: 1.1; }
.guide-card > p { color: var(--ink-soft); font-size: 0.95rem; }
.guide-more summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-strong);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.guide-more summary::-webkit-details-marker { display: none; }
.guide-more summary .icon { transition: transform 0.5s var(--ease); }
.guide-more[open] summary .icon { transform: rotate(180deg); }
.guide-more .dot-list { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.guide-more::details-content {
  block-size: 0;
  overflow: clip;
  opacity: 0;
  transition: block-size 0.6s var(--ease), opacity 0.6s var(--ease), content-visibility 0.6s allow-discrete;
}
.guide-more[open]::details-content { block-size: auto; opacity: 1; }
@media (max-width: 960px) { .guides-grid { grid-template-columns: 1fr; } }

/* Before you come ------------------------------------------------------------------------- */

.facilities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.facility { display: flex; gap: 14px; padding: 22px; border: 1px solid var(--glass-border); border-radius: 22px; background: var(--glass); box-shadow: var(--shadow-sm); }
.facility-icon { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--bubble); color: var(--accent); box-shadow: var(--bubble-shadow); }
.facility h3 { margin-bottom: 2px; font-size: 0.98rem; }
.facility p { margin: 0; color: var(--muted); font-size: 0.86rem; }
@media (max-width: 960px) { .facilities { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .facilities { grid-template-columns: 1fr; } }

.footer-hours { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Motion -------------------------------------------------------------------------------------- */

@keyframes panel-in { from { opacity: 0; transform: translateX(40px); filter: blur(6px); } }
@keyframes panel-out { to { opacity: 0; transform: translateX(-40px); filter: blur(6px); } }

@keyframes page-in { from { opacity: 0; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(26px); } }
@keyframes fade-left { from { opacity: 0; transform: translateX(30px); } }
@keyframes fade-right { from { opacity: 0; transform: translateX(-30px); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes slide-in-left { from { opacity: 0; transform: translateX(-28px); } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-10px); } }
@keyframes blur-in { from { opacity: 0; filter: blur(14px); transform: translateY(22px); } }
@keyframes frame-in { from { clip-path: inset(100% 0 0 0 round 240px 240px 36px 36px); transform: scale(1.04); } to { clip-path: inset(0 0 0 0 round 0); transform: none; } }
@keyframes ring-in { from { opacity: 0; transform: scale(0.85); } }
@keyframes spin-slow { to { rotate: 360deg; } }
@keyframes glow-breathe { to { opacity: 0.7; transform: scale(1.08); } }
@keyframes glide { to { transform: translateX(-50%); } }
@keyframes dot-progress { to { transform: scaleX(1); } }
@keyframes float { 50% { translate: 0 -10px; } }
@keyframes ping { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgb(58 111 216 / 0.35); } 100% { box-shadow: 0 0 0 26px rgb(58 111 216 / 0); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orb-drift { to { transform: translate(-60px, 50px) scale(1.12); } }

/* Floating cards bob very gently once they have arrived */
.float-soft { animation-name: fade-right, float; animation-duration: 1.2s, 7s; animation-timing-function: var(--ease), ease-in-out; animation-iteration-count: 1, infinite; animation-delay: 1.4s, 2.6s; animation-fill-mode: both, none; }
.hero-chip.float-soft { animation-name: fade-left, float; animation-delay: 1.2s, 3.2s; }

/* Scroll effects. effects.js adds .motion to <html>, so without JavaScript everything is simply visible.
   Elements fade and slide in as they come into view, and back out as they leave. */
.motion [data-reveal] {
  opacity: 0;
  transition:
    opacity 1.1s var(--ease),
    transform 1.2s var(--ease),
    filter 1.2s var(--ease),
    clip-path 1.5s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.motion [data-reveal="up"] { transform: translateY(44px); }
.motion [data-reveal="left"] { transform: translateX(-64px); }
.motion [data-reveal="right"] { transform: translateX(64px); }
.motion [data-reveal="zoom"] { transform: scale(0.94); }
.motion [data-reveal="blur"] { filter: blur(12px); transform: translateY(18px); }
.motion [data-reveal="curtain"] { opacity: 1; clip-path: inset(0 0 100% 0 round var(--radius-lg)); }
.motion [data-reveal="curtain"] img { transition: transform 2.2s var(--ease-out); }
.motion [data-reveal="line"] { opacity: 1; }
.motion [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
/* Only photos are clipped (to their rounded frame); clipping text would trim the corner letters */
.motion [data-reveal="curtain"].is-in { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
/* Photos settle at a slight zoom, which leaves room for the parallax movement */
.motion [data-reveal="curtain"].is-in img { transform: scale(1.06); }
/* Leaving is a little quicker than arriving */
.motion [data-reveal]:not(.is-in) { transition-duration: 0.7s, 0.8s, 0.8s, 1s; transition-delay: 0s; }

.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  background: var(--glass-strong);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), visibility 0.5s, background-color 0.3s, color 0.3s;
  backdrop-filter: var(--glass-blur);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent); color: #fff; }

.book-bar { display: none; }
@media (max-width: 600px) {
  .to-top { display: none; }
  /* On phones, Call and Book float at the bottom in a glass pill */
  .book-bar {
    position: fixed;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    z-index: 40;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--glass-strong);
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow);
    transform: translateY(150%);
    transition: transform 0.6s var(--ease);
  }
  .book-bar.show { transform: none; }
  body.has-book-bar { padding-bottom: 88px; }
  /* A lighter blur on phones keeps scrolling smooth */
  :root { --glass-blur: blur(12px) saturate(1.4); }
}

/* Booking flow: each step and its options ease in */
#step-panel > * { animation: rise 0.6s var(--ease) both; }
#step-panel > :nth-child(2) { animation-delay: 0.06s; }
#step-panel > :nth-child(3) { animation-delay: 0.12s; }
.options > * { animation: rise 0.6s var(--ease) both; }
.options > :nth-child(2) { animation-delay: 0.05s; }
.options > :nth-child(3) { animation-delay: 0.1s; }
.options > :nth-child(4) { animation-delay: 0.15s; }
.options > :nth-child(5) { animation-delay: 0.2s; }
.options > :nth-child(6) { animation-delay: 0.25s; }
.options > :nth-child(n + 7) { animation-delay: 0.3s; }
.times > * { animation: fade-in 0.4s ease both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
