/* ============================================================
   KARAWAY — Direction 2 (Clean Modern / Clinical-Light)
   Design system tokens + base
   ============================================================ */
:root {
  --bg: #ffffff;
  --alt: #f6f9f7;
  --forest: #1e4d35;
  --forest-dk: #143524;
  --forest-md: #2a6a4a;
  --amber: #e8a94a;
  --amber-tint: #fef3e2;
  --ink: #0d1f18;
  --ink-dim: #546e63;
  --rule: rgba(30, 77, 53, 0.12);
  --rule-strong: rgba(30, 77, 53, 0.22);
  --surface: #eef4f0;
  --shadow-sm: 0 1px 2px rgba(13, 31, 24, 0.04);
  --shadow: 0 4px 14px rgba(13, 31, 24, 0.06), 0 1px 3px rgba(13, 31, 24, 0.04);
  --shadow-lg: 0 24px 60px -24px rgba(13, 31, 24, 0.18), 0 4px 14px rgba(13, 31, 24, 0.04);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-head: 'Plus Jakarta Sans', 'Inter', -apple-system, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-body); }

/* Headers — Plus Jakarta Sans ExtraBold across the project */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head) !important;
  font-weight: 800 !important;
}

/* ============================================================
   Reusable atoms
   ============================================================ */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
}
.section-h {
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 700;
  margin: 14px 0 16px;
  color: var(--ink);
}
.section-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-dim);
}
.btn {
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 180ms cubic-bezier(.2,.7,.2,1), box-shadow 180ms, background 180ms, color 180ms, border-color 180ms;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-dk); }
.btn-ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-ghost:hover { background: rgba(30,77,53,.06); }
.btn-inverted { background: #fff; color: var(--forest); }
.btn-lg { height: 50px; padding: 0 26px; font-size: 15px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }

/* Placeholder treatment */
.ph {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--ink-dim);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
  line-height: 1.5;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 18px, rgba(30,77,53,.04) 18px 19px);
  pointer-events: none;
}
.ph .ph-label {
  position: relative;
  z-index: 1;
  max-width: 80%;
  text-transform: uppercase;
}
.ph .ph-dims {
  position: absolute;
  bottom: 12px;
  right: 14px;
  font-size: 10px;
  color: rgba(13,31,24,.35);
}

/* Stock photo with onerror fallback */
.stock {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ph > .stock {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
section { position: relative; }

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms cubic-bezier(.2,.7,.2,1), transform 600ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 200ms, border-color 200ms;
}
.nav.scrolled { background: rgba(255,255,255,0.92); border-bottom-color: var(--rule); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: 1440px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--forest);
}
.brand-mark {
  width: 28px; height: 28px;
  background: url('img/karaway-logo.png') center / cover no-repeat;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  cursor: pointer;
  position: relative;
}
.nav-link:hover { color: var(--forest); }
.nav-link .caret { width: 10px; height: 10px; opacity: .6; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-signin { font-size: 14px; font-weight: 500; color: var(--ink); }
.nav-signin:hover { color: var(--forest); }
.nav-hamburger { display: none; background: transparent; border: 0; width: 36px; height: 36px; padding: 0; }

/* Mega menu */
.mega {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  box-shadow: 0 14px 40px -10px rgba(13,31,24,0.08);
  display: none;
}
.mega.open { display: block; }
.mega-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  padding: 32px;
}
.mega-group h4 {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  font-weight: 600;
  margin: 0 0 14px;
}
.mega-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mega-group li { font-size: 14.5px; color: var(--ink); font-weight: 500; }
.mega-group li:hover { color: var(--forest); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 0 96px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: 56px;
  line-height: 1.02;
  letter-spacing: -0.032em;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--ink);
}
.hero h1 .hl {
  color: var(--forest);
  position: relative;
  display: inline-block;
}
.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 4px; height: 10px;
  background: rgba(232,169,74,0.32);
  z-index: -1;
  border-radius: 2px;
}
.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-dim);
  max-width: 500px;
  margin: 0 0 32px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 6;
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface);
}
.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 700ms ease;
}
.carousel-slide.active { opacity: 1; }
.carousel-slide .stock,
.carousel-slide .ph {
  width: 100%; height: 100%; border-radius: 20px;
}
.carousel-dots {
  position: absolute;
  bottom: 18px;
  right: 18px;
  display: flex;
  gap: 8px;
  z-index: 2;
}
.carousel-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--forest);
  border: 0;
  cursor: pointer;
  transition: background 200ms;
}
.carousel-dot.active {
  background: var(--amber);
}

