/* The landing of moswavle.ge, dressed as the platform at app.moswavle.ge.

   The colours are the platform's own: the dark and the light palettes of
   THEME_PALETTES in @moswavle/game-rules, copied here because this page loads
   none of the app. When a colour changes there, change it here.

   Written for a phone first; wider screens add to it further down. */

:root {
  color-scheme: dark;

  --background: #141a2e;
  --surface: #1e2742;
  --surface-soft: #29345a;
  --border: #3a4772;
  --text: #f2f5fc;
  --text-secondary: #ccd5ea;
  --muted: #a3b0cf;
  --placeholder: #8f9cbd;

  --primary: #3cc0f8;
  --primary-dark: #1795d4;
  --on-primary: #06263d;
  --primary-soft: #1c3c5e;
  --primary-text: #5ccbf9;

  --success: #56d48e;
  --on-success: #06281a;
  --success-soft: #1d4240;
  --success-text: #6ddba0;

  --warning: #fbbf3c;
  --on-warning: #3a2600;
  --warning-soft: #453c2c;
  --warning-text: #fccb60;

  --danger: #fb7d8f;
  --on-danger: #3f0914;
  --danger-soft: #4a2a40;
  --danger-text: #fc97a5;

  --violet: #a996fb;
  --on-violet: #1c1047;
  --violet-soft: #36326a;
  --violet-text: #bdaefc;

  --shadow: rgba(4, 8, 20, 0.45);

  /* What is made of the palette for this page. */
  --card: rgba(30, 39, 66, 0.9);
  --header: rgba(30, 39, 66, 0.92);
  --glow: rgba(60, 192, 248, 0.25);
  --pink: #f472b6;
  --pink-deep: #db2777;
  --pink-soft: #4a2a4e;
  --pink-text: #f9a8d4;
  --lantern-rim: #3a4772;
  --lantern-rim-deep: #262f52;

  --radius: 28px;
  --wrap: 1120px;
  --gutter: max(16px, env(safe-area-inset-left), env(safe-area-inset-right));
}

[data-theme="light"] {
  color-scheme: light;

  --background: #f2f6fc;
  --surface: #ffffff;
  --surface-soft: #e9f1fa;
  --border: #d3e0ef;
  --text: #1b2f4a;
  --text-secondary: #3d526d;
  --muted: #5b6e87;
  --placeholder: #6f8199;

  --primary: #28bbf9;
  --primary-dark: #0f8fd0;
  --on-primary: #06263d;
  --primary-soft: #dff3fe;
  --primary-text: #0a6ea8;

  --success: #2dc27a;
  --on-success: #052616;
  --success-soft: #e0f7ea;
  --success-text: #0f7443;

  --warning: #f8b02a;
  --on-warning: #3a2600;
  --warning-soft: #fef2d8;
  --warning-text: #9a5507;

  --danger: #d9304c;
  --on-danger: #ffffff;
  --danger-soft: #fde7ea;
  --danger-text: #c22a3d;

  --violet: #7c4df0;
  --on-violet: #ffffff;
  --violet-soft: #ece6fe;
  --violet-text: #6a3de0;

  --shadow: rgba(31, 52, 79, 0.13);

  --card: rgba(255, 255, 255, 0.93);
  --header: rgba(255, 255, 255, 0.92);
  --glow: rgba(40, 187, 249, 0.3);
  --pink-soft: #fde7f3;
  --pink-text: #be185d;
  --lantern-rim: #c3d3e6;
  --lantern-rim-deep: #9db3cc;
}

/* A picture that belongs to one theme: the platform's own screens are shown in
   the theme the visitor reads the page in. */
[data-theme="dark"] .only-light,
[data-theme="light"] .only-dark {
  display: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Georgian", "Noto Sans", sans-serif;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--primary-text);
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  --wrap: 820px;
}

.center {
  text-align: center;
}

.icon {
  flex: none;
  width: 1.25em;
  height: 1.25em;
}

.skip {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 900;
}

.skip:focus {
  top: 12px;
}

