/* FamilyBeat — familybeat.app. Brand colours from the FamilyBeat asset kit (Palette.json). */
:root {
  --teal: #005461;
  --teal-deep: #003c46;
  --cream: #FFFBEF;
  --amber: #F1AC2E;
  --coral: #FF6556;
  --blue: #35AFF5;
  --turquoise: #08BFCA;
  --purple: #A270F5;
  --green: #56BC43;
  --pink: #F65393;
  --ink: #17313a;
  --muted: #5b6f75;
  --card: #ffffff;
  --line: #ece4cf;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(0, 60, 70, .06), 0 12px 40px rgba(0, 60, 70, .10);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(255, 251, 239, .86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--teal); font-weight: 750; font-size: 21px; letter-spacing: -.3px; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--teal); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: 600 16px/1 var(--font); padding: 15px 24px; border-radius: 999px; background: var(--teal); color: #fff; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.btn:hover { background: var(--teal-deep); transform: translateY(-1px); }
.btn.small { padding: 10px 18px; font-size: 15px; }
.nav .btn { color: #fff; }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 650; color: var(--teal); background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; margin-bottom: 22px; }
h1 { font-size: clamp(40px, 6.2vw, 72px); line-height: 1.04; letter-spacing: -2px; margin: 0 auto 18px; max-width: 14ch; color: var(--teal-deep); }
.lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 40ch; margin: 0 auto 30px; }
.dots { display: flex; justify-content: center; gap: 8px; margin: 0 auto 34px; }
.dots i { width: 12px; height: 12px; border-radius: 4px; display: block; }

/* Waitlist form */
.waitlist { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 520px; margin: 0 auto; }
.waitlist input[type=email] { flex: 1 1 260px; min-width: 0; font: 17px var(--font); padding: 14px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.waitlist input[type=email]:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 4px rgba(0, 84, 97, .12); }
.form-note { width: 100%; font-size: 14px; color: var(--muted); margin: 8px 0 0; }
.form-status { width: 100%; font-size: 15px; margin: 6px 0 0; color: var(--coral); }
.form-status.success { color: var(--teal); font-weight: 600; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

/* Device frames */
.tablet { background: #1d2a2f; padding: clamp(8px, 1.2vw, 14px); border-radius: clamp(18px, 2.6vw, 34px); box-shadow: var(--shadow); }
.tablet img { border-radius: clamp(10px, 1.4vw, 20px); }
.phone { background: #1d2a2f; padding: 9px; border-radius: 38px; box-shadow: var(--shadow); max-width: 300px; }
.phone img { border-radius: 30px; }
.hero-shot { margin: 56px auto 0; max-width: 1040px; }

/* Sections */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
h2 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.1; letter-spacing: -1.2px; margin: 0 0 14px; color: var(--teal-deep); }
h3 { font-size: 24px; letter-spacing: -.4px; margin: 0 0 10px; color: var(--teal-deep); }
.section-head p { color: var(--muted); font-size: 19px; margin: 0; }
.feature { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip { grid-template-columns: 1.35fr 1fr; }
.feature.flip .copy { order: 2; }
.feature .copy p { color: var(--muted); margin: 0 0 14px; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 10px; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 28px; margin: 8px 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 5px; background: var(--c, var(--teal)); }

.alt { background: #fff; border-block: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.alt .card { background: var(--cream); }
.card .icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.card p { color: var(--muted); margin: 0; font-size: 16px; }

.everywhere { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: end; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps .card::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--teal); color: #fff; font-weight: 700; margin-bottom: 14px; }

.cta { text-align: center; background: var(--teal); color: #fff; border-radius: 32px; padding: 64px 24px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .82); font-size: 19px; margin: 0 auto 28px; max-width: 34ch; }
.cta .waitlist input[type=email] { border-color: transparent; }
.cta .btn { background: var(--amber); color: var(--teal-deep); }
.cta .btn:hover { background: #ffc04d; }
.cta .form-note { color: rgba(255, 255, 255, .75); }
.cta .form-status { color: #ffd3cf; }
.cta .form-status.success { color: #fff; }

/* Footer */
footer { padding: 48px 0 56px; color: var(--muted); font-size: 15px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
.foot nav { display: flex; gap: 20px; }
.foot a { color: var(--muted); }

/* Plain pages (privacy, 404) */
.page { padding: 56px 0 24px; max-width: 760px; }
.page h1 { font-size: clamp(36px, 5vw, 52px); text-align: left; max-width: none; margin-bottom: 8px; }
.page h2 { font-size: 26px; letter-spacing: -.4px; margin: 40px 0 10px; }
.page p, .page li { color: #33484f; }
.updated { color: var(--muted); font-size: 15px; margin-bottom: 32px; }

@media (max-width: 900px) {
  .feature, .feature.flip, .everywhere { grid-template-columns: 1fr; gap: 28px; margin-bottom: 72px; }
  .feature.flip .copy { order: 0; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .everywhere .phone { margin: 0 auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding-top: 44px; }
  section { padding: 64px 0; }
  .grid, .steps { grid-template-columns: 1fr; }
  .waitlist .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
