/* Homepage: the app's literary typography, quiet glass, and generous rhythm. */
html:has(> .novelhive-landing) { scroll-padding-block-start: var(--nh-nav-h); }
@media (min-width: 1024px) {
  .novelhive-landing :is(.landing-opening, #voices, #genres, #ownership) {
    min-block-size: calc(100svh - var(--nh-nav-h));
    align-content: center;
  }
}
@media (prefers-reduced-motion: no-preference) {
  /* Keep the section positions stable while their content fades in. */
  .novelhive-landing [data-landing-step].fade-in-section { transform: none; }
}
.novelhive-landing .starfield {
  display: block; position: absolute; inset: 0 0 auto; height: 100svh;
  z-index: 0; opacity: .24; pointer-events: none; animation: none;
}
.novelhive-landing .starfield::after { animation: none; }
.novelhive-landing section > .container { max-width: 1240px; padding-inline: 40px; }
.novelhive-landing .section-padding { padding-block: clamp(72px, 8vw, 112px); border: 0; }
.novelhive-landing .section-bg-a, .novelhive-landing .section-bg-b { background: transparent; }
.novelhive-landing :is(.landing-title, section h2) {
  font-family: var(--landing-heading-font);
  font-weight: 300;
  letter-spacing: -.035em;
  color: var(--landing-ink);
}
.novelhive-landing section h2 {
  margin: 0;
  font-size: clamp(2rem, 4.1vw, 3.25rem);
  line-height: 1.12;
  text-wrap: balance;
}
.novelhive-landing section h2 + p { margin-block-start: 1rem; }
.novelhive-landing section h3 {
  font: 600 clamp(1rem, 1.6vw, 1.125rem)/1.4 var(--font-body);
  color: var(--landing-ink);
}
.novelhive-landing section p { text-wrap: pretty; }
.novelhive-landing section .text-teal-300,
.novelhive-landing section .text-teal-400,
.novelhive-landing section .text-green-400 { color: var(--landing-accent); }
.novelhive-landing section .text-stone-300,
.novelhive-landing section .text-stone-400 { color: var(--landing-muted); }
.novelhive-landing section button:focus-visible,
.novelhive-landing section a:focus-visible,
.novelhive-landing section summary:focus-visible {
  outline: 2px solid var(--landing-accent);
  outline-offset: 5px;
}
.novelhive-landing section .cta-button,
.landing-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 28px; border-radius: 999px; border: 0;
  background: #3d635a; color: #eff6f2;
  font: 600 15px/1.4 var(--font-body); cursor: pointer;
  box-shadow: none;
  transition: background-color 200ms ease, transform 200ms ease;
}
.novelhive-landing section .cta-button:hover, .landing-primary:hover { background: #4b776a; transform: translateY(-2px); box-shadow: none; }
.novelhive-landing section .cta-button:active, .landing-primary:active { transform: translateY(0); }
.novelhive-landing section .cta-button::after { display: none; }
.landing-primary svg, .landing-secondary svg { width: 19px; height: 19px; flex-shrink: 0; }
.landing-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 8px 12px; border: 0; background: transparent;
  font: 500 14px/1.5 var(--font-body); color: var(--landing-accent); cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}
.landing-secondary:hover { color: #eef5f0; }
.landing-idea-actions {
  display: flex; flex-direction: column; align-items: center;
  gap: 4px; margin-block-start: 32px; text-align: center;
}
.landing-idea-actions p { margin: 0; color: var(--landing-muted); font-size: .8125rem; }
.landing-idea-cta { font-size: 1rem; color: var(--landing-ink); }
.landing-idea-cta > span:first-child {
  text-decoration: underline 1px color-mix(in srgb, var(--landing-accent) 45%, transparent);
  text-underline-offset: .28em;
}
.landing-idea-cta:is(:hover, :focus-visible) > span:first-child { text-decoration-color: var(--landing-accent); }
.landing-idea-arrow { font-size: 1.15em; line-height: 1; transition: transform 200ms var(--ease-spring); }
.landing-secondary:is(:hover, :focus-visible) .landing-idea-arrow { transform: translateX(3px); }

/* A stable two-layer book opens before the separate page-to-player handoff. */
.landing-upload-button {
  --book-open: 0;
  gap: 12px; padding: 12px 24px;
  box-shadow: inset 0 1px 0 rgba(228, 240, 232, .14);
}
.landing-upload-icon { position: relative; display: block; flex: none; width: 28px; height: 28px; }
.landing-upload-pages {
  position: absolute; z-index: 0; inset: 4px 4px 3px 7px;
  border-radius: 2px 4px 4px 2px; background: #bbd0c3;
  box-shadow: inset -2px 0 0 rgba(239, 246, 242, .35);
}
.landing-upload-cover {
  position: absolute; z-index: 1; inset: 3px 5px 3px 5px;
  border: 1px solid #bfd4c6; border-radius: 2px 4px 4px 2px;
  background: #35594d; transform-origin: 1px 50%;
  transform: translateX(calc(-2px * var(--book-open))) skewY(calc(-8deg * var(--book-open))) scaleX(calc(1 - .35 * var(--book-open)));
  transition: transform 260ms cubic-bezier(.25, 1, .5, 1);
}
.landing-upload-cover::before { content: ''; position: absolute; inset: 0 auto 0 3px; width: 1px; background: rgba(221, 237, 224, .3); }
.landing-upload-cover > span { position: absolute; top: 6px; left: 6px; width: 6px; height: 4px; border-block: 1px solid #bfd4c6; }
.landing-upload-button:focus-visible { --book-open: 1; }
@media (hover: hover) and (pointer: fine) {
  .landing-upload-button:hover { --book-open: 1; }
}
.landing-upload-button:active { transform: scale(.98); transition-duration: 120ms; }
@media (prefers-reduced-motion: reduce) {
  .landing-upload-button { --book-open: 0 !important; }
  .landing-upload-button:hover, .landing-upload-button:active { transform: none; }
}

/* Hero remains a headline, with two clear ways into the same full-cast result. */
.landing-opening { position: relative; isolation: isolate; }
.landing-opening-atmosphere {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: radial-gradient(1100px 640px at 18% -10%, var(--landing-light-primary), transparent 62%),
    radial-gradient(900px 520px at 88% 12%, var(--landing-light-secondary), transparent 55%);
  -webkit-mask-image: linear-gradient(#000 55%, transparent 100%);
  mask-image: linear-gradient(#000 55%, transparent 100%);
}
@media (min-width: 1024px) {
  /* Centering the opening keeps its box below the nav. Extend just the background behind it. */
  .landing-opening:has(> .landing-hero--under-nav) > .landing-opening-atmosphere {
    inset-block-start: calc(-1 * var(--nh-nav-h));
  }
}
.novelhive-landing .landing-hero {
  padding-top: clamp(20px, 4svh, 48px);
  padding-bottom: 40px;
  background: transparent;
}
.novelhive-landing .landing-hero--under-nav { padding-top: calc(var(--nh-nav-h) + clamp(20px, 4svh, 48px)); }
.landing-opening .aurora { opacity: 1; filter: none; }
.landing-opening .aurora span { animation: none; }
.landing-opening .hero-grain { opacity: .05; }
/* Original cover artwork sits in the outer gutters, behind the content.
   Keep it still so the speaking cast remains the only continuous motion. */
.landing-hero .hero-float {
  --cover-size: clamp(152px, 13vw, 184px);
  --cover-peek: max(36px, calc((100vw - 1072px) / 2));
  z-index: 0; width: var(--cover-size); opacity: 1; filter: none; animation: none;
}
.landing-hero .hero-float-1 { left: calc(var(--cover-peek) - var(--cover-size) - 32px); top: 20%; transform: rotate(-9deg); }
.landing-hero .hero-float-3 { right: calc(var(--cover-peek) - var(--cover-size) - 32px); top: 15%; transform: rotate(8deg); }
.landing-hero .hero-float-2 { left: calc(var(--cover-peek) - 144px); bottom: 8%; width: 112px; transform: rotate(6deg); }
.landing-hero .hero-float-4 { right: calc(var(--cover-peek) - 144px); bottom: 10%; width: 112px; transform: rotate(-6deg); }
@media (min-width: 1024px) and (max-width: 1179px) {
  .landing-hero .hero-float { --cover-peek: 96px; }
}
.landing-intro { max-width: 1000px; margin-inline: auto; text-align: center; }
.landing-title {
  margin: 0; font-size: clamp(44px, min(6.4vw, 8svh), 88px); line-height: 1.08;
}
.landing-title span { display: block; }
.landing-promise { max-width: 640px; margin: 16px auto 0; font-size: 18px; line-height: 1.65; color: var(--landing-muted); }
.landing-hero-actions {
  width: min(100%, 440px); margin: 24px auto 0;
}
.landing-create {
  padding: 12px 16px 8px; border-radius: 20px; background: rgba(178, 205, 191, .07);
  box-shadow: inset 0 1px 0 rgba(209, 231, 219, .12);
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.landing-create:focus-within {
  background: rgba(178, 205, 191, .11);
  box-shadow: inset 0 0 0 1px rgba(209, 231, 219, .22);
}
.landing-create-input {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 44px; column-gap: 8px;
  transition: grid-template-rows 240ms cubic-bezier(.25, 1, .5, 1);
}
.landing-create:has(:where(textarea:focus)) .landing-create-input,
.landing-create.has-idea .landing-create-input { grid-template-rows: 88px; }
.landing-create textarea {
  grid-column: 1 / -1; display: block; min-height: 0; width: 100%; height: 100%; padding: 8px 8px 12px;
  border: 0; border-radius: 8px; outline: none; resize: none; background: transparent;
  font: 400 16px/1.6 var(--font-body); color: var(--landing-ink); caret-color: var(--landing-accent);
}
.landing-create textarea::placeholder { color: #adbbb4; opacity: 1; }
.landing-create.has-idea textarea { grid-column: 1; }
/* Continue: the same glowing glass pill as the navigation's Get Started. */
.landing-create-send {
  align-self: end; gap: 6px; min-height: 40px; margin-bottom: 8px; padding: 0 14px 0 18px;
  font: 600 14px/1 var(--font-body); white-space: nowrap;
}
.landing-create-send svg { width: 17px; height: 17px; transition: transform 220ms var(--ease-spring); }
.landing-create-send:is(:hover, :focus-visible) svg { transform: translateX(3px); }
.landing-create-send:active { transform: scale(.97); }
.landing-create-send:disabled { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .landing-create-send:not(:disabled) { animation: landing-send-in 260ms var(--ease-spring) both; }
}
@keyframes landing-send-in { from { opacity: 0; transform: translateY(4px) scale(.94); } }
.landing-create-footer { display: flex; margin-top: 4px; border-top: 1px solid rgba(209, 231, 219, .1); padding-top: 4px; }
.landing-create .landing-upload-button {
  width: 100%; min-height: 44px; justify-content: flex-start; padding: 8px 4px; gap: 8px;
  border-radius: 12px; background: transparent; box-shadow: none; color: #d3e9dc; font-size: 14px;
}
.landing-create .landing-upload-button:hover { background: rgba(177, 205, 190, .06); transform: none; }
.landing-create.has-idea .landing-upload-button { color: #acbdb2; }
.landing-copy, .landing-listening-stage { display: contents; }
.landing-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, max-content)); justify-content: center; gap: 24px 64px;
  margin: 0 auto; padding: 0; list-style: none; max-width: 1120px;
  font-size: 14px; line-height: 1.6; color: var(--landing-muted);
}
.landing-facts li { display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 12px; }
.landing-facts svg { width: 20px; height: 20px; margin-top: 1px; color: var(--landing-accent); }
.landing-details { padding: 24px 0 48px; }
.landing-hero-layout {
  --cast-narrator: #9dbddd;
  --cast-elena: #94cbbb;
  --cast-marcus: #d4a18f;
  --cast-oldthomas: #d6bf81;
}
.landing-listening {
  --landing-glass-fill: rgba(32, 51, 44, .32);
  position: relative; isolation: isolate; overflow: hidden;
  max-width: 752px; margin: 24px auto 0; padding: 32px;
  box-shadow:
    var(--landing-glass-rim),
    0 24px 64px -32px rgba(2, 10, 8, .68),
    0 4px 16px rgba(2, 10, 8, .12);
}
.landing-listening-head { display: grid; grid-template-columns: 144px minmax(0, 1fr); align-items: center; gap: 32px; }
.landing-book-cover {
  width: 144px; height: 144px; border-radius: 12px; object-fit: cover;
  transform: rotate(-3deg);
  box-shadow: 0 16px 28px -12px rgba(2, 9, 8, .65), 0 0 0 1px rgba(217, 233, 226, .12);
}
.landing-book-copy { min-width: 0; }
.landing-listening-title { max-width: 23ch; font: 400 30px/1.14 var(--font-brand); letter-spacing: -.02em; color: var(--landing-ink); text-wrap: balance; }
.landing-book-actions { display: flex; align-items: center; gap: 20px; margin-top: 16px; }
.landing-sample-options {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  width: fit-content; max-width: 100%; margin: 0 0 8px auto; gap: 4px; justify-self: end;
}
.landing-sample-options button {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 8px 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--landing-muted); font: 500 12px/1.4 var(--font-body);
  white-space: nowrap; cursor: pointer; transition: color 180ms, background-color 180ms;
}
.landing-sample-options button[aria-pressed="true"] { color: #e3f1e9; font-weight: 600; background: rgba(134, 191, 164, .2); }
.landing-multivoice-mark { display: flex; align-items: center; gap: 2px; height: 14px; }
.landing-multivoice-mark i {
  width: 2px; height: 8px; border-radius: 2px; background: var(--cast-elena);
  animation: landing-voice-pulse 1.6s ease-in-out infinite; animation-play-state: paused;
}
.landing-multivoice-mark i:nth-child(2) { height: 14px; background: var(--cast-marcus); animation-delay: -.6s; }
.landing-multivoice-mark i:nth-child(3) { height: 10px; background: var(--cast-oldthomas); animation-delay: -1.1s; }
.landing-listening.is-motion-visible [data-sample="multi"][aria-pressed="true"] .landing-multivoice-mark i { animation-play-state: running; }
@keyframes landing-voice-pulse { 0%, 100% { transform: scaleY(.5); } 45% { transform: scaleY(1); } 75% { transform: scaleY(.72); } }
.landing-sample-options button:hover { color: #eff6f2; }
.landing-listening[data-sample-mode="single"] .landing-caption { color: #bbc5be; }
.landing-listening[data-sample-mode="single"] .landing-caption .sr-only { display: none; }
.landing-listening[data-sample-mode="single"] .voice-progress-fill { background: #a5b2a9; }
.landing-listening[data-sample-mode="single"] .landing-audio-playhead { opacity: 0; visibility: hidden; }
.landing-listening .voice-play-btn {
  width: 56px; height: 56px; flex-shrink: 0; border: 0;
  background: rgba(193, 226, 209, .13); color: #eff9f3;
  box-shadow: inset 0 1px 0 rgba(235, 250, 242, .46), inset 0 0 0 1px rgba(220, 241, 230, .17), 0 4px 12px rgba(4, 17, 12, .18);
  transition: background-color 220ms, box-shadow 220ms, transform 220ms var(--ease-spring);
}
.landing-listening .voice-play-btn:hover { background: rgba(193, 226, 209, .23); transform: scale(1.06); box-shadow: inset 0 1px 0 rgba(235, 250, 242, .6), inset 0 0 0 1px rgba(220, 241, 230, .24), 0 6px 16px rgba(4, 17, 12, .2); }
.landing-listening .voice-play-btn:active { transform: scale(.96); }
.landing-listening .voice-play-btn.playing { background: rgba(193, 226, 209, .2); }
.landing-listening .voice-play-btn::after { display: none; }
.landing-captions {
  display: grid; margin-top: 20px; text-align: left;
  font: 400 clamp(1.3rem, 1.75vw, 1.6rem)/1.32 var(--font-brand);
  font-kerning: normal; font-variant-ligatures: common-ligatures;
}
/* Overlaid lines reserve the tallest caption, so a new voice never moves the controls. */
.landing-caption {
  grid-area: 1 / 1; margin: 0; color: var(--cast-narrator);
  opacity: 0; visibility: hidden; transform: translateY(3px);
  transition: opacity 180ms ease, transform 180ms var(--ease-spring);
}
.landing-caption[data-caption-role="elena"] { color: var(--cast-elena); }
.landing-caption[data-caption-role="marcus"] { color: var(--cast-marcus); }
.landing-caption[data-caption-role="oldthomas"] { color: var(--cast-oldthomas); }
.landing-caption.is-current { opacity: 1; visibility: visible; transform: none; }
/* Each line in the colour of its emotion, the same palette as the voice stage below. */
/* --lk is the line's own colour, so karaoke never fills with "transparent". */
.landing-caption { --lk: var(--cast-narrator); }
.landing-caption[data-caption-role="elena"] { --lk: var(--cast-elena); }
.landing-caption[data-caption-role="marcus"] { --lk: var(--cast-marcus); }
.landing-caption[data-caption-role="oldthomas"] { --lk: var(--cast-oldthomas); }
.landing-listening[data-sample-mode="multi"] .landing-caption[data-mood] { color: var(--lk); }
.landing-caption[data-mood="excited"] { --lk: oklch(.87 .13 95); }
.landing-caption[data-mood="tender"] { --lk: oklch(.83 .09 350); }
.landing-caption[data-mood="sad"] { --lk: oklch(.76 .08 245); }
.landing-caption[data-mood="angry"] { --lk: oklch(.72 .17 28); }
.landing-caption[data-mood="happy"] { --lk: oklch(.84 .12 75); }
.landing-listening[data-sample-mode="single"] .landing-caption { --lk: #bbc5be; }
.landing-caption .lk-w { display: inline; }
/* Karaoke: the heard words fill in; timing is set per word by voice-player.js. */
.landing-listening.is-karaoke .landing-caption.is-current .lk-w {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(var(--lk), var(--lk)), linear-gradient(color-mix(in srgb, var(--lk) 32%, transparent), color-mix(in srgb, var(--lk) 32%, transparent));
  background-repeat: no-repeat; background-size: 0% 100%, 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: landing-karaoke var(--lk-d, .3s) linear var(--lk-delay, 0s) both;
}
@keyframes landing-karaoke {
  from { background-size: 0% 100%, 100% 100%; }
  to { background-size: 100% 100%, 100% 100%; }
}
/* Each line carries its emotion in colour and weight, without motion. */
.landing-listening[data-sample-mode="multi"] .landing-caption[data-mood="angry"] { font-weight: 600; }
.landing-listening[data-sample-mode="multi"] .landing-caption[data-mood="tender"] { text-shadow: 0 0 16px color-mix(in srgb, var(--lk) 35%, transparent); }
.landing-cast-reveal { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 360ms cubic-bezier(.25, 1, .5, 1); }
.landing-cast-clip { min-height: 0; overflow: hidden; }
/* Room for a speaking portrait's glow inside the clip that collapses the cast. */
.landing-listening:not([data-sample-mode="single"]) .landing-cast-clip { margin: 0 -24px -24px; padding: 0 24px 24px; }
.landing-cast { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 20px; padding-top: 20px; transition: opacity 240ms ease, transform 360ms cubic-bezier(.25, 1, .5, 1); }
.landing-listening[data-sample-mode="single"] .landing-cast-reveal { grid-template-rows: 0fr; }
.landing-listening[data-sample-mode="single"] .landing-cast { opacity: 0; transform: translateY(-8px); transition-duration: 160ms, 280ms; }
.landing-cast::before {
  content: ''; position: absolute; inset: 0 0 auto; height: 1px; pointer-events: none;
  background: rgba(190, 217, 204, .1);
}
.landing-character {
  --cast-tone: var(--cast-narrator);
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: 18px 26px;
  align-items: center; gap: 0 12px; font-size: 12px; color: var(--cast-tone); min-width: 0;
}
.landing-character-name { align-self: end; line-height: 16px; color: var(--landing-muted); white-space: nowrap; transition: color 200ms; }
.landing-character-mark {
  grid-row: 1 / 3; position: relative; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; color: var(--cast-tone); background: rgba(180, 200, 190, .06);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cast-tone) 20%, transparent);
  transition: background-color 400ms, box-shadow 400ms, transform 400ms var(--ease-spring);
}
.landing-character-mark > img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; opacity: .75; transition: opacity 200ms; }
.landing-listening [data-character="elena"] { --cast-tone: var(--cast-elena); }
.landing-listening [data-character="marcus"] { --cast-tone: var(--cast-marcus); }
.landing-listening [data-character="oldthomas"] { --cast-tone: var(--cast-oldthomas); }
.landing-character.is-speaking .landing-character-mark {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cast-tone) 75%, transparent), 0 0 20px color-mix(in srgb, var(--cast-tone) 14%, transparent);
}
.landing-character.is-speaking .landing-character-mark > img { opacity: 1; }
.landing-character.is-speaking .landing-character-name { color: var(--cast-tone); }
.landing-character-wave {
  position: relative; display: block; width: 100%; max-width: 80px; height: 24px;
  color: var(--cast-tone);
}
.landing-character-wave svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Multi-voice take: each line carries the emotion it was cued with, and the
   speaker's portrait performs it while they talk. The single take stays plain. */
.landing-mood-tag { display: none; }
.landing-listening[data-sample-mode="multi"] .landing-mood-tag {
  display: inline-block; margin-inline-end: 10px; padding: 3px 11px;
  border-radius: 999px; vertical-align: .22em; white-space: nowrap;
  background: color-mix(in srgb, var(--lk) 18%, transparent); color: color-mix(in srgb, var(--lk) 80%, #fff);
  font: 500 12px/1.4 var(--font-body); letter-spacing: .01em; text-shadow: none;
}
.landing-character[data-mood="excited"] { --mood: oklch(.87 .13 95); }
.landing-character[data-mood="angry"] { --mood: oklch(.72 .17 28); }
.landing-character[data-mood="sad"] { --mood: oklch(.76 .08 245); }
.landing-character[data-mood="happy"] { --mood: oklch(.84 .12 75); }
.landing-character[data-mood="tender"] { --mood: oklch(.83 .09 350); }
.landing-listening[data-sample-mode="multi"] .landing-character.is-speaking[data-mood] .landing-character-name { color: var(--mood); }
/* The speaking portrait takes the emotion's light. */
.landing-listening[data-sample-mode="multi"] .landing-character.is-speaking[data-mood] .landing-character-mark {
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--mood) 85%, transparent),
    0 0 18px 2px color-mix(in srgb, var(--mood) 38%, transparent),
    0 0 42px 6px color-mix(in srgb, var(--mood) 16%, transparent);
}
/* Calm on purpose: the voice carries the emotion; the portrait only takes its light. */
.landing-listening[data-sample-mode="multi"] .landing-character.is-speaking[data-mood="sad"] .landing-character-mark > img { filter: saturate(.6) brightness(.88); }
@media (prefers-reduced-motion: no-preference) {
  .landing-listening[data-sample-mode="multi"] .landing-character-mark > img { transition: opacity 200ms, filter 320ms ease; }
  .landing-listening[data-sample-mode="multi"] .landing-character.is-speaking[data-mood] .landing-character-mark { animation: landing-mood-glow 2.4s ease-in-out infinite; }
}
@keyframes landing-mood-glow { 50% { box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--mood) 60%, transparent), 0 0 10px 1px color-mix(in srgb, var(--mood) 22%, transparent), 0 0 26px 3px color-mix(in srgb, var(--mood) 8%, transparent); } }
/* One manuscript leaf travels to the sample on intentional interaction. */
.landing-upload-flight {
  position: absolute; top: 0; left: 0; z-index: 2;
  width: 28px; height: 36px; padding: 10px 6px 0;
  border-radius: 3px 7px 3px 3px; background: #d8e5dc;
  box-shadow: 0 4px 12px rgba(5, 18, 13, .22);
  opacity: 0; pointer-events: none;
}
.landing-upload-flight::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 7px; height: 7px; border-radius: 0 5px 0 2px; background: #9fbcac;
}
.landing-upload-flight i { display: block; height: 1px; margin-top: 4px; background: #5b7b69; }
.landing-upload-flight i:last-child { width: 65%; }
.landing-character-wave-played { overflow: visible; }
.landing-flow-layer { transform-origin: 50% 50%; opacity: 0; }
.landing-flow-layer path { fill: none; stroke: currentColor; stroke-width: .8; stroke-opacity: .85; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.landing-flow-layer-1 path { stroke-opacity: .45; }
.landing-flow-layer-2 path { stroke-opacity: .2; }
.landing-listening-progress { display: flex; flex: 1; min-width: 0; align-items: center; gap: 12px; }
.landing-listening-progress .voice-progress-track {
  position: relative; background: transparent; height: 40px; border-radius: 0; overflow: hidden;
}
.landing-listening-progress .voice-progress-track::before {
  content: ''; position: absolute; inset: calc(50% - 2px) 12px auto; height: 4px;
  background: rgba(185, 197, 191, .2); border-radius: 2px;
}
.landing-listening-progress .voice-progress-fill {
  position: absolute; inset: calc(50% - 2px) 12px auto; width: auto; height: 4px; border-radius: 2px;
  background: var(--wave-colors, var(--landing-accent));
  clip-path: inset(0 100% 0 0); transition: none;
}
.landing-audio-playhead { position: absolute; inset: 0 12px; pointer-events: none; color: var(--cast-narrator); }
.landing-audio-avatar {
  position: absolute; left: -11px; top: calc(50% - 11px); width: 22px; height: 22px;
  border-radius: 50%; background: #1c2521;
  box-shadow: 0 0 0 1px currentColor, 0 0 12px color-mix(in srgb, currentColor 24%, transparent); transition: color 180ms;
}
.landing-audio-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; opacity: 0; transition: opacity 180ms linear; }
.landing-audio-avatar img.is-current { opacity: 1; }
.landing-listening-progress .voice-duration { font-size: 12px; color: var(--landing-muted); font-variant-numeric: tabular-nums; }
.landing-hero .studio-app-promo {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; font-size: 13px;
}
.landing-hero .studio-app-note { color: var(--landing-muted); font-size: 14px; line-height: 1.4; }
.landing-hero .studio-app-badge { min-height: 44px; display: flex; align-items: center; }
.landing-hero .studio-app-badge img { display: block; width: auto; height: 44px; }
.landing-hero .studio-app-details { position: relative; }
.landing-hero .studio-app-details summary { list-style: none; display: flex; align-items: center; min-height: 44px; color: var(--landing-muted); cursor: pointer; }
.landing-hero .studio-app-details summary::-webkit-details-marker { display: none; }
.landing-hero .studio-app-details summary:hover { color: var(--landing-ink); }
.landing-hero .studio-app-install {
  position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  z-index: 10; display: grid; justify-items: center; gap: 16px; width: 216px; padding: 24px;
  border-radius: 20px; background: rgba(35, 46, 40, .96);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .25);
}
.landing-hero .studio-app-install img { width: 144px; height: 144px; border-radius: 8px; background: #fff; padding: 8px; }
.landing-hero .studio-app-install a { min-height: 44px; display: flex; align-items: center; gap: 8px; color: var(--landing-accent); }
.landing-hero .studio-app-mobile { display: none; }

/* The avatars give the next section a preview before the visitor scrolls. */
.landing-voice-preview-link {
  display: flex; align-items: center; width: fit-content; max-width: 100%; min-height: 44px;
  gap: 11px; margin: 28px auto 0; padding: 4px 6px; border-radius: 6px;
  color: var(--landing-ink); font: 500 .875rem/1.4 var(--font-body);
  transition: color 180ms ease;
}
.landing-voice-preview-link:is(:hover, :focus-visible, :active) { color: var(--landing-accent); }
.landing-voice-preview-portraits { display: flex; flex: none; }
.landing-voice-preview-portrait {
  --cue-tone: oklch(.80 .074 271);
  --cue-delay: 0ms;
  position: relative; width: 28px; height: 28px; border-radius: 50%;
  transform: translateY(var(--cue-rise, 0));
}
.landing-voice-preview-portrait + .landing-voice-preview-portrait { margin-inline-start: -5px; }
.landing-voice-preview-portrait:nth-child(2) {
  --cue-tone: oklch(.80 .085 55); --cue-delay: 240ms; --cue-rise: -3px; z-index: 1;
}
.landing-voice-preview-portrait:nth-child(3) { --cue-tone: oklch(.81 .070 165); --cue-delay: 480ms; }
.landing-voice-preview-portrait img {
  display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--cue-tone) 42%, #151f1b);
  box-shadow: 0 0 0 1px #151f1b;
}
.landing-voice-preview-portrait::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  border: 1px solid var(--cue-tone); opacity: 0;
}
.landing-voice-preview-meter {
  position: absolute; bottom: -5px; left: 50%; translate: -50%;
  display: flex; align-items: center; gap: 2px;
  color: var(--cue-tone); opacity: 0;
}
.landing-voice-preview-meter i {
  --cue-rest: .48;
  width: 1.5px; height: 7px; border-radius: 2px;
  background: currentColor; transform: scaleY(var(--cue-rest));
}
.landing-voice-preview-meter i:nth-child(2) { --cue-rest: .9; --cue-beat-delay: 22ms; }
.landing-voice-preview-meter i:nth-child(3) { --cue-rest: .65; --cue-beat-delay: 44ms; }
.landing-voice-preview-arrow {
  position: relative; display: grid; justify-items: center; width: 16px; height: 20px; flex: none;
  color: var(--landing-accent);
}
.landing-voice-preview-arrow::before {
  content: ''; position: absolute; top: 3px; width: 1px; height: 11px;
  background: currentColor; transform: scaleY(.65); transform-origin: bottom; opacity: .6;
}
.landing-voice-preview-arrow::after {
  content: ''; width: 6px; height: 6px; align-self: end; margin-bottom: 5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}