/* Hero phone composition (slide 1) */
.hero-phone-stage {
  width: 100%; height: 100%;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(232,169,74,.10), transparent 60%),
    linear-gradient(180deg, var(--surface) 0%, var(--alt) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.hero-phone-stage .phone { transform: rotate(-2deg); }
.hero-floating-card {
  position: absolute;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 12px 36px -12px rgba(13,31,24,0.18);
  font-size: 12.5px;
  max-width: 220px;
  z-index: 3;
}
.hero-floating-card .ttl {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  font-weight: 700;
  margin-bottom: 4px;
}
.hero-floating-card .bd { color: var(--ink); font-weight: 500; line-height: 1.4; }
.hero-floating-card.tl { top: 6%; left: 4%; }
.hero-floating-card.br { bottom: 8%; right: 4%; }

/* Hero image overlay cards (photo slides 2–5) */
.hero-overlay{
  position: absolute;
  z-index: 4;
  background: #fff;
  border: 1px solid rgba(13,31,24,0.06);
  border-radius: 14px;
  box-shadow: 0 18px 40px -16px rgba(13,31,24,0.5), 0 4px 12px rgba(13,31,24,0.14);
  padding: 13px 15px;
  width: min(64%, 232px);
  font-family: var(--font-body);
  animation: ovIn .6s cubic-bezier(.2,.7,.2,1) both;
}
.hero-overlay.bl{ bottom: 6%; left: 5%; }
.hero-overlay.tr{ top: 6%; right: 5%; }
@keyframes ovIn{ from{ opacity: 0; transform: translateY(10px); } to{ opacity: 1; transform: none; } }

.ov-lab{ display: flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--forest); margin-bottom: 5px; }
.ov-lab .ov-dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--forest); flex-shrink: 0; }
.ov-lab.amber{ color: var(--amber-dk); }
.ov-lab.amber .ov-dot{ background: var(--amber); }
.ov-body{ font-size: 12.5px; line-height: 1.4; color: var(--ink); }

