.voa-page {
  --voa-chip: #f5f3f7;
  --voa-surface: #f0eef4;
  --voa-ink: #151121;
  --voa-screen-spacing: 40px;
}

.voa-page .study-hero,
.voa-page .study-cover { background: white; }
.voa-page .study .study-cover { padding-bottom: 0; }
.voa-page .study-hero .study-tags li { background: var(--voa-chip); }
.voa-page .study-research { background: var(--voa-surface); }
#voa-about, #voa-chat, #voa-research, .voa-scene { scroll-margin-top: 76px; }
.voa-page .study-chapter > h2 { margin-bottom: var(--section-heading-gap); }
.voa-page .study-summary { margin-top: var(--case-section-space); }
.voa-page .study-summary-inner { padding-block: var(--case-section-space); }
.voa-page .voa-decisions .study-facts dt { color: inherit; font-weight: 500; }
.voa-summary-copy { margin-top: var(--section-heading-gap); }
.voa-text { max-width: 74ch; }
.voa-text > p + p { margin-top: 16px; }

.study-callout.voa-research-intro {
  background: #e8daf4;
  border-left-color: #9366dc;
}
#voa-research:target .study-callout { clip-path: none !important; }
.voa-research-list {
  display: grid;
  gap: var(--section-heading-gap);
  margin: var(--section-heading-gap) 0 0;
  padding: 0;
  list-style: none;
}
.voa-research-item {
  display: grid;
  justify-items: start;
}
.voa-research-item > .voa-text { margin-block: 16px var(--voa-screen-spacing); }
.study .voa-reference {
  display: grid;
  justify-items: center;
  width: 100%;
  gap: var(--voa-screen-spacing);
  padding: var(--voa-screen-spacing) clamp(12px, 2vw, 20px);
  background: white;
  border-radius: 20px;
}
.voa-ref-grid {
  --reference-gap: clamp(24px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 532px);
  gap: var(--reference-gap);
}
.voa-ref-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 830px);
}
@media (max-width: 600px) {
  .voa-ref-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voa-ref-grid-three .voa-ref:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - var(--reference-gap)) / 2);
  }
}
.voa-ref { text-align: center; min-width: 0; font-size: .8em; color: var(--muted); }
.voa-ref img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 2.17;
  object-fit: cover;
  display: block;
  border-radius: 32px;
  margin-bottom: 8px;
}
.voa-reference figcaption { font-size: .9em; text-align: center; }

