/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #faf8f4;
  --bg-warm:      #f4efe8;
  --surface:      #ffffff;
  --border:       #e6dfd5;
  --border-soft:  #ede7de;

  --text:         #1c1714;
  --text-muted:   #6b625a;
  --text-light:   #9e9189;

  --primary:      #3d6b5e;
  --primary-h:    #2e5248;
  --primary-pale: #eaf2ee;

  --vitals-bg:    #dff0ec;
  --vitals-fg:    #246b5a;
  --meds-bg:      #fde8d4;
  --meds-fg:      #a84d1a;
  --history-bg:   #e8e2f6;
  --history-fg:   #5b3fa0;

  --radius:    12px;
  --radius-sm: 8px;
  --radius-xs: 5px;
  --shadow:    0 1px 3px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.07);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 18px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ─── Utilities ────────────────────────────────────────────────── */
.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }

.btn-sm  { font-size: .8125rem; padding: 7px 15px; }
.btn-lg  { font-size: .9375rem; padding: 14px 28px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-h); }

.btn-outline {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--text-muted); color: var(--text); }

/* ─── Tags / Labels ────────────────────────────────────────────── */
.tag, .section-eyebrow {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-pale);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 22px;
}

/* ─── Nav ──────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,248,244,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 28px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}
.logo-name {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
  line-height: 1;
}
.logo-slogan {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--primary);
  line-height: 1;
}
.nav-inner .btn {
  color: var(--primary);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

/* ─── Mental Load ───────────────────────────────────────────────── */
.mental-load {
  padding: 96px 0;
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.mental-load h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin-bottom: 20px;
}
.ml-intro {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 48px;
}

.ml-intro-line {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.load-pile {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.load-item {
  display: inline-block;
  font-size: 0.8125rem;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
  line-height: 1.3;
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.18s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.load-item--hidden {
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.load-item.medical {
  background: rgba(27, 106, 106, 0.07);
  border-color: rgba(27, 106, 106, 0.3);
  color: #1b6a6a;
}
.load-item.medical:not(.load-item--hidden) {
  animation: medical-ping 0.4s cubic-bezier(0.34, 1.8, 0.64, 1);
}
@keyframes medical-ping {
  0%   { transform: scale(0.6); }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.load-pile-note {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: 4px;
  font-style: italic;
}
.load-pile-note-teal {
  color: #1b6a6a;
  font-style: normal;
  font-weight: 500;
}

.caregiver-profiles {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}
.caregiver-profile {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 16px 32px;
  padding: 20px 0;
  border-top: 1px solid var(--border-soft);
  align-items: baseline;
}
.caregiver-profile:last-child {
  border-bottom: 1px solid var(--border-soft);
}
.caregiver-profile-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}
.caregiver-profile-body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.ml-closing {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.7;
  margin-top: 48px;
  font-style: italic;
  text-align: center;
}

.ml-quotes-heading {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.015em;
  margin: 56px 0 20px;
}

.ml-evidence-label {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: .04em;
  margin-bottom: 16px;
}
.ml-quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 760px) {
  .ml-quotes { grid-template-columns: 1fr; }
}
.quote-bubble {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  border-radius: 12px;
  padding: 20px 24px;
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.75;
  font-style: italic;
}
.quote-source {
  display: block;
  margin-top: 12px;
  font-size: .75rem;
  font-style: normal;
  color: var(--text-light);
}
.quote-source a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ─── Hero ─────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(150deg, #fefaf2 0%, #f4efe8 45%, #e2d3bc 100%);
}

/* Centered headline */
.hero-headline {
  text-align: center;
  padding: 100px 0 72px;
}
.hero-headline h1 {
  font-size: clamp(3.2rem, 6.5vw, 5.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.04em;
  color: var(--text);
  margin-bottom: 28px;
}
.hero-qualifier {
  font-size: 1.1875rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 auto 20px;
  max-width: 620px;
}
.hero-sub {
  font-size: 1.1875rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto;
}
.hero-sub-close {
  display: block;
  margin-top: 18px;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}
.hero-note {
  font-size: .8125rem;
  color: var(--text-light);
  font-style: italic;
}

/* ─── Post-animation CTA ───────────────────────────────────────── */
.hero-story-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 72px 28px 80px;
  text-align: center;
  background: var(--bg-warm);
  border-top: 1px solid var(--border-soft);
}
.hero-story-prompt {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -.02em;
}

/* ─── Brand name inline formatting ────────────────────────────── */
.brand {
  font-style: italic;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -.01em;
}


/* ─── How It Works ─────────────────────────────────────────────── */
.how {
  padding: 96px 0;
  border-bottom: 1px solid var(--border-soft);
}
.how h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.75;
}

/* Steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 64px;
  border-left: 2px solid var(--border);
  padding-left: 32px;
  margin-left: 16px;
}
.step {
  display: flex;
  gap: 24px;
  padding-bottom: 36px;
  position: relative;
}
.step::before {
  content: '';
  position: absolute;
  left: -38px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
}
.step:last-child { padding-bottom: 0; }
.step-num {
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: .05em;
  padding-top: 3px;
  min-width: 24px;
  flex-shrink: 0;
}
.step-text h3 {
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.step-text p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Prototype ────────────────────────────────────────────────── */
.prototype {
  background: var(--bg-warm);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  overflow: hidden;
}

.proto-label {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 28px;
}

.proto-layout {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: start;
}
@media (max-width: 820px) {
  .proto-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .proto-arrow { flex-direction: row; padding: 20px 0; align-items: center; }
  .arrow-line { width: 40px; height: 2px; flex-grow: 1; }
  .arrow-label { padding: 0 12px; white-space: nowrap; }
}

.proto-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.proto-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-soft);
  font-size: .75rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg);
}
.proto-panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.proto-panel-dot.accent { background: #e8a24f; }

/* Journal panel */
.proto-journal { }

.journal-bubble {
  padding: 20px;
  border-bottom: 1px solid var(--border-soft);
}
.journal-source {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  color: var(--text-light);
  margin-bottom: 12px;
}
.journal-source-icon { font-size: .875rem; }
.journal-verbatim {
  font-size: .875rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
}
.journal-meta {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}
.journal-stamp {
  font-size: .7rem;
  color: var(--text-light);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid var(--border-soft);
}
.journal-note {
  padding: 12px 20px;
  font-size: .7375rem;
  color: var(--text-light);
  font-style: italic;
}

/* Arrow */
.proto-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
  gap: 8px;
  padding-top: 80px;
}
.arrow-line {
  width: 2px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}
