/* ============================================================
   SOS Doc — theme stylesheet
   Re-skinned from JenCare (Webflow) reference, ported to BEM+rem.
   Conventions: BEM, rem only (16px = 1rem), 1px hairlines only.
   No header nav — replaced by floating brand mark + sticky CTA.
   ============================================================ */

/* ----- Design tokens (from JenCare :root, tuned for SOS Doc) -- */
:root {
  /* palette — keep SOS Doc's brand navy; layer JenCare blues over */
  --c-deep-navy:        #04032e;
  --c-blue-black:       #020625;
  --c-tint-black:       #060a2d;
  --c-blue:             #0f5ccf;
  --c-blue-light:       #e2ecff;
  --c-teal-light:       #51b7f5;
  --c-teal-dark:        #006fb2;
  --c-white-smoke:      #f3f6fa;
  --c-white-smoke-2:    #f2f5fa;
  --c-blue-smoke:       #f0f4fd;
  --c-blue-smoke-soft:  #fafcfd;
  --c-gray-blue:        #6b7280;
  --c-body-text:        #5a5a5c;
  --c-border:           #e4e4e4;
  --c-border-soft:      rgba(4, 3, 46, 0.08);
  --c-white:            #ffffff;
  --c-success:          #1D7A4A;
  --c-success-bg:       #E6F5EE;
  --c-warn:             #A05C1A;
  --c-warn-bg:          #FDF3E7;
  --c-red:              #eb2d3a;

  /* semantic */
  --brand:              var(--c-deep-navy);
  --brand-ink:          var(--c-blue-black);
  --accent:             var(--c-blue);
  --accent-soft:        var(--c-blue-light);
  --text-primary:       var(--c-deep-navy);
  --text-secondary:     var(--c-body-text);
  --text-muted:         var(--c-gray-blue);
  --bg:                 var(--c-white-smoke);
  --bg-soft:            var(--c-blue-smoke-soft);
  --bg-white:           var(--c-white);
  --border:             var(--c-border-soft);

  /* radii — JenCare-style generous curves */
  --r-xxs:  0.25rem;   /* 4 */
  --r-xs:   0.625rem;  /* 10 */
  --r-sm:   0.9375rem; /* 15 */
  --r-md:   1.25rem;   /* 20 */
  --r-lg:   1.5625rem; /* 25 */
  --r-xl:   1.875rem;  /* 30 */
  --r-2xl:  2.1875rem; /* 35 */
  --r-3xl:  2.5rem;    /* 40 */
  --r-pill: 3.125rem;  /* 50 */
  --r-round:50%;

  /* type scale */
  --fs-h1:   3.5rem;   /* 56 */
  --fs-h2:   3rem;     /* 48 */
  --fs-h3:   2.5rem;   /* 40 */
  --fs-h4:   2rem;     /* 32 */
  --fs-h5:   1.5rem;   /* 24 */
  --fs-xl:   1.25rem;  /* 20 */
  --fs-lg:   1.125rem; /* 18 */
  --fs-base: 1rem;     /* 16 */
  --fs-sm:   0.875rem; /* 14 */
  --fs-xs:   0.8125rem;/* 13 */
  --lh-tight: 1.11;
  --lh-snug:  1.2;
  --lh-base:  1.6;

  /* spacing */
  --container:    78.125rem;  /* 1250 */
  --container-sm: 50rem;      /* 800  */
  --section-y:    6.25rem;    /* 100  */
  --gap:          1.5rem;     /* 24   */
  --gap-lg:       2.5rem;     /* 40   */

  /* elevation */
  --shadow-sm:  0 0.125rem 0.5rem rgba(4, 3, 46, 0.04);
  --shadow-md:  0 1rem 2.5rem rgba(4, 3, 46, 0.06);
  --shadow-lg:  0 2.125rem 4.625rem rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 1.5rem 3.5rem rgba(4, 3, 46, 0.10);

  /* font families — Inter only; <em> inside headings is italic Inter w/ brand accent */
  --ff-body:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* timings */
  --t-fast: 180ms;
  --t-base: 320ms;
  --t-slow: 800ms;
  --ease:   cubic-bezier(.2,.6,.2,1);
}

