/* ==========================================================================
   Hugo Health — design system
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #2a1b14;
  --ink-soft: #5b493f;
  --ink-faint: #8a796d;

  --bg: #faf9f5;
  --bg-alt: #f1ece2;
  --surface: #ffffff;

  /* Terracotta — primary */
  --clay-900: #4a2115;
  --clay-700: #bc5630;
  --clay-600: #c96940;
  --clay-500: #d9835f;
  --clay-100: #f5e0d2;
  --clay-050: #fbf0e7;

  /* Deep pine — complementary accent (opposite terracotta on the color wheel) */
  --pine: #2f6e63;
  --pine-dark: #1f4f47;
  --pine-100: #dcece8;

  /* Muted ochre — tertiary accent */
  --amber: #c99a3e;

  --line: #e6ddd0;
  --line-soft: #efe8dd;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(42, 27, 20, 0.07), 0 1px 1px rgba(42, 27, 20, 0.05);
  --shadow-md: 0 8px 24px rgba(42, 27, 20, 0.09);
  --shadow-lg: 0 24px 60px rgba(42, 27, 20, 0.16);

  --font-serif: "Lora", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --container: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body { overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: var(--clay-900);
}

h1 { font-size: clamp(2.4rem, 4.2vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }

p { margin: 0 0 1em; color: var(--ink-soft); }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--clay-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--clay-700); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--clay-900); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--clay-900); border-color: var(--line); }
.btn-ghost:hover { background: var(--clay-050); border-color: var(--clay-500); }
.btn-pine { background: var(--pine); color: #fff; }
.btn-pine:hover { background: var(--pine-dark); transform: translateY(-1px); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 245, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--clay-900);
}
.brand-mark { color: var(--clay-700); display: flex; }

.primary-nav { display: flex; align-items: center; gap: 32px; }
.primary-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.primary-nav ul a { font-size: 0.95rem; font-weight: 500; color: var(--ink-soft); }
.primary-nav ul a:hover, .primary-nav ul a.active { color: var(--clay-700); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--clay-900); margin: 0 auto; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Logo marquee ---------- */
.logo-marquee-section { padding: 64px 0; }
.logo-marquee { position: relative; overflow: hidden; }
.logo-marquee::before, .logo-marquee::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.logo-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.logo-marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }
.logo-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: marquee-left 90s linear infinite;
}
.logo-track.reverse { animation-name: marquee-right; margin-top: 20px; }
.logo-chip {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  padding: 0 22px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
}
.logo-chip img { height: 26px; width: auto; max-width: 140px; display: block; }

@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
}

/* ---------- Video banner ---------- */
.video-banner {
  position: relative;
  height: 60vh;
  height: 60svh; /* stays fixed to the initial viewport instead of resizing as mobile browser chrome collapses */
  min-height: 420px;
  max-height: 640px;
  overflow: hidden;
  background: var(--clay-900);
}
.banner-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.banner-video.active { opacity: 1; }
.video-banner-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(20, 10, 6, 0.75) 0%, rgba(20, 10, 6, 0.35) 45%, rgba(20, 10, 6, 0.5) 100%);
}
.video-banner-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 18px;
  max-width: 640px;
}
.video-banner-content h2 { color: #fff; margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.video-banner-content .eyebrow { background: rgba(255, 255, 255, 0.16); color: #fff; backdrop-filter: blur(4px); }

@media (prefers-reduced-motion: reduce) {
  .banner-video { display: none; }
  .video-banner { background: linear-gradient(135deg, var(--clay-900), var(--clay-700)); }
}
.video-banner.video-blocked .banner-video { display: none; }
.video-banner.video-blocked { background: linear-gradient(135deg, var(--clay-900), var(--clay-700)); }

@media (max-width: 720px) {
  .video-banner { height: 52vh; height: 52svh; min-height: 380px; }
  .video-banner-content { align-items: center; text-align: center; max-width: 100%; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 90px;
  background: radial-gradient(ellipse 900px 500px at 85% -10%, var(--clay-100), transparent 60%),
              radial-gradient(ellipse 700px 400px at -5% 10%, var(--pine-100), transparent 55%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,0.95fr); gap: 56px; align-items: center; }
.hero-copy, .hero-visual { min-width: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--clay-100);
  color: var(--clay-700);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}
.hero h1 { margin-bottom: 0.4em; }
.hero .lede { font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; align-items: center; gap: 18px; margin-top: 28px; flex-wrap: wrap; }
.hero-note { font-size: 0.85rem; color: var(--ink-faint); }
.hero-trust { margin-top: 40px; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust div { font-family: var(--font-serif); font-size: 1.5rem; color: var(--clay-900); font-weight: 600; }
.hero-trust span { display: block; font-family: var(--font-sans); font-size: 0.78rem; color: var(--ink-faint); font-weight: 500; margin-top: 2px; }

.hero-visual { position: relative; }
.report-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px;
  border: 1px solid var(--line-soft);
}
.report-card .rc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.report-card .rc-head strong { font-family: var(--font-serif); color: var(--clay-900); font-size: 1.05rem; }
.rc-tag { background: var(--clay-100); color: var(--clay-700); font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-full); }
.rc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.rc-row:first-of-type { border-top: none; }
.rc-dot { width: 34px; height: 34px; border-radius: 10px; background: var(--clay-050); color: var(--clay-700); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rc-row div p { margin: 0; font-size: 0.85rem; color: var(--ink-faint); }
.rc-row div strong { font-size: 0.94rem; color: var(--ink); }
.float-chip {
  position: absolute;
  width: 224px;
  box-sizing: border-box;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-soft);
}
.float-chip.chip-1 { top: -18px; right: -10px; color: var(--pine-dark); }
.float-chip.chip-2 { bottom: -16px; left: -22px; color: var(--clay-700); }
.float-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.float-chip .chip-text { min-width: 0; }

