/* Family Suite — public marketing + policy pages.
   Self-contained, no build step required. Brand color aligns with the
   Flutter app's theme: deep teal #0F766E (seed) → #14B8A6. */

:root {
  --teal-900: #0f3d39;
  --teal-700: #0f766e;
  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-50: #ecfdf9;
  --amber-500: #f59e0b;
  --ink: #1c2b29;
  --ink-soft: #4b5b58;
  --paper: #ffffff;
  --paper-warm: #fbf7f0;
  --line: #e3e0d8;
  --radius: 16px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "Noto Sans", sans-serif;
  color: var(--ink);
  background: var(--paper-warm);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-700); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 240, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--teal-900);
  text-decoration: none;
}
.brand .mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--teal-700), var(--teal-500));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
}
.nav a {
  margin-left: 18px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
}
.nav a:hover { color: var(--teal-700); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--teal-700) 0%, var(--teal-600) 55%, var(--teal-500) 100%);
  color: #fff;
  padding: 72px 0 84px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.5px;
}
.hero .lead {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  max-width: 680px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.92);
}
.hero .actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: #fff;
  color: var(--teal-900);
}
.btn-primary:hover { background: #f0fdfa; }
.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.22); }

/* Play store placeholder badge */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--teal-900);
  border-radius: 12px;
  padding: 8px 16px;
  text-decoration: none;
  font-weight: 700;
}
.store-badge .sb-small { font-size: 0.7rem; line-height: 1; opacity: 0.75; font-weight: 600; }
.store-badge .sb-big { font-size: 1.05rem; line-height: 1; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  text-align: center;
  margin: 0 0 8px;
  color: var(--teal-900);
}
.section .sub {
  text-align: center;
  color: var(--ink-soft);
  margin: 0 auto 40px;
  max-width: 620px;
}

/* Features grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.feature .feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-50);
  color: var(--teal-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.feature h3 { margin: 0 0 6px; font-size: 1.15rem; color: var(--teal-900); }
.feature p { margin: 0; color: var(--ink-soft); }

/* Trust */
.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.trust .card {
  background: var(--teal-50);
  border: 1px solid #cfeee7;
  border-radius: var(--radius);
  padding: 24px;
}
.trust h3 { margin: 0 0 8px; color: var(--teal-900); font-size: 1.1rem; }
.trust p { margin: 0; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-900);
  color: rgba(255, 255, 255, 0.82);
  padding: 36px 0;
  margin-top: 0;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.site-footer a { color: #fff; }
.site-footer .muted { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; }

/* ---------- Policy page ---------- */
.policy {
  background: #fff;
  padding: 56px 0 72px;
}
.policy .container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}
.policy h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--teal-900);
  margin: 0 0 6px;
}
.policy .effective { color: var(--ink-soft); margin: 0 0 32px; }
.policy h2 {
  font-size: 1.3rem;
  color: var(--teal-900);
  margin: 36px 0 10px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.policy p, .policy li { color: var(--ink-soft); }
.policy ul { padding-left: 22px; }
.policy li { margin-bottom: 8px; }
.policy strong { color: var(--ink); }
.policy .note {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.95rem;
  margin: 16px 0;
}
.policy .back {
  display: inline-block;
  margin-top: 24px;
  font-weight: 600;
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .hero { padding: 56px 0 64px; }
  .section { padding: 48px 0; }
  .nav a { margin-left: 12px; }
}
