/* ============================================================
   NutriDoc — Website Stylesheet
   Vanilla CSS. No build step. Drop-in ready for STRATO FTP.
   ============================================================ */

:root {
  /* Brand palette (sourced from app tokens) */
  --c-ink: #1d1a15;
  --c-ink-soft: #3a342c;
  --c-stone: #6d6458;
  --c-paper: #f6f1ea;
  --c-paper-2: #ede6dc;
  --c-line: #d8cfc2;
  --c-teal: #6c9f8a;
  --c-teal-deep: #4f7a68;
  --c-teal-wash: #dce9e2;
  --c-rose: #c66b5a;
  --c-amber: #d9a24e;

  /* Typography */
  --f-display: "Fraunces", "Cambria", "Georgia", serif;
  --f-sans: "Geist", "Inter Tight", system-ui, -apple-system, sans-serif;
  --f-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;

  /* Metrics */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-rest: 0 1px 2px rgba(29, 26, 21, 0.04), 0 8px 24px -12px rgba(29, 26, 21, 0.08);
  --shadow-float: 0 10px 30px -12px rgba(29, 26, 21, 0.18),
    0 2px 4px rgba(29, 26, 21, 0.04);

  --ease: cubic-bezier(0.2, 0, 0, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
::selection { background: var(--c-teal); color: var(--c-paper); }

/* Subtle film grain for materiality (fixed, pointer-events-none) */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

/* --- LAYOUT CONTAINERS --- */
.wrap { max-width: 1320px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 40px); }
.wrap-tight { max-width: 860px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 40px); }

/* --- TYPOGRAPHY --- */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--c-teal-deep);
  opacity: 0.5;
}
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--c-ink);
}
h1 {
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}
h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
h1 em, h2 em, h3 em {
  font-style: italic;
  font-family: var(--f-display);
  font-weight: 400;
  color: var(--c-teal-deep);
}
p { margin: 0; max-width: 62ch; }
.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--c-ink-soft);
  line-height: 1.55;
}

/* --- NAV --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  background: rgba(246, 241, 234, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.is-scrolled {
  border-bottom-color: rgba(29, 26, 21, 0.06);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-size: 1.25rem;
  letter-spacing: -0.015em;
}
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  overflow: hidden;
  display: grid; place-items: center;
  background: var(--c-paper-2);
  box-shadow: 0 1px 2px rgba(29, 26, 21, 0.06), 0 6px 14px -6px rgba(29, 26, 21, 0.18);
  flex: none;
}
.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.brand em { font-style: italic; color: var(--c-teal-deep); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
}
.nav-links a {
  color: var(--c-ink-soft);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--c-teal-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--c-ink); }
.nav-links a:hover::after { transform: scaleX(1); }
@media (max-width: 760px) {
  .nav-links { display: none; }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.2s var(--spring),
              background 0.2s var(--ease),
              box-shadow 0.2s var(--ease),
              color 0.2s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-ink);
  color: var(--c-paper);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 20px -10px rgba(29, 26, 21, 0.5);
}
.btn-primary:hover { transform: translateY(-1px); background: var(--c-teal-deep); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border: 1px solid rgba(29, 26, 21, 0.14);
}
.btn-ghost:hover { background: rgba(29, 26, 21, 0.04); border-color: rgba(29, 26, 21, 0.22); }

.btn-arrow::after {
  content: "→";
  font-family: var(--f-sans);
  transition: transform 0.3s var(--spring);
  margin-left: 2px;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* --- HERO --- */
.hero {
  position: relative;
  min-height: calc(100dvh - 76px);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 60px;
  padding-top: clamp(60px, 9vh, 120px);
  padding-bottom: clamp(80px, 12vh, 140px);
}
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; min-height: auto; padding-top: 60px; padding-bottom: 80px; }
}
.hero-copy > * + * { margin-top: 22px; }
.hero h1 .underline-swipe {
  position: relative;
  display: inline-block;
}
.hero h1 .underline-swipe::before {
  content: "";
  position: absolute;
  left: -2%; right: -2%;
  bottom: 6%;
  height: 28%;
  background: var(--c-teal-wash);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: swipe 1.1s 0.5s var(--ease) forwards;
}
@keyframes swipe {
  to { transform: scaleX(1); }
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px !important;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 36px;
  margin-top: 44px !important;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
  max-width: 620px;
}
.hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-meta-item strong {
  font-family: var(--f-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
}
.hero-meta-item span {
  font-size: 12px;
  color: var(--c-stone);
  font-family: var(--f-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- HERO VISUAL (Real Screenshots) --- */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 5/6;
  max-width: 560px;
  margin-left: auto;
}
.hero-orb {
  position: absolute;
  inset: -8% -4% -12% -8%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(108, 159, 138, 0.22),
    rgba(108, 159, 138, 0.06) 45%,
    transparent 72%
  );
  filter: blur(28px);
  animation: float 9s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6px, -10px) scale(1.03); }
}

