/*
 * dalibude.app — the kids app's night look on the web (direction «Серіал», decision 47), kept compact:
 * a 1120 px column, modest type, dense cards. The build resolves each asset: URL to its hashed file.
 */

@font-face {
  font-family: 'Golos Text';
  src: url(/assets/fonts/golos-text-var.a60c170605.woff2) format('woff2');
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Unbounded';
  src: url(/assets/fonts/unbounded-800.811ba939ef.woff2) format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #070b18;
  --ledge: #0b1020;
  --ledge-2: #10162b;
  --line: rgba(169, 180, 208, 0.14);
  --text: #fff3da;
  --muted: #a9b4d0;
  --beam: #ffc24a;
  --ivory: #fff3da;
  --ivory-2: #ede0c4;
  --ink: #1b1f33;
  --brass: linear-gradient(180deg, #ffe7ae 0%, #f6bc45 100%);
  --radius: 16px;
  --radius-small: 10px;
  --gap: 16px;
  --section: clamp(48px, 7vw, 80px);
  --font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Unbounded', 'Golos Text', system-ui, sans-serif;
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
}

h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.15;
}

h3 {
  font-size: 16px;
  line-height: 1.3;
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd,
figure {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--beam);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 20px;
}

.narrow {
  max-width: 560px;
}

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

.small {
  font-size: 14px;
  line-height: 1.5;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 10px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 24, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 60px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark-lamp {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--beam);
  box-shadow: 0 0 14px 3px rgba(255, 194, 74, 0.55);
}

.header-nav {
  margin-left: auto;
}

.header-nav ul {
  display: flex;
  gap: 22px;
}

.header-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

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

.header-row > .button {
  margin-left: auto;
}

.header-nav + .button {
  margin-left: 0;
}

@media (max-width: 899px) {
  .header-nav {
    display: none;
  }
}

/* Buttons and chips */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-brass {
  background: var(--brass);
  color: var(--ink);
  box-shadow: 0 6px 24px -8px rgba(246, 188, 69, 0.6);
}

.button-ghost {
  border-color: rgba(255, 243, 218, 0.28);
  color: var(--text);
}

.button-ghost:hover {
  border-color: rgba(255, 243, 218, 0.6);
}

.button-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

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

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 12px;
}

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

