:root {
  --ink: #090909;
  --ink-2: #17110f;
  --paper: #fffaf8;
  --white: #ffffff;
  --wash: #f5efec;
  --soft: #fbf7f4;
  --muted: #675f5b;
  --muted-dark: rgba(255, 255, 255, 0.72);
  --line: rgba(9, 9, 9, 0.12);
  --line-dark: rgba(255, 255, 255, 0.16);
  --red: #df1718;
  --red-dark: #b90f10;
  --red-soft: #fff0ef;
  --red-line: rgba(223, 23, 24, 0.22);
  --red-shadow: rgba(223, 23, 24, 0.12);
  --green: #0e7d55;
  --blue: #245cff;
  --radius: 8px;
  --shadow: 0 32px 80px rgba(0, 0, 0, 0.18);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: var(--wash);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: var(--font);
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

/* Headlines must never break mid-word (keeps serif words whole on mobile) */
h1,
h2,
h3 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

p {
  overflow-wrap: break-word;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: min(1480px, calc(100% - 32px));
  margin: 12px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.09);
  backdrop-filter: blur(26px) saturate(1.1);
}

body[data-view="start"] .topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  width: min(1480px, calc(100% - 44px));
  margin: 0;
  transform: translateX(-50%);
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body[data-view="start"][data-scrolled="true"] .topbar {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 250, 248, 0.9);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(24px) saturate(1.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  width: clamp(184px, 17vw, 238px);
  min-height: 48px;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  color: #fff;
  overflow: hidden;
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 192px;
  height: auto;
  filter: none;
}

body[data-view="start"] .brand-logo {
  filter: invert(1) grayscale(1) brightness(2.2) drop-shadow(0 3px 12px rgba(0, 0, 0, 0.46));
}

body[data-view="start"][data-scrolled="true"] .brand-logo {
  filter: none;
}

.site-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.2vw, 34px);
}

.site-links a {
  color: #201b19;
  font-size: 13px;
  font-weight: 860;
  text-decoration: none;
  white-space: nowrap;
}

body[data-view="start"] .site-links a {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

body[data-view="start"] .site-links {
  justify-self: center;
  width: fit-content;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  background: rgba(7, 7, 7, 0.68);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

body[data-view="start"][data-scrolled="true"] .site-links {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body[data-view="start"][data-scrolled="true"] .site-links a {
  color: #201b19;
  text-shadow: none;
}

.site-links a:hover {
  color: var(--red);
}

body[data-view="start"] .site-links a:hover {
  color: #fff;
  opacity: 0.78;
}

.utility-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  padding: 5px;
  color: #fff;
  background: #070707;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.utility-pill a,
.icon-button {
  display: inline-flex;
  min-width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.utility-pill a {
  padding: 0 12px;
}

.icon-button:hover,
.utility-pill a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.search-glyph,
.globe-glyph {
  position: relative;
  display: block;
  width: 16px;
  height: 16px;
}

.search-glyph::before {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 50%;
  left: 1px;
  top: 1px;
}

.search-glyph::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  right: 0;
  bottom: 2px;
  transform: rotate(45deg);
}

.globe-glyph {
  border: 2px solid currentColor;
  border-radius: 50%;
}

.globe-glyph::before,
.globe-glyph::after {
  content: "";
  position: absolute;
  inset: 3px auto 3px 50%;
  width: 2px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: currentColor;
  opacity: 0.78;
}

.globe-glyph::after {
  inset: 50% 2px auto;
  width: auto;
  height: 2px;
  transform: translateY(-50%);
}

.stage-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

body[data-view="start"] .stage-nav,
body[data-view="start"] .ghost-button {
  display: none;
}

body:not([data-view="start"]) .utility-pill {
  display: none;
}

body:not([data-view="start"]) .topbar {
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: clamp(22px, 3vw, 54px);
}

body:not([data-view="start"]) .site-links {
  justify-content: flex-start;
  min-width: 0;
  gap: clamp(18px, 2vw, 34px);
}

.stage-pill {
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid rgba(9, 9, 9, 0.1);
  border-radius: 999px;
  color: #6d625e;
  background: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.stage-pill.is-active {
  border-color: rgba(223, 23, 24, 0.34);
  color: var(--red-dark);
  background: #fff1f0;
}

.stage-pill.is-done {
  border-color: rgba(14, 125, 85, 0.32);
  color: #087048;
  background: #eef8f3;
}

.mega-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) repeat(4, minmax(120px, 0.55fr));
  gap: 18px;
  align-items: end;
  padding: 22px;
  border-radius: 10px;
  color: #fff;
  background: rgba(7, 7, 7, 0.94);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 170ms ease, transform 170ms ease;
  backdrop-filter: blur(18px);
}

body:not([data-view="start"]) .mega-panel {
  display: none;
}

.topbar:hover .mega-panel,
.topbar:focus-within .mega-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.mega-panel span,
.mega-panel a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
}

.mega-panel strong {
  display: block;
  margin-top: 14px;
  max-width: 420px;
  color: #fff;
  font-size: 26px;
  line-height: 1;
}

.mega-logo {
  display: block;
  width: min(210px, 100%);
  height: auto;
  filter: invert(1) grayscale(1) brightness(2.1);
  opacity: 0.92;
}

.mega-panel p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 700;
}

.mega-panel a {
  display: grid;
  min-height: 74px;
  align-content: end;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  padding-left: 14px;
}

main {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 76px;
}

body[data-view="start"] main {
  width: 100%;
  padding: 0 0 78px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: viewIn 420ms ease both;
}

@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(48px, 4.1vw, 66px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.005em;
}

h2 {
  margin-bottom: 0;
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(29px, 2.4vw, 43px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0;
  font-size: clamp(19px, 1.34vw, 24px);
  line-height: 1.16;
  font-weight: 760;
  letter-spacing: 0;
}

.button,
.ghost-button,
.mini-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 18px;
  font-weight: 950;
  text-decoration: none;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease, border-color 170ms ease;
}

.button:hover,
.ghost-button:hover,
.mini-button:hover,
.condition-card:hover,
.redaction-item:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--ink);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
}

.button-primary:hover {
  background: #2a2421;
}

.hero .button-primary {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.hero .button-primary:hover {
  background: #f2f0ee;
}

.button-quiet {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
}

.ghost-button {
  min-height: 40px;
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.wide-action {
  width: 100%;
}

.hero {
  position: relative;
  min-height: clamp(440px, 60vh, 560px);
  overflow: hidden;
  background: #070707;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  background: var(--wash);
  transform: translateY(50%);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.68) 38%, rgba(0, 0, 0, 0.22) 68%, rgba(0, 0, 0, 0.06) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08) 56%, rgba(0, 0, 0, 0.42));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  width: min(1480px, calc(100% - 44px));
  margin-inline: auto;
  min-height: inherit;
  padding: clamp(80px, 11vh, 116px) 0 clamp(56px, 8vh, 88px);
  color: #fff;
}

.hero h1 {
  max-width: 860px;
  color: #fff;
}

.hero-lede {
  max-width: 590px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(18px, 1.45vw, 23px);
  line-height: 1.45;
  font-weight: 760;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.red-action-band {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1480px, calc(100% - 32px));
  margin: -54px auto 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.86);
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 248, 0.92)),
    var(--paper);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

.red-action-band article {
  display: grid;
  min-height: 188px;
  align-content: start;
  border-right: 1px solid rgba(9, 9, 9, 0.1);
  padding: clamp(22px, 2.6vw, 32px);
}

.red-action-band article::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--red);
}

.red-action-band article:last-child {
  border-right: 0;
}

.red-action-band h2 {
  max-width: 300px;
  color: var(--ink);
  font-size: clamp(18px, 1.12vw, 19px);
  letter-spacing: 0;
}

.red-action-band p {
  max-width: 330px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.48;
  font-weight: 720;
}

.red-action-band a {
  align-self: end;
  width: fit-content;
  margin-top: 22px;
  border-radius: 999px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 950;
  text-decoration: none;
}

.red-action-band a:hover {
  border-color: var(--red-line);
  color: var(--red-dark);
  background: var(--red-soft);
}

.section-band,
.story-strip,
.wellness-section,
.demo-section,
.site-footer {
  width: min(1480px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

#care,
#product,
#wellness,
#demo,
.story-strip {
  scroll-margin-top: 118px;
}

.section-band {
  margin-top: clamp(70px, 9vw, 132px);
}

#product.section-band {
  width: 100%;
  margin-top: clamp(82px, 9vw, 128px);
  padding: clamp(76px, 8vw, 112px) 0 clamp(64px, 7vw, 96px);
  overflow: hidden;
  background: #fff;
  scroll-margin-top: 156px;
}

.section-heading {
  width: min(1480px, calc(100% - 44px));
  margin: 0 auto;
  text-align: left;
}

.section-heading h2 {
  max-width: 840px;
  margin: 0;
  font-size: clamp(35px, 2.8vw, 50px);
  line-height: 1.02;
}

.section-lede {
  max-width: 680px;
  margin: clamp(20px, 2.2vw, 30px) 0 0;
  color: #282321;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.5;
  font-weight: 700;
}

.condition-track {
  position: relative;
  left: 50%;
  display: flex;
  width: 100vw;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 2.8vw, 44px);
  min-height: clamp(430px, 33vw, 510px);
  margin-top: clamp(58px, 6vw, 84px);
  padding: 0 max(28px, calc((100vw - 1480px) / 2 + 28px));
  overflow: hidden;
  transform: translateX(-50%);
}

.condition-card {
  position: relative;
  display: none;
  flex: 0 0 clamp(320px, 29vw, 420px);
  height: clamp(310px, 24vw, 360px);
  min-height: 0;
  overflow: hidden;
  align-content: end;
  align-self: center;
  border-radius: 18px;
  padding: clamp(24px, 2.2vw, 32px);
  color: #fff;
  background-color: #111;
  background-size: cover;
  background-position: center;
  box-shadow: 0 28px 76px rgba(0, 0, 0, 0.12);
  opacity: 0.94;
  transform: scale(0.985);
  transition: opacity 260ms ease, transform 260ms ease, box-shadow 260ms ease;
}

.condition-card.is-prev,
.condition-card.is-active,
.condition-card.is-next {
  display: grid;
}

.condition-card.is-active {
  z-index: 2;
  flex-basis: clamp(520px, 46vw, 660px);
  height: clamp(380px, 30vw, 450px);
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.14);
}

.condition-card.is-prev,
.condition-card.is-next {
  z-index: 1;
  opacity: 0.72;
  transform: scale(0.955);
  filter: saturate(0.94);
}

.condition-card.is-prev {
  transform: translateX(-6px) scale(0.955);
}

.condition-card.is-next {
  transform: translateX(6px) scale(0.955);
}

.condition-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.68));
}

.condition-card > * {
  position: relative;
  z-index: 1;
}

.card-discharge {
  background-image: url("assets/usecase-discharge.webp");
}

.card-medications {
  background-image: url("assets/usecase-medications.webp");
}

.card-followup {
  background-image: url("assets/usecase-followup.webp");
}

.card-caregiver {
  background-image: url("assets/patient-story-poster-bright.webp");
  background-position: 66% center;
}

.condition-card span {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(12px, 0.9vw, 15px);
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.condition-card h3 {
  max-width: 13ch;
  color: #fff;
  font-size: clamp(26px, 1.57vw, 29px);
  line-height: 1.02;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.condition-card.is-active h3 {
  max-width: 16ch;
  font-size: clamp(32px, 1.9vw, 36px);
}

.condition-card.is-prev h3,
.condition-card.is-next h3 {
  max-width: 11ch;
  font-size: clamp(27px, 1.51vw, 30px);
}

.condition-card a {
  justify-self: start;
  width: fit-content;
  margin-top: clamp(24px, 2.7vw, 36px);
  border-radius: 999px;
  padding: 11px 15px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
}

.condition-card a:hover {
  color: var(--red-dark);
}

.condition-carousel-control {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  margin: clamp(40px, 5vw, 62px) auto 0;
  border-radius: 999px;
  padding: 8px 12px;
  color: #282321;
  background: rgba(248, 248, 248, 0.95);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}

.condition-carousel-control button {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  font-size: 24px;
  line-height: 1;
  transition: background 160ms ease, transform 160ms ease;
}

.condition-carousel-control button:hover {
  background: #fff;
  transform: translateY(-1px);
}

.condition-carousel-control strong {
  display: inline-flex;
  min-width: 56px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 850;
}

.condition-carousel-control strong span {
  display: inline-grid;
  min-width: 18px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: #262626;
  font-size: 13px;
  line-height: 1;
}

.condition-carousel-rail {
  width: 58px;
  height: 7px;
  margin: 18px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(9, 9, 9, 0.14);
}

.condition-carousel-rail span {
  display: block;
  width: 30px;
  height: 100%;
  border-radius: inherit;
  background: #716a66;
  transition: transform 180ms ease;
}

.story-strip {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.55fr);
  gap: clamp(28px, 5vw, 78px);
  align-items: center;
  margin-top: clamp(70px, 9vw, 126px);
  border-radius: var(--radius);
  padding: clamp(22px, 2.5vw, 34px);
  color: #fff;
  background: #080808;
}

.story-media {
  min-height: clamp(420px, 54vw, 620px);
  border-radius: var(--radius);
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.18)),
    url("assets/patient-story-poster-bright.webp");
  background-position: 58% center;
  background-size: cover;
}