.voa-media {
  padding: var(--voa-screen-spacing) 32px;
  background: var(--voa-surface);
  border-radius: 20px;
}
.study figure.voa-media { margin-top: var(--voa-screen-spacing); }
.voa-media > figcaption { margin-bottom: var(--voa-screen-spacing); }
.voa-reference figcaption, .voa-media > figcaption { color: var(--muted); }
.voa-screen {
  display: block;
  width: min(100%, 350px);
  height: auto;
  margin-inline: auto;
  border-radius: 22px;
  background: var(--voa-ink);
}
.voa-device {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  overflow-anchor: none;
  width: min(100%, 340px);
  --voa-motion: 260ms cubic-bezier(.22, .61, .36, 1);
  aspect-ratio: 160 / 327;
  margin-inline: auto;
  color: #f4f3f8;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
.voa-device-display {
  position: absolute;
  inset: 1.55% 3.25%;
  overflow: hidden;
  border-radius: 15.5cqw;
  background: #0b0816;
}
.voa-device-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.voa-device::after {
  content: '';
  position: absolute;
  top: 3.2%;
  left: 35.3%;
  width: 29%;
  height: 4.1%;
  border-radius: 100px;
  background: radial-gradient(circle at 84% center, #151d32 0%, #080b13 6%, #000 10%);
}
.voa-sleep-screen,
.voa-coach-screen,
.voa-chat-screen {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--voa-motion), visibility 0s linear 260ms;
}
.voa-sleep-screen > img,
.voa-coach-screen > img { display: block; width: 100%; height: auto; }
.voa-device .voa-app-nav { position: absolute; bottom: 0; left: 0; }
.voa-sleep-screen > .voa-app-nav { border-top: 1px solid #ffffff12; }
.voa-coach-focus {
  position: absolute;
  top: 19.75%;
  left: 3.8%;
  padding: 0 .4cqw .8cqw;
  width: 61%;
  background: linear-gradient(104deg, #251a39, #261b3a);
  color: #d5cce3;
  font-size: 4cqw;
  line-height: 1.28;
}
.voa-tap {
  position: absolute;
  opacity: 0;
  transition: opacity var(--voa-motion), transform var(--voa-motion);
  width: 8cqw;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.78);
  border: 1px solid #fff;
  background: #dac9ff5c;
  box-shadow: 0 0 0 6px #dac9ff30;
}
.voa-tap-coach { left: 64%; bottom: 4.3%; }
.voa-tap-open { left: 50%; top: 33%; }
.voa-scene:is([data-stage="sleep"], [data-stage="coach-tab"]) .voa-sleep-screen,
.voa-scene:is([data-stage="coach"], [data-stage="talk"]) .voa-coach-screen,
.voa-scene:is([data-stage="chat"], [data-stage="tap-reply"], [data-stage="complete"]) .voa-chat-screen {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.voa-scene[data-stage="coach-tab"] .voa-tap-coach,
.voa-scene[data-stage="talk"] .voa-tap-open {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.voa-chat-screen {
  background: linear-gradient(145deg, #36264c, #231834 45%, #0b0817 85%);
  display: flex;
  flex-direction: column;
  font-size: max(12px, 4cqw);
  line-height: 1.3;
}
.voa-status {
  padding: 5.4cqw 9.5cqw 2cqw;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 3.7cqw;
  font-weight: 600;
}
.voa-status-icons { display: flex; align-items: center; height: 3cqw; gap: 1.2cqw; }
.voa-status-icons > i { display: block; width: 3.8cqw; height: 2.7cqw; background: currentColor; }
.voa-status-icons > :first-child {
  clip-path: polygon(0 75%, 18% 75%, 18% 50%, 42% 50%, 42% 28%, 67% 28%, 67% 0, 100% 0, 100% 100%, 0 100%);
}
.voa-status-icons > :nth-child(2) { border-radius: 50% 50% 0 0; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.voa-status-icons > :last-child { width: 4.6cqw; height: 2.5cqw; border-radius: .65cqw; }
.voa-chat-top {
  padding: 2.8cqw 5.2cqw;
  border-bottom: 1px solid #ffffff16;
  display: flex;
  justify-content: space-between;
  align-items: center;
  line-height: 1.1;
  font-weight: 500;
}
.voa-chat-top svg { width: 5.25cqw; height: 5.25cqw; }
.voa-conversation {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 5.5cqw;
  padding: 3.6cqw 4.5cqw;
  overflow: hidden;
  overflow-anchor: none;
}
.voa-scene[data-stage="complete"] .voa-conversation { overflow-y: auto; }
.voa-conversation:focus-visible { outline: 1px solid #c491ff; outline-offset: -2px; }
.voa-conversation > * { flex-shrink: 0; }
.voa-conversation > [hidden], .voa-quick[hidden] { display: none; }
.voa-message, .voa-message-copy { display: grid; gap: 2cqw; }
.voa-message-copy :is(p:empty, p:has(> strong:empty)), [data-typing] .voa-feedback { display: none; }
.voa-chat-author, .voa-feedback { color: #b8b5cd; }
.voa-message strong { color: #c491ff; font-weight: 650; }
.voa-feedback { display: flex; gap: 4.5cqw; margin-top: 2cqw; }
.voa-feedback svg { width: 4cqw; height: 4cqw; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.voa-bubble {
  margin-left: auto;
  max-width: 88%;
  border-radius: 6cqw;
  padding: 2.4cqw 5.3cqw;
  background: #ffffff29;
}
.voa-bubble span { margin-right: 1.5cqw; }
.voa-chat-bottom { padding: 1.7cqw 4.5cqw 3.3cqw; }
.voa-quick-slot { min-height: max(9.4cqw, 25px); margin-bottom: 3.2cqw; }
.voa-quick {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  gap: 1.8cqw;
  margin-right: -4.5cqw;
  padding-right: 4.5cqw;
}
.voa-quick:not([hidden]) { animation: voa-choices-in var(--voa-motion) both; }
@keyframes voa-choices-in {
  from { opacity: 0; transform: translateY(3px); }
}
.voa-scene[data-stage="complete"] .voa-quick { overflow-x: auto; scrollbar-width: none; }
.voa-quick span {
  display: inline-flex;
  align-items: center;
  flex: none;
  min-height: max(9.4cqw, 25px);
  padding: 1.7cqw 4.1cqw;
  background: #ffffff24;
  border-radius: 10cqw;
  font-size: max(12px, 3.85cqw);
  white-space: nowrap;
  transition: background-color 160ms ease, transform 160ms ease;
}
.voa-scene[data-stage="tap-reply"] .voa-quick span:first-child { background: #75519b; transform: scale(.97); }
.voa-compose {
  --voa-field-size: 10.67cqw;
  --voa-send-size: 7.5cqw;
  --voa-send-inset: calc((var(--voa-field-size) - var(--voa-send-size)) / 2);
  display: flex;
  gap: 2cqw;
  align-items: center;
}
.voa-field {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 2cqw;
  min-height: var(--voa-field-size);
  min-width: 0;
  border-radius: 6cqw;
  padding: var(--voa-send-inset) var(--voa-send-inset) var(--voa-send-inset) 4cqw;
  background: #ffffff24;
}
.voa-field > :first-child { flex: 1; }
.voa-placeholder { color: #b8b5cd; }
.voa-send, .voa-chat-add {
  display: grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: #ffffff25;
  width: var(--voa-send-size);
  aspect-ratio: 1;
}
.voa-send svg { width: 5.1cqw; height: 5.1cqw; }
.voa-chat-add { width: var(--voa-field-size); }
.voa-chat-add svg { width: 4.5cqw; height: 4.5cqw; }
.voa-home-indicator { width: 29cqw; height: 1.1cqw; background: #fff; margin: 4.7cqw auto 0; border-radius: 2cqw; }

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

@media (max-width: 700px) {
  .voa-page { --voa-screen-spacing: 16px; }
  .voa-page .study-hero h1 br { display: none; }
  .voa-media { padding-inline: 16px; }
  .study figure.voa-media { margin-top: var(--section-heading-gap); }
  .voa-research-item > .voa-text { margin-bottom: var(--section-heading-gap); }
}

@media (prefers-reduced-motion: reduce) {
  .voa-device-display * { transition: none; }
  .voa-quick:not([hidden]) { animation: none; }
}
