/* ============================================================
   PeakRoutine — pd.css
   Prediabetes site: home, how it works, our approach, FAQ, download.
   Light theme in the v3 brand language (blue → green, Space Grotesk
   display, glass chips, soft depth) with scroll-driven motion.
   Self-contained: these pages load navbar.css and this file.
   ============================================================ */

/* Palette follows the premium metabolic-health brands (warm off-white,
   near-black ink, one deep green accent, sand and sage neutrals) in our
   own values; display type is an editorial serif over a clean sans. */
:root {
  color-scheme: light;

  /* Surfaces */
  --bg: #faf8f4;
  --bg-tint: #f3efe7;
  --surface: #ffffff;
  --surface-2: #f6f3ec;
  --line: #e7e1d5;
  --line-strong: #d6cebe;

  /* Ink */
  --ink: #141815;
  --ink-2: #3b403c;
  --muted: #6b706c;

  /* Accent: deep green, with sage and a warm sun tone */
  --green: #17675a;
  --green-ink: #0f4c43;
  --green-deep: #0e3631;
  --sage: #dfeae4;
  --sage-2: #c7dbd1;
  --sun: #f2c66d;
  --sun-soft: #fbf0d6;
  --blue: var(--green);
  --blue-ink: var(--green-ink);
  --blue-soft: var(--sage);
  --accent: var(--green);
  --accent-ink: var(--green-ink);
  --accent-soft: var(--sage);
  --past: #9a9f9b;
  --good: var(--green);
  --good-soft: var(--sage);
  --green-soft: var(--sage);
  --no: #b4532a;
  --no-soft: #fbece4;

  --grad-primary: linear-gradient(135deg, #17675a 0%, #0f4c43 100%);
  --grad-text: none;

  --shadow-sm: 0 1px 2px rgba(20, 24, 21, 0.05);
  --shadow: 0 1px 2px rgba(20, 24, 21, 0.04), 0 10px 30px rgba(20, 24, 21, 0.06);
  --shadow-lg: 0 30px 60px -20px rgba(20, 24, 21, 0.25);
  --shadow-blue: 0 14px 30px -14px rgba(20, 24, 21, 0.45);

  --radius: 20px;
  --wrap: 1180px;

  /* Tokens navbar.css expects (theme.css isn't loaded on these pages) */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dark: #141815;
  --primary: #17675a;
  --gray-100: #f1ede4;
  --gray-600: #4f544f;
  --gray-700: #3b403c;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body.pd {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.pd img { max-width: 100%; display: block; }
.pd a { color: var(--blue-ink); }
.pd h1, .pd h2, .pd h3, .pd h4 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0 0 0.75rem;
  text-wrap: balance;
}
.pd h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.035em; }
.pd h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.pd h3 { font-family: var(--font-body); font-size: 1.12rem; font-weight: 650; letter-spacing: -0.015em; }
.pd p { margin: 0 0 1rem; color: var(--ink-2); }
.pd ul { margin: 0; padding: 0; }
.pd :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.grad-text { font-style: italic; color: var(--green); font-weight: 400; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
@media (max-width: 480px) { .wrap { padding: 0 1rem; } }

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section-tight { padding: clamp(3rem, 6vw, 4.5rem) 0; position: relative; }
.section-alt { background: var(--bg-tint); }
.section-head { max-width: 760px; margin: 0 auto 3.25rem; text-align: center; }
.section-head p { font-size: 1.125rem; color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ''; width: 18px; height: 1.5px; background: currentColor; }
.lede { font-size: 1.2rem; color: var(--muted); }
.fineprint { font-size: 0.85rem; color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 50px; padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font: 600 1rem/1 var(--font-body);
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pd .btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-blue); }
.pd .btn-primary:hover { transform: translateY(-2px); background: var(--green-deep); }
.pd .btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.pd .btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn .fa-apple { font-size: 1.2em; margin-top: -2px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ── Scroll progress ── */
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 2000; background: var(--green); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }

/* ── Hero ── */
.hero-pd { position: relative; padding: 9rem 0 5rem; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, #f4efe5 0%, var(--bg) 75%); }
.hero-bg .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; animation: drift 18s ease-in-out infinite alternate; }
.hero-bg .b1 { width: 560px; height: 560px; background: #c7dbd1; top: -180px; right: -100px; }
.hero-bg .b2 { width: 420px; height: 420px; background: #f6dfa8; bottom: -160px; left: -140px; opacity: 0.45; animation-duration: 22s; }
.hero-bg .b3 { width: 300px; height: 300px; background: #dfeae4; top: 30%; left: 42%; opacity: 0.5; animation-duration: 26s; }
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image: none;
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 60% 30%, #000 30%, transparent 75%);
}
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(40px, 30px, 0) scale(1.08); } }

