/* =============================================================
   Nityaayu · SEO/support pages — visual layer
   - Uses tokens.css for color / type / spacing / radii
   - Content is always visible without JS; animations enhance only
   - prefers-reduced-motion: animations collapse to instant states
   - Print: nav/footer/decoration hidden; worksheet stays clean
   ============================================================= */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { min-height: 100%; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--ff-sans);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--n-ink);
  background: var(--n-surface-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible {
  outline: 2px solid var(--p-500);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: 16px; top: 12px;
  transform: translateY(-160%);
  background: var(--p-800); color: #fff;
  padding: 10px 14px; border-radius: var(--r-sm);
  z-index: 1000;
  transition: transform 140ms var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* ---------- NAV ----------------------------------------------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 236, 0.78);
  border-bottom: 1px solid rgba(184, 176, 160, 0.32);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-serif);
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none; color: var(--n-ink);
  white-space: nowrap;
}
.brand img {
  width: 34px; height: 34px;
  border-radius: 0; /* let the mark breathe; it has its own shape */
  display: block;
  transition: transform 280ms var(--ease-out);
}
.brand:hover img { transform: rotate(-6deg) scale(1.04); }
.nav-links {
  display: flex; align-items: center; gap: 26px;
  font-size: 14px; color: var(--n-ink-2);
}
.nav-links a {
  text-decoration: none; position: relative; padding: 4px 0;
  transition: color 160ms var(--ease-out);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1.5px; background: var(--p-600); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform 240ms var(--ease-out);
}
.nav-links a:hover { color: var(--p-700); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--p-700); color: #fff;
  font-size: 14px; font-weight: 600;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 18px rgba(30, 67, 56, 0.22);
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.nav-cta:hover { background: var(--p-800); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 10px 24px rgba(30, 67, 56, 0.28); }

main {
  min-height: 60vh;
  flex: 1 0 auto;
}

/* ---------- HERO --------------------------------------------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 88% -20%, rgba(184, 133, 63, 0.10), transparent 60%),
    radial-gradient(ellipse at -10% 110%, rgba(46, 107, 92, 0.07), transparent 55%),
    var(--n-surface-1);
  border-bottom: 1px solid var(--n-line-soft);
  overflow: hidden;
}
.hero::before {
  /* faint mark watermark in the bottom-right corner */
  content: ""; position: absolute;
  right: -110px; bottom: -160px;
  width: 420px; height: 420px;
  background: radial-gradient(circle at 40% 40%, rgba(46, 107, 92, 0.08), rgba(46, 107, 92, 0) 60%),
              radial-gradient(circle at 78% 72%, rgba(184, 133, 63, 0.10), rgba(184, 133, 63, 0) 55%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1240px; margin: 0 auto;
  padding: 84px 24px 76px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  gap: 64px;
  align-items: center;
}
.eyebrow, .kicker {
  margin: 0 0 14px;
  font-family: var(--ff-mono);
  font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--p-700); font-weight: 600;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before, .kicker::before {
  content: ""; width: 22px; height: 1.5px;
  background: var(--p-600); border-radius: 2px;
}
h1, h2, h3 { color: var(--n-ink); letter-spacing: -0.012em; }
h1 {
  margin: 0; max-width: 14ch;
  font-family: var(--ff-serif); font-weight: 500;
  font-size: clamp(40px, 5.4vw, 64px);
  line-height: 1.04;
}
.page-hero h1 { max-width: 17ch; font-size: clamp(36px, 4.4vw, 56px); }
.hero-copy {
  max-width: 620px; margin: 22px 0 0;
  color: var(--n-ink-2);
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.6;
}
.hero-actions, .cta-actions {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px; margin-top: 30px;
}

/* ---------- BUTTONS ------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  min-height: 46px; padding: 12px 22px;
  border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600;
  text-decoration: none; border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out), box-shadow 200ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.btn.primary {
  background: var(--p-700); color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 6px 18px rgba(30, 67, 56, 0.22);
}
.btn.primary:hover { background: var(--p-800); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 12px 28px rgba(30, 67, 56, 0.28); }
.btn.secondary {
  background: var(--n-surface-0); color: var(--n-ink);
  border-color: var(--n-line);
}
.btn.secondary:hover { border-color: var(--p-600); color: var(--p-700); transform: translateY(-1px); }

/* ---------- HERO POINTS (rare, kept) ------------------------- */
.hero-points {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px; margin-top: 36px; max-width: 760px;
}
.hero-point {
  padding: 16px;
  border: 1px solid var(--n-line-soft);
  border-radius: var(--r-md);
  background: var(--n-surface-0);
  color: var(--n-ink-2);
  font-size: 14px;
}
.hero-point b { display: block; color: var(--n-ink); font-size: 16px; margin-bottom: 4px; font-family: var(--ff-serif); font-weight: 600; }

/* =============================================================
   PAGE-SPECIFIC SVG SCENES (replace the old .phone-art block)
   ============================================================= */