.story-copy {
  padding-right: clamp(8px, 3vw, 44px);
}

.story-copy .eyebrow {
  color: #ffb7b7;
}

.story-copy h2 {
  color: #fff;
  font-size: clamp(32px, 2.8vw, 48px);
}

.story-copy p:not(.eyebrow) {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.45;
  font-weight: 720;
}

.story-copy .button {
  margin-top: 28px;
}

.story-copy .button-primary {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.story-copy .button-primary:hover {
  background: #f2f0ee;
}

.wellness-section {
  display: grid;
  grid-template-columns: minmax(340px, 0.62fr) minmax(0, 1fr);
  gap: clamp(30px, 4.5vw, 70px);
  align-items: start;
  margin-top: clamp(64px, 7vw, 104px);
  border-top: 1px solid var(--line);
  padding-top: clamp(42px, 5vw, 68px);
}

.wellness-section > div:first-child p:not(.eyebrow) {
  max-width: 600px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.5;
  font-weight: 720;
}

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

.trust-grid article {
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
}

.trust-grid span,
.trust-grid strong,
.trust-grid p {
  display: block;
}

.trust-grid span {
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.trust-grid strong {
  margin-top: 20px;
  font-size: 20px;
  line-height: 1.12;
}

.trust-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 700;
}

.pilot-section,
.library-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 76px);
  width: min(100% - 44px, 1480px);
  margin: clamp(64px, 7vw, 104px) auto 0;
  border-top: 1px solid var(--line);
  padding-top: clamp(42px, 5.5vw, 70px);
}

.pilot-copy h2,
.library-preview h2 {
  font-size: clamp(30px, 2.35vw, 42px);
  line-height: 1.06;
}

.pilot-copy p,
.library-preview-copy p {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.52;
  font-weight: 720;
}

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

.pilot-grid article {
  display: grid;
  min-height: 190px;
  align-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 30px);
  background: rgba(255, 255, 255, 0.72);
}

.pilot-grid span,
.article-meta span,
.article-credit span,
.source-credit-panel span {
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pilot-grid strong {
  display: block;
  margin-top: 22px;
  color: var(--ink);
  font-size: clamp(20px, 1.7vw, 28px);
  line-height: 1.14;
}

.pilot-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 700;
}

.library-preview {
  align-items: stretch;
  min-height: 0;
}

.library-preview-copy {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 24px;
}

.library-preview h2 {
  max-width: 14ch;
  font-size: clamp(30px, 2.24vw, 40px);
}

.insight-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 620px;
}

.insight-pills span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 850;
}

.insights-panel {
  display: grid;
  width: min(100%, 720px);
  margin-top: clamp(22px, 3vw, 42px);
  border: 1px solid rgba(9, 9, 9, 0.1);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08);
}

.insights-panel-header {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 3vw, 34px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(9, 9, 9, 0.94), rgba(37, 32, 29, 0.86)),
    url("assets/usecase-medications.webp") center / cover;
}

.insights-panel-header span,
.insight-flow span,
.insight-audio-preview span {
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.insights-panel-header strong {
  max-width: 11ch;
  color: #fff;
  font-size: clamp(27px, 1.79vw, 30px);
  line-height: 1.04;
}

.insight-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.insight-flow article {
  min-height: 220px;
  padding: clamp(20px, 2.2vw, 28px);
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.insight-flow article:last-child {
  border-right: 0;
}

.insight-flow strong {
  display: block;
  margin-top: 34px;
  color: var(--ink);
  font-size: clamp(21px, 1.6vw, 28px);
  line-height: 1;
}

.insight-flow p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.insight-audio-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.45fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
}

.insight-audio-preview strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(18px, 1.12vw, 20px);
  line-height: 1;
}

.mini-waveform {
  display: flex;
  height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-radius: 14px;
  padding: 0 clamp(18px, 2vw, 26px);
  background: linear-gradient(180deg, #f7f3f1, #ffffff);
}

.mini-waveform i {
  width: 9px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--red), #191919);
}

.mini-waveform i:nth-child(1) { height: 22px; }
.mini-waveform i:nth-child(2) { height: 46px; }
.mini-waveform i:nth-child(3) { height: 32px; }
.mini-waveform i:nth-child(4) { height: 64px; }
.mini-waveform i:nth-child(5) { height: 40px; }
.mini-waveform i:nth-child(6) { height: 72px; }
.mini-waveform i:nth-child(7) { height: 36px; }
.mini-waveform i:nth-child(8) { height: 58px; }
.mini-waveform i:nth-child(9) { height: 26px; }
}

.demo-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(430px, 0.58fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(64px, 7vw, 104px);
  border-top: 1px solid var(--line);
  padding-top: clamp(42px, 5.5vw, 70px);
}

.demo-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 19px);
  line-height: 1.52;
  font-weight: 720;
}

.contact-section {
  align-items: start;
  scroll-margin-top: 132px;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 12px;
  margin-top: clamp(36px, 4vw, 54px);
}

.contact-route {
  max-width: 680px;
}

.contact-details article {
  display: grid;
  gap: 8px;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.contact-details span {
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-details strong {
  color: var(--ink);
  font-size: clamp(18px, 1.12vw, 19px);
  line-height: 1.1;
}

.contact-details a,
.footer-contact a,
.legal-document a {
  color: inherit;
  font-weight: 850;
  text-decoration-color: rgba(223, 23, 24, 0.42);
  text-underline-offset: 4px;
}

.demo-agenda {
  display: grid;
  gap: 22px;
  margin-top: clamp(38px, 4.5vw, 62px);
  border-top: 1px solid var(--line);
  padding-top: clamp(24px, 3vw, 34px);
}

.agenda-header {
  display: grid;
  gap: 8px;
  max-width: 660px;
}

.agenda-header span {
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.agenda-header strong {
  color: var(--ink);
  font-size: clamp(22px, 1.68vw, 27px);
  line-height: 1.04;
  letter-spacing: 0;
}

.demo-agenda ol {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-agenda li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 22px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.demo-agenda li:last-child {
  border-bottom: 1px solid var(--line);
}

.demo-agenda li > span {
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
}

.demo-agenda li strong {
  display: block;
  color: var(--ink);
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1.05;
}

.demo-agenda li p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.46;
  font-weight: 700;
}

.contact-boundary {
  display: grid;
  gap: 8px;
  max-width: 620px;
  margin-top: clamp(24px, 2.8vw, 36px);
  border-left: 4px solid var(--red);
  padding: 4px 0 4px 18px;
}

.contact-boundary strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.1;
}

.contact-boundary p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  font-weight: 720;
}

.proof-strip,
.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 30px;
}

.proof-strip span,
.result-tags span {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.case-panel,
.request-panel,
.pdf-stage,
.redaction-panel,
.review-meter,
.review-card,
.approval-card,
.player-card,
.transcript-card {
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.case-panel {
  padding: clamp(22px, 2.5vw, 32px);
}

.request-panel {
  padding: clamp(22px, 2.5vw, 30px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 248, 0.92)),
    #fff;
}

.panel-header {
  display: grid;
  gap: 7px;
  margin-bottom: 18px;
}

.panel-header span,
.player-top span,
.review-card-header span,
.approval-card span,
.review-meter span {
  color: #6f6864;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.panel-header strong {
  font-size: clamp(19px, 1.23vw, 20px);
  line-height: 1.05;
}

.case-options {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.case-option {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.04);
  transition: transform 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.case-option:hover {
  transform: translateY(-1px);
}

.case-option.is-active {
  border-color: rgba(14, 125, 85, 0.34);
  box-shadow: 0 18px 32px rgba(14, 125, 85, 0.09);
}

.case-option.is-active::after {
  content: "";
  position: absolute;
  top: 13px;
  right: 13px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(14, 125, 85, 0.12);
}

.flag {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
  font-weight: 950;
}

.case-option strong,
.case-option small {
  display: block;
}

.case-option strong {
  font-size: 22px;
}

.case-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.contact-form {
  display: grid;
  gap: 14px;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.contact-form label > span,
.consent-check span {
  color: #3a3431;
  font-size: 13px;
  font-weight: 870;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  font-size: 15px;
  font-weight: 650;
}

.contact-form textarea {
  min-height: 108px;
  padding: 13px;
  line-height: 1.45;
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(223, 23, 24, 0.18);
  border-color: rgba(223, 23, 24, 0.46);
}

.privacy-callout {
  border: 1px solid var(--red-line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--red-soft);
}

.privacy-callout strong {
  display: block;
  color: var(--ink);
  line-height: 1.3;
}

.privacy-callout p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 680;
}

.message-field,
.consent-check {
  grid-column: 1 / -1;
}

.consent-check {
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
}

.consent-check input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.form-status[data-status="error"] {
  color: var(--red-dark);
}

.form-status[data-status="success"] {
  color: var(--green);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  margin-top: clamp(76px, 9vw, 132px);
  border-radius: var(--radius);
  padding: clamp(38px, 6vw, 70px);
  color: #fff;
  background: var(--red);
}

.footer-primary {
  min-width: 0;
}

.footer-brand {
  display: inline-flex;
  width: min(560px, 100%);
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: invert(1) grayscale(1) brightness(2.1);
}

.site-footer p {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 760;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.footer-contact span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 750;
}

.footer-nav {
  display: grid;
  gap: 18px;
  justify-items: end;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  justify-content: flex-end;
}

.footer-links a,
.footer-legal a,
.footer-legal button {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
}

.footer-legal a,
.footer-legal button {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 820;
}

.footer-legal button {
  border: 0;
  padding: 0;
  background: transparent;
}

.footer-legal a:hover,
.footer-legal button:hover {
  color: #fff;
}

.legal-page {
  background: #fff;
}

.legal-main {
  display: grid;
  gap: clamp(44px, 6vw, 76px);
}

.legal-hero {
  display: grid;
  gap: 18px;
  padding: clamp(72px, 9vw, 128px) 0 clamp(22px, 4vw, 52px);
}

.legal-hero h1 {
  max-width: 940px;
  font-size: clamp(50px, 4.48vw, 73px);
}

.legal-hero p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  font-weight: 740;
}

.legal-document {
  display: grid;
  gap: 22px;
  width: min(920px, 100%);
  border-top: 1px solid var(--line);
  padding-top: clamp(34px, 5vw, 58px);
}

.legal-document h2 {
  margin-top: 18px;
  font-size: clamp(24px, 1.79vw, 27px);
  line-height: 1;
}

.legal-document p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.58;
  font-weight: 650;
}

.legal-document code {
  border-radius: 6px;
  padding: 2px 6px;
  color: var(--ink);
  background: #f1efed;
  font-size: 0.92em;
}

.library-main,
.admin-main {
  display: grid;
  gap: clamp(36px, 4.5vw, 60px);
}

.library-hero,
.admin-hero {
  display: grid;
  gap: 16px;
  padding: clamp(64px, 6vw, 92px) 0 clamp(12px, 3vw, 30px);
}

.library-hero h1,
.admin-hero h1,
.article-detail-hero h1 {
  max-width: 1120px;
  font-size: clamp(46px, 4.48vw, 78px);
  line-height: 1.04;
}

.library-hero p,
.admin-hero p,
.article-detail-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 23px);
  line-height: 1.48;
  font-weight: 720;
}

#articleCount,
.admin-auth-row {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

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

.article-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.article-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.6 / 1;
  object-fit: cover;
}

.article-card-copy {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 2.4vw, 32px);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.article-card h2 {
  font-size: clamp(22px, 1.46vw, 26px);
  line-height: 1;
}

.article-card p,
.article-credit span,
.source-credit-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
  font-weight: 700;
}

.article-credit {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.article-credit strong,
.source-credit-panel strong,
.article-listen-panel strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.1;
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-tags span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--ink);
  background: #f0eeeb;
  font-size: 12px;
  font-weight: 850;
}

.library-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: clamp(42px, 7vw, 80px) 0;
}

.library-empty h1,
.library-empty h2 {
  max-width: 960px;
  font-size: clamp(34px, 3.36vw, 51px);
  line-height: 1.04;
}

.library-empty p {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
  font-weight: 720;
}

.article-detail {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  padding-top: clamp(92px, 10vw, 146px);
}

.article-detail-hero {
  display: grid;
  gap: 18px;
}