@media (max-width: 480px) {
  .float-chip { width: 190px; }
  .float-chip.chip-1 { right: 4px; }
  .float-chip.chip-2 { left: 4px; }
}

/* ---------- Sections generic ---------- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-head .kicker { color: var(--pine-dark); font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; display: block; margin-bottom: 12px; }
.bg-alt { background: var(--bg-alt); }
.bg-dark { background: var(--clay-900); color: #fff; }
.bg-dark h2, .bg-dark h3, .bg-dark .kicker { color: #fff; }
.bg-dark p { color: rgba(255,255,255,0.78); }

/* ---------- Stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 20px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  text-align: center;
}
.stat-card .num { font-family: var(--font-serif); font-size: 2.1rem; color: var(--clay-700); font-weight: 600; }
.stat-card .label { font-size: 0.85rem; color: var(--ink-faint); margin-top: 4px; }
.stats-note { text-align: center; font-size: 0.8rem; color: var(--ink-faint); margin-top: 18px; }

/* ---------- Feature / pillar cards ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.pillar-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.pillar-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--clay-050);
  color: var(--clay-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.pillar-card h3 { margin-bottom: 8px; }
.pillar-card p:last-child { margin-bottom: 0; }
.pillar-card ul { margin: 14px 0 0; padding: 0; list-style: none; }
.pillar-card li { display: flex; gap: 10px; font-size: 0.9rem; color: var(--ink-soft); padding: 6px 0; }
.pillar-card li svg { flex-shrink: 0; color: var(--clay-600); margin-top: 3px; }

/* ---------- Split / differentiator ---------- */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 64px; align-items: center; }
.split-visual { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line-soft); box-shadow: var(--shadow-md); padding: 28px; }
.silo-row { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.silo-row .silo-name { width: 128px; font-size: 0.85rem; font-weight: 600; color: var(--ink); flex-shrink: 0; }
.silo-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--line-soft); position: relative; overflow: hidden; }
.silo-bar span { position: absolute; inset: 0; border-radius: 99px; }
.silo-broken span { background: repeating-linear-gradient(90deg, var(--pine) 0 10px, transparent 10px 16px); opacity: 0.85; }
.silo-connected span { background: var(--clay-600); }
.split-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 22px 0; color: var(--ink-faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.split-divider::before, .split-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- Research proof point ---------- */
.research-proof { padding: 0 0 88px; }
.proof-card {
  display: grid;
  grid-template-columns: minmax(0,0.85fr) minmax(0,1.15fr);
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 48px;
}
.proof-stat { text-align: center; padding: 0 12px; border-right: 1px solid var(--line-soft); }
.proof-number { font-family: var(--font-serif); font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 600; color: var(--clay-700); line-height: 1; }
.proof-label { margin: 12px 0 0; font-size: 0.88rem; color: var(--ink-faint); }
.proof-copy h3 { margin-bottom: 12px; }
.proof-copy > a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--pine); margin: 4px 0 16px; }
.proof-copy > a:hover { color: var(--pine-dark); }
.proof-disclaimer { font-size: 0.78rem; color: var(--ink-faint); margin: 0; }