.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.hero-pd h1 .soft { display: block; margin-top: 0.15rem; color: var(--green); font-style: italic; font-weight: 400; }
.hero-pd .lede { max-width: 34rem; margin: 1.4rem 0 2.1rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }
.hero-meta span {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.86rem; font-weight: 600; color: var(--ink-2);
  padding: 0.4rem 0.8rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.hero-meta svg { width: 15px; height: 15px; color: var(--green); flex: none; }
.hero-meta span { background: transparent; border: 0; padding: 0; backdrop-filter: none; font-weight: 500; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-pd { padding-top: 7.5rem; }
}

/* Intro animation for hero copy */
.rise { opacity: 0; transform: translateY(18px); animation: rise 0.9s var(--ease-out) forwards; }
.rise.d1 { animation-delay: 0.08s; } .rise.d2 { animation-delay: 0.18s; } .rise.d3 { animation-delay: 0.28s; } .rise.d4 { animation-delay: 0.38s; } .rise.d5 { animation-delay: 0.5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── Device stage (real screenshots) ── */
.stage { position: relative; height: 640px; }
.device {
  position: absolute;
  width: 270px; aspect-ratio: 1206 / 2622;
  border-radius: 46px;
  padding: 9px;
  background: linear-gradient(145deg, #2a2d2b, #121413);
  box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,0.08);
  will-change: transform;
}
.device img { width: 100%; height: 100%; object-fit: cover; border-radius: 38px; background: #fff; }
.stage .device { transition: transform 1.2s var(--ease-out), opacity 1s ease; }
.stage .device.center { left: 50%; top: 10px; transform: translateX(-50%); z-index: 3; width: 290px; }
.stage .device.left { left: 2%; top: 90px; transform: rotate(-7deg) scale(0.86); z-index: 2; }
.stage .device.right { right: 2%; top: 90px; transform: rotate(7deg) scale(0.86); z-index: 1; }
.stage.intro .device { opacity: 0; }
.stage.intro .device.center { transform: translate(-50%, 60px); }
.stage.intro .device.left { transform: rotate(0) translate(80px, 40px) scale(0.8); }
.stage.intro .device.right { transform: rotate(0) translate(-80px, 40px) scale(0.8); }

.chip {
  position: absolute; z-index: 5;
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.6rem 0.85rem 0.6rem 0.6rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 30px -10px rgba(15, 50, 100, 0.28);
  backdrop-filter: blur(12px) saturate(1.4);
  font-size: 0.8rem; line-height: 1.25; color: var(--ink-2);
  white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip b { display: block; font-family: var(--font-body); font-weight: 650; font-size: 0.98rem; color: var(--ink); letter-spacing: -0.015em; }
.chip .ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.chip .ico svg { width: 18px; height: 18px; }
.ico.blue { background: var(--green); }
.ico.green { background: #4f8a6b; }
.ico.cyan { background: var(--green-deep); }
.ico.amber { background: #c98a1a; }
.chip.c1 { top: 190px; left: -9%; animation-delay: -1s; }
.chip.c2 { top: 250px; right: -8%; animation-delay: -3s; }
.chip.c3 { bottom: 70px; left: -6%; animation-delay: -2s; }
.chip.c4 { bottom: 24px; right: -2%; animation-delay: -4.5s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.stage-note { position: absolute; bottom: -10px; left: 0; right: 0; text-align: center; font-size: 0.76rem; color: var(--muted); }

@media (max-width: 1100px) { .chip.c1, .chip.c3 { left: 0; } .chip.c2 { right: 0; } }
@media (max-width: 960px) { .stage { height: 600px; max-width: 560px; margin: 0 auto; } }
@media (max-width: 560px) {
  .stage { height: 500px; }
  .device { width: 196px; border-radius: 36px; padding: 7px; }
  .device img { border-radius: 30px; }
  .stage .device.center { width: 218px; }
  .stage .device.left { left: -8%; top: 80px; }
  .stage .device.right { right: -8%; top: 80px; }
  .chip { font-size: 0.72rem; padding: 0.45rem 0.6rem 0.45rem 0.45rem; }
  .chip b { font-size: 0.88rem; }
  .chip .ico { width: 28px; height: 28px; border-radius: 9px; }
  .chip.c2, .chip.c3 { display: none; }
  .chip.c1 { top: 24px; left: 0; } .chip.c4 { bottom: 40px; right: 0; }
}

/* Single phone (feature sections) */
.phone-shot { position: relative; width: min(100%, 300px); margin: 0 auto; isolation: isolate; }
.phone-shot .device { position: relative; width: 100%; }
.phone-shot::before {
  content: ''; position: absolute; inset: 12% -18% 8%; z-index: -1;
  background: radial-gradient(closest-side, rgba(23,103,90,0.18), transparent), radial-gradient(closest-side at 70% 70%, rgba(242,198,109,0.22), transparent);
  filter: blur(22px);
}
.shot-caption { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 1rem; }

/* Page hero for inner pages */
.page-hero { position: relative; padding: 9.5rem 0 3.5rem; text-align: center; overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px 300px at 85% 0%, rgba(199,219,209,0.7), transparent 70%), radial-gradient(500px 260px at 8% 25%, rgba(246,223,168,0.45), transparent 70%), linear-gradient(180deg, #f4efe5, var(--bg));
}
.page-hero .lede { max-width: 42rem; margin: 1rem auto 0; }
@media (max-width: 768px) { .page-hero { padding-top: 7.5rem; } }

/* ── Illustration phone frame (inner pages) ── */
.phone {
  width: min(100%, 340px); margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 40px; padding: 14px;
  box-shadow: var(--shadow-lg);
}
.phone-screen { border-radius: 28px; background: var(--bg-tint); padding: 1.25rem 1.1rem 1.1rem; overflow: hidden; }
.phone-title { font-size: 0.78rem; font-weight: 700; color: var(--muted); margin-bottom: 0.2rem; }
.phone-h { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; margin-bottom: 0.9rem; color: var(--ink); }
.illus-note { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 0.9rem; }

.mini-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0.8rem 0.9rem; margin-top: 0.6rem; font-size: 0.85rem; }
.mini-card .k { color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.mini-card .v { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.diff-list { list-style: none; display: grid; gap: 0.35rem; margin-top: 0.3rem; }
.diff-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 0.75rem; color: var(--ink-2); font-size: 0.8rem; line-height: 1.4; }
.diff-list b { color: var(--ink); font-weight: 700; white-space: nowrap; text-align: right; }

.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .axis { stroke: var(--line-strong); stroke-width: 1; }
.chart .lbl { fill: var(--muted); font: 600 10px var(--font-body); }
.chart .today { stroke: var(--blue); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.chart .past { stroke: var(--past); stroke-width: 2.25; fill: none; stroke-dasharray: 5 5; stroke-linecap: round; }
.chart .meal { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.45; }
.legend { display: flex; gap: 1rem; font-size: 0.75rem; color: var(--muted); margin-top: 0.4rem; }
.legend i { display: inline-block; width: 16px; height: 3px; border-radius: 2px; margin-right: 0.35rem; vertical-align: middle; }
.legend .l-today { background: var(--blue); }
.legend .l-past { background: var(--past); }

/* ── Cards / grids ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s ease;
}
.card:hover { box-shadow: var(--shadow); }
.card p:last-child { margin-bottom: 0; }
.quote-card p { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: var(--ink); letter-spacing: -0.015em; line-height: 1.4; }
.quote-card .fineprint { font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; color: var(--muted); margin-top: 0.75rem; letter-spacing: 0; }
.quote-card .qi { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; margin-bottom: 1.1rem; }
.quote-card .qi svg { width: 22px; height: 22px; }
.lift:hover { transform: translateY(-4px); border-color: var(--sage-2); }

/* ── Steps (inner pages) ── */
.steps { display: grid; gap: 1rem; counter-reset: step; }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding: 2.75rem 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: transparent; color: var(--green-ink); border: 1.5px solid var(--green);
  font-family: var(--font-display); font-weight: 500; font-size: 1.1rem; margin-bottom: 1rem;
}
.step:nth-child(even) .step-visual { order: -1; }
@media (max-width: 860px) {
  .step { grid-template-columns: 1fr; gap: 1.75rem; }
  .step:nth-child(even) .step-visual { order: 0; }
}

/* ── Sticky story (home "how it works") ── */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.story-step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 2rem 0; opacity: 0.3; transition: opacity 0.5s ease; }
.story-step.active { opacity: 1; }
.story-step h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.story-step p { font-size: 1.08rem; max-width: 30rem; }
.story-visual { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; }
.story-phone { position: relative; width: min(100%, 300px); isolation: isolate; }
.story-phone .device { position: relative; width: 100%; }
.story-phone .device img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); opacity: 0; transform: scale(1.03); transition: opacity 0.6s ease, transform 0.8s var(--ease-out); }
.story-phone .device img.on { opacity: 1; transform: none; }
.story-phone::before {
  content: ''; position: absolute; inset: 10% -25% 10%; z-index: -1;
  background: radial-gradient(closest-side, rgba(23,103,90,0.2), transparent), radial-gradient(closest-side at 70% 80%, rgba(242,198,109,0.25), transparent);
  filter: blur(24px);
}
.story-dots { position: absolute; right: -2.25rem; top: 50%; transform: translateY(-50%); display: grid; gap: 0.6rem; }
.story-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: background 0.3s ease, transform 0.3s ease; }
.story-dots i.on { background: var(--green); transform: scale(1.35); }
.story-mobile-shot { display: none; }
@media (max-width: 900px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-visual { display: none; }
  .story-step { min-height: 0; opacity: 1; padding: 2.5rem 0; border-top: 1px solid var(--line); }
  .story-step:first-child { border-top: 0; }
  .story-mobile-shot { display: block; width: min(76%, 250px); margin: 1.75rem auto 0; }
  .story-mobile-shot .device { position: relative; width: 100%; }
}

/* ── A1c cycle timeline ── */
.cycle { position: relative; margin-top: 1rem; }
.cycle-track { position: absolute; left: 36px; right: calc((100% - 3.75rem) / 4 - 36px); top: 34px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.cycle-track span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--green-deep), var(--green), #c98a1a); transform-origin: 0 50%; transform: scaleX(0); transition: transform 1.8s var(--ease-out); }
.cycle.revealed .cycle-track span { transform: scaleX(1); }
.cycle-points { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.cycle-point .dot {
  width: 72px; height: 72px; border-radius: 22px;
  display: grid; place-items: center; align-content: center;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 0.95rem; line-height: 1.05; text-align: center;
  margin-bottom: 1.1rem;
}
.cycle-point .dot small { display: block; font-size: 0.6rem; font-weight: 700; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 2px; }
.cycle-point:first-child .dot, .cycle-point:last-child .dot { background: var(--green-deep); color: #fff; border: 0; box-shadow: var(--shadow-blue); }
.cycle-point:first-child .dot small, .cycle-point:last-child .dot small { color: rgba(255,255,255,0.85); }
.cycle-point h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.cycle-point p { font-size: 0.95rem; color: var(--muted); margin: 0; }
@media (max-width: 860px) {
  .cycle-track { left: 34px; right: auto; top: 36px; bottom: 36px; width: 4px; height: auto; }
  .cycle-track span { transform-origin: 50% 0; transform: scaleY(0); }
  .cycle.revealed .cycle-track span { transform: scaleY(1); }
  .cycle-points { grid-template-columns: 1fr; gap: 1.75rem; }
  .cycle-point { display: grid; grid-template-columns: 72px 1fr; gap: 1.1rem; align-items: start; }
  .cycle-point .dot { margin: 0; }
}

/* ── Pattern list ── */
.patterns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 860px) { .patterns { grid-template-columns: 1fr; } }
.pattern { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out); }
.pattern:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pattern .pair { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-body); font-weight: 650; font-size: 1.02rem; color: var(--ink); margin-bottom: 0.6rem; letter-spacing: -0.015em; }
.pattern .pair svg { width: 18px; height: 18px; color: var(--blue); flex: none; }
.pattern .sample { margin-top: 1rem; padding: 0.75rem 0.9rem; border-radius: 12px; background: var(--surface-2); font-size: 0.88rem; color: var(--ink-2); }
.pattern .sample b { color: var(--ink); }
.pd .callout { margin: 2.25rem auto 0; max-width: 720px; text-align: center; font-size: 0.95rem; color: var(--muted); }

/* ── Split feature ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } .split.flip > :first-child { order: 0; } }
.ticks { list-style: none; display: grid; gap: 0.75rem; margin: 1.4rem 0 0; }
.ticks li { display: grid; grid-template-columns: 24px 1fr; gap: 0.7rem; color: var(--ink-2); }
.ticks svg { width: 22px; height: 22px; margin-top: 2px; color: var(--green-ink); background: var(--sage); border-radius: 50%; padding: 4px; }

.lab-row { display: grid; grid-template-columns: 1fr auto auto; gap: 0.75rem; align-items: baseline; padding: 0.55rem 0; border-top: 1px solid var(--line); font-size: 0.85rem; }
.lab-row:first-of-type { border-top: 0; }
.lab-row .n { font-weight: 800; color: var(--ink); }
.lab-row .u { color: var(--muted); font-size: 0.75rem; }
.flag { font-size: 0.68rem; font-weight: 800; padding: 0.1rem 0.45rem; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.gmi-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.gmi-pair .mini-card { margin-top: 0; }

/* Stat pills under a feature */
.stat-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.stat { padding: 0.9rem 1.1rem; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 140px; }
.stat b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; }
.stat span { font-size: 0.82rem; color: var(--muted); font-weight: 600; }

/* ── Trust: will / won't ── */
.trust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-col { border-radius: var(--radius); padding: 2rem; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.trust-col h3 { display: flex; align-items: center; gap: 0.6rem; }
.trust-list { list-style: none; display: grid; gap: 0.9rem; margin-top: 1rem; }
.trust-list li { display: grid; grid-template-columns: 28px 1fr; gap: 0.65rem; color: var(--ink-2); }
.trust-list .ic { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.trust-list .ic svg { width: 14px; height: 14px; }
.ic-no { background: var(--no-soft); color: var(--no); }
.ic-yes { background: var(--green-soft); color: var(--green-ink); }

/* ── Comparison table ── */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 0.95rem; }
.compare th, .compare td { padding: 1.05rem 1.15rem; text-align: left; border-top: 1px solid var(--line); vertical-align: top; }
.compare thead th { border-top: 0; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 800; }
.compare thead th.us { color: var(--blue-ink); }
.compare tbody th { font-weight: 700; color: var(--ink); width: 28%; }
.compare td { color: var(--ink-2); }
.compare td.us { background: var(--blue-soft); color: var(--ink); font-weight: 600; }

/* ── Learn chips ── */
.topics { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; list-style: none; }
.topics li { padding: 0.6rem 1.05rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 0.92rem; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease-out), border-color 0.3s ease, color 0.3s ease; }
.topics li:hover { transform: translateY(-2px); border-color: var(--green); color: var(--green-ink); }

/* ── Founder ── */
.founder { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: start; max-width: 820px; margin: 0 auto; padding: 2.25rem; }
.founder .mark { width: 56px; height: 56px; border-radius: 50%; background: var(--green-deep); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; box-shadow: var(--shadow-blue); }
.founder blockquote { margin: 0 0 1rem; font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.65rem); font-weight: 400; font-style: italic; line-height: 1.4; color: var(--ink); letter-spacing: -0.02em; }
@media (max-width: 600px) { .founder { grid-template-columns: 1fr; padding: 1.6rem; } }