.article-listen-panel,
.source-credit-panel,
.admin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.article-listen-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.5fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
}

.article-listen-panel p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.48;
  font-weight: 700;
}

.article-listen-panel audio {
  width: 100%;
}

.source-credit-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: clamp(24px, 3vw, 36px);
}

.source-credit-panel > div {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.source-credit-panel a {
  color: var(--ink);
  font-weight: 850;
  text-decoration-color: rgba(223, 23, 24, 0.42);
  text-underline-offset: 4px;
}

.admin-auth-row {
  gap: 14px;
}

.admin-auth-row span {
  color: var(--muted);
}

.admin-status,
#adminStatus {
  color: var(--ink);
}

#adminStatus[data-status="error"],
#adminFormStatus[data-status="error"] {
  color: var(--red-dark);
}

#adminStatus[data-status="success"],
#adminFormStatus[data-status="success"] {
  color: var(--green);
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-panel {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 2.3vw, 30px);
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 720;
}

.admin-record,
.admin-article-row {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.admin-article-row {
  cursor: pointer;
}

.admin-record span,
.admin-article-row span {
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-record p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.42;
  font-weight: 680;
}

.admin-record dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.admin-record div {
  min-width: 0;
}

.admin-record dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-record dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 760;
  overflow-wrap: anywhere;
}

.article-editor {
  min-width: 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-banner {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: min(640px, calc(100% - 36px));
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 14px;
  padding: 14px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(24px) saturate(1.08);
}

.cookie-banner[hidden],
.cookie-modal[hidden] {
  display: none;
}

.cookie-banner strong {
  display: block;
  font-size: 16px;
}

.cookie-banner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
  font-weight: 650;
}

.cookie-actions,
.cookie-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.42);
}

.cookie-dialog {
  width: min(720px, 100%);
  border-radius: 14px;
  padding: clamp(22px, 3vw, 34px);
  background: #fff;
  box-shadow: 0 28px 92px rgba(0, 0, 0, 0.34);
}

.cookie-dialog-header {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
}

.cookie-dialog h2 {
  font-size: clamp(27px, 2.24vw, 33px);
}

.cookie-close {
  color: #fff;
  background: #090909;
}

.cookie-options {
  display: grid;
  gap: 12px;
  margin: 26px 0;
}

.cookie-options label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.cookie-options input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.cookie-options strong,
.cookie-options small {
  display: block;
}

.cookie-options small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
  font-weight: 650;
}

.leadership-page {
  background: #fff;
}

body.leadership-page .topbar {
  position: sticky;
  top: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  background: rgba(255, 255, 255, 0.9);
}

body.leadership-page .utility-pill {
  display: inline-flex;
  width: fit-content;
  justify-self: end;
}

.leadership-page .site-links a[aria-current="page"] {
  color: var(--red);
}

.leadership-page main,
.leadership-main {
  width: 100%;
  padding: 0 0 78px;
}

.leadership-hero {
  position: relative;
  display: grid;
  min-height: clamp(460px, 62vh, 600px);
  align-items: end;
  overflow: hidden;
  margin-top: -86px;
  color: #fff;
  background: #080808;
}

.leadership-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% center;
}

.leadership-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0.14) 78%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.1) 45%, rgba(0, 0, 0, 0.54));
}

.leadership-hero-copy {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(132px, 12vw, 176px) 0 clamp(58px, 6vw, 92px);
}

.leadership-hero-copy .eyebrow {
  color: #ffb7b7;
}

.leadership-hero-copy h1 {
  max-width: 890px;
  color: #fff;
  font-size: clamp(46px, 3.36vw, 67px);
  line-height: 1.04;
  text-wrap: balance;
}

.leadership-hero-copy p:not(.eyebrow) {
  max-width: 600px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(19px, 1.35vw, 24px);
  line-height: 1.4;
  font-weight: 690;
}

.leadership-intro,
.leadership-directory,
.leadership-principles {
  width: min(1480px, calc(100% - 44px));
  margin-left: auto;
  margin-right: auto;
}

.leadership-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.55fr);
  gap: clamp(40px, 7vw, 118px);
  align-items: end;
  padding: clamp(104px, 10vw, 154px) 0 clamp(58px, 7vw, 88px);
}

.leadership-title h2 {
  max-width: 820px;
  font-size: clamp(51px, 4.14vw, 76px);
  line-height: 1.04;
  scroll-margin-top: 128px;
}

.leadership-lede {
  max-width: 560px;
  margin: 0;
  color: #2a2522;
  font-size: clamp(19px, 1.35vw, 24px);
  line-height: 1.42;
  font-weight: 670;
}

.leadership-directory {
  padding-bottom: clamp(96px, 11vw, 156px);
}

.leadership-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 8px;
  margin: 0 auto clamp(54px, 6vw, 86px);
  border-radius: 999px;
  padding: 8px;
  background: #f1efed;
  overflow-x: auto;
}

.leadership-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #403a36;
  background: transparent;
  font-size: 13px;
  font-weight: 920;
  white-space: nowrap;
}

.leadership-tabs button[aria-pressed="true"] {
  color: #fff;
  background: #171313;
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 2.6vw, 40px);
}

.leader-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: clamp(26px, 2.2vw, 34px);
  align-items: start;
  min-width: 0;
}

.leader-photo {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 1 / 1.05;
  background: #e4e1df;
}

.leader-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(0.96) contrast(1.02);
  transform: scale(1.06);
  transform-origin: center top;
}

.leader-card[data-leader="ziv"] .leader-photo img {
  object-position: center 12%;
  transform: scale(1.12);
}

.leader-card[data-leader="moshe"] .leader-photo img {
  object-position: center 11%;
  transform: scale(1.04);
}

.leader-card[data-leader="nimrod"] .leader-photo img {
  object-position: center 13%;
  transform: scale(1.1);
}

.leader-info {
  display: grid;
  gap: 10px;
  align-content: start;
}

.leader-kicker {
  margin: 0;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.leader-info h3 {
  color: var(--ink);
  font-size: clamp(26px, 1.43vw, 29px);
  line-height: 1.04;
  overflow-wrap: normal;
}

.leader-info a {
  width: fit-content;
  color: #2a2522;
  font-size: 15px;
  font-weight: 780;
  text-decoration-color: rgba(223, 23, 24, 0.42);
  text-underline-offset: 4px;
}

.leader-info p:not(.leader-kicker) {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.58;
  font-weight: 610;
}

@media (min-width: 761px) {
  .leader-info {
    grid-template-rows: 18px 58px 24px auto;
  }

  .leader-kicker,
  .leader-info h3,
  .leader-info a {
    margin: 0;
  }

  .leader-info a {
    align-self: start;
  }

  .leader-info p:not(.leader-kicker) {
    margin-top: 10px;
  }
}

.leadership-principles {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 0.84fr);
  gap: clamp(36px, 6vw, 92px);
  align-items: start;
  padding: clamp(72px, 8vw, 116px) 0 clamp(24px, 4vw, 64px);
  border-top: 1px solid var(--line);
}

.leadership-principles h2 {
  max-width: 640px;
  font-size: clamp(37px, 2.74vw, 51px);
  line-height: 1.04;
}

.principle-grid {
  display: grid;
  gap: 14px;
}

.principle-grid article {
  display: grid;
  grid-template-columns: 48px minmax(0, 0.45fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.principle-grid span {
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
}

.principle-grid strong {
  font-size: clamp(18px, 1.01vw, 19px);
  line-height: 1.05;
}

.principle-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 620;
}

.stage-page {
  display: grid;
  gap: 28px;
  padding-top: 12px;
}

.stage-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.stage-heading h1,
.generation-stage h1,
.review-hero h1,
.result-copy h1 {
  max-width: 1040px;
  font-size: clamp(38px, 3.08vw, 55px);
  line-height: 1.04;
}

.stage-heading p:not(.eyebrow),
.generation-stage p:not(.eyebrow),
.review-hero p:not(.eyebrow),
.result-copy p:not(.eyebrow) {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.45;
  font-weight: 740;
}

.privacy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.34fr);
  gap: 22px;
}

.pdf-stage {
  overflow: hidden;
}

.pdf-toolbar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  padding: 0 16px;
  background: #fff;
}

.pdf-toolbar div {
  display: flex;
  gap: 7px;
}

.traffic {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8dee8;
}

.traffic:first-child {
  background: #ff675c;
}

.traffic:nth-child(2) {
  background: #ffc24d;
}

.traffic:nth-child(3) {
  background: #31c46b;
}

.pdf-toolbar strong {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pdf-toolbar a {
  color: var(--red);
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
}

.doc-card {
  width: min(880px, calc(100% - 36px));
  margin: 20px auto 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 4vw, 42px);
  background:
    repeating-linear-gradient(180deg, #fff 0 31px, #f7f7f7 31px 32px),
    #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.08);
}

.doc-title {
  text-align: center;
  font-size: clamp(19px, 1.68vw, 22px);
  font-weight: 950;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.doc-grid div {
  min-height: 80px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px;
  background: rgba(255, 255, 255, 0.88);
}

.doc-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

mark {
  display: inline-block;
  min-width: 74px;
  height: 21px;
  margin-top: 8px;
  border-radius: 6px;
  color: transparent;
  background: var(--ink);
}

.clinical-lines {
  display: grid;
  margin-top: 28px;
}

.clinical-lines div {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.clinical-lines span {
  color: var(--muted);
  font-weight: 750;
}

.redaction-panel {
  align-self: start;
  padding: 22px;
}

.score-card {
  display: grid;
  min-height: 166px;
  align-content: center;
  border-radius: var(--radius);
  padding: 20px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(14, 125, 85, 0.18), transparent 38%),
    #080808;
}

.score-card span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.score-card strong {
  margin-top: 12px;
  font-size: 72px;
  line-height: 1.04;
}

.score-card small {
  margin-top: 8px;
  font-weight: 850;
}

.redaction-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.redaction-item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #fff;
  transition: transform 170ms ease;
}

.redaction-item > span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.redaction-item strong,
.redaction-item small {
  display: block;
}

.redaction-item small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.redaction-item em {
  color: var(--green);
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.generation-stage {
  display: grid;
  min-height: calc(100svh - 170px);
  place-items: center;
  align-content: center;
  text-align: center;
}

.generation-core {
  display: grid;
  width: min(560px, 100%);
  min-height: 206px;
  align-content: center;
  justify-items: center;
  margin: 38px auto 24px;
  border-radius: var(--radius);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(14, 125, 85, 0.18), transparent 42%),
    #080808;
  box-shadow: var(--shadow);
}

.generation-core span {
  font-size: clamp(46px, 3.92vw, 55px);
  line-height: 1;
  font-weight: 950;
}

.generation-core small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 950;
}

.progress-line,
.audio-progress,
.review-progress {
  overflow: hidden;
  border-radius: 999px;
  background: rgba(9, 9, 9, 0.1);
}

.progress-line {
  width: min(720px, 100%);
  height: 8px;
}

.progress-line div,
.audio-progress div,
.review-progress div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ink), var(--green));
  transition: width 240ms ease;
}

.pipeline-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  width: min(980px, 100%);
  margin: 26px auto;
}

.pipeline-list span {
  display: grid;
  min-height: 68px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  color: var(--muted);
  background: #fff;
  font-size: 12px;
  font-weight: 950;
}

.pipeline-list span.is-active {
  border-color: rgba(14, 125, 85, 0.32);
  color: #087048;
  background: #edf8f3;
}

.pipeline-list span.is-done {
  border-color: rgba(14, 125, 85, 0.32);
  color: #087048;
  background: #edf8f3;
}

.review-shell {
  display: grid;
  gap: 22px;
}

.review-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.28fr);
  gap: 24px;
  align-items: end;
}

.review-meter {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.review-meter strong {
  color: var(--ink);
  font-size: 38px;
  line-height: 1;
}

.review-meter small {
  color: var(--muted);
  font-weight: 850;
}

.review-progress {
  height: 8px;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(292px, 0.28fr);
  gap: 22px;
  align-items: start;
}

.review-main {
  display: grid;
  gap: 16px;
}

.review-card,
.approval-card {
  padding: 18px;
}

.review-card {
  overflow: hidden;
}

.review-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.review-card-header h2,
.approval-card h2 {
  margin: 5px 0 0;
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0;
}

.review-card-header strong {
  display: grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: var(--ink);
  font-size: 20px;
}

.review-card-header small {
  color: var(--muted);
  font-weight: 850;
}

.alert-card {
  border-color: rgba(223, 23, 24, 0.2);
  background: #fff7f7;
}

.alert-card .review-card-header strong {
  background: var(--red-dark);
}

.check-list,
.action-list {
  display: grid;
  gap: 8px;
}

.check-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  color: #1f2937;
  background: #fff;
  font-weight: 760;
}