@media (prefers-reduced-motion: no-preference) {
  .landing-voice-preview-portrait { transition: translate 220ms var(--ease-spring); }
  .landing-voice-preview-arrow::before { transition: transform 220ms var(--ease-spring), opacity 220ms ease; }
  .landing-voice-preview-link:is(:hover, :focus-visible) {
    & .landing-voice-preview-portrait:first-child { translate: -3px; }
    & .landing-voice-preview-portrait:nth-child(3) { translate: 3px; }
    & .landing-voice-preview-arrow::before { transform: scaleY(1); opacity: 1; }
  }
  .landing-voice-preview-link:is(.is-in-view, :hover, :focus-visible) {
    & .landing-voice-preview-portrait img { animation: landing-voice-preview-lift 340ms var(--cue-delay) ease-in-out both; }
    & .landing-voice-preview-portrait::after { animation: landing-voice-preview-ring 340ms var(--cue-delay) ease-out both; }
    & .landing-voice-preview-meter { animation: landing-voice-preview-meter 340ms var(--cue-delay) ease-in-out both; }
    & .landing-voice-preview-meter i {
      animation: landing-voice-preview-beat 275ms calc(var(--cue-delay) + var(--cue-beat-delay, 0ms)) ease-in-out both;
    }
    & .landing-voice-preview-arrow { animation: landing-voice-preview-turn 310ms 775ms var(--ease-spring) both; }
  }
}
@keyframes landing-voice-preview-lift {
  0%, 100% { transform: translateY(0); }
  44%, 57% { transform: translateY(-3px); }
}
@keyframes landing-voice-preview-ring {
  from { opacity: 0; transform: scale(.98); }
  40% { opacity: .85; transform: translateY(-3px) scale(1.03); }
  to { opacity: 0; transform: scale(1.13); }
}
@keyframes landing-voice-preview-meter {
  0%, 100% { opacity: 0; transform: translateY(-2px); }
  31%, 68% { opacity: 1; transform: translateY(0); }
}
@keyframes landing-voice-preview-beat {
  0%, 100% { transform: scaleY(var(--cue-rest)); }
  32% { transform: scaleY(1); }
  65% { transform: scaleY(.28); }
}
@keyframes landing-voice-preview-turn {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.novelhive-landing .landing-voices {
  padding-block: clamp(36px, 6vw, 72px) clamp(48px, 8vw, 96px);
}
.landing-voices:focus { outline: none; }
.cr-heading { margin-bottom: 14px; text-align: center; }
.cr-heading-line {
  display: block; margin-top: .18em; color: var(--landing-accent);
  font-size: .68em; line-height: inherit;
}
.cr-heading-note {
  margin: 12px auto 0; max-width: 36rem; color: var(--landing-muted);
  font: 400 clamp(.875rem, 1.2vw, 1rem)/1.5 var(--font-body); text-wrap: balance;
}
.cr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.cr-skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.cr-skip { color: var(--landing-accent); text-decoration: underline; }
.cr-stage { position: relative; --cr-voice-accent: var(--landing-accent); }
.cr-stage [data-voice-color="0"] { --cr-voice-accent: oklch(.81 .055 165); }
.cr-stage [data-voice-color="1"] { --cr-voice-accent: oklch(.80 .090 82); }
.cr-stage [data-voice-color="2"] { --cr-voice-accent: oklch(.80 .074 271); }
.cr-stage [data-voice-color="3"] { --cr-voice-accent: oklch(.78 .080 12); }
.cr-stage [data-voice-color="4"] { --cr-voice-accent: oklch(.83 .085 211); }
.cr-stage [data-voice-color="5"] { --cr-voice-accent: oklch(.78 .086 313); }
.cr-wall {
  overflow-x: auto; overscroll-behavior-inline: contain; padding-block: 6px 8px;
  scrollbar-width: none; cursor: grab;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent);
}
.cr-wall:focus-within { mask-image: none; }
.cr-wall::-webkit-scrollbar { display: none; }
.cr-wall.is-dragging, .cr-wall.is-dragging .cr-voice { cursor: grabbing; }
.cr-wall:focus-visible { outline: 2px solid var(--landing-accent); outline-offset: 4px; }
.cr-grid {
  display: grid; grid-template-rows: repeat(4, 1fr); grid-auto-flow: column;
  grid-auto-columns: 64px; gap: 12px 10px;
  width: max-content; margin: 0; padding: 0 24px 0 0; list-style: none; user-select: none;
}
.cr-cell { display: flex; }
/* Alternate rows sit half a step over, so the wall reads as one woven cast list. */
.cr-cell:nth-child(even) { transform: translateX(37px); }
.cr-voice {
  position: relative; display: grid; justify-items: center; align-content: start; gap: 5px;
  width: 100%; min-height: 44px; padding: 0; text-align: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--landing-muted); cursor: pointer;
  transition: color 180ms ease, filter 200ms ease, opacity 200ms ease;
}
.cr-voice:is(:hover, :focus-visible) { color: var(--landing-ink); }
.novelhive-landing .cr-voice:focus-visible { outline-offset: -2px; }
/* Every face is credited by name, like a cast list. */
.cr-name {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 500 11px/1.3 var(--font-body); letter-spacing: .01em; transition: color 180ms ease;
}
.cr-voice[data-picked] .cr-name { color: var(--landing-ink); }
.cr-mark {
  position: relative; width: 44px; height: 44px; border-radius: 50%; background: #192622;
  box-shadow: 0 0 0 1px rgba(214, 232, 223, .1);
  transition: transform 260ms var(--ease-spring);
}
.cr-mark > img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.cr-voice:enabled:is(:hover, :focus-visible) .cr-mark { transform: translateY(-2px); }
.cr-mark > svg { width: 100%; height: 100%; fill: none; stroke: var(--landing-accent); stroke-width: 1.5; }
.cr-play {
  position: absolute; right: 0; bottom: 0; display: grid; place-items: center;
  width: 16px; height: 16px; border-radius: 50%; background: #101815; color: var(--landing-ink);
}
.cr-ico { width: 8px; height: 8px; fill: currentColor; }
/* Faces stay clean; the play mark appears on the face being heard or pointed at. */
.cr-play { opacity: 0; transition: opacity 180ms ease; }
.cr-voice:is(:hover, :focus-visible, [data-state="playing"], [data-state="paused"]) .cr-play { opacity: 1; }
.cr-voice[data-state="playing"] { color: var(--landing-accent); }
.cr-voice[data-state="playing"] .cr-play { background: var(--landing-accent); color: #101815; }
.cr-voice:disabled { opacity: .45; cursor: not-allowed; }
.cr-voice[data-assigned] { filter: grayscale(1); opacity: .26; pointer-events: none; }
.cr-voice[data-assigned] .cr-play { display: none; }
.cr-voice.cr-loading .cr-play { animation: cr-pulse 1s ease-in-out infinite; }
@keyframes cr-pulse { 50% { opacity: .35; } }

.cr-cast {
  display: grid; grid-template-columns: clamp(124px, 15vw, 182px) minmax(0, 1fr);
  grid-template-areas: 'cover focus' 'cover roster'; align-items: center;
  gap: 16px clamp(28px, 5vw, 64px); max-width: 60rem; margin: 12px auto 0; padding-block: 20px 6px;
  position: relative; isolation: isolate; transition: opacity 280ms ease;
}
.cr-stage[data-cast-reveal="resetting"] .cr-cast { opacity: 0; }
.cr-stage:not([data-traits-pending]) .cr-cast { grid-template-areas: 'cover roster'; }
.cr-story-cover {
  grid-area: cover; position: relative; isolation: isolate; margin-inline-start: 4px;
  border-radius: 2px 5px 5px 2px;
  transform: perspective(800px) rotateY(-14deg);
}
.cr-book-turn {
  display: block; width: 100%; padding: 0; border: 0; border-radius: inherit; background: none;
}
.cr-book-turn:enabled { cursor: pointer; }
.cr-story-cover img {
  display: block; width: 100%; height: auto; aspect-ratio: 9 / 11;
  object-fit: cover; border-radius: inherit;
}
.cr-story-cover::before, .cr-story-cover::after {
  content: ''; position: absolute; border-radius: inherit; pointer-events: none;
}
.cr-story-cover::before {
  z-index: -1; inset: 3px -5px 2px 3px;
  background: repeating-linear-gradient(90deg, #8c816a 0 1px, #c4b79b 1px 2px, #a39477 2px 3px);
  box-shadow: 2px 9px 16px #0009, 0 2px 3px #000b;
}
.cr-story-cover::after {
  inset: 0;
  background: linear-gradient(90deg, #0b1618b8, #0b16186b 3%, #e9e6ce2e 5%, transparent 12%),
    linear-gradient(140deg, #f4e7bd24, transparent 40%);
  box-shadow: inset 0 0 0 1px #e2ddd52e, inset 0 -1px 0 #0b141a;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cr-story-cover { transition: transform 420ms var(--ease-spring); }
  .cr-story-cover::after { transition: filter 320ms ease; }
  .cr-story-cover:hover {
    transform: perspective(800px) translateY(-6px) rotateY(-22deg);
  }
  .cr-story-cover:hover::after { filter: brightness(1.38); }
}
.cr-cast-focus {
  grid-area: focus; min-width: 0; align-self: end; display: flex; align-items: center; gap: 8px;
  transition: opacity 280ms ease, translate 280ms ease;
}
.cr-stage[data-cast-reveal="closing"] .cr-cast-focus { opacity: 0; translate: 0 -4px; }
.cr-stage:not([data-traits-pending]) .cr-cast-focus { display: none; }
.cr-thinking {
  display: flex; align-items: center; gap: 6px; min-width: 0;
  color: var(--landing-accent); font: 500 .75rem/1.3 var(--font-body);
}
.cr-thinking > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cr-thinking-dots { display: inline-flex; flex: none; gap: 3px; }
.cr-thinking-dots i {
  display: block; width: 3px; height: 3px; border-radius: 50%;
  background: currentColor; animation: cr-think 1.1s ease-in-out infinite;
  animation-play-state: paused;
}
.cr-stage[data-casting] .cr-thinking-dots i { animation-play-state: running; }
.cr-thinking-dots i:nth-child(2) { animation-delay: 140ms; }
.cr-thinking-dots i:nth-child(3) { animation-delay: 280ms; }
@keyframes cr-think {
  0%, 70%, 100% { opacity: .35; transform: translateY(0); }
  35% { opacity: 1; transform: translateY(-2px); }
}
.cr-spotlight {
  flex: 1 0 5rem; min-width: 0; overflow: hidden;
  font: 400 clamp(.875rem, 1.3vw, 1.0625rem)/1.25 var(--landing-heading-font);
  color: var(--landing-ink); transition: color 180ms ease;
}
.cr-spotlight[data-focus-state="picked"] { color: var(--landing-ink); }
.cr-spotlight-track { position: relative; }
.cr-spotlight :is(.cr-spotlight-role, .cr-spotlight-previous) {
  display: block; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cr-spotlight-previous { position: absolute; inset-inline: 0; inset-block-end: 100%; }
.cr-cast-roster {
  grid-area: roster; align-self: start;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 45rem;
  gap: 18px clamp(16px, 3vw, 36px); margin: 0; padding: 0; list-style: none;
}
.cr-stage:not([data-traits-pending]) .cr-cast-roster {
  align-self: center; max-width: 45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: 16px;
}
.cr-match { display: flex; min-width: 0; }
.cr-match-audition {
  display: grid; grid-template: 'profile profile' 1fr 'portrait voice' auto / auto minmax(0, 1fr);
  gap: 8px;
  width: 100%; min-width: 0; min-height: 44px; padding: 0;
  border: 0; border-radius: 4px; background: transparent; text-align: start;
}
.cr-match-audition:enabled { cursor: pointer; }
.cr-match-audition:enabled:is(:hover, :focus-visible) .cr-match-role { color: var(--landing-ink); }
.cr-match-audition:enabled:is(:hover, :focus-visible) .cr-match-voice { text-decoration: underline; text-underline-offset: 3px; }
.cr-role-profile { grid-area: profile; display: grid; gap: 3px; align-content: start; justify-items: start; }
.cr-role-traits {
  display: grid; color: var(--landing-muted); font: 400 .6875rem/1.25 var(--font-body); overflow-wrap: anywhere;
}
.cr-role-traits > span { grid-area: 1 / 1; }
.cr-traits-writing,
.cr-stage[data-traits-pending] .cr-match:not([data-analyzed]) .cr-traits-copy { visibility: hidden; }
.cr-stage[data-traits-pending] .cr-match[data-considering]:not([data-analyzed]) .cr-traits-writing {
  visibility: visible; color: var(--landing-ink);
}
.cr-stage[data-traits-pending] .cr-match[data-considering]:not([data-analyzed]) .cr-traits-writing::after {
  content: ''; display: inline-block; width: 1px; height: .85em; margin-inline-start: 3px;
  background: var(--cr-voice-accent); vertical-align: -.05em;
  animation: cr-trait-caret 520ms ease-in-out infinite alternate;
}
@keyframes cr-trait-caret {
  from { opacity: .3; }
  to { opacity: 1; }
}
.cr-match-choice { grid-area: voice; display: flex; align-items: center; gap: 5px; min-width: 0; }
.cr-match-mark {
  grid-area: portrait; position: relative; align-self: center; width: 28px; height: 28px; border-radius: 50%;
  transition: box-shadow 260ms ease;
}
.cr-match-mark::before {
  content: ''; position: absolute; inset: 0; border: 1px dashed var(--landing-muted); border-radius: inherit;
  opacity: .35; transition: opacity 140ms ease, border-color 140ms ease;
}
.cr-match-mark img, .cr-flight { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.cr-match-mark img { position: relative; transition: opacity 140ms ease; }
.cr-stage:not([data-traits-pending]) .cr-match-mark::before,
.cr-match[data-matched] .cr-match-mark::before { display: none; }
.cr-match-signal {
  display: flex; flex: none; align-items: center; gap: 2px;
  color: var(--cr-voice-accent); opacity: 0; transition: opacity 180ms ease;
}
.cr-match-signal i {
  width: 1px; height: 10px; border-radius: 1px; background: currentColor;
  transform: scaleY(.4);
}
.cr-match-signal i:nth-child(2) { transform: scaleY(.8); --cr-beat-delay: -130ms; }
.cr-match-signal i:nth-child(3) { transform: scaleY(.55); --cr-beat-delay: -255ms; }
.cr-cast[data-reviewing] .cr-match[data-review-role], .cr-match:has(.cr-match-audition[data-speaking]) {
  & .cr-match-signal { opacity: 1; }
  & .cr-match-signal i { animation: cr-speak 1.4s var(--cr-beat-delay, 0ms) ease-in-out infinite; }
}
.cr-match-audition[data-state="paused"] .cr-match-signal { opacity: .55; }
@keyframes cr-speak {
  0%, 42%, 84%, 100% { transform: scaleY(.3); }
  13%, 58% { transform: scaleY(1); }
  26%, 73% { transform: scaleY(.58); }
}
.cr-match-role { color: var(--landing-muted); font: 400 clamp(.875rem, 1.6vw, 1.125rem)/1.25 var(--landing-heading-font); overflow-wrap: anywhere; transition: color 180ms ease; }
.cr-match-voice { color: color-mix(in srgb, var(--cr-voice-accent) 45%, var(--landing-muted)); font: 500 .75rem/1.3 var(--font-body); min-width: 0; overflow-wrap: anywhere; }
.cr-match[data-considering] .cr-match-role, .cr-match[data-matched] .cr-match-role { color: var(--landing-ink); }
.cr-match[data-review-role] .cr-match-role { color: var(--landing-ink); }
.cr-match[data-matched] .cr-match-mark {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cr-voice-accent) 65%, transparent);
}
.cr-stage:not([data-traits-pending]) .cr-match-mark {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--cr-voice-accent) 40%, transparent);
}
.cr-stage:not([data-traits-pending]) .cr-match[data-review-role] .cr-match-mark {
  box-shadow: 0 0 0 1px var(--cr-voice-accent);
}
@media (min-width: 768px) {
  .cr-stage:not([data-traits-pending]) .cr-cast-roster { gap: clamp(24px, 3vw, 40px) clamp(16px, 3vw, 36px); }
  .cr-stage:not([data-traits-pending]) .cr-match-audition {
    grid-template: 'portrait profile' 1fr 'portrait voice' auto / auto minmax(0, 1fr);
    gap: 4px 12px;
  }
  .cr-stage:not([data-traits-pending]) .cr-match-mark { width: clamp(34px, 4vw, 44px); height: clamp(34px, 4vw, 44px); }
  .cr-stage:not([data-traits-pending]) .cr-match-role {
    font: 400 clamp(1.125rem, 1.7vw, 1.5rem)/1.1 var(--landing-heading-font);
  }
  .cr-stage:not([data-traits-pending]) .cr-role-traits { font-size: .75rem; }
}
.cr-match[data-considering] .cr-match-mark::before {
  opacity: .9; border-color: var(--cr-voice-accent); animation: cr-scan-ring 2.4s linear infinite;
}
@keyframes cr-scan-ring { to { transform: rotate(1turn); } }
.cr-voice[data-picked] { color: var(--landing-ink); }
.cr-voice .cr-mark::after {
  content: ''; position: absolute; inset: 0; border: 1px solid var(--cr-voice-accent);
  border-radius: 50%; box-shadow: 0 0 12px color-mix(in srgb, var(--cr-voice-accent) 45%, transparent); pointer-events: none;
  opacity: 0; transform: scale(.94);
  transition: opacity 180ms ease, transform 260ms var(--ease-spring);
}
.cr-voice:enabled:is(:hover, :focus-visible, [data-state="playing"]) .cr-mark::after { opacity: .68; transform: scale(1.04); }
.cr-voice:enabled[data-picked] .cr-mark::after {
  opacity: 1; transform: scale(1.09); animation: cr-voice-picked 320ms ease-out;
}
.cr-stage[data-traits-pending] .cr-match[data-matched] .cr-match-mark img { animation: cr-land 240ms ease-out; }
@keyframes cr-voice-picked {
  from { opacity: .45; transform: scale(1); }
}
@keyframes cr-active-ring {
  from { opacity: .65; transform: scale(.95); }
  to { opacity: .35; transform: scale(1.13); }
}
@keyframes cr-land { from { transform: scale(1.04); } }
.cr-stage[data-traits-pending] .cr-match:not([data-matched]) :is(img, .cr-match-voice) { opacity: 0; }
.cr-match-voice { transition: opacity 220ms ease, transform 220ms var(--ease-spring); }
.cr-stage[data-traits-pending] .cr-match:not([data-matched]) .cr-match-voice { transform: translateY(3px); }
.cr-flight {
  position: absolute; top: 0; left: 0; z-index: 1;
  pointer-events: none;
  box-shadow: 0 0 0 1px var(--cr-voice-accent), 0 0 14px color-mix(in srgb, var(--cr-voice-accent) 34%, transparent);
  animation: cr-flight-in 150ms ease;
  transition: opacity 200ms ease;
}
.cr-flight.is-arriving { opacity: 0; }
@keyframes cr-flight-in { from { opacity: 0; } }

/* Real artwork supplies the colour; no frame around a frame. */
#genres .marquee { margin-inline: -40px; }
#genres .marquee-card { width: 220px; min-width: 220px; padding: 0; background: none; border: 0; box-shadow: none; }
#genres .marquee-card:hover { transform: translateY(-4px); }
#genres .marquee-card > div:first-child { border-radius: 12px; box-shadow: none; }
#genres .marquee-card > div:last-child { text-align: left; padding-inline: 0; }
#genres .marquee-card .text-xs { font-size: 12px; color: var(--landing-muted); }
#genres .marquee-track { gap: 0; }
#genres .marquee-card { margin-right: 28px; }
#ownership .rule-col { padding-top: 24px; border-top: 1px solid var(--landing-edge); }
#ownership .rule-col p { font-size: 15px; }
.ownership-rule-heading { display: flex; align-items: center; gap: 8px; }
.ownership-rule-heading svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--landing-accent); }
.novelhive-landing .landing-pricing {
  position: relative;
  isolation: isolate;
  padding-block: clamp(24px, 3.6svh, 44px);
  background:
    radial-gradient(ellipse 103% 75% at 50% 49%, var(--landing-light-primary), transparent 65%),
    radial-gradient(ellipse 80% 55% at 50% 61%, var(--landing-light-secondary), transparent 70%);
}
.landing-pricing::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--landing-grain);
  opacity: .05;
  -webkit-mask-image: linear-gradient(transparent, black 24% 76%, transparent);
  mask-image: linear-gradient(transparent, black 24% 76%, transparent);
}
.landing-pricing-header { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.landing-pricing-intro { min-width: 0; }
.landing-pricing-header h2 strong {
  display: inline-block; color: #c3e0cb; font-size: 1.32em; font-weight: inherit;
  letter-spacing: -.055em; white-space: nowrap;
}
.landing-pricing svg { width: 17px; height: 17px; flex: 0 0 17px; color: var(--landing-accent); }
.landing-pricing-quote { display: grid; gap: 4px; max-inline-size: min(100%, 18rem); text-align: center; }
.landing-pricing-quote small { color: var(--landing-muted); font-size: .8125rem; line-height: 1.35; }
.landing-pricing-calculator {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  min-block-size: 48px; padding: 8px 16px; border-radius: 999px;
  background-color: var(--landing-accent); color: #162b23;
  font: 700 .9375rem/1.3 var(--font-body); text-align: start;
  cursor: pointer; transition: background-color 180ms ease;
}
.landing-pricing .landing-pricing-calculator svg { width: 19px; height: 19px; color: currentColor; }
.landing-pricing-calculator:hover { background-color: #d7e8df; }
.landing-pricing-calculator:active { background-color: #a4c3b5; }
.landing-pricing-calculator:focus-visible { outline: 2px solid var(--landing-accent); outline-offset: 4px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .landing-pricing-calculator svg:last-child { transition: transform 180ms var(--ease-spring); }
  .landing-pricing-calculator:hover svg:last-child { transform: translateX(3px); }
}
@media (prefers-reduced-motion: reduce) {
  .landing-pricing-calculator { transition: none; }
}
.landing-prices { display: grid; gap: 16px; margin-block-start: clamp(16px, 2.8svh, 24px); }
.landing-price {
  display: flex; flex-direction: column; gap: 14px;
  padding: clamp(18px, 2.2vw, 28px);
  color: var(--landing-ink);
}
.landing-price-heading { display: flex; align-items: center; gap: 10px; }
.landing-price-mark {
  display: grid; place-items: center; width: 20px; height: 24px; flex: 0 0 20px;
}
.landing-price-mark svg { width: 19px; height: 19px; }
.landing-price-amount { font: 300 clamp(1.75rem, 3vw, 2.25rem)/1.12 var(--landing-heading-font); color: var(--landing-ink); }
.landing-price-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.landing-price-display {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-block-size: 2.625rem;
}
.landing-price-display .landing-price-amount {
  font: 400 clamp(1.875rem, 3.1vw, 2.625rem)/1 var(--font-brand);
  letter-spacing: -.045em; white-space: nowrap;
}
.landing-price-unit { color: var(--landing-muted); font-size: .875rem; line-height: 1.4; }
.landing-price-unit span { display: block; color: var(--landing-ink); }
.landing-price-description { color: var(--landing-muted); font-size: .875rem; line-height: 1.4; }
.landing-price-rate {
  display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px;
  border-radius: 9px; background: var(--landing-surface); color: var(--landing-ink);
  font-size: .875rem; line-height: 1.4;
}
.landing-price-rate p + p { margin-block-start: 4px; }
.landing-price-rate svg, .landing-price-features svg { margin-block-start: 2px; }
.landing-price-features {
  display: grid; gap: 8px 20px; padding-block: 4px 8px;
  color: var(--landing-ink); font-size: .875rem; line-height: 1.42;
}
.landing-price-features svg { width: 19px; height: 19px; flex-basis: 19px; }
.landing-price-features li, .landing-pricing-terms li {
  display: flex; align-items: flex-start; gap: 8px;
}
.landing-pricing .landing-price-action {
  justify-content: space-between; gap: 8px;
  inline-size: min(100%, 11.5rem); block-size: 2.75rem;
  margin-block-start: auto; padding: 4px 12px 4px 14px;
  font-size: .875rem; line-height: 1.2; text-align: start;
}
.landing-pricing .landing-price-action svg { color: currentColor; }
.landing-price-action > span { min-inline-size: 0; overflow-wrap: anywhere; }
.landing-pricing-footer { margin-block-start: 16px; font-size: .875rem; }
.landing-pricing-terms {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px;
  color: var(--landing-muted); line-height: 1.4; text-align: start;
}
@media (min-width: 769px) {
  .novelhive-landing .landing-pricing { min-block-size: calc(100svh - var(--nh-nav-h)); align-content: center; }
  .landing-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (min-width: 1120px) {
  .landing-price-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing-price-feature-wide { grid-column: 1 / -1; }
}
@media (max-width: 1119px) {
  .landing-price-options .landing-price-display { flex-direction: column; align-items: start; }
}
@media (min-width: 769px) and (max-height: 780px) {
  .novelhive-landing .landing-pricing { padding-block: 16px; }
  .landing-prices { margin-block-start: 16px; }
  .landing-price { gap: 12px; padding: 22px 26px; }
}
@media (max-width: 768px) {
  .novelhive-landing .landing-pricing > .container { padding-inline: 16px; }
  .novelhive-landing .landing-pricing h2 { font-size: clamp(1.6rem, 6.75vw, 2rem); }
  .landing-pricing-header { flex-direction: column; align-items: start; gap: 16px; }
  .landing-pricing-quote { inline-size: 100%; max-inline-size: none; }
  .landing-price { border-radius: 20px; }
  .landing-pricing-terms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
}
.faq-item.glass-panel { background: transparent; border: 0; border-bottom: 1px solid var(--landing-edge); border-radius: 0; box-shadow: none; }
.faq-item .faq-toggle { padding: 24px 0; }
.faq-item .faq-toggle > span { color: #e0e7e0; font-size: 16px; font-weight: 500; }
.faq-content { padding-inline: 0; }
.faq-item.is-open { border-color: var(--landing-edge); }
.novelhive-landing .mobile-sticky-cta { background: rgba(21, 29, 25, .94); border-color: var(--landing-edge); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
.novelhive-landing .mobile-sticky-cta .cta-button { background: #3d635a; box-shadow: none; border-radius: 999px; }

/* The original story and product details lead on the left; the live sample
   occupies the right, within the same first-screen composition. */
@media (min-width: 1180px) {
  .novelhive-landing .landing-hero > .landing-hero-layout { max-width: 1152px; }
  .landing-hero-layout {
    display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    grid-template-areas: 'intro player';
    column-gap: 16px; align-items: center;
  }
  .landing-copy { display: block; grid-area: intro; align-self: start; }
  .landing-intro { margin: 0; text-align: left; }
  .landing-title { font-size: clamp(46px, min(4.5vw, 8svh), 60px); }
  .landing-title:lang(en) { font-size: clamp(2.5rem, 7svh, 3rem); }
  .landing-promise { max-width: 34ch; margin: 20px 0 0; }
  .landing-hero-actions { margin: 24px 0 0; }
  .landing-listening-stage { display: block; grid-area: player; align-self: start; }
  .landing-listening { width: 100%; margin: 0; padding: 28px; }
  .landing-listening-head { grid-template-columns: 112px minmax(0, 1fr); gap: 24px; }
  .landing-book-cover { width: 112px; height: 112px; }
  .landing-listening-title { font-size: 26px; }
  .landing-book-actions { margin-top: 12px; gap: 16px; }
  .landing-listening .voice-play-btn { width: 48px; height: 48px; }
  .landing-cast { gap: 16px; }
  .landing-character { grid-template-columns: 36px minmax(0, 1fr); gap: 0 8px; }
  .landing-character-mark { width: 36px; height: 36px; }
  .landing-hero .studio-app-promo { justify-content: flex-start; }
}
@media (max-width: 1023px) {
  .cr-cast-roster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .landing-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 864px; }
}
@media (min-width: 768px) and (max-width: 1179px) {
  .landing-hero-layout { display: flex; flex-direction: column; align-items: center; }
  .landing-intro { display: contents; }
  .landing-title { order: 1; width: 100%; text-align: center; }
  .landing-listening { order: 2; width: 100%; }
  .landing-hero .studio-app-promo { order: 3; }
  .landing-promise { order: 4; margin-top: 24px; }
  .landing-hero-actions { order: 5; }
}
@media (max-width: 767px) {
  .novelhive-landing section > .container { padding-inline: 24px; }
  .novelhive-landing .landing-hero { padding-top: 20px; padding-bottom: 40px; }
  .novelhive-landing .landing-hero--under-nav { padding-top: calc(20px + var(--nh-nav-h)); }
  /* On narrow screens the sample comes immediately after the headline.
     Supporting copy and creation actions stay in the natural page flow. */
  .landing-hero > .container { display: flex; flex-direction: column; align-items: center; }
  .landing-intro { display: contents; }
  .landing-title { order: 1; width: 100%; text-align: left; font-size: clamp(30px, min(9vw, 5.5svh), 44px); }
  .landing-title:lang(en) { font-size: clamp(1.5rem, 8.5vw, 2.75rem); }
  .landing-title:lang(zh) { font-size: clamp(30px, min(10vw, 5.5svh), 44px); }
  .landing-promise { order: 4; width: 100%; max-width: none; font-size: 16px; margin: 24px auto 0; text-align: left; }
  .landing-hero-actions { order: 5; width: 100%; align-self: flex-start; margin: 20px 0 0; }
  .landing-facts { grid-template-columns: 1fr; width: 100%; gap: 20px; }
  .landing-hero .studio-app-promo { order: 3; width: 100%; justify-content: flex-start; }
  .landing-hero .studio-app-badge img { height: 40px; }
  .landing-listening { order: 2; width: 100%; margin-top: 20px; padding: 24px; border-radius: 20px; }
  .landing-hero .studio-app-details { display: none; }
  .landing-hero .studio-app-mobile { display: flex; align-items: center; min-height: 44px; color: var(--landing-muted); gap: 8px; }
  .landing-listening-head { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
  .landing-book-cover { width: 88px; height: 88px; }
  .landing-listening-title { font-size: 21px; }
  .landing-book-copy { display: contents; }
  .landing-listening-title { align-self: start; }
  .landing-book-cover { grid-row: 1 / 3; }
  .landing-listening-head { row-gap: 0; }
  .landing-book-actions { grid-column: 1 / -1; margin-top: 16px; gap: 16px; }
  .landing-listening .voice-play-btn { width: 44px; height: 44px; }
  .landing-sample-options { align-self: start; margin: 0 0 0 auto; }
  .landing-sample-options button { padding-inline: 6px; gap: 4px; font-size: 11px; }
  .landing-cast { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin-top: 20px; padding-top: 20px; }
  .landing-captions { margin-top: 16px; font-size: 1rem; line-height: 1.3125; }
  .landing-character { grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: 16px 24px; gap: 0 10px; text-align: left; }
  .landing-character-mark { width: 36px; height: 36px; }
  .landing-character-wave { max-width: 80px; }
  .cr-grid { grid-auto-columns: 54px; gap: 10px 8px; }
  .cr-cell:nth-child(even) { transform: translateX(31px); }
  .cr-mark { width: 40px; height: 40px; }
  .cr-voice { min-height: 40px; gap: 4px; }
  .cr-name { font-size: 10.5px; }
  .cr-cast {
    grid-template-columns: clamp(88px, 24vw, 120px) minmax(0, 1fr);
    grid-template-areas: 'cover focus' 'roster roster';
    align-items: center; gap: 14px 18px; padding-block-start: 16px;
  }
  .cr-story-cover { margin-block-start: 2px; }
  .cr-cast-focus { align-self: center; }
  .cr-cast-roster { gap: 10px 8px; padding-top: 8px; }
  #genres .marquee { margin-inline: -24px; }
  #genres .marquee-card { width: 180px; min-width: 180px; }
  #genres .marquee-card { margin-right: 20px; }
}
@media (max-width: 520px) {
  .cr-stage:not([data-traits-pending]) .cr-cast-roster { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 420px) {
  .cr-cast-focus { gap: 6px; }
  .cr-thinking { font-size: .6875rem; }
  .cr-thinking-dots { display: none; }
  .cr-match-audition { gap: 4px; }
  .cr-role-profile { gap: 2px; }
  .cr-match-mark { width: 22px; height: 22px; }
}
@media (max-width: 380px) {
  .landing-create-input { grid-template-columns: minmax(0, 1fr); grid-template-rows: 44px 0; }
  .landing-create:has(:where(textarea:focus)) .landing-create-input { grid-template-rows: 88px 0; }
  .landing-create.has-idea .landing-create-input { grid-template-rows: 64px 52px; }
  .landing-create-send { justify-self: end; }
  .landing-multivoice-mark { display: none; }
  .novelhive-landing section > .container { padding-inline: 20px; }
  #genres .marquee { margin-inline: -20px; }
  .novelhive-landing .landing-hero { padding-top: 16px; }
  .novelhive-landing .landing-hero--under-nav { padding-top: calc(16px + var(--nh-nav-h)); }
  .landing-listening { padding: 12px; margin-top: 16px; }
  .landing-listening-head { grid-template-columns: 72px minmax(0, 1fr); gap: 0 14px; }
  .landing-book-cover { width: 72px; height: 72px; }
  .landing-listening-title { font-size: 19px; }
  .landing-cast { gap: 12px; margin-top: 8px; padding-top: 8px; }
  .landing-hero .studio-app-promo { margin-top: 12px; }
  .landing-captions { margin-top: 8px; }
  .landing-book-actions { margin-top: 12px; }
  .landing-character { grid-template-columns: 32px minmax(0, 1fr); gap: 0 8px; font-size: 11px; }
  .landing-character-mark { width: 32px; height: 32px; }
}
/* Short landscape windows still get the complete cast above the fold.
   Use the available width rather than cropping or scaling the whole hero. */
@media (min-width: 560px) and (max-height: 500px) {
  .novelhive-landing .landing-hero { padding-top: 8px; }
  .novelhive-landing .landing-hero--under-nav { padding-top: calc(var(--nh-nav-h) + 8px); }
  .landing-hero > .container {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: 'intro app' 'player player' 'promise promise' 'actions actions';
    column-gap: 20px; align-items: center;
  }
  .landing-intro { display: contents; }
  .landing-copy, .landing-listening-stage { display: contents; padding-top: 0; }
  .landing-title, .landing-title:lang(en) { grid-area: intro; width: 100%; font-size: 30px; text-align: left; }
  .landing-listening { grid-area: player; width: 100%; margin-top: 12px; padding: 20px 24px; }
  .landing-promise { grid-area: promise; width: 100%; max-width: none; margin-top: 12px; text-align: left; }
  .landing-hero-actions { grid-area: actions; width: 100%; align-items: flex-start; }
  .landing-hero .studio-app-promo { grid-area: app; width: auto; margin: 0; }
  .landing-hero .studio-app-note { display: none; }
  .landing-hero .studio-app-details { display: none; }
  .landing-hero .studio-app-mobile { display: flex; }
  .landing-listening-head { grid-template-columns: 104px minmax(0, 1fr); gap: 24px; }
  .landing-book-cover { grid-row: auto; width: 104px; height: 104px; }
  .landing-book-copy { display: block; }
  .landing-listening-title { max-width: none; font-size: clamp(20px, 2.85vw, 24px); }
  .landing-book-actions { grid-column: auto; margin-top: 8px; }
  .landing-listening .voice-play-btn { width: 44px; height: 44px; }
  .landing-cast { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; padding-top: 12px; }
  .landing-captions { margin-top: 12px; font-size: 1rem; line-height: 1.3125; }
  .landing-character { grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: 16px 24px; gap: 0 10px; }
  .landing-character-mark { width: 36px; height: 36px; }
}
@media (min-width: 560px) and (max-height: 350px) {
  .landing-title, .landing-title:lang(en), .landing-title:lang(zh) { font-size: 24px; }
  .landing-listening { margin-top: 8px; padding: 8px 16px; }
  .landing-listening-head { grid-template-columns: 80px minmax(0, 1fr); gap: 20px; }
  .landing-book-cover { width: 80px; height: 80px; }
  .landing-book-copy { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; }
  .landing-listening-title { grid-column: 1 / -1; grid-row: 1; }
  .landing-sample-options { margin: 0; grid-column: 2; grid-row: 2; }
  .landing-book-actions { margin: 0; gap: 8px; min-width: 0; grid-column: 1; grid-row: 2; }
  .landing-cast { margin-top: 8px; padding-top: 8px; gap: 12px; }
  .landing-captions { margin-top: 4px; }
  .landing-character { grid-template-columns: 32px minmax(0, 1fr); gap: 0 8px; font-size: 11px; }
  .landing-character-mark { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .novelhive-landing *, .novelhive-landing *::before, .novelhive-landing *::after { animation: none !important; transition-duration: 0s !important; scroll-behavior: auto !important; }
  .novelhive-landing .fade-in-section { opacity: 1; transform: none; }
  .novelhive-landing .hero-rise, .novelhive-landing .hero-rise-2, .novelhive-landing .hero-rise-3, .novelhive-landing .hero-rise-4 { opacity: 1; transform: none; }
  .novelhive-landing .marquee { overflow-x: auto; }
  .novelhive-landing .marquee-card[aria-hidden="true"] { display: none; }
}

/* Three sample choices need the card's full width on a phone: they get their
   own row above the cover and title, as one equal-width set. */
@media (max-width: 767px) {
  .landing-listening-mid .landing-sample-options { order: -1; width: 100%; max-width: none; margin: 0 0 14px; }
  .landing-sample-options button { padding-inline: 4px; font-size: 12px; }
}

/* The wall: three rows, alternate rows half a step over. */
.cr-grid { grid-template-rows: repeat(3, auto); }
.cr-cell:nth-child(even) { transform: none; }
.cr-cell:nth-child(3n + 2) { transform: translateX(37px); }
@media (max-width: 767px) { .cr-cell:nth-child(3n + 2) { transform: translateX(31px); } }

/* Laptop-height screens: the wall and the stage still fit one step. */
@media (min-width: 768px) and (max-height: 860px) {
  .novelhive-landing .landing-voices { padding-block-start: clamp(20px, 3vh, 36px); }
  .cr-heading { margin-bottom: 8px; }
  .cr-heading-note { margin-top: 6px; }
  .cr-grid { gap: 8px 10px; }
  .cr-mark { width: 38px; height: 38px; }
  .cr-voice { min-height: 38px; gap: 3px; }
}

/* ── Emotion stage: try one voice in ten emotions ──
   Promotion, not a panel: few words, no button chrome. Choosing an emotion
   plays it, the line itself replays it, the voice swaps for another. */
.emo-stage {
  --emo: var(--landing-accent);
  display: grid; grid-template-columns: minmax(0, 27rem) minmax(0, 1fr); align-items: center;
  column-gap: clamp(28px, 3.5vw, 48px); max-width: 60rem; margin: clamp(28px, 4.5vh, 48px) auto 0; text-align: start;
}
:is(.emo-stage, .emo-mood)[data-emotion="calm"] { --emo: oklch(.82 .04 180); }
:is(.emo-stage, .emo-mood)[data-emotion="happy"] { --emo: oklch(.84 .12 75); }
:is(.emo-stage, .emo-mood)[data-emotion="excited"] { --emo: oklch(.87 .13 95); }
:is(.emo-stage, .emo-mood)[data-emotion="tender"] { --emo: oklch(.83 .09 350); }
:is(.emo-stage, .emo-mood)[data-emotion="sad"] { --emo: oklch(.76 .08 245); }
:is(.emo-stage, .emo-mood)[data-emotion="angry"] { --emo: oklch(.72 .17 28); }
:is(.emo-stage, .emo-mood)[data-emotion="fearful"] { --emo: oklch(.76 .11 300); }
:is(.emo-stage, .emo-mood)[data-emotion="surprised"] { --emo: oklch(.83 .1 200); }
:is(.emo-stage, .emo-mood)[data-emotion="whispering"] { --emo: oklch(.82 .03 260); }
:is(.emo-stage, .emo-mood)[data-emotion="shouting"] { --emo: oklch(.75 .16 45); }

/* One track no wider than the column, so overflowing words are measurable. */
.emo-controls { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 20px; min-width: 0; }
.emo-show { min-width: 0; }
/* "Try it", a speaker for "this plays sound", and an arrow to the voice. */
.emo-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.emo-try {
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
  color: var(--landing-ink); font: 600 1.0625rem/1.2 var(--font-body); white-space: nowrap;
}
.emo-try-sound, .emo-try-arrow { fill: none; stroke: var(--landing-accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.emo-try-sound { width: 18px; height: 18px; }
.emo-try-arrow { width: 44px; height: 20px; margin-left: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .emo-stage:not(.is-touched) .emo-try-arrow { animation: emo-nudge 1.6s ease-in-out infinite; }
}
@keyframes emo-nudge { 50% { transform: translateX(4px); } }

/* The voice on stage: its face plays and pauses; a small shuffle brings another. */
.emo-current {
  display: inline-flex; align-items: center; gap: 12px; padding: 0; border: 0; background: none;
  color: var(--landing-ink); text-align: start; cursor: pointer;
}
.emo-voice-face { position: relative; display: block; flex: none; width: 52px; height: 52px; border-radius: 50%; }
.emo-current-face {
  display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px var(--emo), 0 0 16px 1px color-mix(in srgb, var(--emo) 28%, transparent);
  transition: box-shadow 300ms ease, transform 220ms var(--ease-spring);
}
.emo-current:hover .emo-current-face { transform: scale(1.05); }
.emo-stage.is-casting .emo-current-face { animation: emo-cast 420ms var(--ease-spring); }
@keyframes emo-cast { from { transform: scale(.7); opacity: 0; } }
.emo-face-control {
  position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%; color: #f5fbf8;
  background: color-mix(in srgb, var(--emo) 60%, #0d1714); box-shadow: 0 0 0 2px #0b1211;
}
.emo-face-control svg { width: 11px; height: 11px; fill: currentColor; }
.emo-face-control .emo-play-icon { margin-left: 1px; }
.emo-face-control .emo-pause-icon, .emo-stage.is-playing .emo-face-control .emo-play-icon { display: none; }
.emo-stage.is-playing .emo-face-control .emo-pause-icon { display: block; }
/* Rings travel out from the face while it speaks. */
.emo-voice-face::before, .emo-voice-face::after {
  content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--emo);
  opacity: 0; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .emo-stage.is-playing .emo-voice-face::before { animation: emo-ring 1.6s ease-out infinite; }
  .emo-stage.is-playing .emo-voice-face::after { animation: emo-ring 1.6s ease-out .8s infinite; }
  .emo-stage:not(.is-touched) .emo-face-control { animation: emo-invite 2s ease-in-out infinite; }
}
@keyframes emo-ring { from { opacity: .55; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }
@keyframes emo-invite { 50% { transform: scale(1.18); } }
.emo-current-meta { display: grid; gap: 5px; justify-items: start; }
.emo-current-name { font: 400 1.25rem/1.15 var(--landing-heading-font); }
.emo-current-sound { display: flex; align-items: center; gap: 8px; height: 14px; }
.emo-shuffle {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(214, 232, 223, .06); color: var(--landing-muted); cursor: pointer;
  transition: color 180ms ease, background-color 180ms ease;
}
.emo-shuffle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 320ms var(--ease-spring); }
.emo-shuffle:hover { color: var(--landing-ink); background: rgba(214, 232, 223, .12); }
.emo-shuffle:hover svg { transform: rotate(180deg); }

/* Emotions as a palette: each a soft chip in its own colour, all one width. */
.emo-moods { display: grid; grid-template-columns: repeat(5, minmax(max-content, 1fr)); gap: 8px; width: 100%; }
/* Long words in some languages: wrap rather than run off the edge (emotion-stage.js). */
.emo-moods.is-wrapping { display: flex; flex-wrap: wrap; }
.emo-mood {
  display: flex; align-items: center; justify-content: center; min-height: 34px; padding: 0 8px;
  border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: color-mix(in srgb, var(--emo) 13%, transparent);
  color: color-mix(in srgb, var(--emo) 80%, var(--landing-ink)); font: 500 13px/1 var(--font-body);
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}
.emo-mood:hover { background: color-mix(in srgb, var(--emo) 22%, transparent); }
.emo-mood[aria-pressed="true"] {
  background: color-mix(in srgb, var(--emo) 32%, transparent); color: var(--landing-ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--emo) 70%, transparent);
}
.emo-mood:disabled { filter: grayscale(1); opacity: .35; cursor: default; }
.emo-mood:disabled:hover { background: color-mix(in srgb, var(--emo) 13%, transparent); }

/* The performed line is the headline and its own play control. */
.emo-line { margin: 0; min-width: 0; border-radius: 12px; cursor: pointer; outline-offset: 8px; }
.emo-quote { margin: 0; }
.emo-quote-text {
  margin: 0; min-height: 2.5em; display: flex; align-items: center;
  color: var(--emo); font: 400 clamp(1.55rem, 2.6vw, 2.15rem)/1.22 var(--landing-heading-font);
  text-wrap: balance; transition: opacity 140ms ease, transform 140ms ease, color 300ms ease, filter 200ms ease;
}
.emo-line:hover .emo-quote-text { filter: brightness(1.15); }
.emo-words { display: block; }
.emo-word { display: inline-block; }
/* The type performs the emotion it names. */
.emo-stage[data-emotion="tender"] .emo-quote-text { font-weight: 300; text-shadow: 0 0 18px color-mix(in srgb, var(--emo) 40%, transparent); }
.emo-stage[data-emotion="angry"] .emo-quote-text { font-weight: 600; letter-spacing: -.01em; }
.emo-stage[data-emotion="whispering"] .emo-quote-text { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 300; letter-spacing: .06em; }
.emo-stage[data-emotion="shouting"] .emo-quote-text { font-weight: 700; font-size: clamp(1.45rem, 2.4vw, 1.95rem); letter-spacing: -.015em; }
@media (prefers-reduced-motion: no-preference) {
  .emo-stage[data-emotion="happy"] .emo-word { animation: emo-bob 1.3s ease-in-out calc(var(--i) * 70ms) infinite; }
  .emo-stage[data-emotion="excited"] .emo-word { animation: emo-hop .62s var(--ease-spring) calc(var(--i) * 45ms) 3 both; }
  .emo-stage[data-emotion="tender"] .emo-words { animation: emo-breathe 3.2s ease-in-out infinite; }
  .emo-stage[data-emotion="sad"] .emo-word { animation: emo-sink 1.1s ease-out calc(var(--i) * 90ms) both; }
  .emo-stage[data-emotion="angry"] .emo-words { animation: emo-shake .42s ease-in-out 2; }
  .emo-stage[data-emotion="fearful"] .emo-word { animation: emo-tremble .17s linear calc(var(--i) * -37ms) infinite; }
  .emo-stage[data-emotion="surprised"] .emo-words { animation: emo-pop .5s var(--ease-spring) both; }
  .emo-stage[data-emotion="whispering"] .emo-word { animation: emo-fade-in .9s ease-out calc(var(--i) * 110ms) both; }
  .emo-stage[data-emotion="shouting"] .emo-words { animation: emo-blast .45s var(--ease-spring) both; }
}
@keyframes emo-bob { 0%, 100% { transform: none; } 50% { transform: translateY(-3px); } }
@keyframes emo-hop { 0% { transform: translateY(0); } 40% { transform: translateY(-7px) scale(1.04); } 100% { transform: none; } }
@keyframes emo-breathe { 50% { transform: scale(1.025); } }
@keyframes emo-sink { from { transform: translateY(-6px); opacity: 0; } to { transform: translateY(2px); opacity: 1; } }
@keyframes emo-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-5px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(3px); } }
@keyframes emo-tremble { 0%, 100% { transform: none; } 25% { transform: translate(-.6px, .4px); } 75% { transform: translate(.6px, -.4px); } }
@keyframes emo-pop { 0% { transform: scale(.82); opacity: 0; } 60% { transform: scale(1.06); opacity: 1; } 100% { transform: none; } }
@keyframes emo-fade-in { from { opacity: 0; filter: blur(2px); } to { opacity: 1; filter: none; } }
@keyframes emo-blast { 0% { transform: scale(.9); } 50% { transform: scale(1.06) translateX(-2px); } 75% { transform: scale(1) translateX(2px); } 100% { transform: none; } }
/* Karaoke: each word fills with the emotion's colour as it is spoken. */
.emo-stage.is-karaoke .emo-word {
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(90deg, var(--emo) calc(var(--p, 0) * 1%), color-mix(in srgb, var(--emo) 28%, transparent) calc(var(--p, 0) * 1%));
}
.emo-stage.is-swapping .emo-quote-text { opacity: 0; transform: translateY(4px); }
.emo-quote-tr { margin-top: 6px; color: var(--landing-muted); font: 400 .9375rem/1.5 var(--font-body); }
.emo-quote-tr[hidden] { display: none; }
.emo-stage[data-emotion="calm"] .emo-quote-text { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
/* A small sound mark: resting bars say "this plays"; they move while it does. */
.emo-time { color: var(--landing-muted); font: 500 12px/1 var(--font-body); font-variant-numeric: tabular-nums; }
.emo-wave { display: flex; align-items: center; gap: 2px; height: 14px; opacity: .5; transition: opacity 200ms ease; }
.emo-wave i { width: 2px; height: 100%; border-radius: 2px; background: var(--emo); transform: scaleY(.35); }
.emo-wave i:nth-child(2), .emo-wave i:nth-child(6) { transform: scaleY(.6); }
.emo-wave i:nth-child(3), .emo-wave i:nth-child(5) { transform: scaleY(.85); }
.emo-wave i:nth-child(4) { transform: scaleY(1); }
.emo-current:hover .emo-wave, .emo-stage.is-playing .emo-wave { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .emo-stage.is-playing .emo-wave i { animation: emo-wave 1s ease-in-out infinite; }
  .emo-wave i:nth-child(2) { animation-delay: -.7s; }
  .emo-wave i:nth-child(3) { animation-delay: -.3s; }
  .emo-wave i:nth-child(4) { animation-delay: -.85s; }
  .emo-wave i:nth-child(5) { animation-delay: -.15s; }
  .emo-wave i:nth-child(6) { animation-delay: -.55s; }
  .emo-wave i:nth-child(7) { animation-delay: -.4s; }
}
@keyframes emo-wave { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

@media (max-width: 1023px) {
  .emo-stage { column-gap: 28px; }
  .emo-quote-text { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
}
@media (max-width: 767px) {
  .emo-stage { grid-template-columns: minmax(0, 1fr); row-gap: 24px; margin-top: 28px; }
  .emo-controls { gap: 16px; }
  .emo-moods { gap: 6px; }
  .emo-voice-face { width: 44px; height: 44px; }
  .emo-current-name { font-size: 1.15rem; }
  .emo-quote-text { font-size: 1.3rem; }
  .emo-stage[data-emotion="calm"] .emo-quote-text { font-size: 1.05rem; }
  .emo-mood { padding: 0 6px; font-size: 12.5px; }
}
@media (min-width: 768px) and (max-height: 860px) {
  .emo-stage { margin-top: 20px; }
  .emo-controls { gap: 14px; }
  .emo-voice-face { width: 44px; height: 44px; }
  .emo-quote-text { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
}

/* Voices that perform many emotions: three short bars in emotion colours.
   On the wall it is a badge; in the heading it is the legend. */
.cr-tones { display: inline-flex; align-items: center; justify-content: center; gap: 1.5px; pointer-events: none; }
.cr-tones i { display: block; width: 2px; border-radius: 1px; }
.cr-tones i:nth-child(1) { height: 45%; background: oklch(.87 .13 95); }
.cr-tones i:nth-child(2) { height: 85%; background: oklch(.83 .09 350); }
.cr-tones i:nth-child(3) { height: 60%; background: oklch(.76 .08 245); }
.cr-mark > .cr-tones {
  position: absolute; top: -4px; right: -5px; width: 17px; height: 17px; border-radius: 50%;
  background: #0d1714; box-shadow: 0 0 0 1px rgba(214, 232, 223, .14);
}
.cr-mark > .cr-tones i:nth-child(1) { height: 5px; }
.cr-mark > .cr-tones i:nth-child(2) { height: 9px; }
.cr-mark > .cr-tones i:nth-child(3) { height: 6px; }
.cr-voice[data-assigned] .cr-tones { display: none; }
.cr-tones--legend { gap: .08em; height: .62em; margin-inline-end: .32em; vertical-align: .02em; }
.cr-tones--legend i { width: .1em; border-radius: .05em; }

/* ── AI casting strip: a book, its six roles, the voices AI gives them ──
   One layout while casting and after, so the reveal has nothing to move. */
.cr-stage .cr-cast, .cr-stage:not([data-traits-pending]) .cr-cast {
  grid-template-columns: 52px minmax(0, 1fr); grid-template-areas: 'cover focus' 'cover roster';
  align-items: center; gap: 8px 18px; max-width: 60rem; margin: 26px auto 0; padding: 0;
}
.cr-stage .cr-story-cover { width: 52px; margin: 0; transform: none; }
.cr-stage .cr-story-cover:hover { transform: translateY(-2px); }
.cr-stage .cr-cast-focus, .cr-stage:not([data-traits-pending]) .cr-cast-focus {
  display: flex; align-items: center; gap: 8px; min-height: 20px; align-self: end;
}
.cr-cast-done { display: none; margin: 0; color: var(--landing-ink); font: 600 .875rem/1.3 var(--font-body); }
.cr-stage:not([data-traits-pending]) :is(.cr-thinking, .cr-spotlight) { display: none; }
.cr-stage:not([data-traits-pending]) .cr-cast-done { display: block; }
.cr-stage .cr-cast .cr-cast-roster, .cr-stage:not([data-traits-pending]) .cr-cast .cr-cast-roster {
  grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px 14px; max-width: none; align-self: start;
}
.cr-stage .cr-cast .cr-match-audition {
  grid-template: 'portrait profile' auto 'portrait voice' auto / 34px minmax(0, 1fr);
  gap: 1px 9px; min-height: 40px; align-items: center;
}
.cr-stage .cr-cast .cr-role-profile { display: grid; gap: 0; min-width: 0; }
.cr-stage .cr-cast .cr-match-role { font: 400 .95rem/1.15 var(--landing-heading-font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cr-stage .cr-cast .cr-role-traits { font-size: .6875rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cr-stage .cr-cast .cr-match-mark { width: 34px; height: 34px; }
.cr-stage .cr-cast .cr-match-voice { font-size: .75rem; }
@media (max-width: 1100px) {
  .cr-stage .cr-cast .cr-cast-roster, .cr-stage:not([data-traits-pending]) .cr-cast .cr-cast-roster { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .cr-stage .cr-cast, .cr-stage:not([data-traits-pending]) .cr-cast { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'focus' 'roster'; margin-top: 22px; }
  .cr-stage .cr-story-cover { display: none; }
  .cr-stage .cr-cast .cr-cast-roster, .cr-stage:not([data-traits-pending]) .cr-cast .cr-cast-roster { gap: 10px 8px; }
  .cr-stage .cr-cast .cr-match-audition { grid-template-columns: 30px minmax(0, 1fr); gap: 0 7px; }
  .cr-stage .cr-cast .cr-match-mark { width: 30px; height: 30px; }
  .cr-stage .cr-cast .cr-match-role { font-size: .85rem; }
}
@media (min-width: 768px) and (max-height: 860px) {
  .cr-stage .cr-cast, .cr-stage:not([data-traits-pending]) .cr-cast { margin-top: 16px; }
}

/* Three zones in one section: the library (wall), the AI casting band, the stage.
   The band is full-bleed and borderless: a faint tint with hairlines that fade
   out at both ends, so it reads as a zone, not a panel. */
.cr-band { position: relative; isolation: isolate; margin-top: 34px; padding-block: 20px; }
.cr-band::before {
  content: ''; position: absolute; inset: 0 calc(50% - 50vw); z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(214, 232, 223, .09), rgba(214, 232, 223, .09)) top / 100% 1px no-repeat,
    linear-gradient(rgba(214, 232, 223, .09), rgba(214, 232, 223, .09)) bottom / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(134, 191, 164, .055), rgba(134, 191, 164, .03));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}
.cr-band .cr-stage .cr-cast, .cr-stage .cr-band .cr-cast, .cr-stage:not([data-traits-pending]) .cr-band .cr-cast { margin-top: 0; }
.cr-band + .emo-stage { margin-top: clamp(30px, 4.5vh, 46px); }
@media (max-width: 767px) {
  .cr-band { margin-top: 26px; padding-block: 16px; }
  .cr-band::before { -webkit-mask-image: none; mask-image: none; }
}
@media (min-width: 768px) and (max-height: 860px) {
  .cr-band { margin-top: 22px; padding-block: 14px; }
  .cr-band + .emo-stage { margin-top: 22px; }
}

/* Casting band: a book at the left; the voices AI picks fly in beside it and
   only then appear. No status text, no empty seats. */
.cr-stage .cr-band .cr-cast-focus { display: none; }
.cr-stage .cr-band .cr-cast, .cr-stage:not([data-traits-pending]) .cr-band .cr-cast {
  grid-template-columns: 60px minmax(0, 1fr); grid-template-areas: 'cover roster'; align-items: center; row-gap: 0;
}
.cr-stage .cr-band .cr-story-cover { width: 60px; align-self: center; }
.cr-band .cr-match { transition: opacity 360ms ease, transform 420ms var(--ease-spring); }
.cr-stage[data-traits-pending] .cr-band .cr-match:not([data-matched]) { opacity: 0; transform: translateY(6px); pointer-events: none; }
/* While AI reads the book, a soft light passes over its cover. */
.cr-band .cr-book-turn { position: relative; overflow: hidden; }
.cr-band .cr-book-turn::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(236, 248, 241, .38) 50%, transparent 70%) -120% 0 / 220% 100% no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  .cr-stage[data-casting] .cr-band .cr-book-turn::after { opacity: 1; animation: cr-book-read 1.6s ease-in-out infinite; }
}
@keyframes cr-book-read { to { background-position: 120% 0; } }
@media (max-width: 767px) {
  /* Phones: the book at the top left, the cast across the full width below it. */
  .cr-stage .cr-band .cr-cast, .cr-stage:not([data-traits-pending]) .cr-band .cr-cast {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: 'cover' 'roster'; row-gap: 12px; justify-items: start;
  }
  .cr-stage .cr-band .cr-cast .cr-cast-roster { justify-self: stretch; }
  .cr-stage .cr-band .cr-story-cover { display: block; width: 40px; }
  .cr-stage .cr-band .cr-cast .cr-role-traits { display: none; }
  .cr-stage .cr-band .cr-cast .cr-match-voice { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cr-stage .cr-band .cr-cast .cr-cast-roster { column-gap: 6px; }
  .cr-stage .cr-band .cr-cast .cr-match-audition { grid-template-columns: 28px minmax(0, 1fr); gap: 0 6px; }
  .cr-stage .cr-band .cr-cast .cr-match-mark { width: 28px; height: 28px; }
  .cr-stage .cr-band .cr-cast .cr-match-role { font-size: .8rem; }
  .cr-stage .cr-band .cr-cast .cr-match-voice { font-size: .7rem; }
}

/* The book sits beside the section title; the band below holds only the cast.
   (The band's own cover stays in the DOM for casting-room.js, hidden.) */
.cr-heading { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.4vw, 32px); }
.cr-heading-book {
  position: relative; flex: none; width: clamp(54px, 5vw, 72px); border-radius: 2px 5px 5px 2px; overflow: hidden;
  transform: perspective(700px) rotateY(-16deg); box-shadow: 4px 10px 22px rgba(0, 0, 0, .5), 0 0 0 1px rgba(226, 221, 213, .12);
}
.cr-heading-book img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 11; object-fit: cover; }
.cr-heading-book::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(236, 248, 241, .38) 50%, transparent 70%) -120% 0 / 220% 100% no-repeat;
}
@media (prefers-reduced-motion: no-preference) {
  #voices:has(.cr-stage[data-casting]) .cr-heading-book::after { opacity: 1; animation: cr-book-read 1.6s ease-in-out infinite; }
}
.cr-stage .cr-band .cr-story-cover, .cr-stage:not([data-traits-pending]) .cr-band .cr-story-cover { display: none; }
.cr-stage .cr-band .cr-cast, .cr-stage:not([data-traits-pending]) .cr-band .cr-cast {
  grid-template-columns: minmax(0, 1fr); grid-template-areas: 'roster'; justify-items: stretch;
}
@media (max-width: 767px) {
  .cr-heading { gap: 14px; }
  .cr-heading-book { width: 44px; }
}

/* No roster on the page: the picked voices fly from the wall into the book by the
   title (casting-room.js), which takes each one in with a soft glow. The roster
   stays in the DOM as the casting's data, out of sight. */
.cr-stage .cr-band { display: none; }
.cr-heading-book.is-receiving { animation: cr-book-receive 460ms var(--ease-spring); }
@keyframes cr-book-receive {
  40% { transform: perspective(700px) rotateY(-16deg) scale(1.07); box-shadow: 4px 10px 22px rgba(0, 0, 0, .5), 0 0 0 1px rgba(226, 221, 213, .2), 0 0 26px 4px rgba(150, 214, 192, .35); }
}

/* ── The book beside the title: a little farther away; hover or focus lists the
   cast AI picked for it, sliding out to its right. ── */
.cr-heading { gap: clamp(44px, 6vw, 96px); }
.cr-heading-shelf { position: relative; flex: none; }
.cr-heading-book { display: block; padding: 0; border: 0; background: none; cursor: pointer; }
.cr-heading-book:focus-visible { outline: 2px solid var(--landing-accent); outline-offset: 6px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cr-heading-book { transition: transform 360ms var(--ease-spring); }
  .cr-heading-shelf:hover .cr-heading-book { transform: perspective(700px) rotateY(-6deg) translateY(-3px); }
}
.cr-heading-cast {
  position: absolute; left: calc(100% + 26px); top: 50%; z-index: 6;
  display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 22px;
  margin: 0; padding: 0; list-style: none; text-align: start;
  transform: translateY(-50%); pointer-events: none;
}
/* A soft dark halo, not a panel, keeps the names legible over the wall. */
.cr-heading-cast::before {
  content: ''; position: absolute; inset: -26px -34px; z-index: -1; border-radius: 40px;
  background: radial-gradient(closest-side, rgba(8, 13, 12, .92), rgba(8, 13, 12, .6) 60%, transparent);
  opacity: 0; transition: opacity 240ms ease;
}
.cr-heading-cast li {
  display: flex; align-items: center; gap: 10px; white-space: nowrap;
  opacity: 0; transform: translateX(-24px) scale(.86);
  transition: opacity 240ms ease calc(var(--i) * 45ms), transform 380ms var(--ease-spring) calc(var(--i) * 45ms);
}
.cr-heading-cast img { width: 32px; height: 32px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(214, 232, 223, .2); }
.cr-heading-cast span { display: grid; color: var(--landing-muted); font: 500 12px/1.3 var(--font-body); }
.cr-heading-cast b { color: var(--landing-ink); font: 400 15px/1.2 var(--landing-heading-font); }
.cr-heading-shelf:is(:hover, :focus-within) .cr-heading-cast { pointer-events: auto; }
.cr-heading-shelf:is(:hover, :focus-within) .cr-heading-cast::before { opacity: 1; }
.cr-heading-shelf:is(:hover, :focus-within) .cr-heading-cast li { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .cr-heading-cast li { transform: none; transition: opacity 150ms ease; }
}
@media (max-width: 767px) {
  .cr-heading { gap: 18px; }
  .cr-heading-cast { left: auto; right: 0; top: calc(100% + 18px); transform: none; }
  .cr-heading-cast li { transform: translateY(-10px); }
}

/* ── Hero: lines read as a script. Each names its speaker (and emotion) above
   it; dialogue sits in curly quotes, upright; narration is set in italics. ── */
.landing-caption { display: grid; gap: 8px; align-content: start; }
.landing-caption-who {
  display: flex; align-items: center; gap: 8px; min-height: 22px;
  color: var(--lk); font: 600 11.5px/1.2 var(--font-body); letter-spacing: .09em; text-transform: uppercase;
}
.landing-caption[data-caption-role="narrator"] .landing-caption-who { color: color-mix(in srgb, var(--lk) 70%, var(--landing-muted)); }
.landing-caption-line { display: block; }
.landing-caption[data-caption-role="narrator"] .landing-caption-line { font-style: italic; }
.landing-caption .landing-mood-tag { margin: 0; vertical-align: 0; text-transform: none; letter-spacing: .01em; }
.landing-listening[data-sample-mode="single"] .landing-caption-who { color: var(--landing-muted); }

/* ── Prices as type. The dollar sign is small and raised; the figure carries
   the weight. Standard is a cool mint, Premium is gold. ── */
.money { display: inline-flex; align-items: flex-start; font-variant-numeric: lining-nums; white-space: nowrap; }
.money-cur { font-size: .48em; line-height: 1; margin: .2em .06em 0 0; opacity: .8; letter-spacing: 0; }
.money-fig { letter-spacing: -.04em; }
.landing-pricing-header h2 .money {
  vertical-align: -.06em; font-size: 1.55em; font-weight: 400; line-height: .9;
  background: linear-gradient(180deg, #e6fff0 10%, #8fdcb6 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 24px rgba(110, 214, 164, .22));
}
.landing-pricing-header h2 .money-cur { margin-top: .26em; }
.landing-price-display .landing-price-amount .money { color: #d6f3e2; }
.landing-price-display--premium .landing-price-amount .money {
  background: linear-gradient(180deg, #fff1c9 8%, #e7c375 55%, #b88a3d 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 4px 18px rgba(231, 195, 117, .2));
}
.landing-price-display--premium .landing-price-unit span { color: #ecd08f; }

/* ── Start from an idea: an idea is typed, the cover flow turns to its book ── */
.idea-head { text-align: center; margin-bottom: clamp(18px, 3vh, 30px); }
.idea-head p { margin: 10px auto 0; max-width: 40rem; color: var(--landing-muted); font: 400 1.0625rem/1.5 var(--font-body); }
.idea-flow { display: grid; justify-items: center; gap: clamp(16px, 2.6vh, 26px); }
.idea-prompt {
  display: flex; align-items: center; gap: 10px; max-width: min(100%, 44rem); min-height: 50px; margin: 0;
  padding: 10px 22px 10px 16px; border-radius: 999px;
  background: rgba(178, 205, 191, .07); box-shadow: inset 0 0 0 1px rgba(209, 231, 219, .14), 0 12px 40px -18px rgba(0, 0, 0, .6);
  color: var(--landing-ink); font: 400 1rem/1.4 var(--font-body); text-align: start;
}
.idea-prompt-mark { flex: none; width: 18px; height: 18px; fill: var(--landing-accent); }
.idea-prompt-label {
  flex: none; padding: 3px 9px; border-radius: 999px; background: rgba(134, 191, 164, .16);
  color: var(--landing-accent); font: 600 11px/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase;
}
.idea-caret { flex: none; width: 2px; height: 1.15em; margin-left: -6px; border-radius: 1px; background: var(--landing-accent); opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .idea-flow.is-typing .idea-caret { opacity: 1; animation: idea-caret 900ms steps(1) infinite; }
}
@keyframes idea-caret { 50% { opacity: 0; } }

.idea-stage { position: relative; width: 100%; height: clamp(200px, 30vh, 260px); perspective: 1300px; }
.idea-covers { position: relative; height: 100%; margin: 0; padding: 0; list-style: none; transform-style: preserve-3d; }
.idea-cover {
  --size: clamp(190px, 28vh, 248px);
  position: absolute; left: 50%; top: 0; width: var(--size); height: var(--size); margin-left: calc(var(--size) / -2);
  border-radius: 14px; overflow: hidden; cursor: pointer;
  transform: translateX(calc(var(--o, 0) * var(--size) * .82)) translateZ(calc(var(--a, 0) * -150px)) rotateY(calc(var(--o, 0) * -26deg));
  opacity: calc(1 - var(--a, 0) * .3); filter: brightness(calc(1 - var(--a, 0) * .22)) saturate(calc(1 - var(--a, 0) * .2));
  box-shadow: 0 28px 60px -24px rgba(0, 0, 0, .8), 0 0 0 1px rgba(226, 221, 213, .08);
  transition: transform 900ms cubic-bezier(.22, .8, .25, 1), opacity 900ms ease, filter 900ms ease, box-shadow 900ms ease;
}
.idea-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.idea-cover[data-far] { opacity: 0; pointer-events: none; }
.idea-cover.is-active { cursor: default; box-shadow: 0 34px 70px -26px rgba(0, 0, 0, .85), 0 0 0 1px rgba(226, 221, 213, .16), 0 0 70px -10px rgba(110, 214, 164, .28); }
.idea-made { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 0; min-height: 44px; }
.idea-made-title { color: var(--landing-ink); font: 400 1.25rem/1.25 var(--landing-heading-font); }
.idea-made-genre { color: var(--landing-muted); font: 500 12px/1.4 var(--font-body); letter-spacing: .04em; }
@media (prefers-reduced-motion: no-preference) {
  .idea-flow.is-made .idea-made { animation: idea-made-in 600ms ease both; }
}
@keyframes idea-made-in { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) {
  .idea-cover { transition: none; }
}
/* The CTA: the same glowing glass pill as the rest of the page. */
.landing-idea-actions { margin-block-start: clamp(14px, 2.4vh, 24px); gap: 8px; }
.landing-idea-cta { gap: 8px; padding: 0 18px 0 22px; font: 600 .9375rem/1 var(--font-body); }
.landing-idea-cta svg { width: 17px; height: 17px; transition: transform 220ms var(--ease-spring); }
.landing-idea-cta:is(:hover, :focus-visible) svg { transform: translateX(3px); }
.landing-idea-cta > span:first-child { text-decoration: none; }
@media (max-width: 767px) {
  .idea-prompt { padding: 10px 16px 10px 12px; font-size: .9375rem; border-radius: 22px; }
  .idea-cover { --size: 170px; }
  .idea-stage { height: 180px; }
}

/* ── A shorter hero card: smaller cover, a one-block title, the sample choice
   on the speaker's line, and tighter caption and cast rows. ── */
.landing-listening-mid { position: relative; display: flex; flex-direction: column; margin-top: 18px; }
.landing-listening-mid .landing-captions { margin-top: 0; }
@media (min-width: 768px) {
  .landing-listening, .landing-hero .landing-listening { padding: 22px 26px 20px; }
  .landing-listening-head { grid-template-columns: 84px minmax(0, 1fr); gap: 20px; align-items: center; }
  .landing-book-cover { width: 84px; height: 84px; border-radius: 10px; }
  .landing-listening-title { max-width: none; font-size: 21px; line-height: 1.2; }
  .landing-book-actions { margin-top: 10px; gap: 14px; }
  .landing-listening .voice-play-btn { width: 40px; height: 40px; }
  .landing-listening .voice-play-btn svg { width: 18px; height: 18px; }
  .landing-listening-mid .landing-sample-options { position: absolute; top: -7px; right: 0; margin: 0; }
  .landing-sample-options button { min-height: 34px; padding: 4px 11px; }
  .landing-captions { font-size: clamp(1.15rem, 1.4vw, 1.35rem); line-height: 1.3; }
  .landing-caption { gap: 6px; }
  .landing-caption-who { min-height: 20px; }
  .landing-cast { margin-top: 14px; padding-top: 14px; gap: 14px; }
  .landing-character { grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: 15px 22px; gap: 0 8px; }
  .landing-character-mark { width: 32px; height: 32px; }
  .landing-character-wave { max-width: 70px; height: 20px; }
}

/* ── The hero card as an audiobook's "now playing" ── */
.landing-book-art { position: relative; flex: none; }
.landing-book-art .landing-book-cover { transform: none; border-radius: 10px; }
.landing-book-badge {
  position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; color: #e9f6ef;
  background: rgba(16, 28, 24, .94); box-shadow: 0 0 0 1px rgba(214, 232, 223, .22), 0 4px 12px rgba(0, 0, 0, .4);
}
.landing-book-badge svg { width: 15px; height: 15px; }
.landing-book-kicker {
  margin: 0 0 6px; color: var(--landing-accent);
  font: 600 11px/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
}
.landing-book-credit { margin: 6px 0 0; color: var(--landing-muted); font: 400 13px/1.4 var(--font-body); }
.landing-listening .landing-book-actions { display: flex; align-items: center; gap: 6px; margin-top: 18px; }
.landing-listening .landing-book-actions .voice-play-btn { margin-inline: 2px; }
.landing-listening .landing-book-actions .landing-listening-progress { flex: 1; gap: 8px; margin-inline: 14px 0; }
.landing-listening-progress .voice-duration { flex: none; min-width: 2.8em; text-align: end; }
@media (min-width: 768px) {
  .landing-listening-head { grid-template-columns: 116px minmax(0, 1fr); gap: 22px; }
  .landing-book-cover { width: 116px; height: 116px; }
  .landing-listening-title { font-size: 23px; line-height: 1.18; text-wrap: balance; }
  .landing-listening .landing-book-actions .voice-play-btn { width: 50px; height: 50px; }
  .landing-listening .landing-book-actions .voice-play-btn svg { width: 20px; height: 20px; }
  .landing-listening-mid { margin-top: 16px; }
}
@media (max-width: 767px) {
  /* The copy is one block again (older phone rules spread its lines over the grid). */
  .landing-listening-head { grid-template-columns: 84px minmax(0, 1fr); gap: 0 16px; align-items: center; }
  .landing-book-copy { display: block; grid-column: 2; grid-row: 1; }
  .landing-book-art { grid-column: 1; grid-row: 1; }
  .landing-book-cover { grid-row: auto; width: 84px; height: 84px; }
  .landing-listening-title { font-size: 19px; line-height: 1.2; align-self: auto; }
  .landing-book-kicker { margin-bottom: 4px; font-size: 10.5px; }
  .landing-book-credit { font-size: 12px; margin-top: 4px; }
  .landing-book-badge { width: 24px; height: 24px; right: -5px; bottom: -5px; }
  .landing-book-badge svg { width: 13px; height: 13px; }
}

/* Idea flow, made in front of you: a blank cover, a light passing down it,
   the artwork coming up behind the light; then novel, cover and audiobook tick off. */
.idea-cover {
  transform: translateX(calc(var(--o, 0) * var(--size) * .82)) translateZ(calc(var(--a, 0) * -150px))
    rotateY(calc(var(--o, 0) * -26deg)) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  background: linear-gradient(160deg, rgba(214, 232, 223, .12), rgba(214, 232, 223, .03));
}
.idea-stage.is-tilting .idea-cover.is-active { transition-duration: 260ms, 900ms, 900ms, 900ms; }
.idea-cover::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity 300ms ease;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .16), transparent 55%);
}
.idea-stage.is-tilting .idea-cover.is-active::before { opacity: 1; }
.idea-cover::after {
  content: ''; position: absolute; left: -10%; right: -10%; top: 0; z-index: 2; height: 2px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(226, 255, 242, .95) 30% 70%, transparent);
  box-shadow: 0 0 22px 6px rgba(140, 228, 196, .45);
}
@media (prefers-reduced-motion: no-preference) {
  .idea-cover.is-revealing img { animation: idea-reveal 1300ms cubic-bezier(.3, .65, .2, 1) both; }
  .idea-cover.is-revealing::after { animation: idea-scan 1300ms cubic-bezier(.3, .65, .2, 1) both; }
}
@keyframes idea-reveal {
  0% { clip-path: inset(0 0 100% 0); filter: blur(14px) brightness(1.6) saturate(.6); }
  65% { filter: blur(0) brightness(1.08) saturate(1); }
  100% { clip-path: inset(0 0 0 0); filter: none; }
}
@keyframes idea-scan {
  0% { transform: translateY(0); opacity: 0; }
  8%, 88% { opacity: 1; }
  100% { transform: translateY(var(--size)); opacity: 0; }
}
.idea-made { flex-direction: row; align-items: baseline; gap: 10px; min-height: 0; }
.idea-made-genre::before { content: '·'; margin-inline-end: 10px; color: var(--landing-muted); }
.idea-outputs { display: flex; gap: 22px; margin: -6px 0 0; padding: 0; list-style: none; }
.idea-outputs li {
  display: inline-flex; align-items: center; gap: 7px; color: var(--landing-muted); font: 500 13px/1 var(--font-body);
  opacity: .4; transition: opacity 360ms ease, color 360ms ease;
}
.idea-outputs li > svg:first-child { width: 16px; height: 16px; }
.idea-tick { width: 14px; height: 14px; fill: none; stroke: var(--landing-accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 22; stroke-dashoffset: 22; transition: stroke-dashoffset 420ms ease .1s; }
.idea-outputs li.is-done { opacity: 1; color: var(--landing-ink); }
.idea-outputs li.is-done .idea-tick { stroke-dashoffset: 0; }
@media (min-width: 768px) and (max-height: 860px) {
  .idea-flow { gap: 14px; }
  .idea-stage { height: clamp(190px, 27vh, 230px); }
  .idea-cover { --size: clamp(180px, 26vh, 226px); }
}
@media (max-width: 767px) {
  .idea-made { flex-direction: column; align-items: center; gap: 2px; }
  .idea-made-genre::before { content: none; }
  .idea-outputs { gap: 14px; }
}

/* ── Pricing: three plans, one price each, in a clear order ── */
.price-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; align-items: stretch; }
.price-plan { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 24px 24px 26px; border-radius: 22px; text-align: start; }
.price-plan-head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 10px; row-gap: 6px; }
.price-plan-icon {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px;
  background: rgba(134, 191, 164, .12); color: var(--landing-accent);
}
.price-plan-icon svg { width: 17px; height: 17px; }
.price-plan-icon .cr-tones { height: 14px; gap: 2px; }
.price-plan-icon .cr-tones i { width: 2.5px; }
.price-plan-head h3 { margin: 0; color: var(--landing-ink); font: 600 1.0625rem/1.3 var(--font-body); }
.price-plan-head p { grid-column: 1 / -1; margin: 2px 0 0; min-height: 2.6em; color: var(--landing-muted); font: 400 .875rem/1.3 var(--font-body); }
.price-plan-price {
  display: flex; align-items: baseline; gap: 8px; margin: 18px 0 0;
  color: #d6f3e2; font: 400 clamp(2.4rem, 3.4vw, 3rem)/1 var(--font-brand);
}
.price-plan-price > span:last-child { color: var(--landing-muted); font: 400 .875rem/1.2 var(--font-body); letter-spacing: 0; }
.price-plan-sub { min-height: 1.4em; margin: 8px 0 0; color: var(--landing-muted); font: 400 .8125rem/1.4 var(--font-body); }
.price-plan-sub b { color: var(--landing-ink); font-weight: 600; }
.price-plan-cta { width: 100%; justify-content: center; gap: 8px; margin-top: 18px; min-height: 44px; }
.price-plan-cta svg { width: 17px; height: 17px; }
.price-plan-features { display: grid; gap: 10px; margin: 20px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid rgba(214, 232, 223, .1); }
.price-plan-features li { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 10px; color: #cfdcd5; font: 400 .875rem/1.4 var(--font-body); }
.price-plan-check { width: 16px; height: 16px; margin-top: 2px; fill: none; stroke: var(--landing-accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* Premium: a gold rim and gold accents. */
.price-plan--premium { box-shadow: inset 0 0 0 1px rgba(231, 195, 117, .42), 0 0 0 1px rgba(231, 195, 117, .08), 0 30px 70px -40px rgba(231, 195, 117, .35); }
.price-plan--premium .price-plan-icon { background: rgba(231, 195, 117, .14); }
.price-plan--premium .price-plan-price .money {
  background: linear-gradient(180deg, #fff1c9 8%, #e7c375 55%, #b88a3d 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-plan--premium .price-plan-check { stroke: #e7c375; }
.price-plan-flag {
  position: absolute; top: 18px; right: 18px; padding: 4px 10px; border-radius: 999px;
  background: rgba(231, 195, 117, .14); box-shadow: inset 0 0 0 1px rgba(231, 195, 117, .35);
  color: #ecd08f; font: 600 11px/1.3 var(--font-body); letter-spacing: .06em;
}
.landing-pricing .landing-pricing-footer { margin-top: 18px; }
@media (min-width: 768px) and (max-height: 860px) {
  .price-plans { margin-top: 18px; }
  .price-plan { padding: 20px 22px 22px; }
  .price-plan-price { margin-top: 12px; }
  .price-plan-cta { margin-top: 14px; }
  .price-plan-features { margin-top: 16px; padding-top: 14px; gap: 8px; }
}
@media (max-width: 1023px) {
  .price-plans { grid-template-columns: minmax(0, 1fr); max-width: 30rem; margin-inline: auto; }
  .price-plan-head p { min-height: 0; }
  .price-plan-sub:empty { display: none; }
}

/* ── The book beside the title, standing in 3D, with the audiobook mark.
   Voices fly into it and step out beside it, one by one, as its cast. ── */
.cr-heading { flex-wrap: wrap; gap: 20px clamp(36px, 4.4vw, 64px); }
.cr-heading-shelf { display: flex; align-items: center; gap: 30px; }
.cr-heading-book, .cr-heading-book.is-receiving {
  position: relative; width: auto; overflow: visible; border-radius: 0; transform: none; box-shadow: none; animation: none;
}
.cr-heading-book::after { content: none; }
.cr-heading-shelf:hover .cr-heading-book { transform: none; }
.cr-book3d {
  position: relative; display: block; width: clamp(64px, 5.4vw, 80px); aspect-ratio: 9 / 11;
  transform: perspective(900px) rotateY(-28deg) rotateX(5deg); transform-style: preserve-3d;
  transition: transform 520ms var(--ease-spring);
}
.cr-book3d img { position: relative; z-index: 2; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 2px 6px 6px 2px; }
.cr-book3d-pages {
  position: absolute; z-index: 1; top: 3%; bottom: 3%; right: -11px; width: 14px; border-radius: 0 4px 4px 0;
  background: repeating-linear-gradient(90deg, #ece5d2 0 1px, #c9bfa6 1px 2px);
  box-shadow: 10px 18px 30px rgba(0, 0, 0, .55), inset -1px 0 2px rgba(0, 0, 0, .25);
}
.cr-book3d-spine {
  position: absolute; z-index: 3; left: 0; top: 0; bottom: 0; width: 11%; border-radius: 2px 0 0 2px; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, .5), rgba(255, 255, 255, .14) 60%, rgba(0, 0, 0, .18));
}
.cr-book3d-sheen {
  position: absolute; z-index: 4; inset: 0; border-radius: 2px 6px 6px 2px; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, .2), transparent 38%), linear-gradient(0deg, rgba(0, 0, 0, .25), transparent 30%);
}
.cr-book3d::after {
  content: ''; position: absolute; left: 4%; right: -24%; bottom: -16px; height: 16px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .6), transparent); transform: translateZ(-30px);
}
.cr-book3d-badge {
  position: absolute; right: -14px; bottom: -10px; z-index: 6; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; color: #e9f6ef;
  background: rgba(16, 28, 24, .96); box-shadow: 0 0 0 1px rgba(214, 232, 223, .24), 0 6px 16px rgba(0, 0, 0, .5);
}
.cr-book3d-badge svg { width: 16px; height: 16px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cr-heading-shelf:hover .cr-book3d { transform: perspective(900px) rotateY(-14deg) rotateX(3deg) translateY(-3px); }
}
@media (prefers-reduced-motion: no-preference) {
  #voices:has(.cr-stage[data-casting]) .cr-book3d-sheen {
    background: linear-gradient(105deg, transparent 30%, rgba(236, 248, 241, .42) 50%, transparent 70%) -120% 0 / 220% 100% no-repeat;
    animation: cr-book-read 1.6s ease-in-out infinite;
  }
  .cr-heading-book.is-receiving .cr-book3d { animation: cr-book3d-take 460ms var(--ease-spring); }
}
@keyframes cr-book3d-take {
  40% { transform: perspective(900px) rotateY(-28deg) rotateX(5deg) scale(1.08); filter: drop-shadow(0 0 18px rgba(150, 214, 192, .5)); }
}
/* The cast list sits beside the book for good (no hover needed). */
.cr-heading-cast, .cr-heading-shelf:is(:hover, :focus-within) .cr-heading-cast {
  position: static; transform: none; pointer-events: auto;
  display: grid; grid-template-columns: repeat(2, max-content); gap: 9px 22px;
}
.cr-heading-cast::before { content: none; }
.cr-heading-cast li, .cr-heading-shelf:is(:hover, :focus-within) .cr-heading-cast li {
  opacity: 1; transform: none; transform-origin: left center;
  transition: opacity 420ms ease, transform 620ms var(--ease-spring);
}
/* Scripted by casting-room.js: a role waits inside the book until its voice lands. */
.cr-heading-cast.is-scripted li:not(.is-in), .cr-heading-shelf:is(:hover, :focus-within) .cr-heading-cast.is-scripted li:not(.is-in) {
  opacity: 0; transform: translateX(-46px) scale(.55);
}
@media (prefers-reduced-motion: reduce) {
  .cr-heading-cast li { transition: opacity 200ms ease; }
  .cr-heading-cast.is-scripted li:not(.is-in) { transform: none; }
}
@media (max-width: 767px) {
  .cr-heading { flex-direction: column; gap: 16px; }
  .cr-heading-shelf { gap: 22px; }
  .cr-heading-cast, .cr-heading-shelf:is(:hover, :focus-within) .cr-heading-cast { right: auto; top: auto; gap: 8px 14px; }
  .cr-book3d { width: 56px; }
}

/* The cover flow is moved by a spring in landing-ideas.js, frame by frame, so
   its transform, opacity and filter carry no CSS transition. */
.idea-cover, .idea-stage.is-tilting .idea-cover.is-active { transition: box-shadow 600ms ease; will-change: transform; }
.idea-cover { opacity: clamp(0, calc(1 - var(--a, 0) * .3), 1); }
.idea-cover[data-far] { opacity: 0; visibility: hidden; pointer-events: none; }
.idea-cover img { pointer-events: none; -webkit-user-drag: none; user-select: none; }
.idea-stage { touch-action: pan-y; cursor: grab; user-select: none; }
.idea-stage.is-dragging { cursor: grabbing; }

/* ── Pricing: Standard and Premium compared side by side; Create is its own plan ── */
.price-plans--compare { grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); }
.price-compare { display: flex; flex-direction: column; min-width: 0; padding: 24px 26px 24px; border-radius: 22px; text-align: start; }
.price-compare .price-plan-head p { min-height: 0; }
.price-table { width: 100%; margin-top: 14px; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.price-table th, .price-table td { padding: 9px 12px; font: 400 .875rem/1.35 var(--font-body); color: #cfdcd5; vertical-align: middle; }
.price-table thead th { padding-top: 12px; padding-bottom: 14px; text-align: center; vertical-align: bottom; }
.price-table thead th:first-child { width: 46%; }
.price-table tbody th { text-align: start; font-weight: 400; }
.price-table tbody td { text-align: center; }
.price-table tbody tr + tr > * { border-top: 1px solid rgba(214, 232, 223, .08); }
.price-tier { display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--landing-ink); font: 600 .9375rem/1.3 var(--font-body); }
.price-tier em {
  padding: 2px 8px; border-radius: 999px; font: 600 10.5px/1.3 var(--font-body); font-style: normal; letter-spacing: .04em;
  background: rgba(231, 195, 117, .14); box-shadow: inset 0 0 0 1px rgba(231, 195, 117, .35); color: #ecd08f;
}
.price-tier-price { display: block; margin-top: 6px; color: #d6f3e2; font: 400 clamp(2rem, 2.8vw, 2.5rem)/1 var(--font-brand); }
.price-tier-unit { display: block; margin-top: 4px; color: var(--landing-muted); font: 400 .75rem/1.3 var(--font-body); }
.price-table .is-premium { background: rgba(231, 195, 117, .045); }
.price-table thead .is-premium { border-radius: 14px 14px 0 0; box-shadow: inset 0 1px 0 rgba(231, 195, 117, .35); }
.price-table tbody tr:last-child .is-premium { border-radius: 0 0 14px 14px; }
.price-table thead .is-premium .money {
  background: linear-gradient(180deg, #fff1c9 8%, #e7c375 55%, #b88a3d 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-check { width: 18px; height: 18px; fill: none; stroke: var(--landing-accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.price-table .is-premium .price-check { stroke: #e7c375; }
.price-no { color: rgba(214, 232, 223, .3); }
.price-count { color: var(--landing-ink); font: 600 .9375rem/1 var(--font-body); font-variant-numeric: tabular-nums; }
.price-table .is-premium .price-count { color: #ecd08f; }
.price-compare-foot { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 16px; }
.price-compare-foot .price-plan-cta { width: auto; margin: 0; padding-inline: 22px 18px; }
.price-compare-foot p { margin: 0; color: var(--landing-muted); font: 400 .8125rem/1.4 var(--font-body); }
@media (min-width: 768px) and (max-height: 860px) {
  .price-compare { padding: 20px 24px 20px; }
  .price-table { margin-top: 8px; }
  .price-table th, .price-table td { padding-block: 7px; }
  .price-table thead th { padding-top: 8px; padding-bottom: 10px; }
  .price-compare-foot { padding-top: 12px; }
}
@media (max-width: 1023px) {
  .price-plans--compare { grid-template-columns: minmax(0, 1fr); max-width: 40rem; }
}
@media (max-width: 560px) {
  .price-compare { padding: 20px 14px; }
  .price-table th, .price-table td { padding-inline: 6px; font-size: .8125rem; }
  .price-table thead th:first-child { width: 40%; }
  .price-compare-foot { flex-direction: column; align-items: stretch; text-align: center; }
  .price-compare-foot .price-plan-cta { width: 100%; }
}
/* Side books sit behind the list's own plane in 3D; let taps reach the books. */
.idea-covers { pointer-events: none; }
.idea-cover { pointer-events: auto; }
/* Tailwind's preflight makes every svg a block; the table's ticks must centre. */
.price-table .price-check { display: inline-block; }
@media (max-width: 560px) {
  .price-tier { flex-direction: column; gap: 4px; white-space: nowrap; }
}
/* More air between the book (and its badge) and the cast list beside it. */
.cr-heading-shelf { gap: 56px; }
.cr-heading-cast, .cr-heading-shelf:is(:hover, :focus-within) .cr-heading-cast { column-gap: 28px; }
@media (max-width: 767px) { .cr-heading-shelf { gap: 32px; } }

/* ── Page three: a fuller shelf. More books in view, closer together, with a
   floor reflection; the section clips the far ones so the page never scrolls sideways. ── */
#genres { overflow-x: clip; }
.idea-stage { width: 100vw; margin-inline: calc(50% - 50vw); height: clamp(230px, 33vh, 290px); }
.idea-cover {
  --size: clamp(176px, 25vh, 228px);
  transform: translateX(calc(var(--o, 0) * var(--size) * .6)) translateZ(calc(var(--a, 0) * -120px))
    rotateY(calc(clamp(-1, var(--o, 0), 1) * -34deg)) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  opacity: clamp(0, calc(1.06 - var(--a, 0) * .17), 1);
  filter: brightness(calc(1 - min(var(--a, 0), 4) * .13)) saturate(calc(1 - min(var(--a, 0), 4) * .1));
  -webkit-box-reflect: below 6px linear-gradient(transparent 62%, rgba(255, 255, 255, .16));
}
@media (min-width: 768px) and (max-height: 860px) {
  .idea-stage { height: clamp(220px, 31vh, 262px); }
  .idea-cover { --size: clamp(168px, 24vh, 214px); }
}
@media (max-width: 767px) {
  .idea-cover { --size: 150px; }
  .idea-stage { height: 200px; }
}

/* ── Pricing, simplified: the narration panel's title sits in the table's
   corner; no boxes inside boxes (plain icons, no tinted column, a gold rule
   and gold type mark Premium); the idea card's action lines up with the left. ── */
.price-plans--compare { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.price-plan-icon, .price-plan--premium .price-plan-icon { width: auto; height: auto; background: none; border-radius: 0; }
.price-plan-icon svg { width: 20px; height: 20px; }
.price-table { margin-top: 0; }
.price-table thead th.price-table-corner { text-align: start; vertical-align: top; padding-left: 0; }
.price-table-corner .price-plan-icon { display: block; margin-bottom: 10px; color: var(--landing-accent); }
.price-corner-title { display: block; color: var(--landing-ink); font: 600 1.0625rem/1.3 var(--font-body); }
.price-corner-sub { display: block; margin-top: 6px; color: var(--landing-muted); font: 400 .8125rem/1.4 var(--font-body); }
.price-table tbody th { padding-left: 0; }
.price-table .is-premium, .price-table thead .is-premium, .price-table tbody tr:last-child .is-premium { background: none; border-radius: 0; box-shadow: none; }
.price-table thead th:not(.price-table-corner) { border-bottom: 1px solid rgba(214, 232, 223, .12); }
.price-table thead th.is-premium { border-bottom-color: rgba(231, 195, 117, .55); }
.price-tier em { padding: 0; background: none; box-shadow: none; color: #ecd08f; font-weight: 600; }
.price-tier em::before { content: '·'; margin-inline-end: 6px; color: rgba(236, 208, 143, .6); }
.price-compare-foot { padding-top: 18px; }
.price-plan--idea { padding-bottom: 24px; }
.price-plan--idea .price-plan-features { margin-bottom: 0; }
.price-plan-foot { display: flex; align-items: center; gap: 16px; margin-top: auto; padding-top: 18px; }
.price-plan-foot .price-plan-cta { width: auto; margin: 0; padding-inline: 22px 18px; }
.price-plan-foot p { margin: 0; color: var(--landing-muted); font: 400 .8125rem/1.4 var(--font-body); }
@media (max-width: 560px) {
  .price-table thead th.price-table-corner { vertical-align: bottom; }
  .price-corner-sub { display: none; }
  .price-tier em::before { content: none; }
  .price-plan-foot { flex-direction: column; align-items: stretch; text-align: center; }
  .price-plan-foot .price-plan-cta { width: 100%; }
}
.price-table-corner .price-plan-icon { justify-items: start; place-items: center start; }
@media (min-width: 768px) and (max-height: 860px) { .price-plan--idea { padding-bottom: 20px; } }
.price-plan-sub b.is-gold { color: #ecd08f; }

/* Card feet: the note above, the action below on one line. Both cards' buttons
   sit on the card floor, so they line up whatever the note's length. */
.price-compare-foot, .price-plan-foot { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
.price-compare-foot .price-plan-cta, .price-plan-foot .price-plan-cta { white-space: nowrap; flex: none; }
.price-compare-foot p, .price-plan-foot p { max-width: 36ch; }
@media (max-width: 560px) {
  .price-compare-foot, .price-plan-foot { align-items: stretch; }
}

/* Create from an idea: three options as a small price list, the unit stated once. */
.price-options { margin-top: 16px; }
.price-options-unit { margin: 0 0 4px; text-align: end; color: var(--landing-muted); font: 400 .75rem/1.3 var(--font-body); }
.price-options ul { display: grid; margin: 0; padding: 0; list-style: none; }
.price-options li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0;
  border-top: 1px solid rgba(214, 232, 223, .08); color: #cfdcd5; font: 400 .9375rem/1.3 var(--font-body);
}
.price-options li:first-child { border-top: 0; }
.price-options b { flex: none; color: #d6f3e2; font: 400 1.75rem/1 var(--font-brand); font-weight: 400; }
.price-options li.is-premium span { color: #ecd08f; }
.price-options li.is-premium b .money {
  background: linear-gradient(180deg, #fff1c9 8%, #e7c375 55%, #b88a3d 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-plan--idea .price-plan-features { margin-top: 14px; padding-top: 14px; }
@media (min-width: 768px) and (max-height: 860px) {
  .price-options { margin-top: 10px; }
  .price-options li { padding: 7px 0; }
  .price-options b { font-size: 1.55rem; }
}
.price-options li { align-items: center; }
/* The cast beside the book wears the same "many emotions" mark as the wall. */
.cr-heading-face { position: relative; flex: none; display: block; width: 32px; height: 32px; }
.cr-heading-face > .cr-tones {
  position: absolute; top: -5px; right: -6px; width: 16px; height: 16px; border-radius: 50%;
  background: #0d1714; box-shadow: 0 0 0 1px rgba(214, 232, 223, .14);
}
.cr-heading-face > .cr-tones i:nth-child(1) { height: 5px; }
.cr-heading-face > .cr-tones i:nth-child(2) { height: 9px; }
.cr-heading-face > .cr-tones i:nth-child(3) { height: 6px; }
.cr-heading-cast .cr-heading-face { display: block; }
.cr-heading-cast .cr-heading-face > .cr-tones { display: inline-flex; align-items: center; justify-content: center; gap: 1.5px; }

/* Slot-machine spin on arrival: the covers stay sharp while they race past. */
.idea-stage.is-spinning { cursor: progress; }
.idea-flow:has(.idea-stage.is-spinning) .idea-made { animation: none; }

/* ── Restored from prod: the language count, the upload mechanics and the
   library link in the hero; Premium's fine print; the iPhone & iPad band. ── */
.landing-eyebrow { margin: 0 0 12px; color: var(--landing-accent); font: 600 .75rem/1.3 var(--font-body); letter-spacing: .12em; text-transform: uppercase; }
.landing-ios { padding: 24px 16px 56px; }
.landing-ios-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  max-width: 64rem; margin: 0 auto; padding: 24px 28px; border-radius: 22px;
}
.landing-ios-copy h2 { margin: 0 0 6px; color: var(--landing-ink); font: 400 1.5rem/1.2 var(--font-brand); }
.landing-ios-copy p { max-width: 40rem; margin: 0; color: var(--landing-muted); font: 400 .875rem/1.55 var(--font-body); }
.landing-ios-actions { display: flex; flex: none; flex-direction: column; align-items: center; gap: 10px; }
.landing-ios-badge { display: inline-block; line-height: 0; }
.landing-ios-badge img { width: auto; height: 46px; }
.landing-ios-link { color: var(--landing-accent); font: 600 .8125rem/1.3 var(--font-body); }
.landing-ios-link:hover { color: var(--landing-ink); }
@media (max-width: 767px) {
  .landing-ios-inner { flex-direction: column; align-items: flex-start; padding: 20px; }
  .landing-ios-actions { align-items: flex-start; }
}
#ios .landing-ios-copy h2 { margin: 0 0 6px; font-size: clamp(1.375rem, 2vw, 1.625rem); line-height: 1.2; letter-spacing: 0; }
/* Where the hero is flattened into one ordered column, the eyebrow leads and
   the upload note follows the actions. */
@media (max-width: 1179px) {
  .landing-eyebrow { order: 0; width: 100%; }
}
@media (min-width: 768px) and (max-width: 1179px) {
  .landing-eyebrow { text-align: center; }
}

/* ── Pricing, final: two equal cards with one structure — header, prices with
   the unit stated once, what is included, the action on the card floor. ── */
.price-plans--compare { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.price-plans--compare .price-plan { padding: 26px 28px; }
.price-plans--compare .price-plan-head p { min-height: 0; }
.price-compare .price-table { margin-top: 18px; }
.price-table thead th, .price-table thead th:not(.price-table-corner) { padding: 0 8px 12px; vertical-align: bottom; }
.price-table thead th.price-table-corner { width: 44%; padding-left: 0; text-align: start; }
.price-table-corner .price-options-unit { margin: 0; text-align: start; }
.price-tier { justify-content: center; }
.price-tier-price { margin-top: 6px; font-size: 1.875rem; }
.price-options { margin-top: 18px; }
.price-options-unit { margin-bottom: 6px; }
.price-options b { font-size: 1.875rem; }
.price-plans--compare .price-plan-features { margin-top: 16px; padding-top: 16px; }
.price-plans--compare .price-plan-foot { margin-top: auto; padding-top: 22px; }
@media (min-width: 768px) and (max-height: 860px) {
  .price-plans--compare .price-plan { padding: 22px 26px; }
  .price-compare .price-table { margin-top: 12px; }
  .price-options { margin-top: 12px; }
  .price-tier-price, .price-options b { font-size: 1.625rem; }
  .price-plans--compare .price-plan-foot { padding-top: 16px; }
}
@media (max-width: 1023px) {
  .price-plans--compare { grid-template-columns: minmax(0, 1fr); max-width: 36rem; margin-inline: auto; }
}
.price-table thead th.price-table-corner { width: 54%; vertical-align: bottom; padding-bottom: 16px; }

/* ── Pricing material: light behind the glass, a lit top edge, depth, and the
   page's own imagery (the cast, the covers) in each card's corner. ── */
.price-plans--compare { position: relative; isolation: isolate; }
.price-plans--compare::before {
  content: ''; position: absolute; z-index: -1; inset: -12% -6% -10%; pointer-events: none;
  background:
    radial-gradient(42% 58% at 22% 42%, rgba(45, 140, 118, .34), transparent 70%),
    radial-gradient(36% 52% at 80% 62%, rgba(201, 158, 82, .2), transparent 70%),
    radial-gradient(30% 40% at 55% 10%, rgba(120, 190, 170, .12), transparent 70%);
  filter: blur(28px);
}
.price-plans--compare .price-plan {
  overflow: hidden;
  box-shadow: var(--landing-glass-rim), 0 30px 70px -28px rgba(0, 0, 0, .7), 0 2px 6px rgba(0, 0, 0, .25);
}
.price-plans--compare .price-plan::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(230, 248, 240, .075), rgba(230, 248, 240, .015) 28%, transparent 46%),
    radial-gradient(120% 60% at 0% 0%, rgba(184, 211, 199, .08), transparent 60%);
}
.price-plans--compare .price-plan > * { position: relative; z-index: 1; }
.price-plans--compare .price-plan-head { grid-template-columns: auto minmax(0, 1fr) auto; }
.price-plans--compare .price-plan-head p { grid-column: 1 / 3; }
.price-plan-art { grid-column: 3; grid-row: 1 / span 2; display: flex; align-items: center; align-self: center; }
.price-plan-art--cast img {
  width: 38px; height: 38px; border-radius: 50%; object-fit: cover; margin-left: -12px;
  box-shadow: 0 0 0 2px #17221f, 0 6px 14px rgba(0, 0, 0, .35);
}
.price-plan-art--cast img:first-child { margin-left: 0; }
.price-plan-art--covers { position: relative; width: 92px; height: 54px; }
.price-plan-art--covers img {
  position: absolute; top: 4px; width: 44px; height: 44px; border-radius: 8px; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 18px rgba(0, 0, 0, .45);
}
.price-plan-art--covers img:nth-child(1) { left: 0; transform: rotate(-10deg); }
.price-plan-art--covers img:nth-child(2) { left: 24px; top: 0; z-index: 2; }
.price-plan-art--covers img:nth-child(3) { left: 48px; transform: rotate(10deg); }
/* Prices with a soft sheen: mint for Standard, gold for Premium. */
.price-plans--compare .price-tier-price .money,
.price-plans--compare .price-options li:not(.is-premium) b .money {
  background: linear-gradient(180deg, #ffffff 10%, #cfeee0 55%, #94c9b3 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-plans--compare .is-premium .price-tier-price .money { text-shadow: none; }
.price-plans--compare .price-table thead th.is-premium .price-tier { color: #ecd08f; }
.price-plans--compare .price-table tbody tr + tr > * { border-top-color: rgba(214, 232, 223, .06); }
@media (max-width: 560px) {
  .price-plan-art { display: none; }
  .price-plans--compare .price-plan-head p { grid-column: 1 / -1; }
}

/* ── Pricing, flattened (owner: depth reads dated). Flat glass: no drop shadow,
   no top sheen, solid-colour prices, covers laid flat. One faint, even light
   behind both cards so the blur still reads as glass. The cast sits centred
   over both tier columns: every tier is multi-voice. ── */
.price-plans--compare::before {
  background:
    radial-gradient(40% 55% at 25% 45%, rgba(45, 140, 118, .16), transparent 70%),
    radial-gradient(40% 55% at 75% 45%, rgba(45, 140, 118, .16), transparent 70%);
}
.price-plans--compare .price-plan { box-shadow: var(--landing-glass-rim); }
.price-plans--compare .price-plan::after { content: none; }
.price-plans--compare .price-tier-price .money,
.price-plans--compare .price-options li:not(.is-premium) b .money { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #e4f3ec; }
.price-plans--compare .is-premium .price-tier-price .money,
.price-plans--compare .price-options li.is-premium b .money { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #ecd08f; }
.price-plan-art--cast img { box-shadow: 0 0 0 2px #1b2724; }
.price-plan-art--covers { width: 108px; height: 44px; }
.price-plan-art--covers img { top: 0; transform: none; box-shadow: 0 0 0 2px #1b2724; }
.price-plan-art--covers img:nth-child(1) { left: 0; transform: none; }
.price-plan-art--covers img:nth-child(2) { left: 32px; top: 0; }
.price-plan-art--covers img:nth-child(3) { left: 64px; transform: none; z-index: 3; }
.price-compare .price-plan-head { grid-template-columns: auto minmax(0, 1fr) 46%; }
.price-compare .price-plan-art { justify-content: center; justify-self: stretch; }

/* ── Hero: the Multi-Voice / Single Voice choice gets room above the line. ── */
@media (min-width: 768px) {
  .landing-caption-who { min-height: 32px; align-items: center; }
  .landing-caption { gap: 8px; }
  .landing-listening-mid .landing-sample-options { top: 0; }
  .landing-sample-options button { min-height: 32px; }
}

/* ── Pricing: each cast face glows with an emotion, one after another; the
   actions sit on the card's right. ── */
.price-plan-art--cast img[data-emotion="excited"] { --emo: oklch(.87 .13 95); }
.price-plan-art--cast img[data-emotion="angry"] { --emo: oklch(.72 .17 28); }
.price-plan-art--cast img[data-emotion="tender"] { --emo: oklch(.83 .09 350); }
.price-plan-art--cast img[data-emotion="sad"] { --emo: oklch(.76 .08 245); }
.price-plan-art--cast img { box-shadow: 0 0 0 2px #1b2724, 0 0 0 3.5px color-mix(in srgb, var(--emo) 70%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .price-plan-art--cast img { animation: price-emo 4.8s ease-in-out infinite; }
  .price-plan-art--cast img:nth-child(2) { animation-delay: 1.2s; }
  .price-plan-art--cast img:nth-child(3) { animation-delay: 2.4s; }
  .price-plan-art--cast img:nth-child(4) { animation-delay: 3.6s; }
}
@keyframes price-emo {
  0%, 30%, 100% { box-shadow: 0 0 0 2px #1b2724, 0 0 0 3.5px color-mix(in srgb, var(--emo) 70%, transparent); transform: none; }
  12% { box-shadow: 0 0 0 2px #1b2724, 0 0 0 3.5px var(--emo), 0 0 18px 2px color-mix(in srgb, var(--emo) 55%, transparent); transform: translateY(-2px); }
}
.price-plans--compare .price-plan-foot { align-items: flex-end; }

/* ── Your Work Stays Yours: the rules beside a signed ownership card. ── */
.own-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(32px, 5vw, 72px); max-width: 68rem; margin: 0 auto; }
.own-copy h2 { text-align: start; }
.own-lede { max-width: 36rem; margin: 14px 0 0; color: #cfdcd5; font: 400 1.0625rem/1.6 var(--font-body); }
.own-rules { display: grid; gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.own-rules li { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; }
.own-rule-icon {
  grid-row: 1 / span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  color: var(--landing-accent); box-shadow: inset 0 0 0 1px rgba(184, 211, 199, .22);
}
.own-rule-icon svg { width: 17px; height: 17px; }
.own-rules h3 { margin: 0; color: var(--landing-ink); font: 600 1rem/1.35 var(--font-body); }
.own-rules p { margin: 0; color: var(--landing-muted); font: 400 .875rem/1.55 var(--font-body); }
.own-deed { position: relative; margin: 0; padding: 26px 28px 22px; border-radius: 24px; }
.own-deed-head { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.own-deed-head img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1); }
.own-deed-title { margin: 0; color: var(--landing-ink); font: 400 1.25rem/1.2 var(--font-brand); text-wrap: balance; }
.own-deed-by { margin: 4px 0 0; color: var(--landing-accent); font: 600 .75rem/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; }
.own-deed-seal {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: #ecd08f;
  box-shadow: inset 0 0 0 1.5px rgba(236, 208, 143, .55); transform: rotate(-12deg);
}
.own-deed-seal svg { width: 18px; height: 18px; }
.own-deed-rows { display: grid; margin: 22px 0 0; padding: 0; list-style: none; }
.own-deed-rows li {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0;
  border-top: 1px solid rgba(214, 232, 223, .08); color: #cfdcd5; font: 400 .9375rem/1.3 var(--font-body);
}
.own-deed-rows li svg { width: 18px; height: 18px; color: var(--landing-muted); }
.own-deed-rows b { color: var(--landing-ink); font-weight: 600; }
.own-deed-sign { display: block; width: 62%; height: auto; margin: 14px 0 0 auto; }
.own-deed-sign path { stroke: #e6efe9; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  #ownership .own-deed-rows li { opacity: 0; transform: translateY(6px); transition: opacity 420ms ease, transform 520ms var(--ease-spring); }
  #ownership .own-deed-seal { opacity: 0; transform: rotate(-12deg) scale(1.6); transition: opacity 300ms ease 1500ms, transform 420ms cubic-bezier(.3, 1.5, .5, 1) 1500ms; }
  #ownership .own-deed-sign path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1100ms ease-in-out 900ms; }
  #ownership.visible .own-deed-rows li { opacity: 1; transform: none; }
  #ownership.visible .own-deed-rows li:nth-child(2) { transition-delay: 160ms; }
  #ownership.visible .own-deed-rows li:nth-child(3) { transition-delay: 320ms; }
  #ownership.visible .own-deed-seal { opacity: 1; transform: rotate(-12deg); }
  #ownership.visible .own-deed-sign path { stroke-dashoffset: 0; }
}
@media (max-width: 900px) {
  .own-layout { grid-template-columns: minmax(0, 1fr); }
  .own-deed { max-width: 28rem; }
}
@media (min-width: 768px) { .landing-caption { gap: 12px; } }
.own-layout { position: relative; isolation: isolate; }
.own-deed::before { content: none; }
.own-layout::before {
  content: ''; position: absolute; z-index: -1; inset: -10% -4% -10% 45%; pointer-events: none;
  background: radial-gradient(50% 55% at 60% 50%, rgba(45, 140, 118, .18), transparent 70%); filter: blur(24px);
}
/* The ownership card says it plainly: nothing of the sale is ours. */
.own-deed-cut { display: flex; align-items: baseline; gap: 14px; margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(214, 232, 223, .08); }
.own-deed-zero { color: #e4f3ec; font: 400 clamp(3.5rem, 6vw, 4.5rem)/.9 var(--font-brand); letter-spacing: -.03em; }
.own-deed-cut-label { max-width: 12rem; color: var(--landing-muted); font: 400 .9375rem/1.4 var(--font-body); }
.own-deed-rows { margin-top: 18px; }
.own-deed-rows li { grid-template-columns: 18px minmax(0, 1fr); }
.own-deed-rows li svg { color: var(--landing-accent); }
@media (prefers-reduced-motion: no-preference) {
  #ownership .own-deed-zero { display: inline-block; opacity: 0; transform: translateY(10px); transition: opacity 500ms ease 200ms, transform 700ms var(--ease-spring) 200ms; }
  #ownership.visible .own-deed-zero { opacity: 1; transform: none; }
  #ownership.visible .own-deed-rows li:nth-child(1) { transition-delay: 500ms; }
  #ownership.visible .own-deed-rows li:nth-child(2) { transition-delay: 660ms; }
  #ownership.visible .own-deed-rows li:nth-child(3) { transition-delay: 820ms; }
}
/* Ownership card, quieter: one statement, then what it covers. */
.own-deed-claim { margin: 22px 0 0; padding-top: 22px; border-top: 1px solid rgba(214, 232, 223, .08); color: var(--landing-ink); font: 400 clamp(1.75rem, 2.6vw, 2.25rem)/1.15 var(--font-brand); text-wrap: balance; }
.own-deed-claim-sub { margin: 10px 0 0; color: var(--landing-muted); font: 400 .9375rem/1.5 var(--font-body); }
.own-deed-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.own-deed-chips li {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px 0 10px; border-radius: 999px;
  color: #d7e6de; font: 500 .8125rem/1 var(--font-body); box-shadow: inset 0 0 0 1px rgba(184, 211, 199, .2);
}
.own-deed-chips svg { width: 14px; height: 14px; fill: none; stroke: var(--landing-accent); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  #ownership :is(.own-deed-claim, .own-deed-claim-sub) { opacity: 0; transform: translateY(8px); transition: opacity 500ms ease, transform 700ms var(--ease-spring); }
  #ownership .own-deed-claim { transition-delay: 150ms; }
  #ownership .own-deed-claim-sub { transition-delay: 300ms; }
  #ownership .own-deed-chips li { opacity: 0; transform: translateY(6px); transition: opacity 420ms ease, transform 520ms var(--ease-spring); }
  #ownership.visible :is(.own-deed-claim, .own-deed-claim-sub, .own-deed-chips li) { opacity: 1; transform: none; }
  #ownership.visible .own-deed-chips li:nth-child(1) { transition-delay: 520ms; }
  #ownership.visible .own-deed-chips li:nth-child(2) { transition-delay: 640ms; }
  #ownership.visible .own-deed-chips li:nth-child(3) { transition-delay: 760ms; }
}
.novelhive-landing #ownership .own-deed-claim { text-wrap: balance; }
/* The soft lights behind pricing and the ownership card never widen the page. */
#pricing, #ownership { overflow-x: clip; }
/* "Start from an idea" fills exactly one page, its content centred in it, so the
   page always comes to rest on the whole of it. */
@media (min-width: 768px) {
  #genres { display: flex; flex-direction: column; justify-content: center; min-height: calc(100svh - var(--landing-nav-h, 64px)); padding-block: clamp(20px, 4.5vh, 56px); }
}
/* More room between the book and its cast and the wall below. */
@media (min-width: 768px) { #voices .cr-heading { margin-bottom: 30px; } }
@media (min-width: 768px) and (max-height: 680px) {
  .idea-stage { height: 196px; }
  .idea-cover { --size: 148px; }
}

/* iPhone & iPad, plainly: the app icon, one line of copy, the badge. No card. */
.landing-ios { padding: 8px 16px 48px; }
.landing-ios-inner {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 18px;
  max-width: 56rem; margin: 0 auto; padding: 22px 0 0; border-top: 1px solid rgba(214, 232, 223, .08);
  border-radius: 0; background: none; box-shadow: none;
}
.landing-ios-icon { width: 44px; height: 44px; border-radius: 11px; }
#ios .landing-ios-copy h2 { margin: 0; font: 600 1rem/1.35 var(--font-body); letter-spacing: 0; }
.landing-ios-copy p { margin: 2px 0 0; max-width: 38rem; color: var(--landing-muted); font: 400 .8125rem/1.5 var(--font-body); }
.landing-ios-badge img { width: auto; height: 40px; }
@media (max-width: 640px) {
  .landing-ios-inner { grid-template-columns: 44px minmax(0, 1fr); }
  .landing-ios-badge { grid-column: 1 / -1; justify-self: start; }
}
.landing-ios-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 11px; background: #1f3a33; box-shadow: inset 0 0 0 1px rgba(214, 232, 223, .14); }
.landing-ios-icon img { width: 24px; height: 24px; }
#ios .landing-ios-copy h2 { font-family: "Plus Jakarta Sans", system-ui, sans-serif; color: var(--landing-ink); }
.landing-ios-copy p { font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
/* The lights behind pricing and the ownership card stay inside their boxes
   sideways (their blur still softens the edges), so nothing measures wider. */
.price-plans--compare::before { left: 0; right: 0; }
.own-layout::before { right: 0; }
/* Narrow phones: the cast beside the book shrinks to fit (names ellipsise)
   instead of widening the page. */
@media (max-width: 420px) {
  .cr-heading-shelf, .cr-heading-cast { max-width: 100%; min-width: 0; }
  .cr-heading-cast { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .cr-heading-cast li { min-width: 0; }
  .cr-heading-cast li > span:last-child { min-width: 0; overflow: hidden; }
  .cr-heading-cast b, .cr-heading-cast li > span:last-child { white-space: nowrap; text-overflow: ellipsis; overflow: hidden; display: block; }
  #section-01-heading { max-width: 100%; }
}
