/* Cliniky demo: calm premium clinic.
   Motion rule: animate transform and opacity only. No blur, no backdrop-filter. */

:root {
  --cream: #F6F1E8;
  --sand: #EEDFC8;
  --ink: #1F2A24;
  --muted: #5E6862;
  --line: #D8CDBB;
  --green: #1E3B32;
  --green-2: #29493F;
  --clay: #B0603A;
  --clay-soft: #E9C9B3;
  --white: #FFFCF7;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --pad: clamp(20px, 5vw, 72px);
  --r: 28px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
em { font-style: italic; color: var(--clay); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 99; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 99px; }

/* Warm background layer: fades from cream to sand as you scroll */
.warm {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--sand); opacity: 0; will-change: opacity;
}
html { background: var(--cream); }
body { position: relative; z-index: 0; background: transparent; }

/* ---------- Type ---------- */
.eyebrow {
  font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.h1, .h2 { font-family: var(--serif); font-weight: 350; letter-spacing: -.02em; font-variation-settings: "opsz" 120; }
.h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: 1.02; margin: 22px 0 24px; }
.h1 .ln { display: block; overflow: hidden; padding-bottom: .08em; }
.h1 .ln > span { display: inline-block; }
.h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.08; margin-top: 16px; }
.lead { font-size: clamp(17px, 1.35vw, 19px); color: var(--muted); max-width: 34em; }
h3 { font: 500 22px/1.25 var(--serif); letter-spacing: -.01em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 26px; border-radius: 99px;
  font: 600 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .4s var(--ease), background-color .3s, color .3s;
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--green); color: var(--white); }
.btn-solid:hover { background: var(--ink); }
.btn-line { box-shadow: inset 0 0 0 1px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }

/* ---------- Header: shrinks to logo + button on scroll ---------- */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding: 18px var(--pad); pointer-events: none; }
.hdr-in {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  pointer-events: auto; padding: 8px 8px 8px 20px;
  transition: transform .7s var(--ease);
}
.hdr-in::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: var(--cw, 100%); border-radius: 99px; z-index: -1;
  background: var(--white); box-shadow: 0 6px 30px rgba(31, 42, 36, .08);
  opacity: 0; transform: translateX(-50%) scaleY(.85); transition: opacity .6s var(--ease), transform .7s var(--ease);
}
.hdr-in > .logo, .hdr-btn { transition: transform .8s var(--ease), background-color .3s; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 24px/1 var(--serif); letter-spacing: -.02em; }
.logo svg { width: 28px; height: 28px; fill: none; stroke: var(--green); stroke-width: 1.6; }
.logo .dot { fill: var(--clay); stroke: none; }
.nav { position: absolute; left: 50%; translate: -50% 0; display: flex; gap: 34px; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .3s; }
.nav a:hover { color: var(--ink); }
.hdr-btn { height: 44px; padding: 0 22px; font-size: 14px; }
.hdr.is-small .hdr-in { transform: translateY(-6px); }
.hdr.is-small .hdr-in::before { opacity: 1; transform: translateX(-50%); }
.hdr.is-small .hdr-in > .logo { transform: translateX(var(--sh, 0px)); }
.hdr.is-small .hdr-btn { transform: translateX(calc(var(--sh, 0px) * -1)); }
.hdr.is-small .hdr-btn:hover { transform: translateX(calc(var(--sh, 0px) * -1)) translateY(-2px); }
.hdr.is-small .nav { opacity: 0; transform: translateY(-8px); pointer-events: none; }

/* ---------- Load entrance (opacity + transform) ---------- */
.in { opacity: 0; transform: translateY(24px); }
.h1 .in { transform: translateY(105%); opacity: 1; }
.is-ready .in { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: calc(var(--d) * .12s + .1s); }

/* ---------- 1. Hero ---------- */
.hero {
  min-height: 100svh; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: clamp(32px, 5vw, 80px); padding: 120px var(--pad) 64px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.hero-media { position: relative; margin: 0; height: min(78svh, 760px); }
.hero-photo { position: absolute; inset: 0; overflow: hidden; border-radius: 240px 240px var(--r) var(--r); background: var(--sand); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; transform: scale(1.08); animation: drift 22s var(--ease) infinite alternate; }
@keyframes drift { to { transform: scale(1.0) translateY(-1.5%); } }
.hero-arc { position: absolute; inset: -6% -10% auto -14%; width: 124%; pointer-events: none; overflow: visible; }
.hero-arc path { fill: none; stroke: var(--clay); stroke-width: 1.3; stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-ready .hero-arc path { stroke-dashoffset: 0; transition: stroke-dashoffset 2.6s var(--ease) .7s; }
.hero-chip {
  position: absolute; left: -28px; bottom: 44px; display: flex; align-items: center; gap: 10px;
  background: var(--white); border-radius: 99px; padding: 12px 20px 12px 16px;
  font-size: 14px; font-weight: 600; box-shadow: 0 10px 40px rgba(31, 42, 36, .12);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-8px); } }
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { from { transform: scale(1); opacity: .5; } to { transform: scale(2.8); opacity: 0; } }
.hero.is-off * { animation-play-state: paused !important; }