.arrow-label {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-light);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
}
@media (max-width: 820px) {
  .arrow-label {
    writing-mode: horizontal-tb;
    text-orientation: initial;
  }
  .proto-arrow { padding-top: 0; }
}

/* Extracted panel */
.proto-extracted { }

.extract-card {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.extract-card:last-child { border-bottom: none; }

.extract-tag {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.extract-tag.vitals  { background: var(--vitals-bg);  color: var(--vitals-fg); }
.extract-tag.meds    { background: var(--meds-bg);    color: var(--meds-fg); }
.extract-tag.history { background: var(--history-bg); color: var(--history-fg); }

.extract-title {
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.extract-value {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.extract-detail {
  font-size: .775rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── Novelty block ─────────────────────────────────────────────── */
.novelty-block-wrap {
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 48px 0;
}
.novelty-block {
  border-left: 3px solid #1B6A6A;
  background: rgba(27, 106, 106, 0.04);
  padding: 24px 28px;
  border-radius: 0 8px 8px 0;
}
.novelty-block p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 16px;
}
.novelty-block p:last-child { margin-bottom: 0; }
.novelty-cta {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.novelty-cta-heading {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.novelty-cta-sub {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 0;
}

/* ─── Founder ──────────────────────────────────────────────────── */
.founder {
  padding: 52px 0 48px;
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}
.founder-inner {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 72px;
  align-items: start;
  padding: 0 max(40px, 7vw) 0 max(28px, 4.5vw);
}
@media (max-width: 760px) {
  .founder-inner { grid-template-columns: 1fr; gap: 48px; }
}

.founder-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin-bottom: 20px;
}
.founder-text p {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 12px;
}
.founder-text em {
  font-style: italic;
  color: var(--text);
}
.founder-text strong {
  font-weight: 600;
  color: var(--text);
}
.founder-close {
  text-align: center;
  margin: 40px max(60px, 15vw) 0;
  color: var(--text) !important;
  font-size: 1.125rem !important;
  font-weight: 600;
}

.founder-aside {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 760px) {
  .founder-aside { flex-direction: row; flex-wrap: wrap; gap: 24px; }
}

.founder-bio {
  margin-top: 0;
}
.founder-cta {
  text-align: center;
  margin-top: 52px;
}
.founder-cta .btn {
  font-size: 1.0625rem;
  padding: 14px 36px;
}
.founder-bio-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}
.founder-bio-title {
  font-size: .875rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 2px;
}
.founder-bio-location {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.founder-bio-text {
  font-size: .875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ─── Social Enterprise ─────────────────────────────────────────── */
.enterprise {
  padding: 96px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border-soft);
}
.enterprise-inner {
  max-width: 860px;
}
.enterprise-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
  margin-bottom: 24px;
}
.enterprise-body {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.enterprise-body:last-child { margin-bottom: 0; }

.vision-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
  padding: 40px 0;
  border-top: 1px solid var(--border-soft);
}
.vision-stat {
  padding: 24px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.85);
}
.vision-stat-number {
  font-size: clamp(2.5rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.vision-stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}
.vision-stat-ref {
  font-size: 0.7rem;
  color: var(--text-muted);
  opacity: 0.6;
  line-height: 1.3;
}

.vision-quote {
  margin: 40px 0;
  padding: 28px 32px;
  background: rgba(27, 106, 106, 0.06);
  border-left: 3px solid #1b6a6a;
  border-radius: 0 12px 12px 0;
}
.vision-quote p {
  font-size: 1.125rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0 0 10px;
  font-style: italic;
}
.vision-quote-attr {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: normal;
}

.vision-pullquote {
  margin: 48px auto;
  text-align: center;
  padding: 0 16px;
}
.vision-pullquote p {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-style: italic;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.45;
  margin: 0 0 12px;
}
.vision-pullquote cite {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-style: normal;
}

.vision-cta-row {
  margin-top: 48px;
  text-align: center;
}
.vision-cta-prompt {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
}
.vision-cta-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.vision-close {
  text-align: center;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 24px;
}
.vision-close-cta {
  text-align: center;
}

.vision-manifesto {
  margin-top: 40px;
  border-top: 1px solid var(--border-soft);
  padding-top: 40px;
}
.vision-manifesto p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 20px;
}
.vision-manifesto p:last-child { margin-bottom: 0; }
.vision-manifesto-question {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1b6a6a;
  margin: 2rem 0 !important;
  line-height: 1.5;
}

/* ─── Join the Team ─────────────────────────────────────────────── */
.join {
  padding: 96px 0 112px;
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
}

/* ─── Share Form ────────────────────────────────────────────────── */
.share {
  padding: 96px 0 112px;
}
.share h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.025em;
  margin-bottom: 16px;
}
.share-intro {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.75;
}
.share-intro:last-of-type {
  margin-bottom: 52px;
}

.story-form {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-label-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.field-label-row label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.dictate-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: inherit;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  margin-top: 2px;
}
.dictate-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.dictate-btn.dictating {
  border-color: #c0392b;
  color: #c0392b;
  background: #fdf2f2;
}
.dictate-btn.dictating svg {
  animation: mic-pulse 1s ease-in-out infinite;
}
@keyframes mic-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.form-field label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.5;
}

.optional {
  font-weight: 400;
  color: var(--text-light);
  font-size: .8125rem;
}

.form-field textarea,
.form-field input[type="email"] {
  font-family: inherit;
  font-size: 1.0625rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  resize: vertical;
  outline: none;
  transition: border-color .15s;
  line-height: 1.6;
}
.form-field textarea:focus,
.form-field input[type="email"]:focus {
  border-color: var(--primary);
}
.form-field textarea::placeholder,
.form-field input::placeholder {
  color: var(--text-light);
}
.form-field input[type="email"] { resize: none; }

.field-note {
  font-size: .78125rem;
  color: var(--text-light);
  font-style: italic;
}

.form-submit {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.submit-note {
  font-size: 0.8125rem;
  color: var(--text-light);
  font-style: italic;
}

/* Success state */
.form-success {
  max-width: 540px;
  text-align: center;
  padding: 56px 32px;
  background: var(--primary-pale);
  border-radius: 16px;
  border: 1px solid rgba(61,107,94,.2);
}
.success-icon {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}
.form-success h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.form-success p {
  font-size: .9375rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}
.form-success p:last-child { margin-bottom: 0; }

/* ─── Contact Nudge ─────────────────────────────────────────────── */
.contact-nudge {
  padding: 64px 0;
  background: #2a3f38;
}
.contact-nudge-text {
  text-align: center;
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}
.contact-nudge-text .brand {
  color: rgba(255, 255, 255, 0.95);
}
.contact-nudge-link {
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ─── Footer ───────────────────────────────────────────────────── */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border-soft);
  background: var(--surface);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-logo {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}
.footer-copy {
  font-size: .78125rem;
  color: var(--text-light);
}
.footer-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  color: var(--text-muted);
  transition: color .2s;
  display: flex;
  align-items: center;
}
.footer-social a:hover {
  color: var(--primary);
}

/* ─── Responsive (tablet) ──────────────────────────────────────── */
@media (max-width: 768px) {
  .vision-stats { grid-template-columns: repeat(2, 1fr); }
  .vision-cta-btns .btn { padding: 13px 22px; }
}

/* ─── Responsive (base) ────────────────────────────────────────── */
@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .hero-headline { padding: 64px 0 52px; }
  .mental-load, .founder, .share, .enterprise { padding: 72px 0; }
  .hero-story-cta { padding: 52px 20px 60px; }

  /* Novelty block */
  .novelty-block-wrap { padding: 36px 0; }
  .novelty-block { padding: 18px 20px; }

  /* Vision section */
  .vision-stats { grid-template-columns: 1fr; }
  .vision-quote { padding: 20px 20px; }
  .vision-quote p { font-size: 1rem; }
  .vision-manifesto-question { font-size: 1.1rem; }
  .vision-cta-btns { flex-direction: column; align-items: center; }

  /* Caregiver profiles */
  .caregiver-profile { grid-template-columns: 1fr; gap: 6px; }

  /* Form */
  .share-intro { font-size: 1rem; }
}

