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

.family-grid .glass-card span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  font-size: 1.35rem;
}

.languages-section,
.pricing-section {
  display: grid;
  grid-template-columns: .72fr 1fr;
  gap: clamp(20px, 5vw, 64px);
  align-items: center;
  border-block: 1px solid rgba(214, 231, 255, .1);
}

.language-planet {
  display: grid;
  width: 150px;
  height: 150px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 36%, rgba(140, 241, 210, .35), transparent 28%),
    linear-gradient(145deg, rgba(61, 106, 196, .86), rgba(13, 34, 86, .9));
  box-shadow: var(--shadow);
  font-size: 4rem;
}

.language-cloud {
  justify-content: flex-end;
}

.pricing-section {
  grid-template-columns: .86fr 1.14fr;
  border-block: 0;
}

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

.price-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 26px;
}

.price-card::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: rgba(255, 201, 74, .12);
}

.price-card em {
  position: absolute;
  top: 16px;
  right: 16px;
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--moon);
  color: #171229;
  font-size: .72rem;
  font-style: normal;
  font-weight: 900;
}

.cookie-mark {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 18px;
  background: rgba(255, 201, 74, .12);
  font-size: 2rem;
}

.price-card span,
.price-card strong {
  display: block;
}

.price-card span {
  color: var(--mint);
  font-weight: 900;
}

.price-card strong {
  margin: 6px 0 10px;
  color: var(--cream);
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: .95;
}

.price-card p {
  min-height: 48px;
}

.price-card a {
  width: 100%;
  min-height: 48px;
  border-radius: 999px;
}

.price-card--best {
  background:
    linear-gradient(145deg, rgba(255, 201, 74, .2), rgba(255, 255, 255, .055)),
    var(--glass-strong);
}

.faq-list {
  display: grid;
  max-width: 840px;
  margin: 0 auto;
  gap: 10px;
}

details {
  border-radius: 18px;
  padding: 0 18px;
}

summary {
  cursor: pointer;
  padding: 17px 0;
  color: var(--cream);
  font-weight: 900;
}

details p {
  margin-bottom: 18px;
}

.download-band {
  position: relative;
  overflow: hidden;
  width: min(100% - 42px, 920px);
  margin: 10px auto 0;
  border-radius: 30px;
  padding: clamp(30px, 5vw, 48px);
  text-align: center;
}

.download-band::before {
  content: "";
  position: absolute;
  inset: auto -12% -50px;
  height: 120px;
  background:
    radial-gradient(circle at 10% 40%, rgba(255, 247, 223, .38) 0 58px, transparent 60px),
    radial-gradient(circle at 78% 34%, rgba(255, 247, 223, .28) 0 74px, transparent 76px);
}

.download-band > * {
  position: relative;
}

.download-band img {
  width: 76px;
  height: 76px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.download-band h2 {
  margin-bottom: 10px;
}

.site-footer {
  width: min(100% - 42px, var(--max));
  margin: 0 auto;
  padding: 34px 0 42px;
  border-top: 1px solid rgba(255, 255, 255, .1);
}

.site-footer__main,
.site-footer__bottom {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.site-footer__main {
  margin-bottom: 20px;
}

.brand--footer {
  margin-bottom: 8px;
}

.site-footer p,
.site-footer__bottom,
.footer-links a,
.support-trigger {
  color: rgba(247, 244, 236, .7);
}

.footer-store,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.footer-store a {
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, .06);
  font-weight: 800;
}

.support-trigger {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.support-dialog[hidden] {
  display: none;
}

.support-dialog {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
}

.support-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 23, .72);
  backdrop-filter: blur(8px);
}

.support-dialog__panel {
  position: relative;
  width: min(100%, 440px);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  background: linear-gradient(160deg, rgba(20, 43, 100, .98), rgba(6, 16, 47, .98));
  box-shadow: var(--shadow);
  text-align: center;
}

.support-dialog__panel img {
  width: 72px;
  height: 72px;
  margin: 0 auto 10px;
  object-fit: contain;
}

.support-dialog__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  color: var(--cream);
  cursor: pointer;
}

.support-dialog__email {
  min-height: 44px;
  border-radius: 999px;
  padding: 0 18px;
}

.legal-page {
  width: min(100% - 42px, 900px);
  margin: 0 auto;
  padding: 76px 0 20px;
}

.legal-page h1 {
  font-size: clamp(2.3rem, 6vw, 4.4rem);
}

.legal-date {
  color: var(--mint);
  font-weight: 900;
}

.legal-page section {
  margin: 18px 0;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, .06);
}

.legal-page h2 {
  font-family: Outfit, sans-serif;
  font-size: 1.25rem;
  line-height: 1.2;
}

.legal-page a {
  color: var(--moon);
  font-weight: 900;
}

.story-preview--rich {
  max-width: 1120px;
  margin: 0 auto;
  grid-template-columns: minmax(160px, .55fr) minmax(360px, 1.2fr) minmax(270px, .9fr);
  gap: 18px;
  border-radius: 30px;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 201, 74, .1), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)),
    rgba(11, 29, 71, .72);
}