.scene {
  position: relative;
  width: min(100%, 480px);
  margin: 0 auto;
  aspect-ratio: 5 / 6;
  border-radius: var(--r-xl);
  background: var(--n-surface-0);
  border: 1px solid var(--n-line-soft);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 18px 48px rgba(31, 36, 34, 0.10),
    0 2px 6px rgba(31, 36, 34, 0.05);
  overflow: hidden;
  isolation: isolate;
}
.scene::before {
  /* corner mark — the Nityaayu blob motif, soft */
  content: ""; position: absolute;
  right: -60px; top: -80px;
  width: 260px; height: 260px;
  background:
    radial-gradient(circle at 38% 38%, var(--p-600) 0 38%, transparent 39%),
    radial-gradient(circle at 78% 72%, var(--s-400) 0 22%, transparent 23%);
  opacity: 0.08;
  pointer-events: none;
}
.scene-label {
  position: absolute; left: 22px; top: 20px;
  font-family: var(--ff-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--p-700);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  z-index: 2;
}
.scene-label::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok-base);
  box-shadow: 0 0 0 4px rgba(78, 126, 71, 0.18);
  animation: nityaayu-pulse 2.6s ease-in-out infinite;
}
.scene-title {
  position: absolute; left: 22px; top: 50px;
  font-family: var(--ff-serif); font-weight: 600;
  font-size: 20px; color: var(--n-ink);
  line-height: 1.18; max-width: 78%;
  z-index: 2;
}
.scene-body {
  position: absolute; left: 22px; right: 22px;
  top: 108px; bottom: 22px;
  display: flex; flex-direction: column; gap: 12px;
  z-index: 2;
}

/* Generic tile inside a scene */
.tile {
  background: var(--n-surface-0);
  border: 1px solid var(--n-line-soft);
  border-radius: var(--r-md);
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 12px; align-items: center;
}
.tile-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--p-50);
  color: var(--p-700);
  display: grid; place-items: center;
  font-family: var(--ff-mono); font-size: 14px; font-weight: 600;
}
.tile-text strong { display: block; font-size: 14px; font-weight: 600; color: var(--n-ink); }
.tile-text span { display: block; font-family: var(--ff-mono); font-size: 11px; color: var(--n-ink-3); margin-top: 2px; }
.tile-meta {
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--n-ink-3);
}

/* Reminder check-off animation */
.scene--reminder .tile-icon {
  position: relative;
  background: var(--p-700); color: transparent;
  overflow: hidden;
}
.scene--reminder .tile-icon::after {
  content: ""; position: absolute;
  left: 8px; top: 13px; width: 12px; height: 6px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transform-origin: left top;
  animation: nityaayu-check 4s ease-in-out infinite;
}
.scene--reminder .tile:nth-child(1) .tile-icon::after { animation-delay: 0.2s; }
.scene--reminder .tile:nth-child(2) .tile-icon::after { animation-delay: 1.0s; }
.scene--reminder .tile:nth-child(3) .tile-icon::after { animation-delay: 1.8s; }
.scene--reminder .tile:nth-child(4) .tile-icon::after { animation-delay: 2.6s; }
.scene--reminder .tile { transition: background 400ms; }

/* Refill strip / countdown */
.refill-strip {
  margin-top: 4px;
  display: flex; gap: 6px;
}
.refill-pill {
  flex: 1; height: 18px;
  border-radius: 4px;
  background: var(--p-100);
  position: relative; overflow: hidden;
}
.refill-pill::after {
  content: ""; position: absolute; inset: 0;
  background: var(--p-500);
  transform: translateX(-100%);
  animation: nityaayu-fill 5s ease-in-out infinite;
}
.refill-pill:nth-child(1)::after { animation-delay: 0s; background: var(--n-line-soft); }
.refill-pill:nth-child(2)::after { animation-delay: 0.2s; background: var(--n-line-soft); }
.refill-pill:nth-child(3)::after { animation-delay: 0.4s; background: var(--warn-base); }
.refill-pill:nth-child(4)::after { animation-delay: 0.6s; background: var(--warn-base); }
.refill-pill:nth-child(5)::after { animation-delay: 0.8s; background: var(--p-500); }
.refill-pill:nth-child(6)::after { animation-delay: 1.0s; background: var(--p-500); }
.refill-pill:nth-child(7)::after { animation-delay: 1.2s; background: var(--p-500); }

/* Folder / page stack */
.folder-stack {
  position: relative;
  height: 200px; margin-top: 6px;
}
.folder-page {
  position: absolute; left: 0; right: 0;
  border: 1px solid var(--n-line-soft);
  background: var(--n-surface-0);
  border-radius: var(--r-md);
  padding: 14px;
  box-shadow: 0 4px 14px rgba(31,36,34, 0.06);
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--n-ink-3);
  animation: nityaayu-rise 6s ease-in-out infinite;
}
.folder-page strong { display: block; color: var(--n-ink); font-family: var(--ff-sans); font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.folder-page:nth-child(1) { top: 0; animation-delay: 0s; }
.folder-page:nth-child(2) { top: 26px; animation-delay: 0.4s; background: var(--n-surface-2); }
.folder-page:nth-child(3) { top: 52px; animation-delay: 0.8s; background: var(--s-50); border-color: var(--s-200); }

/* Permission toggle */
.permission-row {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--n-surface-0);
  border: 1px solid var(--n-line-soft);
  border-radius: var(--r-md);
}
.permission-row .who {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
}
.permission-row .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--p-100); color: var(--p-700);
  display: grid; place-items: center;
  font-family: var(--ff-mono); font-size: 12px; font-weight: 600;
}
.permission-row .what {
  font-family: var(--ff-mono); font-size: 11px; color: var(--n-ink-3);
  margin-top: 2px;
}
.permission-row .switch {
  width: 42px; height: 24px; border-radius: 999px;
  background: var(--n-line-soft);
  position: relative; transition: background 360ms var(--ease-out);
}
.permission-row .switch::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.18);
  animation: nityaayu-toggle 6s ease-in-out infinite;
}
.permission-row.on .switch { animation: nityaayu-toggle-bg 6s ease-in-out infinite; }
.permission-row:nth-child(1) .switch::after { animation-delay: 0.4s; }
.permission-row:nth-child(2) .switch::after { animation-delay: 1.4s; }
.permission-row:nth-child(3) .switch::after { animation-delay: 2.4s; }
.permission-row:nth-child(1).on .switch { animation-delay: 0.4s; }
.permission-row:nth-child(2).on .switch { animation-delay: 1.4s; }
.permission-row:nth-child(3).on .switch { animation-delay: 2.4s; }