/* ─── Phone ─────────────────────────────────────────────────────── */

.demo-phone {
  width: 250px;
  height: 540px;
  background: #0d0d0d;
  border-radius: 46px;
  padding: 14px;
  box-shadow:
    0 0 0 1px #333,
    0 0 0 2px #111,
    0 40px 100px rgba(0,0,0,.6),
    inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
  flex-shrink: 0;
}

.phone-island {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #0d0d0d;
  border-radius: 12px;
  z-index: 20;
}

.phone-screen-area {
  width: 100%;
  height: 100%;
  background: #faf8f4;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}

/* ── App screens ───────────────────────────────────────────────── */
.app-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
  overflow: hidden;
}
.app-screen.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Top bar */
.as-topbar {
  padding: 28px 14px 6px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  font-size: 9px;
  font-weight: 600;
  flex-shrink: 0;
}
.as-topbar > *:last-child { text-align: right; }
.as-topbar.green {
  background: var(--primary);
  background-image:
    radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 10px 10px, 5px 5px;
  background-position: 0 0, 5px 5px;
  color: rgba(255,255,255,.8);
}
.as-topbar.light { background: #fff; color: var(--text-muted); border-bottom: 1px solid var(--border-soft); }
.as-time { font-variant-numeric: tabular-nums; }
.as-app-label { font-size: 10px; font-weight: 600; color: inherit; }
.as-icons { letter-spacing: -2px; opacity: .6; }
.as-saved { font-size: 9px; color: rgba(255,255,255,.7); font-weight: 600; }
.as-add { font-size: 14px; color: var(--primary); font-weight: 400; line-height: 1; }

/* Green header (dashboard) */
.as-header.green {
  background: var(--primary);
  padding: 8px 14px 16px;
  flex-shrink: 0;
}
.as-greeting {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.as-context {
  font-size: 9px;
  color: rgba(255,255,255,.65);
  margin-top: 2px;
}

/* Body */
.as-body {
  flex: 1;
  padding: 12px 12px 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.as-section-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 2px;
}

/* Dashboard cards */
.as-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.as-card.muted { background: var(--bg); }
.as-card-left { display: flex; align-items: center; gap: 8px; }
.as-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.as-dot.blue   { background: #3b7dd8; }
.as-dot.green  { background: var(--primary); }
.as-dot.muted  { background: var(--text-light); }
.as-card-title { font-size: 10px; font-weight: 600; color: var(--text); line-height: 1.2; }
.as-card-sub   { font-size: 8.5px; color: var(--text-muted); margin-top: 1px; }
.as-card-arrow { font-size: 13px; color: var(--text-light); }

/* Tab bar */
.as-tabbar {
  display: flex;
  background: #fff;
  border-top: 1px solid var(--border-soft);
  padding: 8px 0 10px;
  margin-top: auto;
  flex-shrink: 0;
}
.as-tab {
  flex: 1;
  text-align: center;
  font-size: 8px;
  font-weight: 500;
  color: var(--text-light);
}
.as-tab.active { color: var(--primary); font-weight: 700; }

/* Journal screen */
.journal-body {
  padding: 16px 14px 0;
  gap: 0 !important;
}
.as-journal-prompt {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.as-journal-hint {
  font-size: 9px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.as-mic-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 4px 0 16px;
}
.as-mic-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(61,107,94,.4);
  margin-bottom: 7px;
}
.as-mic-label { font-size: 8.5px; color: var(--text-muted); }
.as-or {
  font-size: 8px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 8px;
}
.as-fake-input {
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 9px;
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 14px;
}
.as-recent-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 6px;
}
.as-recent-card {
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 8px 10px;
}
.as-recent-time { font-size: 8px; color: var(--text-light); margin-bottom: 3px; }
.as-recent-text { font-size: 9px; color: var(--text-muted); font-style: italic; line-height: 1.4; }

/* Extracted records screen */
.as-extracted-header {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.as-extract-card {
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  padding: 10px 11px;
  margin-bottom: 7px;
}
.as-etag {
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 6px;
}
.as-etag.vitals  { background: var(--vitals-bg);  color: var(--vitals-fg); }
.as-etag.meds    { background: var(--meds-bg);    color: var(--meds-fg); }
.as-etag.history { background: var(--history-bg); color: var(--history-fg); }
.as-eval  { font-size: 13px; font-weight: 700; color: var(--text); letter-spacing: -.02em; line-height: 1; margin-bottom: 3px; }
.as-edesc { font-size: 8.5px; color: var(--text-muted); }
.as-note-intact {
  font-size: 8px;
  color: var(--text-light);
  font-style: italic;
  text-align: center;
  margin-top: 4px;
}

/* Care team screen */
.as-team-context {
  font-size: 9px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 500;
}
.as-member {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-soft);
}
.as-member:last-of-type { border-bottom: none; }
.as-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.as-member-info { flex: 1; }
.as-member-name { font-size: 10px; font-weight: 600; color: var(--text); }
.as-member-role { font-size: 8px; color: var(--text-muted); margin-top: 1px; }
.as-you-badge {
  font-size: 7.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-pale);
  padding: 2px 7px;
  border-radius: 20px;
}
.as-team-note {
  font-size: 8.5px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 10px;
  line-height: 1.5;
}

/* ── Hero Animation ─────────────────────────────────────────────── */
.hero-anim {
  position: relative;
}

.anim-viewport {
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #2a3f38;
}
/* Section label — sits in flex flow just above the step caption */
.anim-section-label {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.12);
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-bottom: 22px;
}
.anim-step-header {
  position: relative;
  width: 100%;
  max-width: 640px;
  height: 60px;
  text-align: center;
  padding: 0 28px;
  flex-shrink: 0;
  margin-bottom: 20px;
}
.anim-step-header .step-lbl {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(255,255,255,.95);
  letter-spacing: -.02em;
  line-height: 1.35;
}
.anim-stage {
  display: grid;
  grid-template-columns: 1fr 56px auto 56px 1fr;
  gap: 0;
  align-items: center;
  width: 100%;
  max-width: 1040px;
  padding: 0 28px;
}
.anim-inputs-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.anim-phone-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.anim-outputs-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