/* ───────── Buttons and pills: the platform's ───────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 10px 24px var(--glow);
  cursor: pointer;
  transition: background-color 0.15s, transform 0.15s;
}

.btn:hover {
  background: var(--primary-text);
}

[data-theme="light"] .btn:hover {
  background: #5ccbf9;
}

.btn:active {
  transform: translateY(1px);
}

.btn--big {
  min-height: 56px;
  padding: 0 30px;
  font-size: 15px;
}

.btn--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 13px;
}

.btn--ghost,
[data-theme="light"] .btn--ghost {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  box-shadow: none;
}

.btn--ghost:hover,
[data-theme="light"] .btn--ghost:hover {
  background: var(--surface-soft);
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s;
}

.pill:hover {
  background: var(--surface-soft);
}

.pill--icon {
  width: 44px;
  padding: 0;
  color: var(--primary-text);
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 18px 44px var(--shadow);
}

/* ───────── Header ───────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: var(--header);
  box-shadow: 0 8px 24px var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  padding-top: env(safe-area-inset-top);
}

.bar {
  /* Wider than the page under it: six links, the languages and two buttons stand in it. */
  --wrap: 1360px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 68px;
}

.brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--text);
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.brand__logo {
  display: flex;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--background);
  box-shadow: 0 8px 18px var(--glow);
}

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

.brand__name {
  display: none;
}

.bar__tools {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

.bar__tools > * {
  flex: none;
}

.langs {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--background);
}

.langs a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.langs a:hover {
  color: var(--text);
}

.langs a[aria-current] {
  background: var(--surface-soft);
  color: var(--text);
}

.bar__signin,
.bar__start {
  display: none;
}

.bar__menu {
  padding: 0 14px;
  color: var(--text);
}

.bar__menu .icon {
  color: var(--primary-text);
}

.bar__menu .is-open,
.site-header.is-open .bar__menu .is-closed {
  display: none;
}

.site-header.is-open .bar__menu .is-open {
  display: block;
}

/* The menu of a phone: a card that drops from the header, as the platform's does. */
.nav {
  position: absolute;
  top: 100%;
  right: var(--gutter);
  left: var(--gutter);
  display: none;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 24px 60px var(--shadow);
}

.site-header.is-open .nav {
  display: block;
}

.nav__list a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

.nav__list a:hover {
  background: var(--surface-soft);
}

.nav__actions {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ───────── Hero ───────── */

.hero {
  display: grid;
  gap: 36px;
  padding-top: 32px;
  padding-bottom: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.eyebrow .icon {
  color: var(--warning);
  fill: var(--warning);
}

h1 {
  margin-top: 16px;
  font-size: clamp(30px, 8.4vw, 54px);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.12;
  text-wrap: balance;
}

.hero__lead {
  margin-top: 16px;
  max-width: 58ch;
  color: var(--text-secondary);
  font-size: 17px;
}

.hero__actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--success-text);
  font-size: 14px;
  font-weight: 800;
}

.hero__note--time {
  margin-top: 8px;
  color: var(--warning-text);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chips li {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-text);
  font-size: 13px;
  font-weight: 800;
}

.hero__show {
  position: relative;
  display: flex;
  justify-content: center;
  padding-bottom: 8px;
}

