:root {
  --background: #faf7ef;
  --background-soft: #f5f0e5;
  --surface: #fffdf8;
  --surface-muted: #f8f4eb;
  --text-primary: #12343a;
  --text-secondary: #687976;
  --text-tertiary: #87928f;
  --brand: #07946f;
  --brand-hover: #087f63;
  --brand-active: #066a53;
  --brand-soft: #e5f3ec;
  --brand-softer: #f0f8f4;
  --border: #e4ddd0;
  --border-strong: #d5cbbb;
  --yellow: #f4bd48;
  --yellow-soft: #fbefd0;
  --violet-soft: #eee8fa;
  --violet-text: #71589d;
  --danger: #d45a4c;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-2xl: 36px;
  --shadow-button: 0 8px 20px rgba(7, 148, 111, 0.18);
  --shadow-image: 0 20px 45px rgba(41, 54, 48, 0.12);
  --shadow-soft: 0 8px 24px rgba(41, 54, 48, 0.06);
  --container-width: none;
  --page-padding: clamp(24px, 2.7vw, 56px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "Manrope", "Onest", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: var(--background);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 5% 10%, rgba(244, 189, 72, 0.08), transparent 24rem),
    var(--background);
  -webkit-font-smoothing: antialiased;
}

body.is-reading {
  background: #eef1ed;
}

body.is-reading .site-header,
body.is-reading .site-footer,
body.is-reading .mobile-bottom-nav {
  display: none;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:not(:disabled) {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

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

mascot-asset {
  display: block;
  pointer-events: none;
  user-select: none;
}

mascot-asset img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
}

svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

h1,
h2,
h3,
strong {
  text-wrap: balance;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(7, 148, 111, 0.28);
  outline-offset: 3px;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.page-container {
  width: calc(100% - (var(--page-padding) * 2));
  max-width: none;
  margin-inline: auto;
}

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

[hidden] {
  display: none !important;
}

.view {
  min-height: 60vh;
}

.view.is-visible {
  animation: view-in 260ms var(--ease);
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 80px;
  background: rgba(250, 247, 239, 0.88);
  border-bottom: 1px solid rgba(198, 188, 171, 0.56);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(16px) saturate(1.08);
  backdrop-filter: blur(16px) saturate(1.08);
}

.header-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  position: relative;
  width: max-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #173f39;
  font-size: 22px;
  line-height: 1;
  font-weight: 820;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.site-header .brand-mark {
  position: relative;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  transform-origin: 50% 44%;
  animation: mascot-idle 7s ease-in-out infinite;
}

.site-header .logo-mascot::after {
  content: "";
  position: absolute;
  top: 30px;
  left: 16px;
  width: 7px;
  height: 5px;
  z-index: 2;
  background: #071c36;
  border-radius: 50%;
  box-shadow: 12px 0 #071c36;
  opacity: 0;
  animation: mascot-blink 8.6s linear infinite;
}

.site-footer .brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.brand-name {
  transform: translateY(0.5px);
}

.brand-sparkles {
  position: absolute;
  top: 4px;
  right: -12px;
  width: 10px;
  height: 11px;
  pointer-events: none;
}

.brand-sparkles i {
  position: absolute;
  display: block;
  background: #e9ac35;
  transform: rotate(45deg);
}

.brand-sparkles i:first-child {
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 1px;
}

.brand-sparkles i:last-child {
  right: 0;
  bottom: 0;
  width: 2px;
  height: 2px;
  border-radius: 0.5px;
  opacity: 0.7;
}

@keyframes mascot-idle {
  0%, 88%, 100% { transform: translateY(0) rotate(0deg); }
  92% { transform: translateY(-1px) rotate(-1deg); }
  96% { transform: translateY(0) rotate(1deg); }
}

@keyframes mascot-blink {
  0%, 91.4%, 93%, 100% { opacity: 0; }
  91.8%, 92.5% { opacity: 1; }
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.desktop-nav button,
.footer-grid button {
  border: 0;
  background: transparent;
}

.desktop-nav button {
  position: relative;
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  color: #4f6261;
  font-size: 14px;
  font-weight: 640;
  transition: background 180ms var(--ease), color 180ms var(--ease);
}

.desktop-nav button:hover {
  color: var(--text-primary);
  background: rgba(229, 243, 236, 0.6);
}

.desktop-nav button.is-active {
  color: var(--text-primary);
  background: var(--brand-soft);
}

.desktop-nav button.is-active::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  background: #e9ac35;
  border-radius: 1px;
  transform: rotate(45deg);
  box-shadow: 0 0 0 2px rgba(233, 172, 53, 0.12);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-actions .button {
  min-height: 42px;
  padding-inline: 18px;
  border-radius: 12px;
}

.header-actions .button-primary {
  box-shadow:
    0 1px 1px rgba(4, 92, 70, 0.16),
    0 7px 16px rgba(7, 148, 111, 0.16);
}

.header-login {
  background: rgba(255, 253, 248, 0.68);
  border-color: rgba(187, 176, 157, 0.75);
  box-shadow: 0 1px 2px rgba(18, 52, 58, 0.03);
}

.button,
.icon-button,
.profile-chip,
.filter-button,
.age-pill,
.text-link,
.scene-arrow,
.reader-dot {
  border: 0;
  transition:
    color 180ms var(--ease),
    background 180ms var(--ease),
    border-color 180ms var(--ease),
    box-shadow 180ms var(--ease),
    transform 180ms var(--ease);
}

.button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 720;
  white-space: nowrap;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: var(--shadow-button);
}

.button-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}

.button-primary:active {
  background: var(--brand-active);
  transform: translateY(1px);
  box-shadow: none;
}

.button-secondary {
  color: var(--text-primary);
  background: rgba(255, 253, 248, 0.74);
  border: 1px solid var(--border-strong);
}

.button-secondary:hover,
.button-outline:hover {
  background: var(--surface);
  border-color: #bdb19f;
}

.button-ghost {
  color: var(--text-primary);
  background: transparent;
}

.button-ghost:hover {
  background: var(--background-soft);
}

.button-outline {
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-strong);
}

.button-large {
  min-height: 52px;
  padding-inline: 25px;
  font-size: 15px;
}

.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  color: var(--text-primary);
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--border);
  border-radius: 50%;
}

.icon-button:hover {
  color: var(--brand);
  border-color: var(--brand);
  background: var(--surface);
}

.profile-chip {
  min-height: 48px;
  padding: 5px 10px 5px 5px;
  display: none;
  align-items: center;
  gap: 9px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.is-authenticated .profile-chip {
  display: flex;
}

.is-authenticated .guest-action {
  display: none;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 10px;
  font-weight: 750;
}

.profile-chip-copy {
  display: grid;
}

.profile-chip-copy strong {
  font-size: 13px;
}

.profile-chip-copy small {
  color: var(--text-secondary);
  font-size: 11px;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow-with-line span {
  display: block;
  width: 42px;
  height: 3px;
  margin-bottom: 26px;
  background: var(--brand);
  border-radius: 99px;
}

.hero-section {
  padding: 42px 0 48px;
  overflow: hidden;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(460px, 0.74fr) minmax(620px, 1.26fr);
  gap: clamp(42px, 4vw, 84px);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-left: 0;
}

.hero-copy h1 {
  max-width: 690px;
  margin-bottom: 28px;
  font-size: clamp(58px, 5vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 760;
}

.hero-lead {
  max-width: 530px;
  margin-bottom: 30px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.65;
}

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

.hero-note {
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13px;
}

.hero-note svg {
  width: 18px;
  height: 18px;
  color: var(--brand);
}

.image-frame {
  position: relative;
  overflow: hidden;
  background: var(--background-soft);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame.is-broken img {
  display: none;
}

.image-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--text-secondary);
  background: linear-gradient(145deg, #f3ead7, #e1efe7);
  font-size: 14px;
  font-weight: 650;
  text-align: center;
}

.image-fallback svg {
  width: 34px;
  height: 34px;
  color: var(--brand);
}

.is-broken .image-fallback {
  display: grid;
}

.hero-visual {
  width: 100%;
  max-height: 610px;
  aspect-ratio: 1.52 / 1;
  border-radius: 32px;
  box-shadow: var(--shadow-image);
}

.hero-visual img {
  object-position: center 55%;
}

.hero-question {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 48px);
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 24px rgba(18, 52, 58, 0.1);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 17px;
  line-height: 1.2;
  font-weight: 750;
  white-space: nowrap;
}

.hero-question strong {
  color: var(--brand);
}

.story-facts {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 36px);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 0;
  color: white;
  background: rgba(17, 37, 40, 0.78);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 650;
}

.story-facts span + span::before {
  content: "·";
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.5);
}

.spark {
  position: absolute;
  z-index: 2;
  color: var(--yellow);
  font-size: 20px;
  filter: drop-shadow(0 2px 6px rgba(244, 189, 72, 0.35));
  animation: twinkle 3.6s ease-in-out infinite;
}

.spark-one {
  left: 3%;
  top: 13%;
}

.spark-two {
  right: 4%;
  top: 35%;
  animation-delay: -1.8s;
}

.hero-route {
  position: absolute;
  top: 142px;
  left: 39%;
  z-index: 3;
  width: 170px;
  height: 300px;
  color: rgba(7, 148, 111, 0.22);
  pointer-events: none;
}

.hero-route svg {
  width: 100%;
  height: 100%;
}

.hero-route path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-dasharray: 5 8;
  stroke-linecap: round;
}

.route-spark {
  position: absolute;
  z-index: 1;
  color: var(--yellow);
  font-size: 15px;
  filter: drop-shadow(0 2px 6px rgba(244, 189, 72, 0.32));
}

.route-spark-one {
  top: 38px;
  right: 10px;
}

.route-spark-two {
  left: 4px;
  bottom: 12px;
  font-size: 11px;
}

.hero-guide-mascot {
  position: absolute;
  left: 38%;
  bottom: 54px;
  z-index: 4;
  width: 190px;
  aspect-ratio: 0.78;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.6; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.08); }
}

.benefits {
  position: relative;
  margin-top: 28px;
  padding: 25px 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: visible;
  background: rgba(255, 253, 248, 0.56);
  border: 1px solid rgba(228, 221, 208, 0.64);
  border-radius: 28px;
}

.benefits-mascot {
  position: absolute;
  right: calc((var(--page-padding) * -1) - 38px);
  bottom: -42px;
  z-index: 2;
  width: 126px;
  aspect-ratio: 0.78;
}

.benefits article {
  min-width: 0;
  padding: 2px 24px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.benefits article:first-child {
  padding-left: 0;
}

.benefits article:last-child {
  padding-right: 0;
}

.benefits article + article {
  border-left: 1px solid var(--border);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  display: grid;
  flex: 0 0 56px;
  place-items: center;
  color: var(--brand);
}

.benefit-icon svg {
  width: 21px;
  height: 21px;
}

.benefit-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.benefits h2 {
  margin: 1px 0 6px;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 750;
}

.benefits p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.how-section {
  padding: 34px 0 88px;
}

.how-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(410px, 0.82fr);
  grid-template-areas:
    "heading reader"
    "steps reader"
    "modes reader";
  column-gap: 56px;
  row-gap: 30px;
  align-items: start;
}

.how-intro {
  grid-area: heading;
}

.how-steps {
  grid-area: steps;
}

.how-modes {
  grid-area: modes;
}

.how-reader {
  grid-area: reader;
  width: min(100%, 470px);
  justify-self: end;
}

.section-intro {
  max-width: 820px;
  margin-bottom: 0;
}

.section-intro h2,
.library-heading h2,
.about-grid h2 {
  margin-bottom: 18px;
  font-size: clamp(36px, 3.5vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 720;
}

.section-intro > p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.65;
}