/* ----- Reset / base ----------------------------------------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--text-secondary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
a:hover { color: var(--c-teal-dark); }

button { font: inherit; cursor: pointer; border: 0; background: none; }

/* heading defaults — Inter, with serif <em> accent inside */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--ff-body);
  color: var(--text-primary);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -0.0125em;
}
h1 em, h2 em, h3 em, h4 em, h5 em {
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--accent);
}

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

/* ----- Layout primitives ------------------------------------ */
main { display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: var(--section-y);
}
.section--tight { padding-block: 4rem; }

.section__head {
  max-width: 48.75rem; /* 780 */
  margin: 0 auto 3.5rem;
  text-align: center;
}
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 1.25rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--brand);
  background: var(--accent-soft);
  border-radius: var(--r-pill);
  letter-spacing: 0.01em;
}
.section__eyebrow::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--r-round);
  background: var(--accent);
  animation: tag-pulse 1.8s ease-in-out infinite;
}
.section__title {
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  color: var(--text-primary);
  margin-bottom: 1rem;
}
.section__sub {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  line-height: var(--lh-base);
  max-width: 42rem;
  margin: 0 auto;
}

/* ----- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9375rem 1.75rem;
  font-size: var(--fs-base);
  font-weight: 500;
  line-height: 1.2;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition:
    transform var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease),
    background-color var(--t-base) var(--ease),
    color var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease);
  white-space: nowrap;
  border: 0.0625rem solid transparent;
  will-change: transform;
}
.btn--primary {
  background: var(--brand);
  color: var(--c-white);
  box-shadow: 0 0.5rem 1.5rem rgba(15, 92, 207, 0.18);
}
.btn--primary:hover {
  background: var(--c-blue);
  color: var(--c-white);
  transform: translateY(-0.125rem);
  box-shadow: 0 1rem 2rem rgba(15, 92, 207, 0.24);
}
.btn--secondary {
  background: var(--c-white);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn--secondary:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-0.125rem);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--c-white);
  border-color: rgba(255,255,255,0.4);
}
.btn--ghost:hover {
  background: var(--c-white);
  color: var(--brand);
}
.btn--lg { padding: 1.0625rem 2rem; font-size: var(--fs-lg); }

/* ----- Floating brand mark (replaces header nav) ----------- */
.brand-mark {
  position: fixed;
  top: 1.25rem;
  left: 1.5rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  padding: 0.625rem 1rem;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(180%) blur(0.625rem);
  -webkit-backdrop-filter: saturate(180%) blur(0.625rem);
  border: 0.0625rem solid var(--border);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  transition:
    background-color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease),
    transform var(--t-base) var(--ease);
}
.brand-mark:hover {
  background: var(--c-white);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}
.brand-mark__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--r-round);
  background: var(--accent);
  margin-right: 0.5rem;
  animation: tag-pulse 1.8s ease-in-out infinite;
}
.brand-mark__accent {
  color: var(--accent);
  margin-left: 0.0625rem;
}
body.is-scrolled .brand-mark {
  background: var(--c-white);
  box-shadow: var(--shadow-md);
}

/* ----- Sticky waitlist CTA (bottom-right) ------------------ */
.sticky-cta {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--c-white);
  background: var(--brand);
  border-radius: var(--r-pill);
  box-shadow: 0 1rem 2rem rgba(4, 3, 46, 0.24);
  opacity: 0;
  transform: translateY(1rem) scale(.96);
  pointer-events: none;
  transition:
    opacity var(--t-base) var(--ease),
    transform var(--t-base) var(--ease),
    background-color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}