/* Phone frame holding a real screenshot */
.phone {
  position: absolute;
  margin: auto;
  width: 64%;
  aspect-ratio: 9/19.5;
  background: #0a0a08;
  border-radius: 42px;
  padding: 7px;
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,0.06),
    0 20px 50px -20px rgba(29, 26, 21, 0.45),
    0 50px 100px -40px rgba(29, 26, 21, 0.35);
  transition: transform 0.8s var(--ease);
}
.phone-main {
  left: 0; top: 4%;
  z-index: 2;
  transform: rotate(-3deg);
}
.phone-main:hover { transform: rotate(-1deg) translateY(-6px); }
.phone-aux {
  right: 0; bottom: 0;
  width: 48%;
  z-index: 1;
  transform: rotate(6deg);
  opacity: 0.95;
}
.phone-aux:hover { transform: rotate(4deg) translateY(-4px); }
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 32px;
  display: block;
}

.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-teal);
  box-shadow: 0 0 0 0 rgba(108,159,138, 0.5);
  animation: pulseDot 2s infinite;
  flex: none;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(108,159,138, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(108,159,138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(108,159,138, 0); }
}

@media (max-width: 960px) {
  .hero-visual { max-width: 440px; margin: 0 auto; aspect-ratio: 6/5; }
  .phone-main { width: 52%; top: 0; left: 2%; }
  .phone-aux { width: 40%; right: 2%; bottom: 5%; }
}
@media (max-width: 560px) {
  .hero-visual { max-width: 360px; aspect-ratio: 5/4; }
  .phone-main { width: 48%; }
  .phone-aux { width: 38%; }
}

/* Screenshot embed inside bento tiles (dark phone on light bg) */
.screen-embed {
  margin-top: 24px;
  position: relative;
  background: #0a0a08;
  border-radius: 22px;
  padding: 5px;
  box-shadow: 0 16px 40px -20px rgba(29, 26, 21, 0.4);
  overflow: hidden;
}
.screen-embed img {
  width: 100%;
  display: block;
  border-radius: 18px;
  object-fit: cover;
  object-position: top center;
}

/* Wide: phone in landscape-ish block with fade at the bottom so long screens look intentional */
.screen-embed--wide {
  max-width: 100%;
}
.screen-embed--wide img {
  aspect-ratio: 9/13;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

/* Tall: narrow, phone-like, fully contained */
.screen-embed--tall {
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
}
.screen-embed--tall img { aspect-ratio: 9/19; }

.tile-hero .screen-embed { background: rgba(0,0,0,0.45); }

/* --- SCREENSHOT GALLERY --- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.gallery-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gallery-item img {
  width: 100%;
  aspect-ratio: 9/19;
  object-fit: cover;
  object-position: top center;
  background: #0a0a08;
  border-radius: 22px;
  padding: 5px;
  box-shadow: 0 16px 40px -20px rgba(29, 26, 21, 0.4);
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img {
  transform: translateY(-6px);
}
.gallery-item figcaption {
  font-size: 13px;
  color: var(--c-ink-soft);
  line-height: 1.4;
  padding: 0 4px;
}
@media (max-width: 960px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr 1fr; gap: 14px; }
  .gallery-item figcaption { font-size: 12px; }
}

/* --- SECTION RHYTHM --- */
section { padding-block: clamp(80px, 12vh, 140px); }
.section-head {
  max-width: 760px;
  margin-bottom: clamp(48px, 7vh, 80px);
}
.section-head > * + * { margin-top: 18px; }

/* --- BENTO FEATURES --- */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.tile {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3vw, 36px);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s var(--ease);
}
.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-rest);
  border-color: rgba(108, 159, 138, 0.35);
}
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--c-ink-soft); font-size: 15px; }
.tile .eyebrow { margin-bottom: 18px; }

