/* GLO Pharma - The Anatomical Folio
   Tokens are the source of truth (see ../DESIGN.md). Never hard-code a colour below :root. */

:root {
  --ink: #281c13;
  --ink-deep: #1b120c;
  --ink-raised: #34251a;
  --sanguine: #c2573a;
  --sanguine-deep: #9c3f27;
  --sanguine-ink: #7f2f1b;
  --sanguine-chalk: #e08c72;
  --bone: #f4ece1;
  --bone-muted: #cdbba8;
  --plate: #fbf9f6;
  --plate-line: #e6dfd5;
  --plate-ink: #231710;
  --plate-muted: #6f6156;
  --azurite: #0d3d43;
  --azurite-deep: #082a2f;
  --azurite-chalk: #8fc7c4;
  --xela-silver: #a6a6a6;
  --xela-gold: #b3a58a;
  --xela-bronze: #a9775c;
  --whatsapp: #25d366;
  --whatsapp-ink: #0b2b16;

  --font-display: 'Italiana', 'Times New Roman', serif;
  --font-body: 'Albert Sans', 'Helvetica Neue', Arial, sans-serif;

  --size-display: clamp(2.75rem, 7vw, 6rem);
  --size-headline: clamp(2rem, 4vw, 3.25rem);
  --size-subhead: clamp(1.5rem, 2.4vw, 2rem);
  --size-title: 1.25rem;
  --size-body: 1.0625rem;
  --size-small: 0.9375rem;
  --size-marginalia: 0.8125rem;
  --size-label: 0.75rem;

  --radius-hair: 2px;
  --radius-pill: 999px;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 112px;
  --space-section: clamp(96px, 12vw, 160px);

  --gutter: clamp(20px, 5vw, 72px);
  --content: 1240px;
  --measure: 62ch;
  --spine: 64px;
  --margin-col: 220px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 480ms;

  --shadow-box: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
  --nav-h: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  font-size: var(--size-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p a, li a, .prose a { text-decoration: underline; text-decoration-color: var(--sanguine); text-underline-offset: 3px; text-decoration-thickness: 1px; }
p a:hover, li a:hover, .prose a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0 0 1.1em; max-width: var(--measure); }
ul, ol { margin: 0 0 1.1em; padding-left: 1.2em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 500; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--sanguine-chalk); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: var(--space-sm); top: -60px; padding: 10px 16px; background: var(--sanguine); color: var(--bone); border-radius: var(--radius-pill); z-index: 200; font-weight: 500; }
.skip-link:focus { top: var(--space-sm); }

/* Type roles */
.display { font-family: var(--font-display); font-size: var(--size-display); line-height: 0.98; letter-spacing: 0.005em; text-wrap: balance; }
.headline { font-family: var(--font-display); font-size: var(--size-headline); line-height: 1.05; text-wrap: balance; }
.subhead { font-family: var(--font-display); font-size: var(--size-subhead); line-height: 1.12; text-wrap: balance; }
.title { font-family: var(--font-body); font-size: var(--size-title); font-weight: 500; line-height: 1.3; }
.lede { font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.5; font-weight: 300; max-width: 56ch; }
.small { font-size: var(--size-small); }
.muted { color: var(--bone-muted); }
.on-plate .muted, .plate .muted { color: var(--plate-muted); }
.label { font-size: var(--size-label); font-weight: 500; letter-spacing: 0.06em; }

/* The folio mark: one drawn rule and an italic word. Use once per section at most. */
.folio-mark { display: flex; align-items: center; gap: 12px; color: var(--sanguine-chalk); font-size: var(--size-marginalia); font-style: italic; margin-bottom: var(--space-md); }
.folio-mark::before { content: ""; width: 36px; height: 1px; background: var(--sanguine-chalk); }
.on-plate .folio-mark, .plate .folio-mark { color: var(--sanguine-deep); }
.on-plate .folio-mark::before, .plate .folio-mark::before { background: var(--sanguine); }

