.how-section--polished {
  padding-top: clamp(54px, 7vw, 88px);
}

.how-flow {
  position: relative;
  display: grid;
  max-width: 980px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}

.how-flow__path {
  position: absolute;
  top: 14px;
  left: 15%;
  right: 15%;
  height: 3px;
  z-index: 0;
  pointer-events: none;
}

.how-flow__path::before,
.how-flow__path span {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
}

.how-flow__path::before {
  background-image: linear-gradient(90deg, rgba(255, 201, 74, .66) 50%, transparent 50%);
  background-size: 13px 3px;
  filter: drop-shadow(0 0 5px rgba(255, 201, 74, .5));
}

.how-flow__path span {
  width: 42%;
  background: linear-gradient(90deg, transparent, var(--moon), transparent);
  filter: drop-shadow(0 0 12px rgba(255, 201, 74, .8));
}

.how-step-card {
  position: relative;
  z-index: 1;
  min-height: 178px;
  border-radius: 22px;
  padding: 66px 24px 24px;
  background:
    radial-gradient(circle at 22% 0%, rgba(255, 201, 74, .15), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .035)),
    rgba(14, 36, 86, .68);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.how-step-card__number,
.how-step-card__icon {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.how-step-card__number {
  top: 18px;
  left: 50%;
  z-index: 1;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .24);
  background: linear-gradient(180deg, rgba(154, 188, 255, .95), rgba(71, 105, 177, .95));
  color: var(--cream);
  font-weight: 900;
  transform: translateX(-50%);
}

.how-step-card__icon {
  top: 64px;
  left: 24px;
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, .08);
  font-size: 1.7rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14);
}

.how-step-card h3,
.how-step-card p {
  margin-left: 72px;
}

.how-step-card h3 {
  margin-bottom: 7px;
  font-size: 1.05rem;
}

.how-step-card p {
  margin-bottom: 0;
  font-size: .9rem;
  line-height: 1.45;
}

.story-preview-section {
  padding-top: clamp(26px, 4vw, 44px);
}

.story-showcase {
  position: relative;
  display: grid;
  max-width: 1120px;
  margin: 0 auto;
  grid-template-columns: minmax(190px, .72fr) minmax(430px, 1.55fr) minmax(220px, .76fr);
  gap: 18px;
  align-items: stretch;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(14px, 2vw, 20px);
  background:
    radial-gradient(circle at 8% 15%, rgba(255, 201, 74, .14), transparent 24%),
    radial-gradient(circle at 88% 90%, rgba(140, 241, 210, .09), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .035)),
    rgba(9, 28, 74, .76);
}

.story-showcase::after {
  content: "";
  position: absolute;
  inset: auto -4% -36px;
  height: 82px;
  background:
    radial-gradient(circle at 8% 72%, rgba(255, 247, 223, .2) 0 42px, transparent 44px),
    radial-gradient(circle at 86% 58%, rgba(255, 247, 223, .16) 0 58px, transparent 60px);
  pointer-events: none;
}

.story-book-cover {
  position: relative;
  min-height: 286px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 22px 18px 18px 22px;
  background: rgba(3, 11, 34, .7);
  box-shadow:
    inset 18px 0 0 rgba(0, 0, 0, .28),
    inset -8px 0 14px rgba(255, 247, 223, .13),
    0 24px 46px rgba(0, 0, 0, .38);
  transform: perspective(900px) rotateY(-4deg);
  transform-origin: left center;
}

.story-book-cover::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 18px;
  z-index: 1;
  width: 4px;
  background: linear-gradient(180deg, transparent, rgba(255, 201, 74, .38), transparent);
}

.story-book-cover::after {
  content: "";
  position: absolute;
  inset: 6px 8px auto 46px;
  z-index: 2;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 247, 223, .72), rgba(255, 201, 74, .18));
  opacity: .74;
}

.story-book-cover img,
.story-page-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-book-cover figcaption {
  position: absolute;
  left: 22px;
  right: 16px;
  bottom: 18px;
  z-index: 2;
  color: var(--moon);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.28rem, 2vw, 1.82rem);
  font-weight: 900;
  line-height: .95;
  text-shadow: 0 4px 16px rgba(0, 0, 0, .62);
}

.story-book-cover figcaption span {
  display: block;
}

.story-showcase__player {
  display: grid;
  gap: 12px;
  align-content: stretch;
}

.story-page-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.story-page-strip figure {
  aspect-ratio: 1 / .95;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 15px;
  background: rgba(3, 11, 34, .58);
}

.story-audio-preview {
  display: grid;
  min-height: 74px;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  padding: 12px 14px;
  background: rgba(4, 15, 47, .55);
}