/* A phone with one of the platform's screens in it. */
.phone {
  position: relative;
  flex: none;
  width: min(68vw, 290px);
  padding: 9px;
  border: 2px solid var(--border);
  border-radius: 40px;
  background: #0b1020;
  box-shadow:
    0 30px 70px var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

[data-theme="light"] .phone {
  border-color: #b8c9dd;
  background: #16223b;
}

.phone__screen {
  aspect-ratio: 390 / 844;
  overflow: hidden;
  border-radius: 31px;
  background: var(--background);
}

.phone--short .phone__screen {
  aspect-ratio: 390 / 700;
}

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

.hero__mascot {
  position: absolute;
  right: max(0px, calc(50% - 46vw));
  bottom: -6px;
  width: min(32vw, 150px);
  animation: bob 3.2s ease-in-out infinite;
}

.bubble {
  position: absolute;
  right: 62%;
  bottom: 78%;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 18px 18px 4px 18px;
  background: var(--surface);
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 10px 24px var(--shadow);
}

@keyframes bob {
  0%,
  100% {
    transform: translate3d(0, -5px, 0);
  }

  50% {
    transform: translate3d(0, 5px, 0);
  }
}

/* ───────── The five accents a badge, a ring or an icon is painted in ───────── */

[data-tone="blue"] {
  --tone: var(--primary);
  --tone-deep: var(--primary-dark);
  --on-tone: var(--on-primary);
  --tone-soft: var(--primary-soft);
  --tone-text: var(--primary-text);
}

[data-tone="violet"] {
  --tone: var(--violet);
  --tone-deep: #7c5cf0;
  --on-tone: var(--on-violet);
  --tone-soft: var(--violet-soft);
  --tone-text: var(--violet-text);
}

[data-tone="pink"] {
  --tone: var(--pink);
  --tone-deep: var(--pink-deep);
  --on-tone: #500724;
  --tone-soft: var(--pink-soft);
  --tone-text: var(--pink-text);
}

[data-tone="gold"] {
  --tone: var(--warning);
  --tone-deep: #d18a0a;
  --on-tone: var(--on-warning);
  --tone-soft: var(--warning-soft);
  --tone-text: var(--warning-text);
}

[data-tone="green"] {
  --tone: var(--success);
  --tone-deep: #23a364;
  --on-tone: var(--on-success);
  --tone-soft: var(--success-soft);
  --tone-text: var(--success-text);
}

/* ───────── A section and its heading: the heading of a section of the trail ───────── */

.section {
  padding-top: 64px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-badge {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 3px solid #fff;
  border-radius: 14px;
  background: var(--tone);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  text-shadow: 0 1px 0 var(--tone-deep);
  box-shadow: 0 4px 0 var(--tone-deep);
  transform: rotate(-4deg);
}

h2 {
  font-size: clamp(24px, 6.2vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.18;
  text-wrap: balance;
}

.section-dots {
  flex: 1;
  min-width: 24px;
  height: 8px;
  background: radial-gradient(circle, var(--tone) 3.5px, transparent 4px) 0 50% / 20px 8px repeat-x;
  opacity: 0.85;
}

.section-lead {
  margin-top: 12px;
  max-width: 64ch;
  color: var(--text-secondary);
  font-size: 17px;
}

h3 {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

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

/* ───────── What a child learns: the subjects, each in the ring of its progress ───────── */

.worlds {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.world {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 4px 16px;
  padding: 16px;
}

.world__ring {
  display: flex;
  grid-row: span 2;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: conic-gradient(var(--tone) calc(var(--progress) * 1%), var(--surface-soft) 0);
}

.world__ring img {
  width: 68px;
  height: 68px;
  padding: 9px;
  border: 4px solid var(--surface);
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.world h3 {
  align-self: end;
}

.world {
  align-content: start;
}

.world p {
  align-self: start;
  font-size: 15px;
}

/* ───────── The games: screens in a row that is pulled sideways on a phone ───────── */

.shots {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  padding: 4px var(--gutter) 18px;
  overflow-x: auto;
  scroll-padding-inline: var(--gutter);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.shots::-webkit-scrollbar {
  display: none;
}

.shot {
  flex: none;
  width: min(84vw, 520px);
  scroll-snap-align: start;
}

.shot__frame {
  padding: 7px;
  border: 2px solid var(--border);
  border-radius: 26px;
  background: #0b1020;
  box-shadow: 0 18px 44px var(--shadow);
}

[data-theme="light"] .shot__frame {
  border-color: #b8c9dd;
  background: #16223b;
}

.shot__frame img {
  width: 100%;
  border-radius: 18px;
  aspect-ratio: 1688 / 780;
}

.shot figcaption {
  display: grid;
  gap: 2px;
  padding: 12px 6px 0;
}

.shot strong {
  font-size: 17px;
  font-weight: 900;
}

.shot span {
  color: var(--text-secondary);
  font-size: 15px;
}

.says {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 20px;
}

.says__mascot {
  justify-self: center;
  width: 108px;
}

.ticks {
  display: grid;
  gap: 10px;
}

.ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-weight: 600;
}

.ticks .icon {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  padding: 4px;
  border-radius: 50%;
  background: var(--success);
  color: var(--on-success);
  stroke-width: 3.2;
}

/* ───────── Why Moswavle ───────── */

.features {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 4px 16px;
  padding: 16px;
}

.feature .feature__icon {
  grid-row: span 2;
}

.feature__icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--tone-soft);
  color: var(--tone-text);
}

.feature__icon .icon {
  width: 26px;
  height: 26px;
}

.feature h3 {
  align-self: end;
}

.feature p {
  font-size: 15px;
}

/* ───────── How it works: the platform's trail of lessons ───────── */

.trail {
  display: grid;
  margin-top: 28px;
}

.trail__step {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 18px;
  padding-bottom: 34px;
  --dot: var(--warning);
}

.trail__step:last-child {
  padding-bottom: 0;
}

.trail__step[data-state="current"],
.trail__step[data-state="todo"] {
  --dot: var(--border);
}

/* The dotted way to the next lesson: gold as far as the child has come. */
.trail__step:not(:last-child)::after {
  position: absolute;
  top: 104px;
  bottom: 6px;
  left: 43px;
  width: 10px;
  background: radial-gradient(circle, var(--dot) 4.5px, transparent 5px) 50% 0 / 10px 20px repeat-y;
  content: "";
}

.trail__lantern {
  position: relative;
  width: 96px;
  height: 96px;
}

.lantern {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  --ring: var(--lantern-rim);
  --ring-deep: var(--lantern-rim-deep);
}

.lantern[data-state="passed"] {
  --ring: #fbbf24;
  --ring-deep: #d18a0a;
}

.lantern[data-state="current"] {
  --ring: #38bdf8;
  --ring-deep: #0284c7;
}

.lantern__body {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 5px 0 var(--ring-deep)) drop-shadow(0 12px 9px var(--shadow));
}

.lantern[data-state="passed"] .lantern__body {
  filter: drop-shadow(0 5px 0 var(--ring-deep)) drop-shadow(0 0 11px rgba(251, 191, 36, 0.7));
}

.lantern__body .is-ring {
  fill: var(--ring);
}

.lantern__body .is-plate {
  fill: #fff;
}

.lantern__pic {
  position: absolute;
  top: calc((var(--pic-y) - var(--pic-size) / 2) * 100%);
  left: calc((var(--pic-x) - var(--pic-size) / 2) * 100%);
  width: calc(var(--pic-size) * 100%);
  height: calc(var(--pic-size) * 100%);
  object-fit: contain;
}

.lantern[data-state="todo"] .lantern__pic {
  opacity: 0.55;
}

.lantern__badge {
  position: absolute;
  top: calc(var(--badge-y) * 100%);
  left: calc(var(--badge-x) * 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 3px solid var(--background);
  border-radius: 50%;
  background: var(--ring);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  translate: -50% -50%;
}

.lantern[data-state="passed"] .lantern__badge {
  background: #10b981;
}

.lantern[data-state="current"] .lantern__badge {
  background: #7c3aed;
}

.lantern[data-state="todo"] .lantern__badge {
  background: var(--surface-soft);
  color: var(--text);
}

.trail__guide {
  position: absolute;
  right: -14px;
  bottom: -30px;
  width: 54px;
  animation: bob 3.2s ease-in-out infinite;
}

.trail__text p {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 15px;
}

/* ───────── For parents ───────── */

.parents {
  display: grid;
  justify-items: center;
  gap: 28px;
  margin-top: 28px;
}

.parents__list {
  display: grid;
  gap: 12px;
  width: 100%;
}

.parents__list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
}

.parents__list p {
  margin-top: 4px;
  font-size: 15px;
}

/* ───────── Prices ───────── */

.pricing {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.plan {
  padding: 22px 18px;
}

.plan h3 {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.plan__price {
  margin: 6px 0 16px;
  color: var(--success-text) !important;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.15;
}

.plan--free {
  display: flex;
  flex-direction: column;
}

.plan--free .btn {
  margin-top: 22px;
}

.plan__text {
  margin-top: 12px;
  font-size: 17px;
}

/* The packages as the profile shows them to a parent who is about to buy. */
.packages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 10px;
  margin-top: 22px;
}

.packages[data-count="1"] {
  grid-template-columns: 1fr;
}

.package {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  text-align: center;
}

.package[data-badge="popular"] {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--glow);
}

.package__badge {
  position: absolute;
  top: -11px;
  left: 50%;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translateX(-50%);
}

.package[data-badge="best_value"] .package__badge {
  background: var(--success);
  color: var(--on-success);
}

.package[data-badge="sale"] .package__badge {
  background: var(--danger);
  color: var(--on-danger);
}

.package__months {
  font-size: 16px;
  font-weight: 900;
}

.package__price {
  margin-top: 6px;
  color: var(--primary-text);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.package__was {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.package__was s {
  color: var(--muted);
}

.package__was b {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--danger-soft);
  color: var(--danger-text);
}

.package__month {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.package__promo {
  margin-top: 8px;
  color: var(--danger-text);
  font-size: 12px;
  font-weight: 800;
}

.plan__includes {
  margin: 22px 0 12px;
  color: var(--text) !important;
  font-weight: 900;
}

.pricing__note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.pricing__note .icon {
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--success-text);
}

/* The cards a parent can pay with: a picture, its colours its own in both themes. */
.card-brands {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-brands svg {
  display: block;
  width: 46px;
  height: 30px;
}

.pricing__note + .card-brands {
  margin-top: 12px;
  padding-left: 32px;
}

/* ───────── Questions ───────── */

.faq {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.faq details {
  border-radius: 22px;
  box-shadow: none;
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 60px;
  padding: 14px 18px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq h3 {
  font-size: 16px;
}

.faq__mark {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary-soft);
}

.faq__mark::before,
.faq__mark::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--primary-text);
  content: "";
  translate: -50% -50%;
  transition: rotate 0.2s;
}

.faq__mark::after {
  rotate: 90deg;
}

.faq details[open] .faq__mark::after {
  rotate: 0deg;
}

.faq details p {
  padding: 0 18px 18px;
}

/* ───────── Contact ───────── */

.contact {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.form {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field {
  display: grid;
  gap: 8px;
  font-size: 14px;
  font-weight: 900;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--background);
  color: var(--text);
  /* 16px or an iPhone zooms the page into the field. */
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--glow);
}

.form__status:empty {
  display: none;
}

.form__status {
  padding: 12px 16px;
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--text) !important;
  font-weight: 800;
}

.form__status[data-state="ok"] {
  background: var(--success-soft);
  color: var(--success-text) !important;
}

.form__status[data-state="bad"] {
  background: var(--danger-soft);
  color: var(--danger-text) !important;
}

.form__consent {
  font-size: 13px;
  color: var(--muted) !important;
}

.contact__info {
  position: relative;
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 20px;
}

.contact__mascot {
  position: absolute;
  right: 12px;
  bottom: 8px;
  width: 84px;
  opacity: 0.95;
}

.contact__list {
  display: grid;
  gap: 16px;
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact__list div {
  display: grid;
  min-width: 0;
}

.contact__list div span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact__list a,
.contact__list b {
  color: var(--text);
  font-size: 17px;
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact__list a:hover {
  color: var(--primary-text);
}

.socials {
  display: flex;
  gap: 8px;
}

/* ───────── The last call ───────── */

.cta {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 64px;
  padding: 26px 20px 30px;
  background:
    radial-gradient(120% 140% at 100% 0%, var(--violet-soft), transparent 60%),
    radial-gradient(120% 140% at 0% 100%, var(--primary-soft), transparent 60%),
    var(--card);
  text-align: center;
}

.cta img {
  width: 132px;
  animation: bob 3.2s ease-in-out infinite;
}

.cta p {
  margin: 8px 0 20px;
  font-size: 17px;
}

/* The page for an address that does not exist (404.php). */
.lost {
  margin-top: 40px;
}

.lost h1 {
  margin-top: 0;
  font-size: clamp(26px, 6.4vw, 38px);
}

/* ───────── Footer ───────── */

.site-footer {
  margin-top: 64px;
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--header);
}

.site-footer__row {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.site-footer .brand__name {
  display: block;
}

.site-footer__links {
  display: grid;
  gap: 4px;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--text-secondary);
  font-weight: 700;
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--primary-text);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 20px;
}

.site-footer__rights {
  color: var(--muted);
  font-size: 13px;
}

/* On a phone the way in follows the reader: a bar at the bottom once the
   first button has gone up out of sight. */
.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  display: grid;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  background: var(--header);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: transform 0.25s;
}

.sticky-cta[hidden] {
  display: grid;
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.25s, visibility 0s 0.25s;
}

body {
  padding-bottom: 0;
}

/* ───────── The sky behind the page: the platform's ───────── */

.sky {
  --sky-scale: 0.68;
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: -10;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  pointer-events: none;
  contain: strict;
}

.sky-scene {
  position: absolute;
  inset: 0;
}

.sky-scene--night {
  background:
    radial-gradient(52vmax 40vmax at 88% 6%, rgba(139, 108, 255, 0.22), transparent 70%),
    radial-gradient(48vmax 38vmax at 6% 58%, rgba(56, 160, 248, 0.12), transparent 70%),
    radial-gradient(46vmax 36vmax at 66% 104%, rgba(236, 110, 190, 0.1), transparent 70%);
}

.sky-scene--day {
  display: none;
  background:
    radial-gradient(46vmax 36vmax at 86% 4%, rgba(255, 213, 102, 0.34), transparent 70%),
    linear-gradient(180deg, rgba(110, 185, 255, 0.3), rgba(110, 185, 255, 0.08) 55%, transparent 85%);
}

[data-theme="light"] .sky-scene--night {
  display: none;
}

[data-theme="light"] .sky-scene--day {
  display: block;
}

.sky-tile {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  background-repeat: repeat;
  will-change: transform;
}

.sky-tile--stars {
  height: calc(100% + 640px);
  background-image: url("img/stars.svg");
  background-size: 640px 640px;
}

.sky-tile--birds {
  height: calc(100% + 720px);
  background-image: url("img/birds.svg");
  background-size: 720px 720px;
}

.sky-floater {
  position: absolute;
  top: 0;
  width: calc(var(--sky-width) * var(--sky-scale));
  will-change: transform;
}

.sky-floater svg {
  display: block;
  width: 100%;
  height: auto;
}

/* On a phone the text lies over the whole sky: its bright things are dimmed there. */
.sky-orb,
.sky-toy {
  opacity: 0.45;
}

.sky-cloud {
  opacity: 0.16;
}

.sky-scene--day .sky-cloud {
  opacity: 0.92;
}

.sky-drift {
  animation: sky-drift var(--sky-seconds) ease-in-out infinite alternate;
}

.sky-bob {
  animation: sky-bob var(--sky-seconds) ease-in-out infinite alternate;
}

.sky-twinkle svg {
  animation: sky-twinkle var(--sky-seconds) ease-in-out infinite;
}

.sky-orb::before {
  position: absolute;
  inset: -38%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 140, 0.3), transparent 66%);
  content: "";
}

