:root {
  color-scheme: dark;
  --night: #050b24;
  --midnight: #07143b;
  --blue: #102d68;
  --blue-soft: #173d83;
  --glass: rgba(16, 38, 86, .64);
  --glass-strong: rgba(18, 45, 103, .86);
  --line: rgba(214, 231, 255, .16);
  --moon: #ffc94a;
  --honey: #ffab32;
  --cream: #fff7df;
  --text: #f8f4ea;
  --muted: #bfcae9;
  --mint: #8cf1d2;
  --lavender: #b9a6ff;
  --coral: #ff8f9a;
  --max: 1180px;
  --radius: 28px;
  --shadow: 0 26px 80px rgba(0, 0, 0, .36);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  font-family: Outfit, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at 12% 8%, rgba(102, 162, 255, .22), transparent 24%),
    radial-gradient(circle at 84% 4%, rgba(255, 201, 74, .18), transparent 22%),
    radial-gradient(circle at 50% 52%, rgba(88, 216, 200, .08), transparent 36%),
    linear-gradient(180deg, #03081f 0%, #06143a 34%, #091a47 68%, #050b24 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

body::before {
  background-image:
    radial-gradient(circle, rgba(255, 210, 93, .95) 0 1.15px, transparent 1.9px),
    radial-gradient(circle, rgba(124, 219, 255, .75) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255, 255, 255, .65) 0 .9px, transparent 1.6px);
  background-position: 0 0, 68px 88px, 132px 24px;
  background-size: 170px 170px, 240px 240px, 310px 310px;
  opacity: .52;
}

body::after {
  z-index: -1;
  background:
    radial-gradient(circle at -5% 78%, rgba(179, 166, 255, .17), transparent 26%),
    radial-gradient(circle at 104% 62%, rgba(255, 201, 74, .12), transparent 28%),
    linear-gradient(180deg, transparent 0%, rgba(3, 8, 31, .5) 100%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

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

h1,
h2 {
  color: var(--cream);
  font-family: "Baloo 2", Outfit, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  max-width: 660px;
  margin-bottom: 16px;
  font-size: clamp(2.75rem, 4.7vw, 4.75rem);
  line-height: .98;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.85rem, 3vw, 2.85rem);
  line-height: 1.04;
}

h3 {
  margin-bottom: 8px;
  color: var(--cream);
  font-size: 1.08rem;
  font-weight: 900;
}

p {
  color: var(--muted);
}

.page-shell {
  min-height: 100vh;
  overflow: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  border-bottom: 1px solid rgba(214, 231, 255, .12);
  background: rgba(4, 11, 35, .78);
  backdrop-filter: blur(18px);
}

.site-header__inner {
  display: grid;
  width: min(100% - 42px, var(--max));
  min-height: 66px;
  margin: 0 auto;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--cream);
  font-weight: 900;
}

.brand span {
  font-size: 1.05rem;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 34px);
  color: rgba(248, 244, 234, .76);
  font-size: .9rem;
  font-weight: 800;
}

.site-nav a:hover {
  color: var(--moon);
}

.download-link,
.price-card a,
.support-dialog__email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 222, 126, .64);
  background: linear-gradient(180deg, var(--moon), var(--honey));
  color: #171229;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(255, 171, 50, .2);
}

.download-link {
  min-height: 40px;
  border-radius: 999px;
  padding: 0 18px;
  font-size: .9rem;
}

main {
  padding-bottom: 72px;
}

.hero {
  position: relative;
  min-height: min(700px, calc(100svh - 66px));
  padding: clamp(34px, 5vw, 64px) 20px 20px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 72% 20%, rgba(255, 201, 74, .24), transparent 20%),
    radial-gradient(circle at 12% 28%, rgba(91, 166, 255, .18), transparent 28%),
    linear-gradient(180deg, rgba(5, 11, 36, .12), rgba(5, 11, 36, .62));
}

