/* ==========================================================================
   ClinStat Research Institute — design system
   Palette, type scale and components derived from the ClinStat brand:
   deep forest green, warm gold, cream paper.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Brand */
  --green-950: #04180F;
  --green-900: #06251C;
  --green-800: #0A3427;
  --green-700: #0C3B2E; /* primary */
  --green-600: #14503E;
  --green-500: #1D6A52;
  --green-400: #2F8A6C;
  /* The two greens in the logo artwork. */
  --brand-green: #0C6B3F;
  --brand-green-dark: #0A3B26;

  /* Brand tan, sampled from the supplied logo artwork. */
  --gold-700: #82613C;
  --gold-600: #A07A4B;
  --gold-500: #C19A6B; /* accent — the brand gold */
  --gold-400: #D3B189;
  --gold-300: #E4CDAF;

  --cream-50: #FDFBF5;
  --cream-100: #FAF6EC;
  --cream-200: #F3ECDC;
  --cream-300: #E8DDC6;

  --ink: #0F231D;
  --ink-2: #2C403A;
  --muted: #5A6B65;
  --muted-on-dark: #B9CCC4;
  --line: rgba(12, 59, 46, 0.14);
  --line-strong: rgba(12, 59, 46, 0.24);
  --line-on-dark: rgba(217, 188, 121, 0.24);

  /* Surfaces */
  --bg: var(--cream-100);
  --surface: #FFFFFF;
  --surface-alt: var(--cream-50);

  /* Type */
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-brand: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-ar: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --step--2: clamp(0.72rem, 0.70rem + 0.10vw, 0.78rem);
  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.90rem);
  --step-0:  clamp(1rem, 0.97rem + 0.15vw, 1.075rem);
  --step-1:  clamp(1.15rem, 1.09rem + 0.30vw, 1.35rem);
  --step-2:  clamp(1.38rem, 1.26rem + 0.58vw, 1.75rem);
  --step-3:  clamp(1.70rem, 1.47rem + 1.10vw, 2.45rem);
  --step-4:  clamp(2.05rem, 1.65rem + 1.95vw, 3.35rem);
  --step-5:  clamp(2.45rem, 1.80rem + 3.10vw, 4.60rem);

  /* Space */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  --container: 1180px;
  --container-narrow: 820px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(6, 37, 28, 0.05), 0 2px 6px rgba(6, 37, 28, 0.05);
  --shadow: 0 2px 6px rgba(6, 37, 28, 0.06), 0 12px 28px -10px rgba(6, 37, 28, 0.16);
  --shadow-lg: 0 4px 12px rgba(6, 37, 28, 0.07), 0 28px 60px -20px rgba(6, 37, 28, 0.28);

  --header-h: 78px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
/* Inline icons default to text size; container rules below override where needed. */
.ic { width: 1.15em; height: 1.15em; flex: none; }
/* Optical size correction for glyphs whose artwork does not fill its viewBox.
   Applied as a transform so the layout box, and therefore spacing, is unchanged. */
.ic--optical { transform: scale(1.18); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection { background: var(--gold-300); color: var(--green-900); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--green-900);
  text-wrap: balance;
}
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
h5, h6 {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-700);
}
p { text-wrap: pretty; }
strong, b { font-weight: 650; color: var(--green-900); }
small { font-size: var(--step--1); }
abbr[title] { text-decoration: underline dotted; cursor: help; }

.lede {
  font-size: var(--step-1);
  line-height: 1.6;
  color: var(--ink-2);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold-500);
  flex: none;
}
.eyebrow--center::before { display: none; }

/* Dark surfaces flip the type colours */
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--cream-100); }
.on-dark .lede, .on-dark p { color: var(--muted-on-dark); }
.on-dark .eyebrow, .on-dark h5, .on-dark h6 { color: var(--gold-400); }
.on-dark strong { color: #fff; }
.on-dark a:not(.btn) { color: var(--gold-300); }

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2.5rem, var(--container-narrow)); }
@media (min-width: 768px) { .container { width: min(100% - 4rem, var(--container)); } }

.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--green { background: var(--green-700); color: var(--cream-100); }
.section--deep { background: var(--green-900); color: var(--cream-100); }
.section--paper { background: var(--surface); }
.section--sand { background: var(--cream-200); }
.section-head { max-width: 62ch; margin-bottom: var(--sp-7); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: var(--sp-4); font-size: var(--step-1); color: var(--ink-2); }
.on-dark .section-head p { color: var(--muted-on-dark); }