/* ── FAQ ── */
.faq { max-width: 800px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: #fff; margin-bottom: 0.75rem; padding: 0 1.25rem; transition: box-shadow 0.3s ease, border-color 0.3s ease; }
.faq details[open] { box-shadow: var(--shadow); border-color: var(--sage-2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0; font-weight: 700; font-size: 1.04rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(45deg) translateY(-3px); transition: transform 0.3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq .a { padding: 0 0 1.2rem; }
.faq .a p { margin-bottom: 0.75rem; }
.faq-group + .faq-group { margin-top: 3rem; }
.faq-group h2 { font-size: 1.4rem; margin-bottom: 1rem; }

/* ── CTA band ── */
.cta-band .card {
  position: relative; overflow: hidden; isolation: isolate;
  text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  border: 0; color: #fff;
  background: var(--green-deep);
  box-shadow: var(--shadow-lg);
}
.cta-band .card::before, .cta-band .card::after { content: ''; position: absolute; border-radius: 50%; z-index: -1; filter: blur(40px); opacity: 0.45; }
.cta-band .card::before { width: 380px; height: 380px; background: #2b7a6b; top: -160px; left: -100px; opacity: 0.6; }
.cta-band .card::after { width: 300px; height: 300px; background: #c98a1a; bottom: -170px; right: -80px; opacity: 0.35; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 36rem; margin: 0 auto 1.75rem; font-size: 1.12rem; }
.cta-band .btn-row { justify-content: center; }
.pd .cta-band .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 16px 36px -14px rgba(0,0,0,0.4); }
.pd .cta-band .btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.5); }
.pd .cta-band .btn-ghost:hover { border-color: #fff; }

/* ── Prose (inner pages) ── */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.7rem; margin-top: 2.5rem; }
.prose h3 { margin-top: 1.75rem; }
.prose ul { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.4rem; color: var(--ink-2); }
.toc { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin-top: 1.75rem; list-style: none; }
.toc a { display: inline-block; padding: 0.45rem 0.95rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); text-decoration: none; background: var(--surface); box-shadow: var(--shadow-sm); }
.toc a:hover { border-color: var(--blue); color: var(--blue-ink); }
.note { border-left: 3px solid var(--blue); background: var(--blue-soft); padding: 1rem 1.2rem; border-radius: 0 12px 12px 0; margin: 1.5rem 0; color: var(--ink); }
.note p { color: var(--ink); margin: 0; }

/* ── Download ── */
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 860px; margin: 0 auto; }
@media (max-width: 760px) { .download-grid { grid-template-columns: 1fr; } }
.qr-box { display: flex; justify-content: center; padding: 1rem; background: #fff; border-radius: 14px; width: fit-content; margin: 1rem auto 0; border: 1px solid var(--line); }
.qr-box img, .qr-box canvas { width: 168px; height: 168px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Reveal ── */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="zoom"] { transform: scale(0.94); }
[data-reveal].revealed { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
.chart .draw { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); transition: stroke-dashoffset 2s var(--ease-out) 0.2s; }
.revealed .chart .draw { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal], .rise { opacity: 1; transform: none; transition: none; animation: none; }
  .hero-bg .blob, .chip { animation: none; }
  .stage.intro .device { opacity: 1; }
  .stage.intro .device.center { transform: translateX(-50%); }
  .stage.intro .device.left { transform: rotate(-7deg) scale(0.86); }
  .stage.intro .device.right { transform: rotate(7deg) scale(0.86); }
  .story-phone .device img { transition: none; }
  .cycle-track span { transition: none; transform: none !important; }
  .chart .draw { stroke-dashoffset: 0; transition: none; }
}