.sky-orb--sun::before {
  background: radial-gradient(circle, rgba(255, 205, 80, 0.42), transparent 66%);
}

.sky-orb svg {
  position: relative;
}

.sky-sun {
  position: relative;
}

.sky-sun .sky-rays {
  position: absolute;
  inset: 0;
  animation: sky-turn 90s linear infinite;
}

.sky-shooting {
  position: absolute;
  top: 16%;
  left: 60%;
  width: 110px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #fff);
  opacity: 0;
  animation: sky-shoot 19s linear 7s infinite;
}

@keyframes sky-drift {
  from {
    transform: translate3d(-5vw, 0, 0);
  }

  to {
    transform: translate3d(5vw, 0, 0);
  }
}

@keyframes sky-bob {
  from {
    transform: translate3d(0, -8px, 0) rotate(-3deg);
  }

  to {
    transform: translate3d(0, 8px, 0) rotate(3deg);
  }
}

@keyframes sky-twinkle {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.6);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes sky-turn {
  to {
    transform: rotate(360deg);
  }
}

@keyframes sky-shoot {
  0%,
  93% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(155deg);
  }

  94.5% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translate3d(-260px, 120px, 0) rotate(155deg);
  }
}

/* ───────── Wider than a phone ───────── */

@media (min-width: 400px) {
  .brand__name {
    display: block;
  }
}