.grid { display: grid; gap: var(--sp-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }
.flow > * + * { margin-top: 1.1em; }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr 0.85fr; }
  .split--wide-right { grid-template-columns: 0.85fr 1.15fr; }
}

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin-block: var(--sp-6);
}
.on-dark .rule { background: var(--line-on-dark); }

/* ---------- Decorative ---------- */
.dot-grid {
  position: absolute;
  inset: auto;
  background-image: radial-gradient(var(--gold-500) 1.15px, transparent 1.15px);
  background-size: 14px 14px;
  opacity: 0.34;
  pointer-events: none;
}
.section-dots { top: 12%; right: 4%; width: 170px; height: 110px; opacity: 0.22; }
.corner-fade {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green-700);
  --btn-fg: var(--cream-50);
  --btn-bd: var(--green-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.85em 1.6em;
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease),
              background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease);
  text-align: center;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

.btn--gold { --btn-bg: var(--gold-500); --btn-bd: var(--gold-500); --btn-fg: var(--green-950); }
.btn--gold:hover { --btn-bg: var(--gold-400); --btn-bd: var(--gold-400); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--green-800); --btn-bd: var(--line-strong); }
.btn--ghost:hover { --btn-bg: rgba(12,59,46,0.05); --btn-bd: var(--green-700); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--cream-100); --btn-bd: rgba(250,246,236,0.35); }
.btn--ghost-light:hover { --btn-bg: rgba(250,246,236,0.10); --btn-bd: var(--gold-400); }
.btn--wa { --btn-bg: #1FA855; --btn-bd: #1FA855; --btn-fg: #fff; }
.btn--wa:hover { --btn-bg: #178c46; --btn-bd: #178c46; }
.btn--lg { padding: 1.05em 2.1em; font-size: var(--step-0); }
.btn--sm { padding: 0.6em 1.1em; font-size: var(--step--2); }
.btn--block { display: flex; width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}
.btn-row--center { justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-weight: 600;
  font-size: var(--step--1);
  color: var(--green-600);
  border-bottom: 1px solid transparent;
  transition: gap 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform 0.2s var(--ease); }
.link-arrow:hover { color: var(--gold-700); border-bottom-color: currentColor; }
.link-arrow:hover::after { transform: translateX(3px); }
.on-dark .link-arrow { color: var(--gold-300); }

.text-link {
  color: var(--green-600);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--gold-400);
  transition: color 0.15s var(--ease);
}
.text-link:hover { color: var(--gold-700); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 246, 236, 0.86);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease),
              box-shadow 0.25s var(--ease);
}
.header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(6,37,28,0.5);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: 0.7rem; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__mark { width: 46px; height: 46px; flex: none; }
.logo__rule {
  width: 1.5px;
  align-self: stretch;
  margin: 2px 0.15rem 2px 0;
  background: var(--brand-green-dark);
  border-radius: 1px;
  flex: none;
}
.logo__name {
  font-family: var(--font-brand);
  font-size: 1.42rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1;
}
.logo__clin { color: var(--brand-green-dark); }
.logo__stat { color: var(--brand-green); }
.logo__sub {
  font-family: var(--font-brand);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-top: 5px;
  line-height: 1;
}
.logo--light .logo__rule { background: var(--gold-500); }
.logo--light .logo__clin,
.logo--light .logo__stat { color: var(--gold-500); }
.logo--light .logo__sub { color: var(--gold-500); }
.logo__ar {
  font-family: var(--font-ar);
  font-size: 0.6rem;
  color: var(--gold-600);
  margin-top: 3px;
  direction: rtl;
}

.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: 0.15rem; }
}
.nav__item { position: relative; }
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.6rem 0.8rem;
  font-size: 0.905rem;
  font-weight: 550;
  color: var(--ink-2);
  border-radius: var(--radius-sm);
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
  white-space: nowrap;
}
.nav__link:hover, .nav__item:focus-within > .nav__link { color: var(--green-700); background: rgba(12,59,46,0.05); }
.nav__link[aria-current="page"], .nav__link.is-active { color: var(--green-800); font-weight: 650; }
.nav__link[aria-current="page"]::after,
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.28rem;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}
.nav__caret { width: 9px; height: 9px; opacity: 0.55; transition: transform 0.2s var(--ease); }
.nav__item:hover .nav__caret, .nav__item:focus-within .nav__caret { transform: rotate(180deg); }

