/* =========================================================================
   Salsa Systems landing page — layered on top of colors_and_type.css
   ========================================================================= */

/* -------- Dark mode token overrides -------- */
html[data-theme="dark"] {
  --parchment:       #1A1814;   /* deep warm charcoal */
  --floral-white:    #221F1A;   /* elevated surface */
  --carbon-black:    #F0EEE4;   /* inverted text */
  --copper-700:      #E28F78;
  --copper-300:      #C4573F;

  --bg:              #1A1814;
  --bg-elevated:     #221F1A;
  --bg-inverse:      #F4F3EE;

  --fg:              #F0EEE4;
  --fg-muted:        rgba(240, 238, 228, 0.62);
  --fg-subtle:       rgba(240, 238, 228, 0.40);
  --fg-inverse:      #1A1814;

  --ink-100:         rgba(240, 238, 228, 1.00);
  --ink-80:          rgba(240, 238, 228, 0.80);
  --ink-60:          rgba(240, 238, 228, 0.60);
  --ink-40:          rgba(240, 238, 228, 0.40);
  --ink-20:          rgba(240, 238, 228, 0.18);
  --ink-12:          rgba(240, 238, 228, 0.12);
  --ink-08:          rgba(240, 238, 228, 0.08);
  --ink-04:          rgba(240, 238, 228, 0.04);

  --border:          rgba(240, 238, 228, 0.10);
  --border-strong:   rgba(240, 238, 228, 0.22);

  --accent-fg:       #1A1814;
}

html, body { background: var(--bg); color: var(--fg); transition: background 280ms var(--ease-out), color 280ms var(--ease-out); }

/* -------- Scroll reveal (subtle) -------- */
/* Decelerating ease — fast at start, glides to rest at the end */
:root {
  --ease-decel: cubic-bezier(.16, 1, .3, 1);
}
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 760ms var(--ease-decel), transform 760ms var(--ease-decel);
  will-change: opacity, transform;
}
.reveal-in { opacity: 1 !important; transform: translateY(0) !important; }

/* Staggered children — slide variant (default) */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 680ms var(--ease-decel), transform 680ms var(--ease-decel);
}
.reveal-stagger.reveal-in > *             { opacity: 1 !important; transform: translateY(0) !important; }

/* Staggered children — pop variant: scale up + rise, like emerging from a card */
.reveal-pop > * {
  opacity: 0;
  transform: translateY(6px) scale(0.94);
  transform-origin: center;
  transition: opacity 600ms var(--ease-decel), transform 700ms var(--ease-decel);
}
.reveal-pop.reveal-in > * { opacity: 1 !important; transform: translateY(0) scale(1) !important; }

