/* Diana Center / Dr. Magda Iskander: homepage
   World: the intake body chart, on the clinic's own blush plaster with brass inlay lines.
   Radius rule: sheets and media 16px, controls 12px, small chips pill. */

:root {
  --plaster: #F5EDE9;
  --plaster-2: #EEE2DD;
  --sheet: #FFFBF9;
  --ink: #0F2E2B;
  --ink-2: #3D5854;
  --ink-3: #536C68;
  --teal: #0E847C;
  --teal-deep: #0A6B64;
  --teal-ink: #08504B;
  --teal-mist: #CFE4DF;
  --teal-wash: #E3F0EC;
  --brass: #B8935C;
  --pain: #DD563D;
  --line: rgba(15, 46, 43, 0.13);
  --line-2: rgba(15, 46, 43, 0.24);
  --shadow: 0 1px 2px rgba(60, 34, 26, 0.06), 0 12px 32px -12px rgba(60, 34, 26, 0.18);
  --shadow-lift: 0 2px 4px rgba(60, 34, 26, 0.08), 0 24px 48px -18px rgba(60, 34, 26, 0.28);

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  --gutter: clamp(16px, 4vw, 48px);
  --wrap: min(1240px, 100% - 2 * var(--gutter));
  --nav-h: 72px;
  --r-sheet: 16px;
  --r-ctl: 12px;

  --fs-q: clamp(3.25rem, 1.2rem + 5.4vw, 6rem);
  --fs-h2: clamp(2rem, 1.35rem + 2.3vw, 3.25rem);
  --fs-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  --fs-body: 1.1875rem;
  --lh-body: 1.9;
  --lh-head: 1.35;

  color-scheme: light;
}

html[lang="en"] {
  --lh-body: 1.6;
  --lh-head: 1.15;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #C7DAD6 var(--plaster);
  scrollbar-width: thin;
}

body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: "Beiruti", system-ui, sans-serif;
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 450;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, figure, blockquote, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }

h1, h2, h3 {
  line-height: var(--lh-head);
  letter-spacing: normal;
  text-wrap: balance;
  font-weight: 800;
}
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -0.02em; }

::selection { background: var(--teal-mist); color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

.num { font-variant-numeric: tabular-nums; unicode-bidi: isolate; }

.wrap { width: var(--wrap); margin-inline: auto; }

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 100;
  background: var(--teal-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-ctl);
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding-inline: 22px;
  border-radius: var(--r-ctl);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}
.btn .ph { font-size: 1.4em; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--teal-deep); color: #fff; }
.btn-line { border-color: var(--teal-deep); color: var(--teal-deep); background: transparent; }
.btn-square { padding-inline: 0; width: 52px; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--teal-ink); }
  .btn-line:hover { background: var(--teal-wash); }
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-ctl);
  border: 1.5px solid var(--line-2);
  background: var(--sheet);
  color: var(--ink);
  font-size: 1.35rem;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease;
}
.icon-btn:active { transform: scale(0.95); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
@media (hover: hover) and (pointer: fine) {
  .icon-btn:not(:disabled):hover { border-color: var(--teal-deep); color: var(--teal-deep); }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 24px;
  padding-inline: max(var(--gutter), calc((100% - 1240px) / 2));
  background: color-mix(in srgb, var(--plaster) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.nav[data-scrolled] { border-bottom-color: var(--line); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.brand-mark { width: 40px; height: auto; flex: none; }
.brand-text { display: grid; line-height: 1.25; min-width: 0; }
.brand-names {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1875rem;
  font-weight: 800;
  white-space: nowrap;
}
.brand-rule {
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  background: var(--brass);
  vertical-align: middle;
}
.brand-sub { font-size: 0.875rem; color: var(--ink-3); font-weight: 500; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-inline-start: auto;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--r-ctl);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--ink-2);
  transition: color 200ms ease, background-color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--teal-deep); background: var(--teal-wash); }
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-call { min-height: 46px; padding-inline: 16px; font-size: 1.0625rem; }
.lang {
  min-width: 46px;
  height: 46px;
  border-radius: var(--r-ctl);
  border: 1.5px solid var(--line-2);
  background: transparent;
  font-weight: 800;
  font-size: 1rem;
  transition: border-color 200ms ease, color 200ms ease;
}
@media (hover: hover) and (pointer: fine) { .lang:hover { border-color: var(--teal-deep); color: var(--teal-deep); } }
.menu-btn { display: none; }

/* ---------- Body chart ---------- */
.chart {
  --fig-h: clamp(430px, calc(100svh - var(--nav-h) - 200px), 760px);
  --fig-w: calc(var(--fig-h) * 0.4375);
  padding-block: clamp(8px, 2vh, 24px) clamp(20px, 3vh, 36px);
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 2.4vh, 28px);
}