/* Marginalia */
.marginalia { position: relative; font-size: var(--size-marginalia); font-style: italic; font-weight: 400; color: var(--bone-muted); padding-left: 32px; line-height: 1.45; }
.marginalia::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 24px; height: 1px; background: var(--sanguine-chalk); }
.on-plate .marginalia, .plate .marginalia { color: var(--plate-muted); }
.on-plate .marginalia::before, .plate .marginalia::before { background: var(--sanguine); }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }
.section { padding-block: var(--space-section); position: relative; }
.section--tight { padding-block: calc(var(--space-section) * 0.6); }
.on-plate { background: var(--plate); color: var(--plate-ink); }
.on-azurite { background: var(--azurite); color: var(--bone); }
.on-deep { background: var(--ink-deep); }
.on-azurite .muted { color: var(--azurite-chalk); }
.on-azurite .folio-mark, .on-azurite .marginalia { color: var(--azurite-chalk); }
.on-azurite .folio-mark::before, .on-azurite .marginalia::before { background: var(--azurite-chalk); }

/* Spine: content plus a margin column for notes */
.folio { display: grid; grid-template-columns: minmax(0, 1fr) var(--margin-col); gap: var(--space-lg); align-items: start; }
.folio > aside { padding-top: 0.5rem; display: grid; gap: var(--space-md); }
@media (max-width: 1100px) {
  .folio { grid-template-columns: 1fr; gap: var(--space-md); }
  .folio > aside { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* Split: image + text, alternating */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split.reverse > .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-hair); }
.split__media.sheet::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; background: var(--ink-raised); border-radius: var(--radius-hair); z-index: -1; }
.on-plate .split__media.sheet::before { background: var(--plate-line); }
.on-azurite .split__media.sheet::before { background: var(--azurite-deep); }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > .split__media { order: 0; }
  .split__media img { aspect-ratio: 5 / 4; }
}

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 100; background: rgba(40, 28, 19, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(224, 140, 114, 0.14); transition: transform 320ms var(--ease-out); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); list-style: none; margin: 0; padding: 0; }
.nav__links a { position: relative; font-size: var(--size-small); font-weight: 400; color: var(--bone); padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 22px; height: 1px; background: var(--sanguine); transform: scaleX(0); transform-origin: left; transition: transform 240ms var(--ease-out); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__links a[aria-current="page"] { color: var(--bone); font-weight: 500; }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(244, 236, 225, 0.35); background: transparent; border-radius: var(--radius-pill); color: var(--bone); align-items: center; justify-content: center; }
.nav__toggle span { display: block; width: 18px; height: 1px; background: currentColor; position: relative; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1px; background: currentColor; transition: transform 240ms var(--ease-out); }
.nav__toggle span::before { top: -6px; } .nav__toggle span::after { top: 6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 880px) {
  .nav__toggle { display: inline-flex; }
  .nav__links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 0; background: var(--ink-deep); padding: var(--space-sm) var(--gutter) var(--space-md); border-bottom: 1px solid rgba(224, 140, 114, 0.2); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
  .nav__links.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links li { width: 100%; border-bottom: 1px solid rgba(224, 140, 114, 0.12); }
  .nav__links a { display: block; padding: 16px 0; font-size: 1.0625rem; }
  .nav__links a::after { display: none; }
  .nav__cta { margin: var(--space-sm) 0 0; }
  .nav__links li:last-child { border-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 30px; border-radius: var(--radius-pill); font-family: var(--font-body); font-size: var(--size-small); font-weight: 500; line-height: 1; border: 1px solid transparent; transition: transform 160ms var(--ease-out), background-color 160ms, border-color 160ms, color 160ms; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--sanguine-deep); color: var(--bone); border-color: var(--sanguine-deep); }
