/* Nirogyam Clinic — home page styles */
:root {
  --navy: #16337a;
  --navy-2: #1f4aa8;
  --sky: #3fa3e0;
  --sky-soft: #e8f4fc;
  --gold: #f2b71f;
  --gold-soft: #fff6dc;
  --ink: #0e1b3d;
  --muted: #5a6788;
  --line: #e3e9f4;
  --bg: #ffffff;
  --bg-alt: #f6f9fe;
  --green: #22a45d;
  --radius: 22px;
  --shadow: 0 18px 50px -20px rgba(22, 51, 122, .35);
  --shadow-sm: 0 8px 24px -12px rgba(22, 51, 122, .3);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-hi: "Mukta", "Noto Sans Devanagari", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.hi { font-family: var(--font-hi); }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
section { position: relative; }
.section { padding: clamp(72px, 10vw, 128px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--navy-2);
  background: var(--sky-soft);
  padding: 7px 14px; border-radius: 99px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.h2 {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.08; letter-spacing: -.025em; font-weight: 800;
  margin: 18px 0 14px;
}
.h2 em { font-style: normal; color: var(--navy-2); position: relative; white-space: nowrap; }
.h2 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em;
  background: var(--gold); opacity: .45; z-index: -1; border-radius: 4px;
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .3s;
}
.is-in .h2 em::after, .h2.is-in em::after { transform: scaleX(1); }
.lead { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); max-width: 620px; margin: 0; }
.section-head { text-align: center; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head .lead { margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 14px; font-weight: 700; font-size: 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s;
  will-change: transform; min-height: 52px;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 12px 30px -12px rgba(22,51,122,.7); }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-wa { background: var(--green); color: #fff; box-shadow: 0 12px 30px -12px rgba(34,164,93,.7); }
.btn-wa:hover { transform: translateY(-2px); background: #1d9152; }
.btn-ghost { background: #fff; color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--navy-2); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .4s, box-shadow .4s, padding .4s;
  padding: 16px 0;
}
.header.scrolled { background: rgba(255,255,255,.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); padding: 10px 0; }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 46px; height: 44px; object-fit: contain; }
.brand-text { line-height: 1.1; }
.brand-text strong { display: block; font-size: 18px; font-weight: 800; letter-spacing: .02em; color: var(--navy); }
.brand-text span { font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-weight: 600; font-size: 15px; color: var(--ink); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav .btn { padding: 11px 18px; min-height: 44px; font-size: 15px; }
.nav .nav-wa, .nav .nav-info { display: none; } /* phone menu only */
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 12px; background: var(--sky-soft); position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.menu-btn span:nth-child(1) { top: 16px; } .menu-btn span:nth-child(2) { top: 22px; } .menu-btn span:nth-child(3) { top: 28px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  padding: 130px 0 70px; min-height: 100svh; display: flex; align-items: center;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(63,163,224,.18), transparent 60%),
    radial-gradient(700px 500px at 0% 90%, rgba(242,183,31,.14), transparent 60%),
    linear-gradient(180deg, #f5f9ff 0%, #fff 100%);
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(40px, 6.6vw, 78px); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; margin: 20px 0 10px;
}
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1s var(--ease) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
.hero h1 .accent { background: linear-gradient(100deg, var(--navy-2), var(--sky) 60%, var(--navy-2)); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise 1s var(--ease) .24s forwards, shine 6s linear 1.4s infinite; }
.hero .hi-tag { font-family: var(--font-hi); font-size: clamp(19px, 2.4vw, 24px); color: var(--navy); font-weight: 600; margin: 0 0 14px; }
.hero .lead { margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.g-rating { display: flex; align-items: center; gap: 10px; background: #fff; padding: 9px 14px 9px 10px; border-radius: 14px; box-shadow: var(--shadow-sm); color: var(--ink); }
.g-rating .g { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; border: 1px solid var(--line); }
.g-rating b { font-size: 18px; }
.stars { color: var(--gold); letter-spacing: 1px; font-size: 15px; }
.hero-trust .pin { display: flex; align-items: center; gap: 6px; }
.hero-trust .pin svg { width: 18px; color: var(--navy-2); }

.fade-up { opacity: 0; transform: translateY(24px); animation: fadeUp .9s var(--ease) forwards; }
.d1 { animation-delay: .35s; } .d2 { animation-delay: .5s; } .d3 { animation-delay: .65s; } .d4 { animation-delay: .8s; }

/* hero visual */
.hero-visual { position: relative; aspect-ratio: 1; width: min(100%, 520px); margin-inline: auto; }
.hero-visual .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed rgba(31,74,168,.25); animation: spin 40s linear infinite; }
.hero-visual .ring.r2 { inset: 9%; border-style: solid; border-color: rgba(63,163,224,.18); animation-duration: 60s; animation-direction: reverse; }
.hero-visual .blob {
  position: absolute; inset: 14%;
  background: linear-gradient(140deg, var(--sky), var(--navy-2));
  border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%;
  animation: morph 12s ease-in-out infinite; box-shadow: 0 40px 80px -30px rgba(22,51,122,.6);
}
.hero-visual .portrait { position: absolute; inset: 16%; border-radius: 50%; overflow: hidden; animation: pop 1.1s var(--ease) .3s both; }
.hero-visual .portrait img { width: 100%; height: 100%; object-fit: cover; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow);
  font-weight: 700; font-size: 14px; white-space: nowrap; z-index: 2;
  animation: pop .8s var(--ease) both, float 6s ease-in-out infinite;
}
.chip .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; }
.chip small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.chip.c1 { top: 8%; left: -4%; animation-delay: .9s, 1.7s; }
.chip.c1 .ic { background: var(--gold-soft); }
.chip.c2 { top: 44%; right: -8%; animation-delay: 1.05s, 2.3s; }
.chip.c2 .ic { background: var(--sky-soft); }
.chip.c3 { bottom: 6%; left: 2%; animation-delay: 1.2s, 1.9s; }
.chip.c3 .ic { background: #e6f7ee; }

.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(22,51,122,.3); border-radius: 14px; }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--navy); border-radius: 2px; animation: scrolldot 1.8s ease-in-out infinite; }

