:root {
  --bg-primary: #F6F7F9;
  --bg-secondary: #EAF3F7;
  --primary: #6265f0;
  --secondary: #aa59f7;
  --accent: #ec4a9d;
  --accent-hover: #d6367d;
  --blue: #3F85F6;
  --gold: #fbbf24;
  --cognera-section-gradient: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--gold));
  --section-divider-size: 6px;
  --ink: #1F2A35;
  --slate: #6B7885;
  --white: #FFFFFF;
  --line: rgba(31, 42, 53, 0.12);
  --line-strong: rgba(98, 101, 240, 0.24);
  --shadow: 0 18px 45px rgba(31, 42, 53, 0.10);
  --shadow-sm: 0 10px 25px rgba(31, 42, 53, 0.08);
  --radius: 8px;
  --max: 1180px;
  --ease: cubic-bezier(.2,.8,.2,1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

:target {
  scroll-margin-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg-primary);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

p,
li,
td,
th,
a,
span,
label,
input,
select,
textarea,
button {
  overflow-wrap: break-word;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(31, 42, 53, 0.08);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(var(--max), calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-width: 0;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0;
  text-decoration: none;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  min-width: 0;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand span {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: var(--radius);
  color: #4a5565;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 650;
  transition: background .2s var(--ease), color .2s var(--ease);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(98, 101, 240, 0.08);
}

.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

.nav-dropdown-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(2, minmax(112px, 1fr));
  gap: 4px;
  min-width: 246px;
  padding: 10px;
  border: 1px solid rgba(31, 42, 53, 0.10);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 36px rgba(31, 42, 53, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s var(--ease);
  visibility: hidden;
}

.nav-dropdown:hover .nav-submenu,
.nav-dropdown.is-open .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.nav-submenu a {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
  line-height: 1.15;
  white-space: nowrap;
}

.nav-links .nav-cta {
  margin-left: 6px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  box-shadow: 0 10px 22px rgba(98, 101, 240, 0.18);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta.active {
  color: var(--white);
  background: linear-gradient(135deg, #5356df, #9b4ee7, var(--accent-hover));
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--primary);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
}

.hero {
  min-height: 86vh;
  position: relative;
  display: grid;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 42, 53, 0.92) 0%, rgba(31, 42, 53, 0.72) 46%, rgba(31, 42, 53, 0.20) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: var(--hero-position, center);
  transform: scale(1.01);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  background:
    var(--cognera-section-gradient) top / 100% var(--section-divider-size) no-repeat,
    var(--cognera-section-gradient) bottom / 100% var(--section-divider-size) no-repeat;
  pointer-events: none;
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 0px 0 0px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--white);
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 3px;
  border-radius: var(--radius);
  background: var(--gold);
}

h1 {
  margin: 18px 0 18px;
  font-size: 4.6rem;
  line-height: 1.02;
  font-weight: 850;
  max-width: 820px;
  overflow-wrap: anywhere;
}

.hero .lead {
  max-width: 700px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.25rem;
  overflow-wrap: anywhere;
}

.hero-authority-highlight {
  display: block;
  width: min(100%, 820px);
  max-width: 100%;
  margin-top: 24px;
  color: #ff5a00;
  font-weight: 850;
  line-height: 1.45;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hero-authority-highlight * {
  white-space: normal;
}

.hero-authority-gradient {
  background: linear-gradient(135deg, #fbbf24, #ff5a00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-actions,
.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-trust-action {
  margin-top: 18px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  box-shadow: 0 16px 30px rgba(98, 101, 240, 0.24);
}

a.button.clinical-oversight-button {
  white-space: nowrap;
}

@media (max-width: 460px) {
  a.button.clinical-oversight-button {
    min-height: 44px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: clamp(0.74rem, 3.35vw, 0.86rem);
  }
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
}

.button-quiet {
  color: var(--primary);
  border-color: var(--line-strong);
  background: var(--white);
}

.product-ai-callout-section {
  padding: clamp(34px, 4vw, 50px) 0;
}

.product-ai-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(98, 101, 240, 0.16);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 6% 0%, rgba(98, 101, 240, 0.13), transparent 34%),
    radial-gradient(circle at 96% 100%, rgba(236, 74, 157, 0.12), transparent 32%),
    rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.product-ai-callout .kicker {
  margin-bottom: 10px;
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  letter-spacing: 0;
  text-transform: none;
}

.product-ai-callout h2 {
  max-width: 880px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.band-ink .product-ai-callout h2 {
  color: var(--ink);
}

.product-ai-callout p {
  max-width: 920px;
  margin: 12px 0 0;
  color: var(--slate);
  font-size: 1.05rem;
  line-height: 1.6;
}

.product-ai-callout .button {
  white-space: nowrap;
}

.cookie-consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(640px, calc(100vw - 40px));
  padding: 18px;
  border: 1px solid rgba(98, 101, 240, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 50px rgba(31, 42, 53, 0.18);
}

.cookie-consent[hidden] {
  display: none;
}

.cookie-consent p {
  margin: 0;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.45;
}

.cookie-consent .button {
  min-height: 42px;
  padding: 0 18px;
  white-space: nowrap;
}

.hero-proof {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 920px;
}

.proof-item {
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  min-width: 0;
}

.proof-item strong {
  display: block;
  color: var(--white);
  font-size: 1.34rem;
  line-height: 1.15;
}

.proof-item span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
}

.section {
  position: relative;
  padding: 86px 0;
}
main > .hero,
main > .page-hero,
main .section {
  position: relative;
}

main > .page-hero::before,
main .section::before,
main > .hero::after,
main > .page-hero::after,
main .section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: var(--section-divider-size);
  background: var(--cognera-section-gradient);
  pointer-events: none;
  z-index: 2;
}

main > .page-hero::before,
main .section::before {
  top: 0;
}

main > .hero::after,
main > .page-hero::after,
main .section::after {
  bottom: 0;
}

main > .hero + .section::before,
main > .page-hero + .section::before,
main .section + .section::before {
  content: none;
}
main > .hero::after {
  content: "";
  inset: 0;
  height: auto;
  background:
    var(--cognera-section-gradient) top / 100% var(--section-divider-size) no-repeat,
    var(--cognera-section-gradient) bottom / 100% var(--section-divider-size) no-repeat;
}

.section-tight {
  padding: 56px 0;
}

.band-white {
  background: var(--white);
}

.band-soft {
  background: var(--bg-secondary);
}

.band-ink {
  background: var(--ink);
  color: var(--white);
}
.clinical-authority-note {
  text-align: center;
}

.clinical-authority-note p {
  max-width: 1080px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.94rem, 0.70rem + 0.86vw, 1.48rem);
  line-height: 1.35;
  font-weight: 850;
}

.authority-highlight {
  color: #ff5a00;
}

.layer-four-highlight {
  color: #ff5a00;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section-head {
  max-width: 820px;
  margin-bottom: 34px;
  min-width: 0;
}

.section-head.center {
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#cognera-ai-overview .section-head.center {
  width: min(1120px, 100%);
  max-width: 1120px;
}

#cognera-ai-overview .section-head h2 {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ai-clinician-emphasis {
  display: inline-block;
  color: #ff5a00;
  background: linear-gradient(135deg, #fbbf24, #ff5a00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.28em;
  font-weight: 900;
  line-height: 1.2;
}

#cognera-ai-overview {
  background:
    linear-gradient(135deg, rgba(46, 58, 72, 0.86) 0%, rgba(46, 75, 118, 0.84) 44%, rgba(47, 95, 158, 0.78) 72%, rgba(63, 133, 246, 0.7) 100%),
    url("../images/CHAI.jpeg");
  background-size: cover;
  background-position: center;
}

.kicker {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 1.5rem;
  font-weight: 900;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  font-size: 3rem;
  color: var(--ink);
}

.band-ink h2,
.band-ink h3 {
  color: var(--white);
}

.section-head h2,
.section-head p,
.large-text {
  color: var(--slate);
  font-size: 1.1rem;
}

.hero-large-text {
  font-size: 1.1rem !important;
}

.section-head h2 {
  color: var(--ink);
  font-size: 3rem;
  max-width: 820px;
}

.band-ink .section-head h2,
.band-ink .section-head p,
.band-ink .large-text {
  color: rgba(255, 255, 255, 0.92);
}

.band-ink .section-head h2 {
  color: var(--white);
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 0 rgba(31, 42, 53, 0.02);
  min-width: 0;
}

.band-soft .card {
  background: rgba(255, 255, 255, 0.82);
}

.band-ink .card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.card h3 {
  margin-bottom: 10px;
  font-size: 2rem;
  overflow-wrap: anywhere;
}

.card p {
  margin: 0;
  color: var(--slate);
}

.grid.index-v1-enables-grid {
  width: min(1220px, calc(100vw - 40px));
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.index-v1-enables-grid .card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.index-v1-enables-grid .card h3 {
  color: var(--blue);
  font-size: 1.45rem;
  line-height: 1.16;
}

.index-v1-enables-grid .card strong {
  display: block;
  margin-top: auto;
  padding-top: 16px;
  color: var(--accent);
  font-size: 1.02rem;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .grid.index-v1-enables-grid {
    grid-template-columns: 1fr;
  }
}

.band-ink .card p {
  color: rgba(255, 255, 255, 0.70);
}

.icon-box {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
}

.icon-box svg {
  width: 22px;
  height: 22px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 44px;
  align-items: center;
  min-width: 0;
}

.contact-early-access .section-head {
  max-width: 900px;
}

.contact-three-column-row {
  display: grid;
  grid-template-columns: minmax(210px, 0.82fr) minmax(210px, 0.82fr) minmax(380px, 1.36fr);
  gap: 20px;
  align-items: stretch;
}

.contact-early-access .hs-audience-card,
.contact-form-card {
  height: 100%;
  min-width: 0;
}

.contact-form-card h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.55rem;
}

.contact-form-card p {
  margin: 0 0 18px;
  color: var(--slate);
}
.field-label {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.required-indicator {
  color: var(--accent);
  font-weight: 900;
}

.required-note {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: -8px 0 18px;
  color: var(--slate);
  font-size: 0.9rem;
  font-weight: 750;
}

.contact-form-card .form-grid {
  margin-top: 0;
}

.word-count {
  display: block;
  margin-top: 4px;
  color: var(--slate);
  font-weight: 650;
}

@media (max-width: 1040px) {
  .contact-three-column-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .contact-three-column-row,
  .contact-early-access .form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    grid-column: auto;
  }

  .contact-form-card .button {
    width: 100%;
  }
}

.feature-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--media-position, center);
}