.btn--primary:hover { background: var(--sanguine-ink); border-color: var(--sanguine-ink); }
.btn--outline { background: transparent; color: var(--bone); border-color: rgba(244, 236, 225, 0.5); }
.btn--outline:hover { border-color: var(--bone); }
.on-plate .btn--outline, .plate .btn--outline { color: var(--plate-ink); border-color: rgba(35, 23, 16, 0.45); }
.on-plate .btn--outline:hover, .plate .btn--outline:hover { border-color: var(--plate-ink); }
.btn--whatsapp { background: var(--whatsapp); color: var(--whatsapp-ink); border-color: var(--whatsapp); }
.btn--whatsapp:hover { background: #1ebe5b; border-color: #1ebe5b; }
.btn--small { padding: 11px 20px; font-size: 0.875rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: var(--size-small); color: var(--sanguine-chalk); }
.text-link::after { content: "\2192"; transition: transform 200ms var(--ease-out); }
.text-link:hover::after { transform: translateX(4px); }
.on-plate .text-link, .plate .text-link { color: var(--sanguine-deep); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding-top: calc(var(--nav-h) + 40px); padding-bottom: clamp(56px, 8vw, 112px); overflow: hidden; isolation: isolate; }
.hero__sheets { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__sheet { position: absolute; border-radius: var(--radius-hair); will-change: transform; transition: transform 600ms var(--ease-out); }
.hero__sheet--far { inset: 26% -10% -20% 56%; background: var(--ink-deep); }
.hero__sheet--mid { inset: 48% -6% -12% 64%; background: var(--ink-raised); opacity: 0.85; }
.hero__art { background-image: url('../images/hero-face.webp'); position: absolute; right: 0; top: 0; bottom: 0; width: min(64vw, 980px); background-size: cover; background-position: center right; opacity: 0.92; z-index: -1; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 100%); mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 100%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: end; }
.hero__copy { max-width: 680px; }
.hero__copy .display { margin-bottom: var(--space-md); }
.hero__copy .lede { margin-bottom: var(--space-md); color: var(--bone-muted); }
.hero__note { margin-top: var(--space-md); }
.hero__fact { display: grid; gap: 4px; padding: 20px 0; border-top: 1px solid rgba(224, 140, 114, 0.35); }
.hero__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-md); }
.hero__fact dt { font-size: var(--size-marginalia); font-style: italic; color: var(--sanguine-chalk); }
.hero__fact dd { margin: 0; font-size: var(--size-small); font-weight: 400; }
@media (max-width: 880px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 24px); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { background-image: url('../images/hero-face-960.webp'); position: relative; width: 100%; aspect-ratio: 16 / 10; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); margin-bottom: -40px; opacity: 0.85; }
  .hero__facts { grid-template-columns: 1fr 1fr; }
  .hero__sheet--far { inset: auto -10% -20% 40%; height: 50%; }
  .hero__sheet--mid { display: none; }
}
@media (max-width: 480px) { .hero__facts { grid-template-columns: 1fr; gap: 0; } .hero__fact { padding: 14px 0; } }