@media (max-width: 720px) {
  .proof-card { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
  .proof-stat { border-right: none; border-bottom: 1px solid var(--line-soft); padding-bottom: 24px; }
}

/* ---------- How it works steps ---------- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step-row {
  display: grid;
  grid-template-columns: 72px minmax(0,1fr) minmax(0,1.05fr);
  gap: 36px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--line-soft);
}
.step-row:first-child { border-top: none; }
.step-num {
  counter-increment: step;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--clay-700);
  font-weight: 600;
}
.step-num::before { content: counter(step, decimal-leading-zero); }
.step-body h3 { margin-bottom: 10px; }
.step-panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}
.step-panel ul { margin: 0; padding: 0; list-style: none; }
.step-panel li { display: flex; gap: 10px; font-size: 0.88rem; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); color: var(--ink-soft); }
.step-panel li:last-child { border-bottom: none; }
.step-panel li svg { color: var(--clay-600); flex-shrink: 0; margin-top: 2px; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.testi-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testi-quote { font-family: var(--font-serif); font-size: 1.08rem; color: var(--ink); line-height: 1.45; }
.testi-person { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: #fff;
  flex-shrink: 0;
}
.testi-person .who strong { display: block; font-size: 0.92rem; }
.testi-person .who span { font-size: 0.8rem; color: var(--ink-faint); }

/* ---------- Conditions grid ---------- */
.cond-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.cond-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.cond-card .pillar-icon { margin-bottom: 0; width: 40px; height: 40px; border-radius: 12px; }
.cond-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cond-card p { font-size: 0.88rem; margin: 0; }
.cond-more { text-align: center; margin-top: 36px; color: var(--ink-faint); font-size: 0.92rem; }

/* ---------- Condition clusters ---------- */
.cluster-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.cluster-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.cluster-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.cluster-conditions { font-size: 0.85rem; color: var(--ink-faint); margin: 0 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.cluster-kicker { font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--pine-dark); margin: 0 0 10px; }
.cluster-card ul { list-style: none; margin: 0; padding: 0; }
.cluster-card li { display: flex; gap: 8px; font-size: 0.88rem; color: var(--ink-soft); padding: 6px 0; }
.cluster-card li svg { flex-shrink: 0; color: var(--clay-600); margin-top: 3px; }
.cluster-disclaimer { max-width: 760px; margin: 32px auto 0; text-align: center; font-size: 0.78rem; color: var(--ink-faint); line-height: 1.6; }
.cluster-disclaimer a { color: var(--pine-dark); font-weight: 600; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 28px; align-items: stretch; }
.price-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--clay-600); box-shadow: var(--shadow-lg); position: relative; }
.price-card.featured::before {
  content: "Most members choose this";
  position: absolute; top: -14px; left: 32px;
  background: var(--clay-700); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  padding: 5px 12px; border-radius: var(--radius-full);
}
.price-amount { display: flex; align-items: baseline; gap: 6px; margin: 14px 0 6px; }
.price-amount .num { font-family: var(--font-serif); font-size: 2.8rem; color: var(--clay-900); font-weight: 600; }
.price-amount .per { color: var(--ink-faint); font-size: 0.95rem; }
.price-card .desc { font-size: 0.92rem; margin-bottom: 22px; }
.price-card ul { list-style: none; margin: 0 0 26px; padding: 0; flex: 1; }
.price-card li { display: flex; gap: 10px; padding: 9px 0; font-size: 0.92rem; border-top: 1px solid var(--line-soft); }
.price-card li:first-child { border-top: none; }
.price-card li svg { color: var(--clay-600); flex-shrink: 0; margin-top: 3px; }