.story-steps {
  position: relative;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

.story-steps::before {
  content: "";
  position: absolute;
  top: 69px;
  left: 9%;
  right: 9%;
  z-index: 0;
  border-top: 1px dashed rgba(7, 148, 111, 0.22);
}

.story-steps li {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 228px;
  padding: 15px;
  background: rgba(255, 253, 248, 0.68);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.step-number {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
}

.step-visual {
  position: relative;
  width: 100%;
  height: 104px;
  margin: 0 0 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.step-visual mascot-asset {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.story-steps h3 {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 750;
}

.story-steps p {
  margin: 7px 0 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

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

.modes-label {
  grid-column: 1 / -1;
  margin: 0 0 1px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 750;
}

.mode-card {
  position: relative;
  min-height: 205px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  border-radius: 24px;
}

.mode-quick {
  background: var(--brand-soft);
}

.mode-quick:has(.quick-mode-mascot[data-state="loaded"]) {
  padding-right: 118px;
}

.quick-mode-mascot {
  position: absolute;
  right: 10px;
  bottom: -6px;
  z-index: 1;
  width: 104px;
  aspect-ratio: 0.78;
}

.mode-personal {
  background: var(--violet-soft);
}

.mode-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.66);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
}

.mode-personal .mode-icon {
  color: var(--violet-text);
}

.mode-badge {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--brand-hover);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mode-personal .mode-badge {
  color: var(--violet-text);
}

.mode-card h3 {
  margin-bottom: 7px;
  font-size: 19px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.mode-card p {
  max-width: 82%;
  margin-bottom: 13px;
  color: #526865;
  font-size: 14px;
  line-height: 1.6;
}

.text-link {
  min-height: 32px;
  margin-top: auto;
  padding: 0;
  color: var(--text-primary);
  background: transparent;
  font-size: 13px;
  font-weight: 750;
}

.text-link:hover {
  color: var(--brand-hover);
}

.hero-photo {
  position: absolute;
  top: 16px;
  right: -8px;
  width: 104px;
  padding: 5px;
  background: white;
  box-shadow: 0 8px 24px rgba(53, 36, 82, 0.14);
  transform: rotate(6deg);
  border-radius: 12px;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center 42%;
  border-radius: 8px;
}

.hero-photo span {
  display: block;
  padding: 6px 2px 2px;
  color: var(--violet-text);
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}

.reader-preview {
  overflow: hidden;
  color: white;
  background: #071824;
  border-radius: 28px;
  box-shadow: var(--shadow-image);
}

.reader-preview > header {
  height: 58px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.reader-preview > header > button:first-child {
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #dbe4e4;
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 650;
}

.reader-preview > header svg {
  width: 17px;
  height: 17px;
}

.icon-button-dark {
  color: white;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
}

.reader-preview-media {
  aspect-ratio: 1.42 / 1;
}

.reader-preview-media img {
  object-position: center 21%;
}

.reader-preview-copy {
  padding: 22px;
}

.reader-preview-copy > p {
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 620;
}

.scene-progress {
  height: 8px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.scene-progress span {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 99px;
}

.scene-progress span.is-active {
  width: 28px;
  background: #57d6ad;
}

.preview-progress {
  height: 3px;
  margin-bottom: 17px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 99px;
}

.preview-progress span {
  display: block;
  height: 100%;
  background: #57d6ad;
}

.preview-controls {
  display: grid;
  grid-template-columns: 40px minmax(80px, 1fr) auto 20px;
  align-items: center;
  gap: 12px;
  color: #a9b6b8;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.preview-controls button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #071824;
  background: white;
  border: 0;
  border-radius: 50%;
}

.preview-controls button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.mini-wave {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.mini-wave i {
  width: 2px;
  height: 10px;
  background: #57d6ad;
  border-radius: 99px;
}

.mini-wave i:nth-child(2n) { height: 20px; }
.mini-wave i:nth-child(3n) { height: 15px; }
.mini-wave i:nth-child(5n) { height: 26px; }

.home-library {
  padding: 0 0 112px;
}

.story-library-section {
  padding: 38px;
  background: rgba(255, 253, 248, 0.66);
  border: 1px solid rgba(228, 221, 208, 0.65);
  border-radius: 30px;
}

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

.library-heading h2 {
  margin-bottom: 0;
}

.featured-toolbar {
  margin: 30px 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.filter-scroll {
  display: flex;
  align-items: center;
  gap: 7px;
}

.filter-button,
.age-pill {
  min-height: 42px;
  padding: 0 16px;
  color: var(--text-primary);
  background: var(--background-soft);
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.filter-button:hover {
  background: var(--brand-soft);
}

.filter-button.is-active {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.age-pill {
  background: var(--surface);
  border-color: var(--border);
}

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

.story-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}

.story-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--border-strong);
}

.story-open {
  width: 100%;
  padding: 0;
  display: block;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
}

.story-media {
  position: relative;
  aspect-ratio: 1.25 / 1;
  overflow: hidden;
  background: var(--background-soft);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
  transition: transform 300ms var(--ease);
}

.story-card[data-story-card="fish"] .story-media img,
.story-card[data-story-card="airplane"] .story-media img,
.story-card[data-story-card="puddle"] .story-media img,
.story-card[data-story-card="ship"] .story-media img {
  object-position: center top;
}

.story-card:hover .story-media img {
  transform: scale(1.025);
}

.story-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  color: #715316;
  background: rgba(255, 247, 222, 0.94);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.favorite-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 40px;
  height: 40px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.88);
  border: 0;
  border-radius: 50%;
  backdrop-filter: blur(8px);
}

.favorite-button svg {
  margin: auto;
}

.favorite-button.is-active {
  color: var(--brand);
}

.favorite-button.is-active svg,
[data-reader-favorite].is-active svg {
  fill: currentColor;
}

.story-card-copy {
  padding: 16px 16px 18px;
}

.story-card-copy h3 {
  min-height: 40px;
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 750;
}

.story-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.story-meta span + span::before {
  content: "·";
  margin-right: 6px;
  color: var(--text-tertiary);
}

.library-footer-action {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

.about-section {
  padding: 0 0 92px;
  background: transparent;
  border: 0;
}

.about-grid {
  padding: 52px 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 38px 72px;
  align-items: end;
  background: #edf5f0;
  border: 1px solid rgba(7, 148, 111, 0.08);
  border-radius: 30px;
}

.about-grid h2 {
  margin: 0;
  max-width: 780px;
}

.about-grid > p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.7;
}

.about-grid .button {
  width: max-content;
}

.app-page {
  padding-top: 72px;
  padding-bottom: 108px;
}

.page-header {
  margin-bottom: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
}

.page-header h1,
.pricing-header h1,
.profile-header h1 {
  margin-bottom: 14px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.page-header > div > p:last-child,
.pricing-header > p,
.profile-header p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.6;
}

.search-field {
  width: min(100%, 420px);
  min-height: 54px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
}

.search-field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(7, 148, 111, 0.12);
}

.search-field svg {
  flex: 0 0 20px;
  color: var(--text-secondary);
}

.search-field input {
  min-width: 0;
  flex: 1;
  color: var(--text-primary);
  background: transparent;
  border: 0;
  outline: 0;
}

.search-field input::placeholder {
  color: var(--text-tertiary);
}

.filter-panel {
  margin-bottom: 48px;
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 24px;
  align-items: end;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.filter-group {
  min-width: 0;
}

.filter-group > span,
.age-select > span {
  display: block;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.age-select select,
.setting-row input,
.setting-row select,
.detail-controls select {
  min-height: 44px;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
}

.age-select select {
  min-width: 150px;
  padding: 0 34px 0 12px;
}

.library-results-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.library-results-heading h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.03em;
}

.library-results-heading span {
  color: var(--text-tertiary);
  font-size: 13px;
}

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

.empty-state {
  min-height: 360px;
  padding: 48px 24px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  background: rgba(255, 253, 248, 0.62);
  border: 1px dashed var(--border-strong);
  border-radius: 24px;
}

.empty-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--brand-soft);
  border-radius: 50%;
}

.empty-state h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.empty-state p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.story-skeleton {
  height: 300px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.story-skeleton::before,
.story-skeleton::after {
  content: "";
  display: block;
  background: linear-gradient(90deg, #eee8dd 20%, #f8f4eb 50%, #eee8dd 80%);
  background-size: 200% 100%;
  animation: skeleton 1.2s linear infinite;
}

.story-skeleton::before { height: 190px; }
.story-skeleton::after { width: 72%; height: 18px; margin: 22px 16px; border-radius: 4px; }

@keyframes skeleton {
  to { background-position: -200% 0; }
}

.reader-shell {
  min-height: 100vh;
  padding: 18px 30px 40px;
}

.reader-header {
  width: min(100%, 1500px);
  min-height: 64px;
  margin: 0 auto 18px;
  padding: 0 6px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.reader-back {
  justify-self: start;
}

.reader-heading {
  display: grid;
  gap: 3px;
  text-align: center;
}

.reader-heading strong {
  max-width: 520px;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reader-heading span {
  color: var(--text-secondary);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.reader-header-actions {
  justify-self: end;
  display: flex;
  gap: 8px;
}

.reader-layout {
  width: min(100%, 1500px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}

.reader-main,
.reader-sidebar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
}

.reader-main {
  padding: 18px 18px 22px;
}

.reader-mode-switch {
  width: max-content;
  margin: 0 auto 16px;
  padding: 4px;
  display: flex;
  background: var(--background-soft);
  border-radius: 12px;
}

.reader-mode-switch button {
  min-height: 38px;
  padding: 0 16px;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
}

.reader-mode-switch button.is-active {
  color: var(--text-primary);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(18, 52, 58, 0.07);
}

.reader-scene {
  max-width: 820px;
  aspect-ratio: 1.52 / 1;
  margin-inline: auto;
  border-radius: 24px;
  background: #dce6df;
}

.reader-scene img {
  object-position: center 20%;
}

.reader-scene[data-story="bees"],
.reader-scene[data-story="stars"],
.reader-scene[data-story="volcano"] {
  width: min(100%, 650px);
  max-height: none;
  aspect-ratio: 1122 / 1402;
  background: #f4efe6;
}

.reader-scene[data-story="bees"] img,
.reader-scene[data-story="stars"] img,
.reader-scene[data-story="volcano"] img {
  object-fit: contain;
  object-position: center;
}

.reader-scene.turning img {
  animation: scene-turn 260ms var(--ease);
}

@keyframes scene-turn {
  from { opacity: 0.35; transform: scale(0.985); }
  to { opacity: 1; transform: none; }
}

.scene-arrow {
  position: absolute;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(18, 52, 58, 0.14);
  transform: translateY(-50%);
}

.scene-arrow:hover {
  color: var(--brand);
  transform: translateY(-50%) scale(1.03);
}

.scene-prev { left: 16px; }
.scene-next { right: 16px; }

.scene-copy {
  max-width: 820px;
  min-height: 104px;
  margin: 0 auto;
  padding: 22px 8px 10px;
}

.scene-copy p {
  margin: 0;
  font-size: 20px;
  line-height: 1.55;
  letter-spacing: -0.015em;
  font-weight: 570;
}

.audio-player {
  max-width: 820px;
  min-height: 76px;
  margin: 10px auto 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 14px;
  background: #102d32;
  border-radius: 18px;
}

.audio-play {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #0a3930;
  background: #fff;
  border: 0;
  border-radius: 50%;
}

.audio-play svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.audio-play.is-playing svg {
  fill: none;
}

.audio-track {
  min-width: 0;
}

.audio-meta {
  margin-bottom: 9px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #d6e2e1;
  font-size: 11px;
}

.audio-meta strong {
  font-weight: 650;
}

.audio-meta span {
  color: #8fa4a5;
  font-variant-numeric: tabular-nums;
}

.audio-track input {
  width: 100%;
  height: 4px;
  display: block;
  accent-color: #57d6ad;
}

.audio-speed {
  min-width: 42px;
  min-height: 36px;
  color: #d6e2e1;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
  border-radius: 9px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.volume-button {
  color: #d6e2e1;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
}

.reader-navigation {
  max-width: 820px;
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
}

.reader-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.reader-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: var(--border-strong);
  border-radius: 50%;
}

.reader-dot.is-active {
  width: 26px;
  background: var(--brand);
  border-radius: 99px;
}

.reader-sidebar {
  padding: 24px;
}

.sidebar-progress > span,
.sidebar-progress > strong {
  font-size: 12px;
}

.sidebar-progress {
  margin-bottom: 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.sidebar-progress > span {
  color: var(--text-secondary);
}

.sidebar-progress > div {
  grid-column: 1 / -1;
  height: 6px;
  overflow: hidden;
  background: var(--background-soft);
  border-radius: 99px;
}

.sidebar-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand);
  border-radius: inherit;
  transition: width 220ms var(--ease);
}

.scene-list-wrap h2,
.discovery-card h2 {
  margin-bottom: 14px;
  font-size: 15px;
}

.scene-list {
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 5px;
  list-style: none;
}

.scene-list button {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 12px;
}

.scene-list button span:first-child {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  background: var(--background-soft);
  border-radius: 50%;
  font-variant-numeric: tabular-nums;
}

.scene-list button.is-active {
  color: var(--text-primary);
  background: var(--brand-softer);
  font-weight: 700;
}

.scene-list button.is-active span:first-child {
  color: white;
  background: var(--brand);
}

.discovery-card {
  padding: 16px;
  display: flex;
  gap: 12px;
  background: var(--yellow-soft);
  border-radius: 16px;
}

.discovery-card .benefit-icon {
  color: #9a6a17;
  background: rgba(255, 255, 255, 0.64);
}

.discovery-card h2 {
  margin: 2px 0 6px;
}

.discovery-card p {
  margin: 0;
  color: #6f6248;
  font-size: 12px;
  line-height: 1.55;
}

.auto-turn {
  margin-top: 20px;
  padding-top: 20px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
}

.auto-turn span {
  display: grid;
  gap: 3px;
}

.auto-turn strong {
  font-size: 12px;
}

.auto-turn small {
  color: var(--text-secondary);
  font-size: 10px;
}

.auto-turn input {
  position: absolute;
  opacity: 0;
}

.auto-turn i {
  position: relative;
  width: 42px;
  height: 24px;
  background: var(--border-strong);
  border-radius: 99px;
  transition: background 180ms var(--ease);
}

.auto-turn i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform 180ms var(--ease);
}

.auto-turn input:checked + i {
  background: var(--brand);
}

.auto-turn input:checked + i::after {
  transform: translateX(18px);
}

.auto-turn input:focus-visible + i {
  outline: 3px solid rgba(7, 148, 111, 0.25);
  outline-offset: 3px;
}

.reader-finish {
  width: min(calc(100% - 32px), 760px);
  margin: 48px auto;
  padding: 48px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.finish-star {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  color: #8b651b;
  background: var(--yellow-soft);
  border-radius: 50%;
  font-size: 32px;
}

.reader-finish h2 {
  margin-bottom: 14px;
  font-size: 40px;
  letter-spacing: -0.045em;
}

.reader-finish > p:not(.eyebrow) {
  max-width: 590px;
  margin: 0 auto 28px;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.65;
}

.reader-finish article {
  margin: 0 auto 28px;
  padding: 22px;
  background: var(--brand-softer);
  border-radius: 18px;
}

.reader-finish article span {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reader-finish article h3 {
  margin: 10px 0 0;
  font-size: 20px;
  line-height: 1.45;
}

.finish-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

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

.saved-story {
  min-height: 118px;
  padding: 12px;
  display: grid;
  grid-template-columns: 94px 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.saved-thumb {
  height: 92px;
  overflow: hidden;
  border-radius: 12px;
}

.saved-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
}

.saved-copy {
  display: grid;
  gap: 5px;
}

.saved-copy span {
  color: var(--text-secondary);
  font-size: 12px;
}

.saved-actions {
  display: flex;
  gap: 8px;
}

.offline-summary {
  max-width: 620px;
  margin-top: 32px;
  padding: 22px;
  background: var(--brand-softer);
  border-radius: 18px;
}

.offline-summary > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.storage-track {
  height: 6px;
  margin: 14px 0 10px;
  overflow: hidden;
  background: rgba(7, 148, 111, 0.14);
  border-radius: 99px;
}

.storage-track span {
  display: block;
  height: 100%;
  background: var(--brand);
}

.offline-summary small {
  color: var(--text-secondary);
}

.profile-header {
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.profile-header h1 {
  margin: 0;
}

.profile-photo {
  width: 90px;
  height: 90px;
  display: grid;
  flex: 0 0 90px;
  place-items: center;
  color: white;
  background: var(--brand);
  border-radius: 28px;
  font-size: 36px;
  font-weight: 750;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: start;
}

.profile-main,
.plan-panel {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
}

.settings-section + .settings-section {
  margin-top: 34px;
}

.settings-heading h2 {
  margin-bottom: 6px;
  font-size: 22px;
}

.settings-heading p {
  color: var(--text-secondary);
  font-size: 13px;
}

.interest-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.interest-pill {
  min-height: 42px;
  padding: 0 16px;
  color: var(--text-primary);
  background: var(--background-soft);
  border: 1px solid transparent;
  border-radius: 999px;
}

.interest-pill.is-active {
  color: white;
  background: var(--brand);
}

.settings-list {
  display: grid;
  gap: 0;
}

.setting-row,
.detail-controls label {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr minmax(140px, 220px);
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--border);
}

.setting-row > span,
.detail-controls label > span {
  display: grid;
  gap: 4px;
}

.setting-row small,
.detail-controls small {
  color: var(--text-secondary);
  font-size: 11px;
}

.setting-row input[type="text"],
.setting-row select,
.detail-controls select {
  width: 100%;
  padding: 0 12px;
}

.setting-row input[type="checkbox"],
.detail-controls input[type="checkbox"] {
  justify-self: end;
  width: 22px;
  height: 22px;
  accent-color: var(--brand);
}

.profile-main > .button {
  margin-top: 28px;
}

.plan-panel {
  position: sticky;
  top: 110px;
  background: var(--brand-softer);
}

.plan-panel h2 {
  margin-bottom: 10px;
  font-size: 30px;
}

.plan-panel > p:not(.eyebrow) {
  color: var(--text-secondary);
  line-height: 1.6;
}

.pricing-header {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.billing-toggle {
  width: max-content;
  margin: 26px auto 0;
  padding: 4px;
  display: flex;
  background: var(--background-soft);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.billing-toggle button {
  min-height: 42px;
  padding: 0 18px;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.billing-toggle button.is-active {
  color: var(--text-primary);
  background: var(--surface);
  box-shadow: 0 2px 8px rgba(18, 52, 58, 0.07);
}

.billing-toggle span {
  color: var(--brand);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  padding: 30px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
}

.plan-card.is-recommended {
  border-color: var(--brand);
  box-shadow: 0 16px 38px rgba(7, 148, 111, 0.11);
}

.recommendation {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 9px;
  color: var(--brand-hover);
  background: var(--brand-soft);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-name {
  margin-bottom: 4px;
  font-size: 22px;
  font-weight: 750;
}

.plan-audience {
  color: var(--text-secondary);
  font-size: 13px;
}

.plan-price {
  margin: 26px 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-price strong {
  font-size: 40px;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}

.plan-price span {
  color: var(--text-secondary);
  font-size: 12px;
}

.plan-card ul {
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
  list-style: none;
  color: var(--text-secondary);
  font-size: 13px;
}

.plan-card li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--brand);
  font-weight: 800;
}

.plan-card .button {
  width: 100%;
  margin-top: auto;
}

.create-page {
  max-width: 1040px;
}

.stepper {
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
}

.stepper li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--text-tertiary);
  font-size: 11px;
}

.stepper li::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 0;
  width: 100%;
  border-top: 1px solid var(--border-strong);
}

.stepper span {
  position: relative;
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--background);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
}

.stepper li.is-active,
.stepper li.is-complete {
  color: var(--text-primary);
}

.stepper li.is-active span,
.stepper li.is-complete span {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}

.wizard-shell {
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
}

.wizard-step > h2 {
  margin-bottom: 10px;
  font-size: 34px;
  letter-spacing: -0.04em;
}

.wizard-step > p:not(.eyebrow) {
  color: var(--text-secondary);
}

.topic-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.topic-button,
.choice-card {
  min-height: 110px;
  padding: 18px;
  display: grid;
  gap: 8px;
  justify-items: start;
  text-align: left;
  background: var(--background-soft);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.topic-button.is-selected,
.choice-card.is-selected {
  background: var(--brand-softer);
  border-color: var(--brand);
}

.topic-symbol {
  color: var(--brand);
}

.hero-options {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.choice-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--brand);
  border-radius: 14px;
}

.choice-card small {
  color: var(--text-secondary);
}

.detail-controls {
  margin-top: 24px;
}

.story-summary {
  margin: 28px 0 0;
}

.story-summary > div {
  min-height: 58px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border-top: 1px solid var(--border);
}

.story-summary dt {
  color: var(--text-secondary);
}

.story-summary dd {
  margin: 0;
  font-weight: 700;
}

.wizard-actions {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
}

.site-footer {
  padding: 64px 0 24px;
  background: #f1ebdf;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
}

.footer-grid > div {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 11px;
}

.footer-grid strong {
  margin-bottom: 5px;
  font-size: 13px;
}

.footer-grid button,
.footer-grid span,
.footer-grid p {
  margin: 0;
  padding: 0;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.6;
}

.footer-grid button:hover {
  color: var(--brand);
}

.footer-brand p {
  max-width: 260px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-strong);
  font-size: 11px;
}

.mobile-bottom-nav {
  display: none;
}

.auth-dialog {
  width: min(calc(100% - 32px), 460px);
  padding: 34px;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 24px 80px rgba(18, 52, 58, 0.22);
}

.auth-dialog::backdrop {
  background: rgba(10, 28, 30, 0.48);
  backdrop-filter: blur(6px);
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.auth-dialog h2 {
  margin-bottom: 10px;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.auth-dialog > p:not(.eyebrow) {
  color: var(--text-secondary);
  line-height: 1.6;
}

.auth-dialog form {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.auth-dialog label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}

.auth-dialog input {
  min-height: 50px;
  padding: 0 14px;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 11px;
}

.auth-dialog form .button {
  margin-top: 6px;
}

.auth-dialog > .button-ghost {
  width: 100%;
  margin-top: 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  color: white;
  background: #12343a;
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(18, 52, 58, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  font-size: 13px;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1240px) {
  :root {
    --page-padding: 24px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 0.86fr) minmax(500px, 1.14fr);
    gap: 42px;
  }

  .hero-copy {
    padding-left: 0;
  }

  .benefits {
    padding-inline: 24px;
  }

  .benefits article {
    padding-inline: 16px;
  }

  .benefits-mascot {
    right: -52px;
    width: 88px;
  }

  .how-layout {
    grid-template-columns: minmax(0, 1.34fr) minmax(390px, 0.78fr);
    column-gap: 36px;
  }

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

  .featured-grid .story-card:nth-child(5) {
    display: none;
  }

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

  .filter-panel .filter-group:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1279px) {
  .hero-route {
    display: none;
  }

  .hero-guide-mascot {
    left: 36%;
    width: 152px;
  }
}

@media (max-width: 900px) {
  .benefits-mascot,
  .hero-guide-mascot {
    display: none;
  }
}

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual {
    width: min(100%, 840px);
  }

  .hero-route,
  .hero-guide-mascot {
    display: none;
  }

  /* Keep the existing library toolbar inside the viewport at the 1024px QA breakpoint. */
  .featured-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-toolbar > .filter-scroll {
    width: 100%;
    padding-bottom: 4px;
    overflow-x: auto;
  }
}

@media (max-width: 1023px) {
  .site-header {
    height: 76px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-actions > .button {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .mobile-menu {
    position: absolute;
    top: 76px;
    left: 24px;
    right: 24px;
    padding: 14px;
    display: grid;
    gap: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(18, 52, 58, 0.14);
  }

  .mobile-menu button:not(.button) {
    min-height: 48px;
    padding: 0 12px;
    text-align: left;
    background: transparent;
    border: 0;
    border-radius: 10px;
  }

  .mobile-menu button.is-active:not(.button) {
    color: var(--text-primary);
    background: var(--brand-soft);
  }

  .mobile-menu .button {
    width: 100%;
    min-height: 46px;
    margin-top: 4px;
  }

  .mobile-menu .button-secondary {
    border: 1px solid var(--border-strong);
  }

  .hero-section {
    padding-top: 50px;
  }

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

  .benefits article {
    padding: 20px;
    border-left: 0 !important;
  }

  .benefits article:nth-child(2n) {
    border-left: 1px solid var(--border) !important;
  }

  .benefits article:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

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

  .story-steps::before {
    display: none;
  }

  .how-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "steps"
      "modes"
      "reader";
    row-gap: 32px;
  }

  .how-reader {
    width: min(100%, 720px);
    justify-self: start;
  }

  .featured-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .featured-toolbar > .filter-scroll {
    width: 100%;
    padding-bottom: 4px;
    overflow-x: auto;
  }

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

  .featured-grid .story-card:nth-child(4) {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    padding: 44px;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-field {
    width: 100%;
    max-width: 100%;
  }

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

  .filter-panel .filter-group:first-child {
    grid-column: auto;
  }

  .filter-panel .filter-scroll {
    padding-bottom: 5px;
    overflow-x: auto;
  }

  .reader-layout {
    grid-template-columns: 1fr;
  }

  .reader-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
  }

  .scene-list-wrap {
    grid-row: span 2;
  }

  .profile-layout {
    grid-template-columns: 1fr;
  }

  .plan-panel {
    position: static;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin-inline: auto;
  }

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

  .footer-grid > div:last-child {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --page-padding: 16px;
  }

  body {
    padding-bottom: 76px;
  }

  body.is-reading {
    padding-bottom: 0;
  }

  .site-header {
    height: 72px;
  }

  .site-header .brand-mark {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .site-header .logo-mascot::after {
    top: 27px;
    left: 14px;
    width: 6px;
    height: 4px;
    box-shadow: 11px 0 #071c36;
  }

  .mobile-menu {
    top: 72px;
    left: 16px;
    right: 16px;
  }

  .hero-section {
    padding: 40px 0 34px;
  }

  .hero-copy h1 {
    margin-bottom: 22px;
    font-size: 42px;
    line-height: 1;
  }

  .eyebrow-with-line span {
    margin-bottom: 22px;
  }

  .hero-lead {
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.62;
  }

  .hero-actions {
    display: grid;
  }

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

  .hero-note {
    align-items: flex-start;
    font-size: 12px;
    line-height: 1.45;
  }

  .hero-visual {
    aspect-ratio: 4 / 5;
    border-radius: 24px;
  }

  .hero-visual img {
    object-position: center;
  }

  .hero-question {
    top: 16px;
    max-width: calc(100% - 32px);
    padding: 11px 16px;
    font-size: 15px;
    white-space: normal;
    text-align: center;
  }

  .story-facts {
    bottom: 14px;
    padding: 10px 13px;
    font-size: 10px;
  }

  .story-facts span:nth-child(2) {
    display: none;
  }

  .benefits {
    margin-top: 20px;
    padding: 10px 18px;
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .benefits article {
    padding: 16px 0;
    border-left: 0 !important;
  }

  .benefits article:nth-child(2n) {
    border-left: 0 !important;
  }

  .benefits article + article {
    border-top: 1px solid var(--border);
  }

  .how-section {
    padding: 54px 0 68px;
  }

  .section-intro {
    margin-bottom: 28px;
  }

  .section-intro h2,
  .library-heading h2,
  .about-grid h2 {
    font-size: 36px;
  }

  .section-intro > p:last-child,
  .about-grid > p {
    font-size: 15px;
  }

  .story-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .story-steps li {
    min-height: 126px;
    padding: 20px 18px 20px 118px;
  }

  .step-number {
    top: 12px;
    left: 12px;
  }

  .step-visual {
    position: absolute;
    top: 28px;
    left: 18px;
    width: 78px;
    height: 78px;
    margin: 0;
    border-width: 4px;
  }

  .story-modes {
    grid-template-columns: 1fr;
  }

  .mode-card {
    min-height: 225px;
    padding: 22px;
  }

  .quick-mode-mascot {
    display: none;
  }

  .mode-quick:has(.quick-mode-mascot[data-state="loaded"]) {
    padding-right: 22px;
  }

  .reader-preview {
    border-radius: 22px;
  }

  .reader-preview-copy {
    padding: 20px;
  }

  .reader-preview-copy > p {
    font-size: 16px;
  }

  .home-library {
    padding-bottom: 72px;
  }

  .story-library-section {
    width: calc(100% - 24px);
    padding: 26px 18px;
    border-radius: 24px;
  }

  .library-heading {
    align-items: flex-start;
  }

  .desktop-only {
    display: none;
  }

  .featured-toolbar {
    margin: 24px 0 18px;
  }

  .filter-scroll {
    width: 100%;
    padding-bottom: 5px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filter-scroll::-webkit-scrollbar {
    display: none;
  }

  .story-grid,
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .featured-grid .story-card:nth-child(4) {
    display: block;
  }

  .story-card-copy {
    padding: 13px 12px 15px;
  }

  .story-card-copy h3 {
    min-height: 52px;
    font-size: 14px;
  }

  .story-badge {
    top: 8px;
    left: 8px;
  }

  .favorite-button {
    top: 6px;
    right: 6px;
    width: 38px;
    height: 38px;
  }

  .about-section {
    padding: 0 0 68px;
  }

  .about-grid {
    padding: 32px 24px;
    border-radius: 24px;
  }

  .app-page {
    padding-top: 48px;
    padding-bottom: 72px;
  }

  .page-header {
    margin-bottom: 28px;
    gap: 24px;
  }

  .page-header h1,
  .pricing-header h1,
  .profile-header h1 {
    font-size: 42px;
  }

  .page-header > div > p:last-child {
    font-size: 15px;
  }

  .filter-panel {
    margin-bottom: 34px;
    padding: 18px;
    border-radius: 18px;
  }

  .reader-shell {
    padding: 8px 10px 120px;
  }

  .reader-header {
    min-height: 58px;
    margin-bottom: 8px;
    grid-template-columns: auto 1fr auto;
    gap: 8px;
  }

  .reader-back {
    width: 44px;
    padding: 0;
    font-size: 0;
  }

  .reader-heading {
    min-width: 0;
  }

  .reader-heading strong {
    max-width: clamp(150px, 54vw, 220px);
  }

  .reader-header-actions .icon-button:last-child {
    display: none;
  }

  .reader-main {
    padding: 10px 10px 16px;
    border-radius: 20px;
  }

  .reader-mode-switch {
    margin-bottom: 10px;
  }

  .reader-scene {
    aspect-ratio: 4 / 5;
    border-radius: 17px;
  }

  .reader-scene img {
    object-position: center 18%;
  }

  .scene-arrow {
    display: none;
  }

  .scene-copy {
    min-height: 125px;
    padding: 18px 8px 8px;
  }

  .scene-copy p {
    font-size: 18px;
    line-height: 1.55;
  }

  .audio-player {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 40;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    border-radius: 17px;
    box-shadow: 0 12px 34px rgba(7, 24, 36, 0.28);
  }

  .volume-button {
    display: none;
  }

  .reader-navigation {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .reader-navigation .button {
    width: 100%;
    padding-inline: 12px;
  }

  .reader-dots {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 6px;
  }

  .reader-sidebar {
    padding: 20px;
    display: block;
    border-radius: 20px;
  }

  .scene-list-wrap {
    display: none;
  }

  .discovery-card {
    margin-top: 20px;
  }

  .reader-finish {
    margin: 28px auto 120px;
    padding: 34px 20px;
  }

  .reader-finish h2 {
    font-size: 34px;
  }

  .finish-actions {
    display: grid;
  }

  .saved-story {
    grid-template-columns: 76px 1fr;
  }

  .saved-thumb {
    height: 86px;
  }

  .saved-actions {
    grid-column: 1 / -1;
  }

  .profile-header {
    align-items: flex-start;
  }

  .profile-photo {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
    border-radius: 20px;
    font-size: 26px;
  }

  .profile-main,
  .plan-panel {
    padding: 22px;
  }

  .setting-row,
  .detail-controls label {
    padding: 14px 0;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .setting-row input[type="checkbox"],
  .detail-controls input[type="checkbox"] {
    justify-self: start;
  }

  .plan-card {
    padding: 24px;
  }

  .wizard-shell {
    padding: 24px 18px;
  }

  .topic-grid,
  .hero-options {
    grid-template-columns: 1fr;
  }

  .stepper small {
    display: none;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 8px;
    z-index: 45;
    min-height: 66px;
    padding: 7px 8px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: rgba(255, 253, 248, 0.95);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 14px 38px rgba(18, 52, 58, 0.15);
    backdrop-filter: blur(14px);
  }

  .mobile-bottom-nav button {
    min-width: 0;
    min-height: 50px;
    padding: 4px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    color: var(--text-secondary);
    background: transparent;
    border: 0;
    border-radius: 12px;
    font-size: 9px;
  }

  .mobile-bottom-nav button.is-active {
    color: var(--brand);
    background: var(--brand-softer);
  }

  .mobile-bottom-nav svg {
    width: 20px;
    height: 20px;
  }

  .mobile-bottom-nav .mobile-create {
    color: white;
    background: var(--brand);
  }

  .mobile-create > span {
    font-size: 24px;
    line-height: 16px;
  }

  .mobile-create small {
    font-size: 9px;
  }

  .toast {
    bottom: 88px;
  }
}

@media (max-width: 390px) {
  .story-grid,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .featured-grid .story-card:nth-child(n + 4) {
    display: none;
  }

  .story-card-copy h3 {
    min-height: auto;
    font-size: 16px;
  }

  .story-media {
    aspect-ratio: 1.35 / 1;
  }

  .preview-controls {
    grid-template-columns: 40px 1fr auto;
  }

  .preview-controls > svg {
    display: none;
  }

  .audio-speed {
    display: none;
  }

  .audio-player {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .reader-heading strong {
    max-width: 170px;
  }

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

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

/* Story reader and completion flow v32 */

body.is-reading {
  --reader-page: #ffffff;
  --reader-navy: #062a61;
  --reader-navy-hover: #0a356f;
  --reader-orange: #ff6a00;
  --reader-orange-hover: #ea6000;
  --reader-blue: #2f80ed;
  --reader-blue-soft: #eaf4ff;
  --reader-green: #0c8f73;
  --reader-green-soft: #e5f5ef;
  --reader-yellow: #ffb21a;
  --reader-violet: #7055d9;
  --reader-muted: #62758f;
  --reader-line: #e2eaf3;
  --reader-dark: #06162f;
  --reader-dark-2: #102e57;
  --reader-shadow-card: 0 10px 30px rgba(21, 58, 96, 0.08);
  --reader-shadow-floating: 0 20px 60px rgba(21, 58, 96, 0.14);
  padding-bottom: 0;
  color: var(--reader-navy);
  background: #f7fafd;
  font-family: "Onest", "Manrope", "Avenir Next", system-ui, sans-serif;
}

body.is-reading .site-header,
body.is-reading .site-header.is-scrolled {
  display: block;
  height: 78px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(226, 234, 243, 0.82);
  box-shadow: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

body.is-reading .header-inner {
  width: min(calc(100% - 64px), 1480px);
  max-width: 1480px;
  height: 78px;
  padding-inline: 0;
}

body.is-reading .home-brand {
  transform: translateY(7px);
}

body.is-reading .home-logo {
  width: 148px;
}

body.is-reading .header-nav__link {
  font-weight: 500;
}

body.is-reading .site-footer,
body.is-reading .mobile-bottom-nav {
  display: none;
}

body.has-immersive-reader,
body.has-reader-map {
  overflow: hidden;
}

.reader-shell {
  min-height: calc(100vh - 78px);
  padding: 18px 32px 64px;
}

.reader-header {
  width: min(100%, 1480px);
  min-height: 60px;
  margin: 0 auto 18px;
  padding: 0;
  grid-template-columns: 1fr minmax(260px, auto) 1fr;
}

.reader-back {
  min-height: 42px;
  padding-inline: 10px 14px;
  color: var(--reader-navy);
  font-size: 13px;
  font-weight: 500;
}

.reader-heading {
  gap: 4px;
}

.reader-heading strong {
  color: var(--reader-navy);
  font-size: 15px;
  font-weight: 600;
}

.reader-heading span {
  color: var(--reader-muted);
  font-size: 12px;
}

.reader-header-actions .icon-button {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
  color: var(--reader-navy);
  background: #fff;
  border: 1px solid var(--reader-line);
  border-radius: 13px;
}

.reader-header-actions [data-reader-favorite] {
  color: #e95663;
}

.reader-layout {
  width: min(100%, 1480px);
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.reader-main {
  min-width: 0;
  padding: 18px 84px 28px;
  background: #fff;
  border: 1px solid var(--reader-line);
  border-radius: 24px;
  box-shadow: var(--reader-shadow-card);
}

.reader-mode-switch {
  margin-bottom: 18px;
  padding: 4px;
  background: var(--reader-blue-soft);
  border-radius: 13px;
}

.reader-mode-switch button {
  min-height: 40px;
  gap: 8px;
  display: inline-flex;
  align-items: center;
  color: var(--reader-muted);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 500;
}

.reader-mode-switch button svg {
  width: 17px;
  height: 17px;
}

.reader-mode-switch button.is-active {
  color: var(--reader-navy);
  background: #fff;
  box-shadow: 0 3px 10px rgba(21, 58, 96, 0.09);
}

.reader-scene,
.reader-scene[data-story] {
  width: auto;
  max-width: 100%;
  height: min(68vh, 820px);
  max-height: min(68vh, 820px);
  aspect-ratio: 1122 / 1402;
  margin-inline: auto;
  overflow: visible;
  background: #edf3f8;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(21, 58, 96, 0.15);
}

.reader-scene img,
.reader-scene[data-story] img {
  position: relative;
  z-index: 2;
  width: auto;
  height: 100%;
  max-width: 100%;
  margin-inline: auto;
  object-fit: contain;
  object-position: center;
  border-radius: 18px;
}

.reader-page-skeleton {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: none;
  overflow: hidden;
  background: linear-gradient(100deg, #eaf0f6 30%, #f7fafd 50%, #eaf0f6 70%);
  background-size: 220% 100%;
  border-radius: inherit;
  animation: reader-skeleton 1.25s linear infinite;
}

.reader-scene.is-loading .reader-page-skeleton {
  display: block;
}

.reader-scene.is-loading img {
  opacity: 0;
}

@keyframes reader-skeleton {
  to { background-position: -220% 0; }
}

.reader-scene .image-fallback {
  z-index: 4;
  color: var(--reader-muted);
  background: #f4f8fc;
  border-radius: inherit;
}

.reader-scene .image-fallback strong {
  color: var(--reader-navy);
  font-size: 16px;
  font-weight: 600;
}

.reader-scene .image-fallback .button {
  min-height: 40px;
}

.scene-arrow {
  z-index: 5;
  width: 48px;
  height: 48px;
  color: var(--reader-navy);
  background: #fff;
  border: 1px solid var(--reader-line);
  box-shadow: 0 10px 28px rgba(21, 58, 96, 0.16);
}

.scene-arrow:hover {
  color: var(--reader-orange);
}

.scene-prev {
  left: -66px;
}

.scene-next {
  right: -66px;
}

.audio-player {
  max-width: 900px;
  min-height: 70px;
  margin-top: 18px;
  grid-template-columns: 46px minmax(0, 1fr) auto 40px 40px;
  gap: 12px;
  color: #fff;
  background: var(--reader-dark-2);
  border-radius: 17px;
}

.audio-play {
  width: 46px;
  height: 46px;
  color: var(--reader-navy);
}

.audio-meta {
  color: #eaf4ff;
}

.audio-meta strong {
  font-weight: 500;
}

.audio-meta span {
  color: #adc1da;
}

.audio-track input,
.immersive-mini-player input {
  accent-color: var(--reader-orange);
}

.audio-speed {
  color: #fff;
}

.audio-restart,
.volume-button {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 0;
}

.audio-restart svg {
  transform: rotate(45deg);
}

.volume-button.is-muted {
  color: #ffb5bc;
}

.audio-error {
  max-width: 900px;
  margin: 8px auto 0;
  color: #b6424d;
  font-size: 12px;
}

.reader-navigation {
  max-width: 900px;
  margin-top: 18px;
  grid-template-columns: auto minmax(180px, 1fr) auto;
}

.reader-navigation .button {
  min-height: 44px;
  border-radius: 13px;
  font-weight: 500;
}

.reader-navigation .button-primary {
  color: #fff;
  background: var(--reader-orange);
  box-shadow: none;
}

.reader-navigation .button-primary:hover {
  background: var(--reader-orange-hover);
}

.reader-navigation-center {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 9px;
}

.reader-map-button {
  padding: 0;
  color: var(--reader-blue);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 500;
}

.reader-dot {
  background: #c9d5e3;
}

.reader-dot.is-active {
  background: var(--reader-orange);
}

.reader-sidebar {
  position: sticky;
  top: 96px;
  padding: 22px;
  color: var(--reader-navy);
  background: #fff;
  border: 1px solid var(--reader-line);
  border-radius: 20px;
  box-shadow: var(--reader-shadow-card);
}

.reader-sidebar-header {
  display: none;
}

.sidebar-progress > span {
  color: var(--reader-muted);
}

.sidebar-progress > strong,
.scene-list-wrap h2,
.discovery-card h2 {
  color: var(--reader-navy);
  font-weight: 600;
}

.sidebar-progress > div {
  background: var(--reader-blue-soft);
}

.sidebar-progress i {
  background: var(--reader-orange);
}

.scene-list button {
  color: var(--reader-muted);
  font-weight: 400;
}

.scene-list button span:first-child {
  background: #f0f5fa;
}

.scene-list button.is-active {
  color: var(--reader-navy);
  background: var(--reader-blue-soft);
  font-weight: 500;
}

.scene-list button.is-active span:first-child {
  background: var(--reader-blue);
}

.discovery-card {
  background: #fff7df;
}

.discovery-card p {
  color: #6d5d3e;
}

.auto-turn {
  border-color: var(--reader-line);
}

.auto-turn strong {
  color: var(--reader-navy);
  font-weight: 500;
}

.auto-turn small {
  color: var(--reader-muted);
}

.auto-turn input:checked + i {
  background: var(--reader-blue);
}

.reader-map-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1090;
  padding: 0;
  background: rgba(6, 22, 47, 0.46);
  border: 0;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.reader-finish {
  width: min(100%, 1240px);
  margin: 14px auto 48px;
  padding: 32px 0 0;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.finish-celebration {
  min-height: 260px;
  padding: 28px 44px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  overflow: hidden;
  background: var(--reader-blue-soft);
  border-radius: 28px;
}

.finish-celebration img {
  width: 300px;
  max-height: 235px;
  object-fit: contain;
  object-position: center bottom;
}

.finish-kicker {
  margin: 0 0 10px;
  color: var(--reader-orange);
  font-size: 14px;
  font-weight: 600;
}

.reader-finish .finish-celebration h2 {
  margin: 0;
  color: var(--reader-navy);
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.finish-celebration > div > p:last-child {
  margin: 14px 0 0;
  color: var(--reader-muted);
  font-size: 17px;
}

.finish-learned-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.finish-learned-card {
  min-height: 160px;
  padding: 20px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  background: #fff;
  border: 1px solid var(--reader-line);
  border-radius: 18px;
  box-shadow: var(--reader-shadow-card);
}

.finish-learned-card > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--reader-blue);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}

.finish-learned-card h3 {
  margin: 2px 0 8px;
  color: var(--reader-navy);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
}

.finish-learned-card p {
  margin: 0;
  color: var(--reader-muted);
  font-size: 12px;
  line-height: 1.55;
}

.finish-reward {
  margin-top: 18px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff7df;
  border: 1px solid #f5dea0;
  border-radius: 18px;
}

.finish-reward-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #8f6200;
  background: #ffd96d;
  border-radius: 15px;
  font-size: 24px;
}

.finish-reward > div {
  display: grid;
  gap: 4px;
}

.finish-reward strong {
  color: #7d5500;
  font-size: 14px;
  font-weight: 600;
}

.finish-reward span:last-child {
  color: #8a6b29;
  font-size: 12px;
}

.finish-discussion {
  margin: 18px 0 0;
  padding: 24px 26px;
  background: var(--reader-green-soft);
  border-radius: 18px;
}

.finish-discussion span {
  color: var(--reader-green);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finish-discussion h3 {
  margin: 9px 0 0;
  color: var(--reader-navy);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
}

.finish-actions,
.finish-reopen-actions {
  margin-top: 22px;
  justify-content: flex-start;
}

.finish-actions .button,
.finish-reopen-actions .button {
  min-height: 48px;
  font-weight: 500;
}

.finish-actions .button-primary {
  color: #fff;
  background: var(--reader-orange);
}

.finish-reopen-actions {
  display: flex;
  gap: 10px;
}

.finish-recommendations {
  margin-top: 34px;
}

.finish-recommendations > h3 {
  margin: 0 0 14px;
  color: var(--reader-navy);
  font-size: 22px;
  font-weight: 600;
}

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

.finish-recommendation-card button {
  width: 100%;
  min-height: 92px;
  padding: 10px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 13px;
  color: var(--reader-navy);
  background: #fff;
  border: 1px solid var(--reader-line);
  border-radius: 16px;
  text-align: left;
}

.finish-recommendation-card img {
  width: 82px;
  height: 70px;
  object-fit: cover;
  border-radius: 11px;
}

.finish-recommendation-card span {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.finish-recommendation-card strong {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.finish-recommendation-card small {
  color: var(--reader-muted);
  font-size: 10px;
}

.immersive-reader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(circle at center, #17365d 0%, #07172f 65%, #030b18 100%);
}

.immersive-reader[hidden] {
  display: none;
}

.immersive-topbar {
  position: absolute;
  top: 22px;
  left: 28px;
  right: 28px;
  z-index: 8;
  min-height: 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.immersive-topbar > strong {
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.immersive-topbar > div {
  justify-self: end;
  display: flex;
  gap: 8px;
}

.immersive-control,
.immersive-icon-button,
.immersive-audio-toggle,
.immersive-mini-player button {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.immersive-control {
  width: max-content;
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 12px;
  font-size: 12px;
}

.immersive-icon-button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
}

.immersive-icon-button[data-reader-favorite] {
  color: #ff8591;
}

.immersive-stage {
  position: absolute;
  inset: 74px 0 92px;
  display: grid;
  place-items: center;
  touch-action: pinch-zoom;
}

.immersive-page {
  width: auto;
  height: min(90vh, 1100px);
  max-width: calc(100vw - 180px);
  max-height: calc(100vh - 166px);
  aspect-ratio: 1122 / 1402;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  transition: transform 220ms ease;
}

.immersive-reader.is-zoomed .immersive-page {
  transform: scale(1.55);
  cursor: zoom-out;
}

.immersive-arrow {
  position: absolute;
  top: 50%;
  z-index: 7;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transform: translateY(-50%);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.immersive-prev {
  left: 28px;
}

.immersive-next {
  right: 28px;
}

.immersive-footer {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 8;
  width: min(calc(100% - 48px), 760px);
  min-height: 54px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(3, 11, 24, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 17px;
  transform: translateX(-50%);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.immersive-dots {
  display: flex;
  gap: 6px;
}

.immersive-dot {
  width: 18px;
  height: 4px;
  padding: 0;
  background: rgba(255, 255, 255, 0.26);
  border: 0;
  border-radius: 99px;
}

.immersive-dot.is-active {
  background: var(--reader-orange);
}

.immersive-audio-toggle {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 10px;
  font-size: 11px;
}

.immersive-mini-player {
  min-width: 220px;
  display: grid;
  grid-template-columns: 34px minmax(90px, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.immersive-mini-player[hidden] {
  display: none;
}

.immersive-mini-player button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}

.immersive-mini-player input {
  width: 100%;
}

.immersive-mini-player span {
  color: #d7e3f3;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.immersive-reader.controls-hidden .immersive-controls,
.immersive-reader.controls-hidden .immersive-arrow {
  opacity: 0;
  pointer-events: none;
}

.immersive-reader.controls-hidden .immersive-topbar {
  transform: translateY(-10px);
}

.immersive-reader.controls-hidden .immersive-footer {
  transform: translate(-50%, 10px);
}

body.is-reading button:focus-visible,
body.is-reading input:focus-visible,
.immersive-reader button:focus-visible,
.immersive-reader input:focus-visible {
  outline: 3px solid rgba(47, 128, 237, 0.4);
  outline-offset: 3px;
}

@media (max-width: 1099px) {
  .reader-layout {
    grid-template-columns: 1fr;
  }

  .reader-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1100;
    width: min(360px, calc(100vw - 24px));
    height: 100dvh;
    padding: 20px;
    overflow-y: auto;
    border: 0;
    border-radius: 22px 0 0 22px;
    box-shadow: -18px 0 60px rgba(6, 22, 47, 0.24);
    transform: translateX(105%);
    transition: transform 220ms cubic-bezier(.16, 1, .3, 1);
  }

  .reader-sidebar.is-open {
    transform: translateX(0);
  }

  .reader-sidebar-header {
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .reader-sidebar-header > strong {
    font-size: 16px;
    font-weight: 600;
  }

  .reader-sidebar-header .icon-button {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .reader-map-trigger {
    display: grid;
  }

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

@media (min-width: 1100px) {
  .reader-map-trigger,
  .reader-map-button {
    display: none;
  }
}

@media (max-width: 899px) {
  body.is-reading .site-header,
  body.is-reading .site-header.is-scrolled {
    display: none;
  }

  .reader-shell {
    min-height: 100vh;
    padding: 8px 16px 40px;
  }

  .reader-header {
    min-height: 58px;
    margin-bottom: 10px;
  }

  .reader-main {
    padding: 14px 64px 22px;
  }

  .reader-scene,
  .reader-scene[data-story] {
    height: min(72vh, 760px);
    max-height: min(72vh, 760px);
  }

  .finish-celebration {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .finish-celebration img {
    width: 220px;
  }

  #finish-recommendations {
    grid-template-columns: 1fr;
  }
}

/* Access system */
.access-status-banner {
  margin: 24px 0 30px;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  background: #fff8df;
  border: 1px solid #ead8a3;
  border-radius: 16px;
}

.access-status-banner.is-subscriber {
  background: var(--brand-softer);
  border-color: #b9ddce;
}

.access-status-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #7b5b14;
  background: #ffe8a6;
  border-radius: 12px;
}

.access-status-banner.is-subscriber .access-status-icon {
  color: var(--brand-hover);
  background: var(--brand-soft);
}

.access-status-banner strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15px;
}

.access-status-banner p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.story-access-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  min-height: 28px;
  padding: 5px 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  background: rgba(18, 52, 58, 0.9);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 760;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.story-access-badge svg {
  width: 13px;
  height: 13px;
}

.story-access-badge.is-demo {
  color: #173f34;
  background: rgba(228, 247, 237, 0.94);
  border: 1px solid rgba(7, 148, 111, 0.22);
}

.story-card.is-access-locked .story-media img,
.home-story-card.is-access-locked .home-story-media img {
  filter: saturate(0.82);
}

.story-card.is-access-locked:hover .story-media img {
  transform: none;
}

.pricing-grid--access {
  max-width: 850px;
  margin-inline: auto;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.billing-status {
  max-width: 850px;
  margin: 18px auto 0;
  padding: 12px 14px;
  color: var(--brand-hover);
  background: var(--brand-softer);
  border: 1px solid #b9ddce;
  border-radius: 10px;
  font-size: 13px;
  text-align: center;
}

.billing-status.is-error {
  color: #8d342b;
  background: #fff0ed;
  border-color: #efc2ba;
}

.access-dialog {
  width: min(500px, calc(100vw - 32px));
  padding: 34px;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 26px 80px rgba(18, 52, 58, 0.24);
}

.access-dialog::backdrop {
  background: rgba(13, 32, 35, 0.55);
  backdrop-filter: blur(4px);
}

.access-dialog .dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.access-dialog-mark {
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  color: var(--brand-hover);
  background: var(--brand-soft);
  border-radius: 15px;
}

.access-dialog-mark svg {
  width: 25px;
  height: 25px;
}

.access-dialog h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 5vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.access-dialog > p:not(.eyebrow) {
  color: var(--text-secondary);
  line-height: 1.55;
}

.access-dialog ul {
  margin: 22px 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
  color: var(--text-secondary);
  font-size: 13px;
}

.access-dialog li::before {
  content: "✓";
  margin-right: 9px;
  color: var(--brand);
  font-weight: 800;
}

.access-dialog > .button {
  width: 100%;
}

.access-dialog > .button + .button {
  margin-top: 6px;
}

.access-dialog-demo {
  padding: 10px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  background: var(--background-soft);
  border-radius: 12px;
}

.access-dialog-demo img {
  width: 54px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}

.access-dialog-demo span {
  display: grid;
  gap: 3px;
}

.access-dialog-demo small {
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.access-dialog-demo strong {
  font-size: 13px;
}

@media (max-width: 720px) {
  .access-status-banner {
    grid-template-columns: 40px minmax(0, 1fr);
    margin: 18px 0 24px;
    padding: 14px;
  }

  .access-status-icon {
    width: 40px;
    height: 40px;
  }

  .access-status-banner .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .pricing-grid--access {
    grid-template-columns: 1fr;
  }

  .access-dialog {
    padding: 28px 20px 20px;
    border-radius: 18px;
  }
}

@media (max-width: 639px) {
  .reader-shell {
    padding: 6px 10px 104px;
  }

  .reader-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 7px;
  }

  .reader-back {
    width: 42px;
    min-height: 42px;
    padding: 0;
    display: grid;
    place-items: center;
    font-size: 0;
  }

  .reader-header-actions {
    gap: 5px;
  }

  .reader-header-actions .icon-button {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .reader-heading strong {
    max-width: 42vw;
    font-size: 13px;
  }

  .reader-main {
    padding: 10px 8px 18px;
    border-radius: 18px;
  }

  .reader-mode-switch {
    width: 100%;
    margin-bottom: 10px;
  }

  .reader-mode-switch button {
    flex: 1;
    justify-content: center;
    padding-inline: 10px;
  }

  .reader-scene,
  .reader-scene[data-story] {
    width: min(100%, calc((100dvh - 230px) * 1122 / 1402));
    height: auto;
    max-height: none;
    aspect-ratio: 1122 / 1402;
    border-radius: 14px;
  }

  .reader-scene img,
  .reader-scene[data-story] img {
    width: 100%;
    height: 100%;
    border-radius: 14px;
  }

  .scene-arrow {
    display: none;
  }

  .audio-player {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 40;
    grid-template-columns: 44px minmax(0, 1fr) auto 38px;
    gap: 9px;
    margin: 0;
    border-radius: 16px;
    box-shadow: 0 16px 38px rgba(6, 22, 47, 0.28);
  }

  .audio-restart {
    display: none;
  }

  .volume-button {
    width: 38px;
    height: 38px;
    display: grid;
  }

  .reader-navigation {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .reader-navigation-center {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .reader-navigation .button {
    width: 100%;
  }

  .reader-finish {
    margin: 14px auto 24px;
    padding: 0 4px;
  }

  .finish-celebration {
    min-height: 0;
    padding: 20px 18px 24px;
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
    border-radius: 22px;
  }

  .finish-celebration img {
    width: 210px;
    max-height: 170px;
    margin-inline: auto;
  }

  .reader-finish .finish-celebration h2 {
    font-size: 34px;
  }

  .finish-celebration > div > p:last-child {
    font-size: 15px;
  }

  .finish-learned-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .finish-learned-card {
    min-height: 170px;
    padding: 14px;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .finish-learned-card h3 {
    font-size: 13px;
  }

  .finish-learned-card p {
    font-size: 11px;
  }

  .finish-reward,
  .finish-discussion {
    padding: 17px;
  }

  .finish-discussion h3 {
    font-size: 17px;
  }

  .finish-actions,
  .finish-reopen-actions {
    display: grid;
  }

  .finish-actions .button,
  .finish-reopen-actions .button {
    width: 100%;
  }

  #finish-recommendations {
    margin-inline: -10px;
    padding-inline: 10px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .finish-recommendation-card {
    min-width: min(82vw, 330px);
    scroll-snap-align: start;
  }

  .immersive-topbar {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .immersive-close {
    width: 44px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .immersive-stage {
    inset: 66px 0 88px;
  }

  .immersive-page {
    width: min(calc(100vw - 20px), calc((100vh - 164px) * 1122 / 1402));
    height: auto;
    max-width: none;
    max-height: calc(100vh - 164px);
    border-radius: 12px;
  }

  .immersive-arrow {
    display: none;
  }

  .immersive-footer {
    bottom: 10px;
    width: calc(100% - 20px);
    min-height: 64px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .immersive-dots {
    width: 100%;
    justify-content: center;
  }

  .immersive-mini-player {
    min-width: 0;
    flex: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reader-page-skeleton,
  .reader-scene.turning img {
    animation: none !important;
  }

  .immersive-controls,
  .immersive-arrow,
  .immersive-page,
  .reader-sidebar {
    transition: none !important;
  }
}

/* TIKO editorial hero v16 */

:root {
  --page-bg: #fcf8ef;
  --surface: #fffdf7;
  --surface-soft: #f8f1e4;
  --surface-green: #eaf5ee;
  --text-primary: #103d43;
  --text-secondary: #4f6666;
  --text-muted: #81908d;
  --brand: #11886d;
  --brand-hover: #0d735d;
  --brand-dark: #0b514c;
  --brand-soft: #dff1e9;
  --orange: #ef5f2a;
  --orange-soft: #fff0df;
  --yellow: #f6b62f;
  --border: #e4d7c4;
  --border-strong: #d6c6ae;
  --radius-button: 18px;
  --radius-nav: 999px;
  --radius-card: 30px;
  --radius-hero: 32px;
  --shadow-nav: 0 10px 22px rgba(60, 49, 31, 0.09), 0 2px 5px rgba(60, 49, 31, 0.06);
  --shadow-button: 0 10px 22px rgba(17, 136, 109, 0.2);
  --shadow-hero: 0 22px 50px rgba(53, 65, 53, 0.13);
  --container-width: none;
  --page-padding: 20px;
}

body {
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 234, 195, 0.28), transparent 28%),
    var(--page-bg);
}

.page-container {
  width: calc(100% - (var(--page-padding) * 2));
  max-width: none;
}

.site-header {
  height: 88px;
  background: rgba(252, 248, 239, 0.92);
  border-bottom: 1px solid rgba(214, 198, 174, 0.6);
  box-shadow: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-inner {
  gap: 28px;
}

.brand-logo {
  min-height: 56px;
  gap: 10px;
  font-size: inherit;
  letter-spacing: 0;
}

.site-header .brand-logo__mascot {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}

.brand-logo__wordmark {
  display: inline-flex;
  align-items: baseline;
  color: var(--text-primary);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.075em;
  text-shadow: 0 1px 0 rgba(16, 61, 67, 0.12);
}

.brand-logo__wordmark span {
  display: inline-block;
}

.brand-logo__wordmark span:nth-child(1) { transform: rotate(-2deg); }
.brand-logo__wordmark span:nth-child(2) { transform: translateY(1px) rotate(1deg); }
.brand-logo__wordmark span:nth-child(3) { transform: rotate(-1deg); }
.brand-logo__wordmark span:nth-child(4) { transform: translateY(-1px) rotate(2deg); }

.brand-logo__sparkles {
  top: 2px;
  right: -17px;
  width: 17px;
  height: 38px;
}

.brand-logo__sparkles i {
  background: var(--orange);
}

.brand-logo__sparkles i:first-child {
  top: 2px;
  left: 3px;
  width: 5px;
  height: 5px;
}

.brand-logo__sparkles i:nth-child(2) {
  right: 0;
  top: 17px;
  width: 4px;
  height: 4px;
  opacity: 1;
}

.brand-logo__sparkles i:nth-child(3) {
  left: 1px;
  bottom: 1px;
  width: 3px;
  height: 3px;
  opacity: 0.75;
}

.header-nav {
  gap: 4px;
  padding: 7px;
  border: 1px solid rgba(214, 198, 174, 0.8);
  border-radius: var(--radius-nav);
  background: rgba(255, 253, 247, 0.9);
  box-shadow: var(--shadow-nav);
}

.desktop-nav .header-nav__link {
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-nav);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav .header-nav__link > span {
  display: none;
  color: var(--yellow);
}

.desktop-nav .header-nav__link.is-active {
  color: var(--brand-dark);
  background: var(--surface);
  box-shadow: 0 5px 12px rgba(48, 42, 29, 0.1), inset 0 0 0 1px rgba(214, 198, 174, 0.45);
}

.desktop-nav .header-nav__link.is-active > span {
  display: inline;
}

.desktop-nav .header-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 5px;
  height: 2px;
  background: var(--brand);
  border-radius: 50%;
  transform: rotate(-1deg);
}

.desktop-nav .header-nav__link.is-active::before {
  display: none;
}

.header-actions {
  gap: 12px;
}

.header-actions .button {
  min-height: 48px;
  padding-inline: 22px;
  border-radius: var(--radius-button);
}

.header-login {
  gap: 9px;
  color: var(--text-primary);
  background: rgba(255, 253, 247, 0.75);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}

.header-login svg {
  width: 18px;
  height: 18px;
}

.header-register {
  min-height: 50px !important;
  gap: 9px;
  background: var(--brand);
  box-shadow: var(--shadow-button) !important;
}

.header-register span {
  color: #ffe27c;
}

.hero-section {
  padding: 42px 0 30px;
  overflow: hidden;
}

.hero-grid {
  grid-template-columns: minmax(420px, 0.68fr) minmax(720px, 1.32fr);
  gap: 34px;
  align-items: center;
}

.hero-copy {
  padding: 0;
}

.hero-eyebrow {
  width: max-content;
  margin: 0;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #73513b;
  background: var(--orange-soft);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 600;
}

.hero-eyebrow span {
  color: var(--orange);
  font-size: 15px;
}

.hero-copy .hero-title {
  max-width: 650px;
  margin: 0;
  color: var(--text-primary);
  font-family: "Fraunces", "DM Serif Display", Georgia, serif;
  font-size: clamp(56px, 4.5vw, 78px);
  line-height: 0.94;
  letter-spacing: -0.055em;
  font-weight: 690;
}

.hero-title > span {
  display: block;
  white-space: nowrap;
}

.hero-title strong {
  color: var(--orange);
  font-weight: inherit;
}

.hero-title__accent-line {
  position: relative;
  width: max-content;
}

.hero-title__accent-line > svg {
  position: absolute;
  left: 64px;
  right: 0;
  bottom: -14px;
  width: calc(100% - 64px);
  height: 16px;
  color: var(--orange);
  overflow: visible;
  pointer-events: none;
}

.hero-title__accent-line > svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 5;
  stroke-linecap: round;
}

.hero-title-sparkles {
  position: absolute;
  top: 156px;
  right: 2px;
  width: 38px;
  height: 44px;
  pointer-events: none;
}

.hero-title-sparkles i {
  position: absolute;
  color: var(--orange);
  font-style: normal;
}

.hero-title-sparkles i:first-child { top: 0; right: 0; font-size: 20px; }
.hero-title-sparkles i:nth-child(2) { left: 0; bottom: 5px; color: var(--brand); font-size: 12px; }
.hero-title-sparkles i:nth-child(3) { right: 9px; bottom: 0; font-size: 11px; }

.hero-copy .hero-description {
  max-width: 570px;
  margin: 34px 0 0;
  color: var(--text-primary);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 480;
}

.hero-actions {
  margin-top: 32px;
  gap: 12px;
}

.hero-actions .hero-primary,
.hero-actions .hero-secondary {
  min-height: 62px;
  padding-inline: 24px;
  border-radius: 20px;
  font-size: 15px;
}

.hero-primary {
  gap: 10px;
  box-shadow: var(--shadow-button);
}

.hero-primary > span {
  color: #ffe27c;
  margin-left: -4px;
}

.hero-primary svg,
.hero-secondary svg {
  width: 22px;
  height: 22px;
}

.hero-secondary {
  gap: 10px;
  color: var(--text-primary);
  background: rgba(255, 253, 247, 0.72);
  border-color: var(--border-strong);
}

.hero-primary:hover,
.hero-secondary:hover {
  transform: translateY(-2px);
}

.hero-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 1.62 / 1;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid rgba(214, 198, 174, 0.5);
  border-radius: var(--radius-hero);
  box-shadow: var(--shadow-hero);
  isolation: isolate;
}

.hero-carousel__viewport,
.hero-carousel-slide {
  position: absolute;
  inset: 0;
}

.hero-carousel__viewport {
  z-index: 1;
}

.hero-carousel-slide {
  z-index: 0;
  opacity: 0;
  transform: scale(1.015) translateX(10px);
  transition: opacity 600ms var(--ease), transform 850ms var(--ease);
  pointer-events: none;
  visibility: visible;
}

.hero-carousel-slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1) translateX(0);
  pointer-events: auto;
}

.hero-carousel-slide[aria-hidden="true"] {
  visibility: visible;
}

.hero-carousel__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel__question {
  position: absolute;
  z-index: 2;
  top: 22px;
  right: 24px;
  max-width: calc(100% - 120px);
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  box-shadow: 0 5px 16px rgba(31, 44, 43, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 15px;
  font-weight: 750;
}

.hero-carousel__question svg {
  width: 20px;
  height: 20px;
  color: var(--orange);
}

.hero-carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--text-primary);
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.hero-carousel__arrow:hover {
  color: var(--brand);
  background: var(--surface);
  transform: translateY(-50%) scale(1.04);
}

.hero-carousel__arrow--prev { left: 18px; }
.hero-carousel__arrow--next { right: 18px; }

.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 7px;
  transform: translateX(-50%);
}

.carousel-dot {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
}

.carousel-dot::before {
  content: "";
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  transition: width 180ms var(--ease), background 180ms var(--ease);
}

.carousel-dot.is-active::before {
  width: 34px;
  background: #fff;
}

.benefits-strip {
  min-height: 132px;
  margin-top: 28px;
  padding: 24px 30px;
  background: rgba(255, 253, 247, 0.78);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(60, 49, 31, 0.05);
}

.benefits-strip article {
  align-items: center;
  gap: 18px;
}

.benefits-strip .benefit-icon {
  width: 62px;
  height: 62px;
  flex-basis: 62px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(16, 61, 67, 0.08);
}

.benefits-strip .benefit-icon img {
  width: 42px;
  height: 42px;
}

.benefit-icon--green { background: #e4f3e8; }
.benefit-icon--peach { background: #fff0e6; }
.benefit-icon--mint { background: #e5f4ee; }
.benefit-icon--yellow { background: #fff2d5; }

.benefits-strip h2 {
  font-size: 15px;
}

.benefits-strip p {
  font-size: 12px;
}

.benefits-strip .benefits-mascot {
  right: -54px;
  bottom: -28px;
  width: 125px;
  height: auto;
  aspect-ratio: 0.55;
}

.how-section {
  padding-top: 54px;
}

.section-intro .how-title {
  position: relative;
  width: max-content;
  margin-bottom: 20px;
  font-family: "Fraunces", "DM Serif Display", Georgia, serif;
  font-size: clamp(42px, 3.6vw, 58px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 680;
}

.how-title::after {
  content: "";
  position: absolute;
  left: 2px;
  bottom: -11px;
  width: 42%;
  height: 4px;
  background: var(--brand);
  border-radius: 50%;
  transform: rotate(-1deg);
}

.how-title > span {
  position: absolute;
  right: -32px;
  bottom: -9px;
  color: var(--orange);
  font-family: inherit;
  font-size: 18px;
}

@media (max-width: 1399px) {
  :root {
    --page-padding: 16px;
  }

  .hero-grid {
    grid-template-columns: minmax(360px, 0.72fr) minmax(600px, 1.28fr);
    gap: 26px;
  }

  .hero-copy .hero-title {
    font-size: clamp(54px, 4.8vw, 64px);
  }

  .carousel-dots {
    left: 50%;
  }

}

@media (max-width: 1099px) {
  :root {
    --page-padding: 18px;
  }

  .site-header {
    height: 76px;
  }

  .site-header .brand-logo__mascot {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .brand-logo__wordmark {
    font-size: 30px;
  }

  .desktop-nav,
  .header-actions > .button {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .mobile-menu {
    top: 76px;
  }

  .hero-section {
    padding-top: 36px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-copy .hero-title {
    font-size: clamp(58px, 8vw, 78px);
  }

  .hero-title-sparkles {
    right: 15%;
  }

  .hero-carousel {
    aspect-ratio: 1.35 / 1;
  }

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

@media (max-width: 767px) {
  :root {
    --page-padding: 14px;
  }

  .site-header {
    height: 72px;
  }

  .site-header .brand-logo__mascot {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .brand-logo__wordmark {
    font-size: 27px;
  }

  .brand-logo__sparkles,
  .hero-title-sparkles {
    display: none;
  }

  .mobile-menu {
    top: 72px;
  }

  .hero-section {
    padding: 28px 0 26px;
  }

  .hero-copy .hero-title {
    font-size: clamp(42px, 11.5vw, 48px);
    line-height: 0.98;
  }

  .hero-title__accent-line > svg {
    left: 42px;
    width: calc(100% - 42px);
    bottom: -10px;
  }

  .hero-copy .hero-description {
    margin-top: 28px;
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    margin-top: 26px;
  }

  .hero-actions .hero-primary,
  .hero-actions .hero-secondary {
    width: 100%;
  }

  .hero-carousel {
    aspect-ratio: 4 / 5;
    border-radius: 24px;
  }

  .hero-carousel__question {
    top: 14px;
    right: 14px;
    max-width: calc(100% - 82px);
    padding: 10px 13px;
    font-size: 12px;
  }

  .hero-carousel__arrow {
    width: 46px;
    height: 46px;
  }

  .hero-carousel__arrow--prev { left: 12px; }
  .hero-carousel__arrow--next { right: 12px; }

  .carousel-dots {
    left: 50%;
    bottom: 12px;
  }

  .benefits-strip {
    min-height: 0;
    padding: 10px 18px;
    grid-template-columns: 1fr;
    border-radius: 22px;
  }

  .benefits-strip article {
    padding: 16px 0;
  }

  .benefits-strip article + article {
    border-top: 1px solid var(--border);
  }

  .benefits-strip .benefits-mascot {
    display: none;
  }

  .section-intro .how-title {
    max-width: calc(100% - 26px);
    font-size: 42px;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-slide {
    transform: none !important;
    transition: opacity 0.01ms linear !important;
  }
}

/* Editorial coherence v20 */

@font-face {
  font-family: "Overdoze Sans";
  src: url("public/fonts/overdoze-sans.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --container-width: 1480px;
  --page-padding: 32px;
}

.page-container {
  width: min(calc(100% - (var(--page-padding) * 2)), var(--container-width));
  max-width: var(--container-width);
  margin-inline: auto;
}

.site-header {
  height: 84px;
  background: transparent;
  border-bottom: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: background 180ms var(--ease), box-shadow 180ms var(--ease), backdrop-filter 180ms var(--ease);
}

.site-header.is-scrolled {
  background: rgba(252, 248, 239, 0.88);
  box-shadow: 0 8px 24px rgba(29, 49, 43, 0.05);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.header-inner {
  gap: 24px;
}

.brand-logo {
  min-height: 58px;
  gap: 7px;
}

.site-header .brand-logo__mascot {
  width: 54px;
  height: 54px;
  flex-basis: 54px;
}

.brand-logo__wordmark {
  font-size: 32px;
}

.brand-logo__sparkles {
  right: -11px;
  top: 7px;
  width: 10px;
  height: 22px;
}

.brand-logo__sparkles i:first-child {
  top: 4px;
  left: 1px;
  width: 6px;
  height: 6px;
}

.brand-logo__sparkles i:nth-child(n + 2) {
  display: none;
}

.header-nav {
  gap: 30px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.desktop-nav .header-nav__link {
  min-height: 46px;
  padding: 0;
  border-radius: 0;
  color: #315455;
  font-size: 14px;
  font-weight: 600;
}

.desktop-nav .header-nav__link:hover {
  color: var(--text-primary);
  background: transparent;
}

.desktop-nav .header-nav__link.is-active {
  color: var(--text-primary);
  background: transparent;
  box-shadow: none;
}

.desktop-nav .header-nav__link.is-active::after {
  left: 4px;
  right: 16px;
  bottom: 7px;
  height: 2px;
  background: var(--brand);
}

.desktop-nav .header-nav__link.is-active > span {
  display: inline;
  margin-left: 2px;
  color: var(--orange);
  font-size: 10px;
}

.header-actions {
  gap: 10px;
}

.header-login {
  padding-inline: 14px !important;
  background: transparent;
  border: 0;
}

.header-login:hover {
  background: rgba(255, 253, 247, 0.7);
}

.header-register {
  min-height: 48px !important;
  padding-inline: 21px !important;
  box-shadow: 0 7px 18px rgba(17, 136, 109, 0.15) !important;
}

.hero-section {
  padding: 24px 0 18px;
}

.hero-grid {
  grid-template-columns: minmax(420px, 0.78fr) minmax(680px, 1.32fr);
  gap: 42px;
  align-items: center;
}

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

.hero-current-topic {
  max-width: 100%;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #647a76;
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.015em;
}

.hero-current-topic > span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  background: var(--orange);
  border-radius: 50%;
}

.hero-current-topic strong {
  min-width: 0;
  overflow: hidden;
  color: var(--text-primary);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-copy .hero-title {
  max-width: 590px;
  margin: 0;
  font-family: "Overdoze Sans", "Arial Rounded MT Bold", sans-serif;
  font-size: clamp(60px, 5vw, 84px);
  line-height: 0.82;
  letter-spacing: -0.025em;
  font-weight: 400;
}

.hero-title > span {
  white-space: nowrap;
}

.hero-title__accent-line {
  width: max-content;
}

.hero-title__accent-line > svg {
  left: 3%;
  bottom: -16px;
  width: 92%;
  height: 17px;
}

.hero-title__accent-line > svg path {
  stroke-width: 4;
}

.hero-title-sparkles {
  display: none;
}

.hero-copy .hero-description {
  max-width: 500px;
  margin: 25px 0 0;
  color: #234f50;
  font-size: 17px;
  line-height: 1.58;
  font-weight: 470;
}

.hero-personalization {
  margin-top: 17px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-personalization img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: cover;
  object-position: center 22%;
  background: #f3e4d7;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(16, 61, 67, 0.12);
}

.hero-personalization p {
  margin: 0;
  display: grid;
  gap: 2px;
}

.hero-personalization strong {
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.35;
}

.hero-personalization span {
  color: #607773;
  font-size: 12px;
  line-height: 1.35;
}

.hero-actions {
  margin-top: 21px;
  display: flex;
  align-items: center;
  gap: 17px;
}

.hero-actions .hero-primary {
  min-height: 56px;
  padding-inline: 21px;
  gap: 9px;
  border-radius: 17px;
  box-shadow: 0 8px 20px rgba(17, 136, 109, 0.16);
  font-size: 14px;
}

.hero-primary svg {
  width: 20px;
  height: 20px;
}

.hero-primary .hero-primary__arrow {
  width: 16px;
  height: 16px;
  margin-left: -2px;
}

.hero-secondary {
  min-height: 44px;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-primary);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: rgba(16, 61, 67, 0.24);
  text-underline-offset: 5px;
}

.hero-secondary svg {
  width: 17px;
  height: 17px;
  color: var(--orange);
}

.hero-secondary:hover {
  color: var(--brand);
  transform: none;
  text-decoration-color: currentColor;
}

.hero-free-note {
  margin: 10px 0 0;
  color: #627975;
  font-size: 12px;
  line-height: 1.4;
}

.hero-free-note span {
  color: var(--brand);
  font-weight: 800;
}

.hero-carousel {
  aspect-ratio: 1.72 / 1;
  border-color: rgba(214, 198, 174, 0.42);
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(53, 65, 53, 0.11);
}

.hero-carousel__image {
  object-position: center;
}

.hero-carousel__question {
  top: 26px;
  right: 24px;
  max-width: min(390px, calc(100% - 118px));
  padding: 11px 16px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 1px 9px;
  border-radius: 17px;
  text-align: left;
}

.hero-carousel__question svg {
  grid-row: 1 / 3;
  align-self: center;
}

.hero-carousel__question small {
  color: #6a7a76;
  font-size: 10px;
  line-height: 1.2;
  font-weight: 600;
}

.hero-carousel__question strong {
  overflow: hidden;
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-carousel__arrow {
  width: 52px;
  height: 52px;
  opacity: 0.72;
  transition: opacity 160ms var(--ease), transform 160ms var(--ease), background 160ms var(--ease);
}

.hero-carousel:hover .hero-carousel__arrow,
.hero-carousel__arrow:focus-visible {
  opacity: 1;
}

.hero-carousel-status {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 6;
  min-height: 42px;
  padding: 5px 7px 5px 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: white;
  background: rgba(8, 38, 41, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateX(-50%);
}

.hero-carousel-count {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.hero-carousel-count strong {
  font-size: 13px;
}

.hero-carousel-count span {
  opacity: 0.64;
}

.carousel-dots {
  position: static;
  display: flex;
  gap: 5px;
  transform: none;
}

.carousel-dot {
  width: 35px;
  height: 32px;
}

.carousel-dot::before {
  width: 27px;
  height: 3px;
  background: rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  transition: background 180ms var(--ease), transform 180ms var(--ease);
}

.carousel-dot.is-active::before {
  width: 27px;
  background: #fff;
  transform: scaleX(1.05);
}

.hero-carousel-pause {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  border-radius: 50%;
}

.hero-carousel-pause:hover {
  background: rgba(255, 255, 255, 0.2);
}

.hero-carousel-pause svg {
  width: 17px;
  height: 17px;
}

.benefits-strip {
  min-height: 0;
  margin-top: 20px;
  padding: 0;
  display: grid;
  grid-template-columns: 1.18fr 1fr 1fr;
  gap: 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.benefits-strip article {
  min-width: 0;
  min-height: 96px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 253, 247, 0.58);
  border: 0;
  border-radius: 18px;
}

.benefits-strip .benefit--personal {
  background: #fff0e3;
}

.benefits-strip .benefit-icon {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(16, 61, 67, 0.09);
}

.benefits-strip .benefit--personal .benefit-icon {
  color: var(--orange);
}

.benefits-strip .benefit-icon svg {
  width: 24px;
  height: 24px;
}

.benefits-strip h2 {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.3;
}

.benefits-strip p {
  margin: 0;
  color: #607773;
  font-size: 13px;
  line-height: 1.45;
}

.how-section {
  padding-top: 34px;
}

@media (max-width: 1399px) {
  :root {
    --page-padding: 24px;
  }

  .header-nav {
    gap: 24px;
  }

  .hero-grid {
    grid-template-columns: minmax(390px, 0.76fr) minmax(600px, 1.24fr);
    gap: 32px;
  }

  .hero-copy .hero-title {
    font-size: clamp(56px, 4.7vw, 66px);
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
}

@media (max-width: 1099px) {
  :root {
    --page-padding: 22px;
  }

  .site-header {
    height: 76px;
  }

  .site-header .brand-logo__mascot {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }

  .hero-section {
    padding-top: 26px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-copy .hero-title {
    font-size: clamp(62px, 8vw, 80px);
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 17px;
  }

  .hero-carousel {
    aspect-ratio: 1.55 / 1;
  }

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

@media (max-width: 767px) {
  :root {
    --page-padding: 16px;
  }

  .site-header {
    height: 72px;
  }

  .site-header .brand-logo__mascot {
    width: 43px;
    height: 43px;
    flex-basis: 43px;
  }

  .brand-logo__wordmark {
    font-size: 28px;
  }

  .hero-section {
    padding: 22px 0 16px;
  }

  .hero-current-topic {
    margin-bottom: 12px;
  }

  .hero-copy .hero-title {
    font-size: clamp(46px, 13.3vw, 58px);
    line-height: 0.86;
  }

  .hero-title__accent-line > svg {
    left: 2%;
    width: 94%;
    bottom: -11px;
  }

  .hero-copy .hero-description {
    margin-top: 22px;
    font-size: 16px;
  }

  .hero-copy .hero-description br {
    display: none;
  }

  .hero-personalization {
    margin-top: 15px;
  }

  .hero-actions {
    margin-top: 19px;
    display: grid;
    gap: 2px;
  }

  .hero-actions .hero-primary {
    width: 100%;
  }

  .hero-secondary {
    justify-self: start;
  }

  .hero-carousel {
    aspect-ratio: 4 / 5;
    border-radius: 22px;
  }

  .hero-carousel__question {
    top: 14px;
    right: 14px;
    max-width: calc(100% - 82px);
    padding: 9px 11px;
  }

  .hero-carousel__question strong {
    font-size: 12px;
  }

  .hero-carousel-status {
    bottom: 12px;
    gap: 5px;
  }

  .hero-carousel-count {
    display: none;
  }

  .carousel-dot {
    width: 28px;
  }

  .carousel-dot::before,
  .carousel-dot.is-active::before {
    width: 21px;
  }

  .benefits-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .benefits-strip article {
    min-height: 0;
    padding: 15px 16px;
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .hero-carousel__arrow,
  .carousel-dot::before {
    transition: none !important;
  }
}

/* Library redesign v8 */

.library-view {
  background:
    radial-gradient(circle at 72% 7%, rgba(244, 189, 72, 0.07), transparent 28rem),
    var(--background);
}

.library-page {
  padding: 0 0 84px;
}

.section-eyebrow {
  margin: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.library-hero {
  position: relative;
  min-height: 520px;
  padding: 52px 0 38px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(460px, 0.75fr);
  gap: 48px;
  align-items: center;
}

.library-hero-copy {
  position: relative;
  z-index: 2;
}

.library-hero h1 {
  max-width: 680px;
  margin: 14px 0 0;
  font-size: clamp(48px, 4.7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 750;
}

.library-hero-description {
  max-width: 570px;
  margin: 18px 0 0;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.question-search {
  position: relative;
  width: min(100%, 680px);
  height: 66px;
  margin-top: 28px;
}

.question-search input {
  width: 100%;
  height: 100%;
  padding: 0 182px 0 54px;
  color: var(--text-primary);
  background: rgba(255, 253, 248, 0.94);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  outline: 0;
  font-size: 15px;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.question-search input::placeholder {
  color: var(--text-tertiary);
}

.question-search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(7, 155, 116, 0.1);
}

.question-search-icon {
  position: absolute;
  top: 50%;
  left: 20px;
  z-index: 1;
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  transform: translateY(-50%);
}

.question-search-submit {
  position: absolute;
  top: 7px;
  right: 7px;
  height: 52px;
  padding: 0 24px;
  color: white;
  background: var(--brand);
  border: 0;
  border-radius: 13px;
  box-shadow: var(--shadow-button);
  font-weight: 750;
}

.question-search-submit:hover {
  background: var(--brand-hover);
}

.quick-questions {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
  white-space: nowrap;
}

.surprise-button {
  min-height: 46px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-primary);
  background: var(--brand-soft);
  border: 1px solid rgba(7, 155, 116, 0.13);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.surprise-button span {
  color: var(--yellow);
  font-size: 18px;
}

.surprise-button.is-loading span {
  animation: twinkle 550ms ease-in-out infinite;
}

.quick-questions-label {
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
}

.quick-questions > button:not(.surprise-button) {
  min-height: 44px;
  padding: 0;
  color: var(--brand-active);
  background: transparent;
  border: 0;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(7, 155, 116, 0.36);
  text-underline-offset: 4px;
}

.library-hero-art {
  position: relative;
  align-self: end;
  height: 450px;
  overflow: hidden;
  pointer-events: none;
}

.library-hero-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 25%;
  background: linear-gradient(to bottom, transparent, var(--background) 92%);
}

.library-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 64%;
  border-radius: 48% 48% 18% 18%;
  filter: saturate(0.94) contrast(0.98);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 74%, transparent 100%);
}

.question-cloud {
  position: absolute;
  top: 30px;
  right: 20%;
  z-index: 2;
  width: 105px;
  height: 76px;
  display: grid;
  place-items: center;
  color: var(--text-primary);
  background: rgba(255, 253, 248, 0.91);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 48% 52% 45% 55%;
  box-shadow: 0 12px 34px rgba(18, 52, 58, 0.09);
  font-family: Georgia, serif;
  font-size: 58px;
  font-weight: 800;
  transform: rotate(3deg);
}

.question-cloud::after {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -16px;
  width: 22px;
  height: 22px;
  background: inherit;
  border-radius: 50%;
}

.library-star {
  position: absolute;
  z-index: 3;
  color: var(--yellow);
  filter: drop-shadow(0 2px 6px rgba(232, 179, 69, 0.28));
  animation: twinkle 3.4s ease-in-out infinite;
}

.star-a {
  top: 42px;
  right: 8%;
  font-size: 24px;
}

.star-b {
  top: 138px;
  left: 9%;
  font-size: 14px;
  animation-delay: -1.5s;
}

.featured-story {
  height: 410px;
  min-height: 410px;
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.42fr);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 30px;
}

.featured-story-content {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-eyebrow {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 750;
}

.featured-eyebrow span {
  color: var(--yellow);
  font-size: 19px;
}

.featured-story h2 {
  max-width: 460px;
  margin: 16px 0 0;
  font-size: clamp(34px, 3vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.featured-story-content > p:not(.featured-eyebrow) {
  max-width: 430px;
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

.featured-meta {
  margin-top: 22px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-secondary);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.featured-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.featured-meta svg {
  width: 17px;
  height: 17px;
  color: var(--text-primary);
}

.featured-start {
  width: max-content;
  margin-top: 28px;
}

.featured-start > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: white;
  border-radius: 50%;
}

.featured-start > span svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.featured-story-media {
  position: relative;
  height: 410px;
  min-height: 0;
}

.featured-story-media img {
  position: absolute;
  inset: 0;
  object-position: center 66%;
}

.topics-section {
  margin-top: 34px;
}

.topics-section > h2,
.context-wrap > h2,
.stories-section-header h2,
.custom-question-cta h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.topics-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.topic-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: var(--text-primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: left;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), box-shadow 180ms var(--ease);
}

.topic-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-soft);
}

.topic-card.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(7, 155, 116, 0.1);
}

.topic-card-media {
  aspect-ratio: 1.8 / 1;
  margin: 10px 10px 0;
  display: block;
  border-radius: 13px;
}

.topic-card-media img {
  object-position: center 35%;
}

.topic-card[data-theme-filter="human-body"] .topic-card-media img {
  object-position: center 31%;
}

.topic-card-label {
  display: block;
  padding: 14px 16px 17px;
  font-size: 15px;
  font-weight: 750;
}

.library-toolbar {
  margin-top: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.context-filters {
  margin-top: 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.context-filter {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-primary);
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.context-filter span {
  color: var(--yellow);
  font-size: 20px;
}

.context-filter:last-child span {
  color: #d9675f;
}

.context-filter.is-selected {
  color: var(--brand-active);
  background: var(--brand-soft);
  border-color: var(--brand);
}

.age-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.age-wrap > span {
  color: var(--text-secondary);
  font-size: 12px;
  white-space: nowrap;
}

.age-filter {
  padding: 4px;
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.age-filter button {
  min-width: 58px;
  height: 38px;
  padding: 0 14px;
  color: var(--text-primary);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.age-filter button.is-active {
  color: white;
  background: var(--brand);
}

.stories-section {
  margin-top: 30px;
}

.stories-section-header {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.stories-section-header > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.stories-section-header #library-count {
  color: var(--text-tertiary);
  font-size: 12px;
}

.show-more-link {
  min-height: 44px;
  padding: 0;
  color: var(--brand);
  background: transparent;
  border: 0;
  font-size: 12px;
  font-weight: 750;
}

.library-view .library-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.library-view .story-media {
  aspect-ratio: 1.18 / 1;
}

.library-view .story-card-copy {
  min-height: 150px;
  padding: 14px 15px 16px;
  display: flex;
  flex-direction: column;
}

.library-view .story-card-copy h3 {
  min-height: 42px;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.story-card-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.featured-grid .story-card-description {
  display: none;
}

.library-view .story-meta {
  margin-top: auto;
  padding-top: 14px;
  color: var(--text-tertiary);
}

.library-view .story-badge {
  top: 10px;
  left: 10px;
  padding: 6px 10px;
}

.library-view .favorite-button {
  top: 9px;
  right: 9px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.library-empty {
  min-height: 310px;
}

.library-empty > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.custom-question-cta {
  position: relative;
  height: 132px;
  min-height: 132px;
  margin-top: 28px;
  padding: 18px 30px;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  background: #eaf5f0;
  border: 1px solid rgba(7, 155, 116, 0.17);
  border-radius: 24px;
}

.cta-lumo {
  align-self: stretch;
  min-height: 100px;
  background: transparent;
}

.cta-lumo img {
  position: absolute;
  width: 420px;
  max-width: none;
  height: 525px;
  left: -240px;
  top: -300px;
  object-fit: cover;
  object-position: 82% 72%;
  border-radius: 50%;
}

.custom-question-cta p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.custom-question-cta .button {
  justify-self: end;
}

.button-help {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: white;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 1280px) {
  .library-hero {
    grid-template-columns: minmax(0, 1fr) minmax(390px, 0.68fr);
    gap: 28px;
  }

  .quick-questions {
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .library-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 1023px) {
  .library-hero {
    min-height: 0;
    padding: 48px 0 36px;
    grid-template-columns: minmax(0, 1fr);
  }

  .library-hero-copy {
    width: 100%;
    min-width: 0;
    max-width: 760px;
  }

  .library-hero-art {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 0;
    width: 38%;
    height: 300px;
    opacity: 0.22;
  }

  .featured-story {
    height: auto;
    grid-template-columns: 1fr;
  }

  .featured-story-media {
    height: 360px;
    min-height: 360px;
    grid-row: 1;
  }

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

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

  .library-view .library-grid .story-card:nth-child(5) {
    display: block;
  }

  .custom-question-cta {
    height: auto;
    grid-template-columns: 110px minmax(0, 1fr);
  }

  .custom-question-cta .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .library-page {
    padding-bottom: 64px;
  }

  .library-hero {
    padding: 40px 0 30px;
  }

  .library-hero h1 {
    font-size: 42px;
  }

  .library-hero-description {
    font-size: 15px;
  }

  .library-hero-art {
    display: none;
  }

  .quick-questions {
    width: 100%;
    max-width: 100%;
    padding-right: var(--page-padding);
  }

  .featured-story {
    border-radius: 24px;
  }

  .featured-story-media {
    height: 280px;
    min-height: 280px;
  }

  .featured-story-content {
    padding: 26px 24px 28px;
  }

  .topics-grid {
    width: calc(100% + var(--page-padding));
    padding-right: var(--page-padding);
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .topic-card {
    width: 205px;
    flex: 0 0 205px;
    scroll-snap-align: start;
  }

  .context-filters {
    width: calc(100vw - var(--page-padding));
    padding-right: var(--page-padding);
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .age-wrap {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .age-filter {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .age-filter button {
    min-width: 0;
    padding-inline: 8px;
  }

  .stories-section-header {
    align-items: flex-start;
  }

  .show-more-link {
    max-width: 120px;
    text-align: right;
  }

  .custom-question-cta {
    padding: 28px 24px;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cta-lumo {
    display: none;
  }

  .custom-question-cta .button {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .question-search {
    height: auto;
    display: grid;
    gap: 10px;
  }

  .question-search input {
    height: 58px;
    padding-right: 18px;
  }

  .question-search-icon {
    top: 29px;
  }

  .question-search-submit {
    position: static;
    width: 100%;
    height: 52px;
  }

  .quick-questions {
    margin-top: 16px;
  }

  .library-view .library-grid {
    grid-template-columns: 1fr;
  }

  .featured-story-media {
    height: 240px;
    min-height: 240px;
  }

  .featured-story h2 {
    font-size: 34px;
  }
}

.reader-scene[data-story="airplane"],
.reader-scene[data-story="puddle"],
.reader-scene[data-story="ship"] {
  aspect-ratio: 1.12 / 1;
}

.reader-scene[data-story="airplane"] img,
.reader-scene[data-story="puddle"] img,
.reader-scene[data-story="ship"] img {
  object-position: center top;
}

/* Home media redesign v21 */

:root {
  --home-page: #ffffff;
  --home-navy: #062a61;
  --home-navy-2: #0a356f;
  --home-orange: #ff6a00;
  --home-orange-hover: #e95f00;
  --home-sky: #dff1ff;
  --home-blue: #3e9bff;
  --home-yellow: #ffb21a;
  --home-green: #77c943;
  --home-violet: #7b5ce7;
  --home-text: #0a285a;
  --home-muted: #536784;
  --home-line: #e7edf5;
  --home-panel: #f7fafd;
  --home-shadow: 0 18px 48px rgba(18, 56, 96, 0.1);
  --home-shadow-soft: 0 8px 24px rgba(18, 56, 96, 0.08);
  --container-width: 1440px;
  --page-padding: 32px;
}

body {
  color: var(--home-text);
  background: var(--home-page);
  font-family: "SF Pro Rounded", "Avenir Next", "Trebuchet MS", sans-serif;
}

.page-container {
  width: min(calc(100% - (var(--page-padding) * 2)), var(--container-width));
  max-width: var(--container-width);
}

.home-view {
  background: var(--home-page);
}

.site-header,
.site-header.is-scrolled {
  height: 96px;
  background: #fff;
  border: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header {
  box-shadow: none;
}

.site-header.is-scrolled {
  box-shadow: 0 6px 22px rgba(18, 56, 96, 0.06);
}

.site-header .header-inner {
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 24px;
}

.home-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  align-self: stretch;
  transform: translateY(12px);
}

.home-logo {
  width: 172px;
  height: auto;
  display: block;
  object-fit: contain;
}

.header-nav {
  justify-self: center;
  gap: 30px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.desktop-nav .header-nav__link {
  min-height: 52px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--home-navy);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 15px;
  line-height: 1;
  font-weight: 750;
}

.desktop-nav .header-nav__link svg {
  width: 21px;
  height: 21px;
  stroke-width: 2;
}

.desktop-nav .header-nav__link:hover,
.desktop-nav .header-nav__link.is-active {
  color: var(--home-navy-2);
  background: transparent;
  box-shadow: none;
}

.desktop-nav .header-nav__link.is-active::after,
.desktop-nav .header-nav__link.is-active::before {
  display: none;
}

.header-actions {
  justify-self: end;
  gap: 14px;
}

.home-search-button,
.home-watch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  transition: transform 150ms var(--ease), background 150ms var(--ease);
}

.home-search-button {
  width: 56px;
  height: 56px;
  padding: 0;
  color: var(--home-navy);
  background: #f3f7fb;
  border-radius: 18px;
}

.home-search-button:hover {
  background: #eaf1f8;
  transform: translateY(-1px);
}

.home-search-button svg {
  width: 25px;
  height: 25px;
}

.home-watch-button {
  height: 56px;
  padding: 0 26px;
  gap: 10px;
  color: #fff;
  background: var(--home-orange);
  border-radius: 18px;
  font-size: 15px;
  font-weight: 800;
}

.home-watch-button:hover {
  background: var(--home-orange-hover);
  transform: translateY(-1px);
}

.home-watch-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke-width: 1.8;
}

.menu-toggle {
  display: none;
}

.home-hero-section {
  padding: 34px 0 0;
  overflow: clip;
}

.home-hero-grid {
  display: grid;
  grid-template-columns: minmax(430px, 0.78fr) minmax(660px, 1.22fr);
  gap: 54px;
  align-items: center;
}

.home-hero-copy {
  position: relative;
  z-index: 2;
  padding-left: 16px;
  transform: translateY(-34px);
}

.home-burst {
  position: absolute;
  left: 0;
  top: -16px;
  width: 24px;
  height: 24px;
  margin: 0;
  display: block;
}

.home-burst i {
  position: absolute;
  width: 3px;
  height: 10px;
  background: var(--home-orange);
  border-radius: 999px;
}

.home-burst i:first-child {
  left: 13px;
  top: 0;
  transform: rotate(-18deg);
}

.home-burst i:nth-child(2) {
  left: 6px;
  top: 4px;
  transform: rotate(-48deg);
}

.home-burst i:nth-child(3) {
  left: 2px;
  top: 12px;
  transform: rotate(-76deg);
}

.home-hero-title {
  max-width: 520px;
  margin: 0;
  color: var(--home-navy);
  font-family: inherit;
  font-size: clamp(56px, 5vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.home-hero-title--art {
  position: relative;
  width: 100%;
  max-width: none;
  aspect-ratio: 1.72 / 1;
  overflow: hidden;
  line-height: 1;
}

.home-hero-title-image {
  position: absolute;
  top: 72%;
  left: 50%;
  width: 155%;
  max-width: none;
  height: auto;
  display: block;
  transform: translate(-50%, -50%);
}

.home-hero-description {
  max-width: 450px;
  margin: 28px 0 0;
  color: var(--home-text);
  font-size: 18px;
  line-height: 1.55;
  font-weight: 500;
}

.home-hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 18px;
}

.home-primary-cta,
.home-secondary-cta {
  min-height: 62px;
  padding: 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 150ms var(--ease), background 150ms var(--ease), box-shadow 150ms var(--ease);
}

.home-primary-cta {
  color: #fff;
  background: var(--home-orange);
  border: 0;
}

.home-primary-cta:hover {
  background: var(--home-orange-hover);
  transform: translateY(-2px);
}

.home-secondary-cta {
  color: var(--home-navy);
  background: #fff;
  border: 1px solid #e3eaf2;
  box-shadow: var(--home-shadow-soft);
}

.home-secondary-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(18, 56, 96, 0.12);
}

.home-primary-cta svg,
.home-secondary-cta svg {
  width: 25px;
  height: 25px;
}

.home-primary-cta svg {
  fill: currentColor;
}

.home-hero-visual {
  position: relative;
  z-index: 1;
  padding-bottom: 0;
  isolation: isolate;
}

.home-carousel-backdrop {
  position: absolute;
  inset: -32px -22px -18px -28px;
  z-index: -1;
  background: var(--home-sky);
  border-radius: 43% 57% 46% 54% / 54% 43% 57% 46%;
}

.home-hero-visual .hero-carousel {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1.58 / 1;
  overflow: hidden;
  background: var(--home-sky);
  border: 0;
  border-radius: 34px;
  box-shadow: var(--home-shadow);
}

.hero-carousel__viewport,
.hero-carousel-slide,
.hero-carousel-slide picture {
  position: absolute;
  inset: 0;
}

.hero-carousel-slide picture {
  display: block;
}

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

.hero-carousel__question {
  top: 22px;
  right: 22px;
  max-width: 290px;
  padding: 11px 16px;
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr);
  gap: 2px 9px;
  color: var(--home-navy);
  background: rgba(255, 255, 255, 0.93);
  border: 0;
  border-radius: 17px;
  box-shadow: 0 8px 24px rgba(19, 50, 85, 0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  text-align: left;
}

.hero-carousel__question-accent {
  grid-row: 1 / 3;
  align-self: center;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.hero-carousel__question small {
  color: var(--home-muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 650;
}

.hero-carousel__question strong {
  overflow: hidden;
  color: var(--home-navy);
  font-size: 15px;
  line-height: 1.25;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-carousel__arrow {
  top: 50%;
  width: 48px;
  height: 48px;
  color: var(--home-navy);
  background: rgba(255, 255, 255, 0.9);
  border: 0;
  border-radius: 16px;
  box-shadow: var(--home-shadow-soft);
  opacity: 0.9;
}

.hero-carousel__arrow--prev {
  left: 18px;
}

.hero-carousel__arrow--next {
  right: 18px;
}

.hero-carousel-status {
  left: 50%;
  bottom: 18px;
  min-height: 42px;
  padding: 4px 6px 4px 12px;
  gap: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: 0 5px 18px rgba(18, 56, 96, 0.08);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.hero-carousel-count {
  text-shadow: 0 1px 7px rgba(6, 42, 97, 0.55);
}

.carousel-dot {
  width: 34px;
  height: 32px;
}

.carousel-dot::before,
.carousel-dot.is-active::before {
  width: 26px;
  height: 3px;
}

.carousel-dot::before {
  background: rgba(255, 255, 255, 0.48);
}

.carousel-dot.is-active::before {
  background: #fff;
  transform: scaleX(1.08);
}

.hero-carousel-pause {
  width: 36px;
  height: 36px;
  color: var(--home-navy);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 14px rgba(18, 56, 96, 0.12);
}

.hero-carousel-pause:hover {
  background: #fff;
}

.home-feature-strip {
  position: relative;
  z-index: 5;
  margin-top: 28px;
  padding: 25px 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fff;
  border-radius: 26px;
  box-shadow: var(--home-shadow);
}

.home-feature-strip article {
  min-width: 0;
  padding: 0 26px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.home-feature-strip article:first-child {
  padding-left: 0;
}

.home-feature-strip article:last-child {
  padding-right: 0;
}

.home-feature-strip article + article {
  border-left: 1px solid var(--home-line);
}

.home-feature-icon {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 21px;
  box-shadow: inset 0 -5px 10px rgba(6, 42, 97, 0.08);
}

.home-feature-icon.is-blue { background: var(--home-blue); }
.home-feature-icon.is-yellow { background: var(--home-yellow); }
.home-feature-icon.is-green { background: var(--home-green); }
.home-feature-icon.is-violet { background: var(--home-violet); }

.home-feature-icon svg {
  width: 34px;
  height: 34px;
  stroke-width: 2;
}

.home-feature-icon.is-image {
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.home-feature-icon.is-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.home-feature-strip h2 {
  margin: 0;
  color: var(--home-navy);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 850;
}

.home-feature-strip p {
  margin: 6px 0 0;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.45;
}

.home-popular {
  padding: 40px 0 14px;
  background: #fff;
}

.home-section-heading {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.home-section-heading > div {
  position: relative;
  display: flex;
  align-items: center;
}

.home-mini-burst {
  position: relative;
  width: 24px;
  height: 24px;
  margin-right: 12px;
  flex: 0 0 24px;
}

.home-mini-burst i {
  position: absolute;
  width: 3px;
  height: 10px;
  background: var(--home-orange);
  border-radius: 999px;
}

.home-mini-burst i:first-child {
  left: 13px;
  top: 0;
  transform: rotate(-18deg);
}

.home-mini-burst i:nth-child(2) {
  left: 6px;
  top: 4px;
  transform: rotate(-48deg);
}

.home-mini-burst i:nth-child(3) {
  left: 2px;
  top: 12px;
  transform: rotate(-76deg);
}

.home-section-heading h2 {
  margin: 0;
  color: var(--home-navy);
  font-size: 25px;
  line-height: 1.2;
  font-weight: 900;
}

.home-section-heading button {
  min-height: 46px;
  padding: 0 19px;
  color: var(--home-navy);
  background: #eef7ff;
  border: 0;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 800;
}

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

.home-story-card,
.home-story-card button {
  min-width: 0;
}

.home-story-card button {
  position: relative;
  width: 100%;
  aspect-ratio: 1.65 / 1;
  padding: 0;
  display: block;
  overflow: hidden;
  background: var(--home-panel);
  border: 0;
  border-radius: 22px;
  box-shadow: var(--home-shadow-soft);
  text-align: left;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease);
}

.home-story-card button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(18, 56, 96, 0.14);
}

.home-story-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.home-story-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(6, 42, 97, 0.76) 0%, rgba(6, 42, 97, 0.2) 48%, transparent 70%);
  pointer-events: none;
}

.home-story-card h3 {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 1;
  width: min(62%, 210px);
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
  font-weight: 850;
}

.home-story-play {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--home-navy);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 7px 20px rgba(18, 56, 96, 0.15);
}

.home-story-play svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.home-discovery-teaser {
  padding: 0 0 22px;
  background: #fff;
}

.home-discovery-inner {
  position: relative;
  min-height: 92px;
  padding: 20px 150px 20px 180px;
  display: grid;
  grid-template-columns: auto minmax(280px, 1fr);
  align-items: center;
  gap: 10px 40px;
  overflow: hidden;
  color: var(--home-navy);
  background: #eaf6ff;
  border-radius: 24px;
}

.home-discovery-inner h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 900;
}

.home-discovery-inner p {
  margin: 0;
  color: var(--home-text);
  font-size: 15px;
  line-height: 1.45;
}

.home-teaser-compass,
.home-teaser-search,
.home-teaser-star {
  position: absolute;
}

.home-teaser-compass {
  left: 52px;
  width: 70px;
  height: 70px;
  color: var(--home-navy);
  transform: rotate(-10deg);
}

.home-teaser-search {
  right: 110px;
  width: 48px;
  height: 48px;
  color: var(--home-blue);
  transform: rotate(-13deg);
}

.home-teaser-star {
  right: 44px;
  width: 42px;
  height: 42px;
  color: var(--home-yellow);
  fill: currentColor;
  transform: rotate(12deg);
}

body.is-home .how-section,
body.is-home .home-library,
body.is-home .about-section,
body.is-home .site-footer,
body.is-home .mobile-bottom-nav {
  display: none !important;
}

@media (max-width: 1240px) {
  .site-header .header-inner {
    grid-template-columns: 185px minmax(0, 1fr) auto;
  }

  .home-logo {
    width: 154px;
  }

  .header-nav {
    gap: 20px;
  }

  .desktop-nav .header-nav__link {
    gap: 6px;
    font-size: 14px;
  }

  .desktop-nav .header-nav__link svg {
    width: 19px;
    height: 19px;
  }

  .home-hero-grid {
    grid-template-columns: minmax(390px, 0.76fr) minmax(560px, 1.24fr);
    gap: 40px;
  }

  .home-hero-title {
    font-size: clamp(56px, 5.8vw, 72px);
  }

  .home-feature-strip article {
    padding-inline: 18px;
    gap: 13px;
  }

  .home-feature-icon {
    width: 60px;
    height: 60px;
    flex-basis: 60px;
    border-radius: 18px;
  }
}

@media (max-width: 1000px) {
  :root {
    --page-padding: 24px;
  }

  .site-header,
  .site-header.is-scrolled {
    height: 84px;
  }

  .site-header .header-inner {
    grid-template-columns: 1fr auto;
  }

  .home-logo {
    width: 150px;
  }

  .desktop-nav,
  .home-watch-button {
    display: none;
  }

  .menu-toggle {
    width: 52px;
    height: 52px;
    display: grid;
    color: var(--home-navy);
    background: #f3f7fb;
    border-radius: 18px;
  }

  .mobile-menu {
    top: 84px;
    color: var(--home-navy);
    background: #fff;
    border-top: 1px solid var(--home-line);
    box-shadow: var(--home-shadow-soft);
  }

  .mobile-menu .home-watch-button {
    display: inline-flex;
  }

  .home-hero-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .home-hero-copy {
    max-width: 620px;
    transform: none;
  }

  .home-hero-title {
    font-size: clamp(62px, 8vw, 78px);
  }

  .home-hero-visual {
    padding-bottom: 0;
  }

  .home-feature-strip {
    margin-top: 22px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }

  .home-feature-strip article {
    padding: 18px;
  }

  .home-feature-strip article:first-child {
    padding-left: 18px;
  }

  .home-feature-strip article:nth-child(odd) {
    border-left: 0;
  }

  .home-feature-strip article:nth-child(n + 3) {
    border-top: 1px solid var(--home-line);
  }

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

@media (max-width: 720px) {
  :root {
    --page-padding: 16px;
  }

  .site-header,
  .site-header.is-scrolled {
    height: 78px;
  }

  .home-logo {
    width: 132px;
  }

  .home-search-button,
  .menu-toggle {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .mobile-menu {
    top: 78px;
  }

  .home-hero-section {
    padding-top: 26px;
  }

  .home-hero-copy {
    padding-left: 0;
  }

  .home-burst {
    left: -8px;
    top: -14px;
    margin: 0;
    transform: scale(0.85);
    transform-origin: center;
  }

  .home-hero-title {
    font-size: clamp(50px, 14.8vw, 64px);
    line-height: 0.94;
  }

  .home-hero-description {
    margin-top: 22px;
    font-size: 16px;
  }

  .home-hero-description br {
    display: none;
  }

  .home-hero-actions {
    margin-top: 26px;
    display: grid;
    gap: 12px;
  }

  .home-primary-cta,
  .home-secondary-cta {
    width: 100%;
    min-height: 58px;
  }

  .home-hero-visual .hero-carousel {
    aspect-ratio: 4 / 5;
    border-radius: 26px;
  }

  .home-carousel-backdrop {
    inset: -18px -8px -12px;
  }

  .hero-carousel__question {
    top: 14px;
    right: 14px;
    max-width: calc(100% - 28px);
  }

  .hero-carousel__question strong {
    font-size: 13px;
  }

  .hero-carousel__arrow {
    width: 46px;
    height: 46px;
    border-radius: 15px;
  }

  .hero-carousel__arrow--prev { left: 12px; }
  .hero-carousel__arrow--next { right: 12px; }

  .hero-carousel-status {
    bottom: 12px;
  }

  .hero-carousel-count {
    display: none;
  }

  .home-feature-strip {
    width: 100%;
    margin-top: 18px;
    padding: 14px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    border-radius: 22px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .home-feature-strip::-webkit-scrollbar {
    display: none;
  }

  .home-feature-strip article,
  .home-feature-strip article:first-child {
    min-width: 270px;
    padding: 12px;
    border: 0;
    scroll-snap-align: start;
  }

  .home-popular {
    padding-top: 34px;
  }

  .home-section-heading {
    align-items: flex-end;
  }

  .home-section-heading h2 {
    font-size: 22px;
  }

  .home-section-heading button {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .home-popular-grid {
    margin-right: calc(var(--page-padding) * -1);
    padding-right: var(--page-padding);
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .home-popular-grid::-webkit-scrollbar {
    display: none;
  }

  .home-story-card {
    min-width: min(82vw, 310px);
    scroll-snap-align: start;
  }

  .home-discovery-inner {
    min-height: 160px;
    padding: 26px 68px 26px 28px;
    display: block;
  }

  .home-discovery-inner h2 {
    font-size: 21px;
  }

  .home-discovery-inner p {
    margin-top: 8px;
    font-size: 14px;
  }

  .home-teaser-compass {
    display: none;
  }

  .home-teaser-search {
    right: 22px;
    bottom: 32px;
    width: 38px;
    height: 38px;
  }

  .home-teaser-star {
    right: 24px;
    top: 22px;
    width: 30px;
    height: 30px;
  }
}

/* Stories catalog redesign v27 */

body.is-library {
  --stories-page: #ffffff;
  --stories-navy: #062a61;
  --stories-navy-hover: #0a356f;
  --stories-orange: #ff6a00;
  --stories-orange-hover: #ea6000;
  --stories-blue: #2f80ed;
  --stories-blue-soft: #eaf4ff;
  --stories-green: #0c8f73;
  --stories-green-soft: #e5f5ef;
  --stories-yellow: #ffb21a;
  --stories-violet: #7055d9;
  --stories-violet-soft: #f0ebff;
  --stories-muted: #62758f;
  --stories-line: #e2eaf3;
  --stories-card: #ffffff;
  --stories-cream: #fffdf8;
  --stories-shadow-card: 0 10px 28px rgba(21, 58, 96, 0.08);
  --stories-shadow-floating: 0 16px 42px rgba(21, 58, 96, 0.12);
  color: var(--stories-navy);
  background: var(--stories-page);
  font-family: "Onest", "Manrope", "Avenir Next", system-ui, sans-serif;
}

body.is-library .site-header,
body.is-library .site-header.is-scrolled {
  height: 78px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 0;
  box-shadow: none;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

body.is-library .header-inner {
  width: min(calc(100% - 64px), 1480px);
  max-width: 1480px;
  height: 78px;
  padding-inline: 0;
}

body.is-library .home-brand {
  transform: translateY(7px);
}

body.is-library .home-logo {
  width: 148px;
}

body.is-library .desktop-nav {
  gap: 28px;
}

body.is-library .header-nav__link {
  position: relative;
  min-height: 46px;
  padding: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
}

body.is-library .header-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: transparent;
  border-radius: 999px;
}

body.is-library .header-nav__link.is-active {
  color: var(--stories-orange);
  background: transparent;
  box-shadow: none;
}

body.is-library .header-nav__link.is-active::after {
  background: var(--stories-orange);
}

body.is-library .home-search-button {
  width: 46px;
  height: 46px;
  border-radius: 15px;
}

body.is-library .home-watch-button {
  display: none;
}

body.is-library .home-watch-button:hover {
  background: var(--stories-orange-hover);
}

body.is-library .site-footer,
body.is-library .mobile-bottom-nav {
  display: none;
}

.library-view {
  min-height: calc(100vh - 78px);
  color: var(--stories-navy);
  background: var(--stories-page);
}

.stories-container {
  width: min(calc(100% - 64px), 1480px);
  margin-inline: auto;
}

.library-page {
  padding: 0 0 64px;
}

.stories-page-header {
  position: relative;
  min-height: 224px;
  padding: 34px 0 28px;
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr) 330px;
  gap: 32px;
  align-items: center;
  overflow: hidden;
}

.stories-header-copy {
  position: relative;
  z-index: 2;
}

.stories-eyebrow {
  margin: 0;
  color: var(--stories-green);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.14em;
  font-weight: 600;
  text-transform: uppercase;
}

.stories-header-copy h1 {
  margin: 0;
  color: var(--stories-navy);
  font-size: clamp(42px, 3.4vw, 46px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.stories-header-copy > p:last-child {
  max-width: 380px;
  margin: 14px 0 0;
  color: var(--stories-muted);
  font-size: 14px;
  line-height: 1.5;
}

.story-search {
  position: relative;
  z-index: 3;
  grid-column: 2;
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--stories-line);
  border-radius: 18px;
  box-shadow: var(--stories-shadow-card);
}

.story-search > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: var(--stories-navy);
}

.story-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  color: var(--stories-navy);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 14px;
}

.story-search input::placeholder {
  color: #8a9ab0;
}

.story-search:focus-within {
  border-color: rgba(47, 128, 237, 0.56);
  box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.1), var(--stories-shadow-card);
}

.story-search-clear {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--stories-muted);
  background: var(--stories-blue-soft);
  border: 0;
  border-radius: 50%;
}

.story-search-clear svg {
  width: 16px;
  height: 16px;
}

.stories-header-art {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 390px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.stories-filter-system {
  position: relative;
  z-index: 4;
}

.stories-topic-row {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.stories-topic-row::-webkit-scrollbar,
.stories-moment-filters::-webkit-scrollbar,
.stories-age-filter::-webkit-scrollbar,
.story-collections-grid::-webkit-scrollbar {
  display: none;
}

.stories-filter-divider {
  height: 1px;
  margin: 12px 0;
  background: var(--stories-line);
}

.stories-filter-pill {
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  color: var(--stories-navy);
  background: #fff;
  border: 1px solid var(--stories-line);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  font-weight: 500;
  white-space: nowrap;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.stories-filter-pill:hover {
  border-color: #b9c9db;
}

.stories-filter-pill.is-selected {
  background: var(--stories-blue-soft);
  border-color: rgba(47, 128, 237, 0.28);
}

.stories-filter-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: block;
  object-fit: contain;
  background: transparent;
  user-select: none;
  transition: transform 150ms ease;
}

.stories-context-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
}

.stories-moment-filters {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.stories-moment-pill {
  min-height: 40px;
  padding-inline: 14px;
}

.stories-moment-pill .stories-filter-icon {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
}

.stories-age-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stories-age-wrap > span {
  color: var(--stories-muted);
  font-size: 11px;
  white-space: nowrap;
}

.stories-age-filter {
  display: inline-flex;
  align-items: center;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--stories-line);
  border-radius: 999px;
  scrollbar-width: none;
}

.stories-age-filter button {
  min-width: 52px;
  height: 40px;
  padding: 0 13px;
  flex: 0 0 auto;
  color: var(--stories-navy);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.stories-age-filter button.is-active {
  color: #fff;
  background: var(--stories-navy);
  font-weight: 600;
}

.stories-sort {
  position: relative;
  z-index: 8;
}

.stories-sort summary {
  min-width: 182px;
  height: 42px;
  padding: 0 14px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--stories-navy);
  background: #fff;
  border: 1px solid var(--stories-line);
  border-radius: 999px;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.stories-sort summary::-webkit-details-marker {
  display: none;
}

.stories-sort summary svg {
  width: 16px;
  height: 16px;
  transition: transform 150ms ease;
}

.stories-sort[open] summary svg {
  transform: rotate(180deg);
}

.stories-sort-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  padding: 7px;
  display: grid;
  gap: 3px;
  background: #fff;
  border: 1px solid var(--stories-line);
  border-radius: 16px;
  box-shadow: var(--stories-shadow-floating);
}

.stories-sort-menu button {
  min-height: 40px;
  padding: 0 12px;
  color: var(--stories-navy);
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
}

.stories-sort-menu button:hover,
.stories-sort-menu button[aria-checked="true"] {
  background: var(--stories-blue-soft);
}

.stories-spotlight-row {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 460px minmax(0, 1fr);
  gap: 26px;
  align-items: end;
}

.stories-spotlight-row.has-no-progress {
  grid-template-columns: 1fr;
}

.continue-story-card {
  min-height: 116px;
  padding: 13px;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  background: var(--stories-blue-soft);
  border-radius: 22px;
}

.continue-story-media {
  position: relative;
  height: 92px;
  overflow: hidden;
  background: #dcecff;
  border-radius: 14px;
}

.continue-story-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.continue-story-media > button {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--stories-navy);
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 5px 12px rgba(6, 42, 97, 0.16);
}

.continue-story-media > button svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.continue-story-copy {
  min-width: 0;
}

.continue-story-copy > span {
  display: block;
  color: var(--stories-blue);
  font-size: 11px;
  font-weight: 500;
}

.continue-story-copy h2 {
  margin: 6px 0 0;
  color: var(--stories-navy);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
}

.continue-progress {
  height: 5px;
  margin-top: 14px;
  overflow: hidden;
  background: #cbdcf1;
  border-radius: 999px;
}

.continue-progress i {
  height: 100%;
  display: block;
  background: var(--stories-navy);
  border-radius: inherit;
}

.continue-story-copy small {
  margin-top: 7px;
  display: block;
  color: var(--stories-muted);
  font-size: 10px;
}

.continue-story-action {
  min-height: 42px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--stories-navy);
  background: #fff;
  border: 1px solid #d7e4f2;
  border-radius: 15px;
  box-shadow: 0 6px 16px rgba(21, 58, 96, 0.08);
  font-size: 10.5px;
  font-weight: 500;
}

.continue-story-action svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.story-collections h2 {
  margin: 0 0 10px;
  color: var(--stories-navy);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
}

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

.story-collection-card {
  position: relative;
  min-width: 0;
  min-height: 92px;
  padding: 16px;
  display: block;
  overflow: hidden;
  color: var(--stories-navy);
  border: 0;
  border-radius: 18px;
  text-align: left;
  transition: transform 160ms ease;
}

.story-collection-card:hover {
  transform: translateY(-2px);
}

.story-collection-card.is-green { background: var(--stories-green-soft); }
.story-collection-card.is-blue { background: var(--stories-blue-soft); }
.story-collection-card.is-violet { background: var(--stories-violet-soft); }

.story-collection-card > span {
  position: relative;
  z-index: 2;
  max-width: 108px;
  display: grid;
  gap: 8px;
}

.story-collection-card strong {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
}

.story-collection-card small {
  color: var(--stories-muted);
  font-size: 10px;
}

.story-collection-card img {
  position: absolute;
  right: -8px;
  bottom: -18px;
  width: 98px;
  height: 98px;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
}

.stories-catalog {
  margin-top: 26px;
}

.stories-catalog-header {
  min-height: 0;
}

.library-view .library-grid,
.stories-skeleton-grid {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.library-view .story-catalog-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--stories-card);
  border: 1px solid var(--stories-line);
  border-radius: 18px;
  box-shadow: var(--stories-shadow-card);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.library-view .story-catalog-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--stories-shadow-floating);
}

.library-view .story-catalog-card .story-open {
  width: 100%;
  padding: 0;
  display: block;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
}

.library-view .story-catalog-card .story-media {
  position: relative;
  aspect-ratio: 1.62 / 1;
  overflow: hidden;
  background: var(--stories-blue-soft);
}

.library-view .story-catalog-card .story-media > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 260ms ease;
}

.library-view .story-catalog-card:hover .story-media > img {
  transform: scale(1.025);
}

.library-view .story-catalog-card .image-fallback {
  position: absolute;
  inset: 0;
  padding: 18px;
  display: none;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--stories-muted);
  background: var(--stories-blue-soft);
  text-align: center;
  font-size: 11px;
}

.library-view .story-catalog-card .image-fallback svg {
  width: 32px;
  height: 32px;
  color: var(--stories-navy);
}

.library-view .story-catalog-card .story-media.is-broken > img {
  display: none;
}

.library-view .story-catalog-card .story-media.is-broken .image-fallback {
  display: grid;
}

.library-view .story-catalog-card .story-card-copy {
  min-height: 92px;
  padding: 12px 13px 13px;
  display: flex;
  flex-direction: column;
}

.library-view .story-catalog-card h3 {
  min-height: 38px;
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--stories-navy);
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  font-weight: 600;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.library-view .story-catalog-card .story-meta {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--stories-muted);
  font-size: 10px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.library-view .story-catalog-card .story-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.library-view .story-catalog-card .story-meta svg {
  width: 13px;
  height: 13px;
  color: var(--stories-navy);
}

.library-view .story-catalog-card .story-badge {
  top: 9px;
  left: 9px;
  padding: 5px 9px;
  color: #9a5a00;
  background: #fff5d9;
  border-radius: 999px;
  font-size: 9px;
  line-height: 1;
  font-weight: 600;
}

.library-view .story-catalog-card[data-story-card="fish"] .story-badge,
.library-view .story-catalog-card[data-story-card="airplane"] .story-badge {
  color: var(--stories-green);
  background: #effbf7;
}

.library-view .story-catalog-card .favorite-button {
  top: 9px;
  right: 9px;
  z-index: 4;
  width: 38px;
  height: 38px;
  color: #e95663;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(6, 42, 97, 0.12);
}

.library-view .story-catalog-card .favorite-button svg {
  width: 18px;
  height: 18px;
}

.library-view .story-catalog-card .favorite-button.is-active svg {
  fill: currentColor;
}

.stories-load-more {
  width: min(100%, 320px);
  min-height: 52px;
  margin: 28px auto 0;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--stories-navy);
  background: #fff;
  border: 1px solid var(--stories-line);
  border-radius: 16px;
  font-size: 13px;
  font-weight: 500;
}

.stories-load-more:hover {
  border-color: #b9c9db;
  box-shadow: var(--stories-shadow-card);
}

.stories-load-more svg {
  width: 16px;
  height: 16px;
}

.stories-empty-state {
  min-height: 290px;
  padding: 48px 24px;
  place-items: center;
  align-content: center;
  color: var(--stories-navy);
  background: var(--stories-blue-soft);
  border-radius: 24px;
  text-align: center;
}

.stories-empty-state:not([hidden]) {
  display: grid;
}

.stories-empty-state > span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--stories-blue);
  background: #fff;
  border-radius: 16px;
}

.stories-empty-state > span svg {
  width: 24px;
  height: 24px;
}

.stories-empty-state h2 {
  margin: 16px 0 0;
  font-size: 22px;
  font-weight: 600;
}

.stories-empty-state p {
  margin: 8px 0 0;
  color: var(--stories-muted);
  font-size: 14px;
}

.stories-empty-state > div {
  margin-top: 20px;
  display: flex;
  gap: 10px;
}

.stories-skeleton-grid .story-skeleton {
  aspect-ratio: 1 / 0.86;
  border-radius: 18px;
}

body.is-library button:focus-visible,
body.is-library summary:focus-visible {
  outline: 3px solid rgba(47, 128, 237, 0.34);
  outline-offset: 3px;
}

body.is-library .story-search input:focus-visible {
  outline: 0;
}

@media (max-width: 1179px) {
  .stories-page-header {
    grid-template-columns: 370px minmax(280px, 1fr) 240px;
    gap: 24px;
  }

  .stories-header-art {
    right: -58px;
    width: 350px;
  }

  .stories-context-row {
    grid-template-columns: 1fr auto;
  }

  .stories-moment-filters {
    grid-column: 1 / -1;
  }

  .stories-spotlight-row {
    grid-template-columns: 1fr;
  }

  .story-collections-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    overflow-x: auto;
    scrollbar-width: none;
  }

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

@media (max-width: 899px) {
  body.is-library .header-inner,
  .stories-container {
    width: min(calc(100% - 32px), 1200px);
  }

  .stories-page-header {
    min-height: 238px;
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
  }

  .stories-header-copy {
    max-width: 470px;
  }

  .story-search {
    grid-column: 1;
    width: min(100%, 470px);
  }

  .stories-header-art {
    right: -55px;
    width: 320px;
    opacity: 0.92;
  }

  .stories-context-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stories-moment-filters {
    grid-column: 1;
  }

  .stories-age-wrap {
    min-width: 0;
  }

  .stories-sort {
    width: max-content;
  }

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

@media (max-width: 639px) {
  body.is-library .site-header,
  body.is-library .site-header.is-scrolled,
  body.is-library .header-inner {
    height: 72px;
  }

  body.is-library .home-brand {
    transform: translateY(5px);
  }

  body.is-library .home-logo {
    width: 126px;
  }

  body.is-library .home-search-button {
    display: none;
  }

  .stories-page-header {
    min-height: 0;
    padding: 28px 0 24px;
    gap: 22px;
  }

  .stories-header-art {
    display: none;
  }

  .stories-header-copy h1 {
    font-size: 36px;
  }

  .stories-header-copy > p:last-child {
    max-width: 335px;
    font-size: 13px;
  }

  .stories-header-copy br {
    display: none;
  }

  .story-search {
    width: 100%;
    height: 50px;
  }

  .stories-topic-row,
  .stories-moment-filters {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  .stories-filter-pill {
    min-height: 44px;
  }

  .stories-context-row {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .stories-age-wrap {
    width: 100%;
    display: grid;
    gap: 8px;
  }

  .stories-age-filter {
    width: 100%;
  }

  .stories-age-filter button {
    min-width: 64px;
    flex: 1 0 auto;
  }

  .stories-sort,
  .stories-sort summary {
    width: 100%;
  }

  .stories-sort-menu {
    position: fixed;
    left: 16px;
    right: 16px;
    top: auto;
    bottom: 16px;
    width: auto;
    padding: 12px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(6, 42, 97, 0.2);
  }

  .stories-sort-menu button {
    min-height: 48px;
  }

  .stories-spotlight-row {
    margin-top: 20px;
  }

  .continue-story-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
  }

  .continue-story-media {
    height: 82px;
  }

  .continue-story-action {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .story-collections-grid {
    margin-inline: -16px;
    padding-inline: 16px;
    grid-template-columns: repeat(3, 210px);
  }

  .library-view .library-grid,
  .stories-skeleton-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .library-view .story-catalog-card .story-card-copy {
    min-height: 88px;
  }

  .library-view .story-catalog-card h3 {
    min-height: 0;
    font-size: 16px;
  }

  .library-view .story-catalog-card .story-meta {
    margin-top: 10px;
    font-size: 11px;
  }

  .stories-empty-state > div {
    width: 100%;
    flex-direction: column;
  }

  .stories-empty-state .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-search-button,
  .home-watch-button,
  .home-primary-cta,
  .home-secondary-cta,
  .home-carousel-thumb,
  .home-story-card button {
    transition: none !important;
  }
}

/* Stable header logo across every page and scroll state */
.site-header,
.site-header.is-scrolled {
  transition:
    height 180ms var(--ease),
    background 180ms var(--ease),
    box-shadow 180ms var(--ease),
    backdrop-filter 180ms var(--ease);
}

.site-header .home-brand,
body.is-library .home-brand,
body.is-reading .home-brand {
  align-self: center;
  transform: none;
}

.site-header .home-logo,
body.is-library .home-logo,
body.is-reading .home-logo {
  width: auto;
  height: 68px;
  max-width: 150px;
  transition: height 180ms var(--ease), max-width 180ms var(--ease);
}

.site-header.is-scrolled {
  height: 72px;
}

.site-header.is-scrolled .home-logo {
  height: 54px;
  max-width: 120px;
}

body.is-library .site-header.is-scrolled,
body.is-reading .site-header.is-scrolled,
body.is-library .site-header.is-scrolled .header-inner,
body.is-reading .site-header.is-scrolled .header-inner {
  height: 72px;
}

body.is-reading .home-watch-button {
  display: none;
}

@media (max-width: 1000px) {
  .site-header .home-logo,
  body.is-library .home-logo,
  body.is-reading .home-logo {
    height: 58px;
    max-width: 132px;
  }

  .site-header.is-scrolled .home-logo {
    height: 48px;
    max-width: 108px;
  }
}

@media (max-width: 639px) {
  .site-header .home-logo,
  body.is-library .home-logo,
  body.is-reading .home-logo {
    height: 52px;
    max-width: 118px;
  }
}

/* Homepage sections after the approved hero */
:root {
  --after-page: #fff;
  --after-navy: #062a61;
  --after-orange: #ff6a00;
  --after-orange-hover: #e95f00;
  --after-blue: #2f80ed;
  --after-blue-soft: #eaf4ff;
  --after-green: #59b84a;
  --after-green-soft: #eff9ec;
  --after-yellow: #ffb21a;
  --after-violet: #7657e8;
  --after-violet-soft: #f3efff;
  --after-pink: #f35c83;
  --after-pink-soft: #fff0f4;
  --after-muted: #62758f;
  --after-line: #e3ebf4;
  --after-card-radius: 22px;
  --after-large-radius: 30px;
  --after-button-radius: 16px;
  --after-card-shadow: 0 10px 28px rgba(21, 58, 96, 0.08);
  --after-large-shadow: 0 18px 48px rgba(21, 58, 96, 0.11);
}

body.is-home {
  color: var(--after-navy);
  background: var(--after-page);
}

.after-hero-section,
body.is-home .home-popular {
  width: 100%;
  padding-top: 72px;
  color: var(--after-navy);
  background: var(--after-page);
}

.after-hero-container {
  width: min(calc(100% - 64px), 1200px);
  margin-inline: auto;
}

.after-hero-heading {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
}

.after-hero-heading > img {
  width: 30px;
  height: 30px;
  margin-top: 2px;
}

.after-hero-heading h2 {
  margin: 0;
  color: var(--after-navy);
  font-size: clamp(30px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.after-hero-heading p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--after-muted);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
}

.after-hero-heading--action {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
}

.after-hero-heading--action button {
  min-height: 44px;
  padding: 0 4px;
  color: var(--after-blue);
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 500;
}

.after-hero-heading--action button:hover {
  color: var(--after-orange);
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.home-category-card {
  --category-color: var(--after-green);
  --category-border: #c8e4c2;
  --category-soft: var(--after-green-soft);
  position: relative;
  min-height: 305px;
  display: block;
  overflow: hidden;
  color: var(--after-navy);
  background: var(--category-soft);
  border: 1px solid var(--category-border);
  border-radius: var(--after-card-radius);
  box-shadow: var(--after-card-shadow);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-category-card.is-animals {
  --category-color: #ec851b;
  --category-border: #f3cf9f;
  --category-soft: #fff7e9;
}

.home-category-card.is-space {
  --category-color: var(--after-violet);
  --category-border: #d5cafb;
  --category-soft: var(--after-violet-soft);
}

.home-category-card.is-body {
  --category-color: var(--after-pink);
  --category-border: #f7c7d4;
  --category-soft: var(--after-pink-soft);
}

.home-category-card.is-technology {
  --category-color: var(--after-blue);
  --category-border: #bcd9fb;
  --category-soft: var(--after-blue-soft);
}

.home-category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--after-large-shadow);
}

.home-category-card:focus-visible {
  outline: 3px solid rgba(47, 128, 237, 0.3);
  outline-offset: 4px;
}

.home-category-copy {
  position: relative;
  z-index: 2;
  padding: 20px 18px 0;
  display: grid;
  gap: 10px;
}

.home-category-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--category-color);
}

.home-category-title img {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
}

.home-category-title strong {
  font-size: 18px;
  line-height: 1.2;
  font-weight: 600;
}

.home-category-copy small {
  max-width: 165px;
  color: var(--after-navy);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 400;
}

.home-category-art {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  width: 100%;
  height: 188px;
  object-fit: cover;
  object-position: center bottom;
}

body.is-home .home-popular {
  margin: 0;
  padding-bottom: 0;
}

body.is-home .home-popular-grid {
  margin-top: 28px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

body.is-home .home-story-card {
  min-width: 0;
}

body.is-home .home-story-card button {
  min-height: 214px;
  border-radius: var(--after-card-radius);
  box-shadow: var(--after-card-shadow);
}

body.is-home .home-story-card h3 {
  font-weight: 600;
}

.home-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.home-benefit-card {
  min-height: 154px;
  padding: 23px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  background: #fff8eb;
  border: 1px solid #f5dab1;
  border-radius: var(--after-card-radius);
}

.home-benefit-card.is-tone-2,
.home-benefit-card.is-tone-4 {
  background: #edf6ff;
  border-color: #cce2fb;
}

.home-benefit-card.is-tone-3 {
  background: var(--after-green-soft);
  border-color: #cfe8c9;
}

.home-benefit-card > img {
  width: 52px;
  height: 52px;
}

.home-benefit-card h3 {
  margin: 2px 0 8px;
  color: var(--after-navy);
  font-size: 16px;
  line-height: 1.3;
  font-weight: 600;
}

.home-benefit-card p {
  margin: 0;
  color: var(--after-muted);
  font-size: 13px;
  line-height: 1.52;
  font-weight: 400;
}

.custom-story-panel {
  position: relative;
  min-height: 275px;
  padding: 34px 36px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  overflow: hidden;
  background: var(--after-blue-soft);
  border-radius: var(--after-large-radius);
  box-shadow: var(--after-card-shadow);
}

.custom-story-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.custom-story-copy h2 {
  margin: 0;
  color: var(--after-navy);
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.custom-story-copy > p {
  max-width: 580px;
  margin: 12px 0 0;
  color: var(--after-muted);
  font-size: 15px;
  line-height: 1.55;
}

.custom-story-steps {
  max-width: 690px;
  margin: 24px 0 18px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(47, 128, 237, 0.12);
  border-radius: 15px;
  box-shadow: 0 7px 20px rgba(21, 58, 96, 0.06);
}

.custom-story-steps li {
  min-height: 68px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--after-navy);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
}

.custom-story-steps li + li {
  border-left: 1px solid var(--after-line);
}

.custom-story-steps img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.custom-story-art {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: min(46%, 500px);
  height: auto;
  object-fit: contain;
  object-position: right bottom;
  clip-path: inset(18px 0 0 68px);
}

.after-hero-button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--after-button-radius);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: transform 140ms ease, background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.after-hero-button:hover {
  transform: translateY(-1px);
}

.after-hero-button:active {
  transform: translateY(0);
}

.after-hero-button:focus-visible {
  outline: 3px solid rgba(47, 128, 237, 0.28);
  outline-offset: 3px;
}

.after-hero-button--primary {
  color: #fff;
  background: var(--after-orange);
  border: 1px solid var(--after-orange);
  box-shadow: 0 9px 20px rgba(255, 106, 0, 0.2);
}

.after-hero-button--primary:hover {
  background: var(--after-orange-hover);
  border-color: var(--after-orange-hover);
}

.after-hero-button--secondary {
  color: var(--after-blue);
  background: #fff;
  border: 1px solid var(--after-blue);
}

.home-format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 28px;
}

.home-format-card {
  position: relative;
  min-height: 218px;
  padding: 24px;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 0 20px;
  background: #fffaf5;
  border: 1.5px solid #f4a866;
  border-radius: var(--after-card-radius);
}

.home-format-card.is-library {
  background: #f7fbff;
  border-color: var(--after-blue);
}

.home-format-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  padding: 5px 12px;
  color: #fff;
  background: var(--after-blue);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  transform: translateX(-50%);
}

.home-format-icon {
  width: 84px;
  height: 84px;
  grid-row: 1 / span 2;
  object-fit: contain;
}

.home-format-copy h3 {
  margin: 0;
  color: var(--after-navy);
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
}

.home-format-price {
  margin: 6px 0 12px;
  color: var(--after-navy);
  font-variant-numeric: tabular-nums;
}

.home-format-price strong {
  font-size: 24px;
  font-weight: 700;
}

.home-format-price span {
  margin-left: 5px;
  color: var(--after-muted);
  font-size: 12px;
}

.home-format-copy ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
  list-style: none;
}

.home-format-copy li {
  position: relative;
  padding-left: 18px;
  color: var(--after-muted);
  font-size: 12px;
  line-height: 1.4;
}

.home-format-copy li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--after-blue);
  font-weight: 700;
}

.home-format-card > .after-hero-button {
  grid-column: 2;
  justify-self: start;
  margin-top: 18px;
}

.home-final-cta {
  padding-bottom: 72px;
}

.final-cta-panel {
  min-height: 170px;
  padding: 0 28px 0 0;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  overflow: hidden;
  background: var(--after-blue-soft);
  border-radius: var(--after-large-radius);
}

.final-cta-panel > img {
  width: 230px;
  height: 110px;
  object-fit: cover;
  object-position: center bottom;
  align-self: end;
  clip-path: inset(0 0 12px);
}

.final-cta-panel h2 {
  margin: 0;
  color: var(--after-navy);
  font-size: clamp(24px, 2.4vw, 31px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.final-cta-panel p {
  max-width: 560px;
  margin: 9px 0 0;
  color: var(--after-muted);
  font-size: 14px;
  line-height: 1.5;
}

.final-cta-action {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.final-cta-action small {
  color: var(--after-muted);
  font-size: 11px;
}

.custom-story-dialog {
  width: min(calc(100% - 32px), 620px);
  max-height: min(860px, calc(100dvh - 32px));
  padding: 32px;
  overflow: auto;
  color: var(--after-navy);
  background: #fff;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 30px 90px rgba(6, 42, 97, 0.24);
}

.custom-story-dialog::backdrop {
  background: rgba(6, 31, 69, 0.48);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.custom-story-dialog .dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.custom-story-dialog-copy > p {
  margin: 0 0 8px;
  color: var(--after-orange);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.custom-story-dialog-copy h2,
.custom-story-success h2 {
  margin: 0;
  color: var(--after-navy);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
}

.custom-story-dialog-copy > span {
  max-width: 500px;
  margin-top: 12px;
  display: block;
  color: var(--after-muted);
  font-size: 14px;
  line-height: 1.55;
}

#custom-story-form {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}

#custom-story-form > label,
.custom-story-form-row label {
  display: grid;
  gap: 7px;
  color: var(--after-navy);
  font-size: 13px;
  font-weight: 500;
}

#custom-story-form input,
#custom-story-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  color: var(--after-navy);
  background: #fff;
  border: 1px solid var(--after-line);
  border-radius: 11px;
  font: inherit;
  font-size: 15px;
}

#custom-story-form input:focus,
#custom-story-form select:focus {
  border-color: var(--after-blue);
  outline: 3px solid rgba(47, 128, 237, 0.14);
}

.custom-story-form-row {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 14px;
}

#custom-story-form .custom-story-consent {
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  color: var(--after-muted);
  font-weight: 400;
}

#custom-story-form .custom-story-consent input {
  width: 20px;
  min-height: 20px;
  margin: 0;
}

#custom-story-form > .after-hero-button {
  justify-self: start;
}

.custom-story-success {
  padding: 28px 0 8px;
  text-align: center;
}

.custom-story-success > span {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--after-green);
  border-radius: 50%;
  font-size: 26px;
}

.custom-story-success p {
  margin: 12px auto 22px;
  color: var(--after-muted);
}

body.is-home .site-footer {
  display: block !important;
  color: var(--after-navy);
  background: #f7faff;
  border-top: 1px solid var(--after-line);
}

body.is-home .site-footer .footer-grid,
body.is-home .site-footer .footer-bottom {
  width: min(calc(100% - 64px), 1200px);
}

body.is-home .site-footer button,
body.is-home .site-footer span,
body.is-home .site-footer p {
  color: var(--after-muted);
}

@media (max-width: 1199px) {
  .home-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-category-card {
    min-height: 340px;
  }

  .home-category-art {
    height: 225px;
  }

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

  .custom-story-panel {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

  .custom-story-art {
    width: 420px;
  }

  .final-cta-panel {
    grid-template-columns: 200px minmax(0, 1fr) auto;
    gap: 20px;
  }

  .final-cta-panel > img {
    width: 200px;
  }
}

@media (max-width: 899px) {
  .home-category-grid {
    width: calc(100vw - 32px);
    grid-auto-flow: column;
    grid-auto-columns: 250px;
    grid-template-columns: none;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .home-category-grid::-webkit-scrollbar {
    display: none;
  }

  .home-category-card {
    min-height: 330px;
    scroll-snap-align: start;
  }

  body.is-home .home-popular-grid {
    width: calc(100vw - 32px);
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 46vw);
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body.is-home .home-story-card {
    scroll-snap-align: start;
  }

  .custom-story-panel {
    min-height: 530px;
    padding: 270px 28px 28px;
    display: block;
  }

  .custom-story-art {
    top: 0;
    right: 50%;
    bottom: auto;
    width: min(540px, 94%);
    transform: translateX(50%);
  }

  .custom-story-copy {
    max-width: none;
  }

  .home-format-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .home-format-icon {
    width: 72px;
    height: 72px;
  }

  .final-cta-panel {
    padding-right: 22px;
    grid-template-columns: 160px minmax(0, 1fr);
  }

  .final-cta-panel > img {
    width: 160px;
  }

  .final-cta-action {
    grid-column: 2;
    justify-self: start;
    justify-items: start;
    padding-bottom: 22px;
  }
}

@media (max-width: 720px) {
  .after-hero-section,
  body.is-home .home-popular {
    padding-top: 52px;
  }

  .after-hero-container {
    width: calc(100% - 32px);
  }

  .after-hero-heading h2 {
    font-size: 27px;
  }

  .after-hero-heading--action {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .after-hero-heading--action button {
    grid-column: 2;
    justify-self: start;
    margin-top: 5px;
  }

  .home-category-grid,
  body.is-home .home-popular-grid {
    width: calc(100vw - 16px);
  }

  .home-benefit-grid,
  .home-format-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-benefit-card {
    min-height: 0;
  }

  .custom-story-panel {
    min-height: 0;
    padding: 235px 20px 22px;
    border-radius: 24px;
  }

  .custom-story-copy h2 {
    font-size: 28px;
  }

  .custom-story-steps {
    grid-template-columns: 1fr;
  }

  .custom-story-steps li {
    min-height: 54px;
  }

  .custom-story-steps li + li {
    border-top: 1px solid var(--after-line);
    border-left: 0;
  }

  .custom-story-copy > .after-hero-button {
    width: 100%;
  }

  .home-format-card {
    min-height: 0;
    padding: 22px 18px;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 0 14px;
  }

  .home-format-icon {
    width: 64px;
    height: 64px;
  }

  .home-format-card > .after-hero-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .final-cta-panel {
    padding: 0 20px 22px;
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
  }

  .final-cta-panel > img {
    width: min(270px, 100%);
    height: 120px;
    margin-inline: auto;
    object-position: center bottom;
  }

  .final-cta-action {
    grid-column: 1;
    justify-self: stretch;
    justify-items: stretch;
    padding-bottom: 0;
  }

  .home-final-cta {
    padding-bottom: 52px;
  }

  .custom-story-dialog {
    padding: 28px 20px 22px;
    border-radius: 20px;
  }

  .custom-story-dialog-copy h2,
  .custom-story-success h2 {
    padding-right: 34px;
    font-size: 26px;
  }

  .custom-story-form-row {
    grid-template-columns: 1fr;
  }

  #custom-story-form > .after-hero-button {
    width: 100%;
  }

  body.is-home .site-footer .footer-grid,
  body.is-home .site-footer .footer-bottom {
    width: calc(100% - 32px);
  }
}

@media (max-width: 599px) {
  .home-category-grid {
    grid-auto-columns: 230px;
  }

  body.is-home .home-popular-grid {
    grid-auto-columns: 82vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-category-card,
  .after-hero-button {
    transition: none;
  }
}

/* Homepage refinement pass */
html {
  scroll-padding-top: 96px;
}

section[id] {
  scroll-margin-top: 96px;
}

.site-header,
.site-header.is-scrolled,
body.is-library .site-header,
body.is-library .site-header.is-scrolled,
body.is-reading .site-header,
body.is-reading .site-header.is-scrolled {
  height: 78px;
}

.site-header .header-inner,
body.is-library .header-inner,
body.is-reading .header-inner {
  height: 78px;
}

.site-header .home-logo,
body.is-library .home-logo,
body.is-reading .home-logo,
.site-header.is-scrolled .home-logo {
  width: 122px;
  height: 70px;
  max-width: 122px;
  object-fit: contain;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 22px rgba(18, 56, 96, 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.desktop-nav .header-nav__link.is-active,
body.is-library .header-nav__link.is-active {
  color: var(--after-orange);
  background: transparent;
}

.desktop-nav .header-nav__link.is-active::after,
body.is-library .header-nav__link.is-active::after {
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  background: var(--after-orange);
  border-radius: 999px;
}

.home-watch-button {
  min-height: 52px;
  border-radius: 16px;
}

.home-categories {
  padding-top: 36px;
}

.home-categories .after-hero-heading {
  position: relative;
  display: block;
}

.home-categories .after-hero-heading > img {
  position: absolute;
  top: 0;
  left: -8px;
  width: 30px;
  height: 30px;
  margin: 0;
}

.home-category-grid {
  gap: 18px;
}

@media (max-width: 1279px) {
  .home-categories .after-hero-heading > img {
    left: -4px;
  }
}

.home-category-card {
  min-height: 270px;
  border-radius: 20px;
}

.home-category-copy {
  min-height: 102px;
  padding: 17px 17px 13px;
  gap: 8px;
}

.home-category-title {
  gap: 9px;
}

.home-category-title img {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

.home-category-title strong {
  font-size: 17px;
  font-weight: 650;
}

.home-category-copy small {
  max-width: 175px;
  font-size: 13px;
  line-height: 1.4;
}

.home-category-art {
  height: 168px;
  object-position: center;
}

.home-category-card.is-technology .home-category-art {
  background: #ddecff;
}

body.is-home .home-story-card button {
  height: auto;
  min-height: 0;
  aspect-ratio: auto;
  display: block;
  overflow: hidden;
  color: var(--after-navy);
  background: #fff;
  border: 0;
  border-radius: 18px;
  box-shadow: var(--after-card-shadow);
  text-align: left;
}

.home-story-media {
  position: relative;
  aspect-ratio: 1.58 / 1;
  display: block;
  overflow: hidden;
  background: var(--after-blue-soft);
}

.home-story-media > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 180ms ease;
}

.home-story-card button:hover .home-story-media > img {
  transform: scale(1.018);
}

.home-story-media > small {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 5px 9px;
  color: #08775e;
  background: #e8fff6;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}

.home-story-shade,
.home-story-play {
  display: none !important;
}

.home-story-body {
  min-height: 96px;
  padding: 14px 16px 15px;
  display: grid;
  align-content: space-between;
  gap: 12px;
}

body.is-home .home-story-card .home-story-body h3 {
  position: static;
  margin: 0;
  color: var(--after-navy);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
  text-shadow: none;
}

.home-story-body > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-story-body small {
  color: #60748d;
  font-size: 11px;
  font-weight: 400;
}

.home-story-body i {
  color: var(--after-blue);
  font-size: 19px;
  font-style: normal;
}

.home-benefits .after-hero-container {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}

.home-benefits .after-hero-heading {
  align-self: stretch;
}

.home-benefits .after-hero-heading h2 {
  max-width: 600px;
  font-size: clamp(32px, 3.5vw, 43px);
}

.home-benefits .after-hero-heading p {
  max-width: 520px;
  color: #526985;
  font-size: 16px;
}

.home-benefits-mascot {
  width: 210px;
  height: 170px;
  margin-top: 18px;
  display: block;
  object-fit: contain;
  object-position: left bottom;
}

.home-benefit-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 0;
}

.home-benefit-card {
  min-height: 168px;
  padding: 24px;
  border: 0;
  box-shadow: 0 10px 24px rgba(21, 58, 96, 0.07);
}

.home-benefit-card p {
  color: #526985;
  font-size: 14px;
  line-height: 1.55;
}

.custom-story-panel {
  min-height: 240px;
  padding: 30px 34px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.68fr);
}

.custom-story-copy {
  max-width: 720px;
}

.custom-story-copy > p {
  max-width: 600px;
}

.custom-story-action {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.custom-story-action > span {
  color: #526985;
  font-size: 12px;
}

.custom-story-steps {
  max-width: 690px;
  margin: 22px 0 0;
  display: flex;
  gap: 24px;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.custom-story-steps li {
  min-height: 0;
  padding: 0;
  flex: 1 1 0;
  align-items: center;
  gap: 9px;
  color: #526985;
  font-size: 12px;
  font-weight: 500;
}

.custom-story-steps li + li {
  border: 0;
}

.custom-story-steps b {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  color: var(--after-blue);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 5px 14px rgba(21, 58, 96, 0.09);
  font-size: 11px;
  font-weight: 650;
}

.custom-story-art {
  top: 0;
  right: 0;
  bottom: 0;
  width: 42%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  clip-path: none;
}

.after-hero-button {
  min-height: 46px;
  padding-inline: 20px;
  border-radius: 14px;
}

.after-hero-button--blue {
  color: #fff;
  background: var(--after-blue);
  border: 1px solid var(--after-blue);
  box-shadow: 0 8px 20px rgba(47, 128, 237, 0.2);
}

.after-hero-button--blue:hover {
  background: #246fcf;
  border-color: #246fcf;
}

.custom-story-action .after-hero-button,
.home-format-card > .after-hero-button,
.final-cta-action .after-hero-button {
  min-height: 54px;
  padding-inline: 26px;
  border-radius: 16px;
  font-size: 15px;
}

.home-format-card {
  min-height: 290px;
  padding: 30px;
  grid-template-columns: 94px minmax(0, 1fr);
  background: #fff;
  border: 2px solid #f1a663;
}

.home-format-card.is-library {
  background: #fff;
  border: 2px solid #4d8fff;
}

.home-format-badge {
  top: 18px;
  right: 18px;
  left: auto;
  transform: none;
}

.home-format-price {
  margin-bottom: 8px;
}

.home-format-proof {
  margin: 0 0 12px;
  color: #b85d10;
  font-size: 12px;
  font-weight: 550;
}

.home-format-card > .after-hero-button {
  min-width: 210px;
}

.home-final-cta {
  padding-bottom: 88px;
}

.final-cta-panel {
  position: relative;
  min-height: 190px;
  padding: 28px 32px;
  grid-template-columns: 240px minmax(0, 1fr) auto;
  gap: 32px;
  border: 0;
}

.final-cta-panel > img {
  width: 230px;
  height: 150px;
  align-self: end;
  object-fit: contain;
  object-position: center bottom;
  clip-path: none;
}

.final-cta-action .after-hero-button {
  min-width: 210px;
}

body.is-home .site-footer {
  padding: 52px 0 28px;
}

body.is-home .site-footer::before,
body.is-home .site-footer::after {
  display: none !important;
  content: none !important;
}

body.is-home .site-footer .footer-grid {
  padding: 0;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 48px;
}

.footer-full-logo {
  width: max-content;
  display: block;
}

.footer-full-logo img {
  width: 132px;
  height: auto;
  display: block;
}

body.is-home .footer-brand p {
  max-width: 300px;
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.55;
}

body.is-home .footer-bottom {
  margin-top: 30px;
  padding-top: 20px;
}

@media (max-width: 1199px) {
  .home-category-card {
    min-height: 270px;
  }

  .home-category-art {
    height: 168px;
  }

  .home-benefits .after-hero-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .custom-story-panel {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .custom-story-art {
    width: 38%;
  }
}

@media (max-width: 899px) {
  .home-benefits .after-hero-container {
    grid-template-columns: 1fr;
  }

  .home-benefits-mascot {
    width: 180px;
    height: 140px;
  }

  .custom-story-panel {
    min-height: 0;
    padding: 240px 28px 28px;
  }

  .custom-story-art {
    top: 12px;
    right: 50%;
    bottom: auto;
    width: 300px;
    height: 220px;
    object-position: center bottom;
    transform: translateX(50%);
  }

  .custom-story-steps {
    gap: 14px;
  }

  .home-format-card {
    min-height: 290px;
  }

  .final-cta-panel {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .final-cta-panel > img {
    width: 180px;
    height: 160px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 84px;
  }

  section[id] {
    scroll-margin-top: 84px;
  }

  .site-header,
  .site-header.is-scrolled,
  .site-header .header-inner {
    height: 72px;
  }

  .site-header .home-logo,
  .site-header.is-scrolled .home-logo {
    width: 108px;
    height: 62px;
    max-width: 108px;
  }

  .home-categories {
    padding-top: 32px;
  }

  .home-category-card {
    min-height: 270px;
  }

  .home-benefits .after-hero-heading h2 {
    font-size: 30px;
  }

  .home-benefits-mascot {
    display: none;
  }

  .home-benefit-grid {
    grid-template-columns: 1fr;
    margin-top: 24px;
  }

  .custom-story-panel {
    padding: 224px 20px 24px;
  }

  .custom-story-art {
    width: 270px;
    height: 205px;
  }

  .custom-story-action {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .custom-story-action .after-hero-button {
    width: 100%;
  }

  .custom-story-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .custom-story-steps li {
    min-height: 0;
    border: 0;
  }

  .home-format-card {
    min-height: 0;
    padding: 26px 20px;
  }

  .home-format-card > .after-hero-button {
    min-width: 0;
  }

  .final-cta-panel {
    padding: 24px 20px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .final-cta-panel > img {
    width: 210px;
    height: 180px;
  }

  .final-cta-action .after-hero-button {
    width: 100%;
    min-width: 0;
  }

  body.is-home .site-footer {
    padding: 44px 0 24px;
  }

  body.is-home .site-footer .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* Story library covers: preserve the complete book artwork. */
.library-view .story-catalog-card .story-media {
  aspect-ratio: 1122 / 1402;
  background: #f2f6fb;
}

.library-view .story-catalog-card .story-media > img {
  object-fit: contain;
  object-position: center;
}

.library-view .story-catalog-card:hover .story-media > img {
  transform: none;
}

/* Personal story: the characters lead the eye toward the offer. */
@media (min-width: 900px) {
  .custom-story-panel {
    grid-template-columns: minmax(340px, 0.76fr) minmax(0, 1.24fr);
  }

  .custom-story-copy {
    grid-column: 2;
    max-width: none;
    padding-left: 20px;
  }

  .custom-story-art {
    right: auto;
    left: 0;
    width: 42%;
    object-position: left bottom;
  }
}

@media (max-width: 899px) {
  .custom-story-copy {
    padding-left: 0;
  }

  .custom-story-art {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Original illustrated section titles supplied by the client. */
.after-hero-heading--art {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.after-hero-heading--art > div {
  width: min(100%, 600px);
  flex: 1 1 600px;
  min-width: 0;
}

.section-title-art {
  position: relative;
  display: block;
  overflow: hidden;
  width: min(100%, 600px);
  aspect-ratio: 5 / 1;
  margin: 0;
  line-height: 1;
}

.section-title-art__image {
  position: relative;
  width: 100%;
  max-width: none;
  height: 100%;
  object-fit: cover;
  object-position: center 47%;
  pointer-events: none;
  display: block;
}

@media (max-width: 720px) {
  .after-hero-heading--art {
    align-items: flex-start;
  }

  .after-hero-heading--action.after-hero-heading--art {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .after-hero-heading--action.after-hero-heading--art > button {
    align-self: flex-end;
  }

  .section-title-art {
    width: 100%;
  }
}

@media (max-width: 639px) {
  .stories-filter-system,
  .stories-spotlight-row,
  .story-collections {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .stories-topic-row,
  .stories-moment-filters,
  .story-collections-grid {
    width: calc(100% + 32px);
    min-width: 0;
    max-width: calc(100% + 32px);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
  }
}