@media (min-width: 560px) {
  .hero__actions {
    display: flex;
    flex-wrap: wrap;
  }

  .worlds,
  .features {
    grid-template-columns: 1fr 1fr;
  }

  .packages:not([data-count="1"]):not([data-count="2"]) {
    grid-template-columns: repeat(4, 1fr);
  }

  .says {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 22px;
    padding: 24px 28px;
  }

  .plan {
    padding: 28px;
  }

  .form,
  .contact__info {
    padding: 28px;
  }

  .site-footer__links {
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
  }
}

@media (min-width: 640px) {
  .sky {
    --sky-scale: 1;
  }

  .sky-orb,
  .sky-toy {
    opacity: 1;
  }

  .bar__start {
    display: inline-flex;
  }

  .nav {
    left: auto;
    width: 340px;
  }

  .nav__actions .btn:not(.btn--ghost) {
    display: none;
  }
}

@media (min-width: 760px) {
  .section {
    padding-top: 88px;
  }

  .section-badge {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    font-size: 24px;
  }

  .shots {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 22px;
    max-width: calc(var(--wrap) + 2 * var(--gutter));
    margin-inline: auto;
    overflow: visible;
  }

  .shot {
    width: auto;
  }

  .world {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 24px 18px;
    text-align: center;
  }

  .world__ring {
    grid-row: auto;
    width: 104px;
    height: 104px;
    margin-bottom: 10px;
  }

  .world__ring img {
    width: 86px;
    height: 86px;
  }

  .worlds {
    grid-template-columns: repeat(6, 1fr);
  }

  /* Five in two rows: three, and two in the middle under them. */
  .world {
    grid-column: span 2;
  }

  .world:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .features {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 22px;
  }

  .feature .feature__icon {
    grid-row: auto;
    margin-bottom: 14px;
  }

  .feature p {
    margin-top: 6px;
  }

  .parents {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 44px;
  }

  .pricing {
    grid-template-columns: minmax(250px, 0.42fr) 1fr;
    align-items: stretch;
  }

  .plan--free .btn {
    margin-top: auto;
  }

  .contact {
    grid-template-columns: 1.25fr 1fr;
  }

  .contact__mascot {
    right: 22px;
    bottom: 18px;
    width: 150px;
  }

  .cta {
    grid-template-columns: auto 1fr;
    justify-items: start;
    gap: 28px;
    padding: 36px 44px;
    text-align: left;
  }

  .cta img {
    width: 170px;
  }

  .site-footer__row {
    grid-template-columns: auto 1fr auto;
    align-items: start;
    gap: 40px;
  }

  /* The trail runs across, each lantern a little higher or lower than the last. */
  .trail {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 44px;
  }

  .trail__step {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: start;
    gap: 22px;
    padding-bottom: 0;
    text-align: center;
  }

  .trail__step:nth-child(even) {
    padding-top: 34px;
  }

  .trail__lantern {
    width: 124px;
    height: 124px;
  }

  .trail__step:not(:last-child)::after {
    top: 62px;
    bottom: auto;
    left: calc(50% + 78px);
    width: calc(100% - 138px);
    height: 10px;
    background: radial-gradient(circle, var(--dot) 4.5px, transparent 5px) 0 50% / 20px 10px repeat-x;
    rotate: 8deg;
  }

  .trail__step:nth-child(even):not(:last-child)::after {
    top: 96px;
    rotate: -8deg;
  }

  .trail__guide {
    right: -40px;
    bottom: -18px;
    width: 68px;
  }
}