.check-row input,
.select-all input,
.review-table input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--green);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.review-table {
  width: 100%;
  min-width: 840px;
  border-collapse: collapse;
  color: #1f2937;
  font-size: 13px;
}

.review-table th,
.review-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

.review-table th {
  color: #475467;
  background: #f4f4f4;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.review-table strong,
.review-table small {
  display: block;
}

.review-table small {
  margin-top: 3px;
  color: #667085;
  line-height: 1.35;
}

.review-table code {
  direction: ltr;
  unicode-bidi: isolate;
  border-radius: 6px;
  padding: 3px 7px;
  color: #0b3b8f;
  background: rgba(36, 92, 255, 0.1);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 850;
}

.row-number {
  color: #667085;
  font-weight: 950;
}

.authority-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  color: #087443;
  background: rgba(14, 125, 85, 0.12);
  font-size: 11px;
  font-weight: 950;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.row-actions button,
.mini-button {
  min-height: 32px;
  border-color: var(--line);
  padding: 0 10px;
  color: var(--ink);
  background: #fff;
  font-size: 12px;
}

.row-actions button[data-action="delete"] {
  color: #b42318;
  border-color: rgba(180, 35, 24, 0.18);
  background: #fff0f0;
}

.add-row {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.single-add-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.medication-add-row {
  grid-template-columns: minmax(140px, 1fr) minmax(100px, 0.62fr) minmax(120px, 0.72fr) minmax(180px, 1.2fr) auto;
}

.add-row input {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 11px;
  color: var(--ink);
  background: #fff;
  font-weight: 760;
}

.mini-button {
  min-height: 38px;
  color: #fff;
  background: var(--ink);
  box-shadow: none;
}

.select-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  font-weight: 950;
}

.action-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.approval-card {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
}

.approval-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 760;
}

.approval-summary {
  display: grid;
  gap: 8px;
}

.approval-summary div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  background: #fff;
}

.approval-summary span,
.approval-summary strong {
  display: block;
}

.approval-summary span {
  color: #667085;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.approval-summary strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 14px;
}

.approval-card .button:disabled {
  cursor: not-allowed;
  color: #667085;
  background: #e5e7eb;
  box-shadow: none;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 0.62fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: center;
  min-height: 620px;
}

.player-card {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 36px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(223, 23, 24, 0.2), transparent 34%),
    #080808;
}

.player-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.player-top span {
  color: #ffb8b8;
}

.player-top strong {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

.player-card h2 {
  margin: 28px 0 0;
  color: #fff;
  font-size: clamp(27px, 2.24vw, 32px);
  line-height: 1;
}

.player-card p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-weight: 800;
}

.play-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.play-button {
  display: grid;
  flex: 0 0 auto;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 24px 56px rgba(223, 23, 24, 0.32);
}

.play-symbol {
  display: block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 22px solid #fff;
}

.play-button.is-playing .play-symbol {
  width: 24px;
  height: 29px;
  margin-left: 0;
  border: 0;
  border-left: 8px solid #fff;
  border-right: 8px solid #fff;
}

.play-row strong,
.play-row span {
  display: block;
}

.play-row strong {
  font-size: 22px;
}

.play-row span {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 850;
}

#timeReadout {
  direction: ltr;
  unicode-bidi: isolate;
}

.transport-controls {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
  direction: ltr;
}

.seek-button {
  display: grid;
  height: 46px;
  place-items: center;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 950;
}

.seek-slider {
  width: 100%;
  height: 34px;
  margin: 0;
  accent-color: var(--red);
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  direction: ltr;
  cursor: pointer;
}

.seek-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.seek-slider::-webkit-slider-thumb {
  width: 22px;
  height: 22px;
  margin-top: -7px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--red);
  appearance: none;
}

.seek-slider::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.seek-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--red);
}

.waveform {
  display: grid;
  grid-template-columns: repeat(42, minmax(3px, 1fr));
  gap: 4px;
  align-items: center;
  height: 116px;
  margin: 18px 0 16px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.07);
  direction: ltr;
}

