/* ============================================================
   FamilyCalendar – Landing Page
   Base adapted from the SilverTracker template (Apple-style, light,
   generous whitespace). Retheme: friendly indigo accent + member
   colours. Class names kept so the shared JS keeps working.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f6fb;          /* soft light grey-blue */
  --card: #ffffff;
  --card-2: #fbfbfd;
  --line: rgba(20, 22, 60, 0.09);
  --line-2: rgba(20, 22, 60, 0.14);
  --text: #1b1c2e;           /* ink */
  --muted: #6b6d84;          /* secondary text */
  --accent: #5457e5;         /* indigo */
  --accent-ink: #3f42c9;
  --amber: #b8860b;          /* Pro highlight */
  --amber-bg: #fff7e6;
  --silver-1: #3a3f45;       /* phone frame graphite */
  --silver-2: #14171a;
  --green: #1a8f4c;
  --red: #d0402c;
  /* member colours used in the calendar mockup */
  --m-you: #5457e5;
  --m-partner: #e8618c;
  --m-us: #17a2a2;
  --m-kid: #f0a020;
  --radius: 20px;
  --radius-sm: 14px;
  --container: 1120px;
  --shadow: 0 18px 50px rgba(20, 22, 60, 0.12);
  --shadow-sm: 0 6px 20px rgba(20, 22, 60, 0.07);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 760px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.accent { color: var(--accent); }
.brand__accent { color: var(--muted); font-weight: 700; }

