:root {
  --paper: #F3F6F0;       /* Sage off-white background */
  --surface: #FFFFFF;     /* Clean white cards */
  --surface-2: #E5EAE0;   /* Accent light green/gray */
  --ink: #1C201A;         /* Dark forest-charcoal text */
  --muted: #6A7367;       /* Soft muted green-gray */
  --hairline: #DFE4DC;    /* Light borders */
  --green-icon: #4A6E3A;  /* Accent green */
  --green-text: #4A6E3A;  /* AA-safe for body text */
  --amber-fill: #E0A33A;  /* decorative fills only, never text */
  --bronze: #B8842A;      /* links / focus / accent */
  --medication: #8B70A6;  /* Concerta purple */
  --ramp-1: #DA7A2A;
  --ramp-2: #EDA94A;
  --ramp-3: #9FCB79;
  --ramp-4: #5FB36E;
  --ramp-5: #2E8B57;

  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;

  --wrap: 1120px;
  --wrap-narrow: 680px;
  --radius: 24px;         /* Increased rounded corners for softer visual card style */

  /* Mockup specific variables */
  --app-preview-bg: #F2F5EE;
  --dose-bar-bg: #EAECE6;
  --cat-header-bg: #D8E2D5;
  --cat-header-color: #4A6E3A;
  
  --glyph-great-bg: #C2DEC7;
  --glyph-great-color: #4A6E3A;
  --glyph-okay-bg: #E6ECC2;
  --glyph-okay-color: #788A30;
  --glyph-good-bg: #D6EBDC;
  --glyph-good-color: #3B6E4A;
  
  --summary-bg: #A7C3B3;
  --summary-color: #1C201A;

  /* Premium shadows */
  --shadow-subtle: 0 4px 20px -4px rgba(28, 32, 26, 0.04), 0 2px 8px -2px rgba(28, 32, 26, 0.01);
  --shadow-card: 0 12px 32px -8px rgba(28, 32, 26, 0.05), 0 4px 12px -2px rgba(28, 32, 26, 0.01);
}

/* Explicit dark theme */
:root[data-theme="dark"] {
  --paper: #141713;
  --surface: #1F221E;
  --surface-2: #2A2F29;
  --ink: #F0F4EF;
  --muted: #99A396;
  --hairline: #30362F;
  --green-icon: #8FBB78;
  --green-text: #8FBB78;
  --amber-fill: #E8B255;
  --bronze: #D4A24A;
  --medication: #9277BE;

  /* Mockup specific variables dark override */
  --app-preview-bg: #191B18;
  --dose-bar-bg: #2D302A;
  --cat-header-bg: #222921;
  --cat-header-color: #8FBB78;
  
  --glyph-great-bg: #1B2F21;
  --glyph-great-color: #8FBB78;
  --glyph-okay-bg: #31361F;
  --glyph-okay-color: #AEBE60;
  --glyph-good-bg: #233B2B;
  --glyph-good-color: #81BD93;
  
  --summary-bg: #2D4237;
  --summary-color: #F0F4EF;

  /* Premium shadows dark override */
  --shadow-subtle: 0 6px 24px -6px rgba(0, 0, 0, 0.35), 0 2px 10px -2px rgba(0, 0, 0, 0.15);
  --shadow-card: 0 16px 40px -12px rgba(0, 0, 0, 0.45), 0 4px 16px -2px rgba(0, 0, 0, 0.2);
}

/* System preferences backup (if no explicit user selection) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141713;
    --surface: #1F221E;
    --surface-2: #2A2F29;
    --ink: #F0F4EF;
    --muted: #99A396;
    --hairline: #30362F;
    --green-icon: #8FBB78;
    --green-text: #8FBB78;
    --amber-fill: #E8B255;
    --bronze: #D4A24A;
    --medication: #9277BE;

    /* Mockup specific variables dark override */
    --app-preview-bg: #191B18;
    --dose-bar-bg: #2D302A;
    --cat-header-bg: #222921;
    --cat-header-color: #8FBB78;
    
    --glyph-great-bg: #1B2F21;
    --glyph-great-color: #8FBB78;
    --glyph-okay-bg: #31361F;
    --glyph-okay-color: #AEBE60;
    --glyph-good-bg: #233B2B;
    --glyph-good-color: #81BD93;
    
    --summary-bg: #2D4237;
    --summary-color: #F0F4EF;

    /* Premium shadows dark override */
    --shadow-subtle: 0 6px 24px -6px rgba(0, 0, 0, 0.35), 0 2px 10px -2px rgba(0, 0, 0, 0.15);
    --shadow-card: 0 16px 40px -12px rgba(0, 0, 0, 0.45), 0 4px 16px -2px rgba(0, 0, 0, 0.2);
  }
}