.story-audio-preview button {
  display: grid;
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: #09122f;
  cursor: pointer;
  font-weight: 900;
}

.story-audio-preview span {
  color: rgba(248, 244, 234, .78);
  font-size: .85rem;
  font-weight: 800;
}

.story-audio-preview span:first-of-type {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
}

.story-audio-preview span:last-child {
  grid-column: 3;
  grid-row: 2;
  align-self: start;
}

.story-waveform {
  position: relative;
  display: flex;
  grid-column: 2 / 4;
  height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  overflow: hidden;
  border-radius: 999px;
  padding-inline: 2px;
}

.story-waveform::before,
.story-waveform::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  border-radius: 999px;
  transform: translateY(-50%);
}

.story-waveform::before {
  background: rgba(191, 202, 233, .25);
}

.story-waveform::after {
  right: 0;
  background: linear-gradient(90deg, var(--moon), rgba(255, 247, 223, .8));
  box-shadow: 0 0 18px rgba(255, 201, 74, .48);
  opacity: .8;
}

.story-waveform i {
  position: relative;
  z-index: 1;
  width: 3px;
  height: var(--h);
  min-height: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff7df, rgba(191, 202, 233, .58));
}

.screenshots-section .phone-preview-row {
  max-width: 1120px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 26px);
  perspective: 1400px;
}

.screenshots-section .phone-frame {
  overflow: visible;
  border: 7px solid #050813;
  border-radius: 32px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .22), transparent 8%, transparent 92%, rgba(255, 255, 255, .12)),
    #050813;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .18),
    10px 20px 36px rgba(0, 0, 0, .42),
    0 0 0 1px rgba(255, 255, 255, .08);
  transform: rotateY(var(--phone-tilt, 0deg)) rotateX(2deg) translateZ(0);
  transform-style: preserve-3d;
}

.screenshots-section .phone-preview:nth-child(1) { --phone-tilt: -9deg; }
.screenshots-section .phone-preview:nth-child(2) { --phone-tilt: -4deg; }
.screenshots-section .phone-preview:nth-child(4) { --phone-tilt: 4deg; }
.screenshots-section .phone-preview:nth-child(5) { --phone-tilt: 9deg; }

.screenshots-section .phone-frame::after {
  content: "";
  position: absolute;
  inset: 12% -9px 14% auto;
  width: 7px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .25), rgba(50, 67, 112, .22));
  transform: translateZ(-10px);
}

.screenshots-section .phone-frame img {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 24px;
  object-fit: cover;
  object-position: top center;
}

.family-section .section-heading {
  margin-bottom: 36px;
}

.family-grid {
  align-items: stretch;
}

.family-grid .glass-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  border-color: rgba(214, 231, 255, .2);
  padding: 24px 20px;
  transform: translateZ(0);
}

.family-grid .glass-card::before {
  content: "";
  position: absolute;
  inset: -45% -35% auto auto;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 201, 74, .22), transparent 66%);
  pointer-events: none;
}

.family-grid .glass-card h3 {
  margin-top: 10px;
  font-size: 1rem;
}

.family-grid .glass-card p {
  margin-bottom: 0;
  font-size: .88rem;
}

.family-grid .glass-card .safety-icon {
  width: 62px;
  height: 62px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .26), transparent 28%),
    linear-gradient(145deg, rgba(255, 201, 74, .34), rgba(140, 241, 210, .14));
  box-shadow: 0 16px 30px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .18);
}

.language-planet {
  box-shadow: 0 22px 70px rgba(255, 201, 74, .2), 0 0 0 1px rgba(255, 255, 255, .08);
}

.language-copy {
  position: relative;
  border: 1px solid rgba(214, 231, 255, .14);
  border-radius: 28px;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(140, 241, 210, .13), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
  box-shadow: 0 22px 60px rgba(0, 0, 0, .24);
}

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

.language-stats span {
  display: grid;
  min-height: 78px;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  padding: 12px;
  background: rgba(4, 15, 47, .44);
  color: rgba(248, 244, 234, .78);
  font-size: .78rem;
  font-weight: 800;
}

.language-stats strong {
  display: block;
  color: var(--moon);
  font-family: Fraunces, Georgia, serif;
  font-size: 1.28rem;
  line-height: 1;
}

.language-cloud {
  align-content: center;
  border: 1px solid rgba(214, 231, 255, .12);
  border-radius: 28px;
  padding: 18px;
  background: rgba(255, 255, 255, .04);
}

.language-cloud span {
  border-color: rgba(255, 255, 255, .14);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .045));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.cover-row--images article {
  transform-origin: center bottom;
  transition: transform .28s ease, box-shadow .28s ease;
}

.cover-row--images article:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 34px 70px rgba(0, 0, 0, .42);
}