/* Step labels (used in .anim-step-header) */
.step-lbl {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .35s, transform .35s;
}
.step-lbl.active { opacity: 1; transform: translateY(0); }

/* Column headers (unstructured inputs / structured outputs) */
.anim-col-header {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  width: 230px;
  text-align: right;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,255,255,.2);
  opacity: 0;
  transition: opacity .4s;
}
.anim-col-header.visible { opacity: 1; }
.anim-col-header-right {
  width: 200px;
  text-align: left;
}

/* Step dots below phone */
.anim-dots { display: flex; gap: 7px; }
.anim-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--border);
  transition: background .3s, transform .3s;
}
.anim-dot.active { background: var(--primary); transform: scale(1.3); }

/* Connectors (cols 2 & 4) */
.conn-line-wrap {
  display: flex;
  align-items: center;
  gap: 3px;
  opacity: 0;
  transition: opacity .4s;
  position: relative;
}
.conn-line-wrap.visible { opacity: 1; }

/* Desktop: step-4 Q&A cards centred vertically in their columns, next to the phone */
@media (min-width: 1025px) {
  .anim-inputs-col {
    position: relative;
    align-self: stretch;
  }
  .anim-outputs-col {
    position: relative;
    align-self: stretch;
  }
  /* Fixed px centres on the 540px-tall phone; transform pulls up by half card height */
  .anim-inputs-col .inp-card[data-step-min="4"] {
    position: absolute;
    top: 270px;
    right: 0;
    transform: translateY(-50%);
    transition: opacity 0.4s;
  }
  .anim-outputs-col .out-card[data-step-min="4"] {
    position: absolute;
    top: 270px;
    left: 0;
    transform: translateY(-50%);
    transition: opacity 0.4s;
  }
}
.conn-line {
  flex: 1;
  height: 1.5px;
  background: repeating-linear-gradient(90deg,
    rgba(255,255,255,.2) 0, rgba(255,255,255,.2) 4px,
    transparent 4px, transparent 8px);
  position: relative;
  min-width: 20px;
}
.conn-line-wrap.visible .conn-line::after {
  content: '';
  position: absolute;
  width: 7px; height: 7px;
  background: var(--primary);
  border-radius: 50%;
  top: -3px;
  animation: dot-flow 1.8s linear infinite;
}
@keyframes dot-flow {
  from { left: 0; opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: 1; }
  to   { left: calc(100% - 7px); opacity: 0; }
}
.conn-arrow {
  font-size: 1.2rem;
  color: var(--primary);
  line-height: 1;
}

