/* GilluTV landing page. Single stylesheet, mobile-first, no build step. */

:root {
  /* Page chrome: warm cream derived from assets/bg-day.webp */
  --paper: #F6F2E6;
  --paper-deep: #EFEADB;
  --surface: #FBF9F2;
  --line: #E2DCC8;
  --ink: #1E2246;
  --ink-muted: #4B4F6B;
  --accent-ink: #9A4A12;

  /* App UI (used for the phone mockups and the CTA band) */
  --app-950: #0E1024;
  --app-900: #171A38;
  --app-800: #1E2246;
  --app-greet-1: #5B21B6;
  --app-greet-2: #2563EB;
  --app-greet-3: #06B6D4;

  /* Play button */
  --cta-from: #FFA93D;
  --cta-to: #F47A1C;
  --cta-ink: #0E1024;

  /* Vertical accents */
  --v-stories: #FF5C8A;
  --v-myth: #FFB020;
  --v-games: #2ED3B7;
  --v-science: #6C8BFF;
  --v-music: #A66BFF;
  --v-nature: #66D34B;

  --font-head: "Fredoka", "Nunito Sans", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-s: 18px;
  --radius-m: 28px;
  --radius-l: 32px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --section-pad: clamp(56px, 9vw, 112px);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

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

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  margin: 0;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.1rem, 1.55rem + 2.4vw, 3.4rem);
  line-height: 1.08;
  max-width: 18ch;
}

h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem);
  line-height: 1.15;
}

h3 {
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.3;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

.container {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* Focus and skip link */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  font-weight: 700;
  z-index: 100;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Header */
.site-header {
  background: var(--paper);
  padding-block: 18px;
}

.brand {
  display: inline-block;
}

.brand__logo {
  height: 36px;
  width: auto;
}

/* Hero */
.hero {
  padding-block: clamp(24px, 5vw, 56px) var(--section-pad);
}

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

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--accent-ink);
  margin-bottom: var(--space-2);
}

.hero__lede {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 34rem;
  margin-block: var(--space-3) var(--space-4);
}

.fine-print {
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-top: var(--space-2);
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 520px;
  min-height: 420px;
  padding-block: 6% 12%;
}

.hero-visual__scene {
  position: absolute;
  inset: 4% 0 14% 10%;
  border-radius: var(--radius-m);
  background-color: #ECE9DA;
  background-image: url("assets/bg-day.webp");
  background-position: center 18%;
  background-size: cover;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
}

/* Play button */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  color: var(--cta-ink);
  text-decoration: none;
  background: linear-gradient(135deg, #ffa93d, #f47a1c);
  box-shadow: 0 8px 20px rgba(244, 122, 28, 0.28);
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.cta:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.cta__label--soon {
  display: none;
}

.cta--soon,
.cta[aria-disabled="true"] {
  background: #EFEADB;
  color: #3D4160;
  border: 1px solid #CFC7AE;
  box-shadow: none;
  cursor: default;
}

.cta--soon:hover,
.cta[aria-disabled="true"]:hover {
  transform: none;
  filter: none;
}

.cta--soon .cta__label--live {
  display: none;
}

.cta--soon .cta__label--soon {
  display: inline;
}

.cta--on-dark.cta--soon,
.cta--on-dark[aria-disabled="true"] {
  background: transparent;
  color: #F6F2E6;
  border: 1px solid rgba(246, 242, 230, 0.4);
}

/* What's inside */
.inside {
  padding-block: var(--section-pad);
}

.inside__intro p,
.parents__intro p {
  color: var(--ink-muted);
  margin-top: var(--space-2);
  max-width: 30rem;
}

.content-list {
  display: grid;
  gap: 20px;
  margin-top: var(--space-4);
}

.content-card {
  --accent: var(--v-science);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 24px;
}

.content-card::before {
  content: "";
  display: block;
  width: 36px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  margin-bottom: var(--space-2);
}

.content-card--videos { --accent: var(--v-science); }
.content-card--audio { --accent: var(--v-stories); }
.content-card--games { --accent: var(--v-games); }
.content-card--storybooks { --accent: var(--v-myth); }
.content-card--mantras { --accent: var(--v-music); }

.content-card p {
  color: var(--ink-muted);
  margin-top: 6px;
}

/* Parent controls */
.parents {
  background: var(--paper-deep);
  padding-block: var(--section-pad);
}

.control-list {
  margin-top: var(--space-4);
}

.control {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: var(--space-2);
  align-items: start;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.control:last-child {
  border-bottom: 1px solid var(--line);
}

.control__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.control__text p {
  color: var(--ink-muted);
  margin-top: 4px;
}

/* CTA band */
.get-app {
  padding-block: var(--section-pad);
}

.get-app__card {
  display: grid;
  gap: var(--space-3);
  background: var(--app-800);
  border-radius: var(--radius-l);
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
}

.get-app__copy h2 {
  color: #F6F2E6;
}

.get-app__copy > p:not(.fine-print) {
  color: #C9C6DC;
  margin-block: var(--space-2) var(--space-3);
  max-width: 34rem;
}

.get-app .fine-print {
  color: #C9C6DC;
}

.get-app :focus-visible {
  outline-color: #FFA93D;
}

.get-app__mascot {
  width: 140px;
  height: auto;
  justify-self: end;
}

/* Footer */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-block: var(--space-4);
}

.site-footer__row {
  display: grid;
  gap: var(--space-2);
}

.site-footer__brand {
  font-family: var(--font-head);
  font-weight: 600;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer a {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer__legal {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* Desktop hero */
@media (min-width: 960px) {
  .brand__logo {
    height: 44px;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 64px;
    align-items: center;
  }

  .hero-visual {
    min-height: 560px;
  }
}

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

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

  .cta:hover {
    transform: none;
  }
}

/* ---------- Phone mockups (HTML/CSS only, kid-facing app look) ---------- */
.phone {
  container-type: inline-size;
  background: #07081A;
  padding: 2.4%;
  border-radius: 14% / 6.5%;
  aspect-ratio: 9 / 19.5;
  box-shadow: 0 2px 4px rgba(30, 34, 70, 0.18), 0 18px 40px rgba(30, 34, 70, 0.28), 0 40px 80px rgba(30, 34, 70, 0.16);
}

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--app-950);
  border-radius: 11% / 5.2%;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 11px;
  font-size: 4.4cqi;
  line-height: 1.3;
  padding: 1em 1em 0;
}

/* Home phone sits in front; the Parent Zone phone is tucked behind it. */
.phone--home {
  position: relative;
  width: 62%;
  margin-left: 4%;
  z-index: 3;
}

.phone--parent {
  position: absolute;
  width: 40%;
  right: 0;
  top: 8%;
  z-index: 2;
  transform: rotate(5deg);
  transform-origin: bottom center;
}

.phone p,
.phone span {
  margin: 0;
}

.phone svg {
  display: block;
}

.app-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8em;
  font-weight: 700;
  opacity: 0.8;
  margin-bottom: 0.6em;
}