/* Scroll reveal (added by script.js; degrades gracefully) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* --- NAV --- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.brand__icon { border-radius: 7px; }
.nav__links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--muted); }
.nav__links > a { transition: color .15s ease; }
.nav__links > a:hover { color: var(--text); }

.lang { display: flex; gap: 4px; background: rgba(20,22,60,0.05); padding: 3px; border-radius: 10px; }
.lang__btn {
  border: 0; background: transparent; cursor: pointer; line-height: 0;
  padding: 5px 7px; border-radius: 7px; filter: grayscale(0.5); opacity: 0.6; transition: all .15s ease;
}
.lang__btn svg { display: block; border-radius: 2px; }
.lang__btn:hover { opacity: 1; }
.lang__btn--active { background: #fff; filter: none; opacity: 1; box-shadow: 0 1px 3px rgba(20,22,60,0.12); }

.btn { display: inline-block; padding: 8px 18px; border-radius: 980px; font-weight: 600; font-size: 14px;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-ink); transform: translateY(-1px); }

/* --- HERO --- */
.hero { position: relative; padding: 92px 0 64px; overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.pill {
  display: inline-block; font-size: 13px; font-weight: 600; color: var(--accent);
  background: rgba(84,87,229,0.09); border: 1px solid rgba(84,87,229,0.22);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 24px;
}
.pill--amber { background: var(--amber); color: #fff; border: 0; letter-spacing: 0.09em; font-weight: 700; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 700; }
.hero h1 .accent { color: var(--text); background: linear-gradient(120deg, #7a7de6, #5457e5); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lead { color: var(--muted); font-size: 21px; line-height: 1.45; margin: 24px 0 30px; max-width: 32em; }

/* Store badges */
.store-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-row--center { justify-content: center; margin-top: 34px; }
.store-badge { display: inline-block; transition: transform .15s ease, opacity .2s ease; }
.store-badge img { height: 52px; width: auto; }
.store-badge:hover { transform: translateY(-2px); opacity: 0.85; }
.hero__rating { color: var(--muted); font-size: 13px; margin-top: 16px; }

/* Phone */
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__glow { position: absolute; inset: -12% -18%; z-index: -1;
  background: radial-gradient(closest-side, rgba(84,87,229,0.12), transparent 70%); filter: blur(24px); }
.phone {
  width: 264px; border-radius: 42px; padding: 11px;
  background: linear-gradient(155deg, var(--silver-1), var(--silver-2));
  border: 1px solid rgba(0,0,0,0.14); box-shadow: var(--shadow);
}
.phone--hero { width: 300px; }
.phone__screen { width: 100%; border-radius: 32px; background: #fff; overflow: hidden; aspect-ratio: 300 / 620; }

/* --- CALENDAR MOCKUP (in-phone, no image assets needed) --- */
.cal { display: flex; flex-direction: column; height: 100%; font-size: 12px; }
.cal__top { background: var(--accent); color: #fff; padding: 16px 16px 14px; }
.cal__month { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.cal__sub { font-size: 11px; opacity: .85; margin-top: 2px; }
.cal__avatars { display: flex; gap: 6px; margin-top: 12px; }
.cal__ava { width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; border: 2px solid rgba(255,255,255,.5); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; padding: 12px 12px 4px; }
.cal__dow { text-align: center; color: var(--muted); font-size: 9px; font-weight: 600; padding-bottom: 2px; }
.cal__day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; color: var(--text);
  font-size: 10px; position: relative; }
.cal__day--muted { color: var(--line-2); }
.cal__day--today { background: rgba(84,87,229,0.12); color: var(--accent); font-weight: 700; }
.cal__dots { position: absolute; bottom: 3px; display: flex; gap: 2px; }
.cal__dot { width: 4px; height: 4px; border-radius: 50%; }
.cal__list { padding: 6px 14px 14px; display: grid; gap: 7px; }
.cal__event { display: flex; align-items: center; gap: 9px; background: var(--bg-alt); border-radius: 10px;
  padding: 8px 10px; }
.cal__bar { width: 3px; align-self: stretch; border-radius: 3px; }
.cal__ev-t { font-weight: 600; font-size: 11px; }
.cal__ev-s { color: var(--muted); font-size: 10px; margin-top: 1px; }
.cal__ev-time { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 600; }

/* --- TRUST STRIP --- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.trust__inner { display: flex; flex-wrap: wrap; gap: 16px 36px; justify-content: center; padding: 20px 24px; }
.trust__item { color: var(--muted); font-size: 14px; font-weight: 500; }

/* --- SECTIONS --- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: clamp(30px, 4vw, 48px); font-weight: 700; text-align: center; letter-spacing: -0.025em; line-height: 1.08; }
.section__sub { color: var(--muted); text-align: center; max-width: 34em; margin: 16px auto 0; font-size: 19px; line-height: 1.45; }
.section .steps, .section .chips, .section .faq { margin-top: 56px; }

/* Big alternating feature sections (Apple product-page style) */
.feature-lg { padding: 104px 0; overflow: hidden; }
.feature-lg--alt { background: var(--bg-alt); }
.feature-lg__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.feature-lg--reverse .feature-lg__visual { order: -1; }
.feature-lg__eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--accent);
  letter-spacing: 0.02em; margin-bottom: 18px; }
.feature-lg__title { font-size: clamp(32px, 4.4vw, 50px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.06; }
.feature-lg__text { color: var(--muted); font-size: 21px; line-height: 1.5; margin-top: 20px; max-width: 22em; }
.feature-lg__visual { position: relative; display: flex; justify-content: center; }
.feature-lg__visual::before { content: ""; position: absolute; inset: -8% -6%; z-index: -1;
  background: radial-gradient(closest-side, rgba(84,87,229,0.09), transparent 72%); filter: blur(24px); }

/* Simple in-card mockup used inside feature visuals */
.mock {
  width: 320px; max-width: 100%; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; text-align: left;
}
.mock__title { font-weight: 700; font-size: 15px; margin-bottom: 14px; letter-spacing: -0.01em; }
.mock__row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: var(--bg-alt); margin-bottom: 8px; font-size: 13px; }
.mock__row .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.mock__row .grow { flex: 1; }
.mock__row .meta { color: var(--muted); font-size: 12px; }
.mock__slot { border: 1px dashed var(--accent); color: var(--accent); background: rgba(84,87,229,0.06); font-weight: 600; }
.mock__check { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--line-2); flex-shrink: 0; }
.mock__check--on { background: var(--green); border-color: var(--green); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow-sm); }
.step__num {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 18px; margin-bottom: 18px;
}
.step h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { color: var(--muted); font-size: 15px; line-height: 1.5; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  background: var(--card); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 10px 18px; font-size: 15px; font-weight: 500; box-shadow: var(--shadow-sm);
}

/* Privacy highlight card */
.section--privacy { background: linear-gradient(180deg, #f5f6fb, #ffffff); }
.privacy__inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.privacy__list { list-style: none; margin: 24px 0 0; display: grid; gap: 14px; }
.privacy__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; }
.check { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(26,143,76,0.12); color: var(--green); font-weight: 700; font-size: 14px; flex-shrink: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq__item summary {
  cursor: pointer; padding: 20px 24px; font-weight: 600; font-size: 17px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent); font-size: 24px; font-weight: 300; transition: transform .2s ease; }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 24px 22px; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* CTA band */
.cta-band { padding: 100px 0; text-align: center; background: var(--bg-alt); }
.cta-band__icon { margin: 0 auto 20px; border-radius: 18px; box-shadow: var(--shadow-sm); }
.cta-band h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
.cta-band p { color: var(--muted); font-size: 19px; margin-top: 12px; }

/* Footer */
.footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 48px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer__brand .brand { font-size: 18px; }
.footer__brand p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.footer__links { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
.footer__links a:hover { color: var(--text); }
.footer__legal { color: #86868b; font-size: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }

/* --- RESPONSIVE --- */
@media (max-width: 960px) {
  .hero { padding: 64px 0 48px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 44px; }
  .feature-lg { padding: 68px 0; }
  .feature-lg__inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .feature-lg__visual, .feature-lg--reverse .feature-lg__visual { order: -1; }
  .feature-lg__text { margin-left: auto; margin-right: auto; }
  .hero__copy .lead { margin-left: auto; margin-right: auto; }
  .hero .store-row { margin-left: auto; margin-right: auto; }
  .hero__visual { order: -1; }
  .privacy__inner { grid-template-columns: 1fr; }
  .privacy__list { max-width: 420px; margin-left: auto; margin-right: auto; }
  .mock { margin: 0 auto; }
  .section { padding: 76px 0; }
}
@media (max-width: 720px) {
  .nav__links > a:not(.btn) { display: none; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .store-row { justify-content: center; }
  .store-badge img { height: 48px; }
}