/* 3D product box (CSS transforms, pointer tilt) */
.box3d-stage { perspective: 1400px; display: grid; place-items: center; padding: 40px 0; }
.box3d { position: relative; width: clamp(220px, 26vw, 340px); aspect-ratio: 1700 / 512; transform-style: preserve-3d; transform: rotateX(var(--rx, 12deg)) rotateY(var(--ry, -18deg)); transition: transform 700ms var(--ease-out); filter: drop-shadow(var(--shadow-box)); }
.box3d__face { position: absolute; inset: 0; background: var(--plate); border-radius: 2px; backface-visibility: hidden; }
.box3d__face img { width: 100%; height: 100%; object-fit: cover; }
.box3d__face--front { transform: translateZ(calc(var(--depth) / 2)); }
.box3d__face--back { transform: rotateY(180deg) translateZ(calc(var(--depth) / 2)); background: var(--plate-line); }
.box3d__face--top, .box3d__face--bottom { height: var(--depth); top: 50%; margin-top: calc(var(--depth) / -2); }
.box3d__face--top { transform: rotateX(90deg) translateZ(calc(var(--h) / 2)); background: #f1ede6; }
.box3d__face--bottom { transform: rotateX(-90deg) translateZ(calc(var(--h) / 2)); background: #e4ded4; }
.box3d__face--left, .box3d__face--right { width: var(--depth); left: 50%; margin-left: calc(var(--depth) / -2); display: grid; place-items: center; }
.box3d__face--left { transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); background: #f3efe8; }
.box3d__face--right { transform: rotateY(90deg) translateZ(calc(var(--w) / 2)); background: #ebe6de; }
.box3d__band { width: 60%; height: 3px; background: var(--band, var(--xela-gold)); }

/* ---------- The thread (SVG drawn by scroll) ---------- */
.thread { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.thread path { fill: none; stroke: var(--sanguine); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.has-thread { position: relative; }
.has-thread > .wrap { position: relative; z-index: 1; }

/* ---------- Plates & cards ---------- */
.plate { background: var(--plate); color: var(--plate-ink); border: 1px solid var(--plate-line); border-radius: var(--radius-hair); padding: clamp(28px, 4vw, 56px); }
.rule { border: 0; border-top: 1px solid rgba(224, 140, 114, 0.3); margin: var(--space-lg) 0; }
.on-plate .rule, .plate .rule { border-color: var(--plate-line); }

/* Product duo on home */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.product-sheet { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: var(--space-md); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-hair); min-height: 100%; }
.product-sheet--xela { background: var(--plate); color: var(--plate-ink); border: 1px solid var(--plate-line); }
.product-sheet--innea { background: var(--azurite); color: var(--bone); }
.product-sheet__origin { font-size: var(--size-marginalia); font-style: italic; }
.product-sheet--xela .product-sheet__origin { color: var(--plate-muted); }
.product-sheet--innea .product-sheet__origin { color: var(--azurite-chalk); }
.product-sheet .subhead { margin: 8px 0 12px; }
.product-sheet__img { aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-hair); }
.product-sheet__img img { width: 100%; height: 100%; object-fit: cover; }
.product-sheet--xela .product-sheet__img { background: #f4f2ee; }
.product-sheet--xela .product-sheet__img img { object-fit: contain; padding: 8%; }
.product-sheet dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; font-size: var(--size-small); }
.product-sheet dt { font-style: italic; font-weight: 400; }
.product-sheet--xela dt { color: var(--plate-muted); }
.product-sheet--innea dt { color: var(--azurite-chalk); }
.product-sheet dd { margin: 0; font-weight: 400; }
.product-sheet--innea .btn--outline { color: var(--bone); border-color: rgba(244, 236, 225, 0.5); }
.product-sheet--innea .text-link { color: var(--azurite-chalk); }
@media (max-width: 880px) { .duo { grid-template-columns: 1fr; } }

/* Strength selector (Xela) */
.strengths { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--space-md); }
.strength { padding: 10px 18px; border-radius: var(--radius-pill); border: 1px solid var(--plate-line); background: transparent; color: var(--plate-ink); font-size: var(--size-small); font-weight: 500; display: inline-flex; align-items: center; gap: 10px; transition: background-color 200ms, border-color 200ms; }
.strength i { width: 12px; height: 12px; border-radius: 50%; background: var(--band); display: inline-block; }
.strength[aria-selected="true"] { background: var(--plate-ink); color: var(--plate); border-color: var(--plate-ink); }
.strength-panel { display: none; }
.strength-panel.is-active { display: block; animation: fade var(--dur) var(--ease-out); }
@keyframes fade { from { opacity: 0.3; } to { opacity: 1; } }
.composition { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--space-sm); margin: var(--space-sm) 0 var(--space-md); }
.composition div { padding: 16px 0 0; border-top: 2px solid var(--band, var(--plate-line)); }
.composition strong { display: block; font-family: var(--font-display); font-size: 2rem; line-height: 1; font-weight: 400; margin-bottom: 4px; }
.composition span { font-size: var(--size-marginalia); font-style: italic; color: var(--plate-muted); }

/* Doors: the two exits */
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.door { display: grid; gap: var(--space-sm); padding: clamp(28px, 4vw, 48px); border: 1px solid rgba(224, 140, 114, 0.3); border-radius: var(--radius-hair); align-content: start; }
.door .subhead { margin-bottom: 4px; }
.door p { color: var(--bone-muted); }
@media (max-width: 880px) { .doors { grid-template-columns: 1fr; } }

/* Steps (mechanism) */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--space-md); counter-reset: step; }
.step { padding-top: var(--space-sm); border-top: 1px solid rgba(224, 140, 114, 0.35); }
.step .title { margin-bottom: 8px; }
.step p { font-size: var(--size-small); color: var(--bone-muted); margin: 0; }
.on-plate .step { border-color: var(--plate-line); }
.on-plate .step p { color: var(--plate-muted); }