/* ── Footer (shared component, restyled for these pages) ── */
.pd .footer { background: var(--bg-tint); border-top: 1px solid var(--line); color: var(--muted); padding: 4.5rem 0 2rem; font-size: 0.95rem; }
.pd .footer .container-pr { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.pd .footer-top-accent, .pd .footer-watermark { display: none; }
.pd .footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 960px) { .pd .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .pd .footer-brand-col, .pd .footer-app-col { grid-column: 1 / -1; } }
@media (max-width: 560px) { .pd .footer-grid { grid-template-columns: 1fr 1fr; } }
.pd .footer-brand-logo { display: inline-flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.pd .footer-logo-img { width: 32px; height: 32px; border-radius: 50%; background: #fff; padding: 3px; box-shadow: var(--shadow-sm); }
.pd .footer-wordmark { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.1rem; letter-spacing: -0.03em; }
.pd .footer-tagline { font-family: var(--font-display); font-weight: 500; color: var(--ink); margin: 1rem 0 0.5rem; line-height: 1.35; }
.pd .footer-desc { font-size: 0.9rem; color: var(--muted); max-width: 300px; }
.pd .footer-email { display: inline-flex; gap: 0.5rem; align-items: center; color: var(--ink-2); text-decoration: none; font-size: 0.9rem; margin-bottom: 1rem; }
.pd .footer-socials { display: flex; gap: 0.5rem; }
.pd .footer-social { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); text-decoration: none; background: #fff; transition: color 0.2s ease, border-color 0.2s ease; }
.pd .footer-social:hover { color: var(--blue); border-color: var(--blue); }
.pd .footer-col-title { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.9rem; }
.pd .footer-link { display: block; color: var(--muted); text-decoration: none; padding: 0.25rem 0; font-size: 0.92rem; transition: color 0.2s ease; }
.pd .footer-link:hover { color: var(--blue-ink); }
.pd .footer-app-desc { font-size: 0.9rem; }
.pd .footer-cta-btn { display: inline-flex; gap: 0.5rem; align-items: center; background: var(--ink); color: #fff; text-decoration: none; padding: 0.7rem 1.15rem; border-radius: 999px; font-weight: 700; font-size: 0.92rem; box-shadow: var(--shadow-blue); }
.pd .footer-platforms { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.pd .footer-platform-badge { font-size: 0.78rem; border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.65rem; color: var(--muted); background: #fff; }
.pd .footer-disclaimer { font-size: 0.82rem; line-height: 1.6; color: var(--muted); max-width: 860px; margin: 0 0 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pd .footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem; font-size: 0.85rem; }
.pd .footer-bottom a { color: var(--muted); text-decoration: none; }
.pd .footer-bottom-links { display: flex; gap: 1rem; }

/* Navbar: always the light glass look on these pages (pd.js adds .scrolled) */
.pd .pr-nav.scrolled .pr-nav-inner { background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); box-shadow: 0 1px 0 rgba(10, 15, 30, 0.04); transition: box-shadow 0.3s ease, background 0.3s ease; }
.pd .pr-nav.raised .pr-nav-inner { background: rgba(255, 255, 255, 0.92); box-shadow: 0 10px 30px -12px rgba(15, 50, 100, 0.25); }
.pd .pr-nav-wordmark { font-family: var(--font-display); letter-spacing: -0.03em; }

/* Navbar mobile menu needs the body font on these pages */
.pd .pr-nav, .pd .pr-nav a { font-family: var(--font-body); text-decoration: none; }
.pd .pr-nav-links { margin: 0; padding: 0; }

/* Grid children default to min-width:auto and would push wide content
   (charts, tables) past the viewport on phones. */
.hero-grid > *, .step > *, .split > *, .grid-3 > *, .grid-2 > *, .story > *,
.patterns > *, .trust-grid > *, .download-grid > *, .gmi-pair > *, .cycle-points > * { min-width: 0; }

/* ============================================================
   Interactive sections (community proof, same-meal chart,
   nutrition, founder line) and motion polish
   ============================================================ */

/* Community stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 0 auto 2.5rem; max-width: 980px; }
.stat-big { background: var(--surface); padding: 1.6rem 1.4rem; text-align: center; }
.stat-big b { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 3.6vw, 2.8rem); letter-spacing: -0.03em; color: var(--ink); line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-big span { display: block; margin-top: 0.35rem; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

.quotes .quote-card { margin: 0; position: relative; display: flex; flex-direction: column; }
.quotes blockquote { margin: 0 0 1.1rem; font-family: var(--font-display); font-size: 1.18rem; line-height: 1.45; color: var(--ink); letter-spacing: -0.01em; flex: 1; }
.quotes figcaption { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.qmark { font-family: var(--font-display); font-size: 3.4rem; line-height: 0.6; color: var(--green); opacity: 0.35; height: 1.4rem; }

/* Same-meal interactive chart */
.diff-table { margin-top: 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.dt-row { display: grid; grid-template-columns: 1.1fr 1fr 1.25fr; gap: 0.75rem; padding: 0.7rem 1rem; border-top: 1px solid var(--line); font-size: 0.93rem; color: var(--ink-2); transition: background 0.25s ease; }
.dt-row:first-child { border-top: 0; }
.dt-row:not(.dt-head):hover { background: var(--surface-2); }
.dt-row [role="rowheader"] { color: var(--muted); font-weight: 500; }
.dt-head { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--surface-2); }
.c-today { color: var(--green-ink); } .c-past { color: var(--ink-2); }
.scrub-card { padding: 1.4rem 1.4rem 1.2rem; box-shadow: var(--shadow); }
.scrub-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 0.4rem; flex-wrap: wrap; }
.scrub-top .k { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.scrub-read { display: flex; align-items: baseline; gap: 0.75rem; margin-top: 0.15rem; font-variant-numeric: tabular-nums; }
.scrub-read .r-today { font-family: var(--font-display); font-size: 2rem; color: var(--green); letter-spacing: -0.03em; }
.scrub-read .r-past { font-family: var(--font-display); font-size: 1.35rem; color: var(--past); }
.scrub-read .r-at { font-size: 0.8rem; color: var(--muted); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; font: 600 0.82rem var(--font-body); color: var(--muted); padding: 0.4rem 0.8rem; border-radius: 999px; cursor: pointer; min-height: 32px; transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.chart.scrub { touch-action: pan-y; cursor: crosshair; user-select: none; -webkit-user-select: none; }
.chart.scrub .grid-lines line { stroke: var(--line); stroke-width: 1; }
.chart.scrub .today-line { fill: none; stroke: var(--green); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; transition: opacity 0.35s ease, stroke-width 0.35s ease; }
.chart.scrub .past-line { fill: none; stroke: var(--past); stroke-width: 2.4; stroke-dasharray: 5 5; stroke-linecap: round; transition: opacity 0.35s ease; }
.chart.scrub .area-past { fill: rgba(154, 159, 155, 0.12); transition: opacity 0.35s ease; }
.chart.scrub .cursor { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.5; }
.chart.scrub .dot-today { fill: var(--green); stroke: #fff; stroke-width: 2; }
.chart.scrub .dot-past { fill: var(--past); stroke: #fff; stroke-width: 2; }
.scrub[data-focus="today"] .past-line, .scrub[data-focus="today"] .area-past, .scrub[data-focus="today"] .dot-past { opacity: 0.18; }
.scrub[data-focus="past"] .today-line, .scrub[data-focus="past"] .dot-today { opacity: 0.18; }
.scrub[data-focus="past"] .past-line { stroke: var(--ink-2); }
.scrub-card .legend { align-items: center; }
.scrub-time { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink-2); }
.scrub-card .legend .l-today { background: var(--green); }

/* Nutrition duo */
.duo { position: relative; height: 600px; max-width: 460px; margin: 0 auto; width: 100%; }
.duo .phone-shot { position: absolute; width: 250px; transition: transform 0.8s var(--ease-out); }
.duo .back { left: 0; top: 0; transform: rotate(-4deg); }
.duo .front { right: 0; top: 70px; transform: rotate(3deg); z-index: 2; }
.duo:hover .back { transform: rotate(-6deg) translateX(-10px); }
.duo:hover .front { transform: rotate(5deg) translateX(10px); }
@media (max-width: 860px) { .duo { height: 520px; max-width: 400px; } .duo .phone-shot { width: 210px; } }
@media (max-width: 420px) { .duo { height: 440px; } .duo .phone-shot { width: 176px; } }
.ways { list-style: none; display: grid; gap: 0.6rem; margin-top: 1.4rem; }
.ways li { display: grid; grid-template-columns: 40px 1fr; gap: 0.85rem; align-items: start; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; transition: transform 0.3s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease; outline: none; }
.ways li:hover, .ways li:focus-visible { transform: translateX(4px); border-color: var(--sage-2); box-shadow: var(--shadow-sm); }
.ways b { display: block; color: var(--ink); font-weight: 650; }
.w-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--sage); color: var(--green-ink); }
.w-ico svg { width: 20px; height: 20px; }

/* Founder HbA1c line */
.a1c-line { list-style: none; margin: 0.25rem 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; align-items: end; }
.a1c-line { align-items: start; }
.a1c-line li { position: relative; padding-right: 1.5rem; }
.a1c-line li:not(:last-child)::after { content: ''; position: absolute; right: 0.25rem; top: 1.05rem; width: 0.9rem; height: 0.9rem; border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong); transform: rotate(45deg); }
.a1c-line li b { display: inline-block; font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; color: var(--ink); padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); transform: translateY(12px); opacity: 0; transition: transform 0.8s var(--ease-spring), opacity 0.6s ease; }
.a1c-line li.up b { color: var(--no); background: var(--no-soft); border-color: transparent; }
.a1c-line li.down b { color: var(--green-ink); background: var(--sage); border-color: transparent; }
.a1c-line li span { display: block; margin-top: 0.45rem; font-size: 0.82rem; line-height: 1.45; color: var(--muted); }
.a1c-line li:nth-child(2) b { transition-delay: 0.15s; } .a1c-line li:nth-child(3) b { transition-delay: 0.3s; }
.revealed .a1c-line li b { transform: none; opacity: 1; }
@media (max-width: 600px) { .a1c-line { grid-template-columns: 1fr; } .a1c-line li::after { display: none; } }

/* Pointer spotlight on cards */
.card, .pattern, .trust-col, .ways li { --mx: 50%; --my: 50%; }
.spot { background-image: radial-gradient(420px circle at var(--mx) var(--my), rgba(23, 103, 90, 0.06), transparent 45%); }

/* Headings settle in from a soft blur */
[data-reveal] h2 { filter: blur(6px); transition: filter 1s var(--ease-out) 0.05s; }
[data-reveal].revealed h2 { filter: none; }

/* Smooth FAQ open/close (pd.js animates the height) */
.faq details .a { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] h2 { filter: none; transition: none; }
  .a1c-line li b { transform: none; opacity: 1; transition: none; }
  .duo .phone-shot, .ways li, .chart.scrub * { transition: none !important; }
}
.no-js .a1c-line li b { transform: none; opacity: 1; }

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

/* About: founder photo, team cards */
.founder img.mark.photo { object-fit: cover; padding: 0; background: var(--sage); }
.team .person { text-align: left; }
.team .person img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--sage); margin-bottom: 1rem; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line); }
.team .person h3 { margin-bottom: 0.15rem; font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; }
.team .person .role { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-ink); margin-bottom: 0.75rem; }
.story-step h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.025em; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.25rem; max-width: 900px; margin: 0 auto; align-items: stretch; }
@media (max-width: 760px) { .pricing { grid-template-columns: 1fr; } }
.price-card { display: flex; flex-direction: column; gap: 0.25rem; padding: 2rem; }
.price-card p { color: var(--muted); flex: 1; margin: 0.5rem 0 1.4rem; }
.price-card .btn { align-self: flex-start; }
.p-top { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.p-name { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-ink); }
.p-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.p-amount b { font-family: var(--font-display); font-weight: 500; font-size: 3.2rem; letter-spacing: -0.04em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.p-amount span { color: var(--muted); font-size: 1rem; }
.p-save { flex-basis: 100%; font-style: normal; font-size: 0.88rem; font-weight: 600; color: var(--green-ink); margin-top: 0.35rem; min-height: 1.3em; }
.price-card.pro { border-color: var(--sage-2); box-shadow: var(--shadow); background: linear-gradient(180deg, #fff, #fbfaf6); }
.p-amount b.swap { animation: priceSwap 0.45s var(--ease-out); }
@keyframes priceSwap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .p-amount b.swap { animation: none; } }
.p-amount b.p-word { font-size: clamp(2rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; }

/* ============================================================
   Type system v5: one family, Atkinson Hyperlegible Next
   (Braille Institute; built for legibility, which suits readers
   checking glucose numbers). Plain one-colour headlines, sentence-
   case labels, quieter section motion.
   ============================================================ */
:root {
  --font-display: 'Atkinson Hyperlegible Next', system-ui, -apple-system, sans-serif;
  --font-body: 'Atkinson Hyperlegible Next', system-ui, -apple-system, sans-serif;
}
body.pd { font-size: 1.125rem; line-height: 1.6; letter-spacing: 0; }
.pd h1, .pd h2, .pd h3, .pd h4 { font-weight: 800; letter-spacing: -0.022em; line-height: 1.08; }
.pd h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -0.03em; max-width: 14ch; }
.pd h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); max-width: 22ch; }
.section-head h2 { margin-left: auto; margin-right: auto; }
.pd h3, .story-step h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.25; }
.story-step h3 { font-size: clamp(1.45rem, 2.3vw, 1.85rem); letter-spacing: -0.018em; }
.pd p, .lede { max-width: 62ch; }
.section-head p { margin-left: auto; margin-right: auto; }
.lede { font-size: 1.22rem; line-height: 1.55; color: var(--ink-2); }
.grad-text, .hero-pd h1 .soft { color: inherit; font-style: normal; font-weight: inherit; }