/* ============ reset ============ */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
ul, ol { padding-left: 0; list-style: none; margin: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.skip-link {
  position: absolute; top: -3rem; left: 1rem;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; border-radius: 8px; z-index: 100;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 3px;
  border-radius: 4px;
}

.mono { font-family: var(--font-mono); font-weight: 400; letter-spacing: 0.01em; }
.kicker {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--bronze);
  margin: 0 0 0.75rem;
}
.eyebrow {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 1.25rem;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.wrap-narrow { max-width: var(--wrap-narrow); margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 1rem;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; letter-spacing: -0.015em; }

.body-lg { font-size: 1.1rem; color: var(--ink); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.fine-print { font-size: 0.85rem; color: var(--muted); }
.stat-line { color: var(--bronze); font-size: 0.95rem; margin-top: 1.5rem; }

/* ============ buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--green-icon); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--green-icon); background: var(--surface); }
.btn-small { padding: 0.55rem 1.25rem; font-size: 0.85rem; border-radius: 99px; }
.btn-large { padding: 0.9rem 2rem; font-size: 1.05rem; border-radius: 99px; }

.btn-app-store {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  text-decoration: none;
}
.app-store-apple-icon {
  flex-shrink: 0;
  margin-bottom: 2px;
}


/* ============ header ============ */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--hairline);
  transition: background 0.25s ease, border-color 0.25s ease;
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding-top: 0.9rem; padding-bottom: 0.9rem;
}
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.brand-word {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em;
  font-size: 1.15rem; color: var(--ink);
}
.site-nav { display: flex; gap: 1.6rem; }
.site-nav a { text-decoration: none; color: var(--muted); font-size: 0.92rem; }
.site-nav a:hover { color: var(--ink); }

/* ============ hero ============ */
.hero { padding: 4.5rem 0 5rem; }
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem; align-items: center;
}
.hero-actions { display: flex; gap: 0.9rem; margin-top: 1.75rem; flex-wrap: wrap; }

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, color-mix(in srgb, var(--green-icon) 18%, transparent) 0%, transparent 68%);
  z-index: 0;
  pointer-events: none;
}
.crescent-wrap { position: relative; width: 240px; height: 240px; z-index: 1; }
.crescent { position: absolute; inset: 0; margin: auto; color: var(--bronze); }
.crescent-ring { fill: none; stroke: var(--hairline); stroke-width: 2; }
.crescent-bite {
  fill: var(--paper);
  stroke: var(--bronze);
  stroke-width: 2;
  transform-origin: 100px 100px;
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.9; }
  50% { transform: rotate(8deg) scale(1.03); opacity: 1; }
}

.glyph-arc {
  position: absolute; inset: 0;
}
.glyph {
  position: absolute;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  border: 1.5px solid var(--hairline);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
  animation: pop-in 6s ease-in-out infinite;
}
.glyph-1 { top: 4%; left: 50%; margin-left: -20px; color: var(--ramp-3); animation-delay: 0.2s; }
.glyph-2 { top: 28%; left: 88%; color: var(--ramp-2); animation-delay: 0.9s; }
.glyph-3 { top: 72%; left: 82%; color: var(--bronze); animation-delay: 1.6s; }
.glyph-4 { top: 86%; left: 18%; color: var(--medication); opacity: 0.85; animation-delay: 2.3s; }
.glyph-5 { top: 28%; left: 8%; color: var(--medication); animation-delay: 3s; }

@keyframes pop-in {
  0% { opacity: 0; transform: scale(0.5); }
  12% { opacity: 1; transform: scale(1); }
  85% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(0.85); }
}

@media (prefers-reduced-motion: reduce) {
  .crescent-bite { animation: none; }
  .glyph { animation: none; opacity: 1; transform: scale(1); }
}