.chips li {
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.overline {
  margin-bottom: 10px;
  color: var(--beam);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Sections */

.section {
  padding-block: var(--section) 0;
}

main > .section:last-child {
  padding-bottom: var(--section);
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

@media (min-width: 900px) {
  .section-head {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: end;
    gap: 48px;
  }
}

.section-lead {
  color: var(--muted);
  font-size: 16px;
  max-width: 52ch;
}

.note-line {
  margin: 14px 0 var(--gap);
}

.grid {
  display: grid;
  gap: var(--gap);
}

@media (min-width: 600px) {
  .grid-2,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 960px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ledge);
}

.card-pad {
  gap: 10px;
  padding: 20px;
}

.card-body {
  display: grid;
  gap: 6px;
  padding: 16px 18px 18px;
}

.card-body p:last-child,
.card-pad > p:not(.card-label):not(.tile) {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.card-foot {
  margin-top: auto;
  padding: 0 18px 18px;
}

.card-label {
  color: var(--beam);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.card-label.dark {
  color: #8a6a1e;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
}

.step-number {
  color: var(--beam);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
}

.card-art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 599px) {
  .card-art {
    aspect-ratio: 2 / 1;
  }
}

.card-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-art-ivory {
  /* The warm off-white the drawn pictures sit on, so a contained picture has no visible edge. */
  background: #fce7d0;
}

.card-art > img.spot {
  object-fit: contain;
}

.card-art-night {
  background: radial-gradient(80% 90% at 50% 0%, #1a2246 0%, var(--ledge-2) 60%, var(--ledge) 100%);
}

.card-beam {
  border-color: rgba(255, 194, 74, 0.35);
}

.card-art-beam {
  align-content: center;
  gap: 4px;
  background: radial-gradient(60% 80% at 50% 0%, rgba(255, 194, 74, 0.28) 0%, rgba(255, 194, 74, 0) 70%), var(--ledge);
  text-align: center;
}

.cliffhanger {
  color: #ffe2a3;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
}

.cliffhanger-note {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.cliffhanger-note::before {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  margin: 6px auto 8px;
  background: var(--beam);
}

/* Ivory tiles: the app's reading tiles */

.tile {
  display: inline-block;
  padding: 12px 14px;
  border-radius: var(--radius-small);
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.7);
}

.tile-glow {
  border: 2px solid var(--beam);
  box-shadow: 0 0 22px -4px rgba(255, 194, 74, 0.65);
  font-size: 18px;
}

.letter-tiles {
  display: flex;
  gap: 10px;
}

.letter-tile {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 58px;
  padding: 10px 10px 8px;
  border-radius: var(--radius-small);
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%);
  color: var(--ink);
}

.letter-tile .glyphs {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.1;
}

.letter-tile .hint {
  color: #8a6a1e;
  font-size: 12px;
  font-weight: 600;
}

.typing {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.typed {
  display: inline-flex;
  align-items: center;
  min-width: 150px;
  padding: 10px 16px;
  border-radius: var(--radius-small);
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%);
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
}

.caret {
  width: 2px;
  height: 22px;
  margin-left: 2px;
  background: var(--ink);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .caret {
    animation: none;
  }
}

.retry {
  padding: 4px 12px;
  border: 1px solid rgba(255, 194, 74, 0.5);
  border-radius: 999px;
  color: var(--beam);
  font-size: 13px;
  font-weight: 600;
}

/* Postcards */

.postcard {
  max-width: 240px;
  padding: 12px 14px;
  border-radius: var(--radius-small);
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.8);
}

.postcard-to {
  margin-bottom: 4px;
  color: #8a6a1e;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tilt {
  transform: rotate(-3deg);
}

.weekly {
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin-top: var(--gap);
  padding: 16px 20px;
}

.weekly .postcard {
  flex: none;
  max-width: 200px;
}

.weekly > p {
  color: var(--text);
  font-weight: 500;
}

@media (max-width: 599px) {
  .weekly {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Hero */

.hero {
  position: relative;
  padding-block: clamp(28px, 5vw, 56px) 0;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 70%;
  height: 120%;
  background: radial-gradient(45% 45% at 60% 40%, rgba(255, 194, 74, 0.12) 0%, rgba(255, 194, 74, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 48px;
  }
}

.hero-copy .overline {
  max-width: 46ch;
}

.hero .accent {
  display: block;
  color: var(--beam);
}

.hero-lead {
  margin-top: 16px;
  max-width: 48ch;
  color: var(--muted);
  font-size: 17px;
}

.hero-art {
  position: relative;
}

.rounded-art {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.hero-art .rounded-art {
  box-shadow: 0 30px 80px -30px rgba(255, 194, 74, 0.28);
}

.now-playing {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(11, 16, 32, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 599px) {
  .now-playing {
    position: static;
    margin-top: 10px;
  }
}

.badge {
  flex: none;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--brass);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

/* Season */

.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
}

.split .section-lead {
  margin-top: 12px;
}

.cast {
  display: grid;
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.cast > div {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cast dt {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  color: var(--beam);
}

.cast dd {
  color: var(--muted);
  font-size: 15px;
}

/* Levels */

.numbered {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.numbered li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-size: 14px;
}

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

.support > div:first-child {
  display: grid;
  gap: 10px;
}

.support > div:first-child > p:last-child {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.support-demo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.translations {
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--ledge-2);
  font-size: 14px;
}

.translations > div {
  display: flex;
  gap: 10px;
}

.translations dt {
  min-width: 22px;
  color: var(--beam);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.9;
}

/* Parents */

.mock {
  display: grid;
  gap: 10px;
  margin-bottom: 8px;
}

.mock-dark {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--ledge-2);
}

.note-ivory {
  padding: 14px 16px;
  border-radius: var(--radius-small);
  background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.45;
}

.audio-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.audio-label {
  display: grid;
  min-width: 96px;
  font-size: 14px;
  line-height: 1.3;
}

.audio-label .small {
  font-size: 12px;
}

.audio-play {
  flex: none;
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 243, 218, 0.14);
}

.audio-play::after {
  content: '';
  position: absolute;
  left: 12px;
  top: 10px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent var(--text);
}

.audio-play-active {
  background: var(--brass);
}

.audio-play-active::after {
  border-left-color: var(--ink);
}

.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 26px;
  overflow: hidden;
}

.wave span {
  width: 3px;
  height: 40%;
  border-radius: 2px;
  background: rgba(169, 180, 208, 0.45);
}

.wave-active span {
  background: var(--beam);
}

.wave span:nth-child(3n + 1) {
  height: 55%;
}

.wave span:nth-child(4n + 2) {
  height: 85%;
}

.wave span:nth-child(5n + 3) {
  height: 30%;
}

.wave span:nth-child(7n) {
  height: 100%;
}

.mock-postcards .postcard {
  max-width: none;
}

.reply {
  display: grid;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 194, 74, 0.35);
  border-radius: var(--radius-small);
}

.reply-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.button-mock {
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brass);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.steps-inline {
  display: grid;
  gap: 14px;
  margin-top: var(--gap);
}

@media (min-width: 760px) {
  .steps-inline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }

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

.steps-inline li {
  display: grid;
  gap: 4px;
  align-content: start;
}

/* Price */

.card-pad > .plan-price {
  color: var(--text);
}

@media (min-width: 600px) {
  .plan {
    min-height: 230px;
  }
}

@media (max-width: 599px) {
  .plan .button-block {
    margin-top: 8px;
  }
}

.plan-featured {
  border-color: rgba(255, 194, 74, 0.45);
  background: radial-gradient(80% 60% at 50% 0%, rgba(255, 194, 74, 0.12) 0%, rgba(255, 194, 74, 0) 70%), var(--ledge);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
}

.dots {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.dots li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
  font-size: 14px;
}

.dots li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--beam);
}

/* FAQ */

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

@media (min-width: 900px) {
  .faq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ledge);
}

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

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

.faq-item summary::after {
  content: '+';
  flex: none;
  color: var(--beam);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
}

.faq-item p {
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 15px;
}

/* Final call */

.final {
  position: relative;
  padding: clamp(32px, 5vw, 48px) 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 194, 74, 0.3);
  border-radius: 20px;
  background: radial-gradient(50% 70% at 50% 0%, rgba(255, 194, 74, 0.22) 0%, rgba(255, 194, 74, 0) 70%), var(--ledge);
  text-align: center;
}

.final-title {
  color: #ffe2a3;
  font-size: clamp(32px, 5vw, 48px);
}

.final-text {
  max-width: 46ch;
  margin: 14px auto 0;
  color: var(--text);
  font-size: 16px;
}

.final .cta-row {
  justify-content: center;
}

/* 404 */

.not-found {
  padding-bottom: var(--section);
  text-align: center;
}

.not-found-art {
  width: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
}

.not-found .section-lead {
  margin: 10px auto 0;
}

.not-found .cta-row {
  justify-content: center;
}

/* Footer */

.site-footer {
  padding-block: 32px 28px;
  border-top: 1px solid var(--line);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: grid;
  gap: 8px;
  max-width: 420px;
}

.footer-links,
.footer-languages {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 14px;
}

.footer-links a,
.footer-languages a {
  color: var(--muted);
  text-decoration: none;
}

.footer-copy {
  margin-top: 18px;
}