.sticky-cta:hover {
  background: var(--c-blue);
  color: var(--c-white);
  box-shadow: 0 1.25rem 2.5rem rgba(15, 92, 207, 0.28);
  transform: translateY(0) scale(1);
}
body.is-past-hero .sticky-cta {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ----- HERO ------------------------------------------------- */
.section--hero {
  padding-block: 7rem 5rem;
  background:
    radial-gradient(80rem 40rem at 50% -8rem, var(--accent-soft) 0%, transparent 60%),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.section__hero-area {
  text-align: center;
  max-width: 60rem;
  margin: 0 auto;
}
.section__hero-area .section__eyebrow {
  margin-bottom: 1.5rem;
}
.section__hero-title {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}
.section__hero-sub {
  font-size: var(--fs-xl);
  line-height: var(--lh-base);
  color: var(--text-secondary);
  max-width: 38rem;
  margin: 0 auto 2.5rem;
}
.section__hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.section__hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 44rem;
  margin: 0 auto 3rem;
}
.section__hero-stat {
  text-align: center;
  padding: 1.5rem 1rem;
}
.section__hero-stat-num {
  display: block;
  font-size: clamp(1.5rem, 1rem + 3.5vw, 2.75rem);
  line-height: 1;
  color: var(--accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.section__hero-stat-label {
  display: block;
  font-size: clamp(0.6875rem, 0.6rem + 0.5vw, 0.875rem);
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

/* Hero gallery — 3 animated feature cards directly under the CTAs */
.section__hero-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 75rem;
  margin: 0 auto;
}

/* ----- Hero card (live monitoring preview) ----------------- */
.hero-card {
  background: var(--c-white);
  border: 0.0625rem solid var(--border);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  text-align: left;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.hero-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-hover);
}
.hero-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.hero-card__header-info {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 0;
}
.hero-card__avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--r-round);
  background: linear-gradient(135deg, var(--c-teal-light), var(--c-blue));
  color: var(--c-white);
  font-weight: 600;
  font-size: 1.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-card__name {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.hero-card__meta {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 0.125rem;
}
.hero-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.3125rem 0.75rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--c-success);
  background: var(--c-success-bg);
  border-radius: var(--r-pill);
}
.hero-card__badge::before {
  content: "";
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: var(--r-round);
  background: var(--c-success);
  animation: tag-pulse 1.6s ease-in-out infinite;
}
.hero-card__body { display: grid; gap: 0.875rem; }
.hero-card__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.875rem 1rem;
  background: var(--bg-soft);
  border-radius: var(--r-sm);
}
.hero-card__metric-name {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--fs-sm);
  color: var(--text-primary);
  font-weight: 500;
}
.hero-card__metric-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--r-round);
  flex-shrink: 0;
}
.hero-card__metric-dot--ok   { background: var(--c-success); }
.hero-card__metric-dot--warn { background: var(--c-warn); }
.hero-card__metric-dot--info { background: var(--c-teal-light); }
.hero-card__metric-value {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.125rem;
}
.hero-card__metric-val {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.hero-card__metric-status {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.hero-card__metric-status--warn { color: var(--c-warn); }

.hero-card__alert {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  background: var(--c-warn-bg);
  border-radius: var(--r-sm);
  border: 0.0625rem solid rgba(160, 92, 26, 0.16);
  margin-top: 0.25rem;
}
.hero-card__alert-icon {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--r-round);
  background: var(--c-warn);
  color: var(--c-white);
  font-weight: 700;
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-card__alert-text {
  font-size: var(--fs-sm);
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 0.5rem;
}
.hero-card__alert-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.hero-card__contact-chip {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: var(--fs-xs);
  color: var(--c-warn);
  background: var(--c-white);
  border-radius: var(--r-pill);
  border: 0.0625rem solid rgba(160, 92, 26, 0.24);
}

/* ----- ABOUT (intro / why-now) ---------------------------- */
.section--about {
  background: var(--c-white);
}
.section__about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: center;
}
.section__about-text { text-align: left; }
.section__about-text .section__title { text-align: left; }
.section__about-lead {
  margin-top: 1.5rem;
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: -0.01em;
}
.section__about-card {
  width: 100%;
  max-width: 32rem;
  justify-self: end;
}

/* ----- CHOOSE-US (deprecated — cards live in hero now; class retained
   in case anything else points at .section__choose-grid). ----------- */
.section__choose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

/* Shared card primitive — applied to all three */
.heart-card,
.steps-card,
.efficiency-card {
  background: var(--c-white);
  border: 0.0625rem solid var(--border);
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-height: 17rem;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.heart-card:hover,
.steps-card:hover,
.efficiency-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-hover);
}