/* FAQ */
.faq { border-top: 1px solid rgba(224, 140, 114, 0.3); }
.on-plate .faq { border-color: var(--plate-line); }
.faq details { border-bottom: 1px solid rgba(224, 140, 114, 0.3); }
.on-plate .faq details { border-color: var(--plate-line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); padding: 22px 0; font-size: var(--size-title); font-weight: 400; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.75rem; color: var(--sanguine-chalk); transition: transform 240ms var(--ease-out); flex: none; }
.on-plate .faq summary::after { color: var(--sanguine); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 24px; max-width: var(--measure); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Clinic list */
.clinic-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--space-md); }
.clinic-filter button { padding: 9px 16px; border-radius: var(--radius-pill); border: 1px solid var(--plate-line); background: transparent; color: var(--plate-ink); font-size: 0.875rem; font-weight: 500; }
.clinic-filter button[aria-pressed="true"] { background: var(--plate-ink); color: var(--plate); border-color: var(--plate-ink); }
.clinic-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--plate-line); }
.clinic-list li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: var(--space-sm); align-items: center; padding: 18px 0; border-bottom: 1px solid var(--plate-line); }
.clinic-list .title { font-size: 1.0625rem; }
.clinic-list .area { color: var(--plate-muted); font-size: var(--size-small); }
.clinic-list .contact a { font-weight: 500; font-size: var(--size-small); text-decoration: underline; text-decoration-color: var(--sanguine); text-underline-offset: 3px; }
.clinic-empty { padding: clamp(32px, 5vw, 64px); text-align: center; border: 1px dashed var(--plate-line); border-radius: var(--radius-hair); display: grid; gap: var(--space-sm); justify-items: center; }
.clinic-empty p { margin: 0; }
@media (max-width: 640px) { .clinic-list li { grid-template-columns: 1fr; gap: 6px; } }

/* Form */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md) var(--space-md); }
.form .field--full { grid-column: 1 / -1; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--size-small); font-weight: 500; }
.field label .req { color: var(--sanguine-deep); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid rgba(35, 23, 16, 0.35); background: transparent; color: var(--plate-ink); font: inherit; font-weight: 400; border-radius: 0; transition: border-color 160ms; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--sanguine); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-bottom-color: var(--sanguine-deep); }
.field .error { font-size: var(--size-marginalia); color: var(--sanguine-deep); min-height: 1.2em; }
.field .hint { font-size: var(--size-marginalia); color: var(--plate-muted); font-style: italic; }
.form__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-sm) var(--space-md); align-items: center; justify-content: space-between; }
.form__foot p { margin: 0; font-size: var(--size-marginalia); color: var(--plate-muted); max-width: 46ch; }
.form-success { display: grid; gap: var(--space-sm); padding: clamp(28px, 4vw, 48px); border: 1px solid var(--plate-line); border-radius: var(--radius-hair); }
.hp-field { position: absolute; left: -5000px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }

/* Contact facts */
.contact-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-md); }
.contact-facts dt { font-size: var(--size-marginalia); font-style: italic; color: var(--bone-muted); margin-bottom: 4px; }
.on-plate .contact-facts dt { color: var(--plate-muted); }
.contact-facts dd { margin: 0; font-weight: 400; }