.stage {
  position: relative;
  width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr var(--fig-w) 1fr;
  column-gap: clamp(20px, 3vw, 56px);
}

.chart-q {
  grid-column: 1 / -1;
  grid-row: 1;
  display: grid;
  grid-template-columns: subgrid;
  align-self: start;
  padding-top: max(0px, calc(var(--fig-h) * 0.108 - 0.66em));
  font-size: var(--fs-q);
  line-height: 1.25;
  font-weight: 800;
  color: var(--ink);
  pointer-events: none;
  z-index: 2;
}
.q-a { grid-column: 1; justify-self: end; }
.q-b { grid-column: 3; justify-self: start; color: var(--teal-deep); }

.figure-cell {
  grid-column: 2;
  grid-row: 1;
  height: var(--fig-h);
  position: relative;
  z-index: 1;
}
.figure { width: 100%; height: 100%; overflow: visible; }
html[dir="ltr"] .figure { transform: scaleX(-1); }

.fig-body path, .fig-body circle { fill: var(--teal-mist); transition: fill 400ms ease; }
.fig-body .fig-limb { fill: none; stroke: var(--teal-mist); stroke-width: 30; stroke-linecap: round; stroke-linejoin: round; transition: stroke 400ms ease; }
.chart[data-pick="weight"] .fig-body path,
.chart[data-pick="weight"] .fig-body circle { fill: #BCD9D2; }
.chart[data-pick="weight"] .fig-body .fig-limb { fill: none; stroke: #BCD9D2; }

.vert {
  fill: var(--teal-deep);
  transform-box: fill-box;
  transform-origin: center;
  transition: fill 300ms ease, filter 300ms ease;
}
.chart[data-pick="neck"] .vert[data-zone="neck"],
.chart[data-pick="back"] .vert[data-zone="back"] {
  fill: var(--pain);
  filter: drop-shadow(0 0 6px rgba(221, 86, 61, 0.65));
}

.measure path {
  fill: none;
  stroke: var(--teal);
  stroke-width: 2;
  stroke-dasharray: 2 7;
  stroke-linecap: round;
  transition: stroke 300ms ease, stroke-width 300ms ease;
}
.chart[data-pick="weight"] .measure path { stroke: var(--teal-deep); stroke-width: 3; stroke-dasharray: none; }

.spot { cursor: pointer; }
.spot circle { transform-box: fill-box; transform-origin: center; }
.spot-halo { fill: var(--teal); opacity: 0; }
.spot-ring { fill: var(--sheet); stroke: var(--teal-deep); stroke-width: 2.5; transition: stroke 250ms ease, fill 250ms ease; }
.spot-core { fill: var(--teal-deep); transition: fill 250ms ease, transform 250ms var(--ease-out); }
.spot[data-on] .spot-ring { stroke: var(--pain); fill: #FFF1EC; }
.spot[data-on] .spot-core { fill: var(--pain); transform: scale(1.5); }
.spot[data-on] .spot-halo { fill: var(--pain); opacity: 0.18; }
.spot[data-spot="weight"][data-on] .spot-ring,
.spot[data-spot="waist"][data-on] .spot-ring { stroke: var(--teal-deep); fill: var(--teal-wash); }
.spot[data-spot="weight"][data-on] .spot-core,
.spot[data-spot="waist"][data-on] .spot-core { fill: var(--teal-deep); }
.spot[data-spot="weight"][data-on] .spot-halo,
.spot[data-spot="waist"][data-on] .spot-halo { fill: var(--teal); }
@media (hover: hover) and (pointer: fine) {
  .spot:hover .spot-ring, .spot[data-hover] .spot-ring { stroke-width: 3.5; }
}

.leaders {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 1;
}
.leader {
  fill: none;
  stroke: var(--line-2);
  stroke-width: 1.25;
  transition: stroke 250ms ease, opacity 250ms ease;
}
.leader-end { fill: var(--line-2); transition: fill 250ms ease; }
.leader[data-hover] { stroke: var(--teal); }
.leader[data-on] { stroke: var(--teal-deep); stroke-width: 2; }
.leader-end[data-on] { fill: var(--teal-deep); }
.stage[data-has-pick] .leader:not([data-on]) { opacity: 0.45; }

.side {
  grid-row: 1;
  position: relative;
  height: var(--fig-h);
  z-index: 3;
}
.side-start { grid-column: 1; }
.side-end { grid-column: 3; }

.callout {
  position: absolute;
  top: var(--y);
  transform: translateY(-50%);
  display: grid;
  gap: 2px;
  max-width: min(100%, 300px);
  padding: 10px 16px;
  border: 1.5px solid transparent;
  border-radius: var(--r-ctl);
  background: transparent;
  line-height: 1.45;
  transition: background-color 220ms ease, color 220ms ease, border-color 220ms ease, opacity 220ms ease, transform 160ms var(--ease-out);
}
.side-start .callout { inset-inline-end: clamp(0px, 2.5vw, 40px); text-align: end; justify-items: end; }
.side-end .callout { inset-inline-start: clamp(0px, 2.5vw, 40px); text-align: start; justify-items: start; }
.callout:active { transform: translateY(-50%) scale(0.97); }
.callout-name { font-size: clamp(1.25rem, 1rem + 0.7vw, 1.625rem); font-weight: 800; }
.callout-sub { font-size: 1rem; color: var(--ink-2); font-weight: 500; }
@media (hover: hover) and (pointer: fine) {
  .callout:hover { background: var(--sheet); border-color: var(--line); }
}
.callout[aria-pressed="true"] { background: var(--teal-deep); color: #fff; border-color: var(--teal-deep); }
.callout[aria-pressed="true"] .callout-sub { color: #D6ECE7; }
.stage[data-has-pick] .callout[aria-pressed="false"] { opacity: 0.62; }
.stage[data-has-pick] .callout[aria-pressed="false"]:hover { opacity: 1; }

/* Load moment: the spine lights from the sacrum up, then the spots appear */
.chart[data-awake] .vert { animation: vert-wake 520ms var(--ease-out) both; animation-delay: calc(var(--i) * 55ms); }
.spot-in { transform-box: fill-box; transform-origin: center; }
.chart[data-awake] .spot-in { animation: spot-in 480ms var(--ease-out) both; animation-delay: calc(600ms + var(--k, 0) * 70ms); }
@keyframes vert-wake {
  from { opacity: 0.2; transform: scale(0.55); }
  60% { transform: scale(1.18); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes spot-in {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: none; }
}
.chart:not([data-picked-once]) .spot-halo { animation: halo 2.6s var(--ease-out) infinite; animation-delay: calc(1.4s + var(--k, 0) * 0.35s); }
@keyframes halo {
  0% { opacity: 0.28; transform: scale(0.5); }
  70%, 100% { opacity: 0; transform: scale(1.25); }
}

/* ---------- Ticket ---------- */
.ticket {
  width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
  padding: 14px 16px 14px 14px;
  padding-inline-start: clamp(18px, 2vw, 28px);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--r-sheet);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 4;
}
.ticket-state { min-width: 0; }
.ticket-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ticket-key { color: var(--ink-3); font-weight: 600; font-size: 1.0625rem; }
.ticket-title { font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); font-weight: 800; line-height: 1.3; }
.ticket-sub { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.6; }
.ticket-state[data-swapping] > * { animation: swap 360ms var(--ease-out); }
@keyframes swap {
  from { opacity: 0.2; filter: blur(3px); transform: translateY(4px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

.ticket-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px;
  padding-inline-end: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--plaster);
  text-align: start;
  transition: border-color 200ms ease, transform 160ms var(--ease-out);
  max-width: 300px;
}
.ticket-proof:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .ticket-proof:hover { border-color: var(--teal-deep); } }
.ticket-thumb { width: 44px; height: 66px; border-radius: 8px; overflow: hidden; flex: none; background: var(--teal-mist); }
.ticket-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ticket-proof-text { display: grid; line-height: 1.35; font-size: 0.98rem; color: var(--ink-2); }
.ticket-proof-cta { display: inline-flex; align-items: center; gap: 6px; color: var(--teal-deep); font-weight: 700; }
.ticket-proof-cta .ph { font-size: 1.25em; }

.ticket-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-inline-start: clamp(16px, 2vw, 28px);
  border-inline-start: 1.5px dashed var(--line-2);
  min-height: 64px;
}
.ticket-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  color: var(--teal-deep);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}
.ticket-more .ph { font-size: 1.1em; }

/* ---------- Case sheet ---------- */
.case { padding-block: clamp(64px, 9vw, 120px); background: var(--plaster-2); }

.case-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.case-tabs::-webkit-scrollbar { display: none; }
.case-tabs [role="tab"] {
  flex: none;
  min-height: 48px;
  padding-inline: 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line-2);
  background: var(--sheet);
  font-weight: 700;
  font-size: 1.0625rem;
  transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease, transform 160ms var(--ease-out);
}
.case-tabs [role="tab"]:active { transform: scale(0.97); }
.case-tabs [role="tab"][aria-selected="true"] { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .case-tabs [role="tab"][aria-selected="false"]:hover { border-color: var(--teal-deep); color: var(--teal-deep); }
}

.sheet {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(24px, 4vw, 56px);
  background: var(--sheet);
  border-radius: var(--r-sheet);
  box-shadow: var(--shadow);
}
.sheet[data-swapping] .sheet-main > *, .sheet[data-swapping] .sheet-side { animation: swap 380ms var(--ease-out); }

.sheet-main { display: grid; gap: clamp(28px, 3vw, 40px); align-content: start; }
.sheet-title { font-size: var(--fs-h2); }
.sheet-lead { margin-top: 10px; font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem); color: var(--ink-2); font-weight: 500; max-width: 40ch; line-height: 1.7; }
html[lang="en"] .sheet-lead { line-height: 1.45; }

