/* ==========================================================================
   careHope.AI — Marketing site stylesheet
   Plain CSS, no build step. Mobile-first, component-based sections below.
   ========================================================================== */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { height: 100%; }
body { line-height: 1.5; -webkit-font-smoothing: antialiased; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; text-wrap: balance; }
p { text-wrap: pretty; }

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

/* ---------- Design tokens ---------- */
:root {
  /* Color: warm, calm, clinical-but-not-cold */
  --bg: #FAF8F4;
  --bg-alt: #F2EEE4;
  --bg-deep: #0F221D;
  --ink: #16241F;
  --ink-soft: #4B5B54;
  --ink-faint: #7C897F;
  --border: #E3DECF;
  --border-strong: #CFC7B0;

  --primary: #0F6B5C;
  --primary-dark: #0A4F44;
  --primary-tint: #E4EFE9;
  --primary-tint-strong: #CFE3D9;

  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --whatsapp-ink: #0B3D24;

  --alert: #A8412F;
  --alert-tint: #F6E7E2;
  --amber: #8F5D0C;
  --amber-tint: #F7EDDA;

  --white: #FFFFFF;

  --shadow-sm: 0 1px 2px rgba(22, 36, 31, 0.07);
  --shadow-md: 0 10px 30px -14px rgba(22, 36, 31, 0.28);
  --shadow-lg: 0 24px 48px -20px rgba(22, 36, 31, 0.32);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --container: 1180px;
  --pad-inline: clamp(20px, 5vw, 32px);
  --section-pad: clamp(56px, 8vw, 108px);

  --fs-h1: clamp(2.1rem, 1.55rem + 2.7vw, 3.4rem);
  --fs-h2: clamp(1.65rem, 1.35rem + 1.5vw, 2.4rem);
  --fs-h3: clamp(1.2rem, 1.08rem + 0.6vw, 1.4rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.35vw, 1.2rem);
  --fs-body: 1rem;
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
}

/* ---------- Layout helpers ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-inline);
}

.section {
  padding-block: var(--section-pad);
}

.section--alt { background: var(--bg-alt); }
.section--deep { background: var(--bg-deep); color: #EEF3F0; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

.section-head {
  max-width: 680px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-head h2 { font-size: var(--fs-h2); margin-bottom: 14px; }
.section--deep .section-head h2 { color: #fff; }
.section-head p { font-size: var(--fs-lead); color: var(--ink-soft); }
.section--deep .section-head p { color: #C4D3CC; }

/* ---------- Typography ---------- */
.text-lead { font-size: var(--fs-lead); color: var(--ink-soft); }
.text-muted { color: var(--ink-faint); }
.text-sm { font-size: var(--fs-sm); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid transparent;
  transition: transform 0.15s var(--ease), background-color 0.15s var(--ease), border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; }

.btn-whatsapp {
  background: var(--whatsapp);
  color: #0B2B1A;
  box-shadow: var(--shadow-sm);
}
.btn-whatsapp:hover { background: var(--whatsapp-dark); box-shadow: var(--shadow-md); }
.btn-whatsapp:focus-visible { outline: 3px solid var(--whatsapp-ink); outline-offset: 2px; }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-secondary:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-tint); }
.section--deep .btn-secondary { color: #fff; border-color: rgba(255,255,255,0.35); }
.section--deep .btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

.btn-ghost {
  padding: 8px 4px;
  gap: 6px;
  color: var(--primary-dark);
  font-weight: 600;
  border-radius: 4px;
}
.btn-ghost:hover { gap: 10px; }
.btn-ghost svg { transition: transform 0.15s var(--ease); }

.btn-lg { padding: 18px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Site header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: saturate(160%) blur(6px);
  border-bottom: 1px solid var(--border);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  flex: none;
}
.brand__mark { width: 32px; height: 32px; flex: none; }
.brand__name .brand__ai { color: var(--primary); }

.site-nav {
  display: none;
}
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav__list a {
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.site-nav__list a:hover { color: var(--ink); }
.site-nav__list a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--primary);
}

.header-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: transparent;
  flex: none;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  position: fixed;
  inset: 0;
  top: 65px;
  background: var(--bg);
  z-index: 99;
  padding: 24px var(--pad-inline) 32px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
}
.mobile-nav[data-open="true"] {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav { transition: opacity 0.01ms; transform: none; }
}
.mobile-nav__list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; }
.mobile-nav__list a {
  display: block;
  padding: 14px 4px;
  font-size: 1.15rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.mobile-nav__list a[aria-current="page"] { color: var(--primary-dark); }

@media (min-width: 900px) {
  .site-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle, .mobile-nav { display: none; }
}

/* ---------- Floating mobile WhatsApp button ---------- */
.float-whatsapp {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #0B2B1A;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
}
.float-whatsapp svg { width: 28px; height: 28px; }
@media (min-width: 900px) { .float-whatsapp { display: none; } }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(40px, 7vw, 88px) clamp(48px, 7vw, 96px);
}
.hero__grid {
  display: grid;
  gap: clamp(32px, 6vw, 56px);
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-tint);
  color: var(--primary-dark);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.hero h1 { font-size: var(--fs-h1); margin-bottom: 18px; }