/* shared head row */
.heart-card__head,
.steps-card__head,
.efficiency-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.heart-card__head-left,
.steps-card__head-left {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  min-width: 0;
}
.heart-card__head-right,
.steps-card__head-right {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  white-space: nowrap;
}
.heart-card__icon-circle,
.steps-card__icon-circle {
  width: 2rem;
  height: 2rem;
  border-radius: var(--r-round);
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.heart-card__icon-circle svg,
.steps-card__icon-circle svg,
.heart-card__stat-icon svg,
.steps-card__stat-icon svg,
.efficiency-card__stat-icon svg {
  width: 1rem;
  height: 1rem;
}
.heart-card__label,
.steps-card__label {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}
.steps-card__sub {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 0.125rem;
}
.heart-card__stat,
.steps-card__stat {
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Card A: ECG ─────────────────────────────────── */
.heart-card__icon-circle {
  background: rgba(235, 45, 58, 0.10);
  color: var(--c-red);
}
.heart-card__ecg {
  position: relative;
  flex: 1;
  min-height: 6rem;
  display: flex;
  align-items: center;
}
.heart-card__ecg svg {
  width: 100%;
  height: 100%;
  min-height: 6rem;
  display: block;
}
.heart-card__ecg-highlight {
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease);
  transition-delay: 1.6s;
}
[data-reveal].is-revealed .heart-card__ecg-highlight {
  opacity: 1;
  animation: ecg-pulse 2s ease-in-out 2.2s infinite;
}
.heart-card__ecg-path {
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
}
[data-reveal].is-revealed .heart-card__ecg-path {
  animation: ecg-draw 2.4s ease-out forwards;
}
.heart-card__day-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
  margin-top: 0.25rem;
}
.heart-card__day {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  text-align: center;
  padding: 0.25rem 0;
}
.heart-card__day--hi {
  color: var(--c-red);
  font-weight: 600;
}

/* ── Card B: bars ───────────────────────────────── */
.steps-card__bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  flex: 1;
  align-items: end;
  min-height: 7rem;
}
.steps-card__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
  height: 100%;
}
.steps-card__bar-wrap {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.steps-card__bar {
  display: block;
  width: 100%;
  max-width: 1.5rem;
  border-radius: 0.375rem;
  background:
    repeating-linear-gradient(
      45deg,
      var(--accent) 0 0.25rem,
      var(--accent-soft) 0.25rem 0.5rem
    );
  height: 0;
  transform-origin: bottom;
  transition: height 700ms var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms);
}
[data-reveal].is-revealed .steps-card__bar {
  height: var(--h, 50%);
}
.steps-card__bar--today {
  background:
    repeating-linear-gradient(
      45deg,
      var(--c-deep-navy) 0 0.25rem,
      var(--c-teal-light) 0.25rem 0.5rem
    );
}
.steps-card__pill {
  /* Anchored above the highlighted bar's top edge. The bar's height is
     var(--h) of its wrap, so the bar's top sits at `bottom: var(--h)`
     of the wrap. Pill rides 0.25rem higher than that. */
  position: absolute;
  bottom: calc(var(--h, 90%) + 0.25rem);
  left: 50%;
  transform: translate(-50%, 0.5rem);
  padding: 0.25rem 0.5rem;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 600;
  background: var(--brand);
  color: var(--c-white);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
  transition-delay: 900ms;
  pointer-events: none;
  z-index: 1;
}
[data-reveal].is-revealed .steps-card__pill {
  opacity: 1;
  transform: translate(-50%, 0);
}
.steps-card__day {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.steps-card__day--hi {
  color: var(--brand);
  font-weight: 600;
}

/* ── Card C: pyramid blocks ─────────────────────── */
.efficiency-card__head-left { min-width: 0; }
.efficiency-card__label {
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}
.efficiency-card__sub {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-top: 0.25rem;
}
.efficiency-card__stat {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.efficiency-card__stat-icon {
  color: var(--accent);
}
.efficiency-card__stat-value {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.efficiency-card__blocks {
  display: grid;
  grid-template-columns: repeat(3, 3rem);
  grid-template-rows: repeat(3, 3rem);
  gap: 0.375rem;
  margin-left: auto;
  margin-top: auto;
}
.efficiency-card__block {
  background: var(--accent-soft);
  border-radius: 0.375rem;
  opacity: 0;
  transform: scale(0.6) translateY(0.5rem);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
  transition-delay: var(--d, 0ms);
}
[data-reveal].is-revealed .efficiency-card__block {
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* ----- PROCESS (how it works) ----------------------------- */
.section--process {
  background: var(--c-white);
}
.section__process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  counter-reset: step;
}
.process-step {
  padding: 2.25rem 2rem;
  background: var(--bg);
  border-radius: var(--r-lg);
  border: 0.0625rem solid var(--border);
  position: relative;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.process-step:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-md);
}
.process-step__num {
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 1rem;
  display: block;
  letter-spacing: -0.04em;
}
.process-step__title {
  font-size: var(--fs-h5);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.625rem;
}
.process-step__desc {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: var(--lh-base);
}

/* ----- ANALYTICS (dark metrics grid) ---------------------- */
.section--analytics {
  background:
    linear-gradient(180deg, var(--brand-ink) 0%, var(--brand) 100%);
  color: rgba(255,255,255,0.85);
  position: relative;
  overflow: hidden;
}
.section--analytics::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    115deg,
    transparent 20%,
    rgba(81, 183, 245, 0.10) 45%,
    rgba(15, 92, 207, 0.08) 55%,
    transparent 80%
  );
  background-size: 200% 200%;
  animation: shimmer-sweep 14s linear infinite;
  pointer-events: none;
}
.section--analytics .section__title { color: var(--c-white); }
.section--analytics .section__sub   { color: rgba(255,255,255,0.7); }
.section--analytics .section__eyebrow {
  color: var(--c-white);
  background: rgba(255,255,255,0.10);
}
.section--analytics .section__eyebrow::before { background: var(--c-teal-light); }