.hero__clouds {
  position: absolute;
  inset: auto -6vw -42px;
  z-index: -1;
  height: 138px;
  opacity: .9;
  background:
    linear-gradient(0deg, rgba(255, 247, 223, .96) 0 34px, transparent 36px),
    radial-gradient(circle at 4% 70%, #fff7df 0 44px, transparent 47px),
    radial-gradient(circle at 14% 78%, #fff4d8 0 64px, transparent 67px),
    radial-gradient(circle at 28% 83%, #fff7df 0 52px, transparent 55px),
    radial-gradient(circle at 40% 92%, rgba(255, 247, 223, .66) 0 46px, transparent 49px),
    radial-gradient(circle at 52% 92%, rgba(255, 247, 223, .72) 0 42px, transparent 45px),
    radial-gradient(circle at 61% 88%, rgba(255, 244, 216, .74) 0 48px, transparent 51px),
    radial-gradient(circle at 72% 80%, #fff7df 0 62px, transparent 65px),
    radial-gradient(circle at 88% 70%, #fff4d8 0 72px, transparent 75px),
    radial-gradient(circle at 102% 82%, #fff7df 0 52px, transparent 55px);
  filter: drop-shadow(0 -18px 50px rgba(255, 247, 223, .12));
  pointer-events: none;
}

.hero__inner,
.section {
  width: min(100% - 42px, var(--max));
  margin: 0 auto;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(500px, 1fr);
  gap: clamp(24px, 4.6vw, 58px);
  align-items: center;
}

.hero__copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.trust-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--mint);
  font-size: .84rem;
  font-weight: 900;
}

.trust-badge {
  border: 1px solid rgba(140, 241, 210, .2);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.trust-badge::before {
  content: "♥";
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 143, 154, .2);
  color: var(--coral);
}

.eyebrow {
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero__lead {
  max-width: 560px;
  margin-bottom: 22px;
  color: rgba(248, 244, 234, .86);
  font-size: clamp(.98rem, 1.25vw, 1.1rem);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.store-row--center {
  justify-content: center;
}

.store-button {
  display: inline-flex;
  min-width: 170px;
  min-height: 54px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  padding: 8px 16px;
  background: #050506;
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .28);
}

.store-button small,
.store-button strong {
  display: block;
  line-height: 1;
}

.store-button small {
  margin-bottom: 3px;
  font-size: .65rem;
  font-weight: 700;
}

.store-button strong {
  font-size: 1.08rem;
}

.store-button__mark {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  font-size: 1.55rem;
}

.store-button__mark--play {
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid #5df1d0;
}

.trust-row,
.language-cloud,
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row {
  margin-top: 18px;
}

.trust-row span,
.language-cloud span,
.pill-list span {
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, .08);
  color: rgba(247, 244, 236, .9);
  font-size: .84rem;
  font-weight: 800;
}

.hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 720px);
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 9% 4% 3% 18%;
  z-index: -1;
  border-radius: 44px;
  background: radial-gradient(circle at 58% 18%, rgba(255, 201, 74, .34), transparent 33%);
  filter: blur(18px);
}

.hero__scene {
  width: 100%;
  border-radius: 0;
  object-fit: contain;
  box-shadow: none;
}

.hero-chip {
  position: absolute;
  right: -16px;
  display: grid;
  min-width: 172px;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  border: 1px solid rgba(214, 231, 255, .2);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(13, 29, 71, .72);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
  backdrop-filter: blur(16px);
}

.hero-chip span {
  grid-row: span 2;
  font-size: 1.35rem;
}

.hero-chip strong {
  color: var(--cream);
  font-size: .94rem;
}

.hero-chip small {
  color: var(--muted);
  font-size: .76rem;
}

.hero-chip--cookies {
  top: 32%;
}

.hero-chip--pages {
  top: 47%;
}

.hero-chip--voice {
  top: 62%;
}

.section,
.feature-icons {
  position: relative;
  padding: clamp(50px, 7vw, 86px) 0;
}

.section::before,
.feature-icons::before {
  display: none;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.glass-panel,
.glass-card,
details,
.price-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .035)),
    var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.icon-grid,
.how-grid,
.family-grid,
.price-grid {
  display: grid;
  gap: 16px;
}

.icon-grid {
  width: min(100% - 42px, var(--max));
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  text-align: center;
}

.icon-grid article {
  padding: 8px;
}

.icon-grid img {
  width: 100%;
  height: clamp(106px, 12vw, 150px);
  object-fit: contain;
  margin-bottom: 14px;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .24));
}