.media-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(31, 42, 53, 0.84);
  backdrop-filter: blur(10px);
  font-weight: 750;
  text-align: center;
}

.split-list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.split-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
  color: var(--slate);
}

.split-list svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  margin-top: 2px;
}

.architecture {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

.layer-card-stack,
.layer-detail-list {
  display: grid;
  gap: 12px;
}

.layer-card,
.layer-detail {
  --layer-color: var(--primary);
}

.layer-card:nth-child(2),
.layer-detail:nth-child(2) {
  --layer-color: var(--accent);
}

.layer-card:nth-child(3),
.layer-detail:nth-child(3) {
  --layer-color: var(--secondary);
}

.layer-card:nth-child(4),
.layer-detail:nth-child(4) {
  --layer-color: #b7791f;
}


.layer-card:nth-child(4) .layer-card-icon,
.layer-card:nth-child(4).is-active .layer-card-icon,
.layer-detail:nth-child(4) .layer-detail-icon,
.layer-card:nth-child(4) span,
.layer-card:nth-child(4) h3,
.layer-detail:nth-child(4) span {
  color: #ff5a00;
}

.layer-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  min-width: 0;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--layer-color);
  border-radius: var(--radius);
  color: inherit;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  appearance: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}

.layer-card:hover,
.layer-card:focus-visible,
.layer-card.is-active {
  border-color: var(--layer-color);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(247, 248, 251, 0.92));
  box-shadow: 0 14px 30px rgba(31, 42, 53, 0.10);
  transform: translateY(-2px);
}

.layer-card:focus-visible {
  outline: 3px solid rgba(98, 101, 240, 0.28);
  outline-offset: 3px;
}

.layer-card.is-active .layer-card-icon {
  color: var(--white);
  background: var(--layer-color);
}

.layer-card > div,
.layer-detail-heading > div {
  min-width: 0;
}

.layer-card-icon,
.layer-detail-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  color: var(--layer-color);
  background: #f7f8fb;
}

.layer-card-icon svg,
.layer-detail-icon svg {
  width: 32px;
  height: 32px;
}

.layer-card span,
.layer-detail span {
  display: block;
  color: var(--layer-color);
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.layer-detail span {
  font-size: 1.55rem;
  line-height: 1.16;
  text-transform: none;
}

.layer-card h3 {
  margin: 5px 0 7px;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.layer-card p,
.layer-detail-intro p,
.layer-detail p {
  margin: 0;
  color: var(--slate);
}

.layer-card p {
  font-size: 0.98rem;
  line-height: 1.45;
}

.layer-detail-panel {
  position: relative;
  overflow-y: auto;
  min-width: 0;
  width: 100%;
  height: var(--layer-stack-height, auto);
  max-height: var(--layer-stack-height, none);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(246, 247, 249, 0.96)),
    radial-gradient(circle at 100% 0, rgba(251, 191, 36, 0.14), transparent 34%);
  box-shadow: var(--shadow-sm);
}

.layer-detail-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--secondary), var(--gold));
}

.layer-detail-intro h3 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: 2rem;
}

.layer-detail-list {
  gap: 22px;
  min-height: 0;
  margin-top: 0;
}