/* ---------- Marquee ---------- */
.marquee-wrap { overflow: hidden; padding: 12px 0; margin-top: -22px; }
.marquee { background: var(--navy); color: #fff; padding: 20px 0; overflow: hidden; transform: rotate(-1.2deg) scale(1.02); }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 38s linear infinite; }
.marquee-track span { display: flex; align-items: center; gap: 22px; padding-right: 22px; font-weight: 700; font-size: clamp(17px, 2vw, 22px); white-space: nowrap; }
.marquee-track span::after { content: "✦"; color: var(--gold); font-size: .8em; }
.marquee-track .hi { font-weight: 600; opacity: .85; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; text-align: center; transition: transform .4s var(--ease), box-shadow .4s; }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.stat .num { font-size: clamp(36px, 5vw, 54px); font-weight: 800; letter-spacing: -.03em; color: var(--navy); line-height: 1; }
.stat .num sup { font-size: .45em; color: var(--gold); vertical-align: top; margin-left: 2px; }
.stat p { margin: 10px 0 0; color: var(--muted); font-weight: 600; font-size: 14.5px; }

/* ---------- Body map ---------- */
.bodymap { background: var(--bg-alt); overflow: hidden; }
.bodymap-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: center; }
.figure-wrap { position: relative; max-width: 290px; margin-inline: auto; width: 100%; }
.figure-wrap svg.body { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 24px 30px rgba(22,51,122,.25)); }
.spine .vert { fill: #e8f6ff; opacity: .28; transition: opacity .25s, fill .25s; }
.spine .vert.lit { opacity: .95; fill: var(--gold); }
.spine .ribs { fill: none; stroke: #e8f6ff; stroke-opacity: .2; stroke-width: 1.6; stroke-linecap: round; }
.spine .pelvis { fill: none; stroke: #e8f6ff; stroke-opacity: .25; stroke-width: 1.4; }
.contours { fill: none; stroke: #ffffff; stroke-opacity: .22; stroke-width: 1.2; stroke-linecap: round; }
.scanline { animation: scan 4.5s cubic-bezier(.45,0,.55,1) infinite; }
.hotspot { cursor: pointer; outline: none; }
.hotspot .pulse { fill: var(--gold); opacity: .4; transform-box: fill-box; transform-origin: center; animation: hot 2.2s ease-out infinite; }
.hotspot .core { fill: #fff; stroke: var(--gold); stroke-width: 3; transition: fill .3s; }
.hotspot:hover .core, .hotspot:focus-visible .core { fill: var(--gold-soft); }
.hotspot.active .core { fill: #ff7a59; stroke: #fff; }
.hotspot.active .pulse { fill: #ff7a59; opacity: .6; }
.spot-label {
  position: absolute; transform: translate(14px, -50%) scale(.8); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; padding: 6px 11px; border-radius: 10px; white-space: nowrap;
  box-shadow: var(--shadow-sm); transition: opacity .3s, transform .4s var(--ease), left .4s var(--ease), top .4s var(--ease);
}
.spot-label::before { content: ""; position: absolute; left: -5px; top: 50%; margin-top: -5px; border: 5px solid transparent; border-left: 0; border-right-color: var(--ink); }
.spot-label.show { opacity: 1; transform: translate(14px, -50%) scale(1); }
.spot-label.flip { transform: translate(calc(-100% - 14px), -50%) scale(.8); }
.spot-label.flip.show { transform: translate(calc(-100% - 14px), -50%) scale(1); }
.spot-label.flip::before { left: auto; right: -5px; border-right: 0; border-left: 5px solid var(--ink); }
.tap-hint { text-align: center; color: var(--muted); font-weight: 600; font-size: 14px; margin: 18px 0 0; }
.tap-hint span { display: inline-block; animation: tap 1.6s ease-in-out infinite; }
.back-to-body { display: none; margin-top: 14px; font-weight: 700; font-size: 14px; color: var(--navy-2); padding: 8px 0; }
.pain-card.flash { animation: flash 1s var(--ease); }
.pain-card {
  background: #fff; border-radius: var(--radius); padding: clamp(24px, 4vw, 38px); box-shadow: var(--shadow);
  min-height: 300px; position: relative; overflow: hidden;
}
.pain-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.pain-tabs button { padding: 9px 15px; border-radius: 99px; border: 1.5px solid var(--line); font-weight: 700; font-size: 14px; color: var(--muted); transition: all .3s var(--ease); }
.pain-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.pain-body { transition: opacity .35s, transform .35s var(--ease); }
.pain-body.swap { opacity: 0; transform: translateY(10px); }
.pain-body h3 { font-size: 26px; margin: 0 0 4px; letter-spacing: -.02em; }
.pain-body .hi { color: var(--navy-2); font-weight: 600; font-size: 18px; }
.pain-body p { color: var(--muted); margin: 12px 0 18px; }
.pain-body ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.pain-body li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.pain-body li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--sky-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4aa8' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/11px no-repeat; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 28px; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s, border-color .5s;
}
.svc::before {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(63,163,224,.18), transparent 70%); z-index: -1; transition: transform .6s var(--ease);
}
.svc:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.svc:hover::before { transform: scale(2.4); }
.svc .icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--sky-soft); color: var(--navy-2); margin-bottom: 20px; transition: transform .5s var(--ease), background .4s, color .4s; }
.svc .icon svg { width: 30px; height: 30px; }
.svc:hover .icon { transform: rotate(-8deg) scale(1.08); background: var(--navy); color: #fff; }
.svc h3 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.01em; }
.svc .hi { color: var(--navy-2); font-size: 15px; font-weight: 600; }
.svc p { color: var(--muted); margin: 10px 0 0; font-size: 15px; }
.svc.featured { background: linear-gradient(150deg, var(--navy), var(--navy-2)); color: #fff; border: 0; }
.svc.featured p, .svc.featured .hi { color: rgba(255,255,255,.8); }
.svc.featured .icon { background: rgba(255,255,255,.14); color: var(--gold); }
.svc .tag { position: absolute; top: 18px; right: 18px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: var(--ink); padding: 4px 10px; border-radius: 99px; }

/* ---------- Process ---------- */
.process { background: linear-gradient(180deg, #fff, var(--bg-alt)); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps-line { position: absolute; top: 34px; left: 12%; right: 12%; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.steps-line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--sky), var(--gold)); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform .2s linear; }
.step { position: relative; text-align: center; padding: 0 6px; }
.step .n { width: 70px; height: 70px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 3px solid var(--line); font-weight: 800; font-size: 22px; color: var(--navy); position: relative; z-index: 1; transition: border-color .5s, background .5s, color .5s, transform .5s var(--ease); }
.step.on .n { border-color: var(--gold); background: var(--navy); color: #fff; transform: scale(1.06); }
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Doctor ---------- */
.doctor-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.doc-photo { position: relative; max-width: 440px; margin-inline: auto; width: 100%; }
.doc-photo .frame { position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 4/5; background: var(--sky); box-shadow: var(--shadow); }
.doc-photo .frame img { width: 100%; height: 115%; object-fit: cover; object-position: center 20%; will-change: transform; }
.doc-photo .deco { position: absolute; inset: -18px 18px 18px -18px; border-radius: 32px; border: 2px solid var(--gold); z-index: -1; }
.doc-badge { position: absolute; right: -14px; bottom: 28px; background: #fff; border-radius: 18px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; }
.doc-badge b { font-size: 30px; line-height: 1; color: var(--navy); }
.doc-badge span { font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1.25; }
.doc-name { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.02em; margin: 6px 0 2px; }
.doc-role { color: var(--navy-2); font-weight: 700; margin: 0 0 18px; }
.doc-quote { border-left: 4px solid var(--gold); padding: 6px 0 6px 18px; margin: 22px 0; font-size: 18px; font-weight: 600; color: var(--ink); }
.doc-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 30px; padding: 0; list-style: none; }
.doc-points li { display: flex; gap: 12px; align-items: flex-start; background: var(--bg-alt); border-radius: 16px; padding: 14px; font-weight: 600; font-size: 15px; }
.doc-points li span { font-size: 22px; line-height: 1; }

/* ---------- Reviews ---------- */
.reviews { background: var(--navy); color: #fff; overflow: hidden; }
.reviews::before { content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%; right: -260px; top: -300px; background: radial-gradient(circle, rgba(63,163,224,.35), transparent 65%); }
.reviews-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; }
.reviews .eyebrow { background: rgba(255,255,255,.1); color: #fff; }
.reviews .lead { color: rgba(255,255,255,.75); }
.big-rating { display: flex; align-items: flex-end; gap: 18px; margin: 10px 0 8px; }
.big-rating .val { font-size: clamp(80px, 12vw, 132px); font-weight: 800; line-height: .9; letter-spacing: -.05em; }
.big-stars { display: flex; gap: 4px; margin-bottom: 12px; }
.big-stars svg { width: 30px; height: 30px; color: var(--gold); opacity: 0; transform: scale(.3) rotate(-40deg); transition: opacity .5s, transform .6s var(--ease); }
.is-in .big-stars svg { opacity: 1; transform: none; }
.big-stars svg:nth-child(2) { transition-delay: .1s; } .big-stars svg:nth-child(3) { transition-delay: .2s; } .big-stars svg:nth-child(4) { transition-delay: .3s; } .big-stars svg:nth-child(5) { transition-delay: .4s; }
.review-cards { display: grid; gap: 14px; }
.rv { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 18px 20px; display: flex; gap: 16px; align-items: center; backdrop-filter: blur(6px); }
.rv .ic { width: 48px; height: 48px; flex: none; border-radius: 14px; background: rgba(242,183,31,.15); display: grid; place-items: center; font-size: 22px; }
.rv b { display: block; font-size: 16px; }
.rv span { color: rgba(255,255,255,.7); font-size: 14.5px; }
.reviews .btn-ghost { background: #fff; border: 0; }

/* ---------- Visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.visit-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.storefront { border-radius: 20px; overflow: hidden; margin-bottom: 26px; background: linear-gradient(180deg, #dff0fb, #f6fbff); }
.storefront svg { width: 100%; height: auto; }
.storefront .sign-glow { animation: glow 2.6s ease-in-out infinite; }
.storefront .cloud { animation: drift 18s linear infinite; }
.storefront .cloud.k2 { animation-duration: 26s; animation-delay: -9s; }
.storefront .door-light { animation: glow 3.4s ease-in-out infinite; }
.info-row { display: flex; gap: 16px; padding: 16px 0; border-top: 1px dashed var(--line); }
.info-row:first-of-type { border-top: 0; padding-top: 0; }
.info-row .ic { width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--sky-soft); color: var(--navy-2); display: grid; place-items: center; }
.info-row .ic svg { width: 22px; height: 22px; }
.info-row h4 { margin: 0 0 2px; font-size: 16px; }
.info-row p { margin: 0; color: var(--muted); font-size: 15px; }
.info-row a { color: var(--navy-2); font-weight: 700; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.map-card { border-radius: 28px; overflow: hidden; min-height: 420px; position: relative; box-shadow: var(--shadow-sm); border: 1px solid var(--line); background: var(--sky-soft); }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-card .map-load { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--navy); font-weight: 700; padding: 20px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq { border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq[open] { box-shadow: var(--shadow-sm); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--sky-soft); position: relative; transition: transform .4s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--navy); border-radius: 2px; }
.faq summary i::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.faq[open] summary i { background: var(--gold); transform: rotate(180deg); }
.faq[open] summary i::after { transform: rotate(0); }
.faq .ans { padding: 0 22px 20px; color: var(--muted); }
.faq .ans p { margin: 0; }

/* ---------- CTA + footer ---------- */
.cta-band { padding: 0 0 clamp(72px, 10vw, 120px); }
.cta-box {
  border-radius: 34px; padding: clamp(36px, 6vw, 72px); text-align: center; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(130deg, var(--navy) 0%, var(--navy-2) 55%, var(--sky) 130%);
}
.cta-box::before, .cta-box::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.12); animation: spin 30s linear infinite; }
.cta-box::before { width: 420px; height: 420px; left: -160px; top: -200px; border-style: dashed; }
.cta-box::after { width: 300px; height: 300px; right: -100px; bottom: -150px; border-color: rgba(242,183,31,.4); }
.cta-box h2 { font-size: clamp(30px, 5vw, 56px); line-height: 1.05; letter-spacing: -.03em; margin: 0 0 12px; position: relative; }
.cta-box p { color: rgba(255,255,255,.8); margin: 0 auto 30px; max-width: 520px; position: relative; }
.cta-box .hero-cta { justify-content: center; position: relative; }
.cta-box .btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.3); }

.footer { background: #0b1736; color: rgba(255,255,255,.7); padding: 56px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer .brand-text strong { color: #fff; }
.footer .brand-text span { color: rgba(255,255,255,.6); }
.footer .brand img { background: #fff; border-radius: 12px; padding: 4px; }
.footer h4 { color: #fff; margin: 0 0 14px; font-size: 15px; letter-spacing: .04em; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--gold); }
.footer .fine { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; }

/* ---------- Mobile sticky bar ---------- */
.mobile-bar { display: none; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.left { transform: translateX(-50px); }
.reveal.right { transform: translateX(50px); }
.reveal.zoom { transform: scale(.92); }
.reveal.is-in { opacity: 1; transform: none; }

/* scroll progress */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--gold), var(--sky)); transform: scaleX(0); transform-origin: left; z-index: 60; }

/* ---------- Keyframes ---------- */
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: none; } }
@keyframes shine { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes morph {
  0%, 100% { border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; transform: rotate(0); }
  50% { border-radius: 55% 45% 40% 60% / 45% 58% 42% 55%; transform: rotate(8deg); }
}
@keyframes pop { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes hot { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes scan { 0% { transform: translateY(0); } 100% { transform: translateY(520px); } }
@keyframes tap { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(242,183,31,.7), var(--shadow); } 100% { box-shadow: 0 0 0 18px rgba(242,183,31,0), var(--shadow); } }
@keyframes drift { from { transform: translateX(-120px); } to { transform: translateX(560px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid, .bodymap-grid, .doctor-grid, .reviews-grid { gap: 40px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .chip.c2 { right: -2%; }
}

@media (max-width: 860px) {
  /* phone menu: full-screen sheet — link rows with a hint line, then Call / WhatsApp and timings */
  .nav {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: calc(86px + env(safe-area-inset-top)) 20px calc(28px + env(safe-area-inset-bottom));
    background: #fff linear-gradient(180deg, var(--sky-soft), #fff 280px);
    overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility 0s .3s;
  }
  .menu-open .nav { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .3s; }
  .nav > * { opacity: 0; transform: translateY(14px); transition: transform .45s var(--ease), opacity .45s; }
  .menu-open .nav > * { opacity: 1; transform: none; }
  .menu-open .nav > :nth-child(2) { transition-delay: .04s; } .menu-open .nav > :nth-child(3) { transition-delay: .08s; }
  .menu-open .nav > :nth-child(4) { transition-delay: .12s; } .menu-open .nav > :nth-child(5) { transition-delay: .16s; }
  .menu-open .nav > :nth-child(6) { transition-delay: .2s; } .menu-open .nav > :nth-child(7) { transition-delay: .24s; }
  .menu-open .nav > :nth-child(8) { transition-delay: .28s; }
  .nav a:not(.btn) {
    display: flex; flex-direction: column; gap: 3px; padding: 15px 44px 15px 2px; border-bottom: 1px solid var(--line);
    font-size: 21px; font-weight: 800; letter-spacing: -.01em; line-height: 1.2;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f4aa8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") right 6px center / 20px no-repeat;
  }
  .nav a:not(.btn)::after, .nav a:not(.btn):hover::after {
    content: attr(data-sub); position: static; width: auto; height: auto; background: none; transform: none; transition: none;
    font-size: 13.5px; font-weight: 600; letter-spacing: 0; color: var(--muted);
  }
  .nav .btn { width: 100%; min-height: 54px; font-size: 16.5px; margin-top: 12px; }
  .nav a:not(.btn) + .btn { margin-top: 26px; }
  .nav .nav-wa { display: inline-flex; }
  .nav .nav-info { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 22px; text-align: center; }
  .nav-info p { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.5; }
  .menu-btn { display: block; }
  .menu-open .header { background: transparent; box-shadow: none; backdrop-filter: none; }
  body.menu-open { overflow: hidden; }

  .hero { padding: 104px 0 64px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-visual { width: min(84%, 380px); order: -1; }
  .chip { font-size: 12.5px; padding: 8px 11px; gap: 8px; border-radius: 13px; }
  .chip .ic { width: 28px; height: 28px; font-size: 15px; border-radius: 8px; }
  .chip small { font-size: 11px; }
  .chip.c1 { left: -10%; } .chip.c2 { right: -12%; } .chip.c3 { left: -6%; bottom: 2%; }
  .scroll-hint { display: none; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .bodymap-grid, .doctor-grid, .reviews-grid, .visit-grid { grid-template-columns: 1fr; }
  .figure-wrap { max-width: 210px; }
  .back-to-body { display: inline-block; }
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 460px; margin-inline: auto; }
  .steps-line { top: 35px; bottom: 35px; left: 34px; right: auto; width: 3px; height: auto; }
  .steps-line i { transform: scaleY(var(--p, 0)); transform-origin: top; }
  .step { display: grid; grid-template-columns: 70px 1fr; gap: 18px; text-align: left; padding: 0 0 30px; align-items: start; }
  .step .n { margin: 0; }
  .step h3 { margin-top: 12px; }
  .doc-photo { max-width: 340px; }
  .doc-badge { right: -6px; }
  .map-card { min-height: 320px; }
  .footer { padding-bottom: 120px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }

  .mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40;
    background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    padding: 8px; border-radius: 20px; box-shadow: 0 14px 40px -12px rgba(14,27,61,.45);
    transform: translateY(140%); transition: transform .5s var(--ease);
  }
  .mobile-bar.show { transform: none; }
  .menu-open .mobile-bar { transform: translateY(140%); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px; border-radius: 14px; font-size: 12.5px; font-weight: 700; color: var(--navy); }
  .mobile-bar a svg { width: 22px; height: 22px; }
  .mobile-bar a.wa { background: var(--green); color: #fff; }
}

@media (max-width: 860px) {
  .reveal.left:not(.is-in), .reveal.right:not(.is-in) { transform: translateY(40px); }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .pain-body ul { grid-template-columns: 1fr; }
  .doc-points { grid-template-columns: 1fr; }
  .visit-actions .btn { flex: 1 1 100%; }
  .stat { padding: 22px 12px; }
  .marquee { padding: 14px 0; }
  .big-stars svg { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .fade-up, .hero h1 .line > span { opacity: 1 !important; transform: none !important; }
}

/* =====================================================================
   v2 features: preloader, open status, pain check, exercises, booking,
   floating widgets, mobile carousels
   ===================================================================== */

/* ---------- Preloader ---------- */
.preloader { position: fixed; inset: 0; z-index: 100; background: #fff; display: grid; place-items: center; transition: opacity .5s var(--ease), visibility .5s; }
.preloader.done { opacity: 0; visibility: hidden; }
.pl-inner { display: grid; justify-items: center; gap: 18px; }
.pl-inner img { width: 84px; height: auto; animation: plPulse 1.2s ease-in-out infinite; }
.pl-bar { width: 120px; height: 4px; border-radius: 4px; background: var(--sky-soft); overflow: hidden; }
.pl-bar i { display: block; height: 100%; width: 40%; border-radius: 4px; background: linear-gradient(90deg, var(--sky), var(--gold)); animation: plBar 1s ease-in-out infinite; }
.no-preload .preloader { display: none; }
@keyframes plPulse { 50% { transform: scale(1.08); } }
@keyframes plBar { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- Nav active (scrollspy) ---------- */
.nav a.active:not(.btn) { color: var(--navy-2); }
.nav a.active:not(.btn)::after { transform: scaleX(1); }

/* ---------- Hero extras ---------- */
.hero-quiz { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; font-size: 15px; color: var(--navy-2); border-bottom: 2px dashed rgba(31,74,168,.35); padding-bottom: 2px; transition: color .3s, border-color .3s; }
.hero-quiz:hover { color: var(--navy); border-color: var(--gold); }
.hero-quiz span { animation: tap 1.8s ease-in-out infinite; display: inline-block; }

.open-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: #fff; box-shadow: var(--shadow-sm); color: var(--muted); }
.open-status i { width: 8px; height: 8px; border-radius: 50%; background: #9aa6c0; flex: none; }
.open-status.is-open { color: #157a43; }
.open-status.is-open i { background: var(--green); box-shadow: 0 0 0 0 rgba(34,164,93,.6); animation: live 1.8s infinite; }
.open-status.is-closed { color: #a4541b; }
.open-status.is-closed i { background: #f0883e; }
.open-status.sm { box-shadow: none; background: var(--bg-alt); font-size: 12px; padding: 3px 9px; margin-left: 6px; vertical-align: middle; }
.open-status.sm:empty, .open-status.sm b:empty { display: none; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(34,164,93,0); } 100% { box-shadow: 0 0 0 0 rgba(34,164,93,0); } }

/* ---------- Pain check ---------- */
.paincheck { background: linear-gradient(180deg, var(--bg-alt), #fff); }
.pc-card { max-width: 780px; margin-inline: auto; background: #fff; border-radius: 28px; box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); position: relative; overflow: hidden; }
.pc-top { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.pc-progress { flex: 1; height: 8px; border-radius: 8px; background: var(--sky-soft); overflow: hidden; }
.pc-progress i { display: block; height: 100%; width: 25%; border-radius: 8px; background: linear-gradient(90deg, var(--sky), var(--navy-2)); transition: width .6s var(--ease); }
.pc-count { font-weight: 800; color: var(--navy); font-size: 14px; min-width: 40px; text-align: right; }
.pc-step { border: 0; margin: 0; padding: 0; min-width: 0; display: none; }
.pc-step.active { display: block; animation: stepIn .5s var(--ease); }
.pc-step.back-anim { animation: stepBack .5s var(--ease); }
.pc-step legend { font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 18px; padding: 0; }
.pc-sub { margin: -10px 0 14px; color: var(--muted); font-size: 14.5px; }
@keyframes stepIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes stepBack { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: none; } }

.choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.choice-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice { position: relative; cursor: pointer; display: block; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 16px; font-weight: 700; font-size: 15px; transition: border-color .25s, background .25s, transform .25s var(--ease); }
.choice-grid .choice > span { flex-direction: column; justify-content: center; text-align: center; gap: 6px; min-height: 104px; }
.choice > span b { font-size: 28px; line-height: 1; transition: transform .4s var(--ease); }
.choice:hover > span { border-color: rgba(31,74,168,.4); }
.choice input:checked + span { border-color: var(--navy-2); background: var(--sky-soft); transform: translateY(-2px); }
.choice input:checked + span b { transform: scale(1.18) rotate(-6deg); }
.choice input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.choice-list .choice > span::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid var(--line); background: #fff center/12px no-repeat; transition: all .25s; }
.choice.check > span::before { border-radius: 7px; }
.choice-list .choice input:checked + span::before { border-color: var(--navy-2); background-color: var(--navy-2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }

.pain-meter { text-align: center; padding: 6px 0 4px; }
.pain-meter .face { font-size: 72px; line-height: 1; transition: transform .3s var(--ease); display: inline-block; }
.pain-meter .face.bump { animation: bump .35s var(--ease); }
.pm-val { font-weight: 700; color: var(--muted); margin: 10px 0 18px; }
.pm-val b { font-size: 34px; color: var(--ink); }
.pain-meter input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 14px; outline: none; background: linear-gradient(90deg, #22a45d, #f2b71f 50%, #e5484d); }
.pain-meter input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 4px solid var(--navy); box-shadow: var(--shadow-sm); cursor: grab; }
.pain-meter input[type=range]::-moz-range-thumb { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 4px solid var(--navy); cursor: grab; }
.pain-meter input[type=range]:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.pm-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; font-weight: 600; margin-top: 10px; }
@keyframes bump { 50% { transform: scale(1.18); } }

.pc-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.pc-nav .btn[disabled] { opacity: .4; pointer-events: none; }
.pc-nav .btn.hide { visibility: hidden; }
.pc-note { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--muted); }

.pc-result { text-align: left; }
.res-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.res-icon { width: 64px; height: 64px; flex: none; border-radius: 20px; display: grid; place-items: center; font-size: 32px; background: var(--sky-soft); animation: pop .6s var(--ease); }
.res-head h3 { margin: 0; font-size: clamp(21px, 2.6vw, 27px); letter-spacing: -.02em; line-height: 1.2; }
.res-head p { margin: 4px 0 0; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.res-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.res-tags span { background: var(--bg-alt); border: 1px solid var(--line); padding: 6px 12px; border-radius: 99px; font-size: 13.5px; font-weight: 700; }
.res-box { border-radius: 18px; padding: 18px 20px; background: var(--bg-alt); margin-bottom: 14px; }
.res-box h4 { margin: 0 0 6px; font-size: 16px; }
.res-box p { margin: 0; color: var(--muted); font-size: 15px; }
.res-box.urgent { background: #fff1ee; border: 1.5px solid #ffc9bd; }
.res-box.urgent h4 { color: #c2361b; }
.res-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.res-restart { font-weight: 700; color: var(--navy-2); font-size: 14.5px; padding: 12px 6px; }

/* ---------- Exercises ---------- */
.tips { overflow: hidden; }
.tips-track {
  display: flex; gap: 18px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 8px max(16px, calc((100% - 1180px) / 2)) 26px; scroll-padding-inline: max(16px, calc((100% - 1180px) / 2));
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.tips-track::-webkit-scrollbar { display: none; }
.tip { flex: 0 0 min(330px, 84%); scroll-snap-align: start; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; transition: box-shadow .4s, transform .4s var(--ease); }
.tip:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.tip-art { width: 100%; height: 150px; background: linear-gradient(180deg, var(--sky-soft), #fff); border-radius: 18px; margin-bottom: 18px; }
.tip-art .limb { fill: none; stroke: var(--navy); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.tip-art .head { fill: var(--navy); }
.tip-art .ground { stroke: #c9d6e8; stroke-width: 2; stroke-dasharray: 4 5; }
.tip-art .chair { fill: none; stroke: #9fb3d1; stroke-width: 4; stroke-linecap: round; }
.tip-art .arrow { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.tip-art g { transform-box: view-box; }
.a-chin { animation: chin 2.4s ease-in-out infinite; }
.a-shrug { animation: shrug 2.4s ease-in-out infinite; }
.a-spin { animation: spin 2.4s linear infinite; }
.a-catcow { animation: catcow 3.2s ease-in-out infinite; }
.a-knee { animation: kneeLift 3s ease-in-out infinite; }
.a-ankle { animation: ankle 1.6s ease-in-out infinite; }
@keyframes chin { 0%, 15%, 100% { transform: translateX(0); } 45%, 70% { transform: translateX(-5px); } }
.a-hint { animation: chin 2.4s ease-in-out infinite; }
@keyframes shrug { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(0, -6px); } 50% { transform: translate(2px, -2px); } 75% { transform: translate(0, 2px); } }
@keyframes catcow { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
@keyframes kneeLift { 0%, 20%, 100% { transform: rotate(0); } 45%, 70% { transform: rotate(-75deg); } }
@keyframes ankle { 0%, 100% { transform: rotate(-25deg); } 50% { transform: rotate(35deg); } }
.tip h3 { margin: 0; font-size: 20px; }
.tip .hi { color: var(--navy-2); font-weight: 600; }
.tip ol { margin: 12px 0 16px; padding-left: 20px; color: var(--muted); font-size: 15px; display: grid; gap: 4px; }
.tip-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); padding-top: 14px; font-weight: 700; font-size: 14px; color: var(--navy); }
.timer { position: relative; width: 64px; height: 64px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--sky-soft); transition: transform .3s var(--ease), background .3s; }
.timer:active { transform: scale(.94); }
.timer svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.timer circle { fill: none; stroke: rgba(31,74,168,.12); stroke-width: 3.5; }
.timer circle.ring { stroke: var(--navy-2); stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 119.4; }
.timer span { position: relative; font-weight: 800; font-size: 13px; color: var(--navy); }
.timer.running { background: #fff; }
.timer.done { background: var(--green); }
.timer.done span { color: #fff; }
.tips-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dots { display: flex; gap: 8px; }
.dots button { width: 9px; height: 9px; border-radius: 9px; background: #c9d6e8; transition: width .35s var(--ease), background .35s; padding: 0; }
.dots button.on { width: 26px; background: var(--navy-2); }
.arrows { display: flex; gap: 10px; }
.arrow-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 18px; font-weight: 700; color: var(--navy); transition: background .3s, color .3s, transform .3s var(--ease); }
.arrow-btn:hover { background: var(--navy); color: #fff; transform: scale(1.05); }
.tips-note { font-size: 13px; color: var(--muted); margin-top: 18px; margin-bottom: 0; }

/* ---------- Booking ---------- */
.book { background: linear-gradient(180deg, #fff, var(--bg-alt)); }
.book-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.book-form { margin-top: 26px; display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field > span { font-weight: 700; font-size: 14.5px; }
.field small { color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); width: 100%; background: #fff;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.field select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316337a' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center/18px no-repeat; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy-2); box-shadow: 0 0 0 4px rgba(63,163,224,.18); }
.field.invalid input { border-color: #e5484d; box-shadow: 0 0 0 4px rgba(229,72,77,.12); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.day-chips { display: flex; gap: 8px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; padding: 2px 2px 4px; margin: 0 -2px; scroll-snap-type: x proximity; }
.day-chips::-webkit-scrollbar { display: none; }
.day-chips label { flex: none; cursor: pointer; scroll-snap-align: start; }
.day-chips input { position: absolute; opacity: 0; pointer-events: none; }
.day-chips span { display: grid; justify-items: center; min-width: 64px; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; transition: all .25s var(--ease); }
.day-chips span small { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.day-chips span b { font-size: 19px; line-height: 1.2; }
.day-chips input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-2px); }
.day-chips input:checked + span small { color: rgba(255,255,255,.75); }
.day-chips input:focus-visible + span, .seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 5px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 10px 4px; border-radius: 11px; font-weight: 700; font-size: 14px; transition: background .25s, color .25s; }
.seg input:checked + span { background: var(--sky-soft); color: var(--navy); }
.btn-block { width: 100%; }
.form-error { margin: 0; color: #c2361b; font-weight: 700; font-size: 14px; min-height: 0; }
.form-error:empty { display: none; }
.form-hint { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }

.phone { width: min(330px, 100%); margin-inline: auto; background: #0e1b3d; border-radius: 44px; padding: 12px; box-shadow: 0 40px 80px -30px rgba(14,27,61,.6); }
.phone-screen { border-radius: 34px; overflow: hidden; background: #efe7dc; min-height: 480px; display: flex; flex-direction: column; }
.wa-head { display: flex; align-items: center; gap: 10px; background: #075e54; color: #fff; padding: 22px 16px 12px; }
.wa-head img { width: 36px; height: 34px; background: #fff; border-radius: 50%; padding: 3px; object-fit: contain; }
.wa-head b { display: block; font-size: 15px; }
.wa-head small { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: .85; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #5ff59a; animation: live 1.8s infinite; }
.wa-body { flex: 1; padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; background-image: radial-gradient(rgba(0,0,0,.04) 1px, transparent 1px); background-size: 14px 14px; }
.bubble { max-width: 86%; padding: 9px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.08); white-space: pre-line; word-break: break-word; }
.bubble.in { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.bubble.out { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 2px; transition: opacity .3s; }
.bubble.out.pulse { animation: bump .3s var(--ease); }
.typing { align-self: flex-start; background: #fff; border-radius: 12px; padding: 10px 12px; display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa6c0; animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------- Share ---------- */
.share-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: rgba(255,255,255,.85); font-weight: 700; font-size: 14.5px; padding: 8px 12px; border-radius: 10px; transition: background .3s; }
.share-btn svg { width: 18px; height: 18px; }
.share-btn:hover { background: rgba(255,255,255,.1); }

/* ---------- Floating widgets (desktop) ---------- */
.float-stack { position: fixed; right: 22px; bottom: 22px; z-index: 45; display: grid; justify-items: end; gap: 12px; }
.to-top { position: relative; width: 48px; height: 48px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; opacity: 0; transform: translateY(12px) scale(.8); pointer-events: none; transition: opacity .35s, transform .45s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.to-top circle { fill: none; stroke: var(--line); stroke-width: 3; }
.to-top circle.ring { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; }
.to-top span { position: relative; font-weight: 800; color: var(--navy); font-size: 18px; }
.wa-float { position: relative; }
.wa-bubble { width: 60px; height: 60px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(34,164,93,.8); transition: transform .3s var(--ease); position: relative; }
.wa-bubble::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); animation: ripple 2.4s ease-out infinite; }
.wa-bubble:hover { transform: scale(1.08); }
.wa-bubble svg { width: 30px; height: 30px; }
.wa-greet { position: absolute; right: 0; bottom: 74px; width: 250px; background: #fff; border-radius: 18px 18px 4px 18px; padding: 14px 16px; box-shadow: var(--shadow); font-size: 14px; color: var(--muted); opacity: 0; transform: translateY(10px) scale(.95); transform-origin: bottom right; pointer-events: none; transition: opacity .4s, transform .5s var(--ease); }
.wa-greet.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-greet b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.wa-x { position: absolute; top: 6px; right: 8px; width: 28px; height: 28px; border-radius: 50%; font-size: 18px; color: var(--muted); }
.wa-x:hover { background: var(--bg-alt); }
@keyframes ripple { from { transform: scale(1); opacity: .7; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Responsive (v2) ---------- */
@media (max-width: 1024px) {
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .float-stack { display: none; }
  .book-grid { grid-template-columns: 1fr; gap: 40px; }
  .phone { width: min(300px, 100%); }
  .phone-screen { min-height: 400px; }
  .hero-quiz { font-size: 14px; }
  .tips-ctrl .arrows { display: none; }
  .tips-ctrl { justify-content: center; }
}
@media (max-width: 560px) {
  .choice-list { grid-template-columns: 1fr; }
  .choice-grid .choice > span { min-height: 92px; font-size: 14px; }
  .pc-card { border-radius: 22px; padding: 22px 16px; }
  .pc-nav .btn { flex: 1; }
  .pain-meter .face { font-size: 60px; }
  .res-actions .btn { flex: 1 1 100%; }
  .res-icon { width: 50px; height: 50px; font-size: 26px; border-radius: 16px; }
  .res-head { align-items: flex-start; gap: 12px; }
  .hero-trust { gap: 10px 14px; }

  /* services become a swipe carousel. overflow-y: hidden is the important bit — without it the
     row is also a vertical scroller (cards waiting to reveal sit 40px low), so an up/down swipe
     that starts on a card scrolls the row instead of the page and feels stuck. */
  .services-grid { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; gap: 14px; margin-inline: -16px; padding: 6px 16px 18px; scroll-padding-inline: 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .services-grid::-webkit-scrollbar { display: none; }
  .svc { flex: 0 0 84%; scroll-snap-align: start; }
  /* the row reveals as one block; per-card reveal would leave off-screen cards blank until swiped in */
  .services-grid .svc.reveal { opacity: 1; transform: none; }
  .svc:hover { transform: none; }
  .svc-dots { justify-content: center; margin-top: 6px; }
}
@media (min-width: 561px) { .svc-dots { display: none; } .services-grid.reveal { opacity: 1; transform: none; } }

/* hero intro waits for the preloader */
.is-loading .hero h1 .line > span, .is-loading .fade-up, .is-loading .hero-visual .portrait, .is-loading .chip { animation-play-state: paused; }
.quiz-link { display: block; margin-top: 14px; font-weight: 700; font-size: 14.5px; color: var(--navy-2); }
.quiz-link:hover { color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }

/* ---------- Links to service & location pages ---------- */
.svc .svc-more { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 14px 0 0; }
.svc-more a { font-weight: 700; font-size: 14.5px; color: var(--navy-2); }
.svc-more a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 4px; }
.svc.featured .svc-more a { color: var(--gold); }
.svc-all { text-align: center; margin: 28px 0 0; }
.visit-more { margin: 14px 0 0; font-size: 14.5px; }
.visit-more a { color: var(--navy-2); font-weight: 700; }
.visit-more a:hover { text-decoration: underline; }

.footer-grid-4 { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
@media (max-width: 1024px) {
  .footer-grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid-4 > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .footer-grid-4 { grid-template-columns: 1fr; } }
