/* Mango Patch Kids website — the same candy colours as the app (mobile/src/theme.ts).
   Mobile first: everything stacks on a phone, then spreads out from 760px. */

@font-face { font-family: "Baloo 2"; font-weight: 600; font-display: swap; src: url("../fonts/Baloo2_600SemiBold.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap; src: url("../fonts/Baloo2_800ExtraBold.woff2") format("woff2"); }

:root {
  --mango: #FFAE1A; --mango-lip: #D9780A;
  --leaf: #2FB463; --leaf-lip: #1D8445;
  --coral: #FF6F61; --coral-lip: #D9483B;
  --sea: #13B5B1; --sky: #9FD8F2;
  --ink: #1D2B4F; --ink-soft: #4E5D78;
  --cream: #FFF7E8; --paper: #FFFFFF; --line: #F0E3CC;
  --radius: 22px;
  --shadow: 0 10px 28px rgba(29, 43, 79, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 600 17px/1.55 "Baloo 2", system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sea); }
h1, h2, h3 { font-weight: 800; line-height: 1.1; margin: 0 0 .4em; }
h1 { font-size: clamp(2.6rem, 8vw, 4.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.lead { font-size: 1.12rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: .9rem; color: var(--ink-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; color: var(--mango-lip); margin-bottom: .5em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 99; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.2rem; margin: 0; }
.logo img { width: 40px; height: 40px; }
.logo b { color: var(--leaf); }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { color: var(--mango-lip); }
.top .btn-small { margin-left: auto; }

/* ---- buttons (candy: bright face on a darker lip, like the app) ---- */
.btn { display: inline-block; font: inherit; font-weight: 800; text-decoration: none; color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; cursor: pointer; box-shadow: 0 5px 0 var(--lip, rgba(0,0,0,.2)); transition: transform .08s, box-shadow .08s; }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--lip); }
.btn-small { padding: 7px 16px; font-size: .95rem; }
.btn-mango { background: var(--mango); --lip: var(--mango-lip); }
.btn-red { background: #E5352B; --lip: #A9221B; margin-top: 8px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 8px; }
.store { display: inline-flex; align-items: center; gap: 10px; min-width: 180px; padding: 9px 18px; border-radius: 14px; background: #111; color: #fff; text-decoration: none; line-height: 1.1; font-weight: 800; font-size: 1.2rem; box-shadow: 0 4px 0 #000; }
.store small { display: block; font-size: .72rem; font-weight: 600; opacity: .85; }
.store-dot { font-size: 1.5rem; }
.store-soon { background: #59606B; box-shadow: 0 4px 0 #3B4049; cursor: default; }
.note { color: var(--ink-soft); font-size: .95rem; }
.link-arrow { font-weight: 800; text-decoration: none; }

/* ---- hero ---- */
.hero { background: linear-gradient(180deg, #E6F6FD 0%, #FFF7E8 100%); padding: 36px 0 48px; }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hl { color: var(--mango); text-shadow: 0 3px 0 var(--mango-lip); }
.hero-art { margin: 0; }
.hero-art img { border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow); transform: rotate(1.2deg); }
.hero-video { position: relative; }
.hero-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0E1B2E; border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow); transform: rotate(1.2deg); }
/* Phones: the video comes first (owner, 2 Dec 2026), and the sound button is a
   small pill in the corner so it doesn't cover the picture. */
.hero-video { order: -1; }
.sound-btn { position: absolute; left: 14px; top: 14px; padding: 4px 10px; font-size: .78rem; box-shadow: 0 3px 0 var(--lip); }
.hero-video figcaption { margin-top: 12px; text-align: center; }

/* ---- bands ---- */
.band { padding: 56px 0; }
.band-cream { background: var(--cream); }
.band-mango { background: linear-gradient(135deg, var(--mango) 0%, #FFC94D 100%); }
.band-mango .lead, .band-mango .note { color: #4A3305; }

/* cast */
.cast { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 10px; }
.cast li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cast img { height: 150px; width: auto; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(29,43,79,.15)); transition: transform .2s; }
.cast li:hover img { transform: translateY(-6px) rotate(-2deg); }
.cast b { margin-top: 8px; font-size: 1.1rem; }
.cast span { font-size: .9rem; color: var(--ink-soft); }

/* the two doors */
.tag { display: inline-block; color: #fff; border-radius: 999px; padding: 0 .45em .05em; border: 3px solid #fff; box-shadow: 0 4px 0 var(--lip); }
.tag-leaf { background: var(--leaf); --lip: var(--leaf-lip); }
.tag-coral { background: var(--coral); --lip: var(--coral-lip); }
.doors { display: grid; gap: 24px; margin-top: 32px; }
.door { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 5px solid var(--edge); }
.door-leaf { --edge: var(--leaf); }
.door-coral { --edge: var(--coral); }
.door img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.door-body { padding: 20px 20px 8px; }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: .55em; }
.ticks li::before { content: "★"; position: absolute; left: 0; top: 0; color: var(--mango); font-size: 1.15rem; }

/* get the app */
.get { display: grid; gap: 22px; align-items: center; }
.get-icon { width: 130px; height: 130px; border-radius: 30px; border: 5px solid #fff; box-shadow: var(--shadow); }

/* videos */
.video-group { margin-top: 34px; }
.video-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 12px; }
.video-frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; border-radius: 18px; overflow: hidden; background: #0E1B2E; cursor: pointer; box-shadow: var(--shadow); }
.video-frame img { width: 100%; height: 100%; object-fit: cover; }
.play { position: absolute; inset: 0; margin: auto; width: 72px; height: 50px; border-radius: 14px; background: #E5352B; }
.play::after { content: ""; position: absolute; left: 29px; top: 14px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.video-soon .video-frame { cursor: default; background: linear-gradient(135deg, #DDF3FB, #FFF1D6); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; }
.video-frame .soon-mango { width: 56px; height: 56px; object-fit: contain; }
.soon { font-weight: 800; color: var(--ink-soft); }
.video-title { margin: 8px 4px 0; font-weight: 800; }
.see-all { margin-top: 28px; }
.page-head { background: linear-gradient(180deg, #E6F6FD 0%, #FFF7E8 100%); padding: 40px 0 8px; }
.app-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; background: var(--cream); border: 3px solid var(--mango); border-radius: var(--radius); padding: 18px 20px; margin-top: 48px; }
.app-strip img { width: 72px; height: 72px; border-radius: 18px; }
.app-strip .stores { margin: 0; }
.app-strip h3 { margin: 0; }
.app-strip-text { flex: 1; min-width: 220px; }
.app-strip-text p { margin: 0; }
.band.band-tight { padding-top: 8px; }

/* parents */
.promises { display: grid; gap: 16px; margin: 28px 0; }
.promise { background: var(--paper); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.promise > span { font-size: 2rem; }
.promise p { color: var(--ink-soft); margin: 0; }

/* footer */
.foot { background: var(--ink); color: #DCE3F0; padding: 36px 0 24px; }
.foot .small { color: #AEB9CF; }
.foot a { color: #fff; }
.foot-row { display: flex; flex-direction: column; gap: 16px; margin-bottom: 12px; }
.logo-foot { color: #fff; }
.logo-foot img { width: 32px; height: 32px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* privacy page */
.doc { padding: 40px 0 64px; }
.doc .wrap { max-width: 760px; }
.doc h2 { font-size: 1.5rem; margin-top: 1.6em; }
.doc li { margin-bottom: .4em; }
.draft { background: #FFF1D6; border: 2px dashed var(--mango-lip); border-radius: 14px; padding: 12px 16px; }

/* ---- bigger screens ---- */
@media (min-width: 760px) {
  .nav { display: flex; }
  .top .btn-small { margin-left: 8px; }
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1fr 1.1fr; gap: 48px; }
  .hero-video { order: 0; }  /* side by side again: words left, video right */
  .sound-btn { left: 18px; top: 18px; padding: 6px 14px; font-size: .9rem; }
  .cast { grid-template-columns: repeat(6, 1fr); }
  .cast img { height: 190px; }
  .doors { grid-template-columns: 1fr 1fr; }
  .get { grid-template-columns: auto 1fr; gap: 40px; }
  .get-icon { width: 170px; height: 170px; }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .promises { grid-template-columns: repeat(4, 1fr); }
  .foot-row { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .band { padding: 80px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
