/* birdband.me: one stylesheet for the site pages (body.site) and the song player (/s/).
   The app's palette: warm cream, the bird's blue, the red record button, the critters' colours.
   Fredoka (the app's display font, SIL OFL 1.1: /fonts/OFL.txt) is served from this site: no font CDN. */
@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --bg: #FFF4E0;
  --bg2: #FFE7C2;
  --surface: #FFFFFF;
  --ink: #2B2140;
  --muted: #6A5F80;
  --line: #F1DDBE;
  --accent: #FF5A5F;          /* the player's play button */
  --accent-ink: #FFFFFF;
  --accent-text: #C0262D;     /* red text: 4.9:1 or better on every light background */
  --record: #C62D33;          /* the record button, with white text (5.5:1) */
  --link: #1560B8;
  --blue: #1E88E5;
  --blue-deep: #1565C0;
  --mint: #9FE8CF;
  --pill: #FFF0D6;
  --c-orange: #FF8A3D;
  --c-purple: #7C4DFF;
  --c-teal: #26A69A;
  --c-green: #43A047;
  --c-yellow: #F9A825;
  --shadow: 0 10px 30px rgba(120, 70, 20, 0.12);
  --display: "Fredoka", "Baloo 2", ui-rounded, "Trebuchet MS", system-ui, sans-serif;
  --body: ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1830;
    --bg2: #251F3F;
    --surface: #2B2548;
    --ink: #F5F0FF;
    --muted: #B8AED6;
    --line: #3A3260;
    --accent: #FF6B70;
    --accent-text: #FF8A8E;
    --link: #8EC5FF;
    --pill: #372F5C;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: radial-gradient(120% 70% at 50% 0%, var(--bg2), var(--bg) 60%);
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  min-height: 100vh;
  padding: env(safe-area-inset-top, 0) 18px calc(env(safe-area-inset-bottom, 0) + 32px);
}
.wrap { max-width: 480px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
[hidden] { display: none !important; }

.brand { display: flex; align-items: center; gap: 10px; padding-top: 20px; color: inherit; text-decoration: none; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.01em; }
.bird, .critter {
  position: relative; display: inline-block; flex: none; border-radius: 50%;
}
.bird { width: 34px; height: 34px; background: #1E88E5; }
.bird::before, .critter::before {           /* eye */
  content: ""; position: absolute; top: 30%; right: 26%; width: 18%; height: 18%;
  background: #fff; border-radius: 50%; box-shadow: inset -2px 0 0 0 #2B2140;
}
.bird::after {                               /* beak */
  content: ""; position: absolute; top: 38%; right: -18%; width: 0; height: 0;
  border-left: 10px solid #F9A825; border-top: 5px solid transparent; border-bottom: 5px solid transparent;
}

.card {
  background: var(--surface);
  border-radius: 28px;
  padding: 22px 20px 20px;
  box-shadow: var(--shadow);
}
.eyebrow { margin: 0; font-family: var(--display); font-weight: 600; color: var(--accent-text); letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; }
h1 { font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1.15; margin: 4px 0 2px; text-wrap: balance; }
.makers { margin: 0; color: var(--muted); font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill { background: var(--pill); border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 0.9rem; font-variant-numeric: tabular-nums; }

/* ── The song player (/s/) ─────────────────────────────────────────────────────────────────────── */
.stage { display: grid; justify-items: center; gap: 12px; margin: 22px 0 8px; }
.play {
  width: 96px; height: 96px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 0 0 color-mix(in srgb, var(--accent) 70%, #000), 0 12px 24px rgba(255, 90, 95, 0.35);
  display: grid; place-items: center; transition: transform 0.08s ease;
}
.play:active { transform: translateY(4px); box-shadow: 0 4px 0 0 color-mix(in srgb, var(--accent) 70%, #000); }
.play:focus-visible { outline: 4px solid color-mix(in srgb, var(--accent) 40%, transparent); outline-offset: 4px; }
.play:disabled { opacity: 0.7; cursor: progress; }
.play-icon { width: 0; height: 0; margin-left: 8px; border-left: 32px solid #fff; border-top: 20px solid transparent; border-bottom: 20px solid transparent; }
.play.on .play-icon { margin: 0; width: 30px; height: 30px; border: 0; background: #fff; border-radius: 6px; }
.progress { width: 100%; height: 10px; background: var(--pill); border-radius: 999px; overflow: hidden; }
.bar { height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); border-radius: 999px; }
.status { margin: 0; color: var(--muted); font-weight: 600; }

.layers { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.layers li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.critter { width: 38px; height: 38px; background: var(--c); }
.lname { font-family: var(--display); font-weight: 600; font-size: 1.1rem; }
.lmeta { color: var(--muted); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.hint { color: var(--muted); font-size: 0.95rem; margin: 10px 0 0; }

.get { display: grid; gap: 10px; text-align: center; }
.btn {
  display: block; padding: 14px 18px; border-radius: 18px; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 1.1rem;
  background: var(--surface); color: var(--ink); border: 2px solid var(--line);
}
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.player-foot { text-align: center; font-size: 0.9rem; color: var(--muted); margin: 8px 0 0; }
.player-foot a { color: var(--link); }

/* ── The site pages (body.site) ────────────────────────────────────────────────────────────────── */
body.site { padding: 0; display: flex; flex-direction: column; }
.site main { flex: 1; }
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.site a { color: var(--link); text-underline-offset: 0.15em; }
.site a:hover { text-decoration-thickness: 2px; }
.site :focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
.site h1, .site h2, .site h3 { font-family: var(--display); line-height: 1.15; text-wrap: balance; }
.site h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); font-weight: 700; margin: 0 0 12px; }
.site h3 { font-size: 1.25rem; font-weight: 600; margin: 0 0 6px; }
.site p { margin: 0 0 12px; }
.lead { font-size: 1.15rem; color: var(--ink); }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 10;
  background: var(--ink); color: var(--bg) !important; padding: 10px 16px; border-radius: 12px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 14px; padding-bottom: 6px; }
.site-header .brand { padding-top: 0; min-height: 44px; }
.site-header .brand img { width: 44px; height: 44px; border-radius: 12px; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; padding: 0; }
.site-nav a {
  display: inline-block; padding: 8px 12px; border-radius: 999px; min-height: 44px; line-height: 28px;
  color: var(--ink) !important; text-decoration: none; font-family: var(--display); font-weight: 600;
}
.site-nav a:hover { background: var(--pill); }
.site-nav a[aria-current="page"] { background: var(--pill); }

section.band { padding: 36px 0; }

/* hero */
.hero .container { display: grid; gap: 12px 32px; align-items: center; padding-top: 20px; padding-bottom: 8px; }
.hero h1 { font-size: clamp(2.1rem, 1.5rem + 3vw, 3.6rem); margin: 6px 0 12px; }
.hero .lead { max-width: 34rem; }
.hero-art { justify-self: center; width: min(78vw, 420px); }
.hero-art img { width: 100%; height: auto; display: block; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 20px 0 6px; }
.cta .note { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (min-width: 800px) {
  .hero .container { grid-template-columns: 1.15fr 0.85fr; padding-top: 40px; }
  .hero-art { order: 2; }
}

/* buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: 999px; border: 0;
  font-family: var(--display); font-weight: 600; font-size: 1.15rem; text-decoration: none;
  background: var(--record); color: #fff !important;
  box-shadow: 0 5px 0 0 #8E1C22;
}
.button:hover { filter: brightness(1.06); }
.button:active { transform: translateY(3px); box-shadow: 0 2px 0 0 #8E1C22; }
.button[aria-disabled="true"] {
  background: var(--pill); color: var(--muted) !important; box-shadow: none; cursor: default;
  border: 2px dashed var(--line); filter: none; transform: none;
}
.button .dot { width: 14px; height: 14px; border-radius: 50%; background: currentColor; flex: none; }

/* how it works */
.steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); counter-reset: step; }
.step { background: var(--surface); border-radius: 24px; padding: 16px 16px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  font-family: var(--display); font-weight: 700; font-size: 1.2rem; color: #2B2140; background: var(--c, var(--c-orange));
}
.step:nth-child(1) { --c: var(--c-orange); }
.step:nth-child(2) { --c: var(--c-yellow); }
.step:nth-child(3) { --c: var(--c-teal); }
.step:nth-child(4) { --c: var(--mint); }
.step p { margin: 0; }
.shot {
  margin: 4px 0 0; align-self: center; width: min(100%, 250px);
  border-radius: 22px; overflow: hidden; border: 6px solid #2B2140; background: #2B2140;
}
.shot img { display: block; width: 100%; height: auto; }

/* feature list */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.features li { display: flex; gap: 12px; align-items: flex-start; }
.features li::before {
  content: ""; flex: none; margin-top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--c, var(--blue)); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.12);
}
.features li:nth-child(6n+1) { --c: var(--c-orange); }
.features li:nth-child(6n+2) { --c: var(--c-purple); }
.features li:nth-child(6n+3) { --c: var(--c-teal); }
.features li:nth-child(6n+4) { --c: var(--c-yellow); }
.features li:nth-child(6n+5) { --c: var(--blue); }
.features li:nth-child(6n+6) { --c: var(--c-green); }

.panel { background: var(--surface); border-radius: 28px; padding: 24px 20px; box-shadow: var(--shadow); }
.split { display: grid; gap: 24px; align-items: center; }
@media (min-width: 800px) { .split { grid-template-columns: 1fr auto; } .panel { padding: 32px 36px; } }
.kids { background: color-mix(in srgb, var(--mint) 35%, var(--surface)); }
@media (prefers-color-scheme: dark) { .kids { background: color-mix(in srgb, var(--mint) 12%, var(--surface)); } }

.price { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin-top: 8px; }
.price > div { background: var(--pill); border-radius: 20px; padding: 16px; }
.price strong { display: block; font-family: var(--display); font-size: 1.3rem; }

/* prose pages */
.prose { max-width: 46rem; margin: 0 auto; }
.prose h1 { font-size: clamp(2rem, 1.6rem + 2vw, 2.8rem); margin: 20px 0 8px; }
.prose h2 { margin-top: 32px; font-size: 1.5rem; }
.prose h3 { margin-top: 20px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 12px; }
.prose li { margin: 4px 0; }
.prose .panel { margin: 18px 0; }
.prose address { font-style: normal; }
.faq details { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); margin: 10px 0; }
.faq summary {
  cursor: pointer; padding: 14px 18px; font-family: var(--display); font-weight: 600; font-size: 1.1rem;
  list-style-position: outside; margin-left: 1.1em; padding-left: 6px; min-height: 44px;
}
.faq details > div { padding: 0 18px 14px; }
.faq details[open] summary { color: var(--accent-text); }
.placeholder-note { color: var(--accent-text); font-weight: 600; }
a:not([href]) .soon { display: inline; }
a[href] .soon { display: none; }
.site a:not([href]) { color: var(--muted); text-decoration: none; }

/* testers */
.qr-row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); margin: 16px 0; }
.qr { margin: 0; background: var(--surface); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); text-align: center; }
.qr img { width: 100%; max-width: 220px; height: auto; display: block; margin: 0 auto 8px; border-radius: 8px; }
.qr-placeholder {
  aspect-ratio: 1; max-width: 220px; margin: 0 auto 8px; display: grid; place-items: center; padding: 12px;
  border: 3px dashed var(--muted); border-radius: 12px; color: var(--muted); font-weight: 700; font-size: 0.95rem;
}
.forward { background: var(--pill); border-radius: 20px; padding: 18px; border-left: 6px solid var(--c-orange); }

/* footer */
.site-footer { margin-top: 40px; padding: 26px 0 calc(26px + env(safe-area-inset-bottom, 0)); background: color-mix(in srgb, var(--surface) 55%, transparent); border-top: 2px solid var(--line); }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: center; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; }
.site-footer a { display: inline-block; padding: 8px 0; }
.site-footer p { margin: 0; color: var(--muted); font-size: 0.95rem; }

@media (prefers-reduced-motion: reduce) { .play, .button { transition: none; } }
.more { margin-top: 16px !important; }
.lost { text-align: center; padding: 24px 0; }
.lost img { width: min(60vw, 240px); height: auto; }
.brand-icon { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.site .brand { color: var(--ink); }
@media (max-width: 799px) { .hero-art { width: min(62vw, 320px); } }
.site main { overflow-wrap: anywhere; }
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }
.forward { margin: 12px 0 18px; }
.forward p:last-child { margin-bottom: 0; }