/* ============ sections ============ */
.section { padding: 5rem 0; }
.section-alt { background: var(--surface); }
.section-cta { background: var(--surface-2); }

/* ============ steps ============ */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem; margin-top: 2.5rem;
}
.step-head { display: flex; align-items: baseline; gap: 0.65rem; margin-bottom: 0.4rem; }
.step-num { color: var(--bronze); font-size: 0.85rem; }
.step p { color: var(--muted); margin: 0 0 1.25rem; }

.screenshot-frame { margin: 0; }
.screenshot-slot {
  aspect-ratio: 9 / 19.5;
  max-width: 220px;
  margin: 0 auto;
  border-radius: 32px;
  border: 6px solid var(--ink);
  background: var(--surface-2);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 1rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.screenshot-slot:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 48px -12px rgba(28, 32, 26, 0.12);
}
@media (prefers-color-scheme: dark) {
  .screenshot-slot:hover {
    box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.5);
  }
}
.screenshot-slot::before {
  content: "";
  position: absolute;
  top: 10px; left: 50%; transform: translateX(-50%);
  width: 34%; height: 18px;
  background: var(--ink);
  border-radius: 12px;
}
.slot-label { color: var(--muted); font-size: 0.78rem; line-height: 1.5; }

/* ============ signals ============ */
#signals .stat-line { display: block; }

/* ============ quiet / left-out ============ */
.left-out { margin-top: 2.5rem; border-top: 1px solid var(--hairline); padding-top: 2rem; }
.left-out-list { display: grid; gap: 0.75rem; }
.left-out-list li {
  padding-left: 1.4rem;
  position: relative;
  color: var(--muted);
}
.left-out-list li::before {
  content: "–";
  position: absolute; left: 0;
  color: var(--bronze);
}

/* ============ privacy / boundary ============ */
.boundary {
  display: flex; align-items: center; gap: 1rem;
  margin: 2.5rem 0 0.5rem;
}
.boundary-line {
  flex: 1;
  height: 1px;
  background: var(--hairline);
}
.boundary-caption { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }

/* ============ citations ============ */
.citations { display: grid; gap: 1.5rem; margin: 2rem 0; }
.cite-mark { color: var(--bronze); margin-right: 0.4rem; }

/* ============ waitlist form ============ */
.waitlist-form {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  margin-top: 2rem; max-width: 30rem;
}
.email-input {
  flex: 1; min-width: 12rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.email-input:hover {
  border-color: var(--muted);
}
.email-input:focus {
  border-color: var(--green-icon);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--green-icon) 15%, transparent);
  outline: none;
  background-color: var(--surface);
}
.form-message {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: var(--green-text);
  min-height: 1.2em;
}

/* ============ footer ============ */
.site-footer { padding: 3rem 0; border-top: 1px solid var(--hairline); }
.footer-row { display: grid; gap: 0.6rem; }
.footer-word { font-family: var(--font-display); color: var(--muted); }
.footer-legal { max-width: 44rem; }
.footer-note { color: var(--muted); }
.footer-row a { text-decoration: underline; text-decoration-color: var(--hairline); }

/* ============ responsive ============ */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 1rem; }
  .steps { grid-template-columns: 1fr; gap: 3rem; }
  .site-nav { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding: 3rem 0 3.5rem; }
  .section { padding: 3.5rem 0; }
  .waitlist-form { flex-direction: column; align-items: stretch; }
}

/* ============ app mockups (capture, timeline, detail) ============ */
.screenshot-slot {
  width: 270px;
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  border: 10px solid var(--ink);
  background: var(--app-preview-bg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 0 !important;
  max-width: none;
  margin: 0 auto;
}

.screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (prefers-color-scheme: dark) {
  .screenshot-slot {
    background: #191B18;
    border-color: #30362F;
  }
}

.screenshot-slot.capture-slot::before,
.screenshot-slot.timeline-slot::before,
.screenshot-slot.detail-slot::before {
  display: none; /* remove general notch for this custom frame */
}

/* Status Bar */
.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 1.1rem 0.25rem;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.9;
  flex-shrink: 0;
  z-index: 10;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 0.28rem;
}

