/* Money Cells — "ocean-candy" palette (mirrors the C object in App.js) */
:root {
  --bg: #f0f9ff;        /* sky-50 */
  --surface: #e0f2fe;   /* sky-100 */
  --card: #ffffff;
  --border: #bae6fd;    /* sky-200 */
  --primary: #0284c7;   /* sky-600 */
  --accent: #0ea5e9;    /* sky-500 */
  --accent-light: #38bdf8;
  --primary-dark: #0369a1;
  --tint: #dbeafe;
  --text: #0f172a;
  --muted: #64748b;
  --faint: #94a3b8;
  --amber: #f59e0b;
  --green: #4ade80;
  --purple: #a855f7;
  --pink: #ec4899;
  --coral: #fb7185;
  --radius: 20px;
  --shadow: 0 10px 30px -12px rgba(2, 132, 199, .25);
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { font-family: "Fredoka", "Nunito", system-ui, sans-serif; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(240, 249, 255, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: "Fredoka", sans-serif; font-weight: 600; font-size: 1.3rem; }
.brand img { width: 38px; height: 38px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 700; padding: 8px 12px; border-radius: 999px; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--surface); color: var(--primary-dark); }
@media (max-width: 560px) { .nav .hide-sm { display: none; } .nav a { padding: 8px 9px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--primary); color: #fff; text-decoration: none;
  font-weight: 800; padding: 14px 22px; border-radius: 999px;
  box-shadow: 0 6px 0 var(--primary-dark); transition: transform .1s, box-shadow .1s;
}
.btn:hover { color: #fff; transform: translateY(2px); box-shadow: 0 4px 0 var(--primary-dark); }
.btn.ghost { background: var(--card); color: var(--primary-dark); border: 2px solid var(--border); box-shadow: none; }
.btn.ghost:hover { background: var(--surface); transform: none; }
.btn svg { width: 22px; height: 22px; }

/* Hero */
.hero { padding: 56px 0 72px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-block; background: var(--card); border: 1px solid var(--border); color: var(--primary-dark); font-weight: 800; font-size: .85rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 span { color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 32px; } }

/* Petri dish illustration */
.dish {
  position: relative; aspect-ratio: 1; width: min(100%, 420px); margin: 0 auto;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, var(--surface) 60%, var(--tint) 100%);
  border: 10px solid var(--card);
  box-shadow: 0 0 0 3px var(--border), var(--shadow);
}
.cell {
  position: absolute; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-weight: 900; font-family: "Fredoka", sans-serif;
  box-shadow: inset -6px -8px 0 rgba(0,0,0,.08), inset 5px 6px 0 rgba(255,255,255,.35);
  animation: breathe 4s ease-in-out infinite;
}
.cell::after { content: ""; position: absolute; width: 22%; height: 22%; top: 18%; left: 22%; border-radius: 50%; background: rgba(255,255,255,.55); }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .cell { animation: none; } html { scroll-behavior: auto; } }

/* Sections */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); }
.alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.alt .card { background: var(--bg); box-shadow: none; }
.card .icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 14px; }
.card p { color: var(--muted); margin: 0; }

.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 30px; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 24px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 900; display: grid; place-items: center;
  box-shadow: 0 0 0 4px var(--bg);
}

.parents { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 10px 0 10px 36px; position: relative; border-bottom: 1px dashed var(--border); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 9px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); color: var(--primary); font-weight: 900; display: grid; place-items: center; font-size: .85rem; }
@media (max-width: 820px) { .parents { grid-template-columns: 1fr; } }

.banner {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  color: #fff; border-radius: 28px; padding: 44px 28px; text-align: center; box-shadow: var(--shadow);
}
.banner p { color: #e0f2fe; }
.banner .btn { background: #fff; color: var(--primary-dark); box-shadow: 0 6px 0 rgba(3,105,161,.6); }

/* Long-form (privacy, support) */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 16px 72px; }
.doc .card { padding: 28px; }
.doc h2 { font-size: 1.5rem; margin-top: 1.8em; }
.doc h3 { margin-top: 1.4em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.meta { color: var(--muted); font-size: .95rem; }
.note { background: var(--surface); border-left: 4px solid var(--accent); padding: 14px 18px; border-radius: 12px; margin: 1.2em 0; }
.toc { background: var(--surface); border-radius: 16px; padding: 18px 22px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 24px; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface); }
.table-scroll { overflow-x: auto; }
details { border: 1px solid var(--border); border-radius: 14px; padding: 14px 18px; background: var(--card); margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 800; }
details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: .95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); margin-right: 16px; }