.section__analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}
.metric-card {
  background: rgba(255,255,255,0.05);
  border: 0.0625rem solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  padding: 1.5rem 1.25rem;
  position: relative;
  transition: transform var(--t-base) var(--ease), background-color var(--t-base) var(--ease);
  backdrop-filter: blur(0.25rem);
}
.metric-card:hover {
  transform: translateY(-0.25rem);
  background: rgba(255,255,255,0.08);
}
.metric-card__status {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  padding: 0.1875rem 0.625rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  border-radius: var(--r-pill);
}
.metric-card__status--live    { color: #1D7A4A; background: #B6EBCE; }
.metric-card__status--coming  { color: #886200; background: #FCE5A0; }
.metric-card__status--roadmap { color: #8A6CD3; background: #E3D9F7; }
.metric-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  background: rgba(255,255,255,0.06);
  border-radius: var(--r-sm);
  margin-bottom: 1rem;
}
.metric-card__name {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--c-white);
  margin-bottom: 0.5rem;
}
.metric-card__desc {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

.section__analytics-legend {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.section__analytics-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.85);
}
.section__analytics-legend-item b { color: var(--c-white); font-weight: 600; }
.section__analytics-legend-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--r-round);
}
.section__analytics-legend-dot--live    { background: #6BE5A4; }
.section__analytics-legend-dot--coming  { background: #FCC845; }
.section__analytics-legend-dot--roadmap { background: #B49AEB; }

/* ----- RESULT (trust strip) ------------------------------- */
.section--result {
  background: var(--c-white);
}
.section__result-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 2rem;
  background: var(--bg);
  border-radius: var(--r-xl);
  border: 0.0625rem solid var(--border);
}
.section__result-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-primary);
}
.section__result-dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: var(--r-round);
  background: var(--accent);
}