/* Timeline / coordination */
.timeline {
  position: relative; padding-left: 22px;
}
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 2px; background: var(--n-line-soft); border-radius: 2px;
}
.tline {
  position: relative; padding: 8px 0 8px 10px;
  font-size: 13px; color: var(--n-ink-2);
}
.tline::before {
  content: ""; position: absolute; left: -19px; top: 13px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--p-500); border: 3px solid var(--n-surface-0);
  box-shadow: 0 0 0 2px var(--p-200);
  animation: nityaayu-pulse 3s ease-in-out infinite;
}
.tline:nth-child(2)::before { animation-delay: 1s; background: var(--s-400); box-shadow: 0 0 0 2px var(--s-100); }
.tline:nth-child(3)::before { animation-delay: 2s; }
.tline strong { display: block; color: var(--n-ink); font-weight: 600; font-size: 14px; }
.tline span { font-family: var(--ff-mono); font-size: 11px; color: var(--n-ink-3); }

/* Self-building health timeline (family records hero) */
.scene--history .history { position: relative; padding-left: 26px; margin-top: 4px; }
.scene--history .history::before {
  content: ""; position: absolute; left: 9px; top: 8px;
  width: 2px; border-radius: 2px; background: var(--p-200);
  height: 0; animation: nityaayu-tl-line 9s ease-in-out infinite;
}
.hx {
  position: relative; padding: 9px 0;
  opacity: 0; transform: translateY(8px);
  animation: nityaayu-tl-item 9s ease-in-out infinite;
}
.hx::before {
  content: ""; position: absolute; left: -22px; top: 13px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--p-500); border: 3px solid var(--n-surface-0);
  box-shadow: 0 0 0 2px var(--p-200);
}
.hx:nth-child(1) { animation-delay: 0.4s; }
.hx:nth-child(2) { animation-delay: 1.8s; }
.hx:nth-child(2)::before { background: var(--s-400); box-shadow: 0 0 0 2px var(--s-100); }
.hx:nth-child(3) { animation-delay: 3.2s; }
.hx:nth-child(4) { animation-delay: 4.6s; }
.hx:nth-child(4)::before { background: var(--s-400); box-shadow: 0 0 0 2px var(--s-100); }
.hx-meta {
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--n-ink-3); margin-bottom: 3px;
}
.hx strong { display: block; color: var(--n-ink); font-size: 13.5px; font-weight: 600; }
.hx span { display: block; font-size: 12px; color: var(--n-ink-2); margin-top: 1px; }
@keyframes nityaayu-tl-line {
  0% { height: 0; }
  62%, 100% { height: calc(100% - 16px); }
}
@keyframes nityaayu-tl-item {
  0% { opacity: 0; transform: translateY(8px); }
  7%, 100% { opacity: 1; transform: translateY(0); }
}

/* AI plain-language reveal */
.summary-card {
  background: var(--ai-bg);
  border: 1px solid var(--ai-line);
  border-radius: var(--r-md);
  padding: 14px;
}
.summary-card .tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  background: var(--ai-base); color: #fff;
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 10px;
}
.summary-card .raw {
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--ai-deep); opacity: 0.7;
  margin: 0 0 8px;
}
.summary-card .plain {
  font-family: var(--ff-serif); font-size: 15px;
  color: var(--ai-deep);
  line-height: 1.45;
  position: relative; overflow: hidden;
}
.summary-card .plain span {
  display: inline-block;
  background: linear-gradient(90deg, transparent 0 0%, var(--ai-deep) 0% 0%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: nityaayu-reveal 5s ease-in-out infinite;
}

/* Shield / Security */
.shield {
  position: relative; width: 100%; height: 160px;
  display: grid; place-items: center;
}
.shield svg { width: 120px; height: 140px; }
.shield-rings {
  position: absolute; inset: 0; display: grid; place-items: center;
  pointer-events: none;
}
.shield-rings::before, .shield-rings::after {
  content: ""; position: absolute;
  width: 120px; height: 120px; border-radius: 50%;
  border: 1.5px solid var(--p-200);
  animation: nityaayu-ring 4s ease-out infinite;
}
.shield-rings::after { animation-delay: 1.6s; }
.access-list { margin-top: 8px; display: grid; gap: 8px; }
.access-row {
  display: grid; grid-template-columns: 18px 1fr auto;
  gap: 10px; align-items: center;
  font-size: 13px; color: var(--n-ink-2);
}
.access-row .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--ok-base);
}
.access-row .dot.warn { background: var(--warn-base); }
.access-row .dot.off { background: var(--n-line); }
.access-row .meta { font-family: var(--ff-mono); font-size: 11px; color: var(--n-ink-3); }