/* ---------- Section shells ---------- */
section { position: relative; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.checks, .visit, .faq { padding: clamp(80px, 11vw, 150px) var(--pad); }

/* Reveal on scroll */
.rise { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * .1s); }
.rise.is-in { opacity: 1; transform: none; }
.words .w { display: inline-block; opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--wi) * .06s); }
.words.is-in .w { opacity: 1; transform: none; }

/* ---------- 2. What we check ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card-ph { position: relative; aspect-ratio: 3 / 4.4; border-radius: var(--r); overflow: hidden; background: var(--sand); margin-bottom: 22px; }
.card-ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease); }
.card:hover .card-ph img { transform: scale(1.07); }
.tag {
  position: absolute; top: 16px; left: 16px; padding: 7px 13px; border-radius: 99px;
  background: var(--white); font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* ---------- 3. Scan rings ---------- */
.scan { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center; padding: clamp(60px, 8vw, 120px) var(--pad); }
.scan-art { position: relative; aspect-ratio: 500 / 640; max-width: 520px; width: 100%; justify-self: center; }
.scan-photo { position: absolute; inset: 9% 21%; border-radius: 200px; overflow: hidden; background: var(--sand); }
.scan-photo img { width: 100%; height: 100%; object-fit: cover; }
.rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.rings path { fill: none; stroke: var(--clay); stroke-width: 1.4; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.ring-back path { opacity: .5; }
.scan-copy .lead { margin-top: 22px; }
.ticks { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.ticks li {
  display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
  opacity: .3; transition: opacity .6s var(--ease);
}
.ticks li::before {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--clay);
  background: radial-gradient(circle, var(--clay) 0 4px, transparent 4.5px);
  transform: scale(.7); transition: transform .6s var(--ease);
}
.ticks li.is-on { opacity: 1; }
.ticks li.is-on::before { transform: none; }

/* ---------- 4. Visit steps + rotating word ---------- */
.rotor { display: inline-grid; vertical-align: top; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.rotor > span { grid-area: 1 / 1; opacity: 0; transform: translateY(60%); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.rotor > span.is-on { opacity: 1; transform: none; }
.rotor > span.is-out { opacity: 0; transform: translateY(-60%); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--white); border-radius: var(--r); padding: 34px 30px 38px; box-shadow: 0 1px 0 var(--line); }
.num { display: inline-flex; width: 48px; height: 48px; border-radius: 50%; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px var(--line); font: 500 16px/1 var(--serif); color: var(--clay); margin-bottom: 40px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ---------- 5. Why (deep green) ---------- */
.why { padding: 0 clamp(8px, 1.4vw, 20px); }
.why-in { background: var(--green); color: var(--cream); border-radius: calc(var(--r) + 12px); padding: clamp(70px, 9vw, 130px) var(--pad); }
.why .eyebrow { color: #A9BDB2; }
.why em { color: var(--clay-soft); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(246, 241, 232, .16); }
.why-item { padding: 34px 28px 10px 0; }
.why-item + .why-item { padding-left: 28px; border-left: 1px solid rgba(246, 241, 232, .16); }
.why-item svg { width: 40px; height: 40px; fill: none; stroke: var(--clay-soft); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 30px; }
.why-item h3 { margin-bottom: 10px; }
.why-item p { color: #BFCDC5; font-size: 15.5px; }

/* Placeholders: always visibly marked */
.ph { display: inline-block; margin-top: 8px; padding: 3px 9px; border-radius: 6px; border: 1px dashed currentColor; font-size: 12.5px; font-weight: 600; color: var(--clay); }
.why .ph { color: var(--clay-soft); }
.ph-note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.ph-note::before { content: "Demo note · "; font-weight: 700; color: var(--clay); }
.why .ph-note { color: #A9BDB2; }
.why .ph-note::before { color: var(--clay-soft); }

/* ---------- 6. FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(30px, 6vw, 100px); align-items: start; }
.faq .sec-head { position: sticky; top: 120px; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; font: 400 clamp(19px, 1.7vw, 23px)/1.3 var(--serif);
}
summary::-webkit-details-marker { display: none; }
.pm { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease), background-color .3s; }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); transition: transform .5s var(--ease); }
.pm::after { transform: rotate(90deg); }
details[open] .pm { background: var(--white); transform: rotate(180deg); }
details[open] .pm::after { transform: rotate(0deg); }
.ans { padding: 0 60px 28px 0; color: var(--muted); }
details[open] .ans { animation: ans .6s var(--ease); }
@keyframes ans { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- 7. Booking band ---------- */
.book { padding: 0 clamp(8px, 1.4vw, 20px) clamp(8px, 1.4vw, 20px); }
.book-card { position: relative; overflow: hidden; border-radius: calc(var(--r) + 12px); background: var(--white); min-height: 560px; display: flex; align-items: center; padding: clamp(60px, 8vw, 110px) var(--pad); }
.book-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; opacity: .3; }
.book-copy { position: relative; max-width: 620px; }
.book-copy .lead { color: var(--ink); margin: 20px 0 34px; }

/* ---------- Footer ---------- */
.ftr { background: var(--green); color: var(--cream); padding: clamp(60px, 7vw, 100px) var(--pad) 28px; overflow: hidden; }
.ftr .logo svg { stroke: var(--cream); }
.ftr-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.ftr-cols { display: flex; gap: clamp(30px, 6vw, 90px); flex-wrap: wrap; }
.ftr h4 { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #A9BDB2; margin-bottom: 10px; }
.ftr .ph { color: var(--clay-soft); margin-top: 0; }
.ftr-word { font: 300 clamp(90px, 21vw, 330px)/.8 var(--serif); letter-spacing: -.05em; color: var(--green-2); margin: 60px 0 30px -.04em; white-space: nowrap; }
.ftr-small { font-size: 13px; color: #A9BDB2; }

/* ---------- Floating Book pill ---------- */
.float-book {
  display: none; background: var(--clay);
  position: fixed; left: 50%; bottom: 22px; z-index: 40; box-shadow: 0 12px 34px rgba(31, 42, 36, .22);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .7s var(--ease), opacity .5s var(--ease), background-color .3s;
}
.float-book.is-on { transform: translate(-50%, 0); opacity: 1; }
.float-book.is-on:hover { transform: translate(-50%, -2px); background: var(--ink); }

/* ---------- Tablet ---------- */
@media (max-width: 1080px) {
  .cards, .why-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .why-grid { gap: 0; }
  .why-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .why-item:nth-child(n+3) { border-top: 1px solid rgba(246, 241, 232, .16); }
  .nav { gap: 22px; }
}

/* ---------- Phone ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hdr { padding: 12px 14px; }
  .nav { display: none; }
  .hdr-in { padding: 6px 6px 6px 14px; }
  .hdr-btn { height: 40px; padding: 0 18px; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 100px 20px 40px; gap: 36px; }
  .hero-media { height: 66svh; max-height: 520px; }
  .hero-chip { left: 14px; bottom: 18px; }
  .hero-cta .btn { flex: 1; }
  .cards { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .card-ph { border-radius: 20px; margin-bottom: 14px; }
  .card h3 { font-size: 18px; }
  .card p { font-size: 14px; }
  .scan { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-item, .why-item + .why-item { padding: 28px 0 14px; border-left: 0; }
  .why-item + .why-item { border-top: 1px solid rgba(246, 241, 232, .16); }
  .faq { grid-template-columns: 1fr; }
  .faq .sec-head { position: static; margin-bottom: 24px; }
  .ans { padding-right: 0; }
  .book-card { min-height: 460px; border-radius: 28px; }
  .float-book { display: inline-flex; bottom: 16px; }
  .hdr.is-small .hdr-btn { opacity: 0; pointer-events: none; transform: none; transition: opacity .4s; }
}

/* ---------- Reduced motion: everything visible, nothing moves ---------- */
.rm *, .rm *::before, .rm *::after { animation: none !important; transition: none !important; }
.rm .in, .rm .rise, .rm .words .w { opacity: 1 !important; transform: none !important; }
.rm .hero-arc path, .rm .rings path { stroke-dashoffset: 0 !important; }
.rm .ticks li { opacity: 1; }
.rm .hero-photo img { transform: none; }