.layer-detail {
  min-width: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.layer-detail[hidden] {
  display: none;
}

.layer-detail.is-active {
  padding-top: 0;
  border-top: 0;
}

.layer-detail:first-child {
  padding-top: 0;
  border-top: 0;
}

.layer-detail-heading {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

.layer-detail h4 {
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.layer-detail p {
  font-size: 1.02rem;
}

.layer-detail-copy-large p {
  font-size: clamp(1.08rem, 1.02rem + 0.22vw, 1.16rem);
  line-height: 1.62;
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

.layer-detail p + p {
  margin-top: 10px;
}

.healscript-showcase {
  overflow: hidden;
}

.hs-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: stretch;
}

.hs-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
}

.hs-narrative {
  padding: 28px;
}

.hs-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hs-narrative h3 {
  margin-bottom: 12px;
  font-size: 1.7rem;
}

.hs-narrative p {
  margin: 0;
  color: var(--slate);
}

.hs-capability-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.hs-capability-list div {
  position: relative;
  padding: 14px 14px 14px 18px;
  border: 1px solid rgba(98, 101, 240, 0.12);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  background: var(--white);
}

.hs-capability-list strong,
.hs-capability-list span {
  display: block;
}

.hs-capability-list strong {
  color: var(--ink);
  font-size: 1rem;
}

.hs-capability-list span {
  margin-top: 4px;
  color: var(--slate);
  font-size: 0.95rem;
}

.hs-dashboard {
  padding: 22px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(31, 42, 53, 0.92), rgba(47, 53, 80, 0.92)),
    radial-gradient(circle at 20% 20%, rgba(98, 101, 240, 0.38), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(236, 74, 157, 0.30), transparent 30%);
}

.hs-dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
}

.hs-dashboard-head span,
.hs-dashboard-head strong {
  display: block;
}

.hs-dashboard-head span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hs-dashboard-head strong {
  margin-top: 4px;
  color: var(--white);
  font-size: 1.04rem;
}

.hs-pulse {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b9f8d3;
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hs-pulse::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55);
  animation: pulseSignal 1.8s infinite;
}

.hs-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hs-ring {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, rgba(31, 42, 53, 0.96) 72%, transparent 73% 100%),
    conic-gradient(var(--color) calc(var(--value) * 1%), rgba(255, 255, 255, 0.16) 0);
  animation: ringFloat 4s ease-in-out infinite;
}

.hs-ring:nth-child(2) {
  animation-delay: .45s;
}

.hs-ring:nth-child(3) {
  animation-delay: .9s;
}

.hs-ring-core {
  text-align: center;
}

.hs-ring-core strong,
.hs-ring-core span {
  display: block;
}

.hs-ring-core strong {
  color: var(--white);
  font-size: 1.55rem;
  line-height: 1;
}

.hs-ring-core span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hs-bars {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.hs-bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
}

.hs-bar-row span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.hs-bar-row em {
  color: var(--white);
  font-style: normal;
  font-weight: 900;
}

.hs-bar {
  grid-column: 1 / -1;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.hs-bar i {
  position: relative;
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  animation: barGrow 1.4s ease-out both;
}

.hs-bar i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  animation: shimmer 2.6s ease-in-out infinite;
}

.hs-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.hs-flow-step {
  position: relative;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.hs-flow-step::after {
  content: "";
  position: absolute;
  top: 30px;
  right: -14px;
  width: 14px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.hs-flow-step:last-child::after {
  display: none;
}

.hs-flow-step span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--accent);
  font-weight: 900;
}

.hs-flow-step h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hs-flow-step p {
  margin: 0;
  color: var(--slate);
  font-size: 0.95rem;
}

.hs-mini-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.hs-mini-cards article {
  min-width: 0;
  padding: 18px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
}

.hs-mini-cards strong,
.hs-mini-cards span {
  display: block;
}

.hs-mini-cards strong {
  font-size: 1rem;
}

.hs-mini-cards span {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.hs-full-content {
  display: grid;
  gap: 30px;
  margin-top: 32px;
}

.hs-section-block {
  position: relative;
  overflow: hidden;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.hs-section-block::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent), var(--gold));
}

.hs-section-block .section-head {
  margin-bottom: 24px;
}

.hs-source-intro {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 247, 249, 0.94)),
    radial-gradient(circle at 10% 10%, rgba(98, 101, 240, 0.12), transparent 34%);
}

.hs-image-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 16px;
  margin-bottom: 26px;
}

.hs-image-strip img {
  width: 100%;
  min-height: 230px;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.hs-benefit-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.hs-benefit-trio article {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(98, 101, 240, 0.14);
  border-radius: var(--radius);
  background: var(--white);
}

.hs-benefit-trio strong,
.hs-benefit-trio span {
  display: block;
}

.hs-benefit-trio strong {
  color: var(--primary);
  font-size: 0.98rem;
}

.hs-benefit-trio span {
  margin-top: 7px;
  color: var(--slate);
  font-size: 0.9rem;
}

.hs-audience-grid,
.hs-module-grid,
.hs-dashboard-groups {
  display: grid;
  gap: 16px;
}

.hs-audience-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hs-module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hs-module-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hs-audience-card,
.hs-module-card,
.hs-dashboard-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(98, 101, 240, 0.13);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(31, 42, 53, 0.06);
}

.hs-module-card {
  display: flex;
  flex-direction: column;
}

.hs-audience-card h3,
.hs-module-card h3,
.hs-dashboard-card h3 {
  color: var(--primary);
  font-size: 1.13rem;
  line-height: 1.22;
}

.hs-audience-card p,
.hs-module-card p,
.hs-audience-card li,
.hs-module-card li {
  color: var(--slate);
  font-size: 1.1rem;
}


.hs-audience-card ul,
.hs-module-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.hs-audience-card li,
.hs-module-card li {
  position: relative;
  padding-left: 20px;
  color: var(--slate);
  font-size: 1.1rem;
  line-height: 1.45;
}

.hs-audience-card li::before,
.hs-module-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.hs-impact {
  margin-top: auto;
  padding-top: 18px;
  color: var(--slate);
  font-size: 0.88rem;
  font-style: italic;
}

.hs-impact::first-letter {
  color: var(--accent);
}

.hs-dark-block {
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(31, 42, 53, 0.96), rgba(47, 53, 80, 0.96)),
    radial-gradient(circle at 10% 10%, rgba(98, 101, 240, 0.36), transparent 34%),
    radial-gradient(circle at 88% 12%, rgba(236, 74, 157, 0.24), transparent 30%);
}

.hs-dark-block .section-head h2,
.hs-dark-block .section-head p {
  color: var(--white);
}

.hs-dark-block .kicker {
  color: #b9f8d3;
}

.hs-metric-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.hs-metric-strip article {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  animation: metricLift 4s ease-in-out infinite;
}

.hs-metric-strip article:nth-child(2n) {
  animation-delay: .35s;
}

.hs-metric-strip article:nth-child(3n) {
  animation-delay: .7s;
}