.app-status__icons {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}

.app-status .bars {
  width: 1em;
  height: 0.7em;
  background: linear-gradient(to right, #fff 0 18%, transparent 18% 27%, #fff 27% 55%, transparent 55% 64%, #fff 64% 100%);
  clip-path: polygon(0 100%, 0 70%, 30% 70%, 30% 40%, 65% 40%, 65% 0, 100% 0, 100% 100%);
}

.app-status .battery {
  width: 1.4em;
  height: 0.7em;
  border: 1px solid #fff;
  border-radius: 0.2em;
  position: relative;
}

.app-status .battery::after {
  content: "";
  position: absolute;
  inset: 1px;
  right: 30%;
  background: #fff;
  border-radius: 0.1em;
}

.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8em;
}

.app-bar__logo {
  height: 2.1em;
  width: auto;
}

.app-bar__search {
  display: grid;
  place-items: center;
  width: 2.4em;
  height: 2.4em;
  border-radius: 50%;
  background: var(--app-800);
  color: #fff;
}

.app-bar__search svg {
  width: 1.2em;
  height: 1.2em;
}

.app-greeting {
  display: block;
  padding: 1.1em;
  border-radius: 1.4em;
  background: linear-gradient(135deg, var(--app-greet-1), var(--app-greet-2) 55%, var(--app-greet-3));
  border: 1px solid rgba(255, 215, 0, 0.2);
  margin-bottom: 0.8em;
}

.app-greeting__small {
  display: block;
  font-size: 0.85em;
  font-weight: 600;
  opacity: 0.9;
}

.app-greeting__name {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.7em;
  line-height: 1.15;
}

.app-pills {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5em;
  overflow: hidden;
  margin-bottom: 0.9em;
  -webkit-mask-image: linear-gradient(to right, #000 82%, transparent 100%);
  mask-image: linear-gradient(to right, #000 82%, transparent 100%);
}

.pill {
  flex: none;
  padding: 0.35em 0.8em;
  border-radius: 999px;
  font-size: 0.78em;
  font-weight: 700;
  color: var(--app-950);
  white-space: nowrap;
}

.pill--stories { background: var(--v-stories); }
.pill--myth { background: var(--v-myth); }
.pill--games { background: var(--v-games); }
.pill--science { background: var(--v-science); }
.pill--music { background: var(--v-music); }
.pill--nature { background: var(--v-nature); }

.app-heading {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1em;
  margin-bottom: 0.5em;
}

.app-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7em;
  margin-bottom: 0.9em;
}

.app-card__label {
  display: block;
  font-size: 0.78em;
  margin-block: 0.45em 0.35em;
  color: #C9C6DC;
}

.app-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 0.9em;
  overflow: hidden;
}

.app-tile--story {
  background: linear-gradient(135deg, var(--v-stories), var(--v-myth));
}

