/* Brushabye website. Palette from the app icon (docs/BRAND.md): a dusk lavender canvas with cream and coral.
   One dark theme on purpose: it matches the watch screens and a dim nursery. System rounded type, nothing third-party. */
:root {
  --canvas-top: #463A54;
  --canvas: #1F1929;
  --lavender: #7C6C8C;
  --panel: #2C2438;
  --panel-2: #352C43;
  --coral: #FFA283;
  --coral-deep: #E8806A;
  --on-coral: #1F1929;
  --pearl: #F8F0E2;
  --secondary: #DCD2E4;
  --muted: #B3A7C0;
  --line: rgba(220, 210, 228, 0.14);
  --radius: 26px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  background-image: radial-gradient(120% 60% at 50% 0%, var(--canvas-top) 0%, var(--canvas) 70%);
  background-repeat: no-repeat;
  color: var(--pearl);
  font: 17px/1.55 ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 800; line-height: 1.12; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 6.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.18rem; }
p { margin: 0; }
a { color: var(--coral); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
section { padding: 76px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--pearl); text-decoration: none; font-weight: 800; font-size: 1.3rem; }
.brand img { width: 38px; height: 38px; }
.nav-link { color: var(--secondary); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav-link:hover { color: var(--pearl); }

/* Devices: Apple's bezel, framed by scripts/frame-screenshots.py. The shadow follows the outline. */
.watch { display: block; width: 100%; height: auto; filter: drop-shadow(0 22px 30px rgba(8, 5, 14, 0.55)); }

/* Hero */
.hero { padding-top: 28px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--coral); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 14px; }
.lede { font-size: 1.2rem; color: var(--secondary); margin: 20px 0 30px; max-width: 36ch; }
.fine { color: var(--muted); font-size: 0.9rem; margin-top: 14px; }
.hero-art { display: flex; justify-content: center; align-items: flex-end; gap: 4%; }
.hero-art .watch { width: 47%; max-width: 250px; }
.hero-art .watch:last-child { transform: translateY(28px); }

.store-badge { display: inline-block; line-height: 0; border-radius: 10px; }
.store-badge img { height: 56px; width: auto; }

/* Rhyme cards (1.1 home) */
.cards { text-align: center; }
.cards p.sub { color: var(--secondary); margin: 14px auto 0; max-width: 52ch; }
.card-row { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.card-row li { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.card-row .watch { max-width: 200px; }
.card-row span { color: var(--secondary); font-size: 0.95rem; font-weight: 600; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 30px; display: flex; flex-direction: column; }
.step .watch { width: 72%; max-width: 210px; margin: 0 auto 22px; }
.step .num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--coral); color: var(--on-coral); font-weight: 800; margin-bottom: 12px; }
.step p { color: var(--secondary); margin-top: 8px; }

/* Split */
.split .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .art { display: flex; justify-content: center; }
.split .art .watch { max-width: 260px; }
.split p.body { color: var(--secondary); margin-top: 16px; max-width: 44ch; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; color: var(--secondary); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 0.5em; width: 12px; height: 12px; border-radius: 50%; background: var(--coral); }

/* Details grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.tile p { color: var(--secondary); margin-top: 8px; font-size: 0.97rem; }

/* Get it + news */
.get { text-align: center; }
.get p.sub { color: var(--secondary); margin: 14px auto 28px; max-width: 46ch; }
.news { margin: 60px auto 0; max-width: 540px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 24px; }
.news h3 { font-size: 1.3rem; }
.news p.sub { margin: 10px auto 20px; }
.signup label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.signup .field { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.signup input[type=email] { font: inherit; padding: 13px 18px; border-radius: 999px; border: 1.5px solid var(--lavender); background: var(--canvas); color: var(--pearl); flex: 1 1 220px; min-width: 0; max-width: 320px; }
.signup input[type=email]::placeholder { color: var(--muted); }
.signup button { font: inherit; font-weight: 800; padding: 13px 26px; border-radius: 999px; border: 0; background: var(--coral); color: var(--on-coral); cursor: pointer; }
.signup button:hover { background: var(--coral-deep); }
.signup button:disabled { opacity: 0.7; cursor: default; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; margin-top: 12px; font-size: 0.95rem; }
.form-status.ok { color: var(--coral); }
.form-status.err { color: #FFB4A0; }
.signup .fine { margin-top: 8px; }
.form-note { display: none; margin: 0 auto 14px; font-size: 0.95rem; }
.form-note:target { display: block; }
.form-note.ok { color: var(--coral); }
.form-note.err { color: #FFB4A0; }

/* More from us */
.more h2 { text-align: center; }
.more p.sub { text-align: center; color: var(--secondary); margin: 12px auto 0; max-width: 50ch; }
.apps { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 34px; }
.app { display: flex; gap: 18px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 20px; color: var(--pearl); text-decoration: none; }
.app:hover { background: var(--panel-2); }
.app img { width: 72px; height: 72px; border-radius: 17px; flex: none; }
.app p { color: var(--secondary); font-size: 0.95rem; margin-top: 4px; }
.app .go { color: var(--coral); font-weight: 700; font-size: 0.92rem; margin-top: 6px; }

/* Footer */
footer { padding: 40px 0 56px; font-size: 0.88rem; color: var(--muted); border-top: 1px solid var(--line); }
footer p + p { margin-top: 8px; }
footer a { color: var(--secondary); }

@media (max-width: 900px) {
  .card-row { grid-template-columns: repeat(3, 1fr); }
  .grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
}
@media (max-width: 760px) {
  section { padding: 54px 0; }
  .hero .wrap, .split .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .split .art { order: -1; }
  .apps { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .card-row { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card-row li:last-child { grid-column: 1 / -1; }
  .card-row li:last-child .watch { max-width: 48%; }
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Legal pages */
.legal { max-width: 720px; padding: 24px 0 72px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.35rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--secondary); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal .meta { color: var(--muted); font-size: 0.92rem; }