/* Safe / Suspected stacked card */
.hero-overlay.ov-stack{ padding: 0; overflow: hidden; width: min(66%, 222px); }
.ov-block{ padding: 10px 12px; }
.ov-block.safe{ background: rgba(30,77,53,.10); }
.ov-block.susp{ background: rgba(232,169,74,.20); }
.ov-pill-lab{ font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: 7px; color: var(--forest); }
.ov-block.susp .ov-pill-lab{ color: #a66e22; }
.ov-pills{ display: flex; flex-wrap: wrap; gap: 5px; }
.ov-pill{ font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #fff; border: 1px solid rgba(13,31,24,0.08); color: var(--ink); }

/* GLP-1 medication card (forest) */
.hero-overlay.ov-med{ background: var(--forest); border: 0; color: #fff; width: min(66%, 222px); }
.ov-med .ov-lab{ color: var(--amber); }
.ov-med-title{ font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.ov-med-sub{ font-size: 10.5px; color: rgba(255,255,255,.72); margin-bottom: 10px; }
.ov-med-row{ display: flex; align-items: center; gap: 10px; }
.ov-ring{ position: relative; width: 40px; height: 40px; flex-shrink: 0; }
.ov-ring svg{ width: 40px; height: 40px; transform: rotate(-90deg); }
.ov-ring-num{ position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 700; color: #fff; }
.ov-med-cta{ font-size: 11px; font-weight: 700; color: var(--amber); line-height: 1.25; }

/* Upcoming appointment card (forest) */
.hero-overlay.ov-appt{ background: var(--forest); border: 0; color: #fff; width: min(70%, 250px); }
.ov-appt .ov-lab{ color: var(--amber); }
.ov-appt-name{ font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.ov-appt-spec{ font-size: 11px; color: rgba(255,255,255,.72); margin-bottom: 12px; }
.ov-appt-when{ display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.ov-appt-date{ font-size: 13px; font-weight: 700; }
.ov-appt-rel{ font-size: 10.5px; color: rgba(255,255,255,.72); white-space: nowrap; }
.ov-appt-status{ display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; color: var(--amber); padding-top: 10px; border-top: 1px solid rgba(255,255,255,0.14); }
.ov-appt-dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--amber); flex-shrink: 0; }


/* ============================================================
   PHONE FRAMES (shared) — realistic iPhone-style bezel
   ============================================================ */
.phone {
  width: 280px;
  height: 580px;
  border-radius: 44px;
  background: #0a0a0a;
  padding: 6px;
  position: relative;
  flex-shrink: 0;
  box-shadow:
    0 0 0 1.5px #1f1f1f,
    inset 0 0 0 1px rgba(255,255,255,0.06),
    0 24px 60px -24px rgba(13,31,24,0.22),
    0 2px 8px rgba(13,31,24,0.04);
}
/* Side buttons — subtle hint of volume/power */
.phone::after {
  content: "";
  position: absolute;
  left: -1.5px;
  top: 96px;
  width: 2px;
  height: 28px;
  background: #1a1a1a;
  border-radius: 1.5px 0 0 1.5px;
  box-shadow: 0 44px 0 0 #1a1a1a;
}
/* Dynamic island — pill at top of screen, with subtle camera dot */
.phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 26px;
  background:
    radial-gradient(circle at calc(50% + 30px) 50%, #1a2230 0 2.5px, transparent 3px),
    #000;
  border-radius: 14px;
  z-index: 5;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.phone-inner {
  width: 100%;
  height: 100%;
  border-radius: 38px;
  background: var(--bg);
  overflow: hidden;
  position: relative;
  padding: 46px 14px 14px;
}

/* Status bar — auto-render iOS chrome via CSS pseudo-element on .right span */
.phone-status {
  position: absolute;
  top: 14px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  z-index: 3;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  pointer-events: none;
}
/* Hide the existing ●●● text and replace with rendered icons */
.phone-status .right {
  font-size: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  /* inherit color from .phone-status so dark/light variants both work */
}
.phone-status .right::before {
  /* Status icons as an SVG mask, painted in currentColor */
  content: "";
  display: inline-block;
  width: 58px;
  height: 12px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='58' height='12' viewBox='0 0 58 12'><g><rect x='0' y='9' width='2.5' height='3' rx='0.5'/><rect x='3.5' y='7' width='2.5' height='5' rx='0.5'/><rect x='7' y='4.5' width='2.5' height='7.5' rx='0.5'/><rect x='10.5' y='1.5' width='2.5' height='10.5' rx='0.5'/></g><g transform='translate(17 0)'><path d='M0 5 Q6 -1 12 5' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round'/><path d='M2 7 Q6 3 10 7' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round'/><circle cx='6' cy='10' r='1.2'/></g><g transform='translate(35 0)'><rect x='0' y='1' width='20' height='10' rx='2.5' fill='none' stroke='black' stroke-width='1'/><rect x='1.5' y='2.5' width='16' height='7' rx='1.2'/><rect x='21' y='4' width='1.5' height='4' rx='0.5'/></g></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='58' height='12' viewBox='0 0 58 12'><g><rect x='0' y='9' width='2.5' height='3' rx='0.5'/><rect x='3.5' y='7' width='2.5' height='5' rx='0.5'/><rect x='7' y='4.5' width='2.5' height='7.5' rx='0.5'/><rect x='10.5' y='1.5' width='2.5' height='10.5' rx='0.5'/></g><g transform='translate(17 0)'><path d='M0 5 Q6 -1 12 5' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round'/><path d='M2 7 Q6 3 10 7' fill='none' stroke='black' stroke-width='1.4' stroke-linecap='round'/><circle cx='6' cy='10' r='1.2'/></g><g transform='translate(35 0)'><rect x='0' y='1' width='20' height='10' rx='2.5' fill='none' stroke='black' stroke-width='1'/><rect x='1.5' y='2.5' width='16' height='7' rx='1.2'/><rect x='21' y='4' width='1.5' height='4' rx='0.5'/></g></svg>");
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-size: contain;
          mask-size: contain;
}

/* Dark-mode phone variant (when inner content needs a black screen) */
.phone.dark .phone-inner { background: #0a0a0a; color: #fff; }
.phone.dark .phone-status { color: #fff; }

/* Phone — generic UI rows used in multiple places */
.scr-head {
  display: flex; justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.scr-title {
  font-size: 16px; font-weight: 700;
  letter-spacing: -0.02em;
}
.scr-date { font-size: 11px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }

/* ============================================================
   TRUST SIGNALS
   ============================================================ */
.trust {
  padding: 56px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}
.trust-block {
  padding: 0 32px;
  border-left: 1px solid var(--rule);
}
.trust-block:first-child { border-left: 0; padding-left: 0; }
.trust-block:last-child { padding-right: 0; }
.trust-num {
  color: var(--forest);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.trust-num svg { width: 20px; height: 20px; color: var(--amber); }
.trust-block p { margin: 0; font-size: 15px; color: var(--ink-dim); line-height: 1.55; max-width: 340px; }

/* ============================================================
   PROBLEMS
   ============================================================ */
.problems {
  padding: 112px 0;
}
.problems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.problems-img {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 420px;
  justify-self: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.problem-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 350ms ease;
}
.problem-image.active { opacity: 1; }
.problems-list { display: flex; flex-direction: column; gap: 0; }
.problem-item {
  padding: 22px 22px;
  border-top: 1px solid var(--rule);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 220ms, border-color 220ms;
}
.problem-item:last-child { border-bottom: 1px solid var(--rule); }
.problem-item.active {
  background: var(--alt);
  border-left-color: var(--forest);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.problem-item h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--ink);
}
.problem-item p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-dim);
  line-height: 1.55;
  max-height: 0;
  overflow: hidden;
  transition: max-height 320ms ease, margin-top 320ms ease;
}
.problem-item.active p { max-height: 180px; }
.problem-ctas { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   BRAND STATEMENT
   ============================================================ */
.brand-statement {
  background: var(--forest);
  color: #fff;
  padding: 112px 0;
  position: relative;
  overflow: hidden;
}
.brand-statement::before {
  content: "";
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,169,74,0.12), transparent 70%);
}
.brand-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.brand-grid .eyebrow { color: #fff; display: inline-flex; align-items: center; gap: 8px; }
.brand-grid .eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.brand-grid h2 {
  font-size: 46px;
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 700;
  margin: 18px 0 22px;
  color: #fff;
}
.brand-grid p {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  margin: 0 0 28px;
}
.brand-phone-stage {
  position: relative;
  display: flex;
  justify-content: center;
}
.brand-phone-stage .phone {
  box-shadow:
    0 0 0 1.5px #2a2a2a,
    inset 0 0 0 1px rgba(255,255,255,0.08),
    0 30px 80px -20px rgba(0,0,0,0.4);
}
.brand-phone-stage .floating {
  position: absolute;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  box-shadow: 0 14px 40px -10px rgba(0,0,0,0.3);
  max-width: 220px;
  z-index: 2;
}
.brand-phone-stage .floating .lab {
  font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--forest); font-weight: 700; margin-bottom: 4px;
  display: flex; align-items: center; gap: 6px;
}
.brand-phone-stage .floating .lab .dot { width: 6px; height: 6px; background: var(--forest); border-radius: 50%; }
.brand-phone-stage .floating .lab.amber { color: var(--amber); }
.brand-phone-stage .floating .lab.amber .dot { background: var(--amber); }
.brand-phone-stage .floating.tl { top: 6%; left: -8%; }
.brand-phone-stage .floating.br { bottom: 8%; right: -10%; }
.brand-badge {
  position: absolute;
  top: 4%; right: -8%;
  background: var(--amber);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-flex; align-items: center; gap: 6px;
  z-index: 3;
  box-shadow: 0 10px 24px -8px rgba(232,169,74,0.5);
}

/* Logo strip */
.logo-strip {
  padding: 48px 0;
  background: #fff;
  border-bottom: 1px solid var(--rule);
}
.logo-strip-row {
  display: flex;
  justify-content: center;
  gap: 72px;
  align-items: center;
  opacity: 0.55;
  flex-wrap: wrap;
}
.logo-strip .placeholder-logo {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
}
.logo-strip-label {
  display: block;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 24px;
}

/* ============================================================
   DUAL AUDIENCE
   ============================================================ */
.dual {
  padding: 112px 0;
}
.dual-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.dual-arrows { display: flex; gap: 12px; margin-top: 24px; }
.arrow-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--forest);
  background: transparent;
  color: var(--forest);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 180ms, color 180ms;
}
.arrow-btn:hover { background: var(--forest); color: #fff; }
.dual-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
.dual-panel {
  border-radius: var(--radius-lg);
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid var(--rule);
}
.dual-panel.ibs { background: var(--surface); }
.dual-panel.glp { background: var(--amber-tint); border-color: rgba(232,169,74,0.25); }
.dual-panel .lab {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 16px;
}
.dual-panel.glp .lab { color: #a66e22; }
.dual-panel .phone { width: 220px; height: 460px; }
.dual-panel .phone::before { width: 70px; height: 22px; top: 10px; }
.dual-panel .phone-inner { padding: 38px 12px 12px; border-radius: 32px; }
.dual-panel .cap {
  margin-top: 20px;
}
.dual-panel .cap h4 {
  font-size: 16px; font-weight: 700; margin: 0 0 6px;
  letter-spacing: -0.015em;
}
.dual-panel .cap p {
  font-size: 13.5px; color: var(--ink-dim); margin: 0;
  line-height: 1.55;
}
.dual-cta { text-align: center; margin-top: 48px; }

/* ============================================================
   GLP-1 DEDICATED
   ============================================================ */
.glp { padding: 112px 0; background: var(--alt); }
.glp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.glp-image { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: var(--radius-lg); overflow: hidden; }
.glp-image .ph { position: absolute; inset: 0; width: 100%; height: 100%; }
.glp h2 { font-size: 40px; line-height: 1.06; letter-spacing: -0.028em; font-weight: 700; margin: 14px 0 18px; }
.glp p { font-size: 17px; line-height: 1.6; color: var(--ink-dim); max-width: 500px; }
.glp-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.glp-sub h5 {
  font-size: 14.5px; font-weight: 700; margin: 0 0 6px;
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 8px;
}
.glp-sub h5 .ic {
  width: 22px; height: 22px;
  background: var(--surface);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
}
.glp-sub h5 .ic svg { width: 14px; height: 14px; color: var(--forest); }
.glp-sub p { font-size: 13.5px; color: var(--ink-dim); margin: 0; line-height: 1.5; max-width: none; }

/* ============================================================
   FEATURES — SHOWCASE (Section 8.5, v2)
   Stacks the Alma-style feature pages as iframes
   ============================================================ */
.features-showcase {
  padding: 80px 0 0;
  display: none;
}
.features-showcase.visible { display: block; }
.features-showcase-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
  padding: 0 32px;
}
.features-showcase-intro h2 { font-size: 44px; line-height: 1.06; letter-spacing: -0.028em; font-weight: 700; margin: 14px 0 12px; }
.features-showcase-intro p { font-size: 17px; color: var(--ink-dim); margin: 0; line-height: 1.55; }
.feature-frame {
  width: 100%;
  border: 0;
  display: block;
  height: 900px;
  background: var(--surface);
}
.feature-frame.ink { background: #0d1f18; }
.feature-frame.forest { background: var(--forest); }
.feature-frame.amber { background: var(--amber-tint); }
.feature-frame.alt { background: var(--alt); }
.feature-frame.white { background: #fff; }
@media (max-width: 880px) {
  .feature-frame { height: 1280px; }
  .features-showcase-intro h2 { font-size: 32px; }
}

/* Roadmap node phone content can be richer in v2 — slightly larger inner */
.roadmap-node .phone-inner.rich { padding: 38px 12px 12px; }

.features-alt {
  padding: 112px 0 0;
  display: none;
}
.features-alt.visible { display: block; }
.features-alt-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 80px;
}
.features-alt-intro h2 { font-size: 44px; line-height: 1.06; letter-spacing: -0.028em; font-weight: 700; margin: 14px 0 12px; }
.features-alt-intro p { font-size: 17px; color: var(--ink-dim); margin: 0; line-height: 1.55; }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 64px 0;
  border-top: 1px solid var(--rule);
}
.feature-row.right-img .feat-visual { order: 2; }
.feature-row.right-img .feat-text { order: 1; }
.feat-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.feat-visual .stock, .feat-visual .ph { width: 100%; height: 100%; }
.feat-floating {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 18px 40px -12px rgba(13,31,24,0.18);
  font-size: 12.5px;
  max-width: 280px;
  z-index: 2;
}
.feat-floating.bl { left: 18px; bottom: 24px; }
.feat-floating.br { right: 18px; bottom: 24px; }
.feat-floating.tr { right: 18px; top: 24px; }
.feat-floating .lab {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--forest); font-weight: 700; margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.feat-floating .lab .dot { width: 6px; height: 6px; background: var(--forest); border-radius: 50%; }
.feat-floating .lab.amber { color: var(--amber); }
.feat-floating .lab.amber .dot { background: var(--amber); }
.feat-floating .tx { color: var(--ink); line-height: 1.45; font-weight: 500; }
.feat-floating .tx b { font-weight: 700; }

.feat-text h3 {
  font-size: 38px;
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 700;
  margin: 12px 0 18px;
}
.feat-text p {
  font-size: 16px;
  color: var(--ink-dim);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 0 24px;
}
.feat-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0 28px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.feat-sub h6 { font-size: 13.5px; font-weight: 700; margin: 0 0 6px; }
.feat-sub p { font-size: 13px; color: var(--ink-dim); margin: 0; line-height: 1.5; }
.feat-bullets { list-style: none; margin: 18px 0 24px; padding: 0; display: grid; gap: 10px; }
.feat-bullets li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14.5px; color: var(--ink); font-weight: 500;
}
.feat-bullets li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--forest);
}
.feat-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ============================================================
   FEATURES — TABS (Section 9)
   ============================================================ */
.features-tabs {
  padding: 112px 0;
  background: var(--alt);
  display: none;
}
.features-tabs.visible { display: block; }
.features-tabs-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.features-tabs-head h2 { font-size: 44px; line-height: 1.06; letter-spacing: -0.028em; font-weight: 700; margin: 0 0 14px; }
.features-tabs-head p { font-size: 17px; color: var(--ink-dim); margin: 0; }

.tab-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 auto 48px;
  max-width: 880px;
}
.tab-bar .tab {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(30,77,53,0.3);
  background: transparent;
  color: var(--ink-dim);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 180ms;
  white-space: nowrap;
}
.tab-bar .tab:hover { color: var(--forest); border-color: var(--forest); }
.tab-bar .tab.active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

.tab-panel-wrap {
  position: relative;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-lg);
  min-height: 520px;
}
.tab-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 280ms, transform 280ms;
}
.tab-panel.active {
  display: grid;
  opacity: 1;
  transform: none;
}
.tab-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: var(--surface);
}
.tab-text h3 {
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 10px 0 16px;
}
.tab-text p { font-size: 16px; color: var(--ink-dim); line-height: 1.6; margin: 0 0 22px; max-width: 480px; }
.tab-text .feat-sub { margin-top: 18px; }