.hs-metric-strip span,
.hs-metric-strip strong,
.hs-metric-strip em {
  display: block;
}

.hs-metric-strip span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hs-metric-strip strong {
  margin-top: 8px;
  color: var(--white);
  font-size: 1.65rem;
  line-height: 1;
}

.hs-metric-strip em {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-style: normal;
}

.hs-dashboard-groups {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
}

.hs-dashboard-card {
  background: rgba(255, 255, 255, 0.96);
}

.hs-mini-metric {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 10px;
  align-items: center;
  margin-top: 16px;
}

.hs-mini-metric span {
  color: var(--ink);
  font-size: 0.9rem;
}

.hs-mini-metric strong {
  color: var(--primary);
  font-size: 1rem;
}

.hs-mini-metric div {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.hs-mini-metric i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  animation: barGrow 1.4s ease-out both, shimmerBar 3.2s ease-in-out infinite;
}

.hs-mini-metric em {
  grid-column: 1 / -1;
  color: var(--slate);
  font-size: 0.78rem;
  font-style: italic;
}

.hs-integration-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
  gap: 18px;
  align-items: start;
}

.hs-system-stack {
  display: grid;
  gap: 14px;
}

.hs-system-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(98, 101, 240, 0.13);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 30px rgba(98, 101, 240, 0.08);
}

.hs-system-panel h3 {
  color: var(--primary);
  font-size: 1.15rem;
}

.hs-system-panel p {
  margin-top: 2px;
  color: var(--slate);
  font-size: 0.9rem;
}

.hs-system-row,
.hs-progress-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.hs-system-row span,
.hs-progress-row span {
  color: var(--ink);
  font-size: 0.9rem;
}

.hs-system-row strong,
.hs-progress-row strong {
  color: var(--primary);
  font-size: 0.95rem;
}

.hs-progress-track {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.hs-progress-track i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  animation: barGrow 1.4s ease-out both;
}

.hs-panel-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.hs-panel-link:hover {
  color: var(--primary);
}

.hs-flow-full {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hs-ready-band {
  max-width: 780px;
  margin: 24px auto 0;
  padding: 24px;
  border: 1px solid rgba(98, 101, 240, 0.14);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(98, 101, 240, 0.07), rgba(236, 74, 157, 0.07));
  text-align: center;
}

.hs-ready-band h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.45rem;
}

.hs-ready-band p {
  margin: 0 auto 18px;
  color: var(--slate);
}

.hc-deep-dive {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}

.hc-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(98, 101, 240, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 247, 249, 0.94)),
    radial-gradient(circle at 0 0, rgba(236, 74, 157, 0.12), transparent 38%);
}

.hc-hero-panel h2 {
  margin: 6px 0 14px;
  font-size: 2rem;
  line-height: 1.08;
}

.hc-hero-panel p {
  color: var(--slate);
}

.hc-image-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.hc-image-stack img {
  width: 100%;
  height: 270px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.hc-feature-grid,
.hc-scenario-grid,
.hc-dashboard-grid,
.hc-faq-grid {
  display: grid;
  gap: 16px;
}

.hc-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hc-card,
.hc-phone-card,
.hc-scenario-grid article,
.hc-control-board,
.hc-faq-grid details {
  min-width: 0;
  border: 1px solid rgba(98, 101, 240, 0.13);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(31, 42, 53, 0.06);
}

.hc-card {
  padding: 22px;
}

.hc-card h3,
.hc-phone-card h3,
.hc-treatment-panel h3,
.hc-final-cta h3 {
  color: var(--primary);
  font-size: 1.13rem;
}

.hc-card p,
.hc-phone-card p,
.hc-treatment-panel p,
.hc-final-cta p {
  color: var(--slate);
  font-size: 0.95rem;
}

.hc-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.hc-card li {
  position: relative;
  padding-left: 20px;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
}

.hc-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.hc-companion-panel,
.hc-dashboard-suite,
.hc-faq-section {
  padding: 28px;
  border: 1px solid rgba(98, 101, 240, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
}

.hc-flowline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hc-flowline article {
  position: relative;
  min-width: 0;
  padding: 18px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, #2f354f, #1f2a35);
  overflow: hidden;
}

.hc-flowline article::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  animation: hcScan 4s ease-in-out infinite;
}

.hc-flowline span,
.hc-flowline strong {
  position: relative;
  display: block;
}

.hc-flowline span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hc-flowline strong {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.35;
}

.hc-progress,
.hc-overall-progress div {
  height: 8px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.hc-progress i,
.hc-overall-progress i {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  animation: barGrow 1.4s ease-out both, shimmerBar 3s ease-in-out infinite;
}

.hc-overall-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 12px;
  max-width: 720px;
  margin: 18px auto 0;
  padding: 16px;
  border: 1px solid rgba(98, 101, 240, 0.14);
  border-radius: var(--radius);
  background: var(--white);
}

.hc-overall-progress span,
.hc-overall-progress strong {
  color: var(--ink);
  font-weight: 850;
}

.hc-overall-progress div {
  grid-column: 1 / -1;
  background: #e5e7eb;
}

.hc-scenario-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.hc-scenario-grid article {
  padding: 16px;
  animation: metricLift 4s ease-in-out infinite;
}

.hc-scenario-grid article:nth-child(2n) {
  animation-delay: .35s;
}

.hc-scenario-grid strong,
.hc-scenario-grid span {
  display: block;
}

.hc-scenario-grid strong {
  color: var(--primary);
  font-size: 0.94rem;
}

.hc-scenario-grid span {
  margin-top: 8px;
  color: var(--slate);
  font-size: 0.86rem;
}

.hc-small-grid {
  margin-top: 16px;
}

.hc-dashboard-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hc-phone-card {
  padding: 22px;
  background:
    linear-gradient(180deg, var(--white), rgba(246, 247, 249, 0.96));
}

.hc-mood-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
}

.hc-mood-grid span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--primary);
  background: rgba(98, 101, 240, 0.09);
  font-size: 0.8rem;
  font-weight: 850;
}

.hc-wave-bars,
.hc-week-chart {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 112px;
  margin: 16px 0;
  padding: 16px;
  border-radius: var(--radius);
  background: #f3f6fa;
}

.hc-wave-bars i,
.hc-week-chart i {
  flex: 1;
  height: var(--h);
  min-height: 18px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--accent), var(--primary));
  animation: hcBarPulse 3.2s ease-in-out infinite;
}