/* Input cards */
.inp-card {
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 230px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity .4s, transform .4s;
}
.inp-card.visible { opacity: 1; transform: translateX(0); }
.inp-header {
  display: flex; align-items: center; gap: 7px; margin-bottom: 9px;
}
.inp-type-icon { color: var(--primary); display: flex; align-items: center; flex-shrink: 0; }
.inp-type { font-size: .75rem; font-weight: 700; color: var(--text); flex: 1; }
.inp-duration { font-size: .7rem; color: var(--text-light); }
.inp-plain, .inp-annot {
  font-size: .8125rem; color: var(--text-muted); font-style: italic; line-height: 1.6;
}
.inp-annot { display: none; }
.inp-card.annotated .inp-plain { display: none; }
.inp-card.annotated .inp-annot { display: block; }
mark.hl-v { background: var(--vitals-bg); color: var(--vitals-fg); border-radius: 3px; padding: 1px 3px; font-style: normal; }
mark.hl-m { background: var(--meds-bg);   color: var(--meds-fg);   border-radius: 3px; padding: 1px 3px; font-style: normal; }
mark.hl-t { background: var(--history-bg); color: var(--history-fg); border-radius: 3px; padding: 1px 3px; font-style: normal; }
.inp-footer {
  margin-top: 8px; padding-top: 7px;
  border-top: 1px solid var(--border-soft);
  font-size: .7rem; color: var(--text-light);
}

/* Output cards */
.out-card {
  background: var(--surface);
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 10px 12px;
  width: 200px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .4s, transform .4s;
}
.out-card.visible { opacity: 1; transform: translateX(0); }
.oc-header {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-bottom: 8px; padding-bottom: 7px;
  border-bottom: 1px solid var(--border-soft);
}
.oc-icon { font-size: 13px; }
.oc-title { flex: 1; font-size: .75rem; font-weight: 700; color: var(--text); }
.oc-badge {
  font-size: .6rem; font-weight: 700; padding: 2px 6px; border-radius: 20px;
}
.oc-badge.new     { background: var(--primary-pale); color: var(--primary); }
.oc-badge.updated { background: var(--meds-bg); color: var(--meds-fg); }
.oc-body { display: flex; flex-direction: column; gap: 5px; }

/* Vitals bar chart */
.oc-bars {
  display: flex; align-items: flex-end; gap: 4px; height: 34px;
}
.oc-bar { flex: 1; background: var(--vitals-bg); border-radius: 3px 3px 0 0; }
.oc-bar.new-bar { background: var(--vitals-fg); }
.oc-val { font-size: .75rem; font-weight: 700; color: var(--text); }
.trend-up { color: #c0392b; font-size: .7rem; }

/* Meds list */
.oc-med-row {
  font-size: .75rem; color: var(--text);
  padding: 3px 0;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border-soft);
}
.oc-med-row:last-child { border-bottom: none; }
.oc-med-row.new-med { font-weight: 600; }
.oc-med-row.old-med { color: var(--text-light); text-decoration: line-through; }
.new-label      { font-size: .65rem; font-weight: 700; background: var(--primary-pale); color: var(--primary); padding: 1px 5px; border-radius: 10px; }
.archived-label { font-size: .65rem; color: var(--text-light); background: var(--bg); padding: 1px 5px; border-radius: 10px; }