.hero h1 em { color: var(--primary-dark); font-style: normal; }
.hero__lead { font-size: var(--fs-lead); color: var(--ink-soft); max-width: 52ch; margin-bottom: 30px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }
.hero__note { font-size: var(--fs-sm); color: var(--ink-faint); }

@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* ---------- Chat mockup ---------- */
.phone {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  max-width: 400px;
  margin-inline: auto;
}
.phone__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--primary-dark);
  color: #fff;
}
.phone__bar-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  flex: none;
}
.phone__bar-avatar svg { width: 18px; height: 18px; }
.phone__bar-name { font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.phone__bar-status { font-size: 0.75rem; color: #BFE1D3; }

.phone__body {
  padding: 18px 14px;
  background: #EAE3D3;
  background-image: radial-gradient(circle at 20% 10%, rgba(255,255,255,0.4), transparent 60%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
}

.bubble {
  max-width: 84%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.42;
  box-shadow: var(--shadow-sm);
}
.bubble--in {
  align-self: flex-start;
  background: var(--white);
  border-bottom-left-radius: 4px;
  color: var(--ink);
}
.bubble--out {
  align-self: flex-end;
  background: #D6F3DE;
  border-bottom-right-radius: 4px;
  color: #0B2B1A;
}
.bubble--system {
  align-self: center;
  background: rgba(255,255,255,0.7);
  color: var(--ink-soft);
  font-size: 0.75rem;
  border-radius: var(--radius-full);
  padding: 5px 12px;
  box-shadow: none;
}
.bubble__time {
  display: block;
  font-size: 0.68rem;
  color: var(--ink-faint);
  margin-top: 4px;
  text-align: right;
}
.bubble--in .bubble__time { color: var(--ink-faint); }

.phone__quick {
  display: flex;
  gap: 8px;
  padding: 10px 14px 14px;
  background: #EAE3D3;
  flex-wrap: wrap;
}
.phone__quick span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--white);
  border: 1px solid var(--primary-tint-strong);
  padding: 7px 12px;
  border-radius: var(--radius-full);
}

/* ---------- Feature/problem grids ---------- */
.grid {
  display: grid;
  gap: 20px;
}
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
}
.card--flat { background: transparent; border: none; padding: 0; }

.icon-tile {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--primary-tint);
  color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  flex: none;
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile--amber { background: var(--amber-tint); color: var(--amber); }
.icon-tile--alert { background: var(--alert-tint); color: var(--alert); }
.icon-tile--whatsapp { background: #DFF6E6; color: var(--whatsapp-dark); }

.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--ink-soft); font-size: var(--fs-sm); }

.problem-row {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.problem-row:last-child { border-bottom: none; }
.problem-row__mark {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--alert-tint);
  color: var(--alert);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.problem-row p { color: var(--ink-soft); }
.problem-row strong { color: var(--ink); font-weight: 600; }

/* ---------- Flow diagram (patient -> product -> outcome) ---------- */
.flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.flow__node {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}
.flow__node-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary-tint); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.flow__node-icon svg { width: 21px; height: 21px; }
.flow__node strong { display: block; font-size: 1rem; }
.flow__node span { display: block; font-size: var(--fs-sm); color: var(--ink-soft); margin-top: 2px; }
.flow__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 0;
  color: var(--ink-faint);
}
.flow__arrow svg { width: 20px; height: 20px; }

.flow__branches {
  display: grid;
  gap: 14px;
  margin-top: 0;
}
@media (min-width: 760px) {
  .flow__branches { grid-template-columns: repeat(3, 1fr); }
}
.flow__branch { display: flex; flex-direction: column; gap: 0; }
.flow__branch .flow__node { height: 100%; }
.flow__branch--routine .flow__node-icon { background: var(--primary-tint); color: var(--primary-dark); }
.flow__branch--appointment .flow__node-icon { background: var(--amber-tint); color: var(--amber); }
.flow__branch--alert .flow__node-icon { background: var(--alert-tint); color: var(--alert); }

@media (min-width: 760px) {
  .flow--horizontal { flex-direction: row; align-items: center; }
  .flow--horizontal .flow__node { flex: 1; flex-direction: column; text-align: center; }
  .flow--horizontal .flow__arrow { transform: none; padding-inline: 6px; }
  .flow--horizontal .flow__arrow svg { transform: rotate(-90deg); }
}
@media (min-width: 760px) {
  .flow--horizontal.flow--row .flow__arrow svg { transform: none; }
}

