/* Funcov website. Colours are taken from the Funcov logo blocks. */
:root {
  --ink: #2b2f3a;
  --ink-soft: #5a6070;
  --cream: #fff8ee;
  --card: #ffffff;
  --coral: #fb7e60;
  --coral-dark: #e0603f;
  --teal: #82c5c2;
  --teal-soft: #e3f3f2;
  --yellow: #e9b53a;
  --yellow-soft: #fdf1d3;
  --peach-soft: #feeae4;
  --line: #efe4d4;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(53, 58, 70, .10), 0 2px 6px rgba(53, 58, 70, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 17px/1.6 "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--coral-dark); }
h1, h2, h3 { font-family: "Fredoka", "Nunito", system-ui, sans-serif; font-weight: 600; line-height: 1.15; margin: 0; }

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

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 248, 238, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.top .brand img { height: 38px; width: auto; }
.top nav { display: flex; gap: 22px; font-weight: 700; font-size: 15px; }
.top nav a { color: var(--ink); text-decoration: none; }
.top nav a:hover { color: var(--coral-dark); }

/* hero */
.hero { padding: 72px 0 40px; text-align: center; position: relative; isolation: isolate; }
.hero .mark { width: 120px; margin: 0 auto 26px; }
.hero h1 { font-size: clamp(36px, 6vw, 62px); letter-spacing: -.5px; }
.hero h1 span { color: var(--coral); }
.hero p { font-size: clamp(17px, 2.2vw, 21px); color: var(--ink-soft); max-width: 600px; margin: 18px auto 30px; text-wrap: balance; }
.buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 999px; font-weight: 800; text-decoration: none; font-size: 16px; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.coral { background: var(--coral); color: #fff; box-shadow: 0 6px 0 var(--coral-dark); }
.btn.teal { background: #5fb0ac; color: #fff; box-shadow: 0 6px 0 #4a9590; }
.btn.play { background: var(--ink); color: #fff; padding: 11px 20px; font-size: 15px; box-shadow: none; }
.btn.play svg { width: 20px; height: 20px; }
.btn img { width: 28px; height: 28px; border-radius: 8px; }

.hero::before { content: ""; position: absolute; inset: -120px 0 auto; height: 520px; background: radial-gradient(closest-side at 50% 45%, #ffe6dc 0%, rgba(255, 248, 238, 0) 100%); z-index: -1; }

/* promises */
.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 30px 0 10px; }
.promise { background: var(--card); border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: var(--shadow); }
.promise .dot { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 14px; }
.promise .dot svg { width: 26px; height: 26px; }
.promise { text-align: left; }
.promise h3 { font-size: 20px; margin-bottom: 4px; }
.promise p { text-wrap: pretty; max-width: none; margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.bg-coral { background: var(--peach-soft); }
.bg-teal { background: var(--teal-soft); }
.bg-yellow { background: var(--yellow-soft); }

/* apps */
section.apps { padding: 60px 0 20px; }
.section-title { text-align: center; font-size: clamp(30px, 4vw, 42px); margin-bottom: 8px; }
.section-sub { text-wrap: balance; text-align: center; color: var(--ink-soft); margin: 0 auto 36px; max-width: 560px; }

.app { background: var(--card); border-radius: 32px; box-shadow: var(--shadow); padding: 34px; margin-bottom: 34px; overflow: hidden; }
.app-head { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.app-head .icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: 0 6px 16px rgba(0, 0, 0, .12); flex: none; }
.app-head .name { flex: 1; min-width: 220px; }
.app-head h3 { font-size: 32px; }
.age { display: inline-block; margin-top: 6px; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.app .about { margin: 20px 0 6px; font-size: 18px; max-width: 760px; }
.app ul.ticks { list-style: none; padding: 0; margin: 14px 0 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 22px; }
.app ul.ticks li { padding-left: 30px; position: relative; color: var(--ink-soft); }
.app ul.ticks li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 6px; background: var(--teal); }
.app.puzzles ul.ticks li::before { background: var(--yellow); }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 6px; }
.shots figure { margin: 0; min-width: 0; }
.shots img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; border: 5px solid var(--ink); background: var(--ink); box-shadow: 0 8px 18px rgba(53, 58, 70, .14); }
.shots figcaption { font-size: 14.5px; color: var(--ink-soft); margin-top: 10px; text-align: center; font-weight: 700; }

/* parents */
section.parents { padding: 40px 0 70px; }
.parents-card { background: var(--ink); color: #fff; border-radius: 32px; padding: 44px 34px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.parents-card h2 { font-size: clamp(28px, 3.6vw, 38px); }
.parents-card p { color: #d7dae2; }
.parents-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.parents-card li { background: rgba(255, 255, 255, .07); border-radius: 16px; padding: 14px 16px; }
.parents-card li b { color: #fff; display: block; font-family: "Fredoka", sans-serif; font-weight: 500; font-size: 18px; }
.parents-card li span { color: #c4c8d2; font-size: 15px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 34px 0 44px; color: var(--ink-soft); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
footer img { height: 30px; width: auto; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--ink); font-weight: 700; text-decoration: none; }
footer a:hover { color: var(--coral-dark); }

/* text pages (privacy, terms) */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 70px; }
.doc .paper { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 40px 38px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 10px; }
.doc h2 { font-size: 24px; margin: 34px 0 10px; }
.doc .lead { font-weight: 800; font-size: 19px; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 10px; }
.doc .updated { color: var(--ink-soft); font-size: 15px; margin-top: 34px; border-top: 1px solid var(--line); padding-top: 18px; }

@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .hero .mark { animation: none; } html { scroll-behavior: auto; } }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .top nav { gap: 14px; font-size: 14px; }
  .top nav .hide-sm { display: none; }
  .top .brand img { height: 32px; }
  .hero { padding: 48px 0 24px; }
  .hero .mark { width: 92px; }
  .app { padding: 24px 20px; border-radius: 26px; }
  .shots { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 6px -20px 0; padding: 0 20px 10px; }
  .shots figure { flex: none; width: 80%; scroll-snap-align: center; }
  .app-head .icon { width: 76px; height: 76px; border-radius: 20px; }
  .app-head h3 { font-size: 27px; }
  .parents-card { grid-template-columns: 1fr; padding: 32px 22px; border-radius: 26px; }
  .doc { padding: 28px 16px 50px; }
  .doc .paper { padding: 28px 20px; border-radius: 22px; }
}
#baby-play .shots img { aspect-ratio: 20 / 9; }