.waveform span {
  display: block;
  height: var(--bar, 42%);
  min-height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.waveform span.is-lit {
  background: linear-gradient(180deg, #ffb8b8, var(--red));
}

.audio-progress {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.16);
  direction: ltr;
}

.transcript-card {
  margin-top: clamp(28px, 5vw, 58px);
  padding: clamp(20px, 3vw, 30px);
}

.transcript-card h2 {
  font-size: 30px;
  letter-spacing: 0;
}

.dialogue-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.dialogue-turn {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
}

.dialogue-turn strong,
.dialogue-turn span {
  display: block;
}

.dialogue-turn span {
  margin-top: 4px;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.dialogue-turn p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
  font-weight: 700;
}

.avatar-widget {
  position: fixed;
  right: clamp(14px, 2.4vw, 34px);
  bottom: clamp(14px, 2.4vw, 30px);
  z-index: 80;
  display: grid;
  justify-items: center;
  gap: 8px;
  pointer-events: none;
}

body[data-contact-visible="true"] .avatar-widget {
  display: none;
}

.avatar-panel,
.avatar-restore {
  pointer-events: auto;
}

.avatar-panel {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
}

.avatar-media {
  position: relative;
  display: grid;
  width: 184px;
  height: 184px;
  place-items: center;
}

.avatar-media video,
.avatar-restore img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-media video {
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #082d2f;
  box-shadow:
    0 22px 48px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(255, 255, 255, 0.45);
}

.avatar-close-button {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  color: var(--green);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.avatar-play-button {
  position: absolute;
  right: 11px;
  bottom: 13px;
  z-index: 2;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  box-shadow: 0 16px 34px rgba(185, 15, 16, 0.3);
}

.avatar-play-button:hover {
  background: var(--red-dark);
}

.avatar-widget.is-playing .avatar-play-button {
  background: var(--green);
  box-shadow: 0 16px 34px rgba(14, 125, 85, 0.3);
}

.avatar-play-symbol {
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid currentColor;
}

.avatar-widget.is-playing .avatar-play-symbol {
  width: 16px;
  height: 18px;
  margin-left: 0;
  border: 0;
  background:
    linear-gradient(currentColor, currentColor) left center / 5px 100% no-repeat,
    linear-gradient(currentColor, currentColor) right center / 5px 100% no-repeat;
}

.avatar-language-controls {
  display: inline-flex;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.13);
  backdrop-filter: blur(14px);
}

.avatar-language-track {
  display: flex;
  gap: 4px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.avatar-language-track::-webkit-scrollbar {
  display: none;
}

.avatar-language-controls button {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 38px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #544d49;
  background: rgba(255, 255, 255, 0.44);
  font-size: 12px;
  font-weight: 920;
}

.avatar-language-controls button.is-active {
  border-color: rgba(255, 255, 255, 0.62);
  color: #fff;
  background: var(--green);
}

.avatar-listening-wave {
  position: absolute;
  right: 71px;
  bottom: 29px;
  z-index: 2;
  display: flex;
  align-items: end;
  gap: 4px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.avatar-listening-wave i {
  display: block;
  width: 4px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
  transform-origin: bottom;
}

.avatar-widget.is-playing .avatar-listening-wave {
  opacity: 1;
  transform: translateY(0);
}

.avatar-widget.is-playing .avatar-listening-wave i {
  animation: avatarSoundWave 760ms ease-in-out infinite;
}

.avatar-widget.is-playing .avatar-listening-wave i:nth-child(2) {
  animation-delay: 90ms;
}

.avatar-widget.is-playing .avatar-listening-wave i:nth-child(3) {
  animation-delay: 180ms;
}

.avatar-widget.is-playing .avatar-listening-wave i:nth-child(4) {
  animation-delay: 270ms;
}

.avatar-widget.is-playing .avatar-listening-wave i:nth-child(5) {
  animation-delay: 360ms;
}

.avatar-restore {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background: #082d2f;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.avatar-restore[hidden],
.avatar-panel[hidden] {
  display: none;
}

@keyframes avatarSoundWave {
  0%,
  100% {
    opacity: 0.58;
    transform: scaleY(0.42);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.25);
  }
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  max-width: min(420px, calc(100vw - 48px));
  transform: translateY(14px);
  opacity: 0;
  pointer-events: none;
  border-radius: var(--radius);
  padding: 14px 16px;
  color: #fff;
  background: rgba(9, 9, 9, 0.92);
  box-shadow: var(--shadow);
  font-weight: 900;
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(16px);
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.review-shell[dir="rtl"] .review-table th,
.review-shell[dir="rtl"] .review-table td {
  text-align: right;
}

.review-shell[dir="rtl"] .review-table code,
.review-shell[dir="rtl"] .authority-pill {
  direction: ltr;
  unicode-bidi: isolate;
}

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

@media (max-width: 1220px) {
  body:not([data-view="start"]) .topbar,
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .site-links {
    justify-content: end;
  }

  .stage-nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .mega-panel {
    grid-template-columns: 1fr 1fr;
  }

  .red-action-band,
  .story-strip,
  .wellness-section,
  .pilot-section,
  .library-preview,
  .demo-section,
  .privacy-grid,
  .review-hero,
  .review-layout,
  .result-grid,
  .section-heading {
    grid-template-columns: minmax(0, 1fr);
  }

  .red-action-band article {
    min-height: 190px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  }

  .red-action-band article:last-child {
    border-bottom: 0;
  }

  #product.section-band {
    padding-top: clamp(92px, 10vw, 130px);
  }

  .condition-track {
    gap: clamp(22px, 3vw, 34px);
    min-height: clamp(420px, 38vw, 500px);
    margin-top: clamp(68px, 8vw, 96px);
    padding: 0 24px;
  }

  .condition-card {
    flex-basis: clamp(300px, 31vw, 380px);
    height: clamp(320px, 30vw, 380px);
  }

  .condition-card.is-active {
    flex-basis: clamp(500px, 55vw, 680px);
    height: clamp(390px, 37vw, 470px);
  }

  .leadership-intro,
  .leadership-principles {
    grid-template-columns: minmax(0, 1fr);
  }

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

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

  .articles-grid,
  .source-credit-panel,
  .admin-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .article-listen-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .agenda-header strong {
    max-width: 720px;
  }

  .principle-grid article {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .principle-grid p {
    grid-column: 2;
  }

  .story-strip {
    padding: 18px;
  }

  .approval-card {
    position: static;
  }

  .player-card {
    order: -1;
  }
}

@media (max-width: 900px) {
  body:not([data-view="start"]) .topbar {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  body:not([data-view="start"]) .site-links {
    display: none;
  }

  body:not([data-view="start"]) .utility-pill {
    display: inline-flex;
    justify-self: end;
  }
}

@media (max-width: 760px) {
  main {
    width: min(100% - 22px, 1480px);
    padding-top: 18px;
  }

  body:not([data-view="start"]) main {
    padding-top: 54px;
  }

  body[data-view="start"] main {
    width: 100%;
    padding-top: 0;
  }

  .topbar,
  body[data-view="start"] .topbar {
    top: 10px;
    width: min(100% - 20px, 1480px);
    grid-template-columns: auto auto;
    gap: 10px;
    padding: 0;
  }

  body:not([data-view="start"]) .topbar {
    padding: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .brand-mark {
    width: clamp(150px, 44vw, 176px);
    min-height: 44px;
    padding: 0;
  }

  .brand-logo {
    max-width: 148px;
  }

  .site-links,
  .mega-panel {
    display: none;
  }

  .utility-pill {
    justify-self: end;
  }

  .stage-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .stage-pill {
    min-height: 34px;
    font-size: 10px;
  }

  h1 {
    font-size: clamp(42px, 11.5vw, 58px);
    line-height: 1.04;
  }

  h2,
  .stage-heading h1,
  .generation-stage h1,
  .review-hero h1,
  .result-copy h1 {
    font-size: clamp(32px, 8.8vw, 48px);
    line-height: 1.08;
  }

  .hero {
    min-height: 620px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.42)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.32) 55%, rgba(0, 0, 0, 0.64));
  }

  .hero-content {
    width: 100%;
    padding: 116px 22px 74px;
  }

  .hero-lede {
    max-width: 320px;
    font-size: 17px;
    line-height: 1.48;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button,
  .ghost-button {
    width: 100%;
  }

  .red-action-band,
  .section-band,
  .story-strip,
  .wellness-section,
  .pilot-section,
  .library-preview,
  .demo-section,
  .site-footer {
    width: min(100% - 22px, 1480px);
  }

  .red-action-band {
    margin-top: -48px;
  }

  .red-action-band article {
    min-height: auto;
    padding: 22px;
  }

  .trust-grid,
  .pilot-grid,
  .dialogue-list {
    grid-template-columns: 1fr;
  }

  .pilot-section,
  .library-preview {
    margin-top: 68px;
    padding-top: 46px;
  }

  .pilot-copy h2,
  .library-preview h2,
  .library-hero h1,
  .admin-hero h1,
  .article-detail-hero h1 {
    font-size: clamp(34px, 9vw, 52px);
    line-height: 1.08;
  }

  .pilot-grid article {
    min-height: auto;
  }

  .insight-flow,
  .insight-audio-preview {
    grid-template-columns: 1fr;
  }

  .insight-flow article {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .insight-flow article:last-child {
    border-bottom: 0;
  }

  .library-hero,
  .admin-hero,
  .article-detail {
    padding-top: 94px;
  }

  .articles-grid,
  .source-credit-panel {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  #product.section-band {
    margin-top: 68px;
    padding: 66px 0 54px;
    scroll-margin-top: 120px;
  }

  .section-heading {
    width: min(100% - 32px, 640px);
  }

  .section-heading h2 {
    font-size: clamp(34px, 9.5vw, 50px);
    line-height: 1.08;
  }

  .section-lede {
    margin-top: 18px;
    font-size: 16px;
    line-height: 1.5;
  }

  .condition-track {
    gap: 16px;
    min-height: 390px;
    margin-top: 36px;
    padding: 0;
    overflow: hidden;
  }

  .condition-card {
    flex: 0 0 min(72vw, 280px);
    height: 330px;
    padding: 24px;
  }

  .condition-card.is-active {
    flex-basis: min(82vw, 360px);
    height: 390px;
  }

  .condition-card.is-prev,
  .condition-card.is-next {
    display: none;
  }

  .condition-card h3,
  .condition-card.is-active h3 {
    max-width: 11ch;
    font-size: clamp(32px, 8.6vw, 42px);
    line-height: 1.04;
  }

  .condition-carousel-control {
    margin-top: 28px;
  }

  .condition-carousel-rail {
    margin-top: 14px;
  }

  .leadership-page .topbar {
    grid-template-columns: auto auto;
  }

  .leadership-hero {
    min-height: 720px;
    margin-top: -74px;
  }

  .leadership-hero img {
    object-position: 67% center;
  }

  .leadership-hero-overlay {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.34)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.2) 48%, rgba(0, 0, 0, 0.68));
  }

  .leadership-hero-copy {
    width: min(100% - 40px, 640px);
    padding: 128px 0 68px;
  }

  .leadership-hero-copy h1 {
    max-width: 10.7ch;
    font-size: clamp(45px, 12.2vw, 58px);
    line-height: 1.04;
  }

  .leadership-hero-copy p:not(.eyebrow) {
    max-width: 340px;
    margin-top: 24px;
    font-size: 17px;
    line-height: 1.44;
  }

  .leadership-intro,
  .leadership-directory,
  .leadership-principles {
    width: min(100% - 40px, 1480px);
  }

  .leadership-intro {
    gap: 28px;
    padding: 82px 0 42px;
  }

  .leadership-title h2 {
    font-size: clamp(50px, 14vw, 68px);
    line-height: 1.04;
  }

  .leadership-lede {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.45;
  }

  .leadership-tabs {
    width: 100%;
    margin-bottom: 38px;
    gap: 6px;
    padding: 6px;
    overflow: visible;
  }

  .leadership-tabs button {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 8px;
    font-size: 11px;
  }

  .leadership-tabs button:first-child {
    flex-grow: 1.25;
  }

  .leader-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .leader-photo {
    border-radius: 14px;
  }

  .leader-info h3 {
    font-size: clamp(34px, 9.8vw, 46px);
    line-height: 1;
  }

  .leadership-principles {
    padding-top: 70px;
  }

  .leadership-principles h2 {
    font-size: clamp(38px, 10.8vw, 56px);
    line-height: 1;
  }

  .principle-grid article {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .principle-grid p {
    grid-column: auto;
  }

  .story-media {
    min-height: 330px;
  }

  .story-strip {
    gap: 24px;
  }

  .story-copy {
    padding: 0 4px 10px;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-nav,
  .footer-links,
  .footer-legal {
    justify-items: start;
    justify-content: flex-start;
  }

  .footer-brand {
    width: min(360px, 100%);
  }

  .contact-details,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .demo-agenda li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 18px 0;
  }

  .agenda-header strong {
    font-size: clamp(28px, 8vw, 38px);
  }

  .demo-section {
    gap: 30px;
  }

  .contact-boundary {
    padding-left: 14px;
  }

  .request-panel {
    padding: 22px;
  }

  .legal-hero {
    padding-top: 84px;
  }

  .legal-hero h1 {
    font-size: clamp(48px, 14vw, 70px);
  }

  .cookie-banner {
    left: 10px;
    bottom: 10px;
    grid-template-columns: 1fr;
    width: calc(100% - 20px);
    gap: 10px;
    padding: 12px;
  }

  .cookie-banner p {
    display: none;
  }

  .cookie-banner strong {
    font-size: 14px;
  }

  .cookie-actions,
  .cookie-dialog-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
  }

  .cookie-actions .button,
  .cookie-actions .mini-button,
  .cookie-dialog-actions .button,
  .cookie-dialog-actions .mini-button {
    width: 100%;
    min-height: 34px;
    padding: 0 6px;
    font-size: 9px;
  }

  .cookie-dialog-actions {
    grid-template-columns: 1fr;
  }

  .cookie-dialog-actions .button,
  .cookie-dialog-actions .mini-button {
    font-size: 11px;
  }

  .stage-heading {
    display: grid;
  }

  .doc-grid,
  .clinical-lines div {
    grid-template-columns: 1fr;
  }

  .pdf-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pdf-toolbar a {
    grid-column: 1 / -1;
  }

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

  .medication-add-row,
  .single-add-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .action-item,
  .review-card-header {
    display: grid;
  }

  .review-table {
    min-width: 760px;
  }

  .transport-controls {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 10px;
  }

  .player-card h2 {
    font-size: clamp(31px, 9vw, 39px);
  }

  .avatar-widget {
    right: 12px;
    bottom: 12px;
  }

  .avatar-media {
    width: 62px;
    height: 62px;
  }

  .avatar-close-button {
    top: 0;
    right: 0;
    width: 24px;
    height: 24px;
    font-size: 15px;
  }

  .avatar-play-button {
    right: 0;
    bottom: 2px;
    width: 30px;
    height: 30px;
  }

  .avatar-play-symbol {
    border-top-width: 7px;
    border-bottom-width: 7px;
    border-left-width: 11px;
  }

  .avatar-listening-wave {
    right: 34px;
    bottom: 10px;
    gap: 2px;
  }

  .avatar-listening-wave i {
    width: 2px;
    height: 12px;
  }

  .avatar-language-controls {
    display: inline-flex;
    max-width: 108px;
    padding: 2px;
  }

  .avatar-language-track {
    gap: 1px;
  }

  .avatar-language-controls button {
    min-width: 25px;
    min-height: 22px;
    padding: 0 4px;
    font-size: 9px;
  }

  .avatar-restore {
    width: 54px;
    height: 54px;
  }

  .play-button {
    width: 78px;
    height: 78px;
  }
}

@media (max-width: 760px) {
  body[data-view="start"] {
    background: #f4eeeb;
  }

  body[data-view="start"] .topbar {
    width: calc(100% - 20px);
  }

  .hero {
    min-height: 690px;
  }

  .hero-image {
    object-position: 69% center;
    transform: scale(1.04);
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.24) 34%, rgba(0, 0, 0, 0.78) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.28) 62%, rgba(0, 0, 0, 0.12));
  }

  .hero-content {
    align-content: end;
    padding: 118px 22px 122px;
  }

  .hero h1 {
    max-width: 8.8ch;
    font-size: clamp(46px, 12vw, 60px);
    line-height: 1.02;
  }

  .hero-lede {
    max-width: 310px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.82);
  }

  .hero-actions {
    margin-top: 22px;
  }

  .red-action-band {
    width: calc(100% - 24px);
    margin-top: -78px;
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .red-action-band article {
    min-height: 134px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 12px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.12);
  }

  .red-action-band article:nth-child(2) {
    background: #fff5f4;
  }

  .red-action-band article:nth-child(3) {
    color: #fff;
    background: #063837;
  }

  .red-action-band article:nth-child(3) h2,
  .red-action-band article:nth-child(3) p {
    color: #fff;
  }

  .red-action-band article::before {
    width: 30px;
    height: 3px;
    margin-bottom: 14px;
  }

  .red-action-band h2 {
    font-size: 21px;
    line-height: 1.08;
  }

  .red-action-band p {
    max-width: none;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.42;
  }

  .red-action-band a {
    display: none;
  }

  #product.section-band {
    margin-top: 64px;
    padding: 72px 0 66px;
  }

  .section-heading {
    width: calc(100% - 36px);
    text-align: left;
  }

  .section-heading .eyebrow {
    text-align: left;
  }

  .section-heading h2 {
    max-width: 9.8ch;
    margin: 0;
    font-size: clamp(38px, 10.5vw, 54px);
  }

  .section-lede {
    max-width: 310px;
    margin: 16px 0 0;
    font-size: 15px;
  }

  .condition-track {
    left: auto;
    width: 100%;
    justify-content: flex-start;
    gap: 14px;
    min-height: 0;
    margin-top: 34px;
    padding: 0 18px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    transform: none;
    scrollbar-width: none;
  }

  .condition-track::-webkit-scrollbar {
    display: none;
  }

  .condition-card,
  .condition-card.is-active,
  .condition-card.is-prev,
  .condition-card.is-next {
    display: grid;
    flex: 0 0 min(82vw, 330px);
    height: 380px;
    opacity: 1;
    filter: none;
    transform: none;
    scroll-snap-align: center;
  }

  .condition-card h3,
  .condition-card.is-active h3,
  .condition-card.is-prev h3,
  .condition-card.is-next h3 {
    max-width: 10.5ch;
    font-size: clamp(34px, 9vw, 44px);
    line-height: 1.02;
  }

  .condition-carousel-control {
    margin-top: 22px;
  }

  .wellness-section {
    width: 100%;
    margin-top: 0;
    border: 0;
    padding: 66px 22px;
    color: #fff;
    background:
      linear-gradient(180deg, rgba(5, 48, 47, 0.96), rgba(6, 34, 34, 0.98)),
      #063837;
  }

  .wellness-section .eyebrow {
    color: #78e0bd;
  }

  .wellness-section h2,
  .wellness-section > div:first-child p:not(.eyebrow) {
    color: #fff;
  }

  .wellness-section h2 {
    max-width: 9.5ch;
  }

  .wellness-section > div:first-child p:not(.eyebrow) {
    max-width: 310px;
    color: rgba(255, 255, 255, 0.72);
  }

  .trust-grid {
    gap: 10px;
    margin-top: 10px;
  }

  .trust-grid article {
    min-height: 0;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
  }

  .trust-grid span {
    color: #78e0bd;
  }

  .trust-grid strong {
    color: #fff;
  }

  .trust-grid p {
    color: rgba(255, 255, 255, 0.7);
  }

  .pilot-section,
  .library-preview,
  .demo-section {
    width: calc(100% - 28px);
    margin-top: 0;
    padding-top: 58px;
  }

  .pilot-grid {
    gap: 9px;
  }

  .pilot-grid article {
    border-radius: 12px;
    background: #fff;
  }

  .pilot-grid article + article {
    margin-top: 0;
  }

  .library-preview {
    align-items: start;
  }

  .library-preview-copy {
    align-content: start;
  }

  .insight-pills {
    gap: 7px;
  }

  .insight-pills span {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .demo-section {
    padding-top: 44px;
  }

  .demo-copy h2 {
    max-width: 10ch;
  }

  .proof-strip {
    gap: 7px;
    margin-top: 18px;
  }

  .proof-strip span {
    min-height: 30px;
    padding: 0 9px;
    font-size: 10px;
  }

  .request-panel {
    margin-top: 2px;
    border-radius: 14px;
    padding: 18px;
  }

  .panel-header {
    margin-bottom: 14px;
  }

  .panel-header strong {
    font-size: 24px;
  }

  .form-grid {
    gap: 10px;
  }

  .contact-form input,
  .contact-form select {
    min-height: 42px;
  }

  .privacy-callout {
    padding: 12px;
  }

  .privacy-callout p {
    margin-top: 4px;
    font-size: 12px;
  }

  .contact-form textarea {
    min-height: 96px;
  }

  .site-footer {
    width: calc(100% - 28px);
    margin-top: 58px;
  }
}

/* Minimal header menu */
.topbar {
  overflow: visible;
}

.mega-panel {
  display: none !important;
}

body:not(.admin-page) .utility-pill {
  display: none !important;
}

.menu-toggle {
  appearance: none;
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(9, 9, 9, 0.1);
  border-radius: 999px;
  color: #17110f;
  background: rgba(255, 250, 248, 0.92);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(22px) saturate(1.1);
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
  transition: transform 160ms ease;
}