.symptoms legend, .treat h3, .send-label {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 12px;
  line-height: 1.5;
}
.symptom-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.symptom {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-ctl);
  background: var(--plaster);
  cursor: pointer;
  line-height: 1.45;
  font-weight: 600;
  transition: border-color 200ms ease, background-color 200ms ease, transform 160ms var(--ease-out);
}
.symptom:active { transform: scale(0.98); }
.symptom input { position: absolute; opacity: 0; pointer-events: none; }
.symptom .box {
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 2px solid var(--line-2);
  background: var(--sheet);
  color: #fff;
  font-size: 0.95rem;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.symptom .box .ph { opacity: 0; transform: scale(0.6); transition: opacity 180ms ease, transform 220ms var(--ease-out); }
.symptom:has(input:checked) { border-color: var(--teal-deep); background: var(--teal-wash); }
.symptom input:checked + .box { background: var(--teal-deep); border-color: var(--teal-deep); }
.symptom input:checked + .box .ph { opacity: 1; transform: none; }
.symptom:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .symptom:hover { border-color: var(--teal-deep); } }

.treat-list { display: grid; gap: 12px; }
.treat-list li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: baseline; line-height: 1.7; }
html[lang="en"] .treat-list li { line-height: 1.5; }
.treat-list li::before {
  content: "";
  justify-self: center;
  width: var(--d, 10px);
  height: var(--d, 10px);
  border-radius: 50%;
  background: var(--teal-deep);
  transform: translateY(-2px);
}