.compare-table-wrap { overflow-x: auto; margin-top: 64px; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--surface); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--line-soft); }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; font-size: 0.92rem; border-bottom: 1px solid var(--line-soft); }
.compare-table thead th { background: var(--bg-alt); color: var(--clay-900); font-family: var(--font-serif); font-weight: 600; font-size: 1rem; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td:first-child, .compare-table th:first-child { color: var(--ink-faint); font-weight: 500; }
.compare-table .col-highlight { background: var(--clay-050); font-weight: 600; color: var(--clay-900); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--clay-900);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--clay-700); transition: transform 0.2s ease; }
.faq-item[open] summary .plus { transform: rotate(45deg); background: var(--clay-700); color: #fff; border-color: var(--clay-700); }
.faq-item .faq-a { padding: 0 4px 24px; max-width: 66ch; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 22px; }
.team-card { text-align: center; }
.team-avatar {
  width: 84px; height: 84px; border-radius: 50%;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600;
}
.team-card strong { display: block; font-size: 0.98rem; }
.team-card span { display: block; font-size: 0.82rem; color: var(--ink-faint); margin-top: 2px; }

.values-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; margin-top: 20px; }
.value-card { padding: 4px; }
.value-card h3 { font-size: 1.1rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--clay-900), var(--clay-700));
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 8px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin: 0; max-width: 46ch; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-shell {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}
.form-shell h1 { font-size: 1.7rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.field input, .field select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  background: var(--bg);
}
.field input:focus, .field select:focus { outline: 2px solid var(--clay-500); outline-offset: 1px; }
.form-foot { text-align: center; font-size: 0.88rem; color: var(--ink-faint); margin-top: 16px; }
.demo-note {
  background: var(--amber);
  background: var(--pine-100);
  color: var(--pine-dark);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.82rem;
  margin-bottom: 22px;
}

/* ---------- Legal ---------- */
.legal-body { max-width: 760px; margin: 0 auto; }
.legal-body h2 { margin-top: 2em; font-size: 1.4rem; }
.legal-updated { color: var(--ink-faint); font-size: 0.85rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--clay-900); color: rgba(255,255,255,0.85); padding: 64px 0 0; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,2fr); gap: 48px; padding-bottom: 48px; }
.footer-brand .brand { color: #fff; margin-bottom: 12px; }
.footer-brand .brand-mark { color: var(--clay-500); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; max-width: 38ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.footer-col h4 { color: rgba(255,255,255,0.5); font-size: 0.78rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; color: rgba(255,255,255,0.82); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0 28px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}
.footer-disclaimer { max-width: 640px; }

/* ---------- Grid/flex overflow safety ---------- */
.pillars > *, .cond-grid > *, .cluster-grid > *, .testi-grid > *, .team-grid > *,
.stats-grid > *, .pricing-grid > *, .split > *, .step-row > *,
.values-grid > * { min-width: 0; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-lg { margin-top: 48px; }
.badge-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.badge-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line-soft); padding: 8px 16px; border-radius: var(--radius-full); font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: minmax(0,1fr); }
  .hero-visual { order: -1; max-width: 460px; margin: 0 auto; }
  .split { grid-template-columns: minmax(0,1fr); gap: 40px; }
  .pillars, .testi-grid, .cond-grid, .cluster-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .team-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pricing-grid { grid-template-columns: minmax(0,1fr); max-width: 480px; margin: 0 auto; }
  .values-grid { grid-template-columns: minmax(0,1fr); }
  .step-row { grid-template-columns: 48px minmax(0,1fr); }
  .step-row .step-panel { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .primary-nav {
    position: fixed;
    top: 76px; left: 0; right: 0;
    height: calc(100vh - 76px);
    height: calc(100svh - 76px);
    overflow-y: auto;
    background: var(--bg);
    display: flex; flex-direction: column; align-items: stretch;
    padding: 28px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .primary-nav.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .primary-nav ul { flex-direction: column; gap: 4px; }
  .primary-nav ul a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line-soft); }
  .nav-cta { flex-direction: column; align-items: stretch; margin-top: 20px; }
  .nav-toggle { display: flex; }
  .pillars, .testi-grid, .cond-grid, .cluster-grid, .stats-grid, .team-grid { grid-template-columns: minmax(0,1fr); }
  section { padding: 60px 0; }
  .cta-banner { padding: 36px 28px; flex-direction: column; align-items: flex-start; }
  .compare-table-wrap { -webkit-overflow-scrolling: touch; }
  .footer-inner { grid-template-columns: minmax(0,1fr); }
  .footer-cols { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .footer-bottom { flex-direction: column; }
}
