/* ==========================================================================
   CuroVault — public website styles
   Palette: calm, trustworthy teal + healing green, warm coral accent.
   Deliberately NOT generic corporate-SaaS blue.
   ========================================================================== */

:root {
  /* ===== Official CuroVault brand tokens (from brand guidelines) ===== */
  --cv-navy: #0D1B3D;      /* main text, dark UI, trust */
  --cv-blue: #1565C0;      /* primary actions / brand blue */
  --cv-teal: #0088A9;      /* accent, secondary actions, ECG */
  --cv-mint: #4CD1A1;      /* positive / health accents, gradient highlight */
  --cv-pale-blue: #E8F4FF; /* soft backgrounds, cards, selected states */
  --cv-slate: #64748B;     /* secondary text */
  --cv-border: #CBD5E1;    /* borders / dividers */
  --cv-white: #FFFFFF;
  --cv-gradient: linear-gradient(135deg, #1565C0 0%, #0088A9 55%, #4CD1A1 100%);
  --cv-shadow: 0 4px 20px rgba(13, 27, 61, 0.08);

  /* Primary scale (navy -> blue -> teal), mapped onto existing var names */
  --teal-900: #0D1B3D;  /* navy — footer, deepest */
  --teal-800: #10275C;
  --teal-700: #0088A9;  /* teal — links, secondary */
  --teal-600: #1565C0;  /* blue — primary buttons/icons */
  --teal-500: #0088A9;  /* teal — focus/accent */
  --teal-100: #CFE7F3;  /* light blue tint */
  --teal-50:  #E8F4FF;  /* pale blue — section tint */

  /* Health / positive (mint family) */
  --green-600: #0E9C73;
  --green-100: #DCF4EA;

  /* Accent (brand teal — CTAs; no off-brand colors) */
  --coral-500: #0088A9;
  --coral-600: #006E88;
  --coral-100: #E8F4FF;

  /* Neutrals (brand) */
  --ink-900: #0D1B3D;  /* text primary — navy */
  --ink-700: #334155;
  --ink-500: #64748B;  /* text secondary — slate */
  --ink-300: #94A3B8;
  --line:    #CBD5E1;  /* light slate border */
  --bg:      #FFFFFF;
  --bg-soft: #F5F9FE;

  --radius: 16px;      /* cards (lg) */
  --radius-sm: 12px;   /* controls (md) */
  --shadow-sm: 0 1px 2px rgba(13, 27, 61, 0.05), 0 2px 8px rgba(13, 27, 61, 0.05);
  --shadow-md: 0 4px 20px rgba(13, 27, 61, 0.08);
  --maxw: 1120px;
  --font: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* --- Reset-ish ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-700);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-700); text-decoration: none; }
a:hover { color: var(--teal-600); text-decoration: underline; }

h1, h2, h3, h4 {
  color: var(--ink-900);
  line-height: 1.25;
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 3.6vw, 2.25rem); font-weight: 700; }  /* 30–36px / 700 */
h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); }                    /* 22–28px / 600 */
h3 { font-size: 1.2rem; }                                           /* ~19px / 600 */
p { margin: 0 0 1rem; }

/* --- Layout helpers ----------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: linear-gradient(180deg, var(--teal-50), #ffffff); }
.narrow { max-width: 760px; }
.medium { max-width: 920px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-600);
  margin-bottom: 12px;
}
.lead { font-size: 1.15rem; color: var(--ink-500); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;               /* brand: 10–12px */
  font-weight: 600;                  /* brand: buttons 600 */
  font-size: 0.95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--teal-700); color: #fff; box-shadow: var(--shadow-md); }
