/* ==========================================================================
   Sproutive — Website Design System
   Theme: Calm Blue (website default, Theme 2)
   Font: Nunito (self-hosted — no external font CDN, no trackers)
   ========================================================================== */

/* ---- Self-hosted Nunito variable font ---- */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../assets/fonts/nunito-latin-ext-var.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../assets/fonts/nunito-latin-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---- Design tokens ---- */
:root {
  --primary: #5B8DEF;        /* Soft Blue */
  --primary-dark: #3F6FD1;   /* Hover / AA-safe large text on white */
  --primary-deep: #2C56AE;   /* AA-safe small text on light backgrounds */
  --secondary: #8B7CF6;      /* Warm Purple */
  --secondary-deep: #5B4BC4;
  --accent: #FFD166;         /* Soft Yellow */
  --accent-deep: #8A6D1B;
  --bg: #F8FAFC;             /* Warm Off White */
  --surface: #F1F5F9;        /* Soft Grey */
  --card: #FFFFFF;
  --text: #0F172A;           /* Dark Slate */
  --text-2: #475569;         /* Slate */
  --success: #22C55E;
  --success-deep: #15803D;
  --warning: #F59E0B;
  --warning-deep: #92400E;
  --error: #EF4444;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow: 0 4px 16px rgba(91, 141, 239, 0.12);
  --shadow-lg: 0 12px 40px rgba(91, 141, 239, 0.18);

  /* 8pt spacing grid */
  --s-1: 8px;  --s-2: 16px;  --s-3: 24px;  --s-4: 32px;  --s-5: 40px;
  --s-6: 48px; --s-8: 64px;  --s-10: 80px; --s-12: 96px;

  --font: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max-width: 1120px;
  --max-prose: 65ch;
}

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;            /* minimum body size — never smaller */
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 var(--s-2); font-weight: 800; }
h1 { font-size: clamp(30px, 5vw, 42px); }
h2 { font-size: clamp(24px, 3.5vw, 30px); }
h3 { font-size: 20px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }
p  { margin: 0 0 var(--s-2); max-width: var(--max-prose); }
ul, ol { margin: 0 0 var(--s-2); padding-left: 1.4em; }
li { margin-bottom: var(--s-1); max-width: var(--max-prose); }

a { color: var(--primary-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }

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

.muted { color: var(--text-2); }
.center { text-align: center; }
.center p, .center li { margin-left: auto; margin-right: auto; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--s-3);
}
.section { padding: var(--s-10) 0; }
.section--tight { padding: var(--s-8) 0; }
.section--surface { background: var(--surface); }
.section-intro { max-width: 720px; margin: 0 auto var(--s-6); text-align: center; }
.section-intro p { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-deep);
  background: rgba(91, 141, 239, 0.12);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: var(--s-2);
}

/* ---- Header / navigation ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 20px;
  padding: 8px 0;
}
.brand img, .brand svg { width: 40px; height: 40px; }
.brand .brand-tag {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  line-height: 1.2;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: var(--surface); }
.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 3px;
  background: var(--text);
  margin: 5px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  color: var(--text-2);
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a[aria-current="page"] { color: var(--primary-deep); background: rgba(91, 141, 239, 0.12); }
.nav-links .nav-cta a {
  background: var(--primary);
  color: #fff;
  padding: 8px 20px;
}
.nav-links .nav-cta a:hover { background: var(--primary-dark); color: #fff; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: var(--s-2) var(--s-3) var(--s-3);
    box-shadow: var(--shadow);
  }
  .nav-links a { min-height: 48px; }
  .nav-open .nav-links { display: flex; }
  .nav-open .nav-toggle .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--primary-deep); border-color: var(--primary); }
.btn-secondary:hover { background: rgba(91, 141, 239, 0.1); }
.btn-lg { min-height: 56px; padding: 16px 36px; font-size: 17px; }

/* ---- Store badges (placeholder until launch) ---- */
.store-badges { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 22px;
  border-radius: 14px;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  line-height: 1.2;
}
.store-badge .store-icon { font-size: 24px; flex-shrink: 0; }
.store-badge svg.store-icon { width: 22px; height: 22px; }
.store-badge small { display: block; font-size: 12px; font-weight: 600; opacity: 0.85; }
.store-badge strong { font-size: 17px; font-weight: 800; }
.store-badge.is-soon { background: var(--surface); color: var(--text-2); cursor: default; }
.store-badge.is-soon strong { color: var(--text); }