.send { display: grid; gap: 4px; }
.bubble {
  white-space: pre-line;
  padding: 16px 18px;
  background: var(--teal-wash);
  border-radius: var(--r-sheet);
  border-start-start-radius: 4px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  max-width: 52ch;
}
html[lang="en"] .bubble { line-height: 1.55; }
.send-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.sheet-side { display: grid; gap: 16px; align-content: start; }
.case-video {
  position: relative;
  display: block;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  border: 0;
  padding: 0;
  border-radius: var(--r-sheet);
  overflow: hidden;
  background: var(--teal-mist);
  box-shadow: var(--shadow);
  transition: transform 160ms var(--ease-out);
}
.case-video:active { transform: scale(0.985); }
.case-video img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .case-video:hover img { transform: scale(1.03); } }
.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 251, 249, 0.94);
  color: var(--teal-deep);
  font-size: 2.1rem;
  box-shadow: 0 8px 24px -8px rgba(15, 46, 43, 0.45);
}
.play .ph { transform: translateX(-2px); }
html[dir="ltr"] .play .ph { transform: translateX(2px); }
.case-caption { max-width: 360px; margin-inline: auto; width: 100%; }
.case-caption b { display: block; font-size: 1.25rem; font-weight: 800; }
.case-caption p { color: var(--ink-2); line-height: 1.7; }
.case-more { max-width: 360px; margin-inline: auto; width: 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--ink-3); font-size: 1rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding-inline: 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line-2);
  background: var(--plaster);
  font-weight: 700;
  font-size: 0.98rem;
  transition: border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.chip:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--teal-deep); color: var(--teal-deep); } }