.btn-ghost { background: #fff; color: var(--teal-700); border-color: var(--line); }
.btn-ghost:hover { color: var(--teal-700); border-color: var(--teal-500); }
/* Warm accent button — used only at key "reach a human" moments. */
.btn-accent { background: var(--coral-500); color: #fff; box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--coral-600); color: #fff; box-shadow: var(--shadow-md); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }

/* --- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.25rem; color: var(--ink-900); letter-spacing: -0.02em; }
.footer-logo-icon { width: 40px; height: 40px; border-radius: 10px; display: block; background: #fff; }
.brand:hover { text-decoration: none; color: var(--ink-900); }
.brand-full { height: 60px; width: auto; display: block; }
@media (max-width: 560px) { .brand-full { height: 46px; } }
.brand-icon { height: 46px; width: auto; display: block; }
.brand-lockup { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand-logo { height: 26px; width: auto; display: block; }
.brand-slogan { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--cv-teal); white-space: nowrap; }
@media (max-width: 620px) { .brand-slogan { display: none; } }
@media (max-width: 560px) { .brand-icon { height: 38px; } .brand-logo { height: 22px; } }
.brand .logo-mark {
  width: 32px; height: 32px; flex: 0 0 32px;
  display: grid; place-items: center;
  background: var(--cv-gradient);
  border-radius: 9px; color: #fff;
}
.brand .logo-mark svg { width: 18px; height: 18px; }
.brand span b { color: var(--teal-600); }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-700); font-weight: 500; font-size: 0.98rem; }
.nav-links a:hover { color: var(--teal-600); text-decoration: none; }
.nav-links a.active { color: var(--teal-700); font-weight: 600; }
.nav-login { color: var(--cv-blue) !important; font-weight: 600; }
.nav-login:hover { color: var(--cv-navy) !important; text-decoration: none; }
.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; padding: 10px;
  color: var(--ink-900);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* --- Hero --------------------------------------------------------------- */
.hero { padding: 84px 0 72px; background: linear-gradient(180deg, var(--teal-50) 0%, #ffffff 78%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero-tagline { color: var(--cv-teal); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em; margin: 0 0 14px; }
.hero .lead { margin-bottom: 28px; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 18px; font-size: 0.9rem; color: var(--ink-300); }

/* App mockup shown in hero / feature areas */
.mockup {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-md); overflow: hidden;
}
.mockup-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.mockup-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cfdad8; display: inline-block; }
.mockup-body { padding: 18px; display: grid; gap: 12px; }
.mockup-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.mockup-ic { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 9px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-600); }
.mockup-ic svg { width: 20px; height: 20px; }
.mockup-line { height: 9px; border-radius: 5px; background: #e8f0ee; }
.mockup-line.short { width: 45%; }
.mockup-line.mid { width: 70%; margin-top: 7px; background: #eef3f1; }
.mockup-badge { margin-left: auto; font-size: 0.72rem; font-weight: 700; color: var(--green-600); background: var(--green-100); padding: 4px 10px; border-radius: 999px; }

/* --- Feature cards ------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 40px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.card .card-ic {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal-50), var(--green-100));
  color: var(--teal-600); margin-bottom: 16px;
}
.card .card-ic svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.badge-soon { display: inline-block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--cv-teal); background: var(--cv-pale-blue); border: 1px solid var(--teal-100); padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; white-space: nowrap; }
.join-badge { display: inline-block; margin-top: 14px; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 4px 11px; border-radius: 999px; }
.join-badge.live { background: var(--green-100); color: var(--green-600); }
.join-badge.soon { background: var(--cv-pale-blue); color: var(--cv-teal); border: 1px solid var(--teal-100); }
.card p { margin: 0; color: var(--ink-500); font-size: 0.97rem; }

/* --- Steps -------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin-top: 40px; counter-reset: step; }
.step { position: relative; padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step .num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--teal-600); color: #fff; font-weight: 700; margin-bottom: 14px;
}
.step h3 { font-size: 1.05rem; }
.step p { margin: 0; color: var(--ink-500); font-size: 0.95rem; }

/* --- Value / trust band ------------------------------------------------- */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 36px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.trust-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.trust-item .tick {
  flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; margin-top: 2px;
  background: var(--green-100); color: var(--green-600); display: grid; place-items: center;
}
.trust-item .tick svg { width: 15px; height: 15px; }
.trust-item h4 { margin: 0 0 4px; font-size: 1rem; }
.trust-item p { margin: 0; font-size: 0.92rem; color: var(--ink-500); }

/* --- CTA band ----------------------------------------------------------- */
.cta-band { background: var(--cv-gradient); color: #fff; border-radius: 22px; padding: 48px 40px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.92); max-width: 52ch; margin: 0 auto 24px; }
.cta-band .btn-primary { background: #fff; color: var(--cv-blue); }
.cta-band .btn-primary:hover { background: var(--cv-pale-blue); color: var(--cv-navy); }

/* --- Content pages (About/Privacy/Terms) -------------------------------- */
.page-head { padding: 56px 0 20px; background: linear-gradient(180deg, var(--teal-50), #fff); }
.page-head h1 { margin-bottom: 10px; }
.page-head .lead { max-width: 60ch; }
.prose { font-size: 1.02rem; }
.prose h2 { margin-top: 2em; }
.prose h3 { margin-top: 1.6em; color: var(--teal-800); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose .updated { color: var(--ink-300); font-size: 0.92rem; }
.callout {
  background: var(--teal-50); border: 1px solid var(--teal-100); border-left: 4px solid var(--teal-500);
  border-radius: var(--radius-sm); padding: 16px 20px; margin: 24px 0;
}
.callout p:last-child { margin: 0; }

/* Story flow — horizontal 4-step journey (About page) */
.story-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 32px 0 8px; }
.story-flow .story-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow-sm); text-align: center; transition: transform .18s ease, box-shadow .18s ease; }
.story-flow .story-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.story-badge { width: 56px; height: 56px; border-radius: 50%; background: var(--cv-gradient); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; box-shadow: var(--cv-shadow); }
.story-badge svg { width: 28px; height: 28px; }
.story-step .step-tag { display: block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cv-teal); margin-bottom: 6px; }
.story-step h3 { font-size: 1.02rem; margin: 0 0 8px; color: var(--cv-navy); }
.story-step p { margin: 0; font-size: 0.92rem; color: var(--ink-500); line-height: 1.55; }
/* connector arrow between steps (desktop) */
.story-flow .story-step:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -13px; width: 14px; height: 14px; border-top: 3px solid var(--teal-100); border-right: 3px solid var(--teal-100); transform: rotate(45deg); z-index: 1; }
@media (max-width: 880px) { .story-flow { grid-template-columns: 1fr 1fr; } .story-flow .story-step:not(:last-child)::after { display: none; } }
@media (max-width: 520px) { .story-flow { grid-template-columns: 1fr; } }

/* --- Team --------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 40px; }
.member { text-align: center; padding: 32px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.member .avatar {
  width: 104px; height: 104px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center; font-size: 2rem; font-weight: 700; color: #fff;
  background: var(--cv-gradient);
  overflow: hidden;
}
.member .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.member h3 { margin-bottom: 2px; }
.member .role { color: var(--teal-600); font-weight: 600; font-size: 0.95rem; margin-bottom: 12px; }
.member p { color: var(--ink-500); font-size: 0.95rem; margin: 0; }

/* --- Contact ------------------------------------------------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-detail .ic { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 10px; background: var(--teal-50); color: var(--teal-600); display: grid; place-items: center; }
.contact-detail .ic svg { width: 20px; height: 20px; }
.contact-detail h4 { margin: 0 0 2px; font-size: 1rem; }
.contact-detail p { margin: 0; color: var(--ink-500); font-size: 0.95rem; }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 7px; color: var(--ink-700); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  color: var(--ink-900); transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--teal-100);
}
.field textarea { resize: vertical; min-height: 130px; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.form-status { margin-top: 14px; font-size: 0.95rem; border-radius: var(--radius-sm); padding: 0; }
.form-status.show { padding: 12px 16px; }
.form-status.success { background: var(--green-100); color: #1c6b47; }
.form-status.error { background: #fdece8; color: #b23a24; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--teal-900); color: #c7dbd8; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand span { color: #fff; }
.site-footer .brand span b { color: var(--cv-mint); }
.footer-tagline { color: var(--cv-mint); font-size: 1rem; font-weight: 600; letter-spacing: 0.02em; margin: 14px 0 4px; }
.footer-about { color: #9dbcb8; font-size: 0.95rem; max-width: 34ch; margin-top: 6px; }

/* Brand values strip */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { text-align: center; padding: 8px; }
.value-ic {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px;
  display: grid; place-items: center; color: #fff; background: var(--cv-gradient);
  box-shadow: var(--cv-shadow);
}
.value-ic svg { width: 26px; height: 26px; }
.value h3 { font-size: 1.02rem; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.value p { margin: 0; color: var(--ink-500); font-size: 0.92rem; }
@media (max-width: 760px) { .values-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
.footer-col h4 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #b9d3cf; font-size: 0.95rem; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.86rem; color: #8fb0ac; }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero .lead { max-width: none; }
  .hero-visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }

  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .28s ease; z-index: 40;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: none; padding-top: 12px; }
  .nav-links a { display: block; padding: 14px 4px; }
  .nav-cta { margin-left: 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .hero { padding: 52px 0 44px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .phone-demo *, .scan-line, .type-dot { animation: none !important; }
}

/* ==========================================================================
   Product / "See it in action" page
   ========================================================================== */

/* Phone frame */
.phone { width: 240px; max-width: 72vw; aspect-ratio: 9 / 19; background: var(--cv-navy); border-radius: 30px; padding: 9px; box-shadow: var(--shadow-md); margin: 0 auto; }
.phone .screen { position: relative; width: 100%; height: 100%; background: #fff; border-radius: 22px; overflow: hidden; display: flex; flex-direction: column; }
.phone .screen::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 60px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.5); z-index: 5; }
.screen-top { height: 46px; background: var(--cv-gradient); display: flex; align-items: flex-end; padding: 0 14px 8px; color: #fff; font-weight: 600; font-size: 0.82rem; }

/* Demo layout: phone beside caption */
.demo-row { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: center; }
.demo-row.reverse { grid-template-columns: 1fr 260px; }
.demo-row.reverse .demo-phone { order: 2; }
.demo-copy h3 { margin-bottom: 8px; }
.demo-copy p { color: var(--ink-500); margin: 0; }
@media (max-width: 720px) {
  .demo-row, .demo-row.reverse { grid-template-columns: 1fr; gap: 26px; }
  .demo-row.reverse .demo-phone { order: 0; }
  .demo-copy { text-align: center; }
}

/* Homepage video showcase */
.showcase-grid { display: grid; grid-template-columns: 260px 1fr; gap: 44px; align-items: center; }
.showcase-grid .phone .screen { background: #000; }
.showcase-grid .phone .screen video { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.showcase-text h2 { margin-top: 6px; }
.showcase-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.showcase-mini .shot { aspect-ratio: 9 / 16; }
@media (max-width: 760px) {
  .showcase-grid { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .showcase-mini { grid-template-columns: 1fr 1fr; }
}

/* Distant parenting care */
.care-parents { display: grid; grid-template-columns: 1.05fr 1fr; gap: 46px; align-items: center; margin-top: 12px; }
.care-visual svg { width: 100%; height: auto; display: block; border-radius: 20px; box-shadow: var(--shadow-sm); }
.care-points { display: grid; gap: 16px; }
.care-item { display: flex; gap: 15px; align-items: flex-start; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease; }
.care-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.care-item .ci-ic { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px; display: grid; place-items: center; background: var(--cv-pale-blue); color: var(--cv-primary); }
.care-item .ci-ic svg { width: 22px; height: 22px; }
.care-item h4 { margin: 0 0 3px; font-size: 1rem; }
.care-item p { margin: 0; color: var(--ink-500); font-size: 0.92rem; line-height: 1.5; }
@media (max-width: 820px) { .care-parents { grid-template-columns: 1fr; gap: 26px; } }
@keyframes careFlow { to { stroke-dashoffset: -28; } }
.care-arc { stroke-dasharray: 6 8; animation: careFlow 1.1s linear infinite; }
@keyframes careBell { 0%,100% { transform: rotate(0deg); } 15% { transform: rotate(13deg); } 30% { transform: rotate(-10deg); } 45% { transform: rotate(7deg); } 60% { transform: rotate(-4deg); } }
.care-bell { transform-box: fill-box; transform-origin: center; animation: careBell 2.4s ease-in-out infinite; }
@keyframes carePulse { 0% { opacity: .45; transform: scale(.6); } 70% { opacity: 0; transform: scale(1.9); } 100% { opacity: 0; transform: scale(1.9); } }
.care-pulse { transform-box: fill-box; transform-origin: center; animation: carePulse 2.4s ease-out infinite; }
@media (prefers-reduced-motion: reduce) { .care-arc, .care-bell, .care-pulse { animation: none !important; } }

/* Animated "upload -> AI reads -> organized" demo */
.phone-demo .screen-body { padding: 12px; }
.doc-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; gap: 9px; align-items: flex-start; opacity: 0; transform: translateY(14px); animation: docIn 6s ease-in-out infinite; }
.doc-thumb { width: 34px; height: 42px; border-radius: 5px; background: var(--cv-pale-blue); flex: 0 0 34px; position: relative; overflow: hidden; }
.doc-thumb::after { content: ""; position: absolute; left: 5px; right: 5px; top: 7px; height: 2px; background: var(--teal-100); box-shadow: 0 5px 0 var(--teal-100), 0 10px 0 var(--teal-100), 0 15px 0 var(--teal-100); }
.scan-line { position: absolute; left: 0; right: 0; height: 8px; background: linear-gradient(var(--cv-teal), transparent); opacity: .0; animation: scan 6s ease-in-out infinite; }
.doc-fields { flex: 1; }
.doc-fields .fld { height: 7px; border-radius: 4px; background: #e8f0f6; margin-bottom: 6px; opacity: 0; animation: fldIn 6s ease-in-out infinite; }
.doc-fields .fld.w1 { width: 80%; animation-delay: 2.6s; }
.doc-fields .fld.w2 { width: 60%; animation-delay: 2.9s; }
.doc-fields .fld.w3 { width: 70%; animation-delay: 3.2s; }
.read-badge { margin-top: 10px; display: inline-flex; align-items: center; gap: 5px; font-size: 0.68rem; font-weight: 700; color: var(--green-600); background: var(--green-100); padding: 3px 9px; border-radius: 999px; opacity: 0; animation: badgeIn 6s ease-in-out infinite; animation-delay: 3.6s; }
@keyframes docIn { 0%,8% { opacity: 0; transform: translateY(14px); } 16%,92% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; } }
@keyframes scan { 0%,18% { opacity: 0; top: 0; } 22% { opacity: .9; } 40% { opacity: .9; top: 90%; } 44%,100% { opacity: 0; } }
@keyframes fldIn { 0%,40% { opacity: 0; } 55%,92% { opacity: 1; } 100% { opacity: 1; } }
@keyframes badgeIn { 0%,58% { opacity: 0; transform: scale(.8); } 66%,92% { opacity: 1; transform: scale(1); } 100% { opacity: 1; } }

/* Animated Curo AI chat demo */
.chat { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 80%; padding: 8px 11px; border-radius: 12px; font-size: 0.72rem; line-height: 1.35; }
.bubble.you { align-self: flex-end; background: var(--cv-blue); color: #fff; border-bottom-right-radius: 4px; opacity: 0; animation: bIn 5s ease-in-out infinite; }
.bubble.ai { align-self: flex-start; background: var(--cv-pale-blue); color: var(--cv-navy); border-bottom-left-radius: 4px; opacity: 0; animation: bIn 5s ease-in-out infinite; animation-delay: 1.4s; }
.bubble.you { animation-delay: .3s; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 9px 12px; background: var(--cv-pale-blue); border-radius: 12px; opacity: 0; animation: typeShow 5s ease-in-out infinite; animation-delay: .9s; }
.type-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500); animation: blink 1s infinite; }
.type-dot:nth-child(2) { animation-delay: .2s; } .type-dot:nth-child(3) { animation-delay: .4s; }
@keyframes bIn { 0%,4% { opacity: 0; transform: translateY(8px); } 12%,94% { opacity: 1; transform: translateY(0); } 100% { opacity: 1; } }
@keyframes typeShow { 0%,16% { opacity: 0; } 20%,26% { opacity: 1; } 30%,100% { opacity: 0; } }
@keyframes blink { 0%,100% { opacity: .3; } 50% { opacity: 1; } }

/* Records-list animated demo (upload -> read -> flagged) */
.screen-top { gap: 6px; }
.screen-logo { width: 18px; height: 18px; border-radius: 4px; background: #fff; flex: 0 0 18px; }
.rec-list { padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.rec, .rec-new .phase { display: flex; align-items: center; gap: 8px; }
.rec { border: 1px solid var(--line); border-radius: 9px; padding: 7px 8px; }
.rec-ic { width: 26px; height: 26px; border-radius: 6px; background: var(--cv-pale-blue); color: var(--cv-teal); display: grid; place-items: center; flex: 0 0 26px; }
.rec-ic svg { width: 14px; height: 14px; }
.rec-ic.flagic { background: #fde7e7; color: #d23b3b; }
.rec-main { flex: 1; min-width: 0; }
.rec-main .t { font-weight: 600; color: var(--cv-navy); font-size: 0.68rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-main .s { color: var(--ink-500); font-size: 0.6rem; }
.rec-main .vals { color: var(--cv-teal); font-weight: 600; margin-top: 1px; }
.rec-badge { font-size: 0.55rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; white-space: nowrap; flex: 0 0 auto; }
.rec-badge.ok { background: var(--green-100); color: var(--green-600); }
.rec-badge.flag { background: #fde7e7; color: #d23b3b; }
.bar { height: 4px; border-radius: 3px; background: #e8f0f6; margin-top: 5px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--cv-gradient); border-radius: 3px; animation: barFill 8s ease-in-out infinite; }
.rec-new { position: relative; height: 46px; border: 1px solid var(--line); border-radius: 9px; padding: 7px 8px; overflow: hidden; }
.rec-new .phase { position: absolute; inset: 7px 8px; opacity: 0; }
.rec-new .up { animation: phUp 8s ease-in-out infinite; }
.rec-new .read { animation: phRead 8s ease-in-out infinite; }
.rec-new .done { animation: phDone 8s ease-in-out infinite; }
.rec-ic.scan { position: relative; overflow: hidden; }
.rec-ic.scan::after { content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 6px; background: rgba(255,255,255,.65); animation: scanY 1.1s linear infinite; }
@keyframes barFill { 0% { width: 0; } 24% { width: 100%; } 100% { width: 100%; } }
@keyframes phUp   { 0% { opacity: 0; } 3%,25% { opacity: 1; } 29%,100% { opacity: 0; } }
@keyframes phRead { 0%,29% { opacity: 0; } 33%,50% { opacity: 1; } 54%,100% { opacity: 0; } }
@keyframes phDone { 0%,54% { opacity: 0; } 60%,96% { opacity: 1; } 100% { opacity: 0; } }
@keyframes scanY  { 0% { top: -6px; } 100% { top: 28px; } }

/* Screenshot gallery — placeholders auto-upgrade when real images are added */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; margin-top: 8px; }
.shot { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--cv-pale-blue); box-shadow: var(--shadow-sm); aspect-ratio: 9 / 16; transition: transform .18s ease, box-shadow .18s ease; }

/* Phone-framed gallery (How it Works recordings) */
.gallery.phones { grid-template-columns: repeat(3, 1fr); gap: 34px 26px; justify-items: center; max-width: 860px; margin-left: auto; margin-right: auto; }
@media (max-width: 720px) { .gallery.phones { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .gallery.phones { grid-template-columns: 1fr; } }
.phones .shot {
  width: 100%; max-width: 240px;
  aspect-ratio: 9 / 16.4;
  background: var(--cv-navy);
  border: none;
  border-radius: 32px;
  box-shadow: 0 14px 34px rgba(13,27,61,.20);
  overflow: hidden;
}
.phones .shot:hover { transform: translateY(-5px); box-shadow: 0 20px 44px rgba(13,27,61,.26); }
.phones .shot .shot-vid,
.phones .shot img,
.phones .shot .shot-ph {
  inset: 9px;
  width: auto; height: auto;
  border-radius: 24px;
}
.phones .shot .shot-vid,
.phones .shot img { object-fit: cover; object-position: top center; }
.phones .shot .shot-cap { left: 9px; right: 9px; bottom: 9px; border-radius: 0 0 24px 24px; padding: 22px 12px 12px; }
/* notch */
.phones .shot::before {
  content: ""; position: absolute; z-index: 4;
  top: 9px; left: 50%; transform: translateX(-50%);
  width: 38%; height: 15px;
  background: var(--cv-navy);
  border-radius: 0 0 13px 13px;
}
.shot:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.shot-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 16px; color: var(--cv-teal); }
.shot-ph svg { width: 34px; height: 34px; opacity: .8; }
.shot-ph b { font-size: 0.9rem; color: var(--cv-navy); }
.shot-ph small { font-size: 0.72rem; color: var(--ink-500); }
.shot-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 22px 12px 10px; font-size: 0.8rem; font-weight: 600; color: #fff; background: linear-gradient(transparent, rgba(13,27,61,.82)); }

/* Screen-recording slots */
.demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 8px; }
.demo-slot { border: 2px dashed var(--cv-border); border-radius: var(--radius); background: var(--bg-soft); aspect-ratio: 16 / 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 18px; color: var(--ink-500); overflow: hidden; }
.demo-slot video { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius) - 4px); }
.demo-slot svg { width: 30px; height: 30px; color: var(--cv-teal); }
.demo-slot b { color: var(--cv-navy); font-size: 0.92rem; }
.demo-slot code { font-size: 0.72rem; background: var(--cv-pale-blue); padding: 2px 6px; border-radius: 5px; color: var(--cv-teal); }

/* ==========================================================================
   Care-journey circular loop (Join page)
   ========================================================================== */
.loop { --r: 148px; position: relative; width: 390px; height: 390px; max-width: 92vw; margin: 8px auto 0; }
.loop-orbit { position: absolute; inset: 42px; border: 2px dashed var(--teal-100); border-radius: 50%; animation: loopspin 44s linear infinite; }
.loop-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 118px; height: 118px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--cv-shadow); display: grid; place-items: center; gap: 3px; z-index: 2; text-align: center; }
.loop-center img { width: 48px; height: 48px; }
.loop-center span { font-size: 0.72rem; font-weight: 700; color: var(--cv-navy); letter-spacing: 0.01em; }
.loop-node { position: absolute; top: 50%; left: 50%; width: 92px; margin: -46px 0 0 -46px; padding: 0; border: none; background: transparent; cursor: pointer; font: inherit;
  transform: rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a))); }
.loop-node .ln-ic { width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: grid; place-items: center; margin: 0 auto 5px; color: var(--cv-blue); transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.loop-node .ln-ic svg { width: 26px; height: 26px; }
.loop-node .ln-label { display: block; text-align: center; font-size: 0.72rem; font-weight: 600; color: var(--ink-700); }
.loop-node:hover .ln-ic, .loop-node:focus-visible .ln-ic, .loop-node.active .ln-ic { transform: scale(1.14); background: var(--cv-gradient); color: #fff; border-color: transparent; box-shadow: var(--shadow-md); }
.loop-node:hover .ln-label, .loop-node.active .ln-label { color: var(--cv-navy); }
.loop-node:focus { outline: none; }
.loop-caption { max-width: 540px; margin: 22px auto 0; text-align: center; min-height: 78px; }
.loop-caption h3 { margin: 0 0 6px; }
.loop-caption p { margin: 0; color: var(--ink-500); }
@keyframes loopspin { to { transform: rotate(360deg); } }
@media (max-width: 480px) { .loop { --r: 108px; width: 300px; height: 300px; } .loop-orbit { inset: 34px; } .loop-center { width: 92px; height: 92px; } .loop-center img { width: 38px; height: 38px; } .loop-node { width: 76px; margin: -38px 0 0 -38px; } .loop-node .ln-ic { width: 46px; height: 46px; } .loop-node .ln-ic svg { width: 22px; height: 22px; } }
@media (prefers-reduced-motion: reduce) { .loop-orbit { animation: none !important; } }

/* Curo AI live scripted chat (Product page) */
.chat-live { padding: 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.chat-live::-webkit-scrollbar { display: none; }
.chat-live > * { opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.chat-live > *.in { opacity: 1; transform: none; }
.cbub { max-width: 84%; padding: 7px 10px; border-radius: 11px; font-size: 0.66rem; line-height: 1.34; }
.cbub.you { align-self: flex-end; background: var(--cv-blue); color: #fff; border-bottom-right-radius: 4px; }
.cbub.ai { align-self: flex-start; background: var(--cv-pale-blue); color: var(--cv-navy); border-bottom-left-radius: 4px; }
.cbub.typing { align-self: flex-start; display: inline-flex; gap: 4px; align-items: center; }
.cbub b { color: inherit; }
.chat-photo { align-self: flex-end; }
.cookie-photo { width: 92px; height: 70px; border-radius: 11px; background: linear-gradient(135deg, #f4dca8, #e6bd76); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.cookie-photo svg { width: 52px; height: 52px; }
.file-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font-size: 0.64rem; color: var(--cv-navy); font-weight: 600; }
.flag-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; background: #fde7e7; color: #d23b3b; border-radius: 999px; padding: 3px 9px; font-size: 0.6rem; font-weight: 700; }

/* Extra product-demo screen elements */
.phone { position: relative; }
.soon-tag { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 6; background: var(--cv-navy); color: #fff; font-size: 0.58rem; font-weight: 700; padding: 5px 14px; border-radius: 999px; letter-spacing: 0.06em; text-transform: uppercase; box-shadow: var(--shadow-md); }
.mini-av { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: var(--cv-gradient); color: #fff; display: grid; place-items: center; font-size: 0.58rem; font-weight: 700; }
.med-head { display: flex; gap: 9px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: 9px; }
.med-note { font-size: 0.65rem; line-height: 1.4; padding: 8px 9px; border-radius: 9px; }
.med-note.warn { background: #fde7e7; color: #b23a3a; }
.med-note.ok { background: var(--green-100); color: #1c6b47; }
.mini-tl { padding: 12px 12px 4px 10px; position: relative; }
.mini-tl::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 20px; width: 2px; background: var(--teal-100); }
.tl-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 13px; position: relative; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cv-blue); margin-top: 3px; flex: 0 0 10px; box-shadow: 0 0 0 3px #fff; z-index: 1; }
.tl-dot.flag { background: #d23b3b; }
.toggle { width: 34px; height: 18px; border-radius: 999px; background: var(--cv-border); position: relative; flex: 0 0 34px; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .2s; }
.toggle.on { background: var(--cv-teal); }
.toggle.on::after { left: 18px; }
.mini-note { font-size: 0.62rem; color: var(--ink-500); text-align: center; margin-top: 4px; }
.mini-btn { margin-top: 2px; width: 100%; padding: 8px; border: none; border-radius: 9px; background: var(--cv-blue); color: #fff; font: inherit; font-size: 0.7rem; font-weight: 600; opacity: .65; }
.qr-screen { padding: 20px 16px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.qr { width: 122px; height: 122px; border-radius: 10px; background: #fff; border: 1px solid var(--line); padding: 9px; }
.qr svg { width: 100%; height: 100%; }
.qr-screen .t { font-weight: 600; color: var(--cv-navy); font-size: 0.8rem; }
.qr-screen .s { color: var(--ink-500); font-size: 0.68rem; }

/* Hero mockup real content + interactivity */
.mockup-bar { align-items: center; }
.mockup-title { margin-left: 8px; font-size: 0.72rem; font-weight: 600; color: var(--ink-500); }
.mockup-txt { flex: 1; min-width: 0; }
.mockup-txt .mt-t { font-size: 0.84rem; font-weight: 600; color: var(--cv-navy); line-height: 1.25; }
.mockup-txt .mt-s { font-size: 0.72rem; color: var(--ink-500); }
.mockup-row { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; animation: mockRow .55s ease both; }
.mockup-row:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--teal-100); }
.mockup-row:nth-child(1) { animation-delay: .10s; }
.mockup-row:nth-child(2) { animation-delay: .25s; }
.mockup-row:nth-child(3) { animation-delay: .40s; }
@keyframes mockRow { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Family card treatment line */
.fam-tx { font-size: 0.6rem; color: var(--ink-500); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fam-tx.alert { color: #d23b3b; font-weight: 600; }

/* Medicine check live flow (upload -> identify -> result) */
.med-live { position: relative; height: 184px; padding: 4px; }
.med-live .phase { position: absolute; inset: 4px; opacity: 0; }
.med-live .up { animation: phUp 8s ease-in-out infinite; }
.med-live .read { animation: phRead 8s ease-in-out infinite; }
.med-live .done { animation: phDone 8s ease-in-out infinite; display: flex; flex-direction: column; gap: 6px; }
.med-live .up, .med-live .read { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.med-photo { width: 76px; height: 76px; border-radius: 13px; background: linear-gradient(135deg, var(--cv-pale-blue), #d6e6fb); display: grid; place-items: center; color: var(--cv-blue); position: relative; overflow: hidden; }
.med-photo svg { width: 40px; height: 40px; }
.med-photo.scan::after { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; background: rgba(21,101,192,.35); animation: scanY2 1.1s linear infinite; }
.med-cap { font-size: 0.66rem; color: var(--ink-500); }
.med-cap .bar { width: 92px; margin: 7px auto 0; }
@keyframes scanY2 { 0% { top: -8px; } 100% { top: 80px; } }
@media (prefers-reduced-motion: reduce) { .med-live .phase, .med-photo.scan::after { animation: none !important; } .med-live .done { opacity: 1 !important; } }

/* Illustrated avatars in mini-av */
.mini-av { overflow: hidden; }
.mini-av svg { width: 100%; height: 100%; }

/* Live medicine-ordering flow */
.order-live { padding: 12px; min-height: 214px; transition: opacity .25s ease; }
.ord-head { font-size: 0.74rem; font-weight: 700; color: var(--cv-navy); margin: 2px 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 9px; }
.chip { font-size: 0.63rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-500); }
.chip.active { background: var(--cv-blue); color: #fff; border-color: transparent; }
.rx-photo { width: 92px; height: 112px; border-radius: 8px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin: 6px auto 0; padding: 10px; position: relative; overflow: hidden; color: #3b6fb0; }
.rx-photo svg { width: 100%; height: 100%; }
.rx-photo.scan::after { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; background: rgba(21,101,192,.32); animation: scanRx 1s linear infinite; }
@keyframes scanRx { to { top: 112px; } }
.ord-bar { height: 4px; border-radius: 3px; background: #e8f0f6; overflow: hidden; width: 120px; margin: 9px auto 0; }
.ord-bar i { display: block; height: 100%; width: 0; background: var(--cv-gradient); animation: ordFill 1.6s ease forwards; }
@keyframes ordFill { to { width: 100%; } }
.ord-mask { font-size: 0.62rem; color: var(--ink-500); background: var(--cv-pale-blue); border-radius: 7px; padding: 5px 8px; margin-bottom: 8px; }
.opt { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-bottom: 7px; }
.opt.active { border-color: var(--cv-blue); background: var(--cv-pale-blue); }
.opt > div:first-child { flex: 1; }
.opt .t { font-size: 0.72rem; font-weight: 600; color: var(--cv-navy); }
.opt .s { font-size: 0.62rem; color: var(--ink-500); }
.opt .rec-badge { margin-left: auto; }
.ord-done { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 7px; min-height: 190px; }
.ord-check { width: 54px; height: 54px; border-radius: 50%; background: var(--green-100); color: var(--green-600); display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; }
.ord-done .t { font-size: 0.9rem; font-weight: 700; color: var(--cv-navy); }
.ord-done .s { font-size: 0.66rem; color: var(--ink-500); max-width: 180px; }

/* "For whom" context bar inside phone screens */
.for-whom { display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 0.66rem; color: var(--ink-500); flex: 0 0 auto; }
.for-whom .fw-av { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; flex: 0 0 20px; }
.for-whom .fw-av svg { width: 100%; height: 100%; }
.for-whom b { color: var(--cv-navy); font-weight: 600; }
.for-whom .fw-caret { margin-left: auto; color: var(--ink-300); font-size: 0.8rem; }

/* Timeline: fill + scroll + per-item view chip */
.mini-tl { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding: 10px 12px; }
.mini-tl::-webkit-scrollbar { display: none; }
.mini-tl::before { content: none; }
.tl-inner { position: relative; }
.tl-inner::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 8px; width: 2px; background: var(--teal-100); }
.tl-item .rec-main { flex: 1; }
.tl-view { margin-left: auto; align-self: center; font-size: 0.58rem; font-weight: 600; color: var(--cv-blue); border: 1px solid var(--teal-100); background: var(--cv-pale-blue); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }

/* Interactive treatment tracker */
.tt-list { padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.tt-list::-webkit-scrollbar { display: none; }
.tt-item { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tt-head { display: flex; align-items: center; gap: 8px; width: 100%; background: #fff; border: none; padding: 8px; cursor: pointer; font: inherit; text-align: left; }
.tt-head .rec-badge { margin-left: auto; }
.tt-caret { color: var(--ink-300); transition: transform .2s; font-size: 0.8rem; }
.tt-item.open .tt-caret { transform: rotate(180deg); }
.tt-body { display: none; padding: 2px 10px 10px; }
.tt-item.open .tt-body { display: block; }
.tt-row { display: flex; justify-content: space-between; gap: 8px; font-size: 0.62rem; color: var(--ink-500); padding: 4px 0; border-top: 1px dashed var(--line); }
.tt-row b { color: var(--cv-navy); font-weight: 600; text-align: right; }
.tt-flag { font-size: 0.6rem; font-weight: 600; color: #d23b3b; background: #fde7e7; border-radius: 7px; padding: 5px 8px; margin-top: 6px; }
.tt-sum { font-size: 0.62rem; color: var(--ink-700); background: var(--cv-pale-blue); border-radius: 7px; padding: 7px 8px; margin-top: 6px; line-height: 1.4; }
.tt-sum b { color: var(--cv-blue); }

/* Interactive consent toggles */
.toggle { border: 0; padding: 0; cursor: pointer; transition: background .2s; }
.toggle:focus-visible { outline: 2px solid var(--cv-blue); outline-offset: 2px; }

/* Consent handshake — two phones */
.consent-stage { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 34px; }
.cstage-phone { text-align: center; }
.clabel { font-size: 0.72rem; font-weight: 600; color: var(--ink-500); margin-bottom: 10px; }
.consent-stage .phone { width: 210px; }
.handoff { color: var(--cv-teal); flex: 0 0 auto; }
.handoff svg { width: 34px; height: 34px; }
.handoff.pulse svg { animation: handoffPulse 1s ease-in-out infinite; }
@keyframes handoffPulse { 0%,100% { transform: translateX(0); opacity: .55; } 50% { transform: translateX(6px); opacity: 1; } }
.cflow { padding: 12px; }
.cflow .fld-in { display: flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 9px; font-size: 0.72rem; color: var(--cv-navy); margin: 6px 0 2px; font-family: 'Courier New', monospace; font-weight: 700; letter-spacing: .5px; }
.cflow .caret { width: 1.5px; height: 13px; background: var(--cv-blue); animation: blink 1s infinite; display: inline-block; margin-left: 1px; }
.c-btn { width: 100%; padding: 8px; border: none; border-radius: 9px; background: var(--cv-blue); color: #fff; font: inherit; font-size: 0.72rem; font-weight: 600; margin-top: 8px; cursor: pointer; }
.c-btn.ghost { background: #fff; color: var(--ink-500); border: 1px solid var(--line); }
.c-actions { display: flex; gap: 8px; margin-top: 10px; }
.c-actions .c-btn { margin-top: 0; }
.c-wait { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 22px 0; color: var(--ink-500); font-size: 0.72rem; text-align: center; }
.c-spin { width: 26px; height: 26px; border: 3px solid var(--teal-100); border-top-color: var(--cv-blue); border-radius: 50%; animation: cspin 1s linear infinite; }
@keyframes cspin { to { transform: rotate(360deg); } }
.c-ok { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 22px 0; text-align: center; }
.c-ok .t { font-size: 0.9rem; font-weight: 700; color: var(--cv-navy); }
.c-ok .s { font-size: 0.66rem; color: var(--ink-500); }
@media (max-width: 560px) { .handoff svg { transform: rotate(90deg); } }

/* Doctor share — scanner + live report */
.scanner { width: 132px; height: 132px; margin: 16px auto; border-radius: 12px; border: 2px dashed var(--cv-border); position: relative; display: grid; place-items: center; color: var(--ink-300); font-size: 0.62rem; text-align: center; overflow: hidden; }
.scanner svg { width: 34px; height: 34px; }
.scanner.live { border-color: var(--cv-blue); color: var(--cv-blue); }
.scanner.live::after { content: ""; position: absolute; left: 8px; right: 8px; top: 8px; height: 3px; background: var(--cv-blue); box-shadow: 0 0 8px var(--cv-blue); animation: scanDown 1.2s ease-in-out infinite; }
@keyframes scanDown { 0%, 100% { top: 8px; } 50% { top: 118px; } }
.qr-code { font-family: 'Courier New', monospace; font-weight: 700; letter-spacing: 3px; color: var(--cv-navy); font-size: 0.95rem; text-align: center; margin-top: 6px; }
.rpt-timer { display: flex; align-items: center; justify-content: center; gap: 5px; background: #fde7e7; color: #d23b3b; font-size: 0.62rem; font-weight: 700; padding: 7px; border-radius: 8px; margin-bottom: 8px; }
.rpt-row { display: flex; justify-content: space-between; font-size: 0.64rem; padding: 5px 0; border-bottom: 1px dashed var(--line); color: var(--ink-500); }
.rpt-row b { color: var(--cv-navy); font-weight: 600; }
.rpt-row.flag b { color: #d23b3b; }

/* Timeline: in-phone report viewer */
.tl-view { border: 1px solid var(--teal-100); cursor: pointer; }
.rpt-overlay { position: absolute; inset: 0; background: #fff; z-index: 8; display: flex; flex-direction: column; }
.rpt-overlay[hidden] { display: none; }
.rpt-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 0.74rem; font-weight: 600; color: var(--cv-navy); }
.rpt-back { border: none; background: none; color: var(--cv-blue); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.rpt-scroll { flex: 1; overflow-y: auto; padding: 12px; scrollbar-width: none; background: var(--bg-soft); }
.rpt-scroll::-webkit-scrollbar { display: none; }
.rpt-page { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.rpt-page .pg-no { font-size: 0.55rem; color: var(--ink-300); text-align: right; margin-bottom: 4px; }
.rpt-page h5 { margin: 0 0 7px; font-size: 0.72rem; color: var(--cv-navy); }
.rpt-line { height: 6px; border-radius: 4px; background: #eef3f8; margin: 5px 0; }
.rpt-line.s { width: 55%; } .rpt-line.m { width: 78%; }

/* Join loop center: full stacked logo */
.loop-center { padding: 6px; }
.loop-center .loop-full { width: 96px; height: auto; border-radius: 8px; }

/* ============================================================
   3D depth & scroll motion  (classes are added by main.js, so
   nothing is hidden if JS is off — progressive enhancement)
   ============================================================ */

/* Scroll reveal: rise + fade + a touch of 3D tilt for depth */
.reveal { opacity: 0; transform: perspective(1200px) translateY(34px) rotateX(7deg); transform-origin: center 85%; }
/* Cards/mockups scale + fade in (pointer-tilt owns the hover transform) */
.reveal-fade { opacity: 0; transform: scale(0.955); }
.reveal, .reveal-fade {
  transition: opacity .75s cubic-bezier(.22,.61,.36,1),
              transform .75s cubic-bezier(.22,.61,.36,1);
  transition-delay: var(--rd, 0s);
  will-change: opacity, transform;
}
.reveal.in-view, .reveal-fade.in-view { opacity: 1; transform: none; }

/* Shared vanishing point so tilted children feel part of one space */
.cards, .values-grid, .steps, .gallery, .hero-grid, .demo-row,
.trust-grid, .story-flow, .caps-grid, .vlead-grid { perspective: 1200px; }

/* Pointer 3D tilt: main.js sets the inline transform on hover */
.tilt { transform-style: preserve-3d; will-change: transform; }

/* Gentle idle float for the hero visual */
@keyframes cv-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.cv-floaty { animation: cv-float 6.5s ease-in-out infinite; }

/* Respect users who prefer less motion: show everything, no transforms */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-fade { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tilt { transform: none !important; }
  .cv-floaty { animation: none !important; }
}

/* ===== "Our values lead the way" section ===== */
.vlead-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
.vlead-item { display: flex; flex-direction: column; align-items: flex-start; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.vlead-ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; background: var(--cv-gradient); color: #fff; margin-bottom: 16px; flex: 0 0 auto; }
.vlead-ic svg { width: 24px; height: 24px; }
.vlead-item h3 { font-size: 1.14rem; line-height: 1.3; margin-bottom: 9px; color: var(--cv-navy); }
.vlead-item p { color: var(--ink-500); margin-bottom: 16px; }
.vlead-link { margin-top: auto; font-weight: 600; color: var(--cv-blue); text-decoration: none; }
.vlead-link span { display: inline-block; transition: transform .2s ease; }
.vlead-link:hover span { transform: translateX(4px); }
@media (max-width: 820px) { .vlead-grid { grid-template-columns: 1fr; } }

/* Highlighted DPDP-first banner (Trust section) */
.dpdp-badge { display: flex; align-items: center; gap: 16px; margin-top: 30px; padding: 20px 24px; border-radius: var(--radius); background: var(--cv-gradient); color: #fff; box-shadow: var(--shadow-md); }
.dpdp-badge strong { font-weight: 700; }
.dpdp-badge > div { font-size: 1.02rem; line-height: 1.5; }
.dpdp-ic { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; background: rgba(255,255,255,0.18); border-radius: 12px; }
.dpdp-ic svg { width: 24px; height: 24px; }
@media (max-width: 560px) { .dpdp-badge { flex-direction: column; text-align: center; } }

/* ===== FAQ accordion ===== */
.faq { margin-top: 30px; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 600; color: var(--cv-navy); font-size: 1.06rem; transition: color .15s ease; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--cv-blue); }
.faq-item summary::after { content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 300; line-height: 1; color: var(--cv-blue); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin: 0 0 20px; padding-right: 44px; color: var(--ink-500); }
@media (max-width: 560px) { .faq-item p { padding-right: 0; } }

/* Per-section screen-recording videos (upgrade from placeholder) */
.shot-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; background: #000; }

/* ===== Immersive scroll layer: progress bar, glare, back-to-top ===== */
.scroll-prog { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--cv-gradient); z-index: 200; will-change: width; }

.tilt-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease; z-index: 4;
  background: radial-gradient(220px circle at var(--gx,50%) var(--gy,50%), rgba(255,255,255,0.30), rgba(255,255,255,0) 60%); }
.tilt.tilting .tilt-glare { opacity: 1; }

.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border: none; border-radius: 50%; background: var(--cv-gradient); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-md); opacity: 0; transform: translateY(14px) scale(0.9); transition: opacity .25s ease, transform .25s ease; z-index: 120; }
.to-top.show { opacity: 1; transform: none; }
.to-top:hover { filter: brightness(1.05); }
.to-top svg { width: 22px; height: 22px; }

@media (prefers-reduced-motion: reduce) {
  .scroll-prog, .to-top { display: none !important; }
  .tilt-glare { display: none !important; }
}

/* Laptop / web recordings — landscape variant of the .shot frame */
.lap-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 8px; max-width: 900px; margin-left: auto; margin-right: auto; }
@media (max-width: 640px) { .lap-gallery { grid-template-columns: 1fr; } }
.shot.lap { aspect-ratio: 16 / 10; }

/* Hero: four values as a 2x2 square panel (replaces the app mockup) */
.hero-values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--cv-shadow); padding: 22px; }
.hero-values .value { margin: 0; text-align: center; padding: 16px 10px; border-radius: var(--radius-sm); transition: transform .18s ease, background .18s ease; }
.hero-values .value:hover { transform: translateY(-3px); background: var(--bg-soft); }
.hero-values .value h3 { margin: 12px 0 4px; }

/* Trademark mark on the CuroVault name & logo */
.tm { font-size: 0.52em; vertical-align: super; font-weight: 600; margin-left: 1px; }
.brand { position: relative; }
.brand-tm { position: absolute; top: 4px; right: -12px; font-size: 12px; line-height: 1; font-weight: 600; color: var(--cv-navy); }
@media (max-width: 560px) { .brand-tm { top: 2px; right: -10px; font-size: 10px; } }

/* Waitlist signup form */
.wl-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.wl-form input[type="email"] { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); min-width: 280px; font: inherit; color: var(--ink-900); background: #fff; }
.wl-form input[type="email"]:focus { outline: 2px solid var(--cv-blue); outline-offset: 1px; border-color: transparent; }
.wl-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; }
.wl-status { margin-top: 14px; font-weight: 600; min-height: 1.2em; }
.wl-status.success { color: var(--green-600); }
.wl-status.error { color: #d23b3b; }

/* "Coming soon" tag pinned to the card's top-right corner */
.card { position: relative; }
.card .badge-soon { position: absolute; top: 16px; right: 16px; margin: 0; z-index: 6; }

/* ============================================================
   Apple-design polish (homepage-first)
   Principles: Response · Materials & depth · Typography ·
   Reduced motion/transparency · Craft (focus, press feedback)
   ============================================================ */

/* §15 Typography — size-specific tracking + leading, optical sizing */
html { font-optical-sizing: auto; }
h1 { letter-spacing: -0.022em; line-height: 1.08; }
h2 { letter-spacing: -0.015em; }
.hero h1 { letter-spacing: -0.026em; }
.lead { letter-spacing: 0.002em; }

/* §1 Response — instant press feedback (respond on press, not release) */
.btn { transition: transform .12s ease-out, box-shadow .15s ease, background .15s ease; }
.btn:active { transform: scale(0.97); }
.vlead-link:active, .nav-login:active { opacity: 0.7; }

/* §16 Craft — clear keyboard focus rings */
a:focus-visible, .btn:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, textarea:focus-visible, .loop-node:focus-visible {
  outline: 2px solid var(--cv-blue);
  outline-offset: 3px;
  border-radius: 8px;
}

/* §12 Materials — header as a floating translucent layer with a scroll-edge effect */
.site-header {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: transparent;
  transition: box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(13, 27, 61, 0.06);
}

/* §14 Reduced transparency / higher contrast — accessible material fallbacks */
@media (prefers-reduced-transparency: reduce) {
  .site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  .card, .value, .vlead-item, .trust-item, .faq-item { border-color: var(--cv-navy); }
  .site-header { background: #fff; border-bottom: 1px solid var(--cv-navy); }
}

/* ============================================================
   Apple polish, part 2 — interactive controls + How it Works demos
   ============================================================ */

/* §1 Response — press feedback + smooth transitions on every control
   (site-wide; most felt on the How it Works page demos) */
.chip, .c-btn, .opt, .tt-head, .tl-view, .rpt-back, .loop-node, .vlead-link {
  transition: transform .12s ease-out, background .15s ease, box-shadow .15s ease, border-color .15s ease, opacity .15s ease;
}
.chip:active, .opt:active, .tt-head:active, .tl-view:active, .rpt-back:active { transform: scale(0.96); }
.c-btn:active { transform: scale(0.97); }

/* §4/§8 Behavior — content "materializes" (rises + fades) as each demo frame swaps.
   innerHTML replacement creates fresh nodes, so this animation replays on every step. */
@keyframes demoIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cflow > * { animation: demoIn .3s cubic-bezier(.22, .61, .36, 1); }
#orderDemo { transition: opacity .26s ease; }

/* Treatment tracker — smooth accordion instead of a hard show/hide */
.tt-body {
  display: block;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 0 10px;
  transition: max-height .34s cubic-bezier(.22, .61, .36, 1), opacity .26s ease, padding .34s ease;
}
.tt-item.open .tt-body { max-height: 380px; opacity: 1; padding: 2px 10px 10px; }
.tt-caret { transition: transform .28s cubic-bezier(.22, .61, .36, 1); }

@media (prefers-reduced-motion: reduce) {
  .cflow > * { animation: none !important; }
  .tt-body { transition: none !important; }
}

/* ============================================================
   Apple polish, part 3 — Join care-loop spring-settle
   ============================================================ */

/* §4 Behavior — the selected node's icon springs up with a gentle overshoot
   and settles (back-out easing = spring feel), instead of a linear scale. */
.loop-node .ln-ic {
  transition: transform .44s cubic-bezier(.34, 1.56, .64, 1),
              box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
/* §8 The caption materializes in each time you pick a node (innerHTML swap replays it). */
#loopCaption h3, #loopCaption p { animation: demoIn .34s cubic-bezier(.22, .61, .36, 1); }

@media (prefers-reduced-motion: reduce) {
  .loop-node .ln-ic { transition: box-shadow .2s ease, background .2s ease, color .2s ease; }
  #loopCaption h3, #loopCaption p { animation: none !important; }
}