/* Labels: sentence case, no rules, only where they inform */
.eyebrow { text-transform: none; letter-spacing: 0; font-size: 1rem; font-weight: 700; color: var(--green); margin-bottom: 0.9rem; }
.eyebrow::before { display: none; }
.section-head .eyebrow { display: none; }
.p-name, .dt-head, .team .person .role, .pd .footer-col-title, .compare thead th, .cycle-point .dot small { text-transform: none; letter-spacing: 0; }
.p-name { font-size: 1rem; }
.compare thead th { font-size: 0.95rem; }
.cycle-point .dot small { font-size: 0.7rem; }

/* Quotes and numbers in the same family, upright */
.quotes blockquote, .quote-card p { font-family: var(--font-body); font-weight: 600; font-size: 1.15rem; line-height: 1.5; }
.founder blockquote { font-style: normal; font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.6rem); line-height: 1.35; letter-spacing: -0.012em; }
.qmark { font-family: var(--font-body); font-weight: 800; }
.stat-big b, .p-amount b, .stat b, .mini-card .v, .chip b, .scrub-read .r-today, .scrub-read .r-past { font-family: var(--font-body); font-weight: 800; letter-spacing: -0.03em; }

/* One orchestrated entrance (the hero); sections just appear */
[data-reveal], [data-reveal="left"], [data-reveal="right"], [data-reveal="zoom"] { transform: none; transition: opacity 0.6s ease; }
[data-reveal] h2 { filter: none; transition: none; }

/* Mid-page call to action */
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; margin: 1rem 0 clamp(3.5rem, 7vw, 5.5rem); padding: 1.6rem 1.8rem; border: 1px solid var(--sage-2); border-radius: var(--radius); background: var(--sage); }
.cta-inline p { margin: 0; color: var(--ink); font-size: 1.15rem; font-weight: 600; max-width: 40ch; }
.cta-inline p span { display: block; font-weight: 400; font-size: 1rem; color: var(--ink-2); margin-top: 0.15rem; }
.cta-inline .btn-row { flex-shrink: 0; }

/* Sticky download bar on phones, shown between the hero and the closing CTA */
.m-cta { display: none; }
@media (max-width: 760px) {
  .m-cta { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 1500; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 0.6rem 0.6rem 0.6rem 1rem; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 14px 34px -12px rgba(20, 24, 21, 0.55); transform: translateY(140%); transition: transform 0.4s var(--ease-out); }
  .m-cta.show { transform: none; }
  .m-cta span { font-weight: 600; font-size: 0.95rem; }
  .m-cta a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 0.4rem; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 0.95rem; padding: 0.65rem 1rem; border-radius: 999px; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .m-cta { transition: none; } }

/* ============================================================
   v6: Host Grotesk at premium (lighter) weights, tighter rhythm,
   and a much shorter page on phones.
   ============================================================ */
:root {
  --font-display: 'Host Grotesk', system-ui, -apple-system, sans-serif;
  --font-body: 'Host Grotesk', system-ui, -apple-system, sans-serif;
}
body.pd { font-size: 1.0625rem; line-height: 1.6; }
.pd h1, .pd h2 { font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; }
.pd h1 { font-size: clamp(2.5rem, 5.4vw, 4.5rem); max-width: 13ch; }
.pd h2 { font-size: clamp(1.85rem, 3.3vw, 2.7rem); letter-spacing: -0.03em; line-height: 1.08; }
.pd h3, .story-step h3 { font-weight: 600; letter-spacing: -0.015em; }
.story-step h3 { font-weight: 500; letter-spacing: -0.025em; }
.lede { font-size: 1.15rem; }
.eyebrow { font-weight: 600; font-size: 0.98rem; }
.stat-big b, .p-amount b, .stat b, .chip b, .scrub-read .r-today, .scrub-read .r-past { font-weight: 400; letter-spacing: -0.04em; }
.chip b { font-weight: 600; letter-spacing: -0.02em; }
.quotes blockquote, .quote-card p { font-weight: 400; font-size: 1.12rem; }
.founder blockquote { font-weight: 500; letter-spacing: -0.02em; }
.p-amount b.p-word { font-weight: 500; letter-spacing: -0.035em; }
.btn { font-weight: 500; }

/* Centred contexts keep centred headings */
.cta-band h2, .cta-band p, .page-hero h1, .page-hero .lede { margin-left: auto; margin-right: auto; }
.cta-band h2 { max-width: 20ch; }

/* Tighter vertical rhythm everywhere */
.section { padding: clamp(3.5rem, 6.5vw, 5.5rem) 0; }
.section-tight { padding: clamp(2.5rem, 5vw, 3.75rem) 0; }
.section-head { margin-bottom: 2.25rem; }
.hero-pd { padding: 7.75rem 0 3.5rem; }
.story-step { min-height: 56vh; padding: 1.5rem 0; }
.stage { height: 600px; }
.cta-inline { margin: 0.5rem 0 clamp(2.5rem, 5vw, 4rem); }
.stats { margin-bottom: 2rem; }
.callout, .pd .callout { margin-top: 1.5rem; }