/* Embedded live phone mockups (Tabs + Alternating) — no bg, no border, natural ratio */
.tab-visual.has-phones,
.feat-visual.has-phones {
  background: transparent;
  border: 0;
  overflow: visible;
  aspect-ratio: 480 / 628;
}
.tab-visual.has-phones.single,
.feat-visual.has-phones.single {
  aspect-ratio: 300 / 620;
  max-width: 300px;
  margin-inline: auto;
}
.feature-phones {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}

/* ============================================================
   HOW IT WORKS — Roadmap
   ============================================================ */
.how {
  padding: 112px 0;
}
.how-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 72px;
  align-items: flex-start;
}
.how h2 {
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: -0.028em;
  font-weight: 700;
  margin: 14px 0 20px;
}
.how-intro { color: var(--ink-dim); font-size: 17px; line-height: 1.55; max-width: 420px; margin: 0 0 28px; }
.how-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.how-steps { display: flex; flex-direction: column; gap: 28px; }
.how-step { display: flex; gap: 18px; align-items: flex-start; }
.how-step-num {
  width: 36px; height: 36px;
  flex-shrink: 0;
  background: var(--forest);
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.how-step h5 { font-size: 17px; font-weight: 700; margin: 4px 0 6px; letter-spacing: -0.015em; }
.how-step p { font-size: 14.5px; color: var(--ink-dim); margin: 0; line-height: 1.55; }

.roadmap {
  position: relative;
  width: 100%;
  height: 920px;
}
.roadmap svg.path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.roadmap-node {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}
.roadmap-node .badge {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--amber);
  box-shadow: 0 10px 24px -8px rgba(232,169,74,0.45);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--forest);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.roadmap-node .phone { width: 230px; height: 480px; }