.nav__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 340px;
  padding: 0.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.nav__item:hover .nav__panel,
.nav__item:focus-within .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.nav__panel a {
  display: block;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s var(--ease);
}
.nav__panel a:hover { background: var(--cream-200); }
.nav__panel strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.905rem;
  font-weight: 600;
  color: var(--green-800);
}
.nav__panel span {
  display: block;
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 2px;
}

.header__actions { display: flex; align-items: center; gap: var(--sp-3); }
.header__cta { display: none; }
@media (min-width: 640px) { .header__cta { display: inline-flex; } }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
@media (min-width: 1024px) { .burger { display: none; } }
.burger span {
  display: block;
  height: 1.8px;
  background: var(--green-800);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 55;
  background: var(--cream-100);
  padding: var(--sp-5) 0 var(--sp-8);
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0.22s;
}
.drawer.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
@media (min-width: 1024px) { .drawer { display: none; } }
.drawer__group { border-bottom: 1px solid var(--line); }
.drawer__toggle,
.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--green-800);
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
}
.drawer__toggle svg { width: 12px; height: 12px; transition: transform 0.2s var(--ease); }
.drawer__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.drawer__sub { display: none; padding-bottom: 0.85rem; }
.drawer__sub.is-open { display: block; }
.drawer__sub a {
  display: block;
  padding: 0.5rem 0 0.5rem 1rem;
  font-size: 0.95rem;
  color: var(--ink-2);
  border-left: 2px solid var(--cream-300);
}
.drawer__sub a:hover { color: var(--green-700); border-left-color: var(--gold-500); }
.drawer__footer { margin-top: var(--sp-6); display: grid; gap: var(--sp-3); }
body.is-locked { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(120% 100% at 85% 0%, #10493A 0%, transparent 55%),
    linear-gradient(165deg, var(--green-800) 0%, var(--green-900) 55%, var(--green-950) 100%);
  color: var(--cream-100);
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 90px;
  background: linear-gradient(to bottom, transparent, rgba(250,246,236,0.06));
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(3.5rem, 9vw, 7.5rem);
}
.hero__grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.08fr 0.92fr; } }
.hero h1 { color: #fff; letter-spacing: -0.02em; }
.hero h1 em {
  font-style: normal;
  color: var(--gold-400);
  position: relative;
  white-space: nowrap;
}
.hero__lede {
  margin-top: var(--sp-5);
  font-size: var(--step-1);
  line-height: 1.6;
  color: #C7DAD2;
  max-width: 54ch;
}
.hero__actions { margin-top: var(--sp-6); }
.hero__note {
  margin-top: var(--sp-4);
  font-size: var(--step--1);
  color: #94AFA6;
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
}
.hero__note .ic { margin-top: 0.28em; }
.hero__note .ic { width: 1.05em; height: 1.05em; color: var(--gold-500); }
.page-hero__meta .ic { width: 1.05em; height: 1.05em; color: var(--gold-400); }
.hero__ecg {
  position: absolute;
  left: 0; right: 0; bottom: 6%;
  height: 42%;
  z-index: 1;
  opacity: 0.32;
  pointer-events: none;
}
@media (min-width: 980px) { .hero__ecg { right: 42%; bottom: 10%; height: 34%; } }
.hero__dots { display: none; }
@media (min-width: 980px) {
  .hero__dots { display: block; top: 8%; right: 3%; width: 180px; height: 120px; }
}

.ecg-path {
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: ecg-draw 4.5s var(--ease) forwards;
}
@keyframes ecg-draw { to { stroke-dashoffset: 0; } }

/* Hero credential panel */
.credential-card {
  position: relative;
  background: rgba(250, 246, 236, 0.055);
  border: 1px solid rgba(217, 188, 121, 0.26);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  backdrop-filter: blur(6px);
}
.credential-card__title {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--sp-5);
}
.credential-list > li {
  display: flex;
  gap: var(--sp-4);
  padding-block: 0.9rem;
  border-top: 1px solid rgba(217, 188, 121, 0.18);
}
.credential-list > li:first-child { border-top: 0; padding-top: 0; }
.credential-list__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1;
  flex: none;
  min-width: 2.6ch;
}
.credential-list__body strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 650;
  color: #fff;
  margin-bottom: 2px;
}
.credential-list__body span { font-size: 0.875rem; color: #A9C1B8; line-height: 1.5; }

/* ---------- Page header (interior) ---------- */
.page-hero {
  position: relative;
  background: linear-gradient(160deg, var(--green-800), var(--green-950));
  color: var(--cream-100);
  overflow: hidden;
  isolation: isolate;
}
.page-hero__dots { top: -20px; right: -20px; width: 240px; height: 180px; opacity: 0.22; }
.page-hero__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(2.75rem, 7vw, 5.25rem);
  max-width: 74ch;
}
.page-hero h1 { color: #fff; font-size: var(--step-4); max-width: 20ch; }
.page-hero__inner > .eyebrow { margin-bottom: var(--sp-3); }
.page-hero__lede { margin-top: var(--sp-4); font-size: var(--step-1); color: #BFD3CB; }
.page-hero__meta {
  margin-top: var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--step--1);
  color: #93AEA4;
}
.page-hero__meta span { display: inline-flex; align-items: center; gap: 0.4em; }

/* Breadcrumbs */
.crumbs {
  position: relative;
  z-index: 2;
  padding-top: var(--sp-5);
  font-size: var(--step--2);
  letter-spacing: 0.04em;
}
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5em; }
.crumbs li { display: flex; align-items: center; gap: 0.5em; color: #8FA9A0; }
.crumbs li + li::before { content: "/"; color: rgba(217,188,121,0.5); }
.crumbs a { color: #A9C1B8; transition: color 0.15s var(--ease); }
.crumbs a:hover { color: var(--gold-400); }
.crumbs [aria-current="page"] { color: var(--gold-300); }

/* ---------- Cards ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: clamp(1.4rem, 2.6vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.card--link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gold-400);
}
.card h3 { font-size: var(--step-2); }
.card p { color: var(--muted); font-size: 0.95rem; }
.card__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--cream-200);
  color: var(--green-700);
  margin-bottom: var(--sp-2);
}
.card__icon svg { width: 24px; height: 24px; }
.card__foot { margin-top: auto; padding-top: var(--sp-3); }
.card--dark {
  background: rgba(250,246,236,0.045);
  border-color: var(--line-on-dark);
}
.card--dark h3 { color: #fff; }
.card--dark p { color: var(--muted-on-dark); }
.card--dark .card__icon { background: rgba(217,188,121,0.14); color: var(--gold-400); }
.card--feature { background: var(--cream-50); }
.card__tag {
  align-self: flex-start;
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gold-700);
  background: var(--cream-200);
  padding: 0.3em 0.75em;
  border-radius: var(--radius-pill);
}
.card--dark .card__tag { background: rgba(217,188,121,0.14); color: var(--gold-300); }

/* Numbered cards */
.numbered {
  counter-reset: n;
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
}
.numbered > li {
  counter-increment: n;
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.1rem);
  padding-top: 3.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.numbered > li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute;
  top: 1.3rem;
  left: clamp(1.5rem, 3vw, 2.1rem);
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-500);
}
.numbered h3 { font-size: var(--step-1); margin-bottom: var(--sp-2); }
.numbered p { color: var(--muted); font-size: 0.94rem; }
.numbered--dark > li { background: rgba(250,246,236,0.04); border-color: var(--line-on-dark); }
.numbered--dark h3 { color: #fff; }
.numbered--dark p { color: var(--muted-on-dark); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stats--dark { background: var(--line-on-dark); border-color: var(--line-on-dark); }
.stat {
  background: var(--surface);
  padding: clamp(1.3rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
  text-align: center;
}
.stats--dark .stat { background: var(--green-800); }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  color: var(--green-700);
  letter-spacing: -0.02em;
}
.stats--dark .stat__num { color: var(--gold-400); }
.stat__label {
  margin-top: var(--sp-2);
  font-size: var(--step--1);
  color: var(--muted);
  line-height: 1.45;
}
.stats--dark .stat__label { color: var(--muted-on-dark); }

/* ---------- Checklist / bullets ---------- */
.check-list > li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
.check-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--gold-500);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.7 7.7-5.4 5.4a1 1 0 0 1-1.4 0L7.3 12.5a1 1 0 1 1 1.4-1.4l1.9 1.9 4.7-4.7a1 1 0 1 1 1.4 1.4Z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm4.7 7.7-5.4 5.4a1 1 0 0 1-1.4 0L7.3 12.5a1 1 0 1 1 1.4-1.4l1.9 1.9 4.7-4.7a1 1 0 1 1 1.4 1.4Z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.dash-list > li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.dash-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.6rem;
  height: 1px;
  background: var(--gold-500);
}
.on-dark .dash-list > li { color: var(--muted-on-dark); }

/* Pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.42em 0.95em;
  font-size: 0.83rem;
  font-weight: 550;
  color: var(--green-800);
  background: var(--cream-200);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
a.pill:hover { background: var(--green-700); border-color: var(--green-700); color: var(--cream-50); }
.on-dark .pill { background: rgba(250,246,236,0.06); border-color: var(--line-on-dark); color: var(--cream-200); }
.on-dark a.pill:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--green-950); }

/* ---------- Prose ---------- */
.prose { max-width: 74ch; font-size: 1.045rem; line-height: 1.75; color: var(--ink-2); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-size: var(--step-3);
  margin-top: 2.4em;
  padding-top: 0.1em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose h3 {
  font-size: var(--step-1);
  margin-top: 1.9em;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.prose h2 + *, .prose h3 + * { margin-top: 0.7em; }
.prose ul, .prose ol { margin-left: 0; }
.prose ul > li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.55em;
}
.prose ul > li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}
.prose ol { counter-reset: p; }
.prose ol > li {
  counter-increment: p;
  position: relative;
  padding-left: 2.2rem;
  margin-bottom: 0.7em;
}
.prose ol > li::before {
  content: counter(p);
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--green-700);
  background: var(--cream-200);
  border-radius: 50%;
}
.prose blockquote {
  margin-left: 0;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--gold-500);
  background: var(--cream-50);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 1.06rem;
  color: var(--ink);
}
.prose blockquote p + p { margin-top: 0.8em; }
.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--cream-200);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}
.prose figure { margin: 2em 0; }
.prose figcaption { font-size: var(--step--1); color: var(--muted); margin-top: 0.6em; }
.prose a:not(.btn):not(.link-arrow):not(.pill) {
  color: var(--green-600);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--gold-400);
}
.prose a:not(.btn):not(.link-arrow):not(.pill):hover { color: var(--gold-700); }