/* Calendar */
.oc-cal-title { font-size: .75rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.oc-cal-sub   { font-size: .7rem; color: var(--text-muted); }

/* Scroll triggers */
.anim-triggers { pointer-events: none; }
.anim-trigger  { height: 65vh; visibility: hidden; }
.anim-exit-buffer { height: 80vh; visibility: hidden; pointer-events: none; }

/* Phone screen 1: Recording */
.as-rec-body {
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  padding-top: 16px !important;
}
.as-mic-pulse-wrap {
  position: relative;
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
}
.as-mic-pulse-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  border: 2px solid rgba(61,107,94,.35);
  animation: mic-ring-pulse 2s ease-out infinite;
}
@keyframes mic-ring-pulse {
  0%   { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.5); opacity: 0; }
}
.as-mic-pulse-btn {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(61,107,94,.5);
  position: relative; z-index: 1;
}
.as-waveform {
  display: flex; align-items: center; gap: 3px; height: 28px;
}
.wv-bar {
  width: 3px; background: var(--primary); border-radius: 2px; opacity: .75;
  animation: wave-anim 1.2s ease-in-out infinite;
}
.wv-bar:nth-child(2)  { animation-delay: .12s; }
.wv-bar:nth-child(3)  { animation-delay: .24s; }
.wv-bar:nth-child(4)  { animation-delay: .08s; }
.wv-bar:nth-child(5)  { animation-delay: .32s; }
.wv-bar:nth-child(6)  { animation-delay: .16s; }
.wv-bar:nth-child(7)  { animation-delay: .28s; }
.wv-bar:nth-child(8)  { animation-delay: .04s; }
.wv-bar:nth-child(9)  { animation-delay: .20s; }
.wv-bar:nth-child(10) { animation-delay: .36s; }
@keyframes wave-anim {
  0%, 100% { height: 4px; }
  50%       { height: 20px; }
}
.as-transcript-preview {
  font-size: 9.5px; color: var(--text-muted); font-style: italic;
  text-align: center; line-height: 1.5; padding: 0 10px;
}

/* Phone screen 2: Annotated journal */
.as-jnl-meta { font-size: 8px; color: var(--text-light); margin-bottom: 7px; }
.as-jnl-text {
  font-size: 10.5px; font-style: italic; line-height: 1.7; color: var(--text);
  padding: 9px 10px; background: #fff;
  border: 1px solid var(--border-soft); border-radius: 8px; margin-bottom: 10px;
}
.hl-v { background: var(--vitals-bg); color: var(--vitals-fg); border-radius: 3px; padding: 1px 2px; }
.hl-m { background: var(--meds-bg);   color: var(--meds-fg);   border-radius: 3px; padding: 1px 2px; }
.hl-t { background: var(--history-bg); color: var(--history-fg); border-radius: 3px; padding: 1px 2px; }
.hl-r { background: #dbeafe; color: #1d4ed8; border-radius: 3px; padding: 1px 2px; }
.as-jnl-extracts { margin-bottom: 6px; }
.as-jnl-ext-label {
  font-size: 7.5px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-light); margin-bottom: 5px;
}
.as-jnl-pills { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.as-pill {
  font-size: 7.5px; font-weight: 600; padding: 2px 7px; border-radius: 20px;
}
.as-pill.vitals     { background: var(--vitals-bg); color: var(--vitals-fg); }
.as-pill.meds       { background: var(--meds-bg);   color: var(--meds-fg); }
.as-pill.task       { background: var(--history-bg); color: var(--history-fg); }
.as-pill.recurring  { background: #dbeafe; color: #1d4ed8; }
.as-jnl-preserved { font-size: 8px; color: var(--text-light); font-style: italic; }
.as-jnl-ext-sublabel { font-size: 7px; color: var(--text-light); margin-top: 6px; line-height: 1.4; }

/* Phone screen 3: Records updated */
.as-update-row { margin-bottom: 6px; }
.as-update-label {
  font-size: 8px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--text-light);
}
.as-update-item {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--border-soft);
  border-radius: 10px; padding: 7px 9px; margin-bottom: 6px;
}
.as-ui-icon { font-size: 14px; flex-shrink: 0; }
.as-ui-info { flex: 1; }
.as-ui-title { font-size: 9.5px; font-weight: 600; color: var(--text); line-height: 1.2; }
.as-ui-val   { font-size: 8px; color: var(--text-muted); margin-top: 1px; }
.as-ui-badge {
  font-size: 7.5px; font-weight: 700; padding: 2px 5px; border-radius: 20px;
}
.as-ui-badge.new { background: var(--primary-pale); color: var(--primary); }
.as-source-note {
  font-size: 8px; color: var(--primary); font-style: italic;
  margin-top: 4px; text-align: center;
}
.as-team-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 9px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}
.as-team-label {
  font-size: 7.5px;
  color: var(--text-light);
  flex: 1;
}
.as-team-avs {
  display: flex;
  gap: 2px;
}
.as-team-av {
  width: 16px; height: 16px;
  border-radius: 50%;
  color: #fff;
  font-size: 7px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid #fff;
  margin-left: -4px;
}
.as-team-avs .as-team-av:first-child { margin-left: 0; }

/* ── Responsive (animation) ─────────────────────────────────────── */
@media (max-width: 900px) {
  .anim-stage {
    grid-template-columns: 1fr 40px auto 40px 1fr;
  }
  .inp-card { width: 180px; }
  .out-card { width: 160px; }
}

/* Nav wrapper (prev/next + dots) */
.anim-nav { display: flex; align-items: center; gap: 14px; }
.anim-nav-btn {
  display: none; /* shown only on mobile */
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.9);
  font-size: 1.6rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .2s, opacity .2s;
}
.anim-nav-btn:disabled { opacity: 0.2; cursor: default; }
.anim-nav-btn:not(:disabled):hover { background: rgba(255,255,255,.18); }