.menu-toggle:hover {
  background: #fff;
}

body[data-view="start"] .menu-toggle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(7, 7, 7, 0.72);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

body[data-view="start"][data-scrolled="true"] .menu-toggle {
  color: #17110f;
  border-color: rgba(9, 9, 9, 0.1);
  background: rgba(255, 250, 248, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

body[data-menu-open="true"] .menu-toggle span:first-child {
  transform: translateY(4px) rotate(45deg);
}

body[data-menu-open="true"] .menu-toggle span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.site-links,
body[data-view="start"] .site-links,
body[data-view="start"][data-scrolled="true"] .site-links,
body:not([data-view="start"]) .site-links {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 80;
  display: grid;
  justify-self: auto;
  justify-content: stretch;
  width: min(330px, calc(100vw - 40px));
  min-height: 0;
  gap: 4px;
  border: 1px solid rgba(9, 9, 9, 0.08);
  border-radius: 16px;
  padding: 8px;
  background: rgba(255, 250, 248, 0.96);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(26px) saturate(1.08);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, -8px, 0) scale(0.98);
  transform-origin: top right;
  transition: opacity 160ms ease, transform 160ms ease;
}

body[data-view="start"] .site-links {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(8, 8, 8, 0.88);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.34);
}

body[data-view="start"][data-scrolled="true"] .site-links {
  border-color: rgba(9, 9, 9, 0.08);
  background: rgba(255, 250, 248, 0.96);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.16);
}

body[data-menu-open="true"] .site-links,
body[data-view="start"][data-menu-open="true"] .site-links,
body[data-view="start"][data-scrolled="true"][data-menu-open="true"] .site-links {
  opacity: 1;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.site-links a,
body[data-view="start"] .site-links a,
body[data-view="start"][data-scrolled="true"] .site-links a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px;
  padding: 0 14px;
  color: #201b19;
  background: transparent;
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
  text-shadow: none;
}

body[data-view="start"] .site-links a {
  color: #fff;
}

body[data-view="start"][data-scrolled="true"] .site-links a {
  color: #201b19;
}

.site-links a:hover,
.site-links a[aria-current="page"] {
  color: var(--red-dark);
  background: var(--red-soft);
}

body[data-view="start"] .site-links a:hover,
body[data-view="start"] .site-links a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

body[data-view="start"][data-scrolled="true"] .site-links a:hover,
body[data-view="start"][data-scrolled="true"] .site-links a[aria-current="page"] {
  color: var(--red-dark);
  background: var(--red-soft);
}

.site-links a:last-child {
  justify-content: center;
  color: #fff;
  background: #090909;
}

body[data-view="start"] .site-links a:last-child {
  color: #090909;
  background: #fff;
}

body[data-view="start"][data-scrolled="true"] .site-links a:last-child {
  color: #fff;
  background: #090909;
}

.admin-page .topbar {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}

.admin-page .utility-pill {
  grid-column: 4;
  display: inline-flex;
  justify-self: end;
}

.admin-page .menu-toggle {
  grid-column: 3;
}

@media (max-width: 760px) {
  .topbar,
  body[data-view="start"] .topbar,
  body:not([data-view="start"]) .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
  }

  .site-links,
  body[data-view="start"] .site-links,
  body[data-view="start"][data-scrolled="true"] .site-links,
  body:not([data-view="start"]) .site-links {
    top: calc(100% + 8px);
    width: min(330px, calc(100vw - 20px));
  }

  .site-links a,
  body[data-view="start"] .site-links a,
  body[data-view="start"][data-scrolled="true"] .site-links a {
    min-height: 48px;
    font-size: 14px;
  }

  .admin-page .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .admin-page .utility-pill {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

/* First-viewport clutter reduction */
.cookie-banner {
  width: min(560px, calc(100% - 36px));
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}

.cookie-banner p {
  max-width: 48ch;
}

.cookie-actions {
  justify-content: flex-start;
}

.cookie-actions .button,
.cookie-actions .mini-button {
  min-height: 36px;
  padding: 0 13px;
  font-size: 11px;
}

.avatar-media {
  width: 154px;
  height: 154px;
}

.avatar-play-button {
  right: 9px;
  bottom: 10px;
  width: 46px;
  height: 46px;
}

.avatar-language-controls button {
  min-width: 34px;
  min-height: 28px;
  font-size: 11px;
}

@media (max-width: 760px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
    width: auto;
    border-radius: 16px;
    padding: 10px;
  }

  .cookie-banner strong {
    font-size: 13px;
  }

  .cookie-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .cookie-actions .button,
  .cookie-actions .mini-button {
    min-height: 38px;
    padding: 0 5px;
    font-size: 10px;
  }

  .avatar-widget {
    display: none !important;
  }
}

/* Scroll journey refresh */
body[data-view="start"] main {
  background:
    linear-gradient(180deg, #f5efec 0 18%, #fff 18% 52%, #f5efec 52% 100%);
}

.journey-flow {
  position: relative;
  width: 100%;
  margin: clamp(64px, 8vw, 118px) 0 0;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(6, 6, 6, 0.98) 0%, rgba(11, 18, 18, 0.97) 56%, rgba(50, 8, 8, 0.94) 100%),
    #090909;
}

.journey-flow::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(56vw, 820px);
  background:
    linear-gradient(90deg, rgba(9, 9, 9, 0.92), rgba(9, 9, 9, 0.18)),
    url("assets/usecase-discharge.webp") center / cover;
  opacity: 0.34;
}

.journey-flow::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
}

.journey-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 0.52fr) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 116px);
  width: min(1480px, calc(100% - 44px));
  margin: 0 auto;
  padding: clamp(82px, 9vw, 132px) 0;
}

.journey-copy {
  align-self: center;
}

.journey-copy .eyebrow {
  color: #ffb7b7;
}

.journey-copy h2 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(35px, 3.02vw, 53px);
}

.journey-copy p:not(.eyebrow) {
  max-width: 520px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(17px, 1.25vw, 20px);
  line-height: 1.5;
  font-weight: 720;
}

.journey-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.58fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.journey-steps {
  position: relative;
  display: grid;
  gap: clamp(24px, 3vw, 38px);
  padding-left: 30px;
}

.journey-steps::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 10px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--red), rgba(255, 255, 255, 0.32), #78e0bd);
}

.journey-step {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.journey-step::before {
  content: "";
  position: absolute;
  top: 14px;
  left: -24px;
  width: 14px;
  height: 14px;
  border: 3px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 8px rgba(223, 23, 24, 0.12);
}

.journey-step:nth-child(4)::before {
  background: #78e0bd;
  box-shadow: 0 0 0 8px rgba(120, 224, 189, 0.12);
}

.journey-step span {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 950;
}

.journey-step strong,
.journey-step p {
  display: block;
}

.journey-step strong {
  color: #fff;
  font-size: clamp(20px, 1.6vw, 28px);
  line-height: 1.08;
}

.journey-step p {
  max-width: 440px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.45;
  font-weight: 700;
}

.journey-device {
  display: grid;
  min-height: clamp(380px, 32vw, 520px);
  place-items: center;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 34px 82px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(20px);
}

.journey-phone {
  display: grid;
  width: min(260px, 78%);
  gap: 18px;
  border: 8px solid #121212;
  border-radius: 32px;
  padding: 24px 18px;
  color: var(--ink);
  background: #fffaf8;
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.38);
}

.journey-phone > span {
  color: var(--red-dark);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.journey-phone strong {
  font-size: 28px;
  line-height: 1.04;
}

.journey-wave {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 5px;
  align-items: center;
  height: 96px;
  border-radius: 8px;
  padding: 14px;
  background: #101010;
}

.journey-wave i {
  display: block;
  height: var(--wave-height, 42%);
  min-height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffb7b7, var(--red));
}

.journey-wave i:nth-child(2) { --wave-height: 70%; }
.journey-wave i:nth-child(3) { --wave-height: 34%; }
.journey-wave i:nth-child(4) { --wave-height: 86%; }
.journey-wave i:nth-child(5) { --wave-height: 58%; }
.journey-wave i:nth-child(6) { --wave-height: 76%; }
.journey-wave i:nth-child(7) { --wave-height: 38%; }
.journey-wave i:nth-child(8) { --wave-height: 66%; }
.journey-wave i:nth-child(9) { --wave-height: 48%; }
.journey-wave i:nth-child(10) { --wave-height: 82%; }

.journey-list {
  display: grid;
  gap: 8px;
}

.journey-list b {
  display: block;
  border-left: 3px solid var(--red);
  padding-left: 10px;
  color: #403a36;
  font-size: 13px;
  line-height: 1.25;
}

@media (min-width: 901px) {
  #product .section-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(330px, 0.42fr);
    gap: clamp(34px, 5vw, 82px);
    align-items: end;
    text-align: left;
  }

  #product .section-heading h2,
  #product .section-lede {
    margin-left: 0;
    margin-right: 0;
  }
}

#product.section-band {
  position: relative;
  margin-top: 0;
  background:
    linear-gradient(180deg, #fff 0%, #fff 66%, #f5efec 100%);
}

#product.section-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1480px, calc(100% - 44px));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(9, 9, 9, 0.16), transparent);
  transform: translateX(-50%);
}

body[data-view="start"] .wellness-section {
  width: 100%;
  margin-top: 0;
  border: 0;
  padding: clamp(76px, 9vw, 132px) max(22px, calc((100vw - 1480px) / 2 + 22px));
  color: #fff;
  background:
    linear-gradient(115deg, rgba(5, 45, 44, 0.98), rgba(7, 19, 19, 0.96)),
    #063837;
}

body[data-view="start"] .wellness-section .eyebrow {
  color: #78e0bd;
}

body[data-view="start"] .wellness-section h2,
body[data-view="start"] .wellness-section > div:first-child p:not(.eyebrow) {
  color: #fff;
}

body[data-view="start"] .wellness-section > div:first-child p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

body[data-view="start"] .trust-grid article {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.08);
}

body[data-view="start"] .trust-grid span {
  color: #78e0bd;
}

body[data-view="start"] .trust-grid strong {
  color: #fff;
}

body[data-view="start"] .trust-grid p {
  color: rgba(255, 255, 255, 0.68);
}

body[data-view="start"] .pilot-section {
  position: relative;
  border-top: 0;
  padding-top: clamp(72px, 8vw, 118px);
}

body[data-view="start"] .pilot-section::before {
  content: "";
  position: absolute;
  top: clamp(54px, 6vw, 82px);
  right: max(0px, calc((100vw - 1480px) / 2));
  width: min(38vw, 540px);
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red), #090909);
}

body[data-view="start"] .pilot-grid article {
  border: 0;
  background: #fff;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.08);
}

@media (min-width: 901px) {
  body[data-view="start"] .pilot-grid article:nth-child(2) {
    margin-top: 36px;
  }

  body[data-view="start"] .pilot-grid article:nth-child(3) {
    margin-top: -18px;
  }
}

body[data-view="start"] .library-preview {
  position: relative;
  width: 100%;
  margin-top: clamp(72px, 8vw, 122px);
  overflow: hidden;
  border-top: 0;
  padding: clamp(78px, 9vw, 132px) max(22px, calc((100vw - 1480px) / 2 + 22px));
  color: #fff;
  background: #090909;
}

body[data-view="start"] .library-preview::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(54vw, 840px);
  background:
    linear-gradient(90deg, #090909 0%, rgba(9, 9, 9, 0.52) 42%, rgba(9, 9, 9, 0.16)),
    url("assets/patient-story-poster-bright.webp") center / cover;
  opacity: 0.82;
}

body[data-view="start"] .library-preview > div {
  position: relative;
  z-index: 1;
}

body[data-view="start"] .library-preview .eyebrow {
  color: #ffb7b7;
}

body[data-view="start"] .library-preview h2,
body[data-view="start"] .library-preview-copy p {
  color: #fff;
}

body[data-view="start"] .library-preview-copy p {
  color: rgba(255, 255, 255, 0.72);
}

body[data-view="start"] .library-preview .button-primary {
  color: var(--ink);
  background: #fff;
}