/* ---- Hero ---- */
.hero { padding: var(--s-10) 0 var(--s-12); overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--s-8);
  align-items: center;
}
.hero h1 { margin-bottom: var(--s-2); }
.hero .lede { font-size: 19px; color: var(--text-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: var(--s-4) 0 var(--s-3); }
.hero-note { font-size: 14px; color: var(--text-2); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phone { margin: 0 auto; }
}

/* ---- Trust strip ---- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--s-2);
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--card);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius);
  padding: var(--s-2) var(--s-3);
  box-shadow: var(--shadow-sm);
}
.trust-item .t-icon { font-size: 24px; line-height: 1.3; }
.trust-item strong { display: block; }
.trust-item span { font-size: 14px; color: var(--text-2); }

/* ---- Cards & grids ---- */
.grid { display: grid; gap: var(--s-3); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: var(--radius-lg);
  padding: var(--s-4);
  box-shadow: var(--shadow-sm);
}
.card .card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 28px;
  border-radius: 18px;
  background: rgba(91, 141, 239, 0.12);
  margin-bottom: var(--s-2);
}
.card .card-icon.icon-purple { background: rgba(139, 124, 246, 0.14); }
.card .card-icon.icon-yellow { background: rgba(255, 209, 102, 0.28); }
.card .card-icon.icon-green  { background: rgba(34, 197, 94, 0.14); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card h3 { margin-bottom: var(--s-1); }
.card .muted { font-size: 15px; }

/* Scenario / use-case card */
.scenario {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-6);
  align-items: center;
  padding: var(--s-6) 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}
.scenario:last-child { border-bottom: none; }
.scenario.flip .scenario-media { order: 2; }
.scenario-media { display: flex; justify-content: center; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: var(--s-2) 0 0; list-style: none; }
.feature-tags li {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-deep);
  background: rgba(91, 141, 239, 0.1);
  border-radius: 999px;
  padding: 6px 14px;
}
@media (max-width: 860px) {
  .scenario { grid-template-columns: 1fr; gap: var(--s-4); }
  .scenario.flip .scenario-media { order: 0; }
}

/* ---- Steps (how it works) ---- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: var(--s-2); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: var(--s-2);
}

/* ---- Pricing ---- */
.price-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: var(--s-6) var(--s-4);
  box-shadow: var(--shadow-lg);
}
.price-figure { font-size: 56px; font-weight: 900; color: var(--text); line-height: 1.1; }
.price-figure .cur { font-size: 22px; font-weight: 800; vertical-align: super; }
.price-once {
  display: inline-block;
  background: rgba(255, 209, 102, 0.35);
  color: var(--accent-deep);
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  padding: 6px 16px;
  margin: var(--s-1) 0 var(--s-3);
}
.price-list { list-style: none; padding: 0; margin: 0 0 var(--s-3); text-align: left; display: inline-block; }
.price-list li { padding-left: 30px; position: relative; }
.price-list li::before { content: '✓'; position: absolute; left: 0; color: var(--success-deep); font-weight: 900; }

/* ---- FAQ (details/summary) ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--card);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: var(--radius);
  margin-bottom: var(--s-2);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-2);
  min-height: 56px;
  padding: var(--s-2) var(--s-3);
  font-weight: 800;
  font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; font-weight: 700; color: var(--primary-deep); flex-shrink: 0; }
.faq details[open] summary::after { content: '–'; }
.faq details[open] summary { border-bottom: 1px solid rgba(15, 23, 42, 0.06); }
.faq .faq-body { padding: var(--s-2) var(--s-3) var(--s-3); }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ---- Draft banner (legal pages, pending lawyer sign-off) ---- */
.draft-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(245, 158, 11, 0.12);
  border: 1.5px solid var(--warning);
  border-radius: var(--radius);
  padding: var(--s-2) var(--s-3);
  margin-bottom: var(--s-4);
  color: var(--warning-deep);
  font-weight: 700;
}
.draft-banner p { margin: 0; color: inherit; font-size: 15px; }

/* ---- Prose (legal / long-form pages) ---- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: var(--s-6); font-size: 24px; }
.prose h3 { margin-top: var(--s-4); }
.prose .updated { font-size: 14px; color: var(--text-2); margin-bottom: var(--s-4); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--s-3); font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border: 1px solid rgba(15, 23, 42, 0.1); vertical-align: top; }
.prose th { background: var(--surface); }

.callout {
  background: rgba(91, 141, 239, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: var(--s-2) var(--s-3);
  margin: var(--s-3) 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout--success { background: rgba(34, 197, 94, 0.08); border-left-color: var(--success); }

/* ---- Contact cards ---- */
.contact-email {
  display: block;
  font-size: 20px;
  font-weight: 800;
  word-break: break-all;
}

