/* Boop Bay site. Everything is self-hosted: no web fonts, scripts or embeds from other sites. */

@font-face {
  font-family: "Fredoka";
  src: url("fonts/fredoka-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --sea-deep: #0b3f68;
  --sea: #1679b8;
  --sea-light: #8fd3f4;
  --foam: #e8f7fd;
  --sand: #fff7e6;
  --sand-dark: #f3e3c3;
  --duck: #ffd23f;
  --duck-dark: #f2a900;
  --ink: #15324a;
  --muted: #4d6578;
  --card: #ffffff;
  --line: #e5d6b6;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(11, 63, 104, 0.12);
  --display: "Fredoka", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 17px/1.6 var(--body);
}

img, video { display: block; max-width: 100%; }
a { color: var(--sea); text-underline-offset: 3px; }
a:hover { color: var(--sea-deep); }
:focus-visible { outline: 3px solid var(--duck-dark); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; }
h2 { font-size: clamp(28px, 4.5vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--duck); color: var(--ink); padding: 8px 14px; border-radius: 10px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header {
  background: var(--sea-deep);
  color: #fff;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-family: var(--display); font-size: 24px; font-weight: 600;
}
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand:hover { color: #fff; }
.site-nav { display: flex; gap: 22px; font-weight: 600; font-size: 15px; }
.site-nav a { color: #dff3ff; text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--duck); }
@media (max-width: 520px) {
  .site-nav { gap: 14px; font-size: 14px; }
  .brand { font-size: 21px; }
  .brand img { width: 32px; height: 32px; }
}
@media (max-width: 370px) { .site-nav .hide-small { display: none; } }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 50% 115%, rgba(143, 211, 244, 0.55), transparent 60%),
    linear-gradient(180deg, var(--sea-deep) 0%, var(--sea) 70%, #2d9bd6 100%);
  color: #fff;
  padding: 56px 0 120px;
  text-align: center;
}
.hero::after {
  /* the sand at the bottom of the bay */
  content: ""; position: absolute; left: -5%; right: -5%; bottom: -1px; height: 70px;
  background: var(--sand);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero-icon {
  width: 132px; height: 132px; margin: 0 auto 18px;
  border-radius: 30px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.hero h1 {
  font-size: clamp(52px, 11vw, 92px); margin: 0 0 6px;
  text-shadow: 0 4px 0 #0a2c48, 0 8px 24px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.5px;
}
.tagline {
  font-family: var(--display); font-size: clamp(21px, 3.6vw, 28px);
  margin: 0 0 22px; color: #fff;
}
.soon {
  /* plain text, not a pill, so it doesn't look tappable next to the real buttons */
  margin: 0 0 26px; color: var(--duck);
  font-weight: 700; font-size: 17px; letter-spacing: 0.2px;
}
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 22px; border-radius: 999px;
  font: 600 17px/1 var(--display); text-decoration: none; cursor: pointer;
  border: 2px solid transparent;
}
.button.primary { background: var(--duck); color: var(--ink); box-shadow: 0 4px 0 var(--duck-dark); }
.button.primary:hover { background: #ffdc66; color: var(--ink); }
.button.ghost { background: rgba(255, 255, 255, 0.12); color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.button.ghost:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }
.button:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }

/* Sections */
section { padding: 56px 0; }
section.tight { padding-top: 8px; }
.section-intro { color: var(--muted); font-size: 18px; max-width: 680px; }
.center { text-align: center; }
.center .section-intro { margin-inline: auto; }

.intro { font-size: 19px; }

.facts {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px;
}
.facts li {
  background: var(--card); border: 2px solid var(--line); border-radius: 16px;
  padding: 12px 16px 12px 46px; position: relative; font-weight: 600;
}
.facts li::before {
  content: ""; position: absolute; left: 16px; top: 50%; translate: 0 -50%;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--duck); box-shadow: inset 0 -3px 0 var(--duck-dark);
}

/* Video */
.video-card {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px; margin: 0;
}
.video-card video {
  width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; background: #0b3f68;
}
.video-card figcaption { color: var(--muted); font-size: 15px; padding: 10px 8px 4px; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 26px; }
@media (max-width: 820px) { .video-grid { grid-template-columns: 1fr; } }

/* Lessons */
.band { background: var(--foam); }
.lesson-group { margin-top: 40px; }
.lesson-group > h3 {
  display: inline-block; background: var(--sea); color: #fff;
  padding: 6px 16px; border-radius: 999px; font-size: 19px; margin-bottom: 16px;
}
.cards {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px;
}
.card {
  background: var(--card); border-radius: 18px; overflow: hidden;
  box-shadow: 0 6px 18px rgba(11, 63, 104, 0.08);
  display: flex; flex-direction: column;
}
.card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.card .card-body { padding: 14px 16px 16px; }
.card h4 { font: 600 19px/1.2 var(--display); margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }
.card.text-only .card-body { padding-top: 18px; }

.playground {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin-top: 40px;
}
.playground img { border-radius: 14px; }
.playground h3 { font-size: 28px; }
@media (max-width: 820px) { .playground { grid-template-columns: 1fr; } }

/* Signup */
.notify {
  background: linear-gradient(180deg, #fff3c4, #ffe68a);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.notify h2 { font-size: clamp(26px, 4vw, 34px); }
.notify fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.notify-row { margin: 0 0 14px; }
.notify label { font-weight: 700; display: block; margin-bottom: 6px; }
.notify input[type="email"], .notify select {
  width: 100%; max-width: 420px; min-height: 48px; padding: 10px 14px;
  border: 2px solid #d9b85a; border-radius: 12px; background: #fff; color: var(--ink);
  font: inherit;
}
.notify .hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.notify .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 6px 0 16px; }
.notify .consent input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--sea); }
.notify .small { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.notify .status {
  display: inline-block; background: var(--sea-deep); color: #fff; border-radius: 999px;
  padding: 6px 14px; font-weight: 700; font-size: 14px; margin: 0 0 14px;
}

/* Parents / support */
.faq { display: grid; gap: 16px; margin-top: 24px; }
.faq article {
  background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 18px 20px;
}
.faq h3 { font-size: 20px; margin-bottom: 6px; }
.faq p:last-child, .faq ul:last-child { margin-bottom: 0; }

/* Document pages (privacy, notices) */
.doc { padding: 40px 0 64px; }
.doc h1 { font-size: clamp(34px, 6vw, 48px); }
.doc h2 { font-size: 26px; margin-top: 1.6em; }
.doc .meta { color: var(--muted); }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 0.5em; }
.back { display: inline-block; margin-bottom: 18px; font-weight: 600; }

.draft-todo {
  background: #fff1a8; outline: 2px dashed #c79a00; outline-offset: 2px; padding: 0 4px;
}
p.draft-todo { padding: 12px 14px; border-radius: 10px; }

/* Footer */
.site-footer {
  background: var(--sea-deep); color: #cfe9f8; padding: 34px 0 40px; font-size: 15px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; }
.site-footer a { color: #fff; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer p { margin: 0; }