/* Schedule grid */
.schedule {
  display: grid; grid-template-columns: 80px repeat(4, 1fr);
  gap: 4px; font-family: var(--ff-mono); font-size: 11px;
}
.schedule .h {
  background: var(--n-surface-2);
  color: var(--n-ink-3);
  text-align: center; padding: 6px 4px;
  border-radius: 4px;
}
.schedule .c {
  background: var(--n-surface-0);
  border: 1px solid var(--n-line-soft);
  border-radius: 4px;
  padding: 6px 4px; text-align: center;
  color: var(--n-ink-2);
  min-height: 22px;
}
.schedule .c.on { background: var(--p-50); border-color: var(--p-200); color: var(--p-700); font-weight: 600; }

/* Today's medicines — dose list with due times */
.dose-list { display: grid; gap: 8px; }
.dose {
  display: grid; grid-template-columns: 52px 1fr auto;
  align-items: center; gap: 12px;
  background: var(--n-surface-0);
  border: 1px solid var(--n-line-soft);
  border-radius: var(--r-md);
  padding: 11px 13px;
}
.dose-time { text-align: center; line-height: 1.1; }
.dose-time strong {
  display: block; font-family: var(--ff-mono); font-weight: 600;
  font-size: 15px; color: var(--n-ink);
}
.dose-time span {
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.08em;
  color: var(--n-ink-3);
}
.dose-name { font-size: 14px; font-weight: 600; color: var(--n-ink); }
.dose-sub {
  font-family: var(--ff-mono); font-size: 11px; color: var(--n-ink-3);
  margin-top: 2px;
}
.dose-state {
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 600;
  padding: 4px 9px; border-radius: 999px;
  background: var(--n-surface-2); color: var(--n-ink-3);
  white-space: nowrap;
}
.dose.done .dose-state {
  background: var(--ok-tint, rgba(78,126,71,0.12)); color: var(--ok-base);
  display: inline-flex; align-items: center; gap: 6px;
}
.dose.done .dose-state::before {
  content: ""; width: 11px; height: 6px;
  border-left: 2px solid var(--ok-base); border-bottom: 2px solid var(--ok-base);
  transform: rotate(-45deg); margin-top: -3px;
}
.dose.now {
  border-color: var(--p-200); background: var(--p-50);
}
.dose.now .dose-state { background: var(--p-700); color: #fff; }
.dose.now .dose-time strong { color: var(--p-700); }
.dose.now .dose-time::after {
  content: ""; display: block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--p-700); margin: 4px auto 0;
  box-shadow: 0 0 0 3px var(--p-200);
  animation: nityaayu-pulse 2.6s ease-in-out infinite;
}

/* Current medicines overview — status, refills, flagged pairs */
.med-list { display: grid; gap: 8px; }
.med {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--n-surface-0);
  border: 1px solid var(--n-line-soft);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.med-name { font-size: 14px; font-weight: 600; color: var(--n-ink); }
.med-sub {
  font-family: var(--ff-mono); font-size: 11px; color: var(--n-ink-3); margin-top: 2px;
}
.med-tag {
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 600;
  padding: 4px 9px; border-radius: 999px;
  background: var(--p-50); color: var(--p-700);
  white-space: nowrap;
}
.med-tag.low { background: var(--warn-bg); color: var(--warn-deep); }
.med.flagged { border-color: var(--warn-base); background: var(--warn-bg); }
.med-tag.flag {
  background: var(--warn-tint); color: var(--warn-deep);
  display: inline-flex; align-items: center; gap: 6px;
}
.med-tag.flag::before {
  content: ""; width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-bottom: 7px solid var(--warn-deep);
}

/* Library/shelf */
.shelf {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin-top: 6px;
}
.spine {
  height: 100px; border-radius: 4px;
  background: var(--p-500);
  position: relative; overflow: hidden;
  box-shadow: inset -3px 0 0 rgba(0,0,0,0.08);
  transition: transform 280ms var(--ease-out);
}
.spine::after {
  content: ""; position: absolute; inset: 8px 6px auto;
  height: 1px; background: rgba(255,255,255,0.35);
}
.spine:nth-child(1) { background: var(--p-600); }
.spine:nth-child(2) { background: var(--s-400); height: 88px; align-self: end; }
.spine:nth-child(3) { background: var(--p-500); height: 108px; }
.spine:nth-child(4) { background: var(--ai-base); height: 94px; }
.spine:nth-child(5) { background: var(--p-700); height: 100px; }
.spine:nth-child(6) { background: var(--s-300); height: 86px; }
.spine:nth-child(7) { background: var(--p-400); height: 104px; }
.spine:nth-child(8) { background: var(--s-500); height: 92px; }



/* Worksheet (tools index hero) */
.worksheet {
  background: #fff;
  border: 1px solid var(--n-line);
  border-radius: var(--r-md);
  padding: 16px;
  font-family: var(--ff-mono); font-size: 11px;
  color: var(--n-ink-2);
  background-image:
    linear-gradient(rgba(184,176,160,0.18) 1px, transparent 1px);
  background-size: 100% 24px;
  background-position: 0 24px;
}
.worksheet h4 {
  margin: 0 0 12px; font-family: var(--ff-serif);
  font-size: 16px; color: var(--n-ink); font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.worksheet .ws-row {
  height: 23px;
  border-bottom: 1px dashed rgba(184,176,160,0.5);
  display: flex; align-items: center;
  gap: 8px;
}
.worksheet .ws-row::before {
  content: "—"; color: var(--n-ink-4);
}
.worksheet .ws-row:nth-child(2)::before { content: "Telmisartan 40 mg · 1 morning"; color: var(--n-ink-2); }
.worksheet .ws-row:nth-child(3)::before { content: "Metformin 500 mg · after food"; color: var(--n-ink-2); }
.worksheet .ws-stamp {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--p-700);
  display: inline-flex; align-items: center; gap: 6px;
}
.worksheet .ws-stamp::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok-base);
}