/* Professional gate */
.gate { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: var(--gutter); background: rgba(23, 14, 9, 0.9); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.gate[hidden] { display: none; }
.gate__panel { max-width: 560px; }
.gate__panel h2 { margin-bottom: var(--space-sm); }

/* CTA band */
.cta-band { padding-block: calc(var(--space-section) * 0.8); text-align: left; }
.cta-band .headline { margin-bottom: var(--space-sm); }
.cta-band .lede { margin-bottom: var(--space-md); }

/* ---------- Footer ---------- */
.footer { background: var(--ink-deep); border-top: 1px solid rgba(224, 140, 114, 0.18); padding-block: var(--space-lg) var(--space-md); font-size: var(--size-small); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--space-md); margin-bottom: var(--space-lg); }
.footer__brand img { height: 44px; width: auto; margin-bottom: var(--space-sm); }
.footer__brand p { color: var(--bone-muted); max-width: 34ch; }
.footer h3 { font-size: var(--size-marginalia); font-style: italic; font-weight: 400; color: var(--sanguine-chalk); margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 8px; }
.footer a:hover { text-decoration: underline; text-decoration-color: var(--sanguine); text-underline-offset: 3px; }
.footer__makers { display: flex; flex-wrap: wrap; gap: var(--space-md); align-items: center; padding-top: var(--space-md); border-top: 1px solid rgba(224, 140, 114, 0.18); color: var(--bone-muted); font-size: var(--size-marginalia); }
.footer__legal { margin-top: var(--space-md); color: var(--bone-muted); font-size: var(--size-marginalia); display: grid; gap: 8px; }
.footer__legal p { margin: 0; max-width: none; }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp + mobile bar ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; padding: 14px 18px 14px 14px; border-radius: var(--radius-pill); background: var(--whatsapp); color: var(--whatsapp-ink); font-weight: 500; font-size: 0.9375rem; box-shadow: 0 14px 32px -12px rgba(0, 0, 0, 0.7); transition: transform 160ms var(--ease-out); }
.wa-float:hover { transform: translateY(-2px); }
.wa-float svg { width: 22px; height: 22px; }
.mobile-bar { display: none; }
@media (max-width: 640px) {
  .wa-float { display: none; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(23, 14, 9, 0.96); border-top: 1px solid rgba(224, 140, 114, 0.2); }
  .mobile-bar .btn { padding: 14px 12px; font-size: 0.875rem; }
  body { padding-bottom: 72px; }
}

/* ---------- Reveal (ease out from visible defaults) ---------- */
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); }
  .js .reveal.in-view { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__sheet, .box3d { transition: none !important; }
  .btn, .wa-float { transition: none; }
}

/* Utility */
.mt-md { margin-top: var(--space-md); } .mt-lg { margin-top: var(--space-lg); } .mb-md { margin-bottom: var(--space-md); } .mb-lg { margin-bottom: var(--space-lg); } .mb-sm { margin-bottom: var(--space-sm); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); }
@media (max-width: 880px) { .grid-2 { grid-template-columns: 1fr; gap: var(--space-md); } }
.table { width: 100%; border-collapse: collapse; font-size: var(--size-small); }
.table th, .table td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--plate-line); vertical-align: top; }
.table th { font-weight: 500; font-style: italic; color: var(--plate-muted); }
.table-wrap { overflow-x: auto; }
.breadcrumb { font-size: var(--size-marginalia); color: var(--bone-muted); margin-bottom: var(--space-md); }
.breadcrumb a:hover { text-decoration: underline; }
.page-head { padding-top: calc(var(--nav-h) + clamp(56px, 8vw, 120px)); padding-bottom: clamp(48px, 6vw, 96px); }
.page-head .display { font-size: clamp(2.5rem, 5.5vw, 4.5rem); margin-bottom: var(--space-sm); }

/* Hero aside (professional door in the hero) */
.hero__aside { display: grid; align-content: end; }
.hero__aside .door { background: rgba(27, 18, 12, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); max-width: 420px; margin-left: auto; }
.hero__aside .door p { color: var(--bone-muted); }
@media (max-width: 880px) { .hero__aside .door { margin-left: 0; max-width: none; } }
.prose h2 { max-width: var(--measure); }
.on-plate .contact-facts dd, .plate .contact-facts dd { color: var(--plate-ink); }
.on-azurite .contact-facts dt { color: var(--azurite-chalk); }
.on-azurite .steps .step { border-color: rgba(143, 199, 196, 0.35); }
.hcp .wa-float { display: none; }

.hero__pro { margin-top: var(--space-md); display: flex; gap: var(--space-md); align-items: center; justify-content: space-between; padding: 20px 24px; border: 1px solid rgba(224, 140, 114, 0.3); border-radius: var(--radius-hair); background: rgba(27, 18, 12, 0.55); }
.hero__pro .btn { flex: none; }
@media (max-width: 640px) { .hero__pro { flex-direction: column; align-items: flex-start; } }