/* Key takeaways / answer box (also an AI-answer extraction target) */
.answer-box {
  padding: clamp(1.3rem, 3vw, 1.9rem);
  background: var(--cream-50);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-sm);
}
.answer-box > h2, .answer-box > h3, .answer-box > p:first-child { margin-top: 0; }
.answer-box__label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: var(--sp-3);
}
.answer-box p { font-size: 1.05rem; color: var(--ink); }
.answer-box ul { margin-top: 0.8em; }

.callout {
  padding: clamp(1.2rem, 2.6vw, 1.8rem);
  background: var(--green-700);
  color: var(--cream-100);
  border-radius: var(--radius);
}
.callout h3 { color: #fff; font-size: var(--step-1); margin-bottom: 0.5em; }
.callout p { color: #BFD3CB; font-size: 0.98rem; }

/* ---------- Table of contents ---------- */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  font-size: 0.9rem;
}
.toc__title {
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: var(--sp-3);
}
.toc a:not(.btn) {
  display: block;
  padding: 0.36rem 0 0.36rem 0.85rem;
  color: var(--muted);
  border-left: 2px solid var(--cream-300);
  line-height: 1.4;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.toc a:not(.btn):hover,
.toc a:not(.btn).is-current { color: var(--green-700); border-left-color: var(--gold-500); }
.toc .btn { margin-top: var(--sp-2); }
.article-layout { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 1020px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 250px; }
  .article-layout > .toc { order: 2; }
}

/* ---------- Accordion / FAQ ---------- */
.accordion { border-top: 1px solid var(--line); }
.acc {
  border-bottom: 1px solid var(--line);
}
.acc__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: 1.35rem 0;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--green-900);
  line-height: 1.3;
  transition: color 0.15s var(--ease);
}
.acc__q:hover { color: var(--gold-700); }
.acc__icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 0.25em;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.25s var(--ease);
}
.acc__icon::before, .acc__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: var(--green-700);
  transform: translate(-50%, -50%);
  transition: opacity 0.2s var(--ease), background-color 0.2s var(--ease);
}
.acc__icon::before { width: 9px; height: 1.5px; }
.acc__icon::after { width: 1.5px; height: 9px; }
.acc__q[aria-expanded="true"] .acc__icon { background: var(--gold-500); border-color: var(--gold-500); }
.acc__q[aria-expanded="true"] .acc__icon::after { opacity: 0; }
.acc__q[aria-expanded="true"] .acc__icon::before { background: var(--green-950); }
.acc__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s var(--ease);
}
.acc__a > div { overflow: hidden; }
.acc.is-open .acc__a { grid-template-rows: 1fr; }
.acc__a p, .acc__a ul { color: var(--ink-2); font-size: 1rem; line-height: 1.7; }
.acc__a > div > *:first-child { padding-top: 0.1rem; }
.acc__a > div > *:last-child { padding-bottom: 1.5rem; }
.acc__a p + p, .acc__a p + ul { margin-top: 0.8em; }