/* ── Mobile carousel (≤ 1024px): static panel with overlapping cards ── */
@media (max-width: 1024px) {
  .anim-triggers { display: none; }

  .anim-viewport {
    position: static;
    height: auto;
    overflow: visible;
    padding: 24px 12px 32px;
  }

  .anim-section-label { margin-bottom: 10px; }

  .anim-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    position: relative;
  }

  .anim-phone-col { position: relative; z-index: 1; }

  .conn-line-wrap { display: none; }

  /* Col-headers: shown beside the phone, above their respective cards */
  .anim-inputs-col .anim-col-header {
    position: absolute;
    top: 0;
    left: max(0px, calc(50% - 258px));
    width: 155px;
    text-align: left;
    border-bottom: none;
  }
  .anim-outputs-col .anim-col-header {
    position: absolute;
    top: 0;
    right: max(0px, calc(50% - 253px));
    width: 150px;
    text-align: right;
    border-bottom: none;
  }

  /*
   * Scale the phone down so the full panel fits in a typical mobile viewport.
   * transform-origin: top center keeps the phone top pinned.
   * margin-bottom compensates the freed layout space: -(540 × 0.18) = -97px
   * so the nav buttons sit snug below the visual phone bottom.
   * Visual phone size after scale: 250×0.82=205px wide, 540×0.82=443px tall.
   */
  .demo-phone {
    transform: scale(0.82);
    transform-origin: top center;
    margin-bottom: -97px;
  }

  /* Overlay cols cover the full stage (= phone col layout area) */
  .anim-inputs-col,
  .anim-outputs-col {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    gap: 0;
    margin: 0;
  }

  /* No horizontal slide-in on mobile */
  .inp-card, .out-card { transform: none !important; }

  /* Hide the "updated" badge on the medications card — too wide for phone overlay */
  .oc-badge.updated { display: none; }

  /*
   * Responsive horizontal positioning:
   *   max(0px, 50% − half_visual_phone − card_width)
   * Visual phone = 205px → half = 102.5px ≈ 103px
   * Input  155px: 103 + 155 = 258  →  left: max(0px, calc(50% - 258px))
   * Output 150px: 103 + 150 = 253  → right: max(0px, calc(50% - 253px))
   * On narrow phones the result is ≤ 0 → clamped to viewport edge (overlapping phone).
   * On wide tablets the result is > 0 → card sits just outside the phone.
   */

  /* Step 1 — voice note: top-left */
  .anim-inputs-col .inp-card[data-step-min="1"] {
    position: absolute;
    top: 20px;
    left: max(0px, calc(50% - 258px));
    width: 155px;
  }

  /* Step 2 — doctor's note: bottom-left */
  .anim-inputs-col .inp-card[data-step-min="2"] {
    position: absolute;
    top: 270px;
    left: max(0px, calc(50% - 258px));
    width: 155px;
  }

  /* Step 3 — output cards: right side, evenly spaced down the phone */
  /* nth-child: 1=header, 2=Vitals, 3=Medications, 4=Calendar, 5=Q&A */
  .anim-outputs-col .out-card:nth-child(2) {
    position: absolute;
    top: 25px;
    right: max(0px, calc(50% - 253px));
    width: 150px;
  }
  .anim-outputs-col .out-card:nth-child(3) {
    position: absolute;
    top: 160px;
    right: max(0px, calc(50% - 253px));
    width: 150px;
  }
  .anim-outputs-col .out-card:nth-child(4) {
    position: absolute;
    top: 300px;
    right: max(0px, calc(50% - 253px));
    width: 150px;
  }
  /* Step 4 — Q&A out-card: centred with phone middle (~221px visual = 190px overlay) */
  .anim-outputs-col .out-card:nth-child(5) {
    position: absolute;
    top: 190px;
    right: max(0px, calc(50% - 253px));
    width: 150px;
  }
  /* Step 4 — Q&A inp-card: same vertical alignment as out-card */
  .anim-inputs-col .inp-card[data-step-min="4"] {
    position: absolute;
    top: 190px;
    left: max(0px, calc(50% - 258px));
    width: 150px;
  }

  /* Step caption: fixed height so the phone never jumps between steps */
  .anim-step-header {
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    overflow: hidden;
  }
  .anim-step-header .step-lbl {
    position: static;
    display: none;
    opacity: 1;
    transform: none;
    transition: none;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.45;
  }
  .anim-step-header .step-lbl.active { display: block; }

  .anim-nav-btn { display: flex; }
  .anim-dots { gap: 10px; }
  .anim-dot { width: 9px; height: 9px; cursor: pointer; }
}

/* ── Tablet overrides (600–1024px): wider cards with a small gap from the phone ── */
@media (min-width: 600px) and (max-width: 1024px) {
  /*
   * 190px cards, 16px gap from phone edge:
   *   103 + 190 + 16 = 309  →  max(0px, calc(50% - 309px))
   * At 768px: result = 59px → card right edge is ~16px clear of phone.
   * At 600px: result = 0px → flush to viewport edge, overlapping phone.
   */
  .anim-inputs-col .inp-card[data-step-min="1"],
  .anim-inputs-col .inp-card[data-step-min="2"],
  .anim-inputs-col .inp-card[data-step-min="4"] {
    left: max(0px, calc(50% - 309px));
    width: 190px;
  }
  .anim-outputs-col .out-card:nth-child(2),
  .anim-outputs-col .out-card:nth-child(3),
  .anim-outputs-col .out-card:nth-child(4),
  .anim-outputs-col .out-card:nth-child(5) {
    right: max(0px, calc(50% - 309px));
    width: 190px;
  }
  /* Col-headers: wider on tablet */
  .anim-inputs-col .anim-col-header {
    left: max(0px, calc(50% - 309px));
    width: 190px;
  }
  .anim-outputs-col .anim-col-header {
    right: max(0px, calc(50% - 309px));
    width: 190px;
  }
}