body[data-view="start"] .insight-pills span {
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.scroll-reveal {
  opacity: 1;
  translate: 0 18px;
  transition: translate 520ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.scroll-reveal.is-visible {
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal {
    opacity: 1;
    translate: 0 0;
    transition: none;
  }
}

@media (max-width: 900px) {
  .journey-inner,
  .journey-map,
  .wellness-section,
  .pilot-section,
  .library-preview {
    grid-template-columns: minmax(0, 1fr);
  }

  .journey-device {
    min-height: 360px;
  }

  body[data-view="start"] .pilot-section::before {
    width: 44vw;
  }
}

@media (max-width: 760px) {
  body[data-view="start"] main {
    background: #f4eeeb;
  }

  .journey-flow {
    margin-top: 54px;
  }

  .journey-inner {
    width: calc(100% - 28px);
    gap: 34px;
    padding: 66px 0;
  }

  .journey-copy h2 {
    max-width: 9.8ch;
    font-size: clamp(38px, 10vw, 52px);
  }

  .journey-copy p:not(.eyebrow) {
    max-width: 320px;
    font-size: 15px;
  }

  .journey-map {
    gap: 28px;
  }

  .journey-steps {
    gap: 22px;
    padding-left: 24px;
  }

  .journey-step {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
  }

  .journey-step span {
    width: 42px;
    height: 42px;
  }

  .journey-step strong {
    font-size: 20px;
  }

  .journey-step p {
    font-size: 13px;
  }

  .journey-device {
    min-height: 330px;
  }

  .journey-phone {
    width: min(250px, 86%);
  }

  body[data-view="start"] .wellness-section,
  body[data-view="start"] .library-preview {
    padding: 66px 22px;
  }

  body[data-view="start"] .pilot-section {
    padding-top: 58px;
  }

  body[data-view="start"] .pilot-section::before {
    display: none;
  }

  body[data-view="start"] .library-preview {
    margin-top: 58px;
  }

  body[data-view="start"] .library-preview::before {
    inset: auto 0 0;
    width: 100%;
    height: 48%;
    opacity: 0.34;
  }
}

body[data-view="start"] .avatar-widget {
  display: grid !important;
  right: clamp(14px, 2vw, 28px);
  bottom: clamp(14px, 2vw, 26px);
  z-index: 88;
}

@media (max-width: 760px) {
  body[data-view="start"] .avatar-widget {
    display: grid !important;
    right: 12px;
    bottom: 104px;
    transform: none;
  }

  body[data-view="start"] .avatar-media {
    width: 58px;
    height: 58px;
  }

  body[data-view="start"] .avatar-play-button {
    right: -2px;
    bottom: -1px;
    width: 30px;
    height: 30px;
  }

  body[data-view="start"] .avatar-close-button {
    top: -1px;
    right: -1px;
    width: 24px;
    height: 24px;
  }

  body[data-view="start"] .avatar-language-controls {
    display: none;
  }
}

@media (min-width: 901px) {
  #product .section-heading .eyebrow {
    grid-column: 1 / -1;
  }

  #product .section-heading h2 {
    grid-column: 1;
    max-width: 11ch;
    margin: 0;
  }

  #product .section-lede {
    grid-column: 2;
    align-self: end;
    max-width: 500px;
    margin: 0 0 8px;
  }
}

/* Demo request finish */
body[data-view="start"] .demo-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(360px, 0.72fr) minmax(420px, 0.78fr);
  gap: clamp(48px, 6vw, 112px);
  align-items: start;
  width: 100%;
  margin-top: 0;
  border-top: 0;
  padding: clamp(96px, 8.4vw, 140px) max(22px, calc((100vw - 1480px) / 2 + 22px)) clamp(92px, 8vw, 132px);
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 12%, rgba(223, 23, 24, 0.18), transparent 24%),
    linear-gradient(110deg, rgba(223, 23, 24, 0.08), transparent 34%),
    #050505;
  color: #fff;
}

body[data-view="start"] .demo-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: max(22px, calc((100vw - 1480px) / 2 + 22px));
  width: min(440px, calc(100% - 44px));
  height: 8px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--red) 0 28%, rgba(255, 255, 255, 0.9) 28% 100%);
}

body[data-view="start"] .demo-section::after {
  content: "";
  position: absolute;
  right: -12vw;
  bottom: -34vw;
  width: 58vw;
  height: 58vw;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

body[data-view="start"] .demo-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  padding-top: 4px;
}

body[data-view="start"] .demo-copy .eyebrow {
  margin-bottom: 22px;
  color: #ff4b4b;
}

body[data-view="start"] .demo-copy h2 {
  max-width: 9.4ch;
  margin: 0;
  color: #fff;
  font-size: clamp(46px, 3.58vw, 69px);
  line-height: 0.91;
}

body[data-view="start"] .demo-copy p:not(.eyebrow) {
  max-width: 520px;
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(17px, 1.28vw, 22px);
  line-height: 1.44;
}

body[data-view="start"] .proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(560px, 100%);
  margin-top: 42px;
}

body[data-view="start"] .proof-strip span {
  justify-content: center;
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.16);
  padding: 0 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  font-size: 12px;
}

body[data-view="start"] .request-panel {
  position: relative;
  z-index: 1;
  justify-self: stretch;
  max-width: 860px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: clamp(28px, 3.3vw, 46px);
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
  backdrop-filter: blur(24px);
}

body[data-view="start"] .request-panel .panel-header {
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: clamp(24px, 2.8vw, 38px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 20px;
}

body[data-view="start"] .request-panel .panel-header span {
  grid-column: 1 / -1;
  color: #ff4b4b;
}

body[data-view="start"] .request-panel .panel-header strong {
  max-width: 13ch;
  color: #fff;
  font-size: clamp(26px, 1.85vw, 32px);
  line-height: 0.96;
}

body[data-view="start"] .contact-form {
  gap: 20px;
}

body[data-view="start"] .form-grid {
  gap: 18px 22px;
}

body[data-view="start"] .contact-form label {
  gap: 9px;
}

body[data-view="start"] .contact-form label > span,
body[data-view="start"] .consent-check span {
  color: rgba(255, 255, 255, 0.76);
}

body[data-view="start"] .contact-form input,
body[data-view="start"] .contact-form select,
body[data-view="start"] .contact-form textarea {
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

body[data-view="start"] .contact-form input,
body[data-view="start"] .contact-form select {
  min-height: 48px;
  border-radius: 6px;
}

body[data-view="start"] .contact-form select option {
  color: var(--ink);
  background: #fff;
}

body[data-view="start"] .contact-form textarea {
  min-height: 120px;
  border-radius: 6px;
}

body[data-view="start"] .contact-form input::placeholder,
body[data-view="start"] .contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.44);
}

body[data-view="start"] .contact-form input:focus,
body[data-view="start"] .contact-form select:focus,
body[data-view="start"] .contact-form textarea:focus {
  outline: 2px solid rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.56);
}

body[data-view="start"] .privacy-callout {
  display: grid;
  gap: 6px;
  border-color: rgba(223, 23, 24, 0.34);
  border-radius: 6px;
  padding: 16px 18px;
  background: rgba(223, 23, 24, 0.12);
}

body[data-view="start"] .privacy-callout strong {
  color: #fff;
}

body[data-view="start"] .privacy-callout p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
}

body[data-view="start"] .wide-action {
  justify-self: start;
  min-width: min(100%, 260px);
  color: var(--ink);
  background: #fff;
}

body[data-view="start"] .form-status {
  color: rgba(255, 255, 255, 0.74);
}

body[data-view="start"][data-contact-visible="true"] .avatar-widget {
  display: none !important;
}

@media (max-width: 1100px) {
  body[data-view="start"] .demo-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
  }

  body[data-view="start"] .demo-copy {
    position: static;
    max-width: 880px;
  }

  body[data-view="start"] .demo-copy h2 {
    max-width: 10ch;
  }

  body[data-view="start"] .proof-strip {
    width: min(100%, 760px);
    margin-top: 32px;
  }
}

@media (max-width: 760px) {
  body[data-view="start"] .demo-section {
    width: 100%;
    padding: 78px 22px 78px;
  }

  body[data-view="start"] .demo-section::before {
    left: 22px;
    width: min(240px, calc(100% - 44px));
    height: 6px;
  }

  body[data-view="start"] .demo-copy {
    padding-top: 0;
  }

  body[data-view="start"] .demo-copy .eyebrow {
    margin-bottom: 16px;
  }

  body[data-view="start"] .demo-copy h2 {
    max-width: 9.2ch;
    font-size: clamp(44px, 12vw, 62px);
  }

  body[data-view="start"] .demo-copy p:not(.eyebrow) {
    max-width: 340px;
    margin-top: 22px;
    font-size: 15px;
  }

  body[data-view="start"] .proof-strip {
    gap: 8px;
    width: 100%;
    margin-top: 26px;
  }

  body[data-view="start"] .proof-strip span {
    min-height: 34px;
    padding: 0 13px;
    font-size: 11px;
  }

  body[data-view="start"] .request-panel {
    width: 100%;
    margin-top: 0;
    border-radius: 8px;
    padding: 20px;
  }

  body[data-view="start"] .request-panel .panel-header {
    grid-template-columns: 1fr;
    margin-bottom: 20px;
    padding-bottom: 15px;
  }

  body[data-view="start"] .request-panel .panel-header strong {
    max-width: 12ch;
    font-size: 32px;
  }

  body[data-view="start"] .form-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  body[data-view="start"] .contact-form {
    gap: 14px;
  }

  body[data-view="start"] .contact-form input,
  body[data-view="start"] .contact-form select {
    min-height: 46px;
  }

  body[data-view="start"] .contact-form textarea {
    min-height: 112px;
  }

  body[data-view="start"] .wide-action {
    justify-self: stretch;
  }
}

/* Mobile responsiveness polish */
@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body:not([data-view="start"]) main {
    padding-top: 26px;
  }

  .topbar,
  body[data-view="start"] .topbar,
  body:not([data-view="start"]) .topbar {
    width: calc(100% - 20px);
  }

  .site-links,
  body[data-view="start"] .site-links,
  body[data-view="start"][data-scrolled="true"] .site-links,
  body:not([data-view="start"]) .site-links {
    right: 0;
    width: min(340px, calc(100vw - 20px));
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    background: #fffaf8;
    backdrop-filter: none;
  }

  body[data-view="start"] .site-links,
  body[data-view="start"][data-scrolled="true"] .site-links {
    border-color: rgba(9, 9, 9, 0.08);
    background: #fffaf8;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.2);
  }

  body[data-view="start"] .site-links a,
  body[data-view="start"][data-scrolled="true"] .site-links a {
    color: #201b19;
  }

  body[data-view="start"] .site-links a:hover,
  body[data-view="start"] .site-links a[aria-current="page"] {
    color: var(--red-dark);
    background: var(--red-soft);
  }

  body[data-view="start"] .site-links a:last-child,
  body[data-view="start"][data-scrolled="true"] .site-links a:last-child {
    color: #fff;
    background: #090909;
  }

  body[data-menu-open="true"] .avatar-widget {
    display: none !important;
  }

  body[data-view="start"] .avatar-widget {
    display: none !important;
  }

  .hero {
    min-height: min(680px, 100svh);
  }

  .hero-content {
    padding-bottom: 96px;
  }

  .hero h1 {
    max-width: 8.5ch;
    font-size: clamp(43px, 11.2vw, 56px);
  }

  .hero-lede {
    max-width: 330px;
    font-size: 16px;
  }

  .red-action-band {
    margin-top: -54px;
    gap: 10px;
  }

  .red-action-band article {
    min-height: 0;
    padding: 20px;
  }

  .journey-inner {
    width: calc(100% - 32px);
    padding: 72px 0;
  }

  .journey-copy h2 {
    max-width: 9.2ch;
    font-size: clamp(39px, 10.4vw, 50px);
  }

  .journey-step {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .journey-step span {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .journey-step strong {
    font-size: 19px;
  }

  .journey-device {
    min-height: 300px;
  }

  #product.section-band {
    margin-top: 0;
    padding: 68px 0 64px;
  }

  .condition-track {
    left: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 36px);
    min-height: 0;
    margin: 34px auto 0;
    padding: 0;
    overflow: visible;
    gap: 14px;
    transform: none;
  }

  .condition-card,
  .condition-card.is-active,
  .condition-card.is-prev,
  .condition-card.is-next {
    display: grid;
    width: 100%;
    height: clamp(238px, 68vw, 292px);
    flex: none;
    border-radius: 14px;
    padding: 22px;
    opacity: 1;
    filter: none;
    transform: none;
    scroll-snap-align: unset;
  }

  .condition-card h3,
  .condition-card.is-active h3,
  .condition-card.is-prev h3,
  .condition-card.is-next h3 {
    max-width: 10ch;
    font-size: clamp(30px, 8.2vw, 40px);
    line-height: 1.03;
  }

  .condition-card a {
    min-height: 38px;
    margin-top: 18px;
    padding: 9px 13px;
    font-size: 12px;
  }

  .condition-carousel-control,
  .condition-carousel-rail {
    display: none;
  }

  .wellness-section {
    padding: 72px 22px;
  }

  .wellness-section h2 {
    max-width: 8.8ch;
    font-size: clamp(39px, 10vw, 50px);
  }

  .pilot-section,
  body[data-view="start"] .pilot-section {
    width: calc(100% - 32px);
    padding-top: 64px;
  }

  body[data-view="start"] .library-preview {
    margin-top: 64px;
    padding: 72px 22px;
  }

  body[data-view="start"] .demo-section {
    padding: 82px 22px 80px;
  }

  body[data-view="start"] .demo-section::after {
    display: none;
  }

  .library-hero,
  .admin-hero,
  .article-detail,
  .legal-hero {
    padding-top: 54px;
  }

  .library-hero h1,
  .admin-hero h1,
  .article-detail-hero h1,
  .legal-hero h1 {
    font-size: clamp(40px, 10.8vw, 58px);
    line-height: 1.05;
  }

  .library-hero p,
  .admin-hero p,
  .article-detail-hero p,
  .legal-hero p:not(.eyebrow) {
    font-size: 16px;
    line-height: 1.48;
  }

  .library-empty {
    padding: 34px 0 8px;
  }

  .library-empty h1,
  .library-empty h2 {
    font-size: clamp(38px, 10.5vw, 52px);
    line-height: 1.05;
  }

  .site-footer {
    gap: 28px;
    border-radius: 12px 12px 0 0;
    padding: 28px 22px;
  }

  .cookie-banner {
    bottom: max(8px, env(safe-area-inset-bottom));
    gap: 8px;
    border-radius: 14px;
    padding: 8px;
  }

  .cookie-banner strong {
    font-size: 12px;
    line-height: 1.2;
  }

  .cookie-actions {
    gap: 6px;
  }

  .cookie-actions .button,
  .cookie-actions .mini-button {
    min-height: 34px;
    padding: 0 4px;
    font-size: 9px;
  }

  .footer-brand {
    width: min(280px, 100%);
  }

  .footer-links,
  .footer-legal {
    gap: 12px;
  }

  .leadership-hero {
    min-height: min(690px, 92svh);
  }

  .leadership-hero-copy {
    width: calc(100% - 40px);
    padding: 126px 0 56px;
  }

  .leadership-hero-copy h1 {
    max-width: 8.8ch;
    font-size: clamp(43px, 11.1vw, 58px);
    line-height: 1.02;
  }

  .leadership-hero-copy p:not(.eyebrow) {
    max-width: 330px;
    font-size: 16px;
  }

  .leadership-intro,
  .leadership-directory,
  .leadership-principles {
    width: calc(100% - 40px);
  }

  .leadership-intro {
    padding: 68px 0 34px;
  }

  .leadership-title h2 {
    font-size: clamp(42px, 11vw, 58px);
  }

  .leadership-lede {
    font-size: 16px;
  }

  .leader-grid {
    gap: 44px;
  }

  .leader-photo {
    aspect-ratio: 1 / 0.94;
    border-radius: 12px;
  }

  .leader-photo img,
  .leader-card[data-leader="ziv"] .leader-photo img,
  .leader-card[data-leader="moshe"] .leader-photo img,
  .leader-card[data-leader="nimrod"] .leader-photo img {
    transform: none;
  }

  .leader-info h3 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .leader-info p:not(.leader-kicker) {
    font-size: 15px;
    line-height: 1.52;
  }

  .leadership-principles {
    padding-top: 58px;
  }
}