.tile-hero { grid-column: span 7; min-height: 360px; background: var(--c-teal-deep); color: var(--c-paper); border-color: transparent; }
.tile-hero .eyebrow, .tile-hero .eyebrow::before { color: rgba(246,241,234,0.7); background-color: rgba(246,241,234,0.5); }
.tile-hero h3 { color: var(--c-paper); font-size: clamp(1.5rem, 2.2vw, 2rem); }
.tile-hero h3 em { color: #a8cfbe; }
.tile-hero p { color: rgba(246,241,234,0.75); }

.tile-a { grid-column: span 5; }
.tile-b { grid-column: span 4; }
.tile-c { grid-column: span 4; }
.tile-d { grid-column: span 4; }
.tile-e { grid-column: span 6; }
.tile-f { grid-column: span 6; }

@media (max-width: 960px) {
  .tile-hero, .tile-a, .tile-b, .tile-c, .tile-d, .tile-e, .tile-f { grid-column: span 12; }
}

/* Viz primitives for bento */
.viz-stack { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.viz-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px;
  padding: 10px 12px;
  background: var(--c-paper);
  border-radius: 12px;
  font-size: 13px;
  align-items: center;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}
.viz-row:hover { transform: translateX(3px); background: var(--c-paper-2); }
.viz-row .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-teal); }
.viz-row .amt { font-family: var(--f-mono); font-size: 12px; color: var(--c-stone); }

.viz-bar-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.viz-bar {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 12px; align-items: center;
  font-size: 12px; color: var(--c-stone); font-family: var(--f-mono); letter-spacing: 0.04em;
}
.viz-bar .track { height: 6px; background: var(--c-paper-2); border-radius: 999px; overflow: hidden; }
.viz-bar .fill { height: 100%; background: var(--c-teal); border-radius: inherit; transform-origin: left; animation: grow 1.4s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }

.viz-photo-frame {
  margin-top: 24px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #2a2822, #1d1a15);
  border: 1px solid rgba(246,241,234, 0.08);
  aspect-ratio: 16/10;
  position: relative;
  display: grid; place-items: center;
}
.viz-photo-frame::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 25% 35%, rgba(108,159,138,0.35), transparent 55%),
    radial-gradient(circle at 75% 65%, rgba(217,162,78,0.25), transparent 55%);
}
.viz-photo-scan {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(108,159,138,0.55) 50%, transparent 52%);
  animation: scan 3.2s var(--ease) infinite;
}
@keyframes scan {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}
.viz-photo-chip {
  position: relative; z-index: 1;
  background: rgba(246, 241, 234, 0.95);
  color: var(--c-ink);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-family: var(--f-mono);
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 18px -6px rgba(0,0,0,0.3);
}

.viz-big-num {
  font-family: var(--f-display);
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin: 30px 0 10px;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
}
.viz-big-num em { color: var(--c-teal-deep); font-style: italic; font-size: 0.5em; vertical-align: super; font-weight: 400; }

.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--c-teal-wash);
  color: var(--c-teal-deep);
  display: grid; place-items: center;
  margin-bottom: 22px;
}
.tile-hero .feature-icon { background: rgba(246,241,234, 0.12); color: var(--c-paper); }

/* --- FLOW / HOW IT WORKS --- */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.flow-step {
  background: var(--c-paper);
  padding: clamp(28px, 3vw, 40px);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  transition: background 0.3s var(--ease);
}
.flow-step:hover { background: #fff; }
.flow-step .num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--c-teal-deep);
  letter-spacing: 0.14em;
}
.flow-step h3 { font-size: 1.3rem; }
.flow-step p { color: var(--c-ink-soft); font-size: 14px; }
@media (max-width: 760px) {
  .flow { grid-template-columns: 1fr; }
}

/* --- PRICING --- */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pricing.pricing--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 860px;
  margin: 0 auto;
}
.price-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.price-card.is-featured {
  background: var(--c-ink);
  color: var(--c-paper);
  border-color: var(--c-ink);
  transform: translateY(-6px);
  box-shadow: var(--shadow-float);
  position: relative;
}
.price-card.is-featured h3 { color: var(--c-paper); }
.price-card.is-featured h3 em { color: #a8cfbe; }
.price-card.is-featured .price-sub { color: rgba(246,241,234, 0.7); }
.price-card.is-featured .feat-list li { color: rgba(246,241,234, 0.88); }
.price-card.is-featured .feat-list li::before { background: var(--c-teal); }

.price-tag {
  margin: 8px 0 4px;
  display: flex; align-items: baseline; gap: 6px;
  font-family: var(--f-display);
  letter-spacing: -0.02em;
}
.price-tag strong { font-size: 3rem; font-weight: 400; line-height: 1; }
.price-tag span { font-size: 1rem; color: var(--c-stone); font-family: var(--f-sans); }
.price-card.is-featured .price-tag span { color: rgba(246,241,234, 0.65); }
.price-sub { font-size: 13px; color: var(--c-stone); margin-top: -6px; }
.feat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.feat-list li { position: relative; padding-left: 24px; color: var(--c-ink-soft); }
.feat-list li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--c-teal-deep);
  transform: rotate(45deg);
}
.price-pill {
  position: absolute; top: -12px; right: 24px;
  background: var(--c-teal);
  color: var(--c-paper);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
@media (max-width: 860px) {
  .pricing { grid-template-columns: 1fr; }
  .price-card.is-featured { transform: none; }
}

/* --- FAQ --- */
.faq-list { border-top: 1px solid var(--c-line); }
.faq-item { border-bottom: 1px solid var(--c-line); padding: 8px 0; }
.faq-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary .plus {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--c-line);
  font-family: var(--f-sans);
  transition: transform 0.3s var(--spring), background 0.3s var(--ease);
}
.faq-item[open] .plus { transform: rotate(45deg); background: var(--c-teal-wash); border-color: var(--c-teal); }
.faq-body {
  padding: 0 52px 22px 0;
  color: var(--c-ink-soft);
  font-size: 15px;
  max-width: 64ch;
}