.case-figure img { width: 100%; border-radius: var(--r-sheet); box-shadow: var(--shadow); }
.case-figure figcaption { margin-top: 10px; color: var(--ink-3); font-size: 1rem; line-height: 1.6; }

/* ---------- Voices ---------- */
.voices { padding-block: clamp(64px, 9vw, 120px) clamp(48px, 7vw, 96px); overflow: hidden; }
.voices-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title nav" "lead nav";
  column-gap: 24px;
  align-items: end;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.voices-head h2 { grid-area: title; font-size: var(--fs-h2); }
.voices-head p { grid-area: lead; color: var(--ink-2); margin-top: 8px; max-width: 56ch; }
.strip-nav { grid-area: nav; display: flex; gap: 8px; }

.strip {
  --pad: max(var(--gutter), calc((100% - 1240px) / 2));
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(220px, 21vw, 272px);
  gap: clamp(14px, 1.6vw, 22px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  padding-inline: var(--pad);
  padding-bottom: 12px;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.voice { scroll-snap-align: start; display: grid; gap: 12px; align-content: start; }
.voice .case-video { max-width: none; }
.voice-meta { display: grid; gap: 2px; line-height: 1.5; }
.voice-tag { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.voice-tag b { font-size: 1.1875rem; font-weight: 800; }
.voice-tag span { color: var(--ink-3); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.voice-meta p { color: var(--ink-2); font-size: 1rem; line-height: 1.65; }

/* ---------- Weight ---------- */
.weight { padding-block: clamp(64px, 9vw, 120px); background: var(--plaster-2); }
.weight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  grid-template-areas: "copy compare" "copy message";
  gap: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 80px);
  align-items: start;
}
.weight-copy { grid-area: copy; display: grid; gap: 28px; }
.weight-copy h2 { font-size: var(--fs-h2); max-width: 14ch; }
.weight-lead { color: var(--ink-2); max-width: 46ch; font-size: clamp(1.1875rem, 1.1rem + 0.3vw, 1.3125rem); }
.methods { display: grid; gap: 22px; }
.methods li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; }
.methods .ph {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: var(--r-ctl);
  background: var(--sheet);
  color: var(--teal-deep);
  font-size: 1.6rem;
  border: 1px solid var(--line);
}
.methods h3 { font-size: var(--fs-h3); font-weight: 800; }
.methods p { color: var(--ink-2); line-height: 1.75; }
html[lang="en"] .methods p { line-height: 1.55; }

.compare { grid-area: compare; display: grid; gap: 12px; }
.compare-frame {
  --pos: 50%;
  position: relative;
  aspect-ratio: 346 / 259;
  border-radius: var(--r-sheet);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: var(--teal-mist);
  touch-action: pan-y;
  user-select: none;
}
.compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-after { clip-path: inset(0 0 0 var(--pos)); }
html[dir="rtl"] .compare-after { clip-path: inset(0 var(--pos-r, 50%) 0 0); }
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--sheet);
  box-shadow: 0 0 0 1px rgba(15, 46, 43, 0.12);
}
.compare-handle .ph {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sheet);
  color: var(--teal-deep);
  font-size: 1.3rem;
  box-shadow: var(--shadow);
}
.compare-tag {
  position: absolute;
  top: 12px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 251, 249, 0.92);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.6;
}
.tag-before { inset-inline-start: 12px; }
.tag-after { inset-inline-end: 12px; }
.compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  margin: 0;
  cursor: ew-resize;
}
.compare { position: relative; }
.compare-range { height: calc(100% - 3.5em); }
.compare figcaption { color: var(--ink-3); font-size: 1rem; line-height: 1.6; }
.compare:has(.compare-range:focus-visible) .compare-frame { outline: 3px solid var(--teal); outline-offset: 3px; }