.hc-week-chart i {
  background: linear-gradient(180deg, #10b981, var(--primary));
}

.hc-phone-card strong {
  display: block;
  color: var(--ink);
  font-size: 0.9rem;
}

.hc-sleep-score {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  margin: 16px auto;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, var(--white) 68%, transparent 69%),
    conic-gradient(#10b981 94%, #dbe4ee 0);
  animation: ringFloat 4s ease-in-out infinite;
}

.hc-sleep-score strong,
.hc-sleep-score span {
  display: block;
  text-align: center;
}

.hc-sleep-score strong {
  color: var(--ink);
  font-size: 2rem;
}

.hc-sleep-score span {
  color: var(--slate);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hc-journal-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.hc-journal-list span {
  padding: 12px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  color: var(--slate);
  background: #f7f8fb;
  font-size: 0.88rem;
}

.hc-treatment-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 22px;
  align-items: center;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(98, 101, 240, 0.14);
  border-radius: var(--radius);
  background: var(--white);
}

.hc-treatment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hc-treatment-list span {
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--primary);
  background: rgba(98, 101, 240, 0.09);
  font-size: 0.82rem;
  font-weight: 850;
}

.hc-progress-ring {
  display: grid;
  place-items: center;
  width: 170px;
  height: 170px;
  margin: 0 auto;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, var(--white) 68%, transparent 69%),
    conic-gradient(var(--primary) calc(var(--value) * 1%), #dbe4ee 0);
  animation: ringFloat 4s ease-in-out infinite;
}

.hc-progress-ring div {
  text-align: center;
}

.hc-progress-ring strong,
.hc-progress-ring span {
  display: block;
}

.hc-progress-ring strong {
  color: var(--ink);
  font-size: 2rem;
}

.hc-progress-ring span {
  max-width: 96px;
  color: var(--slate);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.hc-privacy-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
  gap: 22px;
  align-items: start;
  padding: 28px;
  border: 1px solid rgba(98, 101, 240, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 247, 249, 0.96)),
    radial-gradient(circle at 100% 0, rgba(251, 191, 36, 0.14), transparent 34%);
}

.hc-privacy-section h2 {
  margin: 8px 0 12px;
  font-size: 2rem;
  line-height: 1.12;
}

.hc-privacy-section p,
.hc-privacy-list span {
  color: var(--slate);
}

.hc-privacy-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.hc-privacy-list article {
  padding: 14px;
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  background: var(--white);
}

.hc-privacy-list strong,
.hc-privacy-list span {
  display: block;
}

.hc-privacy-list span {
  margin-top: 5px;
  font-size: 0.9rem;
}

.hc-control-board {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.hc-control-board div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  background: #f7f8fb;
}

.hc-control-board span {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 780;
}

.hc-control-board em {
  position: relative;
  display: inline-flex;
  min-width: 64px;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
}

.hc-faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hc-faq-grid details {
  padding: 0;
  overflow: hidden;
}

.hc-faq-grid summary {
  cursor: pointer;
  padding: 16px;
  color: var(--ink);
  font-weight: 850;
  list-style: none;
}

.hc-faq-grid summary::-webkit-details-marker {
  display: none;
}

.hc-faq-grid summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 900;
}

.hc-faq-grid details[open] summary::after {
  content: "-";
}

.hc-faq-grid p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--slate);
  font-size: 0.94rem;
}

.hc-support-callout {
  display: grid;
  justify-items: center;
  gap: 6px;
  margin-top: 22px;
  text-align: center;
}

.hc-support-callout p {
  margin: 0;
  color: var(--slate);
  font-weight: 850;
}

.hc-final-cta {
  max-width: 760px;
  margin: 24px auto 0;
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  box-shadow: var(--shadow-sm);
}

.hc-final-cta h3,
.hc-final-cta p {
  color: var(--white);
}

.hc-final-cta .button {
  margin-top: 8px;
  background: var(--white);
  color: var(--primary);
}

@keyframes hcScan {
  0% { transform: translateX(-120%); }
  55%, 100% { transform: translateX(120%); }
}

@keyframes hcBarPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.92; }
  50% { transform: scaleY(0.88); opacity: 1; }
}

@keyframes pulseSignal {
  70% { box-shadow: 0 0 0 11px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes metricLift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes ringFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes barGrow {
  from { width: 0; }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes shimmerBar {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}

.timeline {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}

.timeline-row {
  display: grid;
  grid-template-columns: 148px 1fr;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.timeline-row:last-child {
  border-bottom: 0;
}

.timeline-label {
  display: grid;
  place-items: center;
  padding: 14px;
  font-weight: 900;
  color: var(--ink);
  background: var(--bg-primary);
}

.timeline-track {
  display: grid;
  grid-template-columns: 0.28fr 1fr 0.28fr 1fr 0.28fr;
  gap: 8px;
  align-items: center;
  padding: 18px;
}

.session,
.gap,
.continuous {
  min-height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  font-size: 0.8rem;
  font-weight: 850;
  text-align: center;
}

.timeline-row:last-child .session {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  box-shadow: 0 16px 30px rgba(98, 101, 240, 0.24);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}

.timeline-row:last-child .session:hover {
  transform: translateY(-2px);
}

.timeline-row:first-child .session {
  color: var(--white);
  background: var(--primary);
}

.gap {
  color: #98a2b3;
  background: #eef1f5;
}

.continuous {
  color: var(--ink);
  background: linear-gradient(90deg, rgba(98, 101, 240, 0.18), rgba(236, 74, 157, 0.16), rgba(251, 191, 36, 0.18));
}

.audience-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 250px;
}

.audience-card .role {
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.audience-card h3 {
  margin-top: 8px;
}

.text-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 850;
  text-decoration: none;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.metric strong {
  display: block;
  color: var(--primary);
  font-size: 2rem;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 10px;
  color: var(--slate);
  font-size: 0.95rem;
}

.quote-band {
  padding: 32px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), #2f3550 55%, #4b2e70);
  margin: 0 auto;
  max-width: 700px;
}

.quote-band p {
  margin: 0;
  max-width: 600px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.35rem;
}

.page-hero {
  position: relative;
  padding: 52px 0 72px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(18, 27, 38, 0.76) 0%, rgba(18, 27, 38, 0.58) 48%, rgba(18, 27, 38, 0.32) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: var(--hero-position, center);
}



.page-hero.hero-has-media {
  isolation: isolate;
  overflow: hidden;
  background: #1f2a35;
}

.page-hero.hero-has-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  height: auto;
  background: linear-gradient(90deg, rgba(18, 27, 38, 0.86) 0%, rgba(18, 27, 38, 0.58) 48%, rgba(18, 27, 38, 0.14) 100%);
  pointer-events: none;
}

.page-hero.hero-has-media .page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--hero-position, center);
}
.page-hero.hero-has-media .container {
  z-index: 2;
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 850px;
  margin: 14px 0 18px;
  font-size: 3.7rem;
  overflow-wrap: anywhere;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.17rem;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--ink);
  background: var(--bg-secondary);
  font-size: 0.84rem;
  text-transform: uppercase;
}

td {
  color: var(--slate);
}

tr:last-child td {
  border-bottom: 0;
}

.form-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
  font-size: 0.92rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(31, 42, 53, 0.16);
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.contact-form-card input::placeholder,
.contact-form-card textarea::placeholder {
  color: rgba(107, 120, 133, 0.78);
  font-size: 0.86rem;
  line-height: 1.25;
  opacity: 1;
}