/* ----- SOLUTION (pillars / science) ----------------------- */
.section--solution {
  background: var(--bg);
}
.section__solution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.solution-card {
  background: var(--c-white);
  border: 0.0625rem solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  text-align: left;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.solution-card:hover {
  transform: translateY(-0.25rem);
  box-shadow: var(--shadow-md);
}
.solution-card__badge {
  width: 3rem;
  height: 3rem;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.solution-card__badge svg {
  width: 1.5rem;
  height: 1.5rem;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.solution-card__title {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.solution-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ----- CTA (waitlist) ------------------------------------- */
.section--cta {
  padding-block: 5rem;
  background: var(--c-white);
}
.section__cta-card {
  max-width: 60rem;
  margin: 0 auto;
  padding: 4rem 3rem;
  background:
    radial-gradient(70rem 30rem at 50% -10rem, rgba(81, 183, 245, 0.16) 0%, transparent 60%),
    linear-gradient(135deg, var(--brand-ink) 0%, var(--brand) 100%);
  border-radius: var(--r-2xl);
  text-align: center;
  color: var(--c-white);
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.section__cta-card .section__eyebrow {
  color: var(--c-white);
  background: rgba(255,255,255,0.10);
}
.section__cta-card .section__eyebrow::before { background: var(--c-teal-light); }
.section__cta-title {
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  color: var(--c-white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.section__cta-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--c-teal-light);
}
.section__cta-sub {
  font-size: var(--fs-lg);
  color: rgba(255,255,255,0.78);
  margin: 0 auto 2.5rem;
  max-width: 36rem;
}
.section__cta-form {
  display: flex;
  gap: 0.75rem;
  max-width: 30rem;
  margin: 0 auto 1.25rem;
  background: rgba(255,255,255,0.08);
  border: 0.0625rem solid rgba(255,255,255,0.20);
  border-radius: var(--r-pill);
  padding: 0.375rem;
  backdrop-filter: blur(0.5rem);
}
.section__cta-input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 0.75rem 1.125rem;
  color: var(--c-white);
  font-family: inherit;
  font-size: var(--fs-base);
  min-width: 0;
}
.section__cta-input::placeholder { color: rgba(255,255,255,0.55); }
.section__cta-submit {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: var(--c-white);
  color: var(--brand);
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: var(--fs-base);
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.section__cta-submit:hover {
  background: var(--c-teal-light);
  color: var(--c-white);
  transform: translateY(-0.0625rem);
}
.section__cta-note {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.55);
  margin-top: 0.5rem;
}

/* ----- FOOTER --------------------------------------------- */
.site-footer {
  background: var(--brand-ink);
  color: rgba(255,255,255,0.7);
  padding-block: 4rem 2rem;
}
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 1.5rem;
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 0.0625rem solid rgba(255,255,255,0.08);
}
.site-footer__logo {
  display: inline-block;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--c-white);
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.site-footer__logo-accent { color: var(--c-teal-light); margin-left: 0.0625rem; }
.site-footer__desc {
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: rgba(255,255,255,0.55);
  max-width: 22rem;
}
.site-footer__col-title {
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-white);
  margin-bottom: 1rem;
}
.site-footer__list { list-style: none; display: grid; gap: 0.625rem; }
.site-footer__link {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.6);
  position: relative;
  display: inline-block;
  transition: color var(--t-fast) var(--ease);
}
.site-footer__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -0.125rem;
  width: 0;
  height: 0.0625rem;
  background: var(--c-teal-light);
  transition: width var(--t-base) var(--ease);
}
.site-footer__link:hover { color: var(--c-white); }
.site-footer__link:hover::after { width: 100%; }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
}
.site-footer__badges { display: inline-flex; gap: 0.5rem; flex-wrap: wrap; }
.site-footer__badge {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.7);
  padding: 0.25rem 0.625rem;
  border: 0.0625rem solid rgba(255,255,255,0.16);
  border-radius: var(--r-pill);
}

/* ----- Generic page + 404 --------------------------------- */
.page {
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 7rem 1.5rem 5rem;
}
.page__title {
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.page__lede {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
.page__body p { margin-bottom: 1rem; }
.page__body h2 { font-size: var(--fs-h4); margin: 2rem 0 0.75rem; color: var(--text-primary); }
.page__body h3 { font-size: var(--fs-h5); margin: 1.5rem 0 0.5rem; color: var(--text-primary); }
.page__body a { color: var(--accent); text-decoration: underline; }
.page__body ul, .page__body ol { padding-left: 1.5rem; margin-bottom: 1rem; }

.section--404 {
  max-width: 40rem;
  margin: 0 auto;
  padding: 8rem 1.5rem 6rem;
  text-align: center;
}
.section--404__code {
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  margin-bottom: 1rem;
  letter-spacing: -0.04em;
}
.section--404__title {
  font-size: var(--fs-h3);
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.section--404__lede {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ----- Reveal animation primitive ------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition:
    opacity var(--t-slow) var(--ease),
    transform var(--t-slow) var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ----- Keyframes ------------------------------------------ */
@keyframes tag-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.5); opacity: 0.55; }
}
@keyframes shimmer-sweep {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 200%; }
}
@keyframes ecg-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes ecg-pulse {
  0%, 100% { opacity: 0.85; }
  50%      { opacity: 1; }
}