/* ---------- Process / timeline ---------- */
.timeline { position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold-500), var(--cream-300));
}
.timeline > li {
  position: relative;
  padding-left: 3.75rem;
  padding-bottom: var(--sp-6);
}
.timeline > li:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--gold-400);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-700);
}
.timeline h3 { font-size: var(--step-1); margin-bottom: 0.35em; }
.timeline p { color: var(--muted); font-size: 0.96rem; }
.timeline--dark::before { background: linear-gradient(to bottom, var(--gold-500), rgba(217,188,121,0.15)); }
.timeline--dark .timeline__dot { background: var(--green-800); color: var(--gold-400); }
.timeline--dark h3 { color: #fff; }
.timeline--dark p { color: var(--muted-on-dark); }

/* Horizontal process strip */
.process-strip {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  counter-reset: ps;
}
.process-strip > li {
  counter-increment: ps;
  position: relative;
  padding-top: var(--sp-5);
  border-top: 2px solid var(--line-on-dark);
}
.process-strip > li::before {
  content: counter(ps);
  position: absolute;
  top: -0.9rem;
  left: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--green-950);
  background: var(--gold-500);
  border-radius: 50%;
}
.process-strip strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3em;
}
.process-strip span { font-size: 0.9rem; color: var(--muted-on-dark); line-height: 1.55; }

/* ---------- Testimonials ---------- */
.quote-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: clamp(1.5rem, 3vw, 2.1rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.quote-card__stars { display: flex; gap: 2px; color: var(--gold-500); }
.quote-card__stars svg { width: 16px; height: 16px; }
.quote-card blockquote {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.45;
  color: var(--green-900);
  margin: 0;
}
.quote-card figcaption {
  margin-top: auto;
  font-size: var(--step--1);
  color: var(--muted);
}
.quote-card figcaption strong { display: block; color: var(--green-800); font-weight: 650; }

/* ---------- Method index ---------- */
.method-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.method-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  transition: background-color 0.2s var(--ease);
}
a.method-item:hover { background: var(--cream-50); }
.method-item strong {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--green-900);
  line-height: 1.25;
}
.method-item span { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.method-item__more {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-700);
}

/* Definition rows */
.def-list { border-top: 1px solid var(--line); }
.def-list > div {
  display: grid;
  gap: 0.4rem var(--sp-6);
  padding-block: 1.35rem;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 760px) { .def-list > div { grid-template-columns: 260px 1fr; } }