.message { grid-area: message; display: grid; gap: 14px; max-width: 560px; }
.message-bubble {
  position: relative;
  padding: 20px 22px;
  background: var(--sheet);
  border-radius: var(--r-sheet);
  border-start-end-radius: 4px;
  box-shadow: var(--shadow);
  font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem);
  line-height: 1.8;
  font-weight: 500;
}
.message figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--ink-3); font-size: 1rem; }
.message-num { display: inline-flex; align-items: center; gap: 8px; color: var(--teal-deep); font-size: 1.75rem; font-weight: 800; line-height: 1; }
.message-num small { font-size: 1rem; font-weight: 700; color: var(--ink-2); }
.message-num .ph { font-size: 0.8em; }
.message figcaption a { color: var(--teal-deep); font-weight: 700; text-underline-offset: 4px; }

/* ---------- Clinic ---------- */
.clinic { position: relative; padding-block: clamp(72px, 10vw, 136px); overflow: hidden; }
.inlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.inlay path { fill: none; stroke: var(--brass); stroke-width: 1.5; opacity: 0.5; }
.clinic-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.clinic-copy { display: grid; gap: 14px; justify-items: start; }
.clinic-mark { width: 64px; height: auto; margin-bottom: 8px; }
.clinic-copy h2 { font-size: var(--fs-h2); }
.clinic-role { color: var(--ink-2); font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem); max-width: 40ch; }
.clinic-quote { margin-block: 18px 30px; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); font-weight: 800; color: var(--teal-deep); line-height: 1.5; max-width: 22ch; }
.said-title { font-size: 1.0625rem; font-weight: 700; color: var(--ink-3); }
.said { display: flex; flex-wrap: wrap; gap: 10px; }
.said button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding-inline: 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line-2);
  background: var(--sheet);
  font-weight: 700;
  font-size: 1.0625rem;
  transition: border-color 200ms ease, color 200ms ease, transform 160ms var(--ease-out);
}
.said button .ph { color: var(--teal-deep); font-size: 1.2em; }
.said button:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .said button:hover { border-color: var(--teal-deep); color: var(--teal-deep); } }