/* ----- Responsive ----------------------------------------- */
@media (max-width: 61.9375rem) {           /* ≤ 991 */
  :root { --section-y: 4.5rem; --fs-h1: 2.75rem; --fs-h2: 2.25rem; --fs-h3: 2rem; }
  .section__hero-stats { gap: 1rem; }
  .section__hero-gallery   { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .section__hero-gallery > .efficiency-card { grid-column: 1 / -1; }
  .section__about-grid     { grid-template-columns: 1fr; gap: 2.5rem; }
  .section__about-card     { justify-self: center; }
  .section__choose-grid,
  .section__process-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section__analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section__solution-grid  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .efficiency-card__blocks { grid-template-columns: repeat(3, 2.5rem); grid-template-rows: repeat(3, 2.5rem); }
  .site-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 47.9375rem) {           /* ≤ 767 */
  :root { --fs-h1: 2.25rem; --fs-h2: 2rem; --fs-xl: 1.0625rem; }
  .section--hero { padding-block: 6rem 3rem; }
  .section__hero-actions .btn { width: 100%; max-width: 22rem; }
  /* Stats stay 3-col on mobile, tighter padding/gap; clamp() on -num does the type. */
  .section__hero-stats   { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; max-width: 100%; margin-bottom: 2rem; }
  .section__hero-stat    { padding: 0.75rem 0.25rem; }
  /* Hero gallery — tighter gap + tighter card padding at this width. */
  .section__hero-gallery { gap: 1rem; }
  .heart-card, .steps-card, .efficiency-card { padding: 1.125rem; gap: 0.875rem; min-height: 14rem; }
  .heart-card__ecg svg { height: 4.5rem; }
  .section__cta-card { padding: 3rem 1.5rem; }
  .section__cta-form { flex-direction: column; background: transparent; border: 0; padding: 0; gap: 0.625rem; }
  .section__cta-input { background: rgba(255,255,255,0.08); border-radius: var(--r-pill); border: 0.0625rem solid rgba(255,255,255,0.20); }
  .section__cta-submit { justify-content: center; }
}

@media (max-width: 29.9375rem) {           /* ≤ 479 */
  :root { --section-y: 3.5rem; --fs-h1: 2rem; --fs-h2: 1.75rem; --fs-h3: 1.5rem; }
  .container { padding-inline: 1rem; }
  /* Cards stack 1-col on phone, but stats stay 3-col with tight padding. */
  .section__hero-gallery,
  .section__choose-grid,
  .section__process-grid,
  .section__analytics-grid,
  .section__solution-grid { grid-template-columns: 1fr; }
  .section__hero-gallery   { gap: 0.875rem; }
  .section__hero-gallery > .efficiency-card { grid-column: auto; }
  .section__hero-stats     { gap: 0.375rem; }
  .section__hero-stat      { padding: 0.625rem 0.125rem; }
  .heart-card, .steps-card, .efficiency-card { padding: 1rem; min-height: 12.5rem; }
  .heart-card__ecg svg     { height: 4rem; }
  .heart-card__day-labels  { font-size: 0.625rem; }
  .site-footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .brand-mark { top: 0.875rem; left: 0.875rem; padding: 0.5rem 0.875rem; font-size: 0.9375rem; }
  .sticky-cta { right: 0.875rem; bottom: 0.875rem; padding: 0.75rem 1.125rem; font-size: var(--fs-sm); }
  .hero-card { padding: 1.25rem; }
  .hero-card__row { padding: 0.75rem 0.875rem; }
}

/* ----- Reduced motion ------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  /* Force the final visual state on elements that *rely* on a keyframe
     to reveal themselves (otherwise killing the animation hides them). */
  .heart-card__ecg-path     { stroke-dashoffset: 0 !important; }
  .heart-card__ecg-highlight{ opacity: 1 !important; }
  .steps-card__bar          { height: var(--h, 60%) !important; transform: none !important; }
  .steps-card__pill         { opacity: 1 !important; transform: translate(-50%, 0) !important; }
  .efficiency-card__block   { opacity: 1 !important; transform: none !important; }
}