.roadmap-node .phone::before { width: 74px; height: 22px; top: 10px; }
.roadmap-node .phone-inner { padding: 38px 12px 12px; border-radius: 32px; }
.roadmap-node.n1 { top: 0; left: 6%; }
.roadmap-node.n2 { top: 220px; right: 4%; flex-direction: row-reverse; }
.roadmap-node.n3 { bottom: 0; left: 18%; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { padding: 112px 0; background: var(--alt); }
.testimonials-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 32px;
  flex-wrap: wrap;
}
.testimonials-head h2 { font-size: 40px; line-height: 1.06; letter-spacing: -0.028em; font-weight: 700; margin: 14px 0 8px; }
.testimonials-head p { color: var(--ink-dim); margin: 0; font-size: 17px; }
.testimonials-arrows { display: flex; gap: 12px; }
.testimonials-stage {
  position: relative;
  overflow: hidden;
}
.testimonials-track {
  display: flex;
  gap: 24px;
  transition: transform 500ms cubic-bezier(.2,.7,.2,1);
  align-items: stretch;
}
.testimonial-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--rule);
  transition: opacity 300ms, transform 300ms, box-shadow 300ms;
  opacity: 0.65;
  transform: scale(0.96);
}
.testimonial-card.center {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  border-top: 2px solid var(--amber);
}
.stars { color: var(--amber); font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-card blockquote {
  margin: 0 0 24px;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-weight: 500;
}
.testimonial-attr { display: flex; align-items: center; gap: 12px; }
.testimonial-attr > div { flex: 1; min-width: 0; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: var(--forest);
  font-size: 14px;
  border: 1px solid var(--rule);
}
.testimonial-attr .who { font-size: 14px; font-weight: 700; }
.testimonial-attr .role { font-size: 12.5px; color: var(--ink-dim); }
.testimonials-dots { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.testimonials-dots .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--forest);
  cursor: pointer;
  transition: background 200ms;
}
.testimonials-dots .dot.active { background: var(--amber); }