.cover-row--images article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: 16%;
  background: linear-gradient(90deg, rgba(0, 0, 0, .34), rgba(255, 255, 255, .06), transparent);
  pointer-events: none;
}

.story-showcase__facts {
  align-self: center;
  padding: 8px 6px;
}

.story-showcase__facts h2 {
  margin-bottom: 12px;
  font-size: clamp(1.45rem, 2.7vw, 2.35rem);
}

.story-showcase__facts ul {
  display: grid;
  gap: 9px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.story-showcase__facts li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(248, 244, 234, .9);
  font-weight: 800;
}

.story-showcase__facts li span {
  color: var(--moon);
}

.story-showcase__facts p:last-child {
  margin-bottom: 0;
  font-size: .95rem;
}

@media (prefers-reduced-motion: no-preference) {
  .how-flow__path span {
    animation: howPathSweep 6.6s ease-in-out infinite;
  }

  .how-step-card--1 {
    animation: howCardGlow 6.6s ease-in-out infinite;
  }

  .how-step-card--2 {
    animation: howCardGlow 6.6s ease-in-out 2.2s infinite;
  }

  .how-step-card--3 {
    animation: howCardGlow 6.6s ease-in-out 4.4s infinite;
  }

  .how-flow:hover .how-flow__path span,
  .how-flow:hover .how-step-card,
  .how-flow:focus-within .how-flow__path span,
  .how-flow:focus-within .how-step-card {
    animation-play-state: paused;
  }
}

@keyframes howPathSweep {
  0%, 24% { transform: translateX(-10%); opacity: .25; }
  33%, 57% { transform: translateX(69%); opacity: 1; }
  66%, 90% { transform: translateX(146%); opacity: 1; }
  100% { transform: translateX(146%); opacity: .2; }
}

@keyframes howCardGlow {
  0%, 100% { transform: translateY(0); border-color: var(--line); box-shadow: var(--shadow); }
  10%, 28% { transform: translateY(-8px); border-color: rgba(255, 201, 74, .46); box-shadow: 0 24px 70px rgba(255, 201, 74, .16); }
  42% { transform: translateY(0); border-color: var(--line); box-shadow: var(--shadow); }
}

@media (max-width: 980px) {
  .screenshots-section .phone-preview-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 760px;
  }

  .story-showcase {
    grid-template-columns: minmax(170px, .7fr) minmax(0, 1fr);
  }

  .story-showcase__facts {
    grid-column: 1 / -1;
    padding: 4px 2px 0;
  }
}

@media (max-width: 760px) {
  .how-flow,
  .story-showcase {
    grid-template-columns: 1fr;
  }

  .how-flow__path {
    top: 42px;
    bottom: 28px;
    left: 21px;
    right: auto;
    width: 3px;
    height: auto;
  }

  .how-flow__path::before {
    background-image: linear-gradient(180deg, rgba(255, 201, 74, .36) 50%, transparent 50%);
    background-size: 3px 13px;
  }

  .how-flow__path span {
    width: 3px;
    height: 38%;
    background: linear-gradient(180deg, transparent, var(--moon), transparent);
  }

  .how-step-card {
    min-height: 150px;
    padding: 24px 20px 24px 80px;
  }

  .how-step-card__number {
    top: 24px;
    left: 22px;
    transform: none;
  }

  .how-step-card__icon {
    top: 80px;
    left: 18px;
    width: 48px;
    height: 48px;
  }

  .how-step-card h3,
  .how-step-card p {
    margin-left: 0;
  }

  .story-book-cover {
    min-height: 360px;
  }

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

  .story-audio-preview {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .screenshots-section .phone-preview-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
  }

  .story-waveform {
    gap: 0;
  }

  .story-waveform i:nth-child(n+19) {
    display: none;
  }

  .language-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .story-book-cover {
    min-height: 300px;
  }

  .story-audio-preview {
    grid-template-columns: 42px 1fr auto;
  }

  .story-audio-preview span:first-of-type {
    display: none;
  }

  .screenshots-section .phone-preview-row {
    grid-template-columns: 1fr;
    max-width: 330px;
  }

  .screenshots-section .phone-frame {
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cover-row--images article {
    animation: savedBookFloat 6.5s ease-in-out infinite;
  }

  .cover-row--images article:nth-child(2) {
    animation-delay: -2.1s;
  }

  .cover-row--images article:nth-child(3) {
    animation-delay: -4.2s;
  }

  .family-grid .glass-card {
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
  }

  .family-grid .glass-card:hover {
    border-color: rgba(255, 201, 74, .34);
    box-shadow: 0 28px 72px rgba(0, 0, 0, .36);
    transform: translateY(-7px);
  }
}

@keyframes savedBookFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(.8deg); }
}