/* ---- Big CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: var(--radius-lg);
  color: #fff;
  text-align: center;
  padding: var(--s-8) var(--s-3);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.92); margin-left: auto; margin-right: auto; }
.cta-band .btn-primary { background: #fff; color: var(--primary-deep); }
.cta-band .btn-primary:hover { background: var(--accent); color: var(--text); }

/* ---- Footer ---- */
.site-footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: var(--s-8) 0 var(--s-4);
  margin-top: var(--s-10);
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 4px; }
.site-footer a {
  color: #CBD5E1;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 19px; margin-bottom: var(--s-1); }
.footer-brand img { width: 36px; height: 36px; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--s-3);
  font-size: 13px;
  color: #94A3B8;
}
.footer-legal p { max-width: none; margin-bottom: 6px; }

/* ==========================================================================
   Phone mockup (CSS-drawn app preview — swap for real screenshots at launch)
   ========================================================================== */
.phone {
  width: 300px;
  border-radius: 40px;
  background: var(--text);
  padding: 12px;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}
.phone-screen {
  background: var(--bg);
  border-radius: 30px;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  font-size: 14px;
}
/* Real-screenshot variant: the image is the whole screen */
.phone-screen--img { min-height: 0; }
.phone-screen--img img {
  display: block;
  width: 100%;
  height: auto;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-2);
}
.app-header { padding: 10px 18px 6px; }
.app-header .greet { font-size: 18px; font-weight: 800; }
.app-header .sub { font-size: 12px; color: var(--text-2); font-weight: 600; }
.app-progress { margin: 8px 18px 4px; }
.app-progress .bar-track { height: 10px; border-radius: 999px; background: #E2E8F0; overflow: hidden; }
.app-progress .bar-fill { height: 100%; border-radius: 999px; background: var(--primary); }
.app-progress .bar-label { font-size: 11px; font-weight: 700; color: var(--text-2); margin-top: 4px; display: flex; justify-content: space-between; }
.app-body { padding: 10px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.task-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1.5px solid rgba(15, 23, 42, 0.07);
  border-radius: 16px;
  padding: 10px 12px;
}
.task-card.is-done { opacity: 0.62; }
.task-card.is-active { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91, 141, 239, 0.18); }
.task-emoji {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  background: var(--surface);
  border-radius: 12px;
  flex-shrink: 0;
}
.task-meta { flex: 1; min-width: 0; }
.task-meta strong { display: block; font-size: 14px; }
.task-stars { font-size: 11px; letter-spacing: 1px; }
.task-check {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2.5px solid #CBD5E1;
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px;
  color: #fff;
}
.task-check.is-checked { background: var(--success); border-color: var(--success); }

.app-tabbar {
  display: flex;
  justify-content: space-around;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--card);
  padding: 8px 4px 14px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-2);
  text-align: center;
}
.app-tabbar span { display: flex; flex-direction: column; gap: 2px; min-width: 48px; }
.app-tabbar .tab-icon { font-size: 18px; }
.app-tabbar .is-current { color: var(--primary-deep); }

/* Emotion check-in variant */
.emotion-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 4px;
}
.emotion-cell {
  background: var(--card);
  border: 1.5px solid rgba(15, 23, 42, 0.07);
  border-radius: 16px;
  text-align: center;
  padding: 14px 6px;
  font-size: 12px;
  font-weight: 700;
}
.emotion-cell .e-icon { display: block; font-size: 30px; margin-bottom: 4px; }
.emotion-cell.is-picked { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(139, 124, 246, 0.2); }

/* Insights dashboard variant */
.insight-card {
  background: var(--card);
  border: 1.5px solid rgba(15, 23, 42, 0.07);
  border-radius: 16px;
  padding: 12px;
}
.insight-card .i-label { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2); margin-bottom: 6px; }
.insight-card .i-detail { font-size: 13px; font-weight: 700; }
.insight-card .i-hint { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 90px;
  padding-top: 6px;
}
.mini-chart .bar {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: var(--primary);
  min-height: 8px;
}
.mini-chart .bar.is-low { background: var(--secondary); opacity: 0.55; }
.mini-chart-days {
  display: flex;
  gap: 6px;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-2);
  text-align: center;
  margin-top: 4px;
}
.mini-chart-days span { flex: 1; }
.score-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(34, 197, 94, 0.12);
  color: var(--success-deep);
  font-weight: 800;
  font-size: 13px;
  border-radius: 999px;
  padding: 4px 12px;
}

@media (max-width: 400px) {
  .phone { width: 260px; }
  .phone-screen { min-height: 500px; }
}

/* ==========================================================================
   Calm motion (progressive enhancement — only active when js/main.js adds
   `js-anim` to <html>, which it never does under prefers-reduced-motion).
   Rules: 200–300ms ease-out, one-time reveals, nothing loops or startles.
   ========================================================================== */
html.js-anim .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
  transition-delay: 0ms; /* per-element stagger set inline by main.js */
}
html.js-anim .reveal.is-visible {
  opacity: 1;
  transform: none;
}