/* ─── Phone screen 0: Brand + Recipient ───────────────────────── */
.as-brand-block {
  height: 13%;
  background: var(--primary);
  background-image:
    radial-gradient(circle, rgba(255,255,255,.12) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 10px 10px, 5px 5px;
  background-position: 0 0, 5px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 8px 12px 10px;
  flex-shrink: 0;
  position: relative;
}
.as-brand-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
  line-height: 1;
}
.as-brand-slogan {
  font-size: 6.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  line-height: 1;
}
.as-recip-block {
  flex: 1;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.as-recip-header {
  padding: 9px 12px 8px;
  border-bottom: 1px solid var(--border-soft);
  background: #fff;
}
.as-recip-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.as-recip-chevron { font-size: 9px; color: var(--text-light); }
.as-recip-sub { font-size: 8px; color: var(--text-muted); margin-top: 2px; }
.as-recip-nav {
  flex: 1;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.as-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-bottom: 1px solid var(--border-soft);
}
.as-nav-item:last-child { border-bottom: none; }
.as-nav-ico { font-size: 13px; flex-shrink: 0; width: 18px; text-align: center; }
.as-nav-text { flex: 1; }
.as-nav-label { font-size: 10px; font-weight: 600; color: var(--text); line-height: 1.2; }
.as-nav-section { color: var(--primary); }
.as-nav-sub   { font-size: 8px; color: var(--text-muted); margin-top: 1px; }
.as-nav-arrow { font-size: 12px; color: var(--text-light); flex-shrink: 0; }

/* ─── Dashboard: Journal expanded section ─────────────────────── */
.as-journal-section {
  border-bottom: 1px solid var(--border-soft);
}
.as-nav-expanded {
  background: var(--primary-pale);
}
.as-nav-expanded .as-nav-arrow {
  color: var(--primary);
  font-size: 9px;
}
.as-jnl-week {
  background: var(--bg);
  padding: 0 8px 4px;
}
.as-jnl-entry {
  padding: 5px 6px;
  border-bottom: 1px solid var(--border-soft);
}
.as-jnl-entry:last-child { border-bottom: none; }
.as-jnl-entry-time {
  font-size: 7.5px;
  color: var(--text-light);
  margin-bottom: 2px;
}
.as-jnl-entry-text {
  font-size: 8.5px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dashboard: New entry button */
.as-new-entry-btn {
  margin: 6px 10px 4px;
  background: var(--primary);
  color: #fff;
  font-size: 8.5px;
  font-weight: 600;
  text-align: center;
  padding: 7px 10px;
  border-radius: 8px;
  letter-spacing: .01em;
  cursor: pointer;
}

/* Dashboard: Caregiver profile bar */
.as-caregiver-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-top: 1px solid var(--border-soft);
  background: #fff;
  margin-top: auto;
}
.as-caregiver-ico { font-size: 11px; }
.as-caregiver-name { font-size: 8px; color: var(--text-muted); }

/* Screen 2: compact body to fit both annotated entries */
.as-body-compact {
  gap: 4px !important;
  padding: 8px 10px 0 !important;
}
.as-body-compact .as-jnl-text {
  font-size: 9.5px !important;
  padding: 6px 8px !important;
  margin-bottom: 4px !important;
}
.as-body-compact .as-jnl-meta { margin-bottom: 3px; }
.as-jnl-meta-sep { margin-top: 4px; }

/* ─── Phone screen 0: redesigned section labels ────────────────── */
.as-section-label {
  font-size: 7px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-light);
  margin: 6px 0 3px;
}
.as-section-divider {
  height: 1px;
  background: var(--border-soft);
  margin: 8px 0 6px;
}
.as-jnl-lock-note {
  font-size: 6.5px;
  color: var(--text-light);
  margin: 3px 0 5px;
  line-height: 1.4;
  padding: 0 2px;
}
.as-readonly-badge {
  font-size: 8px;
  opacity: 0.35;
  margin-right: 2px;
  flex-shrink: 0;
}
.as-qa-row {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 4px;
  cursor: pointer;
}
.as-qa-ico { font-size: 10px; flex-shrink: 0; }
.as-qa-row-text {
  flex: 1;
  font-size: 8px;
  color: #1b6a6a;
  font-style: italic;
}

/* ─── Phone screen 4: Q&A chat ─────────────────────────────────── */
.as-chat-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 10px 6px;
  flex: 1;
  overflow-y: auto;
}
.as-chat-msg {
  display: flex;
  flex-direction: column;
}
.as-chat-msg-user { align-items: flex-end; }
.as-chat-msg-ai   { align-items: flex-start; }
.as-chat-bubble {
  max-width: 88%;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 9px;
  line-height: 1.55;
}
.as-chat-bubble-user {
  background: #ffffff;
  color: var(--text);
  border: 1px solid var(--border-soft);
}
.as-chat-bubble-ai {
  background: #1b6a6a;
  color: #ffffff;
}
.as-chat-source {
  font-size: 6.5px;
  color: var(--text-light);
  margin-top: 3px;
  margin-left: 2px;
}
.as-chat-note {
  font-size: 7px;
  color: var(--text-light);
  text-align: center;
  margin: 4px 0;
  line-height: 1.4;
}
.as-chat-input-bar {
  margin-top: auto;
  border: 1px solid var(--border-soft);
  border-radius: 20px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.025);
}
.as-chat-input-placeholder {
  font-size: 8px;
  color: var(--text-light);
  opacity: 0.8;
}

/* ─── Q&A context cards (left/right columns) ────────────────────── */
.qa-card-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── Founder Photo ────────────────────────────────────────────── */
.founder-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}