/* Download / availability scene */
.dl-card {
  display: grid; gap: 10px;
}
.dl-row {
  display: grid; grid-template-columns: 38px 1fr auto;
  gap: 12px; align-items: center;
  padding: 14px;
  background: var(--n-surface-0);
  border: 1px solid var(--n-line-soft);
  border-radius: var(--r-md);
}
.dl-row .ic {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--n-surface-2);
  display: grid; place-items: center;
  font-family: var(--ff-mono); font-size: 13px; color: var(--n-ink-3);
}
.dl-row .ic.android { background: var(--p-50); color: var(--p-700); }
.dl-row .ic.ios { background: var(--n-surface-3); color: var(--n-ink-2); }
.dl-row strong { display: block; font-size: 14px; }
.dl-row span { display: block; font-family: var(--ff-mono); font-size: 11px; color: var(--n-ink-3); margin-top: 2px; }
.dl-row .pill {
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px;
}
.dl-row .pill.soon { background: var(--warn-bg); color: var(--warn-deep); }
.dl-row .pill.access { background: var(--p-50); color: var(--p-700); }

/* Contact / press / careers — minimal info scene */
.info-card { display: grid; gap: 10px; }
.info-line {
  display: grid; grid-template-columns: 100px 1fr; gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--n-line-soft);
  font-size: 14px;
}
.info-line:first-child { border-top: none; }
.info-line .k { font-family: var(--ff-mono); font-size: 11px; color: var(--n-ink-3); text-transform: uppercase; letter-spacing: 0.1em; padding-top: 2px; }
.info-line .v { color: var(--n-ink); }
.info-line .v.muted { color: var(--n-ink-3); font-family: var(--ff-mono); font-size: 13px; }

/* Privacy data-control scene */
.data-card {
  display: grid; gap: 10px;
}
.data-row {
  padding: 12px; border-radius: var(--r-md);
  border: 1px solid var(--n-line-soft);
  background: var(--n-surface-0);
  display: grid; grid-template-columns: 1fr auto; gap: 10px;
  align-items: center;
}
.data-row .label { font-size: 14px; }
.data-row .label span { display: block; font-family: var(--ff-mono); font-size: 11px; color: var(--n-ink-3); margin-top: 2px; }
.data-row .scope {
  font-family: var(--ff-mono); font-size: 11px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--p-50); color: var(--p-700);
}
.data-row .scope.you { background: var(--n-surface-2); color: var(--n-ink-3); }
.data-row .scope.family { background: var(--ok-bg); color: var(--ok-deep); }
.data-row .scope.private { background: var(--err-bg); color: var(--err-deep); }

/* Pricing — early access preview */
.plan-card {
  background: var(--n-surface-0);
  border: 1px solid var(--n-line);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: 0 8px 24px rgba(31,36,34,0.04);
}
.plan-card .badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--s-100); color: var(--s-600);
  font-family: var(--ff-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase;
}
.plan-card h4 {
  margin: 10px 0 2px; font-family: var(--ff-serif);
  font-size: 22px; font-weight: 600;
}
.plan-card .placeholder {
  font-family: var(--ff-mono); font-size: 13px; color: var(--n-ink-3);
  margin-bottom: 12px;
}
.plan-card ul {
  list-style: none; padding: 0; margin: 0; display: grid; gap: 8px;
  font-size: 14px; color: var(--n-ink-2);
}
.plan-card ul li {
  display: grid; grid-template-columns: 16px 1fr; gap: 10px; align-items: start;
}
.plan-card ul li::before {
  content: ""; width: 14px; height: 14px; margin-top: 4px;
  border-radius: 50%; background: var(--p-50);
  border: 2px solid var(--p-500);
}

/* =============================================================
   SECTIONS / GRID / CARDS
   ============================================================= */
.section {
  max-width: 1240px; margin: 0 auto;
  padding: 84px 24px;
}
.section.compact { padding-top: 44px; padding-bottom: 44px; }
.section-header { max-width: 760px; margin-bottom: 32px; }
.section h2 {
  margin: 0;
  font-family: var(--ff-serif); font-weight: 500;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.012em;
}
.section-header p, .lead {
  color: var(--n-ink-2);
  font-size: 18px; line-height: 1.6;
  margin-top: 14px;
}
.grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: var(--n-surface-0);
  border: 1px solid var(--n-line-soft);
  border-radius: var(--r-md);
  padding: 26px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 6px 18px rgba(31,36,34,0.04);
  transition: transform 220ms var(--ease-out), box-shadow 240ms var(--ease-out), border-color 220ms var(--ease-out);
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--p-200);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 18px 40px rgba(30,67,56,0.10);
}
.card h3 {
  margin: 0 0 8px; font-size: 20px; line-height: 1.25;
  font-family: var(--ff-serif); font-weight: 600;
}
.card h3 a {
  text-decoration: none; color: var(--n-ink);
  transition: color 160ms;
}
.card:hover h3 a { color: var(--p-700); }
.card p { margin: 0; color: var(--n-ink-2); font-size: 15px; line-height: 1.55; }
.card a { text-decoration: none; }

.band {
  background: var(--n-surface-2);
  border-top: 1px solid rgba(154, 145, 127, 0.22);
  border-bottom: 1px solid rgba(154, 145, 127, 0.22);
}
.band.alt { background: var(--n-surface-0); }