/* Trust ladder (routine / emergency / unknown) */
.ladder { display: grid; gap: 16px; }
@media (min-width: 860px) { .ladder { grid-template-columns: repeat(3, 1fr); } }
.ladder__item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ladder__from {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.ladder__to { font-size: 1.05rem; font-weight: 700; }
.ladder__item p { color: var(--ink-soft); font-size: var(--fs-sm); }
.ladder__item--routine .ladder__to { color: var(--primary-dark); }
.ladder__item--emergency .ladder__to { color: var(--alert); }
.ladder__item--unknown .ladder__to { color: var(--amber); }

/* ---------- Dashboard mockup ---------- */
.dashboard {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.dashboard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.dashboard__dots { display: flex; gap: 6px; }
.dashboard__dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.dashboard__title { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-soft); }
.dashboard__grid {
  display: grid;
  gap: 1px;
  background: var(--border);
}
@media (min-width: 760px) { .dashboard__grid { grid-template-columns: repeat(2, 1fr); } }
.dashboard__panel { background: var(--white); padding: 20px; }
.dashboard__panel h4 {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.95rem; margin-bottom: 14px; color: var(--ink);
}
.dashboard__panel h4 svg { width: 18px; height: 18px; color: var(--primary-dark); }

.d-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: var(--fs-sm);
}
.d-row:last-child { border-bottom: none; }
.d-row__meta { color: var(--ink-faint); font-size: var(--fs-xs); }
.pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.pill--ok { background: var(--primary-tint); color: var(--primary-dark); }
.pill--wait { background: var(--amber-tint); color: var(--amber); }
.pill--alert { background: var(--alert-tint); color: var(--alert); }

.sop-field {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 12px; border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm); font-size: var(--fs-sm); margin-bottom: 8px;
}
.sop-field:last-child { margin-bottom: 0; }
.sop-field__label { color: var(--ink-faint); font-size: var(--fs-xs); }
.sop-field__edit { color: var(--primary-dark); font-weight: 600; font-size: var(--fs-xs); }

/* ---------- Steps list ---------- */
.steps { display: grid; gap: 22px; counter-reset: step; }
@media (min-width: 760px) { .steps--4 { grid-template-columns: repeat(2, 1fr); } }
.step {
  display: flex;
  gap: 16px;
}
.step__num {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: var(--fs-sm); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--primary-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 56px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-band h2 { font-size: var(--fs-h2); max-width: 24ch; }
.cta-band p { color: #CFE3D9; max-width: 48ch; font-size: var(--fs-lead); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px 22px;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { flex: none; width: 20px; height: 20px; color: var(--ink-faint); transition: transform 0.2s var(--ease); }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item p, .faq-item ul {
  padding-bottom: 20px;
  color: var(--ink-soft);
  font-size: var(--fs-sm);
  max-width: 68ch;
}
.faq-item li { position: relative; padding-left: 18px; margin-bottom: 6px; }
.faq-item li::before { content: "–"; position: absolute; left: 0; color: var(--ink-faint); }

/* ---------- Contact page ---------- */
.contact-hero {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
}
.contact-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 5vw, 44px);
  max-width: 560px;
  margin: 0 auto clamp(40px, 6vw, 64px);
  text-align: center;
}
.contact-panel__icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: #DFF6E6; color: var(--whatsapp-dark);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.contact-panel__icon svg { width: 30px; height: 30px; }
.contact-panel h2 { font-size: 1.4rem; margin-bottom: 10px; }
.contact-panel p { color: var(--ink-soft); margin-bottom: 22px; }

.next-steps { display: flex; flex-direction: column; gap: 0; max-width: 640px; margin-inline: auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-deep);
  color: #C9D4CD;
  padding-block: clamp(44px, 6vw, 72px) 28px;
}
.footer__grid {
  display: grid;
  gap: 36px;
  margin-bottom: 36px;
}
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 12px; }
.footer__brand svg { width: 28px; height: 28px; }
.footer p { font-size: var(--fs-sm); color: #A9B8AF; max-width: 42ch; }
.footer h5 { color: #fff; font-size: var(--fs-sm); font-weight: 700; margin-bottom: 14px; letter-spacing: 0.02em; }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: var(--fs-sm); color: #A9B8AF; }
.footer__links a:hover { color: #fff; }
.footer__cta { margin-top: 6px; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: #8AA093;
}

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute; 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;
  left: 12px; top: -60px;
  background: var(--primary-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 200;
  transition: top 0.15s var(--ease);
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2.5px solid var(--primary-dark);
  outline-offset: 2px;
}

.stack { display: flex; flex-direction: column; }
.gap-xs { gap: 8px; } .gap-sm { gap: 14px; } .gap-md { gap: 22px; }
.mt-lg { margin-top: clamp(32px, 5vw, 48px); }
.center-text { text-align: center; }
.max-prose { max-width: 62ch; }

.divider { height: 1px; background: var(--border); border: none; margin-block: var(--section-pad); }

/* Visible by default — JS opts elements INTO the hidden pre-animation state
   (see main.js) so a blocked/slow/failed script never leaves content invisible. */
.reveal { transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.reveal--pending { opacity: 0; transform: translateY(14px); }
.reveal.is-visible { opacity: 1; transform: none; }

.badge-inline {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); font-weight: 700; color: var(--ink-faint);
}
