/* picketkids.com. The app's colours (src/constants/colors.ts) and the icon's sky, sun and grass. No inline styles:
   the site's content security policy allows only this file. */
:root {
  --page: #F7F2E9; --warm-white: #FFF8EE; --card: #FFFCF6; --border: #E3D8C6; --ink: #2B2925; --muted: #6E685E;
  --accent: #3F8F7B; --accent-dark: #357A69; --accent-soft: #DCEBE5; --quiet: #A9BFB8; --tile: #E9DFCF;
  --sky-top: #A9DAF0; --sky: #6DB4D6; --sun: #FFC94D;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font: 17px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--page); -webkit-tap-highlight-color: transparent;
}
a { color: var(--accent-dark); }
h1, h2, h3 { line-height: 1.15; margin: 0; }
[hidden] { display: none !important; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* The app's channel colours, in order (Spots): a screen's parts take theirs from --spot. */
.c0 { --spot: #FF8F7E; } .c1 { --spot: #FFC94D; } .c2 { --spot: #6ED3AE; } .c3 { --spot: #6DB6FF; }
.c4 { --spot: #B59BFF; } .c5 { --spot: #FFAB6B; } .c6 { --spot: #93D46E; } .c7 { --spot: #FF92C4; }

/* Header */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand b { font-size: 26px; color: var(--accent); letter-spacing: -.3px; }
.bar .cta { padding: 9px 16px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px; }

/* Hero */
.hero { display: grid; gap: 28px; padding-top: 18px; padding-bottom: 8px; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent-dark); font-size: 14px; font-weight: 600; }
.hero h1 { font-size: clamp(32px, 6.4vw, 54px); letter-spacing: -.8px; }
.hero .lead { margin: 16px 0 22px; font-size: 19px; color: var(--muted); max-width: 34em; }
.hero .lead strong { color: var(--ink); }
.hero-art { position: relative; display: flex; justify-content: center; }
@media (min-width: 880px) {
  .hero { grid-template-columns: 1.1fr .9fr; padding-top: 34px; }
}
.go { display: inline-flex; align-items: center; min-height: 56px; padding: 0 26px; border-radius: 14px; background: var(--accent);
  color: #fff; font-weight: 700; text-decoration: none; }
.go:active { background: var(--accent-dark); }

/* The waitlist */
.join { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.join input { flex: 1 1 220px; min-height: 54px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--border);
  background: #fff; font: inherit; color: var(--ink); }
.join input:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.join button { flex: 0 0 auto; min-height: 54px; padding: 0 22px; border-radius: 14px; border: 0; background: var(--accent);
  color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.join button:active { background: var(--accent-dark); }
.join button:disabled { opacity: .6; cursor: default; }
.join .trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.fine { margin: 10px 0 0; font-size: 14px; color: var(--muted); max-width: 520px; }
.free { margin: 10px 0 0; font-size: 15px; font-weight: 600; color: var(--accent-dark); }
.thanks, .failed { display: none; max-width: 520px; margin: 14px 0 0; padding: 14px 16px; border-radius: 14px; font-weight: 600; }
.thanks { background: var(--accent-soft); color: var(--accent-dark); }
.failed { background: #F6DEDA; color: #8E3A2F; }
.joined .join, .joined .free { display: none; }
.joined .thanks, .failed-now .failed { display: block; }

/* The sky with the sun and the fence, under the hero */
.yard { display: block; width: 100%; height: auto; margin-top: 28px; }

/* Sections */
section { padding: 56px 0 8px; }
section > .wrap > h2 { font-size: clamp(26px, 4.6vw, 38px); letter-spacing: -.5px; }
section > .wrap > .sub { margin: 10px 0 26px; color: var(--muted); max-width: 40em; }

.points { display: grid; gap: 14px; }
.point { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 18px 20px; }
.point .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.point .ic svg { width: 28px; height: 28px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ic.green { background: #DCEBE5; stroke: #3F8F7B; } .ic.yellow { background: #FFF1C9; stroke: #B9851C; }
.ic.orange { background: #FFE3D3; stroke: #D2693A; } .ic.leaf { background: #EAF6DC; stroke: #4E9A3E; }
.point h3 { font-size: 19px; margin-bottom: 4px; }
.point p { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .points { grid-template-columns: 1fr 1fr; } }

/* The holiday filter, drawn */
.holi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.holi div { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; }
.holi svg { display: block; width: 100%; height: 100%; }
.holi .gone svg { opacity: .22; filter: grayscale(1); }
.holi .gone::after { content: "Hidden"; position: absolute; inset: auto 4px 4px auto; padding: 1px 7px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; }

/* The child's home by age: the tabs beside the phone */
.ages { display: grid; gap: 22px; align-items: center; justify-items: center; margin-bottom: 34px; }
.ages .say { justify-self: stretch; }
.ages h3 { font-size: 22px; margin-bottom: 12px; }
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); }
.tabs button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; font: inherit; font-size: 16px;
  font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--accent); color: #fff; }
.ages .note { margin: 14px 0 0; font-size: 18px; min-height: 3em; }
@media (min-width: 760px) {
  .ages { grid-template-columns: minmax(0, 460px) auto; justify-content: start; justify-items: start; column-gap: 64px; }
}

/* The other screens */
.gallery { display: flex; gap: 22px; overflow-x: auto; padding: 6px 2px 18px; scroll-snap-type: x mandatory; }
.gallery figure { flex: none; margin: 0; scroll-snap-align: start; width: 250px; }
.gallery figcaption { margin-top: 12px; font-size: 15px; color: var(--muted); }
.gallery figcaption b { display: block; color: var(--ink); font-size: 16px; }
@media (min-width: 900px) { .gallery { justify-content: space-between; overflow: visible; } }

.trust { display: flex; gap: 12px; align-items: center; margin: 4px 0 0; padding: 14px 16px; border-radius: 16px;
  background: var(--accent-soft); color: var(--accent-dark); font-size: 16px; max-width: 46em; }
.trust svg { flex: none; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; }

/* Questions */
.faq { margin-top: 20px; max-width: 46em; background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 18px 20px; }
.faq h3 { font-size: 19px; margin-bottom: 6px; }
.faq p { margin: 0; color: var(--muted); }

/* A phone, and the app's screens inside it */
.phone { width: 250px; aspect-ratio: 9 / 19.5; background: #1C1C1E; border-radius: 36px; padding: 8px;
  box-shadow: 0 18px 40px rgba(43, 41, 37, .18); }
.hero-art .phone { width: 270px; transform: rotate(2deg); }
.scr { position: relative; height: 100%; overflow: hidden; border-radius: 29px; background: var(--warm-white);
  font-family: Roboto, system-ui, sans-serif; }
.lock { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--quiet);
  display: grid; place-items: center; }
.lock svg { width: 15px; height: 15px; }

/* Up to 5: the colour spots */
.spots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 54px 14px 0; }
.spot { aspect-ratio: 1; border-radius: 50%; padding: 8%; background: var(--spot); }
.spot svg { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; }

/* From 6: headings, favourites, rows of videos with titles, named channels */
.rd { padding: 12px 11px 0; display: flex; flex-direction: column; gap: 11px; }
.rd h5 { margin: 0; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: space-between;
  min-height: 30px; padding-right: 38px; }
.rd h5.wide { padding-right: 0; }
.rd .pill { font-size: 10px; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: var(--card);
  border: 1px solid var(--border); }
.rd .search { height: 30px; margin-right: 38px; border-radius: 15px; border: 1.5px solid var(--border); background: #fff;
  display: flex; align-items: center; gap: 6px; padding: 0 10px; font-size: 11px; color: var(--muted); }
.rd .search svg { width: 13px; height: 13px; }
.favs { display: flex; gap: 9px; justify-content: center; }
.favs > div { width: 66px; text-align: center; font-size: 9.5px; font-weight: 600; line-height: 1.2; }
.favs .sq { aspect-ratio: 1; border-radius: 36%; padding: 7px; margin-bottom: 4px; background: var(--spot); }
.favs .sq svg { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; }
.rd.big .favs > div { width: 54px; }
.strip { display: flex; gap: 8px; margin-right: -11px; overflow: hidden; }
.strip > div { flex: none; width: 170px; font-size: 10px; line-height: 1.25; font-weight: 500; }
.rd.big .strip > div { width: 132px; font-size: 9px; }
.strip svg { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; margin-bottom: 4px; }
.strip .len { display: block; color: var(--muted); font-weight: 400; }
.strip .track { height: 4px; border-radius: 2px; background: var(--tile); margin: -2px 0 4px; overflow: hidden; }
.strip .track i { display: block; height: 100%; width: 62%; background: var(--spot); }
.chs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; padding: 0 6px; }
.rd.big .chs { grid-template-columns: 1fr 1fr 1fr; gap: 8px 10px; padding: 0; }
.chs > div { text-align: center; font-size: 10px; font-weight: 600; line-height: 1.2; }
.chs .ci { aspect-ratio: 1; border-radius: 50%; border: 4px solid var(--spot); overflow: hidden; margin-bottom: 4px; }
.chs .ci svg { display: block; width: 100%; height: 100%; }

/* A channel: the rail, and its videos on its colour */
.chan { display: flex; height: 100%; }
.rail { flex: none; width: 58px; background: #FFFDF8; display: flex; flex-direction: column; align-items: center; gap: 9px; padding-top: 10px; }
.rail .back { width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.12);
  display: grid; place-items: center; margin-bottom: 4px; }
.rail .back svg { width: 18px; height: 18px; }
.rail .av { width: 34px; height: 34px; border-radius: 50%; padding: 3px; background: var(--spot); }
.rail .av svg { display: block; width: 100%; height: 100%; border-radius: 50%; }
.rail .av.on { outline: 3px solid var(--ink); outline-offset: 1px; }
.vids { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 12px 10px;
  background: color-mix(in srgb, var(--spot) 22%, #fff); }
.vids div { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; flex: none; }
.vids svg { display: block; width: 100%; height: 100%; }

/* Time's up */
.moon { height: 100%; display: grid; place-items: center; }
.moon svg { width: 46%; }

/* The parent's phone */
.par { height: 100%; background: var(--page); padding: 16px 12px; display: flex; flex-direction: column; gap: 9px; font-size: 12px; }
.par .top { display: flex; align-items: center; gap: 8px; }
.par .top svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
.par .top b { font-size: 19px; }
.par .top .ag { color: var(--muted); font-size: 14px; }
.par .cd { background: var(--card); border: 1px solid var(--border); border-radius: 13px; padding: 9px 11px; }
.par .cd h4 { margin: 0 0 5px; font-size: 13px; }
.par .meter { height: 8px; border-radius: 4px; background: var(--tile); overflow: hidden; margin: 5px 0 3px; }
.par .meter i { display: block; height: 100%; width: 55%; background: var(--accent); }
.par .row { display: flex; justify-content: space-between; padding: 3px 0; }
.par .row span:last-child { color: var(--muted); }
.par .week { display: flex; align-items: flex-end; gap: 6px; height: 46px; margin-top: 4px; }
.par .week i { flex: 1; background: var(--accent-soft); border-radius: 4px 4px 0 0; }
.par .week i:nth-child(1) { height: 73%; } .par .week i:nth-child(2) { height: 100%; } .par .week i:nth-child(3) { height: 87%; }
.par .week i:nth-child(4) { height: 58%; } .par .week i:nth-child(5) { height: 100%; } .par .week i:nth-child(6) { height: 80%; }
.par .week i:nth-child(7) { height: 55%; background: var(--accent); }
.par .chk { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; }
.par .tog { width: 28px; height: 16px; border-radius: 8px; background: var(--accent); position: relative; }
.par .tog::after { content: ""; position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.par .tog.off { background: var(--tile); } .par .tog.off::after { right: auto; left: 2px; }
.par .btn { margin-top: auto; text-align: center; padding: 10px; border-radius: 12px; background: var(--accent); color: #fff;
  font-weight: 600; font-size: 13px; }

/* The waitlist's band, and the footer */
.last { margin: 56px 0 0; padding: 40px 0; background: linear-gradient(var(--sky-top), var(--sky)); }
.last .box { background: var(--card); border-radius: 24px; padding: 26px 22px; max-width: 620px; margin: 0 auto; }
.last h2 { font-size: clamp(24px, 4.4vw, 34px); margin-bottom: 14px; }
footer { padding: 26px 0 40px; font-size: 14px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
footer p { margin: 4px 0; }

/* The privacy policy and the terms */
.doc { max-width: 780px; padding-top: 12px; padding-bottom: 32px; }
.doc h1 { font-size: clamp(30px, 5.6vw, 42px); letter-spacing: -.6px; margin: 8px 0 6px; }
.doc h2 { font-size: 24px; margin: 34px 0 10px; }
.doc p, .doc li { max-width: 46em; }
.doc li { margin: 4px 0; }
.doc .table { overflow-x: auto; margin: 14px 0; }
.doc table { border-collapse: collapse; min-width: 520px; width: 100%; background: var(--card); font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 9px 12px; border: 1px solid var(--border); }
.doc th { background: var(--tile); }
.doc hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0; }
.draft { padding: 10px 14px; border-radius: 12px; background: #F2E4C2; color: #6B5320; font-weight: 600; }
mark { background: #F2E4C2; color: #6B5320; border-radius: 4px; padding: 0 3px; }