.breadcrumbs {
  max-width: 1240px; margin: 0 auto;
  padding: 20px 24px 0;
  font-size: 13px; color: var(--n-ink-3);
  font-family: var(--ff-mono);
  letter-spacing: 0.04em;
}
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center; list-style: none; margin: 0; padding: 0;
}
.breadcrumbs a { text-decoration: none; color: var(--n-ink-2); }
.breadcrumbs a:hover { color: var(--p-700); }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--n-line-strong); opacity: 0.65; }

/* =============================================================
   ARTICLE + SIDE PANEL
   ============================================================= */
.content-layout {
  max-width: 1240px; margin: 0 auto;
  padding: 52px 24px 92px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 48px; align-items: start;
}
.article {
  background: var(--n-surface-0);
  border: 1px solid var(--n-line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 10px 32px rgba(31,36,34,0.05);
}
.article-section {
  padding: 34px 36px;
  border-top: 1px solid rgba(184, 176, 160, 0.22);
}
.article-section:first-child { border-top: none; }
.article-section h2 {
  margin: 0 0 14px;
  font-family: var(--ff-serif); font-weight: 600;
  font-size: 28px; line-height: 1.18;
  letter-spacing: -0.01em;
}
.article-section p { color: var(--n-ink-2); margin: 0 0 14px; font-size: 16px; line-height: 1.65; }
.article-section ul, .checklist {
  margin: 16px 0 0; padding: 0; list-style: none;
  display: grid; gap: 12px;
}
.article-section li, .checklist li {
  position: relative; padding-left: 28px;
  color: var(--n-ink-2); font-size: 16px; line-height: 1.55;
}
.article-section li::before, .checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.42em;
  width: 14px; height: 14px;
  border-radius: 4px;
  background: var(--p-50);
  border: 1.5px solid var(--p-500);
}
.article-section li::after, .checklist li::after {
  content: ""; position: absolute;
  left: 3px; top: 0.6em;
  width: 8px; height: 4px;
  border-left: 2px solid var(--p-700);
  border-bottom: 2px solid var(--p-700);
  transform: rotate(-45deg);
  opacity: 0; transition: opacity 200ms;
}
.article-section li:hover::after, .checklist li:hover::after { opacity: 1; }

.side-panel { position: sticky; top: 96px; display: grid; gap: 16px; }
.side-box {
  background: var(--n-surface-2);
  border: 1px solid var(--n-line-soft);
  border-radius: var(--r-lg);
  padding: 22px;
}
.side-box h2, .side-box h3 {
  font-family: var(--ff-serif); font-weight: 600;
  font-size: 18px; line-height: 1.18; margin: 0 0 14px;
}
.side-box a {
  display: block; padding: 10px 0;
  border-top: 1px solid rgba(184, 176, 160, 0.32);
  text-decoration: none; color: var(--n-ink-2);
  font-size: 14px; transition: color 160ms, padding-left 200ms var(--ease-out);
}
.side-box a:first-of-type { border-top: none; }
.side-box a:hover { color: var(--p-700); padding-left: 6px; }
.side-box a::before {
  content: "→ "; opacity: 0; transition: opacity 200ms;
  color: var(--p-600); font-family: var(--ff-mono);
}
.side-box a:hover::before { opacity: 1; }

.meta-row {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  margin-top: 22px;
  color: var(--n-ink-3); font-size: 13px;
  font-family: var(--ff-mono);
}

/* Guide hero TOC variant — the side-box inside .hero-inner */
.hero-inner .side-box {
  background: var(--n-surface-0);
  border-color: var(--n-line);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 18px 48px rgba(31, 36, 34, 0.08);
}

.disclaimer {
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: var(--r-md);
  padding: 16px 18px 16px 48px;
  color: var(--warn-deep);
  font-size: 14px; line-height: 1.55;
  position: relative;
}
.disclaimer::before {
  content: "i"; position: absolute;
  left: 16px; top: 16px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--warn-base); color: #fff;
  font-family: var(--ff-serif); font-weight: 700;
  display: grid; place-items: center; font-size: 14px;
  font-style: italic;
}
.disclaimer strong { display: block; margin-bottom: 2px; }

/* =============================================================
   TOOL TABLE (worksheet feel, print-safe)
   ============================================================= */