/* ============================================================
   PRICING
   ============================================================ */
.pricing { padding: 112px 0; }
.pricing-head { text-align: center; max-width: 600px; margin: 0 auto 32px; }
.pricing-head h2 { font-size: 44px; line-height: 1.06; letter-spacing: -0.028em; font-weight: 700; margin: 0 0 14px; }
.pricing-head p { color: var(--ink-dim); font-size: 17px; margin: 0; }
.pricing-toggle {
  display: inline-flex;
  background: var(--surface);
  border-radius: 999px;
  padding: 4px;
  margin: 32px auto 48px;
  position: relative;
  align-items: center;
}
.pricing-toggle-row {
  display: flex; justify-content: center; align-items: center; gap: 14px;
}
.pricing-toggle .opt {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-dim);
  background: transparent;
  border: 0;
}
.pricing-toggle .opt.active {
  background: var(--forest);
  color: #fff;
}
.save-badge {
  display: none;
  background: var(--amber-tint);
  color: #a66e22;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}
.save-badge.visible { display: inline-flex; }

/* Variant A — comparison table */
.pricing-variant-a { display: none; }
.pricing-variant-a.visible { display: block; }
.tier-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}
.tier-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: #fff;
  position: relative;
}
.tier-card.premium {
  border: 2px solid var(--forest);
  background: var(--alt);
}
.tier-card.premium::before {
  content: "Most popular";
  position: absolute;
  top: -14px; right: 24px;
  background: var(--forest);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}
.tier-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--surface);
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.tier-icon svg { width: 22px; height: 22px; color: var(--forest); }
.tier-name { font-size: 15px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--forest); margin-bottom: 8px; }
.tier-price {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.028em;
  font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 6px;
}
.tier-price .strike { font-size: 22px; color: var(--ink-dim); text-decoration: line-through; font-weight: 500; }
.tier-price .small { font-size: 16px; color: var(--ink-dim); font-weight: 500; }
.tier-blurb { color: var(--ink-dim); font-size: 14px; margin-bottom: 22px; }
.tier-card .btn { width: 100%; }