.icon-grid p {
  max-width: 230px;
  margin-inline: auto;
  font-size: .94rem;
}

.how-grid {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.how-grid::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 201, 74, .5), transparent);
}

.glass-card {
  position: relative;
  min-height: 100%;
  border-radius: 22px;
  padding: 20px;
}

.how-grid strong {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 201, 74, .24), rgba(255, 171, 50, .08));
  color: var(--moon);
  font-weight: 900;
}

.story-preview {
  display: grid;
  grid-template-columns: .72fr 1.2fr .92fr;
  gap: 18px;
  align-items: stretch;
  border-radius: 30px;
  padding: 18px;
}

.book-cover,
.cover-row article {
  display: flex;
  min-height: 320px;
  align-items: end;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 24px;
  padding: 18px;
  background:
    radial-gradient(circle at 66% 18%, rgba(255, 201, 74, .34), transparent 28%),
    radial-gradient(circle at 32% 54%, rgba(140, 241, 210, .16), transparent 32%),
    linear-gradient(145deg, rgba(49, 81, 164, .92), rgba(13, 32, 81, .86));
  box-shadow: inset 14px 0 0 rgba(0, 0, 0, .16), var(--shadow);
}

.book-cover span,
.cover-row span {
  max-width: 190px;
  color: var(--cream);
  font-family: "Baloo 2", Outfit, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: .98;
}

.story-pages {
  display: grid;
  gap: 12px;
}

.story-pages img {
  width: 100%;
  max-height: 250px;
  border-radius: 20px;
  object-fit: cover;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.page-grid span {
  min-height: 86px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 68% 30%, rgba(255, 201, 74, .28), transparent 30%),
    linear-gradient(145deg, rgba(20, 54, 120, .9), rgba(6, 18, 54, .9));
}

.audio-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  padding: 12px;
  background: rgba(0, 0, 0, .18);
}

.audio-row button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--midnight);
  cursor: default;
}

.waveform {
  display: flex;
  height: 34px;
  align-items: center;
  gap: 3px;
}

.waveform i {
  width: 3px;
  height: 42%;
  border-radius: 999px;
  background: rgba(248, 244, 234, .84);
}

.waveform i:nth-child(2n) {
  height: 70%;
}

.waveform i:nth-child(3n) {
  height: 92%;
}

.story-meta {
  align-self: center;
  padding: 10px;
}

.story-meta ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.story-meta li {
  color: var(--cream);
  font-weight: 800;
}

.story-meta li::before {
  content: "✦";
  margin-right: 8px;
  color: var(--moon);
}

.screenshots-section,
.library-section {
  text-align: center;
}

.screen-shelf {
  position: relative;
  width: min(100%, 1040px);
  margin: 0 auto;
  padding-bottom: 34px;
}

.screen-shelf::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(116, 70, 28, .2), #8d5c2b, rgba(116, 70, 28, .2));
  box-shadow: 0 18px 34px rgba(0, 0, 0, .32);
}

.screen-panorama {
  width: 100%;
  margin: 0 auto;
  filter: drop-shadow(0 34px 70px rgba(0, 0, 0, .5));
}

.screen-labels {
  display: grid;
  width: min(100%, 740px);
  margin: -18px auto 0;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  color: var(--cream);
  font-weight: 900;
}

.cover-row {
  display: grid;
  max-width: 850px;
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cover-row article {
  min-height: 218px;
  flex-direction: column;
  justify-content: end;
  text-align: left;
}

.cover-row article:nth-child(2) {
  background:
    radial-gradient(circle at 66% 20%, rgba(255, 143, 154, .34), transparent 30%),
    linear-gradient(145deg, rgba(132, 86, 189, .9), rgba(45, 34, 96, .82));
}

.cover-row article:nth-child(3) {
  background:
    radial-gradient(circle at 68% 22%, rgba(140, 241, 210, .32), transparent 30%),
    linear-gradient(145deg, rgba(44, 127, 119, .9), rgba(72, 75, 42, .78));
}

.cover-row small {
  margin-top: 8px;
  color: var(--moon);
  font-weight: 900;
}