/* Stagger delays apply to both variants — keep them tight (~50ms) for the pop so it feels like a cascade, not a slow march */
.reveal-stagger.reveal-in > *:nth-child(2),  .reveal-pop.reveal-in > *:nth-child(2)  { transition-delay: 60ms; }
.reveal-stagger.reveal-in > *:nth-child(3),  .reveal-pop.reveal-in > *:nth-child(3)  { transition-delay: 110ms; }
.reveal-stagger.reveal-in > *:nth-child(4),  .reveal-pop.reveal-in > *:nth-child(4)  { transition-delay: 160ms; }
.reveal-stagger.reveal-in > *:nth-child(5),  .reveal-pop.reveal-in > *:nth-child(5)  { transition-delay: 210ms; }
.reveal-stagger.reveal-in > *:nth-child(6),  .reveal-pop.reveal-in > *:nth-child(6)  { transition-delay: 260ms; }
.reveal-pop.reveal-in > *:nth-child(7)  { transition-delay: 300ms; }
.reveal-pop.reveal-in > *:nth-child(8)  { transition-delay: 340ms; }
.reveal-pop.reveal-in > *:nth-child(9)  { transition-delay: 380ms; }
.reveal-pop.reveal-in > *:nth-child(10) { transition-delay: 410ms; }
.reveal-pop.reveal-in > *:nth-child(11) { transition-delay: 440ms; }
.reveal-pop.reveal-in > *:nth-child(12) { transition-delay: 470ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > *, .reveal-pop > * { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* Sensible base */
img { max-width: 100%; display: block; }
button { font-family: var(--font-sans); }

/* -------- Shell -------- */
.shell { min-height: 100vh; }
.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 40px;
}

/* -------- Nav -------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-fast) var(--ease-in-out), background var(--dur-med) var(--ease-out);
}
.nav.scrolled { border-bottom-color: var(--ink-08); }
.nav-inner {
  max-width: var(--content-max); margin: 0 auto;
  height: var(--nav-height); padding: 0 40px;
  display: flex; align-items: center; gap: 48px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-serif); font-size: 20px; letter-spacing: -0.01em;
  color: var(--fg); text-decoration: none;
}
.brand-mark {
  width: 32px; height: 32px; display: block;
  border-radius: 6px;
  background: transparent;
}
html[data-theme="dark"] .brand-mark {
  /* Swap to inverse logo via CSS content trick won't work on <img>; handled in Nav via data-theme detection below */
}
.nav-links { display: flex; gap: 32px; flex: 1; }
.nav-links a {
  font-family: var(--font-sans); font-size: 14px; color: var(--ink-80);
}
.nav-links a:hover { color: var(--fg); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-signin { font-family: var(--font-sans); font-size: 14px; color: var(--ink-80); }

/* Theme toggle */
.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--ink-12); background: transparent;
  display: grid; place-items: center; cursor: pointer;
  color: var(--fg); transition: background var(--dur-fast), border-color var(--dur-fast);
}
.theme-toggle:hover { background: var(--ink-04); border-color: var(--ink-20); }
.theme-toggle svg { width: 16px; height: 16px; stroke-width: 1.5; }

/* -------- Buttons (extend design system) -------- */
.btn { white-space: nowrap; }
.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 16px 26px; font-size: 16px; }
.btn-primary { background: var(--boxy-copper); color: var(--floral-white); }
html[data-theme="dark"] .btn-primary { color: #1A1814; font-weight: 600; }
.btn-primary:hover { background: var(--copper-700); }

.btn-ghost {
  background: transparent; color: var(--fg);
  border: 1px solid var(--ink-20);
}
.btn-ghost:hover { background: var(--ink-04); }

.btn-on-dark {
  background: var(--boxy-copper); color: #FBFBF2;
}
.btn-on-dark:hover { background: var(--copper-700); }

.btn-ghost-on-dark {
  background: transparent; color: var(--floral-white);
  border: 1px solid rgba(251,251,242,0.28);
}
.btn-ghost-on-dark:hover { background: rgba(251,251,242,0.06); }

.btn .arrow {
  display: inline-block; transition: transform var(--dur-fast) var(--ease-out);
  width: 14px; height: 14px;
}
.btn:hover .arrow { transform: translateX(3px); }

/* -------- Eyebrow -------- */
.eyebrow-row {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--boxy-copper);
}
.eyebrow-row .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--boxy-copper);
  display: inline-block;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