.def-list dt {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  color: var(--green-900);
  line-height: 1.3;
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.def-list dd { margin: 0; color: var(--ink-2); font-size: 0.99rem; line-height: 1.65; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: 0.4rem; }
.field label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--green-800);
}
.field label .req { color: var(--gold-700); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 0.98rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px rgba(199, 162, 82, 0.24);
}
.field input::placeholder, .field textarea::placeholder { color: #9AA8A3; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%235A6B65' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 10px;
  padding-right: 2.5rem;
}
.field__hint { font-size: 0.8rem; color: var(--muted); }
.field-row { display: grid; gap: var(--sp-4); }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form__note {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}
.form-card {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ---------- Contact tiles ---------- */
.contact-tile {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: 1.3rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
a.contact-tile:hover { border-color: var(--gold-400); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.contact-tile__icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cream-200);
  color: var(--green-700);
}
.contact-tile__icon svg { width: 21px; height: 21px; }
/* Scoped to __text: a bare `.contact-tile span` also matches the icon
   container and would override its display, breaking the centring. */
.contact-tile__text { display: block; min-width: 0; }
.contact-tile__text strong { display: block; font-size: 0.98rem; color: var(--green-900); }
.contact-tile__text span { display: block; font-size: 0.89rem; color: var(--muted); margin-top: 2px; }
.contact-tile--wa .contact-tile__icon { background: rgba(31,168,85,0.12); color: #1FA855; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background:
    radial-gradient(90% 120% at 15% 10%, #12503E 0%, transparent 60%),
    linear-gradient(140deg, var(--green-800), var(--green-950));
  color: var(--cream-100);
  overflow: hidden;
  isolation: isolate;
}
.cta-band__dots { bottom: -30px; left: -30px; width: 260px; height: 160px; opacity: 0.25; }
.cta-band__inner {
  position: relative;
  z-index: 2;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  text-align: center;
  max-width: 62ch;
  margin-inline: auto;
}
.cta-band h2 { color: #fff; }
.cta-band p { margin-top: var(--sp-4); font-size: var(--step-1); color: #BFD3CB; }
.cta-band .btn-row { margin-top: var(--sp-6); }

/* ---------- Footer ---------- */
.footer {
  background: var(--green-950);
  color: var(--muted-on-dark);
  padding-block: var(--sp-8) var(--sp-5);
  font-size: 0.925rem;
}
.footer__grid {
  display: grid;
  gap: var(--sp-7);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; } }
.footer__brand p { margin-top: var(--sp-4); max-width: 40ch; color: #93AEA4; font-size: 0.9rem; }
.footer h3 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: var(--sp-4);
}
.footer li + li { margin-top: 0.55rem; }
.footer a { color: #A9C1B8; transition: color 0.15s var(--ease); }
.footer a:hover { color: var(--gold-300); }
.footer__bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(217,188,121,0.16);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
  justify-content: space-between;
  font-size: 0.83rem;
  color: #7E968E;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.social-row { display: flex; gap: 0.6rem; margin-top: var(--sp-5); }
.social-row a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(217,188,121,0.24);
  color: #A9C1B8;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.social-row a:hover {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--green-950);
  transform: translateY(-2px);
}
.social-row svg { width: 17px; height: 17px; }

/* ---------- Floating WhatsApp ---------- */
.wa-fab {
  position: fixed;
  right: clamp(14px, 3vw, 26px);
  bottom: clamp(14px, 3vw, 26px);
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.15rem 0.8rem 0.9rem;
  background: #1FA855;
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 30px -8px rgba(31,168,85,0.6);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.wa-fab:hover { background: #178c46; transform: translateY(-3px); box-shadow: 0 14px 36px -8px rgba(31,168,85,0.7); }
.wa-fab svg { width: 25px; height: 25px; flex: none; }
.wa-fab__label { display: none; }
@media (min-width: 520px) { .wa-fab__label { display: inline; } }
@media (max-width: 519px) { .wa-fab { padding: 0.85rem; } }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal-stagger.is-in > * { opacity: 1; transform: none; }
.reveal-stagger.is-in > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger.is-in > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.is-in > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-in > *:nth-child(4) { transition-delay: 0.22s; }
.reveal-stagger.is-in > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.is-in > *:nth-child(6) { transition-delay: 0.34s; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--green-700);
  color: var(--cream-50);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--sp-4); }
.mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mb-5 { margin-bottom: var(--sp-5); }
.mb-6 { margin-bottom: var(--sp-6); }
.max-60 { max-width: 60ch; }
.relative { position: relative; }
.gold { color: var(--gold-600); }
.nowrap { white-space: nowrap; }

@media print {
  .header, .drawer, .wa-fab, .cta-band, .footer, .toc { display: none !important; }
  body { background: #fff; }
  .section { padding-block: 1rem; }
}
