/* Family Hub sales site — thefamilyhub.online */
:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --ink: #18303b;
  --ink-2: #5a6e77;
  --line: #e2e9e8;
  --teal: #1f7a80;
  --teal-2: #16646a;
  --teal-soft: #e2f1f0;
  --orange: #ec8a52;
  --orange-soft: #fdeee4;
  --rose: #e46a7e;
  --violet: #7c6bd6;
  --gold: #e8b33c;
  --radius: 22px;
  --shadow: 0 1px 2px rgba(24, 48, 59, 0.05), 0 18px 40px rgba(24, 48, 59, 0.08);
  --font: ui-rounded, 'SF Pro Rounded', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e191e;
    --surface: #15242b;
    --ink: #e7eff1;
    --ink-2: #9cb0b8;
    --line: #243740;
    --teal: #3aa8ac;
    --teal-2: #50bfc3;
    --teal-soft: #163a3d;
    --orange: #f0a072;
    --orange-soft: #3a2a20;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px rgba(0, 0, 0, 0.3);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--teal); }
img { max-width: 100%; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 14px; font-weight: 800; text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-size: 16px; font-family: inherit; transition: transform 0.15s, background 0.15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-2); }
.btn-small { padding: 9px 16px; font-size: 15px; border-radius: 12px; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 11px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-weight: 700; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--ink-2); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--ink); }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } .nav-links { gap: 14px; } }

/* ---- Hero ---- */
.hero { padding: 56px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; background: var(--teal-soft); color: var(--teal); padding: 6px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; }
.hero h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.08; margin: 18px 0 18px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--teal); }
.hero p.lead { font-size: 20px; color: var(--ink-2); margin: 0 0 28px; max-width: 34ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding-top: 32px; } }

/* ---- Kiosk mock-up (demo data) ---- */
.device { background: #1b2a31; border-radius: 30px; padding: 14px; box-shadow: var(--shadow), 0 30px 60px rgba(24, 48, 59, 0.18); transform: rotate(-1.2deg); }
.screen { background: #f3f6f6; border-radius: 18px; padding: 16px; color: #18303b; font-size: 13px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; }
.screen-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.screen-head .day { font-size: 22px; font-weight: 900; }
.screen-head .wx { display: flex; gap: 8px; align-items: center; font-weight: 800; font-size: 18px; }
.panel { background: #fff; border-radius: 14px; padding: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); }
.panel h4 { margin: 0 0 8px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: #6a7d85; }
.ev { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 9px; margin-bottom: 6px; font-weight: 700; }
.ev small { font-weight: 600; color: #6a7d85; margin-left: auto; white-space: nowrap; }
.ev .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.c1 { background: #e2f1f0; } .c1 .dot { background: #1f7a80; }
.c2 { background: #fdeee4; } .c2 .dot { background: #ec8a52; }
.c3 { background: #fbe6ea; } .c3 .dot { background: #e46a7e; }
.c4 { background: #ece9fb; } .c4 .dot { background: #7c6bd6; }
.chore { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-weight: 600; }
.chore .box { width: 18px; height: 18px; border-radius: 6px; border: 2px solid #c5d3d6; flex: none; display: grid; place-items: center; font-size: 11px; color: #fff; }
.chore.done .box { background: #2d8a5b; border-color: #2d8a5b; }
.chore.done span { text-decoration: line-through; color: #8a9aa1; }
.chore .pts { margin-left: auto; color: #c48a14; font-weight: 800; font-size: 12px; }
.avatars { display: flex; gap: 6px; margin-top: 10px; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; }
.stack { display: grid; gap: 12px; }
.meal { font-weight: 800; font-size: 15px; }
.list-item { padding: 3px 0; font-weight: 600; }

/* ---- Sections ---- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
.section-head p { color: var(--ink-2); margin: 0; font-size: 18px; }
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--ink-2); font-weight: 700; font-size: 15px; padding: 8px 0 0; }
.strip span::before { content: '✓ '; color: var(--teal); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; margin-bottom: 14px; }
.feature h3 { margin: 0 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 16px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before { counter-increment: step; content: counter(step); width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 900; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--ink-2); }
.step code { background: var(--teal-soft); color: var(--teal); padding: 2px 8px; border-radius: 8px; font-size: 14px; word-break: break-all; }

.trust { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item h3 { margin: 8px 0 6px; font-size: 18px; }
.trust-item p { margin: 0; color: var(--ink-2); font-size: 15px; }
.trust-item .icon { font-size: 28px; }

/* ---- Pricing ---- */
.billing-toggle { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px; gap: 4px; margin-top: 22px; }
.billing-toggle button { border: 0; background: transparent; padding: 10px 18px; border-radius: 10px; font: inherit; font-weight: 800; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.billing-toggle button.on { background: var(--teal); color: #fff; }
.billing-toggle .save-tag { font-size: 12px; color: var(--orange); margin-left: 4px; }
.billing-toggle button.on .save-tag { color: #ffe1cd; }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; position: relative; }
.price-card.popular { border: 2px solid var(--teal); box-shadow: var(--shadow); }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--orange); color: #fff; font-weight: 800; font-size: 13px; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.price-card h3 { margin: 0; font-size: 22px; }
.price-card .blurb { color: var(--ink-2); font-size: 15px; margin: 4px 0 16px; min-height: 2.6em; }
.amount { font-size: 44px; font-weight: 900; line-height: 1; letter-spacing: -0.02em; }
.amount small { font-size: 16px; font-weight: 700; color: var(--ink-2); letter-spacing: 0; }
.per { color: var(--ink-2); font-size: 14px; min-height: 1.5em; margin: 8px 0 18px; }
.per strong { color: var(--orange); }
.price-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; font-size: 15px; }
.price-card li::before { content: '✓'; color: var(--teal); font-weight: 900; margin-right: 10px; }
.price-card li.key { font-weight: 800; }
.price-card .btn { margin-top: auto; }
.yearly-only { display: none; }
body.yearly .yearly-only { display: inline; }
body.yearly .monthly-only { display: none; }
.price-foot { text-align: center; color: var(--ink-2); font-size: 15px; margin-top: 22px; }

/* ---- FAQ ---- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--teal); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 0 0 16px; color: var(--ink-2); }

/* ---- Final CTA + footer ---- */
.cta { background: linear-gradient(135deg, var(--teal), #2a8f86); color: #fff; border-radius: 28px; padding: 54px 28px; text-align: center; }
.cta h2 { margin: 0 0 10px; font-size: clamp(28px, 3.6vw, 40px); }
.cta p { margin: 0 0 26px; opacity: 0.9; font-size: 18px; }
.cta .btn { background: #fff; color: var(--teal); border-color: #fff; }
footer { padding: 40px 0 50px; color: var(--ink-2); font-size: 15px; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); }

/* ---- Legal pages ---- */
.legal { max-width: 760px; margin: 0 auto; padding: 40px 20px 60px; }
.legal h1 { font-size: 38px; margin: 0 0 6px; }
.legal h2 { font-size: 22px; margin: 34px 0 8px; }
.legal p, .legal li { color: var(--ink-2); }
.legal .updated { color: var(--ink-2); font-size: 15px; }
.hero-grid > * { min-width: 0; }
@media (max-width: 560px) {
  .device { transform: none; padding: 10px; border-radius: 22px; }
  .screen { grid-template-columns: 1fr; padding: 12px; }
}
.brand, .nav-links a, .chore .pts { white-space: nowrap; }
@media (max-width: 420px) {
  .brand { font-size: 18px; gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .nav-links .btn-small { padding: 8px 12px; }
}