/* -------- Hero -------- */
.hero { padding: 80px 0 120px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; pointer-events: none;
  width: 560px; height: 560px; border-radius: 50%;
  border: 1px solid var(--ink-08);
  right: -240px; top: 40px;
}
.hero::after {
  content: ""; position: absolute; pointer-events: none;
  width: 360px; height: 360px; border-radius: 50%;
  border: 1px solid rgba(189,99,74,0.16);
  right: -120px; top: 160px;
}
.hero-inverted::before, .hero-inverted::after { border-color: rgba(251,251,242,0.12); }
.hero-inner { max-width: var(--content-max); margin: 0 auto; padding: 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: end;
}
.hero-grid-single {
  grid-template-columns: 1fr;
  max-width: 880px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(52px, 7.2vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 400;
  color: var(--fg);
  margin: 24px 0 32px;
}
.hero-title .accent { color: var(--boxy-copper); font-style: italic; font-weight: 400; }
.hero-lead {
  font-family: var(--font-sans);
  font-size: 19px; line-height: 1.55;
  color: var(--ink-80);
  max-width: 46ch;
  margin: 0 0 40px;
}
.hero-actions { display: flex; align-items: center; gap: 20px; margin-bottom: 56px; flex-wrap: wrap; }
.hero-cta-wink {
  font-family: var(--font-sans); font-size: 13px; color: var(--ink-60);
  font-style: italic;
}
.hero-meta {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-family: var(--font-sans); font-size: 13px; color: var(--ink-60);
  padding-top: 32px; border-top: 1px solid var(--ink-08);
}
.hero-meta strong { color: var(--fg); font-weight: 500; }

/* Hero side panel — a calm, premium "receipt" of what happens */
.hero-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--ink-08);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  max-width: 380px; margin-left: auto;
}
.hero-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px; margin-bottom: 16px;
  border-bottom: 1px solid var(--ink-08);
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-60);
}
.hero-panel-head .live {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--boxy-copper);
}
.hero-panel-head .live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--boxy-copper);
  box-shadow: 0 0 0 0 rgba(214, 104, 83, 0.6);
  animation: pulse 2s ease-in-out infinite;
}
.hero-panel-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 10px 0; gap: 16px;
  font-family: var(--font-sans); font-size: 14px;
}
.hero-panel-row + .hero-panel-row { border-top: 1px dashed var(--ink-08); }
.hero-panel-row .label { color: var(--ink-80); }
.hero-panel-row .value { color: var(--fg); font-variant-numeric: tabular-nums; font-weight: 500; }
.hero-panel-row .value.copper { color: var(--boxy-copper); }
.hero-panel-foot {
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--ink-08);
  font-family: var(--font-serif); font-size: 17px; color: var(--fg);
  line-height: 1.3;
}
.hero-panel-foot em { font-style: italic; color: var(--boxy-copper); }

/* -------- Who we work with (logos + copy) -------- */
.who {
  padding: 96px 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--ink-08);
  border-bottom: 1px solid var(--ink-08);
  position: relative; overflow: hidden;
}
.who::before {
  content: ""; position: absolute; pointer-events: none;
  width: 420px; height: 420px; border-radius: 50%;
  border: 1px solid var(--ink-08);
  left: -210px; bottom: -200px;
}
.who-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px;
  align-items: center;
}
.who h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin: 16px 0 20px;
}
.who p { color: var(--ink-80); font-size: 16px; max-width: 38ch; margin: 0; }
.who-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 24px;
  background: var(--bg-elevated);
  border: 1px solid var(--ink-08);
  border-radius: 12px;
}
.who-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--bg);
  border: 1px solid var(--ink-08);
  border-radius: 2px;
  font-family: var(--font-sans); font-size: 14px; color: var(--fg);
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.who-tag:hover { border-color: var(--boxy-copper); color: var(--boxy-copper); }
.who-tag .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--teal-blue); }
.who-tag:nth-child(3n+1) .dot { background: var(--boxy-copper); }
.who-tag:nth-child(3n+2) .dot { background: var(--teal-blue); }
.who-tag:nth-child(3n) .dot { background: var(--carbon-black); }
html[data-theme="dark"] .who-tag:nth-child(3n) .dot { background: var(--fg); }

.who-cta {
  margin-top: 32px;
  display: inline-flex; align-items: center; gap: 14px;
}

/* -------- How it works -------- */
.how {
  padding: 120px 0;
  border-top: 1px solid var(--ink-08);
  background: var(--bg-elevated);
}
.how-head { max-width: var(--content-max); margin: 0 auto; padding: 0 40px 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; }
.how-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  font-weight: 400;
  margin: 16px 0 0;
  max-width: 16ch;
}
.how-head p { color: var(--ink-80); font-size: 17px; line-height: 1.55; max-width: 42ch; margin: 0; align-self: end; }

.steps {
  max-width: var(--content-max); margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.step {
  padding: 40px 32px 40px 0;
  border-top: 1px solid var(--ink-20);
  position: relative;
}
.step + .step { padding-left: 32px; }
.step + .step::before {
  content: ""; position: absolute; left: 0; top: 40px; bottom: 40px;
  width: 1px; background: var(--ink-08);
}
.step-num {
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.1em; color: var(--boxy-copper);
  margin-bottom: 24px;
}
.step-title {
  font-family: var(--font-serif);
  font-size: 28px; line-height: 1.15; letter-spacing: -0.02em;
  font-weight: 400; color: var(--fg);
  margin: 0 0 14px;
}
.step-body { color: var(--ink-80); font-size: 15px; line-height: 1.6; margin: 0 0 24px; }
.step-detail {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-60);
  border-left: 2px solid var(--boxy-copper);
  padding: 6px 0 6px 14px;
  max-width: 32ch;
}