.demo-cover {
  position: relative;
  min-height: 260px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 24px;
  background: rgba(3, 11, 34, .55);
  box-shadow: inset 12px 0 0 rgba(0, 0, 0, .18), 0 22px 44px rgba(0, 0, 0, .32);
}

.demo-cover img,
.cover-row--images img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-cover figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  color: var(--cream);
  font-family: "Baloo 2", Outfit, sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: .95;
  text-shadow: 0 3px 12px rgba(0, 0, 0, .5);
}

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

.page-grid--images img {
  width: 100%;
  max-height: none;
  aspect-ratio: 1 / .9;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 16px;
  object-fit: cover;
}

.audio-row--wide {
  min-height: 70px;
}

.phone-preview-row {
  display: grid;
  max-width: 820px;
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  align-items: end;
}

.phone-preview {
  margin: 0;
  text-align: center;
}

.phone-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 5px solid rgba(5, 8, 24, .98);
  border-radius: 28px;
  background: #07143b;
  box-shadow: 0 24px 54px rgba(0, 0, 0, .38);
}

.phone-frame::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  z-index: 2;
  width: 36%;
  height: 11px;
  border-radius: 999px;
  background: #02040c;
  transform: translateX(-50%);
}

.phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.phone-preview figcaption {
  margin-top: 12px;
  color: var(--cream);
  font-weight: 900;
}

.cover-row--images {
  max-width: 760px;
  gap: 22px;
}

.cover-row--images article {
  position: relative;
  min-height: 270px;
  overflow: hidden;
  padding: 0;
  background: rgba(12, 29, 70, .6);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .34);
}

.cover-row--images article::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(2, 7, 23, .86));
}

.cover-row--images span,
.cover-row--images small {
  position: absolute;
  z-index: 1;
  left: 16px;
  right: 16px;
}

.cover-row--images span {
  bottom: 36px;
}

.cover-row--images small {
  bottom: 15px;
}

.family-grid .glass-card {
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 201, 74, .12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04)),
    rgba(15, 39, 91, .7);
}

.family-grid .glass-card .safety-icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 201, 74, .24), rgba(140, 241, 210, .12));
}

.safety-icon::before,
.safety-icon::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 3px solid var(--moon);
  border-radius: 50%;
}

.safety-icon--noads::after {
  inset: 22px 8px auto;
  height: 3px;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  transform: rotate(-38deg);
}

.safety-icon--gate::before {
  inset: 18px 12px 10px;
  border-radius: 5px;
}

.safety-icon--gate::after {
  inset: 9px 16px 24px;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.safety-icon--safe::before {
  inset: 8px 13px 12px;
  border-radius: 18px 18px 22px 22px;
}

.safety-icon--safe::after {
  inset: 18px 19px 17px;
  border-width: 0 3px 3px 0;
  border-radius: 0;
  transform: rotate(45deg);
}

.safety-icon--delete::before {
  inset: 15px 14px 10px;
  border-radius: 4px;
}

.safety-icon--delete::after {
  inset: 9px 13px auto;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--moon);
}

.safety-icon--cloud::before {
  inset: 17px 9px 12px;
  border-radius: 999px;
}

.safety-icon--cloud::after {
  inset: 10px 15px 19px;
  border-radius: 999px;
}

.languages-section {
  grid-template-columns: 150px minmax(240px, .78fr) minmax(360px, 1fr);
  padding-block: clamp(56px, 7vw, 86px);
}

.language-planet {
  position: relative;
  background:
    radial-gradient(circle at 58% 42%, rgba(7, 20, 59, .98) 0 32%, transparent 33%),
    radial-gradient(circle at 42% 44%, #ffdc73 0 44%, #ffb33c 45% 60%, transparent 61%);
}

.language-planet::after {
  content: "";
  position: absolute;
  inset: 24px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, rgba(140, 241, 210, .42), transparent 18%),
    radial-gradient(circle at 65% 64%, rgba(185, 166, 255, .34), transparent 22%);
  opacity: .7;
}

.language-cloud {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.language-cloud span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, .075);
}

.language-cloud b {
  font-size: 1rem;
}

.pricing-section {
  align-items: stretch;
}

.price-grid--stage {
  gap: 18px;
}

.price-card {
  border-radius: 24px;
}

.price-card strong {
  font-family: Outfit, system-ui, sans-serif;
}

.faq-section {
  max-width: 980px;
}

.faq-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: none;
}

.faq-list details:first-child {
  grid-row: span 2;
}

.download-band {
  background:
    radial-gradient(circle at 16% 18%, rgba(185, 166, 255, .22), transparent 26%),
    radial-gradient(circle at 84% 28%, rgba(140, 241, 210, .16), transparent 30%),
    linear-gradient(135deg, rgba(100, 112, 186, .55), rgba(54, 92, 134, .46)),
    rgba(16, 38, 86, .7);
}