/* --- CTA BLOCK --- */
.cta-block {
  background: var(--c-ink);
  color: var(--c-paper);
  border-radius: var(--r-xl);
  padding: clamp(44px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: end;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  right: -20%; top: -40%;
  width: 70%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(108,159,138,0.35), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.cta-block h2 { color: var(--c-paper); }
.cta-block h2 em { color: #a8cfbe; }
.cta-block p { color: rgba(246,241,234,0.78); max-width: 44ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-self: end; position: relative; }
.cta-actions .btn-primary { background: var(--c-paper); color: var(--c-ink); }
.cta-actions .btn-primary:hover { background: var(--c-teal); color: var(--c-paper); }
.cta-actions .btn-ghost { color: var(--c-paper); border-color: rgba(246,241,234, 0.22); }
.cta-actions .btn-ghost:hover { background: rgba(246,241,234, 0.06); border-color: rgba(246,241,234, 0.4); }

@media (max-width: 760px) {
  .cta-block { grid-template-columns: 1fr; padding: 36px; }
  .cta-actions { justify-self: start; }
}

/* --- FOOTER --- */
.footer {
  padding: 72px 0 40px;
  border-top: 1px solid var(--c-line);
  margin-top: 60px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
}
.footer h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-stone);
  margin: 0 0 18px;
  font-weight: 500;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
}
.footer-col a { color: var(--c-ink-soft); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--c-teal-deep); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--c-line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--c-stone);
  font-family: var(--f-mono);
  letter-spacing: 0.06em;
}
.footer-brand { font-family: var(--f-display); font-size: 1.1rem; letter-spacing: -0.01em; color: var(--c-ink); margin-bottom: 12px; }
.footer-brand em { font-style: italic; color: var(--c-teal-deep); }
.footer-blurb { color: var(--c-ink-soft); font-size: 14px; max-width: 36ch; }
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* --- LEGAL PAGES --- */
.legal-hero {
  padding: clamp(80px, 12vh, 140px) 0 clamp(40px, 6vh, 80px);
  border-bottom: 1px solid var(--c-line);
}
.legal-hero .eyebrow { margin-bottom: 18px; }
.legal-hero h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
.legal-hero .updated {
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--c-stone);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legal-content {
  padding: 60px 0 100px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-ink-soft);
}
.legal-content h2 {
  font-size: 1.45rem;
  color: var(--c-ink);
  margin-top: 44px;
  margin-bottom: 12px;
  font-family: var(--f-display);
}
.legal-content h2:first-child { margin-top: 0; }
.legal-content h3 {
  font-size: 1.1rem;
  color: var(--c-ink);
  margin-top: 28px;
  margin-bottom: 8px;
  font-family: var(--f-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.legal-content p { max-width: 68ch; margin-bottom: 14px; }
.legal-content ul { max-width: 68ch; padding-left: 20px; margin-bottom: 14px; }
.legal-content ul li { margin-bottom: 6px; }
.legal-content a { color: var(--c-teal-deep); text-decoration: underline; text-decoration-color: rgba(79,122,104,0.3); text-underline-offset: 3px; transition: text-decoration-color 0.2s var(--ease); }
.legal-content a:hover { text-decoration-color: var(--c-teal-deep); }
.legal-content hr { border: 0; border-top: 1px solid var(--c-line); margin: 40px 0; }
.legal-content .address-block {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin: 20px 0;
  font-variant-numeric: tabular-nums;
}
.legal-content .callout {
  background: var(--c-teal-wash);
  border-left: 3px solid var(--c-teal-deep);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  color: var(--c-ink);
  font-size: 14px;
}
.legal-content .callout strong { color: var(--c-teal-deep); }

/* --- REVEAL ON SCROLL --- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }

/* --- RESPECT MOTION PREFS --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