.how-cta {
  max-width: var(--content-max); margin: 72px auto 0; padding: 0 40px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.how-cta p { margin: 0; color: var(--ink-80); font-size: 15px; }

/* -------- Case studies — stat cards -------- */
.cases {
  padding: 120px 0;
  border-top: 1px solid var(--ink-08);
}
.cases-head {
  max-width: var(--content-max); margin: 0 auto 56px; padding: 0 40px;
}
.cases-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.05; letter-spacing: -0.028em; font-weight: 400;
  margin: 16px 0 20px; max-width: 18ch;
}
.cases-head p { color: var(--ink-80); font-size: 17px; max-width: 54ch; margin: 0; }

.case-grid {
  max-width: var(--content-max); margin: 0 auto; padding: 0 40px;
  display: grid; gap: 20px;
}
.case-grid-3 { grid-template-columns: repeat(3, 1fr); }
.case-grid-row { grid-template-columns: repeat(3, 1fr); }
.case-grid-row-secondary { grid-template-columns: repeat(2, 1fr); margin-top: 20px; max-width: calc(var(--content-max) * 0.68); margin-left: auto; margin-right: auto; }

.case {
  background: var(--bg-elevated);
  border: 1px solid var(--ink-08);
  border-radius: 12px;
  padding: 36px 32px;
  display: flex; flex-direction: column;
  min-height: 340px;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), border-color var(--dur-med) var(--ease-out);
}
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--ink-20); }

.case-tag {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-60); margin-bottom: 20px;
}
.case-clinic {
  font-family: var(--font-serif); font-size: 19px;
  color: var(--fg); letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.case-stat {
  font-family: var(--font-serif);
  font-size: clamp(56px, 6vw, 84px);
  line-height: 0.95; letter-spacing: -0.045em;
  color: var(--fg); font-weight: 400;
  margin: 0 0 12px;
  display: flex; align-items: baseline; gap: 2px;
}
.case-stat .unit { font-size: 0.4em; color: var(--boxy-copper); margin-left: 4px; letter-spacing: -0.02em; }
.arrow-ind { display: inline-flex; align-items: center; margin-left: 8px; color: var(--teal-blue); }
.arrow-ind.up { color: var(--boxy-copper); }
.case-metric-label {
  font-family: var(--font-sans); font-size: 14px;
  color: var(--ink-80); line-height: 1.5;
  margin: 0 0 auto; padding-bottom: 24px;
}
.case-before-after {
  display: flex; gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-08);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-60);
}
.case-before-after .v { color: var(--fg); font-weight: 500; font-size: 13px; margin-top: 2px; display: block; font-family: var(--font-sans); }
.case-before-after > div { flex: 1; }

/* -------- Featured quote card (shared) -------- */
/* Featured card always sits on near-black regardless of page theme.
   Use hardcoded hex so tokens like --floral-white (inverted in dark mode) don't bleed in. */