.status-icons svg {
  stroke-width: 2;
  color: var(--ink);
  fill: none;
  opacity: 0.85;
}

.status-icons svg.icon-signal {
  fill: var(--ink);
}

/* Home Indicator */
.home-indicator {
  width: 32%;
  height: 4.5px;
  background: var(--ink);
  border-radius: 99px;
  margin: 0.35rem auto 0.4rem;
  opacity: 0.25;
  flex-shrink: 0;
  z-index: 10;
}

.app-timeline-preview {
  background: var(--app-preview-bg);
  border-radius: 0;
  padding: 0 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  flex-grow: 1;
  font-family: var(--font-body);
  text-align: left;
  color: var(--ink);
  box-sizing: border-box;
  justify-content: space-between;
  overflow: hidden;
}

.timeline-dose-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 0.6rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.timeline-dose-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.timeline-dose-pill-icon {
  width: 16px;
  height: 8px;
  background: var(--medication);
  border-radius: 99px;
}

.timeline-dose-progress-bar {
  height: 8px;
  background: var(--dose-bar-bg);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.timeline-dose-progress-fill {
  width: 42%;
  height: 100%;
  background: var(--medication);
  border-radius: 99px;
}

.timeline-dose-status {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--medication);
  opacity: 0.8;
  letter-spacing: 0.05em;
}

.timeline-calendar-week {
  display: flex;
  flex-direction: column;
  margin: 0.25rem 0;
}

.calendar-month-selector {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--ink);
}

.calendar-month-arrow {
  font-size: 0.75rem;
  color: var(--muted);
}

.calendar-days-row {
  display: flex;
  justify-content: space-between;
  gap: 0.2rem;
  margin-top: 0.3rem;
}

.calendar-day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  padding: 0.22rem 0 0.3rem;
  border-radius: 12px;
  font-size: 0.68rem;
  transition: background 0.15s ease;
}

.calendar-day-label {
  color: var(--muted);
  font-size: 0.58rem;
  margin-bottom: 0.1rem;
  font-weight: 500;
}

.calendar-day-number {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--muted);
}

.calendar-day-active {
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  position: relative;
}

.calendar-day-active::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 25%;
  width: 50%;
  height: 2px;
  background: var(--ink);
  border-radius: 99px;
}

.calendar-day-active .calendar-day-number,
.calendar-day-active .calendar-day-label {
  color: var(--ink);
}

.timeline-category-header {
  background: var(--cat-header-bg);
  border-radius: 8px;
  padding: 0.25rem 0.6rem;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--cat-header-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
}

.timeline-entries-container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.timeline-entry-card {
  background: var(--surface);
  border-radius: 14px;
  padding: 0.55rem 0.75rem;
  display: flex;
  gap: 0.6rem;
  border: 1px solid var(--hairline);
}

.timeline-entry-glyph {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.timeline-entry-glyph svg {
  width: 13px !important;
  height: 13px !important;
}

.glyph-great {
  background: var(--glyph-great-bg);
  color: var(--glyph-great-color);
}

.glyph-okay {
  background: var(--glyph-okay-bg);
  color: var(--glyph-okay-color);
}

.glyph-good {
  background: var(--glyph-good-bg);
  color: var(--glyph-good-color);
}

.timeline-entry-main {
  flex: 1;
}

.timeline-entry-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.15rem;
}

.entry-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
}

.entry-time {
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 400;
  margin-left: 0.3rem;
}

.entry-menu-btn {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1;
}

.timeline-entry-tags {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.4rem;
  row-gap: 0.1rem;
  font-size: 0.65rem;
  color: var(--muted);
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-entry-tags li {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
}

.timeline-entry-tags li:not(:last-child)::after {
  content: "•";
  margin-left: 0.4rem;
  color: var(--hairline);
}

.timeline-bottom-summary {
  background: var(--summary-bg);
  border-radius: 14px;
  padding: 0.4rem 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--summary-color);
  box-shadow: var(--shadow-subtle);
  border: 1px solid var(--hairline);
  box-sizing: border-box;
  width: 100%;
}