.contact-form-card input[type="email"]::placeholder,
.contact-form-card input[type="tel"]::placeholder {
  font-size: 0.78rem;
}

.contact-form-card select:invalid {
  color: rgba(107, 120, 133, 0.78);
  font-size: 0.86rem;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.site-footer {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
}

@media (min-width: 1041px) {
  body {
    padding-bottom: 154px;
  }

  .site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
  }
}

@media (min-width: 1180px) {
  body {
    padding-bottom: 140px;
  }
}

.footer-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  column-gap: 10px;
  row-gap: 2px;
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 0;
}

.footer-brand a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: none;
}

.footer-brand img {
  width: 34px;
  height: 34px;
}

.footer-brand p,
.footer-bottom {
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  line-height: 1.25;
}

.footer-brand p {
  font-size: 0.78rem;
}

.footer-links {
  display: block;
  min-width: 0;
}

.footer-links h3 {
  margin: 0 0 4px;
  color: var(--white);
  font-size: 0.82rem;
  line-height: 1.15;
}

.footer-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 18px;
  row-gap: 2px;
  align-items: center;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  gap: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  text-decoration: none;
  line-height: 1.22;
  white-space: nowrap;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-link-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.footer-bottom {
  grid-column: 1 / -1;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.72rem;
  text-align: center;
}

