/* Shared styles for the persona landing pages (family.html, children.html).
   Tokens and the early-access card mirror index.html. */
@font-face { font-family: 'Fraunces'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/fraunces-latin.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/assets/fonts/instrument-sans-latin.woff2) format('woff2'); }

:root {
  --brand: #005CA8;
  --brand-hover: #00477E;
  --brand-bright: #0A6FC0;
  --brand-deep: #06304F;
  --brand-soft: #8FC7EE;
  --brand-tint: #EEF3F9;
  --ink: #0F243F;
  --body: #2D3748;
  --muted: #5C6B7F;
  --line: rgba(15,36,63,0.10);
  --surface: #FAF8F3;
  --logo: #F6BB04;
  --good: #016B3F;
  --good-bg: #EAF7F0;
  --good-line: #A9DEC4;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 80px; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: #FFFFFF; }
body { font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--body); }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, p { margin: 0; }
/* Author display rules (.row, .call, .done...) would otherwise beat the UA [hidden] rule */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #FFFFFF; padding: 12px 20px; border-radius: 0 0 10px 0; font-weight: 600; z-index: 40; }
.skip:focus { left: 0; color: #FFFFFF; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: clamp(20px, 6.25vw, 80px); padding-right: clamp(20px, 6.25vw, 80px); }

/* ---------- header ---------- */
.lp-head { border-bottom: 1px solid rgba(15,36,63,0.08); }
.lp-head .wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lp-logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.lp-logo:hover { color: var(--ink); }
.lp-logo svg { color: var(--logo); }
.lp-wordmark { font-family: 'Fraunces', Georgia, serif; font-size: 26px; font-weight: 400; letter-spacing: -0.01em; }
.lp-nav { display: flex; align-items: center; gap: 32px; font-size: 15px; }
.lp-nav-link { color: var(--muted); }
.lp-nav-link:hover { color: var(--ink); }
.btn-pill { display: inline-block; padding: 11px 20px; border-radius: 999px; background: var(--brand); color: #FFFFFF; font-size: 15px; font-weight: 600; transition: background-color .15s, transform .15s; }
.btn-pill:hover { background: var(--brand-bright); color: #FFFFFF; }
.btn-pill:active { background: var(--brand-hover); transform: scale(.97); }
.btn-lg { padding: 18px 28px; font-size: 17px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 64px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand); }
.hero h1 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(36px, 4.5vw, 58px); line-height: 1.07; font-weight: 400; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.hero-sub { font-size: 20px; line-height: 1.5; color: var(--muted); }
.hero-copy .btn-pill { margin-top: 8px; }

/* ---------- product card ---------- */
.card { background: #FFFFFF; border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 20px; box-shadow: 0 12px 40px rgba(15,36,63,0.10); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-label { font-size: 13px; color: var(--muted); }
.card-name { font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 400; color: var(--body); }
.chip { padding: 6px 12px; border-radius: 999px; background: var(--brand-tint); color: var(--brand); font-size: 13px; font-weight: 500; text-align: center; }
.rows { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 16px; align-items: flex-start; padding: 16px; border-radius: 14px; border: 1px solid var(--line); }
.row.next { background: var(--surface); border-color: transparent; }
.row.booked { background: var(--good-bg); border-color: var(--good-line); }
.row-when { width: 64px; flex-shrink: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.row.next .row-when { color: var(--brand); }
.row.booked .row-when { color: var(--good); }
.row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row-title { font-size: 16px; font-weight: 500; color: var(--body); }
.row-sub { font-size: 14px; color: var(--muted); }
.card-foot { display: flex; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(15,36,63,0.08); font-size: 14px; color: var(--muted); }

/* family hero: the card cycles timeline -> request -> call -> booked (landing.js) */
.demo { height: 500px; overflow: hidden; }
.demo-pane { flex-grow: 1; display: flex; flex-direction: column; gap: 14px; }.demo-pane > .card-foot { margin-top: auto; }
.ask { padding: 16px; border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.ask-meta { font-size: 13px; font-weight: 600; color: var(--muted); }
.ask-text { font-size: 16px; font-weight: 500; color: var(--ink); }
.call { padding: 16px; border-radius: 16px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.call-head { display: flex; align-items: center; gap: 12px; }
.call-icon { width: 36px; height: 36px; flex-shrink: 0; border-radius: 999px; background: var(--brand); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.call-who { flex-grow: 1; display: flex; flex-direction: column; gap: 2px; }
.call-who b { font-size: 15px; font-weight: 600; color: var(--ink); }
.call-who span { font-size: 13px; color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 999px; background: var(--brand); animation: pulse 1.6s ease-out infinite; }
.bubble { max-width: 86%; padding: 10px 14px; font-size: 13.5px; line-height: 1.45; }
.bubble[hidden] { display: none; }
.bubble.out { align-self: flex-end; border-radius: 16px 16px 5px 16px; background: var(--brand); color: #FFFFFF; }
.bubble.in { align-self: flex-start; border-radius: 16px 16px 16px 5px; background: #F4F7FA; color: var(--ink); }
.done { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--good-bg); border: 1px solid var(--good-line); }
.done-icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: 999px; background: var(--good); color: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.step-in { animation: stepIn .3s ease-out both; }
.pop-in { animation: popIn .4s ease-out both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.97); } 60% { opacity: 1; transform: scale(1.03); } 100% { transform: scale(1); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0,92,168,.45); } 70% { box-shadow: 0 0 0 8px rgba(0,92,168,0); } 100% { box-shadow: 0 0 0 0 rgba(0,92,168,0); } }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 72px; }
.feature { background: var(--surface); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.feature-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.feature h2 { font-size: 20px; font-weight: 600; color: var(--body); }
.feature p { font-size: 16px; line-height: 1.55; color: var(--muted); }

/* ---------- early access (mirrors .ea in index.html) ---------- */
.join { padding-bottom: clamp(56px, 8vw, 96px); }
.join-card { background: var(--brand-deep); color: #FFFFFF; border-radius: 28px; padding: 56px 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.join-head { display: flex; flex-direction: column; gap: 16px; }
.join-head .eyebrow { color: var(--brand-soft); letter-spacing: 0.12em; }
.join-head h2 { font-family: 'Fraunces', Georgia, serif; font-size: clamp(32px, 3.6vw, 42px); line-height: 1.1; font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; }
.join-head p { font-size: 17px; line-height: 1.55; color: rgba(255,255,255,0.82); }
.ea-form { display: flex; flex-direction: column; gap: 10px; }
.ea-q { margin: 0 0 10px; padding: 0; border: 0; min-width: 0; }
.ea-q legend { padding: 0; margin-bottom: 12px; font-size: 16px; font-weight: 500; }
.ea-opts { display: flex; gap: 10px; }
.ea-opt { flex: 1 1 0; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 16px; border: 1px solid rgba(255,255,255,0.28); font-size: 15px; cursor: pointer; }
.ea-opt:has(input:checked) { background: rgba(255,255,255,0.14); border-color: #FFFFFF; }
.ea-opt:has(input:focus-visible) { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
.ea-opt input { accent-color: var(--brand-soft); margin: 0; }
.ea-label { font-size: 16px; font-weight: 500; }
.ea-row { display: flex; gap: 10px; align-items: center; }
.ea-input { height: 52px; width: 100%; min-width: 0; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 0 20px; font: inherit; font-size: 16px; color: var(--ink); background: #FFFFFF; }
.ea-input::placeholder { color: #7A8799; }
.ea-input[aria-invalid="true"] { border-color: #FF9B9B; box-shadow: 0 0 0 1px #FF9B9B; }
.ea-input:focus-visible, .ea-btn:focus-visible { outline: 2px solid var(--brand-soft); outline-offset: 2px; }
.ea-btn { height: 52px; padding: 0 22px; border: 0; border-radius: 999px; background: #FFFFFF; color: var(--brand-deep); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ea-btn:hover { background: var(--brand-soft); }
.ea-btn:disabled { opacity: 0.6; cursor: default; }
/* The error slot is always laid out so a message never moves the field or button. */
.ea-error { font-size: 14px; line-height: 1.4; color: #FFC2C2; min-height: 1.4em; }
.ea-error[hidden] { display: block !important; visibility: hidden; }
.ea-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ea-legal { max-width: 520px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.72); }
.ea-legal a { color: #FFFFFF; text-decoration: underline; }
.ea-note { font-size: 17px; line-height: 1.5; color: #FFFFFF; }
.ea-form.ea-sent .ea-q, .ea-form.ea-sent .ea-label, .ea-form.ea-sent .ea-row, .ea-form.ea-sent .ea-error, .ea-form.ea-sent .ea-legal { display: none; }

/* ---------- footer ---------- */
.lp-foot { border-top: 1px solid rgba(15,36,63,0.08); }
.lp-foot .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 16px; font-size: 14px; color: var(--muted); }
.lp-foot-top { display: flex; justify-content: space-between; gap: 24px; }
.lp-foot-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.lp-foot a { color: var(--muted); padding: 3px 0; text-decoration: underline; }
.lp-foot a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
  .features { grid-template-columns: 1fr; }
  .join-card { grid-template-columns: 1fr; gap: 32px; padding: 40px 32px; }
  .demo { height: auto; min-height: 500px; }
}
@media (max-width: 600px) {
  .lp-nav-link { display: none; }
  .hero-sub { font-size: 18px; }
  .card { padding: 20px; }
  .join-card { padding: 32px 24px 28px; border-radius: 24px; }
  .ea-row { flex-direction: column; align-items: stretch; }
  .ea-error { min-height: 2.8em; }
  .ea-opts { flex-direction: column; }
  .lp-foot-top { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step-in, .pop-in, .pulse { animation: none; }
}