.timeline-bottom-summary .summary-left {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.summary-sprout-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(28, 32, 26, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4A6E3A;
  flex-shrink: 0;
}

.summary-sprout-icon svg {
  width: 11px !important;
  height: 11px !important;
}

:root[data-theme="dark"] .summary-sprout-icon {
  background: rgba(240, 244, 239, 0.12);
  color: #8FBB78;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .summary-sprout-icon {
    background: rgba(240, 244, 239, 0.12);
    color: #8FBB78;
  }
}

.summary-text-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}

.summary-main-status {
  font-weight: 800;
  font-size: 0.75rem;
  color: #1C201A;
}

:root[data-theme="dark"] .summary-main-status {
  color: #F0F4EF;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .summary-main-status {
    color: #F0F4EF;
  }
}

.summary-sub-status {
  font-size: 0.58rem;
  color: var(--muted);
  font-weight: 500;
}

.summary-metrics-grid {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex: 1;
  justify-content: flex-end;
  margin-right: 0.25rem;
}

.metric-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  text-align: center;
  line-height: 1.1;
  flex-shrink: 0;
}

.metric-emoji {
  font-size: 0.75rem;
  margin-bottom: 0.05rem;
}

.metric-label {
  font-size: 0.45rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.summary-chevron {
  font-size: 0.5rem;
  opacity: 0.7;
  flex-shrink: 0;
}

/* ============ theme toggle button ============ */
.theme-toggle {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  color: var(--ink);
  cursor: pointer;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  padding: 0;
  margin-right: 0.5rem;
}
.theme-toggle:hover {
  border-color: var(--bronze);
  background: var(--surface);
  transform: scale(1.05);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
}
.theme-toggle svg {
  stroke-width: 2.2;
}
.theme-toggle .sun-icon {
  display: none;
}
.theme-toggle .moon-icon {
  display: block;
}

:root[data-theme="dark"] .theme-toggle .sun-icon {
  display: block;
}
:root[data-theme="dark"] .theme-toggle .moon-icon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun-icon {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .moon-icon {
    display: none;
  }
}

/* ============ premium content layout styling (stats, paradox, failures) ============ */
.pitch-highlight {
  background: var(--surface-2);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--bronze);
  box-shadow: var(--shadow-card);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--bronze);
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.stat-desc {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.comparison-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (max-width: 880px) {
  .comparison-split {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.failure-card {
  background: var(--surface);
  border-left: 4px solid var(--ramp-1);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.failure-card:hover {
  transform: translateX(4px);
  border-left-color: var(--bronze);
  box-shadow: var(--shadow-card);
}

.failure-card h4 {
  margin: 0 0 0.35rem 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.failure-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
}

.paradox-box {
  background: var(--surface);
  border: 1px solid var(--bronze);
  border-radius: var(--radius);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.paradox-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px -12px rgba(184, 132, 42, 0.12);
}

@media (prefers-color-scheme: dark) {
  .paradox-box:hover {
    box-shadow: 0 20px 48px -12px rgba(0, 0, 0, 0.45);
  }
}

.paradox-title {
  color: var(--bronze);
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.paradox-visual {
  margin: 1.75rem 0;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: calc(var(--radius) - 8px);
  padding: 1.5rem;
}

.bar-row {
  margin-bottom: 1rem;
}

.bar-row:last-child {
  margin-bottom: 0;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--muted);
  margin-bottom: 0.38rem;
}

.bar-container {
  height: 10px;
  background: var(--surface-2);
  border-radius: 99px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.8s ease-out;
}

.bar-sentiment {
  background: var(--green-icon);
  width: 85%;
}

.bar-adoption {
  background: var(--ramp-1);
  width: 15%;
}

/* ============ high-fidelity detail preview (app screenshot 3 detail view) ============ */
.app-detail-preview {
  background: var(--app-preview-bg);
  border-radius: 0;
  padding: 0 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: 100%;
  flex-grow: 1;
  font-family: var(--font-body);
  text-align: left;
  color: var(--ink);
  box-sizing: border-box;
  justify-content: space-between;
  overflow: hidden;
}

/* Medication active header card */
.detail-med-capsule {
  background: var(--surface);
  border-radius: 14px;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  border: 1px solid var(--hairline);
}

.detail-med-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.detail-med-pill-dot {
  width: 14px;
  height: 7px;
  background: var(--medication);
  border-radius: 99px;
}

.detail-med-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.detail-med-track {
  height: 10px;
  background: var(--dose-bar-bg);
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.detail-med-fill {
  height: 100%;
  background: var(--medication);
  border-radius: 99px;
}

.detail-med-active-label {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.5rem;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--medication);
  opacity: 0.8;
  letter-spacing: 0.05em;
}

/* Timestamp */
.detail-timestamp-row {
  font-size: 0.65rem;
  color: var(--muted);
  font-weight: 500;
  margin-left: 0.25rem;
  margin-top: 0.15rem;
  margin-bottom: 0.05rem;
}

/* Stats columns */
.detail-stats-panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 0.75rem 0.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  text-align: center;
}

.detail-stat-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.detail-stat-icon-wrapper {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.detail-stat-icon-wrapper.mood-icon {
  color: var(--green-icon);
}

.detail-stat-value {
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--ink);
  margin-top: 0.25rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.detail-stat-label {
  font-size: 0.48rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-bottom: 0.35rem;
}

.detail-stat-bar {
  height: 3px;
  width: 70%;
  background: var(--dose-bar-bg);
  border-radius: 99px;
  overflow: hidden;
}

.detail-stat-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
}

.bar-fill-mood { background: var(--green-icon); }
.bar-fill-energy { background: var(--ramp-2); }
.bar-fill-focus { background: #4D96FF; }

/* Detail cards list */
.detail-cards-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 0.5rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.detail-card-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.detail-card-icon {
  font-size: 0.8rem;
}

.detail-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
}

.detail-card-content {
  font-size: 0.7rem;
  color: var(--ink);
  font-weight: 400;
  line-height: 1.35;
}

.detail-card-content.transcript-text {
  color: var(--muted);
}

/* Audio card */
.detail-audio-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
}

.detail-audio-play-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #6C5DD3;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.detail-audio-play-btn svg {
  margin-left: 2px;
}

.detail-audio-track {
  flex: 1;
  height: 5px;
  background: var(--dose-bar-bg);
  border-radius: 99px;
  overflow: hidden;
}

.detail-audio-fill {
  height: 100%;
  background: #6C5DD3;
  border-radius: 99px;
}

.detail-audio-duration {
  font-size: 0.65rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

/* Delete button */
.detail-delete-btn {
  background: var(--surface);
  border: 1px solid #FFEBEB;
  border-radius: 12px;
  padding: 0.5rem;
  color: #FF4D4D;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.detail-delete-btn:hover {
  background: #FFF5F5;
  border-color: #FFB3B3;
}

/* ============ capture preview (app screenshot 1 capture screen) ============ */
.app-capture-preview {
  background: var(--app-preview-bg);
  border-radius: 0;
  padding: 0 0.9rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  flex-grow: 1;
  font-family: var(--font-body);
  text-align: center;
  color: var(--ink);
  box-sizing: border-box;
  justify-content: space-between;
  overflow: hidden;
}

.capture-date {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  color: var(--muted);
  font-weight: 700;
  margin-top: 1rem;
}

.capture-question {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0.15rem 0 2rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.capture-ring-outer {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 12px solid rgba(74, 110, 58, 0.22);
  background: rgba(74, 110, 58, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin-bottom: 2.2rem;
}

:root[data-theme="dark"] .capture-ring-outer {
  border-color: rgba(143, 187, 120, 0.25);
  background: rgba(143, 187, 120, 0.04);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .capture-ring-outer {
    border-color: rgba(143, 187, 120, 0.25);
    background: rgba(143, 187, 120, 0.04);
  }
}

.capture-ring-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.capture-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 124px;
  height: 32px;
  border-radius: 16px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  transition: transform 0.15s ease, background 0.15s ease;
  box-sizing: border-box;
}

.capture-button:hover {
  transform: scale(1.03);
}

.btn-log-meds {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.btn-speak-checkin {
  background: var(--green-icon);
  color: var(--paper);
  border: none;
  width: 136px;
  height: 34px;
}

.btn-speak-checkin:hover {
  background: var(--green-text);
}

.btn-type-note {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--hairline);
}

.capture-btn-icon {
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
}

.capture-btn-icon.mic-icon {
  color: currentColor;
}