/* The header of a wide screen: the sections are links in it, and the menu
   button is gone. It starts where six links in Georgian fit beside the rest. */
@media (min-width: 1240px) {
  html {
    scroll-padding-top: 96px;
  }

  .bar {
    gap: 16px;
    min-height: 76px;
  }

  .brand__logo {
    width: 48px;
    height: 48px;
  }

  .bar__menu,
  .nav__actions {
    display: none;
  }

  .nav,
  .site-header.is-open .nav {
    position: static;
    display: block;
    margin: 0 auto 0 8px;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .brand {
    margin-right: 0;
  }

  .nav__list {
    display: flex;
    gap: 2px;
  }

  .nav__list a {
    min-height: 40px;
    padding: 0 11px;
    border-radius: 999px;
    color: var(--text-secondary);
    font-size: 14px;
    white-space: nowrap;
  }

  .nav__list a:hover {
    color: var(--text);
  }

}

@media (min-width: 1340px) {
  .bar__signin {
    display: inline-flex;
  }
}

@media (min-width: 980px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 40px;
    padding-top: 56px;
  }

  .hero__lead {
    font-size: 19px;
  }

  .phone {
    width: 300px;
  }

  .hero__mascot {
    right: auto;
    left: calc(50% + 78px);
    bottom: 24px;
    width: 142px;
  }

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

  .world,
  .world:nth-child(4) {
    grid-column: auto;
  }

  .sticky-cta {
    display: none !important;
  }
}

@media (min-width: 1180px) {
  .nav__list a {
    padding: 0 14px;
    font-size: 15px;
  }
}

/* A visitor who asked for less motion gets a still page. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