.compare-section { margin-bottom: 36px; }
.compare-section h4 {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--forest); font-weight: 700;
  margin: 0 0 14px;
  padding-left: 16px;
}
.compare-rows {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  background: var(--alt);
  border-radius: var(--radius);
  overflow: hidden;
}
.compare-header {
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-dim); font-weight: 700;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--rule);
}
.compare-row {
  display: contents;
}
.compare-row > div {
  padding: 14px 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.compare-row:last-child > div { border-bottom: 0; }
.compare-row .feature { font-weight: 500; }
.compare-row .v {
  font-weight: 600;
  font-size: 13.5px;
}
.compare-row .v.yes { color: var(--forest); }
.compare-row .v.no { color: #b04638; }
.check, .cross {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  margin-right: 4px;
}
.check { background: rgba(30,77,53,0.12); color: var(--forest); }
.cross { background: rgba(176,70,56,0.12); color: #b04638; }
.compare-cta-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  margin-top: 20px;
  gap: 0;
}
.compare-cta-row > div { padding: 12px 16px; }
.compare-cta-row .btn { width: 100%; }

/* Variant B — promo cards */
.pricing-variant-b { display: none; }
.pricing-variant-b.visible { display: block; }
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.promo-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 36px;
  background: #fff;
  position: relative;
}
.promo-card.best {
  border: 2px solid var(--forest);
  box-shadow: 0 24px 60px -24px rgba(30,77,53,0.32);
}
.promo-card.best::before {
  content: "Best value";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.promo-label { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--forest); margin-bottom: 14px; }
.promo-price {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex; align-items: baseline; gap: 10px;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.promo-price .strike { font-size: 22px; color: var(--ink-dim); text-decoration: line-through; font-weight: 500; }
.promo-price .unit { font-size: 16px; color: var(--ink-dim); font-weight: 500; }
.promo-blurb { color: var(--ink-dim); font-size: 14px; margin-bottom: 24px; }
.promo-card .btn { width: 100%; }
.pricing-trust {
  display: flex; justify-content: center; gap: 28px;
  flex-wrap: wrap;
  margin-top: 32px;
  font-size: 13.5px;
  color: var(--ink-dim);
}
.pricing-trust span { display: inline-flex; align-items: center; gap: 6px; }
.pricing-trust .ck { color: var(--forest); font-weight: 800; }

/* ============================================================
   BENEFITS BENTO
   ============================================================ */
.bento { padding: 112px 0; }
.bento-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 56px;
  align-items: end;
}
.bento-head h2 { font-size: 40px; line-height: 1.06; letter-spacing: -0.028em; font-weight: 700; margin: 14px 0 0; }
.bento-head p { color: var(--ink-dim); font-size: 17px; margin: 0; line-height: 1.55; max-width: 520px; }
.bento-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-auto-rows: minmax(200px, auto);
  gap: 18px;
}
.bento-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  transition: transform 220ms, box-shadow 220ms;
}
.bento-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.bento-card.stat .num {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--forest);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}
.bento-card.stat .num.amber { color: var(--amber); }
.bento-card.stat h5 { font-size: 18px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.015em; }
.bento-card.stat p { font-size: 14px; color: var(--ink-dim); margin: 0; line-height: 1.55; }
.bento-card.image { padding: 0; overflow: hidden; }
.bento-card.image .ph, .bento-card.image .stock { width: 100%; height: 100%; }
.bento-card.wide { grid-column: span 2; }
.bento-card.tall { grid-row: span 2; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  padding: 112px 0;
  background: var(--alt);
}
.final-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.final-grid h2 {
  font-size: 48px;
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 18px;
}
.final-grid p { font-size: 17px; color: var(--ink-dim); margin: 0 0 28px; max-width: 460px; line-height: 1.55; }
.final-image {
  aspect-ratio: 6 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 48px;
  margin-bottom: 56px;
}
.footer .brand { color: #fff; margin-bottom: 12px; }
.footer-tag { font-size: 14px; max-width: 280px; line-height: 1.55; }
.footer h6 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  font-weight: 700;
  margin: 0 0 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { font-size: 14px; color: rgba(255,255,255,0.85); }
.footer ul a:hover { color: #fff; }
.footer-news { display: grid; gap: 10px; }
.footer-news label { font-size: 13px; }
.footer-news .row {
  display: flex; gap: 8px;
}
.footer-news input {
  flex: 1;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}
.footer-news input::placeholder { color: rgba(255,255,255,0.45); }
.footer-news .btn-primary { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom .links { display: flex; gap: 24px; }
.footer-bottom .links a { color: rgba(255,255,255,0.7); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
}
.footer-social a:hover { background: rgba(255,255,255,0.16); color: #fff; }
.footer-social svg { width: 14px; height: 14px; }

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
.tweaks-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 320px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 16px;
  box-shadow: 0 24px 60px -10px rgba(0,0,0,0.25);
  padding: 20px;
  z-index: 1000;
  display: none;
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px; color: var(--forest); }
.tweaks-section { margin-bottom: 18px; }
.tweaks-section label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-dim); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.08em; }
.tweaks-seg { display: flex; gap: 6px; background: var(--surface); border-radius: 999px; padding: 4px; }
.tweaks-seg button {
  flex: 1;
  background: transparent;
  border: 0;
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--ink-dim);
  cursor: pointer;
}
.tweaks-seg button.active { background: var(--forest); color: #fff; }
.tweaks-range { width: 100%; }
.tweaks-range-value { font-size: 12px; color: var(--ink-dim); font-variant-numeric: tabular-nums; }
.tweaks-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 28px; height: 28px;
  background: transparent;
  border: 0;
  color: var(--ink-dim);
  font-size: 16px;
  cursor: pointer;
  border-radius: 50%;
}
.tweaks-close:hover { background: var(--surface); }

/* ============================================================
   MOBILE — 390px breakpoint and below
   ============================================================ */
