/* Family Systems — marketing site styles. No JS, no trackers; just presentation. */
:root {
  --ink: #1f2440;
  --muted: #626273;
  --accent: #6550a0;
  --accent-dark: #524080;
  --accent-soft: #f3effa;
  --mint-soft: #edf7f2;
  --blue-soft: #edf5fc;
  --brand-blue: #2f6fed;
  --line: rgb(31 36 64 / 12%);
  --card: rgb(255 255 255 / 90%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 16px 48px rgb(31 36 64 / 12%);
  --maxw: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background:
    radial-gradient(1200px 600px at 20% 0%, #eef9ff, transparent 60%),
    radial-gradient(1200px 700px at 90% 10%, #fff1fb, transparent 55%),
    linear-gradient(180deg, #f7f8ff, #ffffff);
  background-attachment: fixed;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.4px; color: var(--ink); }
a { color: var(--accent-dark); }

.wrap { max-width: var(--maxw); margin: auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgb(247 248 255 / 86%);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-nav {
  max-width: var(--maxw); margin: auto;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 24px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; color: var(--ink); text-decoration: none; font-size: 16px; }
.brand .brand-badge {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-blue); color: #fff; flex-shrink: 0; overflow: hidden;
}
.brand .brand-badge img { width: 100%; height: 100%; border-radius: inherit; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav-links a {
  padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--muted);
  font-weight: 600; font-size: 14px;
}
.nav-links a:hover { color: var(--accent-dark); background: var(--accent-soft); }
.nav-links a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; min-height: 44px; border-radius: 10px; border: 1px solid var(--accent-dark);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  background: var(--accent); color: #fff;
  box-shadow: 0 5px 14px rgb(101 80 160 / 18%);
}
.btn:hover { background: var(--accent-dark); }
.btn-secondary {
  background: #fff; color: var(--accent-dark); border-color: #d1c8e2; box-shadow: none;
}
.btn-secondary:hover { background: var(--accent-soft); }
.btn-ghost {
  background: transparent; color: var(--accent-dark); border-color: transparent; box-shadow: none;
}

/* ---------- Generic sections ---------- */
section { padding: 56px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: 1.5px; font-size: 12px; font-weight: 800; color: var(--accent); margin: 0 0 10px; }
.section-head { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }
.lead { font-size: 18px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 18px; }
.hero h1 .accent { color: var(--accent); }
.hero p.lead { margin: 0 0 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--mint-soft); border: 1px solid #cde5da; color: #24715c;
  font-size: 13px; font-weight: 700; margin: 0 0 22px;
}

/* ---------- Screenshot placeholders ---------- */
.shot { margin: 0; }
.shot-ph {
  display: grid; place-items: center; text-align: center; gap: 4px;
  border: 2px dashed #c4b8da; border-radius: var(--radius); color: var(--accent);
  background: repeating-linear-gradient(45deg, #f8f6fc, #f8f6fc 12px, var(--accent-soft) 12px, var(--accent-soft) 24px);
  font-weight: 700; font-size: 14px; padding: 24px;
}
.shot-ph small { font-weight: 500; font-size: 12px; color: var(--muted); }
.shot-phone .shot-ph { aspect-ratio: 9 / 16; max-width: 300px; margin: auto; }
.shot-wide .shot-ph { aspect-ratio: 16 / 10; }
.shot figcaption { margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); }
.shot img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.shot-phone img { max-width: 300px; margin-inline: auto; }

/* ---------- Feature overview grid (home) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 6px 20px rgb(31 36 64 / 6%);
}
.feature-card .ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 12px; background: var(--accent-soft);
}
.feature-card:nth-child(2) .ico, .feature-card:nth-child(7) .ico { background: var(--mint-soft); }
.feature-card:nth-child(4) .ico, .feature-card:nth-child(9) .ico { background: var(--blue-soft); }
.feature-card:nth-child(3) .ico, .feature-card:nth-child(5) .ico { background: #fcf3e8; }
.feature-card:nth-child(6) .ico { background: #faf0eb; }
.feature-card:nth-child(10) .ico { background: #f8f0f8; }
.feature-card h3 { margin: 0 0 6px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Feature detail rows (features page) ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: 34px 0; border-top: 1px solid var(--line); }
.feature-row:nth-child(even) .feature-row-media { order: -1; }
.feature-row h3 { font-size: 24px; margin: 0 0 10px; }
.feature-row p { color: var(--muted); margin: 0 0 14px; }
.feature-row ul { margin: 0; padding-left: 18px; color: var(--muted); }
.feature-row ul li { margin: 4px 0; }

/* ---------- Privacy highlight ---------- */
.promise {
  background: linear-gradient(160deg, var(--accent-soft), #faf9fd);
  border: 1px solid #d8cfe7; border-radius: var(--radius);
  padding: 32px; text-align: center;
}
.promise h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 10px; }
.promise p { color: var(--muted); margin: 0 auto; max-width: 620px; }
.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; text-align: left; }
.promise-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.promise-item strong { display: block; margin-bottom: 4px; color: var(--accent-dark); }
.promise-item span { color: var(--muted); font-size: 14px; }

/* ---------- Steps (how it works) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 12px;
}
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); margin-bottom: 12px; overflow: hidden; }
.faq-item summary {
  cursor: pointer; padding: 18px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--accent); font-weight: 800; font-size: 20px; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .inner {
  background: linear-gradient(160deg, var(--blue-soft), var(--accent-soft) 42%, #ffffff);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 40px 28px; box-shadow: var(--shadow); max-width: 760px; margin: auto;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 10px; }
.cta-band p { color: var(--muted); margin: 0 auto 22px; max-width: 520px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 32px 0; color: var(--muted); font-size: 14px; }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--accent-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .feature-grid, .promise-grid, .steps { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 20px; padding: 26px 0; }
  .feature-row:nth-child(even) .feature-row-media { order: 0; }
  .nav-links { width: 100%; margin-left: 0; }
}

:where(a, button, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