.path {
  position: relative;
  display: grid;
  gap: clamp(28px, 3vw, 40px);
  padding: clamp(28px, 3vw, 44px);
  padding-inline-start: clamp(64px, 6vw, 84px);
  background: var(--sheet);
  border-radius: var(--r-sheet);
  box-shadow: var(--shadow);
}
.path::before {
  content: "";
  position: absolute;
  inset-inline-start: calc(clamp(28px, 3vw, 44px) + 12px);
  top: 56px;
  bottom: 56px;
  border-inline-start: 2px dotted var(--teal);
  opacity: 0.6;
}
.path li { position: relative; }
.path li::before {
  content: "";
  position: absolute;
  inset-inline-start: calc(-1 * clamp(64px, 6vw, 84px) + clamp(28px, 3vw, 44px) + 13px);
  top: 0.75em;
  width: calc(var(--r) * 2);
  height: calc(var(--r) * 2);
  border-radius: 50%;
  background: var(--teal-deep);
  transform: translate(50%, -50%);
  box-shadow: 0 0 0 6px var(--sheet);
}
html[dir="ltr"] .path li::before { transform: translate(-50%, -50%); }
.path h3 { font-size: var(--fs-h3); font-weight: 800; }
.path p { color: var(--ink-2); line-height: 1.75; margin-top: 2px; }
html[lang="en"] .path p { line-height: 1.55; }