@media (max-width: 380px) {
  .brand-logo {
    max-width: 142px;
  }

  body:not([data-view="start"]) .brand-logo {
    max-width: 156px;
  }

  .hero h1,
  .leadership-hero-copy h1 {
    font-size: clamp(41px, 11vw, 52px);
  }

  .demo-copy h2,
  body[data-view="start"] .demo-copy h2 {
    font-size: clamp(42px, 11.2vw, 54px);
  }

  .request-panel .panel-header strong,
  body[data-view="start"] .request-panel .panel-header strong {
    font-size: 30px;
  }
}

/* Avatar widget restore */
body[data-view="start"] .avatar-widget,
body[data-view="start"][data-contact-visible="true"] .avatar-widget {
  display: grid !important;
}

body[data-view="start"][data-menu-open="true"] .avatar-widget {
  display: none !important;
}

@media (max-width: 760px) {
  body[data-view="start"] .avatar-widget,
  body[data-view="start"][data-contact-visible="true"] .avatar-widget {
    right: 10px;
    bottom: max(84px, calc(env(safe-area-inset-bottom) + 84px));
    z-index: 88;
    transform: none;
  }

  body[data-view="start"] .avatar-panel {
    gap: 0;
  }

  body[data-view="start"] .avatar-media {
    width: 60px;
    height: 60px;
  }

  body[data-view="start"] .avatar-media video {
    border-width: 2px;
  }

  body[data-view="start"] .avatar-close-button {
    top: -3px;
    right: -3px;
    width: 24px;
    height: 24px;
    font-size: 15px;
  }

  body[data-view="start"] .avatar-play-button {
    right: -2px;
    bottom: 0;
    width: 28px;
    height: 28px;
  }

  body[data-view="start"] .avatar-listening-wave {
    right: 31px;
    bottom: 8px;
  }

  body[data-view="start"] .avatar-restore {
    width: 52px;
    height: 52px;
  }

  body[data-view="start"] .avatar-language-controls {
    display: none;
  }

  body[data-view="start"][data-menu-open="true"] .avatar-widget {
    display: none !important;
  }

  body[data-view="start"]:has(.cookie-banner[hidden]) .avatar-widget {
    bottom: max(14px, calc(env(safe-area-inset-bottom) + 14px));
  }
}

@media (max-width: 380px) {
  body[data-view="start"] .avatar-widget,
  body[data-view="start"][data-contact-visible="true"] .avatar-widget {
    right: 8px;
    bottom: max(80px, calc(env(safe-area-inset-bottom) + 80px));
  }

  body[data-view="start"] .avatar-media {
    width: 56px;
    height: 56px;
  }
}

/* ============================================================
   Episode library (episodes.html) + homepage teaser
   ============================================================ */

.episodes-hero p {
  max-width: 720px;
}

.episodes-filters {
  display: grid;
  gap: 12px;
  margin: 4px 0 0;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-pill {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  color: var(--ink-2);
  background: var(--white);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.filter-pill:hover {
  border-color: var(--ink);
}

.filter-pill.is-active {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 26px;
  margin-bottom: 56px;
}

.episode-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.episode-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.1);
}

.episode-cover {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--soft);
}

.episode-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-lang {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.episode-play {
  appearance: none;
  position: absolute;
  right: 16px;
  bottom: -26px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  box-shadow: 0 14px 30px var(--red-shadow), 0 6px 16px rgba(0, 0, 0, 0.16);
  transition: background 140ms ease, transform 140ms ease;
}

.episode-play:hover {
  background: var(--red-dark);
  transform: scale(1.05);
}

.episode-play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--white);
}

.episode-card.is-playing .episode-play-icon {
  width: 14px;
  height: 16px;
  margin-left: 0;
  border: 0;
  background:
    linear-gradient(var(--white), var(--white)) left / 5px 100% no-repeat,
    linear-gradient(var(--white), var(--white)) right / 5px 100% no-repeat;
}

.episode-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 34px 22px 22px;
}

.episode-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.episode-tag {
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--red-dark);
  background: var(--red-soft);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.episode-body h3 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 950;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.episode-body p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.episode-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.episode-duration::before {
  content: "▸ ";
  color: var(--red);
}

.episode-audience {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  line-height: 1;
}

.episode-share {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-inline-start: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease, background 140ms ease;
}

.episode-share svg {
  display: block;
}

.episode-share:hover {
  border-color: var(--red);
  color: var(--red);
}

.m2c-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  z-index: 1000;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}

.m2c-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.episode-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.episode-progress-bar {
  position: relative;
  display: block;
  height: 4px;
  width: 0%;
  min-width: 0;
  border-radius: 999px;
  background: var(--red);
  transition: width 400ms linear;
}

.episode-progress {
  background:
    linear-gradient(var(--line), var(--line)) 0 calc(50% + 0px) / calc(100% - 46px) 4px no-repeat;
}

.episode-progress-time {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.episodes-empty {
  grid-column: 1 / -1;
  margin: 0;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 38px 22px;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
  font-weight: 650;
}

.episodes-note {
  margin-bottom: 64px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 18px 22px;
  background: var(--white);
}

.episodes-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.episodes-note strong {
  color: var(--ink-2);
}

/* Homepage teaser band */
.episodes-preview {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  width: min(100% - 44px, 1480px);
  margin: clamp(64px, 7vw, 110px) auto 0;
  border-top: 1px solid var(--line);
  padding-top: clamp(46px, 5vw, 78px);
}

.episodes-preview h2 {
  margin: 10px 0 14px;
}

.episodes-preview > div:first-child p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.episodes-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.episodes-preview-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.episodes-preview-langs span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  color: var(--ink-2);
  background: var(--white);
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.episodes-preview-figure {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--white);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.07);
}

.episodes-preview-figure strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 950;
}

.episodes-preview-figure span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.episodes-preview-wave {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  height: 44px;
}

.episodes-preview-wave i {
  flex: 1;
  border-radius: 999px;
  background: var(--red);
  opacity: 0.85;
}

.episodes-preview-wave i:nth-child(odd) { height: 38%; }
.episodes-preview-wave i:nth-child(even) { height: 88%; }
.episodes-preview-wave i:nth-child(3n) { height: 60%; }

@media (max-width: 900px) {
  .episodes-preview {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .episodes-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .episodes-preview {
    width: min(100% - 22px, 1480px);
  }

  .episodes-filters {
    margin: 26px 0 22px;
  }

  .filter-pill {
    padding: 10px 14px;
    font-size: 12px;
  }

  .episode-body {
    padding: 30px 18px 18px;
  }
}

/* Keep the avatar presenter off the episode library — the page has its own audio player. */
body.episodes-page .avatar-widget {
  display: none !important;
}

/* hidden attribute must win over display:grid */
.episode-progress[hidden] {
  display: none;
}

/* ============================================================
   Lilly-inspired refinements (lilly-v1)
   ============================================================ */

/* 1. Serif italic accent inside display headings */
h1 em,
h2 em {
  font-family: "EB Garamond", Georgia, "Times New Roman", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.06em;
  letter-spacing: -0.005em;
}

/* 2. Slim full-width topbar once the page is scrolled */
.topbar {
  transition: width 220ms ease, margin 220ms ease, border-radius 220ms ease,
    padding 220ms ease, box-shadow 220ms ease;
}

body[data-scrolled="true"] .topbar {
  top: 0;
  width: 100%;
  margin: 0;
  border-radius: 0;
  border-top: 0;
  border-right: 0;
  border-left: 0;
  padding: 6px max(18px, calc((100vw - 1480px) / 2));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

body[data-scrolled="true"] .site-links {
  right: max(18px, calc((100vw - 1480px) / 2));
}

/* 3. Homepage episodes teaser: kill underlines, slim waveform bars */
.episodes-preview-figure,
.episodes-preview-figure strong,
.episodes-preview-figure span {
  text-decoration: none;
}

.episodes-preview-wave {
  justify-content: space-between;
}

.episodes-preview-wave i {
  flex: 0 0 7px;
}

/* 4. Avatar collapses to its small bubble while the contact form is on screen */
body[data-view="start"][data-contact-visible="true"] .avatar-panel {
  display: none;
}

body[data-view="start"][data-contact-visible="true"] .avatar-restore {
  display: grid !important;
}

/* 5. Stats band (Lilly-style numbers strip) */
.stats-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 48px);
  width: min(100% - 44px, 1480px);
  margin: clamp(64px, 7vw, 104px) auto 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(36px, 4.2vw, 58px) 0;
}

.stats-band article {
  display: grid;
  gap: 12px;
  align-content: start;
}

.stats-band strong {
  color: var(--ink);
  font-size: clamp(45px, 3.08vw, 60px);
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.01em;
}

.stats-band strong sub {
  bottom: 0;
  color: var(--red);
  font-size: 0.6em;
  vertical-align: baseline;
}

.stats-band span {
  max-width: 250px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 750;
  line-height: 1.45;
}

/* 6. Icons inside the red action band */
.red-action-band article svg {
  display: block;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
}

/* 7. Primary CTA goes brand red on standard surfaces */
.button-primary {
  background: var(--red);
  box-shadow: 0 18px 36px var(--red-shadow);
}

.button-primary:hover {
  background: var(--red-dark);
}

@media (max-width: 760px) {
  .stats-band {
    grid-template-columns: 1fr;
    gap: 30px;
    width: min(100% - 22px, 1480px);
  }

  .stats-band span {
    max-width: none;
  }
}

/* Pre-deploy polish: keyboard focus for filter pills + footer aligned to body gutter */
.filter-pill:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.site-footer {
  width: min(1480px, calc(100% - 44px));
}

/* Mobile headline sizing — keep serif hero readable and words whole on phones */
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(29px, 7.8vw, 40px); line-height: 1.12; }
  .hero-lede { font-size: clamp(16px, 4.2vw, 18px); }
}
@media (max-width: 380px) {
  .hero h1 { font-size: clamp(25px, 7.4vw, 32px); }
}