.tool-table-wrap { overflow-x: auto; margin-top: 22px; }
.tool-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: #fff;
  min-width: 720px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--n-line);
}
.tool-table th, .tool-table td {
  border-right: 1px solid var(--n-line-soft);
  border-bottom: 1px solid var(--n-line-soft);
  padding: 14px; text-align: left; vertical-align: top;
}
.tool-table th:last-child, .tool-table td:last-child { border-right: none; }
.tool-table tr:last-child td { border-bottom: none; }
.tool-table th {
  background: var(--p-50); color: var(--p-700);
  font-family: var(--ff-mono); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase;
  font-weight: 600;
}
.tool-table td { height: 48px; background: #fff; }
.tool-table tbody tr:nth-child(even) td { background: #FBFAF5; }
.print-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.print-note {
  color: var(--n-ink-3); font-size: 13px;
  font-family: var(--ff-mono); margin-top: 12px;
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  margin-top: auto;
  flex-shrink: 0;
  background: var(--n-surface-2);
  color: var(--n-ink);
  padding: 56px 24px 24px;
  border-top: 1px solid var(--n-line-soft);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: none;
}
.footer-inner { max-width: 1240px; margin: 0 auto; position: relative; }
.footer-top {
  display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-brand {
  font-family: var(--ff-serif); font-size: 28px;
  margin-bottom: 14px; display: flex; align-items: center; gap: 12px;
  font-weight: 600;
}
.footer-brand img { width: 32px; height: 32px; }
.footer-inner p {
  color: var(--n-ink-2); margin: 0; font-size: 14px;
  line-height: 1.6; max-width: 36ch;
}
.footer-col h2 {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--n-ink-3); margin: 0 0 14px; font-weight: 600;
}
.footer-col a {
  display: block; color: var(--n-ink-2);
  text-decoration: none; font-size: 14px;
  padding: 6px 0;
  transition: color 160ms, padding-left 200ms var(--ease-out);
}
.footer-col a:hover { color: var(--p-700); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid var(--n-line-soft);
  margin-top: 42px; padding-top: 22px;
  display: flex; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  color: var(--n-ink-3); font-size: 13px;
  font-family: var(--ff-mono);
}

/* =============================================================
   ENTRANCE / KEYFRAMES
   ============================================================= */
.fade-up { opacity: 0; transform: translateY(14px); animation: nityaayu-fadeup 720ms var(--ease-out) forwards; }
.fade-up.d1 { animation-delay: 80ms; }
.fade-up.d2 { animation-delay: 180ms; }
.fade-up.d3 { animation-delay: 280ms; }

@keyframes nityaayu-fadeup {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes nityaayu-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(78, 126, 71, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(78, 126, 71, 0.06); }
}
@keyframes nityaayu-check {
  0%, 8% { transform: rotate(-45deg) scale(0); }
  16% { transform: rotate(-45deg) scale(1.18); }
  24%, 78% { transform: rotate(-45deg) scale(1); }
  92%, 100% { transform: rotate(-45deg) scale(0); }
}
@keyframes nityaayu-fill {
  0%, 8% { transform: translateX(-100%); }
  18%, 82% { transform: translateX(0); }
  92%, 100% { transform: translateX(-100%); }
}
@keyframes nityaayu-rise {
  0%, 20%, 80%, 100% { transform: translateY(0); }
  40%, 60% { transform: translateY(-4px); }
}
@keyframes nityaayu-toggle {
  0%, 30% { left: 2px; }
  50%, 80% { left: 20px; }
  100% { left: 2px; }
}
@keyframes nityaayu-toggle-bg {
  0%, 30% { background: var(--n-line-soft); }
  50%, 80% { background: var(--p-500); }
  100% { background: var(--n-line-soft); }
}
@keyframes nityaayu-ring {
  0% { width: 90px; height: 90px; opacity: 0.6; }
  100% { width: 200px; height: 200px; opacity: 0; }
}
@keyframes nityaayu-reveal {
  0% { background-size: 0% 100%; }
  60%, 100% { background-size: 100% 100%; }
}

/* Reveal-on-scroll for sections (optional, JS adds .reveal) */
.reveal-when-visible { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); }
.reveal-when-visible.in { opacity: 1; transform: translateY(0); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 980px) {
  .nav-inner { flex-wrap: wrap; align-items: flex-start; }
  .nav-links { width: 100%; flex-wrap: wrap; gap: 14px 20px; }
  .hero-inner {
    grid-template-columns: 1fr;
    padding: 56px 24px 52px;
    gap: 40px;
  }
  .hero-points, .grid, .grid.two, .content-layout, .footer-top { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .scene { max-width: 420px; }
  .section { padding: 64px 24px; }
}
@media (max-width: 640px) {
  .nav-inner { padding: 12px 16px; }
  .brand { font-size: 19px; }
  .brand img { width: 30px; height: 30px; }
  .nav-cta { min-height: 38px; padding: 9px 14px; font-size: 13px; }
  .hero-inner, .section, .content-layout { padding-left: 16px; padding-right: 16px; }
  .article-section { padding: 24px 20px; }
  .hero-points { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .scene-body { top: 96px; }
  .scene { aspect-ratio: 4 / 5; }
}

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .fade-up { opacity: 1; transform: none; }
  .scene--reminder .tile-icon::after { transform: rotate(-45deg) scale(1); }
  .refill-pill::after { transform: translateX(-30%); }
  .permission-row .switch::after { left: 20px; }
  .permission-row .switch { background: var(--p-500); }
  .scene--history .history::before { height: calc(100% - 16px); }
  .hx { opacity: 1; transform: none; }
}

/* =============================================================
   PRINT
   ============================================================= */
@media print {
  .site-nav, .site-footer, .breadcrumbs, .side-panel,
  .hero-actions, .print-actions, .early-access-modal,
  .scene, .hero::before, .hero-inner > div:last-child:not(.side-box) { display: none !important; }
  body { background: #fff; color: #000; }
  .hero { border: 0; background: #fff; padding: 0; }
  .hero-inner, .content-layout, .section {
    display: block; padding: 0; max-width: none; margin: 0 0 14pt;
  }
  .article { border: 0; box-shadow: none; }
  .article-section { border: 0; padding: 12pt 0; }
  .tool-table { box-shadow: none; min-width: 0; width: 100%; }
  .tool-table th { background: #f0f0f0; color: #000; }
  .disclaimer { background: #fff; color: #000; border: 1px solid #999; }
  h1, h2, h3 { color: #000; }
  a { color: #000; text-decoration: none; }
  .story-quote { font-size: 18pt; }
  .steps { display: block; }
  .step { border: 1px solid #999; margin-bottom: 8pt; }
}

/* =============================================================
   ENRICHED CONTENT BLOCKS  (richer than the base template)
   ============================================================= */

/* ---- Editorial scenario / pull-quote (used in a band) ------ */
.story { max-width: 820px; margin: 0 auto; }
.story .kicker { justify-content: flex-start; }
.story-quote {
  font-family: var(--ff-serif); font-weight: 500;
  font-size: clamp(23px, 3vw, 34px); line-height: 1.32;
  letter-spacing: -0.014em; color: var(--n-ink); margin: 0;
  text-wrap: pretty;
}
.story-quote em { font-style: italic; color: var(--p-700); }
.story-who {
  margin-top: 22px; font-family: var(--ff-mono);
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--n-ink-3);
  display: inline-flex; align-items: center; gap: 10px;
}
.story-who::before { content: ""; width: 26px; height: 1.5px; background: var(--s-400); border-radius: 2px; }

/* ---- Numbered "how it works" steps -------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.step {
  position: relative; padding: 28px 26px 26px;
  background: var(--n-surface-0);
  border: 1px solid var(--n-line-soft);
  border-radius: var(--r-md);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 6px 18px rgba(31,36,34,0.04);
}
.step-num {
  font-family: var(--ff-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; color: var(--p-700);
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 14px;
}
.step-num::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--p-500); box-shadow: 0 0 0 4px var(--p-50);
}
.step h3 { margin: 0 0 8px; font-family: var(--ff-serif); font-size: 19px; font-weight: 600; line-height: 1.25; }
.step p { margin: 0; color: var(--n-ink-2); font-size: 15px; line-height: 1.55; }

/* ---- Contrast row: "used to / now" -------------------------- */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.contrast-col {
  padding: 26px; border-radius: var(--r-md);
  border: 1px solid var(--n-line-soft); background: var(--n-surface-0);
}
.contrast-col.was { background: var(--n-surface-2); }
.contrast-col h3 {
  margin: 0 0 16px; font-family: var(--ff-mono); font-weight: 600;
  font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--n-ink-3);
}
.contrast-col.now h3 { color: var(--p-700); }
.contrast-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contrast-col li { font-size: 16px; line-height: 1.5; color: var(--n-ink-2); position: relative; padding-left: 26px; }
.contrast-col li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 12px; height: 2px; border-radius: 2px; background: var(--n-line-strong);
}
.contrast-col.now li::before {
  width: 11px; height: 11px; top: 0.34em; border-radius: 50%;
  background: var(--ok-base); opacity: 0.85;
}

/* ---- FAQ ---------------------------------------------------- */
.faq { display: grid; gap: 0; max-width: 820px; }
.faq-item { border-top: 1px solid var(--n-line-soft); padding: 24px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--n-line-soft); }
.faq-item h3 { margin: 0 0 8px; font-family: var(--ff-serif); font-size: 19px; font-weight: 600; }
.faq-item p { margin: 0; color: var(--n-ink-2); font-size: 16px; line-height: 1.6; }

@media (max-width: 760px) {
  .steps, .contrast { grid-template-columns: 1fr; }
}

/* =============================================================
   NEW SCENES · Report summary / Food Lens / Meal planner
   ============================================================= */

/* Report summary — clinical line resolves into plain words */
.scene--summary .raw-line {
  font-family: var(--ff-mono); font-size: 10.5px; line-height: 1.5;
  color: var(--n-ink-3); background: var(--n-surface-2);
  border: 1px solid var(--n-line-soft); border-radius: var(--r-sm);
  padding: 12px 13px; margin-bottom: 12px;
}
.scene--summary .raw-line mark { background: var(--warn-tint); color: var(--warn-deep); padding: 0 3px; border-radius: 3px; }

/* Food Lens — detected plate + effect rows */
.food-detect {
  display: flex; gap: 12px; align-items: center;
  padding: 12px; background: var(--n-surface-0);
  border: 1px solid var(--n-line-soft); border-radius: var(--r-md);
}
.food-thumb {
  width: 54px; height: 54px; border-radius: 12px; flex: none;
  position: relative; overflow: hidden;
  background: var(--n-surface-2);
}
.food-thumb::after { display: none; }
.food-detect .fd-t { font-size: 14px; font-weight: 600; color: var(--n-ink); }
.food-detect .fd-m { font-family: var(--ff-mono); font-size: 11px; color: var(--n-ink-3); margin-top: 2px; }
.food-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 11px 13px; background: var(--n-surface-0);
  border: 1px solid var(--n-line-soft); border-radius: var(--r-md);
  font-size: 13px; color: var(--n-ink-2);
}
.food-badge {
  font-family: var(--ff-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.food-badge.low { background: var(--ok-bg); color: var(--ok-deep); }
.food-badge.moderate { background: var(--warn-bg); color: var(--warn-deep); }
.food-badge.boost { background: var(--info-bg); color: var(--info-base); }

/* Meal planner — filter chips + recipe cards */
.meal-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.meal-chips span {
  font-family: var(--ff-mono); font-size: 10.5px;
  padding: 4px 9px; border-radius: 999px;
  background: var(--p-50); color: var(--p-700);
}
.meal-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; grid-auto-rows: 1fr; height: 160px; }
.meal-card2 {
  padding: 13px; background: var(--n-surface-0);
  border: 1px solid var(--n-line-soft); border-radius: var(--r-md);
}
.meal-card2.lead { background: var(--p-50); border-color: var(--p-200); }
.meal-card2 b { display: block; font-size: 13px; line-height: 1.25; color: var(--n-ink); }
.meal-card2 span { display: block; font-family: var(--ff-mono); font-size: 10.5px; color: var(--n-ink-3); margin-top: 5px; }