/* ── Phones: shorter page ── */
@media (max-width: 760px) {
  body.pd { font-size: 1rem; }
  .section { padding: 2.75rem 0; }
  .section-tight { padding: 2rem 0; }
  .section-head { margin-bottom: 1.5rem; }
  .hero-pd { padding: 6.5rem 0 1.5rem; }
  .hero-grid { gap: 1.5rem; }
  .stage { height: 430px; }
  .lede { font-size: 1.05rem; }
  .split { gap: 1.5rem; }
  .phone-shot { width: min(58%, 220px); }
  .phone-shot .shot-caption, .story-mobile-shot + .shot-caption { display: none; }
  .duo { height: 380px; max-width: 340px; }
  .duo .phone-shot { width: 168px; }
  .duo .front { top: 46px; }

  /* Swipeable rows instead of tall stacks */
  .story-steps, .quotes, .topics { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0.85rem; margin: 0 -1rem; padding: 0.25rem 1rem 0.75rem; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .story-steps::-webkit-scrollbar, .quotes::-webkit-scrollbar, .topics::-webkit-scrollbar { display: none; }
  .story-step { flex: 0 0 84%; scroll-snap-align: start; min-height: 0; opacity: 1; padding: 1.25rem; border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .story-step h3 { font-size: 1.3rem; }
  .story-step p { font-size: 0.98rem; }
  .story-mobile-shot { width: 56%; margin: 1rem auto 0; }
  .quotes .quote-card { flex: 0 0 84%; scroll-snap-align: start; padding: 1.25rem; }
  .quotes blockquote { font-size: 1.02rem; }
  .topics { justify-content: flex-start; }
  .topics li { flex: 0 0 auto; scroll-snap-align: start; white-space: nowrap; }
  .swipe-hint { display: block; }

  .stat-big { padding: 1.1rem 0.75rem; }
  .stat-big b { font-size: 1.9rem; }
  .ways { gap: 0.5rem; }
  .ways li { padding: 0.7rem 0.85rem; font-size: 0.92rem; }
  .patterns { gap: 0.6rem; }
  .pattern { padding: 1rem 1.1rem; }
  .stat-row { display: none; }
  .ticks { gap: 0.55rem; }
  .trust-col { padding: 1.4rem; }
  .price-card { padding: 1.5rem; }
  .founder { padding: 1.4rem; }
  .cycle-points { gap: 1.1rem; }
  .cta-inline { padding: 1.25rem; }
  .cta-band .card { padding: 2.25rem 1.25rem; }
}
.swipe-hint { display: none; font-size: 0.85rem; color: var(--muted); margin: 0 0 0.5rem; }
@media (max-width: 760px) {
  /* Nutrition: four ways as a 2x2 of titles */
  .ways { grid-template-columns: 1fr 1fr; }
  .ways li { grid-template-columns: 1fr; gap: 0.45rem; }
  .ways li span:not(.w-ico) { font-size: 0; }
  .ways li b { font-size: 0.95rem; }
  .w-ico { width: 34px; height: 34px; border-radius: 10px; }
  #nutrition .fineprint { display: none; }
  /* Patterns: titles with one short line */
  .pattern p { font-size: 0.9rem; margin: 0; }
  .pattern .pair { margin-bottom: 0.3rem; font-size: 0.98rem; }
  /* Trust lists and timeline tighter */
  .trust-list { gap: 0.6rem; }
  .trust-list li { font-size: 0.95rem; }
  .cycle-point p { font-size: 0.9rem; }
  .cycle-point .dot { width: 60px; height: 60px; border-radius: 18px; }
  .cycle-point { grid-template-columns: 60px 1fr; }
  .cycle-track { left: 28px; }
  /* Compact footer */
  .pd .footer { padding: 2.5rem 0 1.5rem; }
  .pd .footer-grid { gap: 1.25rem 1rem; margin-bottom: 1.25rem; }
  .pd .footer-desc, .pd .footer-app-desc, .pd .footer-platforms { display: none; }
  .pd .footer-tagline { margin: 0.6rem 0 0.4rem; }
  .pd .footer-link { padding: 0.15rem 0; }
  .pd .footer-disclaimer { padding-top: 1rem; margin-bottom: 1rem; font-size: 0.78rem; }
  .compare th, .compare td { padding: 0.75rem 0.8rem; font-size: 0.88rem; }
}

/* ============================================================
   v7: Urbanist (the app's own typeface) on the existing warm palette.
   Headlines are two-tone like the App Store art: the key phrase
   in the deep green accent.
   ============================================================ */
:root {
  --font-display: 'Urbanist', system-ui, -apple-system, sans-serif;
  --font-body: 'Urbanist', system-ui, -apple-system, sans-serif;
}
body.pd { font-size: 1.0625rem; line-height: 1.6; font-weight: 500; }
.pd p { font-weight: 500; }
.pd h1, .pd h2 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }
.pd h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); max-width: 14ch; }
.pd h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.pd h3, .story-step h3 { font-weight: 700; letter-spacing: -0.015em; }
.accent { color: var(--green); }
.cta-band .accent { color: #f2c66d; }
.eyebrow { font-weight: 700; }
.stat-big b, .p-amount b, .stat b, .scrub-read .r-today, .scrub-read .r-past { font-weight: 700; letter-spacing: -0.035em; }
.chip b { font-weight: 800; }
.quotes blockquote, .quote-card p { font-weight: 600; }
.founder blockquote { font-weight: 700; }
.btn { font-weight: 700; }

/* ── Connect: glucose at the centre, the day around it ── */
.connect { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .connect { grid-template-columns: 1fr; gap: 1.5rem; } }
.web { position: relative; width: min(100%, 540px); aspect-ratio: 1; margin: 0 auto; }
.web-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.web-lines .link { stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round; animation: flow 1.6s linear infinite; transition: stroke 0.35s ease, stroke-width 0.35s ease, opacity 0.35s ease; }
.web-lines .link.on { stroke: var(--green); stroke-width: 3.5; stroke-dasharray: 6 8; filter: drop-shadow(0 0 6px rgba(23, 103, 90, 0.35)); }
.web.has-on .link:not(.on) { opacity: 0.45; }
@keyframes flow { to { stroke-dashoffset: -24; } }
.hub { position: absolute; left: 50%; top: 50%; width: 36%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 50% 35%, #fff, #f6f3ec); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; z-index: 2; }
.hub::before, .hub::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(23, 103, 90, 0.18); animation: ring 3.2s var(--ease-out) infinite; }
.hub::after { animation-delay: 1.6s; }
@keyframes ring { from { transform: scale(0.94); opacity: 1; } to { transform: scale(1.22); opacity: 0; } }
.hub-k { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.hub-spark { width: 64%; height: auto; margin: 0.35rem 0 0.2rem; }
.hub-spark path { fill: none; stroke: var(--glucose, #be185d); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hub-v { font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 1.9rem); letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.hub-v small { font-size: 0.5em; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.node { position: absolute; transform: translate(-50%, -50%); z-index: 3; display: inline-flex; align-items: center; gap: 0.55rem; padding: 0.55rem 0.95rem 0.55rem 0.55rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); font: 700 0.98rem var(--font-body); color: var(--ink); cursor: pointer; transition: transform 0.35s var(--ease-spring), box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease; }
.node:hover { transform: translate(-50%, -50%) scale(1.05); box-shadow: var(--shadow); }
.node.on { border-color: var(--green); background: #fff; box-shadow: 0 0 0 5px var(--sage), var(--shadow); transform: translate(-50%, -50%) scale(1.08); }
.n-ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sage); color: var(--green-ink); transition: background 0.3s ease, color 0.3s ease; }
.n-ico svg { width: 18px; height: 18px; }
.node.on .n-ico { background: var(--green); color: #fff; }
.web-panel { padding: 1.8rem; box-shadow: var(--shadow); }
.wp-k { font-weight: 700; color: var(--green); }
.wp-m { font-weight: 800; font-size: clamp(2rem, 3.6vw, 2.8rem); letter-spacing: -0.035em; color: var(--ink); line-height: 1.05; margin: 0.4rem 0 0.75rem; }
.web-panel [data-wp-t] { color: var(--ink-2); font-size: 1.05rem; }
.web-panel .swap { animation: wpIn 0.45s var(--ease-out); }
@keyframes wpIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .web { width: 100%; }
  .node { font-size: 0.8rem; padding: 0.35rem 0.6rem 0.35rem 0.35rem; gap: 0.35rem; }
  .n-ico { width: 26px; height: 26px; } .n-ico svg { width: 14px; height: 14px; }
  .hub { width: 40%; }
  .web-panel { padding: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) {
  .web-lines .link, .hub::before, .hub::after { animation: none; }
  .web-panel .swap { animation: none; }
}

/* Mid-page CTA: buttons wrap inside the card; phones get one full-width button */
.cta-inline .btn-row { flex-shrink: 1; flex-wrap: wrap; }
@media (max-width: 760px) {
  .cta-inline { flex-direction: column; align-items: stretch; }
  .cta-inline .btn-row { width: 100%; }
  .cta-inline .btn-row .btn { width: 100%; }
  .cta-inline .btn-ghost[href="/download/"] { display: none; }
  .cta-band .btn-row .btn { width: 100%; }
  .cta-band .btn-ghost[href="/download/"] { display: none; }
}

/* Connect panel: live number, direction, comparison bars */
.wp-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin: 0.35rem 0 1.1rem; flex-wrap: wrap; }
.wp-m { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.wp-m [data-wp-n] { font-weight: 800; font-size: clamp(2.4rem, 4.4vw, 3.4rem); letter-spacing: -0.04em; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.wp-m small { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.delta { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.35rem 0.7rem; border-radius: 999px; font-weight: 700; font-size: 0.92rem; white-space: nowrap; transition: background 0.3s ease, color 0.3s ease; }
.delta.up { background: #fdecef; color: #b4234b; }
.delta.down { background: var(--sage); color: var(--green-ink); }
.delta.flat { background: var(--surface-2); color: var(--muted); }
.delta:empty { display: none; }
.bars { display: grid; gap: 0.7rem; margin-bottom: 1.1rem; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.3rem 0.75rem; align-items: center; }
.bar-l { font-size: 0.9rem; color: var(--ink-2); font-weight: 600; }
.bar-v { font-size: 0.95rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.bar-t { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar-f { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--past); transition: width 0.8s var(--ease-out); }
.bar.lead .bar-f { background: var(--green); }
.bar-scale { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--muted); margin-top: -0.25rem; }
.cols { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem; align-items: end; height: 110px; margin-bottom: 1.1rem; }
.col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 0.3rem; }
.col-b { width: 100%; max-width: 30px; border-radius: 8px 8px 4px 4px; background: var(--sage-2); height: 0; transition: height 0.7s var(--ease-out); }
.col.low .col-b { background: var(--green); }
.col-v { font-size: 0.75rem; font-weight: 700; color: var(--ink-2); }
.col-d { font-size: 0.75rem; font-weight: 700; color: var(--muted); }
.web-panel [data-wp-t] { font-size: 1rem; }
@media (prefers-reduced-motion: reduce) { .bar-f, .col-b { transition: none; } }

/* Connect: each source has its own colour; the active one tints the web */
.connect { --active: var(--green); }
.node { --c: var(--green); }
.n-ico { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
.node:hover { border-color: color-mix(in srgb, var(--c) 45%, #fff); }
.node.on { border-color: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 16%, transparent), var(--shadow); }
.node.on .n-ico { background: var(--c); color: #fff; }
.web-lines .link.on { stroke: var(--c, var(--green)); filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c, #17675a) 45%, transparent)); }
.hub { border-color: color-mix(in srgb, var(--active) 30%, var(--line)); transition: border-color 0.4s ease, box-shadow 0.4s ease; box-shadow: 0 0 0 8px color-mix(in srgb, var(--active) 7%, transparent), var(--shadow-lg); }
.hub::before, .hub::after { border-color: color-mix(in srgb, var(--active) 35%, transparent); }
.wp-k { color: var(--active); transition: color 0.3s ease; }
.web-panel { border-top: 4px solid var(--active); transition: border-color 0.4s ease; }
.bar.lead .bar-f { background: var(--active); }
.col.low .col-b { background: var(--active); }
.col-b { background: color-mix(in srgb, var(--active) 22%, #fff); }
.hub-spark path { stroke: var(--active); transition: stroke 0.4s ease; }
.wp-m small { letter-spacing: 0; }
.cols { height: auto; }
.col { height: auto; justify-content: flex-end; }
.col-b { flex-shrink: 0; }

/* QR dialog (opened from "Get a QR code" links) */
.qr-dialog { width: min(92vw, 380px); padding: 2rem 1.75rem 1.5rem; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); text-align: center; box-shadow: var(--shadow-lg); }
.qr-dialog::backdrop { background: rgba(20, 24, 21, 0.45); backdrop-filter: blur(4px); }
.qr-dialog[open] { animation: qr-in 0.35s var(--ease-out, ease) both; }
@keyframes qr-in { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
.qr-dialog h2 { font-size: 1.35rem; margin: 0 0 0.4rem; }
.qr-dialog p { margin: 0; color: var(--muted); }
.qr-dialog .qr-box { margin: 1.25rem auto 1rem; }
.qr-dialog .qr-box img, .qr-dialog .qr-box canvas { width: 184px; height: 184px; }
.qr-close { position: absolute; top: 0.75rem; right: 0.75rem; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--bg-tint); color: var(--ink-2); cursor: pointer; }
.qr-close:hover { background: var(--line); }
.qr-close svg { width: 16px; height: 16px; }
@media (prefers-reduced-motion: reduce) { .qr-dialog[open] { animation: none; } }

/* Connect web: "Next" countdown under the panel */
.wp-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 0.25rem; }
.wp-next { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--muted); opacity: 0.45; transition: opacity 0.3s ease; }
.wp-next b { color: var(--ink-2); font-weight: 700; }
.wp-next.run { opacity: 1; }
.wp-timer { width: 64px; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.wp-timer i { display: block; height: 100%; width: 100%; background: var(--active, var(--green)); transform-origin: left; transform: scaleX(0); }
.wp-next.run .wp-timer i { animation: wp-countdown var(--wp-interval, 5s) linear forwards; }
@keyframes wp-countdown { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .wp-next { display: none; } }

/* About: story timeline */
.journey { position: relative; list-style: none; max-width: 820px; margin: 3rem auto 0; padding: 0; }
/* Each step draws the rail down to the next marker, coloured by where the number went. */
.j-step::before { content: ''; position: absolute; left: 54px; top: 2rem; bottom: -2.5rem; width: 3px; border-radius: 3px; background: linear-gradient(var(--line-strong), color-mix(in srgb, var(--no) 55%, var(--line-strong))); }
.j-step.up::before { background: linear-gradient(color-mix(in srgb, var(--no) 55%, var(--line-strong)), color-mix(in srgb, var(--green) 55%, var(--line-strong))); }
.j-step.down::before { background: linear-gradient(color-mix(in srgb, var(--green) 55%, var(--line-strong)), var(--green-deep)); }
.j-step:last-child::before { display: none; }
.j-step { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 1.5rem; align-items: start; margin-bottom: 1.5rem; }
.j-marker { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; padding-top: 1.2rem; }
.j-year { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); background: var(--bg); padding: 0 0.4rem; }
.j-a1c { display: inline-block; min-width: 84px; text-align: center; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); padding: 0.4rem 0.8rem; border-radius: 999px; background: var(--surface); border: 2px solid var(--line-strong); box-shadow: var(--shadow-sm); }
.j-step.up .j-a1c { color: var(--no); background: var(--no-soft); border-color: color-mix(in srgb, var(--no) 35%, transparent); }
.j-step.down .j-a1c { color: var(--green-ink); background: var(--sage); border-color: color-mix(in srgb, var(--green) 35%, transparent); }
.j-logo { width: 52px; height: 52px; padding: 7px; border-radius: 50%; background: #fff; border: 2px solid var(--green); box-shadow: 0 0 0 6px var(--sage); }
.j-body { padding: 1.6rem 1.75rem; }
.j-body h3 { font-size: 1.3rem; margin: 0.3rem 0 0.55rem; letter-spacing: -0.015em; }
.j-body p { color: var(--ink-2); }
.j-body .fineprint { margin: 0.75rem 0 0; }
.j-tag { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.j-step.up .j-tag { color: var(--no); }
.j-step.down .j-tag { color: var(--green); }
.j-step.now .j-body { background: var(--green-deep); border-color: var(--green-deep); color: #fff; box-shadow: var(--shadow-lg); }
.j-step.now .j-body h3 { color: #fff; font-size: 1.5rem; }
.j-step.now .j-body p { color: rgba(255, 255, 255, 0.82); }
.j-step.now .j-tag { color: #9fd4c2; }
.j-step.now .j-year { color: var(--green); }
.j-link { display: inline-flex; gap: 0.4rem; margin-top: 0.5rem; padding: 0.6rem 1.1rem; border-radius: 999px; background: #fff; color: var(--green-deep); font-weight: 700; text-decoration: none; transition: transform 0.25s var(--ease-out); }
.j-link:hover { transform: translateX(3px); }
@media (max-width: 600px) {
  .j-step::before { left: 36px; }
  .j-step { grid-template-columns: 76px 1fr; gap: 0.9rem; }
  .j-a1c { min-width: 0; font-size: 1.1rem; padding: 0.3rem 0.6rem; }
  .j-logo { width: 42px; height: 42px; }
  .j-body { padding: 1.2rem 1.15rem; }
  .j-body h3 { font-size: 1.12rem; }
  .j-step.now .j-body h3 { font-size: 1.25rem; }
}

/* ============================================================
   Motion, askvora-style: content rises a short way as it fades in,
   on one soft ease-out; grids stagger; pages cross-fade.
   ============================================================ */
:root { --ease-soft: cubic-bezier(0.2, 0.8, 0.2, 1); }
[data-reveal], [data-reveal="left"], [data-reveal="right"], [data-reveal="zoom"] {
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft);
  transition-delay: var(--d, 0s);
}
[data-reveal].revealed { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* Page-to-page: the old page fades out, the new one fades up. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out 0.22s var(--ease-soft) both; }
::view-transition-new(root) { animation: vt-in 0.5s var(--ease-soft) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal="left"], [data-reveal="right"], [data-reveal="zoom"] { opacity: 1; transform: none; transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* Screenshots: a soft shimmer instead of blank white while they load */
.device img { background: linear-gradient(100deg, #eceae4 30%, #f7f5f0 50%, #eceae4 70%) 0 0 / 300% 100%; }
.device img:not(.is-loaded) { animation: shot-shimmer 1.4s linear infinite; }
.device img.is-loaded { background: #fff; }
@keyframes shot-shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .device img:not(.is-loaded) { animation: none; } }

/* ============================================================
   Home (AI health companion): works-with strip, health-area
   cards, "You" hub, more-in-the-app tiles, prediabetes
   spotlight and the three-step how-it-works.
   ============================================================ */
.pr-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--c, var(--green)); background: color-mix(in srgb, var(--c, var(--green)) 12%, #fff); }
.pr-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Works with */
.works { padding: 0 0 clamp(2.5rem, 5vw, 3.5rem); }
.works .wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 1.4rem; padding-bottom: 1.4rem; text-align: center; }
.works-k { margin: 0 0 0.85rem; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.works-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 2.25rem; }
.works-list li { font-weight: 700; font-size: clamp(1.05rem, 1.8vw, 1.3rem); letter-spacing: -0.02em; color: var(--ink-2); }
.works-note { margin: 0.8rem 0 0; font-size: 0.85rem; color: var(--muted); }
@media (max-width: 600px) { .works-list { gap: 0.4rem 1.25rem; } }

/* Health areas: a card per area, a phone peeking up from the bottom */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.area { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 520px; padding: 1.6rem 1.6rem 0; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--c) 7%, #fff) 100%); scroll-margin-top: 110px;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s ease; }
.area:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c) 30%, var(--line)); }
.area h3 { margin: 1rem 0 0.4rem; font-size: 1.3rem; }
.area p { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.5; }
.area-shot { position: relative; margin-top: auto; padding-top: 1.5rem; height: 300px; }
.area-shot .device { position: absolute; left: 50%; top: 1.5rem; width: 230px; border-radius: 38px; padding: 7px; transform: translateX(-50%); transition: transform 0.6s var(--ease-out); }
.area-shot .device img { border-radius: 31px; }
.area:hover .area-shot .device { transform: translate(-50%, -14px); }
@media (max-width: 960px) { .areas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .areas { grid-template-columns: 1fr; gap: 1rem; }
  .area { min-height: 0; }
  .area-shot { height: 260px; }
  .area-shot .device { width: 210px; }
}

/* The connect web, centred on "You" */
.hub-you { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green); margin-bottom: 0.15rem; }
.home .hub-spark path { stroke: var(--active, var(--green)); transition: stroke 0.4s ease; }

/* More in the app */
.more { padding-bottom: clamp(2rem, 4vw, 3rem); }
.more-h { text-align: center; font-size: clamp(1.4rem, 2.4vw, 1.8rem) !important; margin: 0 0 1.5rem; }
.more-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.9rem; }
.more-item { display: flex; flex-direction: column; gap: 0.25rem; padding: 1.15rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.more-item .pr-ico { margin-bottom: 0.55rem; }
.more-item b { font-size: 1rem; color: var(--ink); }
.more-item span:last-child { font-size: 0.88rem; color: var(--muted); line-height: 1.4; }
@media (max-width: 960px) { .more-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .more-grid { grid-template-columns: 1fr 1fr; } .more-item:last-child { grid-column: 1 / -1; } }

/* Prediabetes spotlight */
.spot-banner { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 2.5rem; align-items: center;
  padding: clamp(1.75rem, 4vw, 3.5rem); border-radius: 28px; color: #e8f1ed;
  background: radial-gradient(120% 90% at 100% 0%, #1f7d6d 0%, transparent 55%), linear-gradient(140deg, #0e3631 0%, #17675a 100%); }
.spot-banner .eyebrow { color: #f2c66d; }
.spot-banner h2 { color: #fff; margin: 0.6rem 0 1rem; }
.spot-banner h2 .accent { color: #f2c66d; }
.spot-copy > p { color: rgba(232, 241, 237, 0.86); font-size: 1.08rem; max-width: 40rem; }
.spot-teasers { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin: 1.5rem 0 1.25rem; }
.spot-t { display: flex; flex-direction: column; gap: 0.3rem; padding: 1rem 1.1rem; border-radius: 16px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); }
.spot-k { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(232, 241, 237, 0.7); }
.spot-v { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.spot-v small { font-size: 0.55em; font-weight: 700; color: rgba(232, 241, 237, 0.7); letter-spacing: 0; }
.spot-s { font-size: 0.88rem; line-height: 1.4; color: rgba(232, 241, 237, 0.78); }
.spot-proof { margin: 0 0 1.5rem; font-size: 0.98rem; color: rgba(232, 241, 237, 0.86); }
.spot-proof b { color: #fff; font-size: 1.15rem; }
.pd .btn-light { background: #fff; color: var(--green-deep); box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.5); }
.pd .btn-light:hover { transform: translateY(-2px); background: #f2c66d; }
.spot-phone { position: relative; height: 520px; }
.spot-phone .device { position: absolute; left: 50%; top: 0; width: 250px; transform: translateX(-50%) rotate(4deg); }
@media (max-width: 860px) {
  .spot-banner { grid-template-columns: 1fr; }
  .spot-phone { height: 380px; margin-bottom: -6rem; }
  .spot-phone .device { width: 220px; }
}
@media (max-width: 480px) { .spot-teasers { grid-template-columns: 1fr; } }

/* How it works, three steps */
.how3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.how3 .card { padding: 1.75rem; }
.how3 h3 { margin: 1rem 0 0.4rem; }
.how3 p { color: var(--muted); margin: 0; }
.how-n { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; }
@media (max-width: 860px) { .how3 { grid-template-columns: 1fr; } }
.works-note { margin-left: auto; margin-right: auto; max-width: none; }
.pd .more-h { display: block; width: 100%; max-width: none; text-align: center; }

/* Works with: device tiles, centred */
.works .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.works-k, .works-note { max-width: none; margin-left: auto; margin-right: auto; }
.works-list { gap: 0.75rem; }
.works-list li {
  display: flex; align-items: center; gap: 0.75rem; text-align: left;
  padding: 0.6rem 1rem 0.6rem 0.6rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); font-size: 1rem; letter-spacing: 0;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.works-list li:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.w-dev { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); }
.w-dev svg { width: 40px; height: 40px; }
.w-txt b { display: block; font-size: 1rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.w-txt small { display: block; font-size: 0.8rem; color: var(--muted); font-weight: 500; }
@media (max-width: 600px) {
  .works-list { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 0.5rem; }
  .works-list li { padding: 0.5rem; gap: 0.55rem; }
  .works-list li:first-child { grid-column: 1 / -1; }
  .w-dev { width: 44px; height: 44px; border-radius: 12px; }
  .w-dev svg { width: 34px; height: 34px; }
  .w-txt b { font-size: 0.92rem; }
  .w-txt small { font-size: 0.74rem; }
}

/* Health-area cards: the phone sits in a tinted panel and fades out
   inside it, instead of being cut off by the card edge. */
.area { background: var(--surface); padding: 1.5rem; min-height: 0; }
.area-shot {
  position: relative; overflow: hidden; margin-top: 1.4rem; height: 330px; padding: 0; border-radius: 16px;
  background:
    radial-gradient(70% 60% at 50% 30%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, #fff) 0%, color-mix(in srgb, var(--c) 4%, #fff) 100%);
}
.area-shot::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; pointer-events: none; z-index: 2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, color-mix(in srgb, var(--c) 4%, #fff) 88%);
}
.area-shot .device {
  top: 26px; width: 236px; border-radius: 40px; padding: 7px;
  box-shadow: 0 30px 50px -24px color-mix(in srgb, var(--c) 45%, rgba(20, 24, 21, 0.4)), inset 0 0 0 1.5px rgba(255,255,255,0.08);
}
.area-shot .device img { border-radius: 33px; }
.area:hover .area-shot .device { transform: translate(-50%, -10px); }
@media (max-width: 600px) {
  .area { padding: 1.25rem; }
  .area-shot { height: 300px; }
  .area-shot .device { width: 220px; }
}
.works .works-note { width: 100%; max-width: 44rem; margin-top: 1.1rem; }
.works .works-k { margin-bottom: 1.1rem; }
.area-shot::after { height: 38%; }

/* ============================================================
   Tighter vertical rhythm, site-wide: less dead space between
   sections, under headings and around the in-between CTAs.
   ============================================================ */
.section { padding: clamp(2.75rem, 5vw, 4.25rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.section-head { margin-bottom: 1.75rem; }
.section-head h2 + p { margin-top: 0.6rem; }
.hero-pd { padding-bottom: 2.25rem; }
.page-hero { padding: 8.25rem 0 2.25rem; }
.cta-inline { margin: 0.25rem 0 clamp(2rem, 4vw, 3rem); }
.works { padding: 0; }
.works .wrap { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.works + .section { padding-top: clamp(2.25rem, 4vw, 3.25rem); }
.callout { margin-top: 1.25rem; }
.more { padding-top: 0; }
@media (max-width: 768px) {
  .section { padding: 2.25rem 0; }
  .section-tight { padding: 1.75rem 0; }
  .section-head { margin-bottom: 1.25rem; }
  .hero-pd { padding-bottom: 1.25rem; }
  .page-hero { padding: 6.75rem 0 1.5rem; }
  .works + .section { padding-top: 2rem; }
}

/* Footer launch badges (Product Hunt, StartupBase) */
.pd .footer-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 1.1rem; }
.pd .footer-badges a { display: inline-flex; border-radius: 10px; transition: transform 0.25s var(--ease-out); }
.pd .footer-badges a:hover { transform: translateY(-2px); }
.pd .footer-badges img { width: auto !important; height: 44px !important; }

/* ── Phone frames, site-wide: a thin black bezel inside a titanium band ── */
.pd .device.device {
  padding: 4px; border: 2.5px solid transparent;
  background:
    linear-gradient(#0a0b0c, #0a0b0c) padding-box,
    linear-gradient(150deg, #e4e6ea 0%, #8d9198 18%, #d6d9de 34%, #6f737a 52%, #c3c6cc 70%, #7a7e85 86%, #d9dce0 100%) border-box;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35), 0 30px 60px -24px rgba(20, 24, 21, 0.35);
}
.pd .story-phone .device img, .pd .feat-phone .device > [data-shot] { inset: 4px; width: calc(100% - 8px); height: calc(100% - 8px); }