@media (max-width: 880px) {
  .container { padding: 0 20px; }

  .nav-inner { padding: 14px 20px; }
  .nav-links, .nav-cta .nav-signin { display: none; }
  .nav-hamburger { display: inline-flex; align-items: center; justify-content: center; }
  .nav-cta .btn { height: 36px; padding: 0 14px; font-size: 13px; }
  .brand { margin-left: 4px; }

  .mega { display: none !important; }

  .hero { padding: 48px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 16px; margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-carousel { aspect-ratio: 4 / 5; }
  .hero-floating-card { max-width: 160px; font-size: 11px; }
  .hero-floating-card.tl { top: 4%; left: 4%; }
  .hero-floating-card.br { bottom: 5%; right: 4%; }
  /* On narrow viewports the 280px phone is wider than the carousel
     slot, AND the carousel has overflow:hidden, so the phone bezel
     and inner content get clipped at both edges.
     Fix: (a) let the carousel overflow visible on mobile so the phone
     can extend outside its slot without being chopped, (b) shrink the
     phone via width/height directly so its layout box also gets
     smaller (transform: scale doesn't change layout), (c) reset the
     rotation that would otherwise add ~10px of overhang. */
  /* The phone is a fixed 280x580 mockup with pixel-positioned content;
     resizing its box clips the inner cards and makes it overflow the
     carousel. Instead keep the box intact and scale the whole thing
     visually (content scales with it, no clipping), and give the
     carousel an explicit height so the scaled phone always fits. */
  .hero-carousel {
    aspect-ratio: auto;
    height: 320px;
    overflow: visible;
  }
  .hero-phone-stage { padding: 0; }
  .hero-phone-stage .phone {
    width: 280px;
    height: 580px;
    /* IMPORTANT: divide by 280px (a length), not 280 (a number) — length
       ÷ length = a unitless <number>, which is what scale()/clamp() need.
       Dividing by a bare 280 yields a <length>, making the whole clamp
       type-invalid so the transform was silently dropped and the phone
       rendered full size. That was the real cause of every "still too big"
       round, not caching. */
    transform: scale(clamp(0.4, calc((100vw - 150px) / 280px), 0.5)) rotate(-2deg);
    transform-origin: center center;
  }
  /* Floating callouts duplicate info already in the phone — hide on
     mobile so they don't get clipped at the edges. */
  .hero-floating-card { display: none; }

  .trust { padding: 40px 0; }
  .trust-grid { grid-template-columns: 1fr; gap: 24px; }
  .trust-block { border-left: 0; border-top: 1px solid var(--rule); padding: 24px 0 0; }
  .trust-block:first-child { border-top: 0; padding-top: 0; }

  .problems { padding: 72px 0; }
  .problems-grid { grid-template-columns: 1fr; gap: 28px; }

  .brand-statement { padding: 72px 0; }
  .brand-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .brand-grid h2 { font-size: 32px; }
  .brand-grid p { margin-left: auto; margin-right: auto; }
  .brand-phone-stage .floating.tl { top: 0; left: -2%; }
  .brand-phone-stage .floating.br { bottom: 4%; right: -2%; }

  .logo-strip-row { gap: 32px; }

  .dual { padding: 72px 0; }
  .dual-grid { grid-template-columns: 1fr; gap: 36px; }
  .dual-panels { grid-template-columns: 1fr; }

  .glp { padding: 72px 0; }
  .glp-grid { grid-template-columns: 1fr; gap: 36px; }
  .glp h2 { font-size: 30px; }
  .glp-sub { grid-template-columns: 1fr; gap: 16px; }

  .features-alt { padding: 72px 0 0; }
  .features-alt-intro h2, .features-tabs-head h2, .pricing-head h2, .how h2,
  .testimonials-head h2, .bento-head h2, .final-grid h2 { font-size: 32px; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; padding: 48px 0; }
  .feature-row.right-img .feat-visual { order: 0; }
  .feat-text h3 { font-size: 28px; }
  .feat-sub { grid-template-columns: 1fr; gap: 14px; }

  .features-tabs { padding: 72px 0; }
  /* Mobile: drop the tab interface entirely — plain vertical scroll of all panels */
  .tab-bar { display: none; }
  .tab-panel-wrap {
    padding: 0;
    min-height: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .tab-panel {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    opacity: 1;
    transform: none;
  }
  .tab-panel + .tab-panel {
    margin-top: 36px;
    padding-top: 40px;
    border-top: 1px solid var(--rule);
  }
  .tab-text h3 { font-size: 26px; }

  .how { padding: 72px 0; }
  .how-grid { grid-template-columns: 1fr; gap: 40px; }
  /* Mobile: drop the roadmap visuals (phone mockups + path) — keep the steps */
  .roadmap { display: none; }

  .testimonials { padding: 72px 0; }
  .testimonials-head { flex-direction: column; align-items: flex-start; }
  .testimonial-card { flex: 0 0 100%; }
  .testimonial-card { opacity: 1; transform: none; }
  .testimonial-card blockquote { font-size: 16px; }

  .pricing { padding: 72px 0; }
  .tier-row { grid-template-columns: 1fr; }
  .promo-grid { grid-template-columns: 1fr; }
  .compare-rows { grid-template-columns: 1.5fr 1fr 1fr; font-size: 12px; }
  .compare-cta-row { grid-template-columns: 1.5fr 1fr 1fr; }
  .compare-row > div { padding: 12px 10px; font-size: 12.5px; }

  .bento { padding: 72px 0; }
  .bento-head { grid-template-columns: 1fr; gap: 16px; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.wide, .bento-card.tall { grid-column: auto; grid-row: auto; }

  .final-cta { padding: 72px 0; }
  .final-grid { grid-template-columns: 1fr; gap: 36px; }
  .final-grid h2 { font-size: 32px; }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .footer-news { grid-column: span 2; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }

  .tweaks-panel { right: 12px; left: 12px; bottom: 12px; width: auto; }
}

/* ============================================================
   MOBILE FIXES — preserve (iOS Safari + phone sizing). See brief §4.
   ============================================================ */
@media (max-width: 720px) {
  /* a) GLP-1 hero image was collapsing to a thin strip on iOS Safari */
  .glp-image { min-height: min(86vw, 420px); }

  /* b) Phone mockups inside Features tabs were too big on mobile */
  .tab-visual.has-phones,
  .feat-visual.has-phones { max-width: 320px; margin-inline: auto; }
  .tab-visual.has-phones.single,
  .feat-visual.has-phones.single { max-width: 220px; }

  /* c) Floating callouts overlapped the phone on "Try Karaway now" */
  .brand-phone-stage .floating,
  .brand-phone-stage .brand-badge { display: none; }
}