.app-tile--story img {
  position: absolute;
  right: 0;
  bottom: -22%;
  height: 140%;
  width: auto;
  max-width: none;
}

.app-tile--game {
  background: linear-gradient(135deg, var(--v-games), var(--v-science));
}

.app-tile--game::before,
.app-tile--game::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.app-tile--game::before {
  width: 45%;
  aspect-ratio: 1;
  right: 10%;
  top: 14%;
}

.app-tile--game::after {
  width: 26%;
  aspect-ratio: 1;
  left: 14%;
  bottom: 16%;
  background: rgba(255, 255, 255, 0.18);
}

.app-progress {
  display: block;
  height: 0.3em;
  border-radius: 999px;
  background: var(--app-800);
  overflow: hidden;
}

.app-progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
}

/* Horizontal rails of square (1:1) thumbnails; the last tile is cut off to
   show that the row scrolls sideways. */
.app-rail {
  display: flex;
  gap: 0.6em;
  overflow: hidden;
  margin-bottom: 0.6em;
  -webkit-mask-image: linear-gradient(to right, #000 85%, transparent 100%);
  mask-image: linear-gradient(to right, #000 85%, transparent 100%);
}

.app-thumb {
  flex: none;
  width: 7em;
}

.app-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.8em;
}

.app-thumb__label {
  display: block;
  margin-top: 0.3em;
  font-size: 0.68em;
  line-height: 1.2;
  color: #C9C6DC;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-thumb .app-progress {
  margin-top: 0.3em;
}

.app-nav {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 3%;
  height: 3.2em;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--app-800);
  border-radius: 999px;
  box-shadow: 0 0.4em 1em rgba(0, 0, 0, 0.4);
}

.app-nav__item {
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  border-radius: 50%;
  color: #C9C6DC;
}

.app-nav__item svg {
  width: 1.15em;
  height: 1.15em;
}

.app-nav__item--active {
  background: #FFA93D;
  color: var(--app-950);
}

/* Parent Zone screen */
.pz-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7em;
}

.pz-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.25em;
}

.pz-head svg {
  width: 1.3em;
  height: 1.3em;
  color: #FFA93D;
}

.pz-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.3em 0.7em;
  border-radius: 999px;
  background: var(--app-800);
  font-size: 0.75em;
  font-weight: 700;
  margin-bottom: 0.9em;
}

.pz-chip i {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--v-games);
}

.pz-list {
  background: var(--app-900);
  border-radius: 0.9em;
  padding: 0.2em 0.8em;
}

.pz-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6em;
  padding-block: 0.65em;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pz-row:first-child {
  border-top: 0;
}

.pz-row__text {
  display: block;
  min-width: 0;
}

.pz-row b {
  display: block;
  font-size: 0.85em;
  font-weight: 700;
}

.pz-row small {
  display: block;
  font-size: 0.65em;
  color: #C9C6DC;
  line-height: 1.25;
  margin-top: 0.15em;
}

.pz-switch {
  flex: none;
  position: relative;
  width: 2.1em;
  height: 1.2em;
  border-radius: 999px;
  background: var(--v-games);
}

.pz-switch::after {
  content: "";
  position: absolute;
  top: 0.15em;
  right: 0.15em;
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;
  background: #fff;
}

/* ---------- Section design and responsive pass ---------- */
.hero__copy {
  max-width: 36rem;
}

.get-app__card {
  position: relative;
}

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

  .content-card--mantras {
    grid-column: 1 / -1;
  }

  .site-footer__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
  }
}

@media (min-width: 720px) {
  .get-app__card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: var(--space-4);
  }

  .get-app__mascot {
    justify-self: end;
    width: clamp(160px, 22vw, 240px);
    margin-bottom: calc(clamp(28px, 5vw, 56px) * -1);
  }
}

@media (min-width: 960px) {
  .inside__grid,
  .parents__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
    align-items: start;
  }

  .inside__intro {
    position: sticky;
    top: 32px;
  }

  .content-list,
  .control-list {
    margin-top: 0;
  }

  .control:first-child {
    border-top: 0;
    padding-top: 0;
  }
}

/* ---------- Legal pages (privacy, terms) ---------- */
.legal {
  padding-block: clamp(28px, 6vw, 64px) var(--section-pad);
}

.legal__inner {
  max-width: 760px;
}

.legal h1 {
  margin-bottom: 0.3em;
}

.legal h2 {
  font-size: 1.35rem;
  margin: 2em 0 0.5em;
}

.legal h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin: 1.4em 0 0.4em;
}

.legal p,
.legal li {
  color: var(--ink-muted);
  line-height: 1.65;
}

.legal p {
  margin: 0 0 1em;
}

.legal ul,
.legal ol {
  padding-left: 1.3em;
}

.legal li + li {
  margin-top: 0.35em;
}

.legal__meta {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: 2em;
}

.legal a {
  color: var(--accent-ink);
}

.hero {
  overflow-x: clip;
}