@media (max-width: 1040px) {
  .site-header {
    position: sticky;
  }

  .nav-shell {
    width: calc(100% - 32px);
    min-height: 68px;
    gap: 12px;
  }

  .brand {
    max-width: calc(100% - 58px);
  }

  .brand span {
    font-size: 1rem;
  }

  .menu-toggle {
    display: inline-flex !important;
    flex: 0 0 44px;
    position: relative;
    z-index: 70;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 65;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    justify-content: space-between;
    min-height: 48px;
  }

  .nav-item,
  .nav-dropdown {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .nav-dropdown::after,
  .nav-dropdown-toggle::after {
    display: none;
  }

  .nav-dropdown-toggle {
    width: 100%;
  }

  .nav-submenu {
    position: static;
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
    width: 100%;
    margin: 0 0 8px;
    padding: 6px 0 4px 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
    max-height: none;
    overflow: visible;
    transition: none;
  }

  .nav-dropdown.is-open .nav-submenu {
    display: grid;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .nav-submenu a {
    justify-content: flex-start;
    min-height: 40px;
    padding: 9px 12px;
    font-size: 0.84rem;
    line-height: 1.2;
    white-space: normal;
    background: rgba(98, 101, 240, 0.05);
  }

  .nav-links .nav-cta {
    margin-left: 0;
    justify-content: center;
  }
  .footer-brand a,
  .footer-links a,
  .text-link,
  .hs-panel-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .footer-links a {
    width: 100%;
  }

  .architecture {
    grid-template-columns: 1fr;
  }

  .layer-card-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {


  .nav-shell,
  .container,
  .hero-inner,
  .footer-shell {
    width: 100%;
    max-width: var(--max);
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-content,
  .hero h1,
  .hero .lead,
  .hero-actions,
  .hero-proof {
    width: 100%;
    max-width: 100%;
  }

  .brand img {
    width: 30px;
    height: 30px;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .hero-inner {
    padding: 52px 0 46px;
  }

  .hero h1 {
    font-size: 2.05rem;
    line-height: 1.08;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .hero-actions .button {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 0.9rem;
  }

  .proof-item {
    min-height: auto;
  }

  .product-ai-callout {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .product-ai-callout .button {
    width: 100%;
  }

  .cookie-consent {
    right: 14px;
    bottom: 14px;
    grid-template-columns: 1fr;
    width: calc(100vw - 28px);
  }

  .cookie-consent .button {
    width: 100%;
  }

  .proof-item strong {
    font-size: 1.12rem;
  }

  .eyebrow {
    font-size: 0.75rem;
  }

  .eyebrow::before {
    width: 28px;
  }

  .hero .lead,
  .page-hero p,
  .section-head p,
  .large-text {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-proof,
  .hs-chart-grid,
  .hs-benefit-trio,
  .hs-flow,
  .hs-mini-cards,
  .hs-audience-grid,
  .hs-module-grid,
  .hs-module-grid-compact,
  .hs-dashboard-groups,
  .hs-metric-strip,
  .hc-hero-panel,
  .hc-image-stack,
  .hc-feature-grid,
  .hc-flowline,
  .hc-scenario-grid,
  .hc-dashboard-grid,
  .hc-treatment-panel,
  .hc-privacy-section,
  .hc-faq-grid,
  .layer-card-stack,
  .grid-2,
  .grid-3,
  .grid-4,
  .metric-grid,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    justify-items: center;
  }

  h2 {
    font-size: 2.1rem;
  }

  .section-head h2 {
    font-size: 2.1rem;
  }

  .kicker {
    font-size: 0.9rem;
  }

  .page-hero {
    padding: 34px 0 50px;
  }

  .page-hero h1 {
    font-size: 2.05rem;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .section {
    padding: 54px 0;
  }

  .architecture,
  .layer,
  .timeline-row,
  .timeline-track {
    grid-template-columns: 1fr;
  }

  .timeline-track {
    gap: 10px;
  }

  .quote-band {
    padding: 28px;
  }

  .quote-band p {
    font-size: 1.08rem;
  }

  .feature-media {
    aspect-ratio: 16 / 11;
  }

  .media-caption {
    position: static;
    border-radius: 0;
  }

  .card,
  .form-card,
  .layer-card,
  .layer-detail-panel,
  .layer,
  .hs-narrative,
  .hs-dashboard,
  .hs-section-block,
  .hs-audience-card,
  .hs-module-card,
  .hs-dashboard-card,
  .hs-system-panel,
  .hs-ready-band,
  .hc-hero-panel,
  .hc-card,
  .hc-companion-panel,
  .hc-dashboard-suite,
  .hc-phone-card,
  .hc-treatment-panel,
  .hc-privacy-section,
  .hc-control-board,
  .hc-faq-section,
  .hc-final-cta,
  .hs-flow-step,
  .hs-mini-cards article,
  .metric,
  .quote-band {
    padding: 20px;
  }

  .hs-flow-step::after {
    display: none;
  }

  .hs-dashboard-head {
    align-items: flex-start;
  }

  .hc-hero-panel h2,
  .hc-privacy-section h2 {
    font-size: 1.75rem;
  }

  .hc-progress-ring {
    width: 150px;
    height: 150px;
  }

  table {
    min-width: 660px;
  }

  th,
  td {
    padding: 13px 14px;
  }

  .footer-brand,
  .footer-links,
  .footer-bottom {
    text-align: center;
  }

  .footer-brand a {
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .contact-form-card input::placeholder,
  .contact-form-card textarea::placeholder {
    font-size: 0.8rem;
  }

  .contact-form-card input[type="email"]::placeholder,
  .contact-form-card input[type="tel"]::placeholder {
    font-size: 0.7rem;
  }

  .contact-form-card select:invalid {
    font-size: 0.8rem;
  }

  .nav-shell,
  .container,
  .hero-inner,
  .footer-shell {
    width: 100%;
    max-width: none;
    padding-left: 12px;
    padding-right: 12px;
  }

  .nav-links {
    left: 12px;
    right: 12px;
    top: 72px;
    padding: 10px;
  }

  .nav-links a {
    min-height: 44px;
    padding: 0 10px;
    font-size: 0.94rem;
  }

  .nav-submenu {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .hero-content,
  .hero h1,
  .hero .lead,
  .hero-actions,
  .hero-proof,
  .page-hero h1,
  .page-hero p,
  .hero-authority-highlight {
    width: calc(100vw - 64px);
    max-width: 360px;
  }

  .hero h1 {
    font-size: 1.58rem;
  }

  .eyebrow {
    align-items: flex-start;
    white-space: normal;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: calc(100vw - 64px);
    max-width: 360px;
    overflow: hidden;
  }

  .hero-actions .button {
    width: 100%;
    max-width: 100%;
  }

  .page-hero h1 {
    font-size: 1.7rem;
  }

  .page-hero {
    padding-bottom: 74px;
  }

  .section-head,
  .section-head h2,
  .section-head p,
  .card,
  .form-card,
  .quote-band,
  .hs-section-block,
  .hs-ready-band,
  .hs-source-exact,
  .hc-deep-dive,
  .hc-feature-grid,
  .hc-card,
  .hc-source-exact,
  .hc-hero-panel,
  .hc-companion-panel,
  .hc-dashboard-suite,
  .hc-privacy-section,
  .hc-faq-section,
  .hc-final-cta {
    max-width: calc(100vw - 48px);
  }

  .architecture,
  .layer-card-stack,
  .layer-card,
  .layer-detail-panel {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .hs-section-block,
  .hs-section-block > *,
  .hs-source-exact,
  .hs-source-exact > *,
  .hc-deep-dive,
  .hc-deep-dive > *,
  .hc-feature-grid,
  .hc-card,
  .hc-source-exact,
  .hc-source-exact > * {
    min-width: 0;
    max-width: 100%;
  }

  .hc-card h3,
  .hc-card p,
  .hc-card li,
  .hs-section-block h3,
  .hs-section-block p,
  .hs-section-block li {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 380px) {
  .brand span {
    font-size: 0.86rem;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 1.62rem;
  }

  .button {
    min-height: 44px;
    font-size: 0.9rem;
  }

  .card,
  .form-card,
  .layer-card,
  .layer-detail-panel,
  .layer,
  .hs-narrative,
  .hs-dashboard,
  .hs-section-block,
  .hs-audience-card,
  .hs-module-card,
  .hs-dashboard-card,
  .hs-system-panel,
  .hs-ready-band,
  .hc-hero-panel,
  .hc-card,
  .hc-companion-panel,
  .hc-dashboard-suite,
  .hc-phone-card,
  .hc-treatment-panel,
  .hc-privacy-section,
  .hc-control-board,
  .hc-faq-section,
  .hc-final-cta,
  .hs-flow-step,
  .hs-mini-cards article,
  .metric,
  .quote-band {
    padding: 16px;
  }

  .hc-mood-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hc-wave-bars,
  .hc-week-chart {
    gap: 5px;
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-pulse::before,
  .hs-ring,
  .hs-bar i,
  .hs-bar i::after,
  .hc-flowline article::before,
  .hc-progress i,
  .hc-overall-progress i,
  .hc-scenario-grid article,
  .hc-wave-bars i,
  .hc-week-chart i,
  .hc-sleep-score,
  .hc-progress-ring {
    animation: none;
  }
}

.layer-detail-icon {
  width: 46px;
  height: 46px;
  color: var(--white);
  background: var(--layer-color);
}

.layer-detail-icon svg {
  width: 32px;
  height: 32px;
}

.layer-detail span {
  font-size: 1.55rem;
  line-height: 1.16;
}

@media (max-width: 1040px) {
  .layer-detail-panel {
    height: auto;
    max-height: none;
  }
}
.section-head.center.platform-architecture-head,
.platform-card-grid {
  --platform-wide: min(1440px, calc(100vw - 40px));
  width: var(--platform-wide);
  max-width: var(--platform-wide);
  margin-left: calc((100% - var(--platform-wide)) / 2);
  margin-right: calc((100% - var(--platform-wide)) / 2);
  transform: none;
}

.section-head.center.platform-architecture-head h2,
.section-head.center.platform-architecture-head p {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.platform-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.platform-card-grid .card {
  padding-left: 20px;
  padding-right: 20px;
}

.card-title-nowrap h3 {
  white-space: nowrap;
}


@media (max-width: 1040px) {
  .platform-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {


  .card-title-nowrap h3 {
    font-size: 1.35rem;
  }
}

@media (max-width: 520px) {
  .card-title-nowrap h3 {
    font-size: 1.08rem;
  }
}

@media (max-width: 380px) {
  .card-title-nowrap h3 {
    font-size: 0.9rem;
  }
}

/* Homepage outcomes boxes */
.outcomes-section .section-head {
  margin-bottom: 0;
}

.outcome-boxes {
  --platform-wide: min(1440px, calc(100vw - 40px));
  display: grid;
  width: var(--platform-wide);
  max-width: var(--platform-wide);
  gap: 24px;
  margin-top: 34px;
  margin-left: calc((100% - var(--platform-wide)) / 2);
  margin-right: calc((100% - var(--platform-wide)) / 2);
}

.outcome-group,
.outcome-ai-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--white), rgba(246, 247, 249, 0.92));
  box-shadow: var(--shadow-sm);
}

.outcome-group h3,
.outcome-ai-card h3 {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: clamp(1.55rem, 1.28rem + 0.72vw, 2rem);
  line-height: 1.08;
  font-weight: 900;
}

.outcome-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.outcome-group-clinical .outcome-card-grid,
.outcome-group-engagement .outcome-card-grid,
.outcome-group-operations .outcome-card-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.outcome-group-care .outcome-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.outcome-group-clinical .outcome-card,
.outcome-group-engagement .outcome-card,
.outcome-group-operations .outcome-card {
  grid-column: span 2;
}

.outcome-group-engagement .outcome-card:nth-child(4) {
  grid-column: 3 / span 2;
}


.outcome-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(98, 101, 240, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
}


.outcome-card h4 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1.22;
}

.outcome-card p {
  margin: 0;
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.5;
}

.outcome-card strong {
  display: block;
  margin-top: auto;
  padding-top: 12px;
  color: var(--accent);
  font-size: 1.04rem;
  line-height: 1.35;
}

.outcome-ai-card {
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), #38425d 55%, var(--primary));
}

.outcome-ai-card h3 {
  color: var(--white);
}

.outcome-ai-card p {
  width: 100%;
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 0.98rem + 0.45vw, 1.22rem);
  line-height: 1.48;
  overflow-wrap: break-word;
}

.outcome-ai-foundation-card {
  color: var(--white);
  border-color: rgba(143, 184, 255, 0.28);
  background:
    linear-gradient(135deg, rgba(46, 58, 72, 0.86) 0%, rgba(55, 76, 108, 0.82) 42%, rgba(57, 108, 174, 0.76) 76%, rgba(80, 146, 248, 0.68) 100%),
    url("../images/CHAI.jpeg");
  background-size: cover;
  background-position: center;
  box-shadow: 0 22px 48px rgba(31, 42, 53, 0.24);
}

.outcome-ai-foundation-card h3 {
  color: var(--white);
}

.outcome-ai-foundation-card p {
  color: rgba(255, 255, 255, 0.9);
}

.ai-access-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.48fr);
  gap: 44px;
  align-items: center;
}

.ai-access-section .section-head {
  margin-bottom: 0;
}

.ai-access-section .section-head h2 {
  max-width: 820px;
}

.ai-access-section .section-head p {
  max-width: 720px;
}

.ai-access-actions {
  display: grid;
  gap: 18px;
  justify-items: start;
}

.ai-access-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ai-access-partner {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(248, 250, 252, 0.86);
}

.ai-access-partner span {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ai-access-partner strong {
  color: var(--ink);
  font-size: 1.05rem;
}

@media (max-width: 1040px) {
  .ai-access-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 720px) {


  .ai-access-buttons,
  .ai-access-buttons .button {
    width: 100%;
  }
}


@media (max-width: 1040px) {
  .outcome-card-grid,
  .outcome-group-clinical .outcome-card-grid,
  .outcome-group-engagement .outcome-card-grid,
  .outcome-group-care .outcome-card-grid,
  .outcome-group-operations .outcome-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outcome-group-clinical .outcome-card,
  .outcome-group-engagement .outcome-card,
  .outcome-group-operations .outcome-card,
  .outcome-group-clinical .outcome-card:nth-child(4),
  .outcome-group-engagement .outcome-card:nth-child(4),
  .outcome-group-operations .outcome-card:nth-child(4),
  .outcome-group-operations .outcome-card:nth-child(5) {
    grid-column: auto;
  }
}

@media (max-width: 720px) {


  .outcome-group,
  .outcome-ai-card {
    padding: 18px;
  }

  .outcome-card-grid,
  .outcome-group-clinical .outcome-card-grid,
  .outcome-group-engagement .outcome-card-grid,
  .outcome-group-care .outcome-card-grid,
  .outcome-group-operations .outcome-card-grid {
    grid-template-columns: 1fr;
  }

  .outcome-group h3,
  .outcome-ai-card h3 {
    font-size: 1.42rem;
  }
}

/* Responsive image presentation refinements */
@media (max-width: 1040px) {
  .hero::before,
  .page-hero {
    background-position: var(--hero-position-mobile, var(--hero-position, center));
  }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }


  .feature-media {
    aspect-ratio: auto;
    background: var(--bg-secondary);
  }

  .feature-media img {
    height: auto;
    object-fit: contain;
  }

  .media-caption {
    position: static;
    border-radius: 0;
  }
}

@media (max-width: 720px) {


  .hero::before,
  .page-hero {
    background-size: cover;
  }
}
/* Mobile and tablet compatibility refinements */
@media (max-width: 1040px) {
  .grid-3,
  .grid-4,
  .metric-grid,
  .hs-module-grid,
  .hs-module-grid-compact,
  .hs-dashboard-groups,
  .hs-metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card h3 {
    font-size: 1.55rem;
    line-height: 1.18;
    overflow-wrap: anywhere;
  }

  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
  }

  table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
  }

  th,
  td {
    overflow-wrap: anywhere;
  }

  .healscript-showcase,
  .hs-section-block {
    overflow: visible;
  }

  .hs-grid,
  .hs-section-block .section-head,
  .hs-integration-layout {
    grid-template-columns: 1fr;
  }

  .hs-system-stack,
  .hs-system-panel {
    width: 100%;
    max-width: 100%;
  }

  .audience-card {
    min-height: auto;
  }

  .hc-mood-grid {
    grid-template-columns: repeat(2, minmax(70px, 1fr));
  }
}

@media (max-width: 720px) {


  h2,
  .section-head h2 {
    overflow-wrap: anywhere;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .metric-grid,
  .platform-card-grid,
  .hs-module-grid,
  .hs-module-grid-compact,
  .hs-dashboard-groups,
  .hs-metric-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .card h3 {
    font-size: 1.35rem;
  }

  .layer-card h3,
  .layer-detail-intro h3 {
    font-size: 1.45rem;
  }

  th,
  td {
    padding: 10px 8px;
    font-size: 0.82rem;
  }
}

@media (max-width: 520px) {
  .section-head.center.platform-architecture-head,
  .platform-card-grid,
  .outcome-boxes {
    --platform-wide: 100%;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .platform-card-grid .card {
    padding-left: 16px;
    padding-right: 16px;
  }

  h2,
  .section-head h2 {
    font-size: 1.8rem;
  }

  .card h3 {
    font-size: 1.18rem;
  }

  .card-title-nowrap h3 {
    font-size: 0.9rem;
  }

  .layer-card h3,
  .layer-detail-intro h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 380px) {
  h2,
  .section-head h2 {
    font-size: 1.62rem;
  }

  .card h3 {
    font-size: 1.08rem;
  }

  .card-title-nowrap h3 {
    font-size: 0.82rem;
  }
}

a.button.button-primary.clinical-oversight-button {
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}

.section-head h2.platform-loop-nowrap {
  width: max-content;
  max-width: none !important;
  margin-left: auto;
  margin-right: auto;
  white-space: nowrap !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
  font-size: clamp(0.88rem, 5.05vw, 3rem) !important;
}

@media (max-width: 520px) {
  .clinical-oversight-actions {
    width: 100% !important;
    max-width: 100% !important;
    justify-content: center !important;
    justify-items: center;
    overflow: visible !important;
  }

  .clinical-oversight-actions .clinical-oversight-button {
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0;
    min-height: 42px;
    padding-left: 6px !important;
    padding-right: 6px !important;
    font-size: clamp(0.68rem, 3.05vw, 0.82rem) !important;
    line-height: 1.1;
  }
}

.card:has(> .icon-box + h3) {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 14px;
  row-gap: 10px;
  align-items: center;
}

.card:has(> .icon-box + h3) > .icon-box {
  grid-column: 1;
  grid-row: 1;
  margin-bottom: 0;
}

.card:has(> .icon-box + h3) > .icon-box + h3 {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  margin: 0;
}

.card:has(> .icon-box + h3) > :nth-child(n+3) {
  grid-column: 1 / -1;
}