.case.featured {
  background: #222222;
  color: #FBFBF2;
  border-color: transparent;
  min-height: 280px;
  justify-content: space-between;
}
html[data-theme="dark"] .case.featured {
  background: #0E0C09;
  border: 1px solid rgba(240, 238, 228, 0.08);
}
.case.featured .case-tag { color: rgba(251,251,242,0.55) !important; }
.case.featured .case-quote { color: #FBFBF2 !important; }
.case.featured .case-cite { color: rgba(251,251,242,0.7) !important; }
.case.featured .case-cite strong { color: #FBFBF2 !important; }

.case-quote {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25; letter-spacing: -0.015em;
  color: #FBFBF2;
  margin: 0 0 auto;
  max-width: 40ch;
}
.case-quote::before { content: "\201C"; color: #D66853; margin-right: 2px; }
.case-quote::after { content: "\201D"; color: #D66853; }
.case-cite {
  font-family: var(--font-sans); font-size: 13px;
  color: rgba(251,251,242,0.7);
  margin-top: 24px;
}
.case-cite strong { color: #FBFBF2; font-weight: 500; display: block; margin-bottom: 2px; }

/* Grid layout — featured occupies full row below the stats */
.case-grid-3 .featured-wide { grid-column: 1 / -1; min-height: 220px; }

/* Staircase (3+3 rows + feature band) — uses row-plus-quote primitives */
.case-grid-row-2 { margin-top: 20px; grid-template-columns: repeat(3, 1fr); }

/* Diagonal staircase — boxes step from top-left to bottom-right */
.case-diagonal {
  max-width: var(--content-max); margin: 0 auto; padding: 0 40px;
  display: flex; flex-direction: column; gap: 20px;
}
.case-diagonal-step {
  /* --i is this step's index (0-based), --n total count */
  width: 64%;
  margin-left: calc((var(--i) / (var(--n) - 1)) * 36%);
  transition: margin var(--dur-med) var(--ease-out);
}
.case-diagonal-step .case {
  min-height: 220px;
}
.case-diagonal-feature {
  margin-top: 24px;
}
.case-diagonal-feature .case.featured {
  min-height: 220px;
  padding: 48px 56px;
}

/* Legacy staircase (flat offset) — kept for safety if referenced */
.case-staircase {
  max-width: var(--content-max); margin: 0 auto; padding: 0 40px;
  display: flex; flex-direction: column; gap: 16px;
}
.case-step-wrap {
  width: calc(100% - 140px);
  margin-left: calc(var(--step) * 46px);
  transition: margin var(--dur-med) var(--ease-out);
}
.case-step-wrap .case {
  min-height: 240px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 28px 32px;
}
.case-step-wrap .case-tag { grid-column: 1 / -1; margin-bottom: 0; }
.case-step-wrap .case-clinic { margin-bottom: 0; }
.case-step-wrap .case-stat { margin: 0; }
.case-step-wrap .case-metric-label { margin: 0; padding: 0; }
.case-step-wrap .case-before-after { display: none; }

.case-staircase-feature {
  margin-top: 24px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive collapse for diagonal */
@media (max-width: 960px) {
  .case-diagonal-step { width: 100%; margin-left: 0; }
}

/* Row-plus-quote layout — featured as full-width band below */
.case-feature-band {
  max-width: var(--content-max); margin: 40px auto 0; padding: 0 40px;
}
.case-feature-band .case.featured {
  min-height: 200px;
  padding: 48px 56px;
}

.cases-cta {
  max-width: var(--content-max); margin: 56px auto 0; padding: 0 40px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cases-cta p { margin: 0; color: var(--ink-80); font-size: 15px; font-style: italic; }

.cases-cta {
  max-width: var(--content-max); margin: 56px auto 0; padding: 0 40px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.cases-cta p { margin: 0; color: var(--ink-80); font-size: 15px; font-style: italic; }

/* -------- Closing CTA — copper block -------- */
.closing {
  position: relative; overflow: hidden;
  background: var(--boxy-copper); color: var(--floral-white);
  padding: 140px 0 130px;
  border-top: 1px solid var(--ink-08);
}
/* Decorative arcs — quiet salsa-bowl curves in the corners */
.closing-arc {
  position: absolute; pointer-events: none;
  border: 1px solid rgba(251,251,242,0.22);
  border-radius: 50%;
}
.closing-arc.a1 {
  width: 520px; height: 520px;
  left: -220px; top: -220px;
}
.closing-arc.a2 {
  width: 720px; height: 720px;
  right: -300px; bottom: -360px;
  border-color: rgba(251,251,242,0.16);
}
.closing-arc.a3 {
  width: 180px; height: 180px;
  right: 8%; top: 12%;
  border-color: rgba(251,251,242,0.18);
}
.closing-inner {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto; padding: 0 40px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.closing .eyebrow-row { color: rgba(251,251,242,0.85); margin-bottom: 28px; }
.closing .eyebrow-row .dot { background: rgba(251,251,242,0.85); }
.closing h2 {
  font-family: var(--font-serif);
  font-size: clamp(44px, 5.4vw, 68px);
  line-height: 1.04; letter-spacing: -0.025em;
  font-weight: 400; color: var(--floral-white);
  margin: 0 0 24px;
  text-wrap: balance;
}
.closing p {
  font-size: 18px; line-height: 1.6;
  color: rgba(251,251,242,0.88);
  max-width: 52ch; margin: 0 0 36px;
  text-wrap: pretty;
}
.closing-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.closing-actions .btn-primary {
  background: var(--floral-white); color: var(--carbon-black);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}
.closing-actions .btn-primary:hover {
  background: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
}
.closing-actions .btn-primary .arrow { color: var(--carbon-black); }
.closing-side {
  display: flex; flex-direction: column; gap: 20px;
  padding: 28px;
  background: rgba(34,34,34,0.92);
  color: var(--floral-white);
  border-radius: 12px;
}
.closing-side-head {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(251,251,242,0.6);
}
.closing-side ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.closing-side li {
  display: flex; gap: 12px; align-items: flex-start;
  font-family: var(--font-sans); font-size: 14px; color: rgba(251,251,242,0.9);
  line-height: 1.45;
}
.closing-side li svg {
  width: 14px; height: 14px; stroke-width: 2;
  color: var(--boxy-copper); flex: 0 0 14px; margin-top: 4px;
}

/* Split layout — copy on the left, calendly on the right */
.closing-inner-split {
  max-width: var(--content-max) !important;
  grid-template-columns: 0.85fr 1.4fr !important;
  gap: 56px !important;
  text-align: left !important;
  justify-items: stretch !important;
  align-items: center;
}
.closing-inner-split > .reveal { padding-top: 0; }
.closing-calendar {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}
.closing-calendar .calendly-inline-widget {
  width: 100%;
  border-radius: 0;
}
@media (max-width: 960px) {
  .closing-inner-split {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .closing-calendar .calendly-inline-widget { height: 620px !important; }
}

/* -------- Currently working with -------- */
.current {
  padding: 110px 0;
  position: relative; overflow: hidden;
  border-top: 1px solid var(--ink-08);
  background: var(--bg);
}
.current-inner {
  max-width: 880px; margin: 0 auto; padding: 0 40px;
  display: flex; flex-direction: column; gap: 32px;
}
.current-eyebrow { text-align: center; }
.current-eyebrow .eyebrow-row { justify-content: center; }
.current-card {
  background: var(--bg-elevated);
  border: 1px solid var(--ink-08);
  border-radius: 16px;
  padding: 44px 44px 40px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
  overflow: hidden;
}
.current-card::before {
  content: ""; position: absolute; left: 32px; right: 32px; top: 0;
  height: 3px; background: var(--boxy-copper); border-radius: 0 0 2px 2px;
}
.current-card-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 24px;
  flex-wrap: wrap;
}
.current-clinic {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.1;
  margin: 0 0 6px;
  color: var(--fg);
  font-weight: 500;
}
.current-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-60);
  text-transform: uppercase;
}
.current-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-60); text-decoration: none;
  letter-spacing: 0.04em;
  padding-top: 6px;
}
.current-link:hover { color: var(--boxy-copper); }
.current-link svg { width: 12px; height: 12px; }
.current-body {
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg);
  margin: 0;
  max-width: 56ch;
}
.current-body-secondary {
  font-size: 16px;
  color: var(--ink-80);
}
.current-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding-top: 8px;
}
.current-tags span {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--ink-08);
  border-radius: 999px;
  color: var(--ink-60);
}
.current-tags span:last-child {
  border-color: var(--boxy-copper);
  color: var(--boxy-copper);
}
.current-cta { text-align: center; }
@media (max-width: 720px) {
  .current { padding: 72px 0; }
  .current-card { padding: 28px; }
  .current-clinic { font-size: 26px; }
  .current-body { font-size: 16px; }
}
.footer {
  background: var(--bg);
  padding: 80px 0 40px;
  border-top: 1px solid var(--ink-08);
}
.footer-inner {
  max-width: var(--content-max); margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 2fr 3fr; gap: 64px;
  padding-bottom: 56px; border-bottom: 1px solid var(--ink-08);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer-brand .brand { font-size: 22px; }
.footer-tag {
  font-family: var(--font-sans); font-size: 14px; color: var(--ink-60);
  line-height: 1.55; margin: 4px 0 0;
  font-style: italic;
}
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-cols h5 {
  font-family: var(--font-sans); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-60); margin: 0 0 16px;
}
.footer-cols a {
  display: block; font-family: var(--font-sans); font-size: 14px;
  color: var(--ink-80); padding: 5px 0;
}
.footer-bottom {
  max-width: var(--content-max); margin: 24px auto 0; padding: 0 40px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-family: var(--font-sans); font-size: 12px; color: var(--ink-60);
}

/* Centered footer variant */
.footer.footer-tight {
  padding: 40px 0 28px;
}
.footer-inner-centered {
  grid-template-columns: 1fr !important;
  justify-items: center;
  text-align: center;
  padding-bottom: 20px !important;
  border-bottom: none !important;
}
.footer-tight .footer-inner-centered { padding-bottom: 16px !important; }
.footer-brand-centered {
  align-items: center;
  max-width: 480px;
  text-align: center;
  gap: 0 !important;
}
.footer-brand-centered .brand { font-size: 18px !important; }
.footer-brand-centered .footer-tag { margin: 0; }
.footer-bottom-centered {
  justify-content: center;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  margin-top: 0 !important;
  padding-top: 0;
  border-top: none;
}
.footer-legal-links {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-60);
}
.footer-legal-links a {
  color: var(--ink-60);
  text-decoration: none;
  font-size: 11px;
}
.footer-legal-links a:hover { color: var(--fg); text-decoration: underline; }
.footer-legal-links .sep { color: var(--ink-20); }

/* -------- Modal (booking) -------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(34,34,34,0.55);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--dur-med) var(--ease-out);
}
.modal-backdrop.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--ink-08);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px;
  padding: 40px;
  transform: translateY(8px);
  transition: transform var(--dur-med) var(--ease-out);
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.modal h3 {
  font-family: var(--font-serif); font-size: 28px;
  letter-spacing: -0.02em; font-weight: 400; color: var(--fg);
  margin: 0;
}
.modal-sub { color: var(--ink-80); font-size: 15px; margin: 0 0 28px; }
.modal-close {
  background: transparent; border: 1px solid var(--ink-12);
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  color: var(--fg); flex: 0 0 34px;
}
.modal-close:hover { background: var(--ink-04); }

.modal-embed {
  height: 420px;
  background: var(--bg);
  border: 1px dashed var(--ink-20);
  border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  color: var(--ink-60);
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 24px;
  text-align: center;
}
.modal-embed .big {
  font-family: var(--font-serif); font-size: 22px;
  color: var(--fg); letter-spacing: -0.01em;
  text-transform: none; font-weight: 400;
  max-width: 30ch;
  line-height: 1.3;
}
.modal-embed .slots {
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  font-family: var(--font-mono); font-size: 11px;
}
.modal-embed .slot {
  padding: 8px 12px; border: 1px solid var(--ink-12);
  border-radius: 4px; background: var(--bg-elevated);
  color: var(--fg);
  cursor: pointer; transition: all var(--dur-fast);
}
.modal-embed .slot:hover { border-color: var(--boxy-copper); color: var(--boxy-copper); }

/* -------- Media queries -------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-panel { margin-left: 0; max-width: none; }
  .who-grid { grid-template-columns: 1fr; gap: 40px; }
  .how-head { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr; }
  .step { padding: 32px 0 !important; border-top: 1px solid var(--ink-08); }
  .step + .step::before { display: none; }
  .case-grid, .case-grid-3, .case-grid-row, .case-grid-row-secondary { grid-template-columns: 1fr; max-width: none; }
  .case.featured { grid-column: span 1; }
  .case-step-wrap { width: 100%; margin-left: 0; }
  .case-step-wrap .case { grid-template-columns: 1fr; gap: 16px; padding: 28px; }
  .closing-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