/* ---------- Visit ---------- */
.visit { padding-block: clamp(64px, 9vw, 120px); background: var(--plaster-2); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.visit-card { display: grid; gap: 20px; align-content: start; }
.visit-card h2 { font-size: var(--fs-h2); max-width: 14ch; }
.visit-card address { font-style: normal; display: grid; gap: 12px; }
.visit-row { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; line-height: 1.7; }
.visit-row .ph { color: var(--teal-deep); font-size: 1.4rem; margin-top: 4px; }
.visit-row a { font-weight: 800; font-size: 1.375rem; text-decoration: none; }
.offer {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--brass);
  color: var(--ink);
  font-weight: 800;
}
.offer .ph { color: var(--brass); font-size: 1.3em; }
.map { min-height: 380px; border-radius: var(--r-sheet); overflow: hidden; box-shadow: var(--shadow); background: var(--teal-mist); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #DCEAE6; padding-block: 48px calc(48px + env(safe-area-inset-bottom)); }
.foot-grid { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand addr links" "copy copy copy"; gap: 18px 40px; align-items: center; }
.foot-brand { grid-area: brand; display: flex; align-items: center; gap: 12px; }
.foot-brand img { filter: brightness(0) invert(1); opacity: 0.9; }
.foot-brand p { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; color: #fff; }
.foot-addr { grid-area: addr; color: #B9CEC9; font-size: 1rem; }
.foot-links { grid-area: links; display: flex; gap: 20px; align-items: center; }
.foot-links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; font-weight: 700; }
.foot-links .ph { font-size: 1.3em; }
@media (hover: hover) and (pointer: fine) { .foot-links a:hover { color: var(--teal-mist); } }
.foot-copy { grid-area: copy; color: #9DB5AF; font-size: 0.95rem; border-top: 1px solid rgba(220, 234, 230, 0.14); padding-top: 18px; }
.foot :focus-visible { outline-color: var(--teal-mist); }

/* ---------- Dock (mobile) ---------- */
.dock { display: none; }

/* ---------- Player ---------- */
.player {
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--sheet);
  color: var(--ink);
  width: min(880px, 100vw - 32px);
  max-height: calc(100dvh - 32px);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(15, 46, 43, 0.55);
}
.player::backdrop { background: rgba(15, 46, 43, 0.62); }
.player[open] { animation: player-in 280ms var(--ease-drawer); }
.player[data-closing] { animation: player-out 160ms ease-in forwards; }
.player[open]::backdrop { animation: fade-in 280ms ease; }
@keyframes player-in { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes player-out { to { opacity: 0; transform: scale(0.97); } }
@keyframes fade-in { from { opacity: 0; } }
.player-inner { display: grid; grid-template-columns: auto minmax(0, 1fr); }
.player-video { background: var(--ink); }
.player-video video { height: min(78dvh, 720px); aspect-ratio: 9 / 16; width: auto; background: var(--ink); }
.player-info { position: relative; display: grid; align-content: start; gap: 14px; padding: 64px 28px 28px; }
.player-close { position: absolute; top: 14px; inset-inline-end: 14px; }
.player-tag { font-size: 1.625rem; font-weight: 800; line-height: 1.35; }
.player-sum { color: var(--ink-2); line-height: 1.75; }
.player-note { color: var(--ink-3); font-size: 0.95rem; line-height: 1.6; }
.player .btn { justify-self: start; margin-top: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-links a { padding-inline: 10px; }
  .brand-sub { display: none; }
  .callout-sub { font-size: 0.95rem; }
}

@media (max-width: 960px) {
  :root { --nav-h: 64px; }
  .menu-btn { display: inline-grid; }
  .nav { gap: 10px; }
  .nav-actions { margin-inline-start: auto; }
  .nav-call { display: none; }
  .nav-links {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--plaster);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px -16px rgba(60, 34, 26, 0.25);
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 180ms ease, transform 220ms var(--ease-out), visibility 0s linear 220ms;
  }
  .nav[data-menu-open] .nav-links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
  .nav-links a { padding: 12px 8px; font-size: 1.1875rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-links a:last-child { border-bottom: 0; }

  .sheet { grid-template-columns: 1fr; }
  .sheet-side { order: -1; }
  .weight-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "compare" "message"; }
  .weight-copy h2 { max-width: none; }
  .clinic-grid, .visit-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; grid-template-areas: "brand" "addr" "links" "copy"; }
}

@media (max-width: 760px) {
  .chart {
    --fig-w: clamp(150px, 44vw, 210px);
    --fig-h: calc(var(--fig-w) / 0.4375);
    gap: 14px;
  }
  .stage { column-gap: 10px; grid-template-columns: 1fr var(--fig-w) 1fr; }
  .chart-q {
    grid-row: 1;
    display: flex;
    justify-content: center;
    gap: 0.25em;
    padding-top: 6px;
    font-size: clamp(2.5rem, 11vw, 3.25rem);
    margin-bottom: 6px;
  }
  .figure-cell, .side { grid-row: 2; }
  .leaders { top: 0; }
  .side-start .callout, .side-end .callout { inset-inline: auto; }
  .side-start .callout { inset-inline-end: 0; }
  .side-end .callout { inset-inline-start: 0; }
  .callout { padding: 8px 10px; min-height: 44px; max-width: 100%; }
  .callout-name { font-size: 1.0625rem; }
  .callout-sub { display: none; }

  .ticket { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .ticket-actions { border-inline-start: 0; padding-inline-start: 0; border-top: 1.5px dashed var(--line-2); padding-top: 14px; flex-wrap: wrap; }
  .ticket-actions .btn { flex: 1 1 auto; }
  .ticket-proof { max-width: none; }
  .ticket-more { width: 100%; justify-content: center; }

  .symptom-list { grid-template-columns: 1fr; }
  .voices-head { grid-template-columns: 1fr; grid-template-areas: "title" "lead"; }
  .strip-nav { display: none; }
  .strip { grid-auto-columns: 62vw; }
  .player { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .player-inner { grid-template-columns: 1fr; grid-template-rows: auto 1fr; height: 100%; overflow-y: auto; }
  .player-video video { height: auto; width: 100%; max-height: 64dvh; }
  .player-info { padding: 20px 20px calc(24px + env(safe-area-inset-bottom)); }
  .player-close { position: fixed; top: 12px; inset-inline-end: 12px; z-index: 2; }

  .dock {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--sheet) 94%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 300ms var(--ease-drawer);
  }
  .dock .btn-primary { flex: 1; }
  .dock[data-show] { transform: none; }
  body:has(.dock[data-show]) .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; }
  .chart .spot-halo { animation: none !important; opacity: 0; }
  .spot[data-on] .spot-halo { opacity: 0.18; }
  .case-video img { transition: none; }
}
