/* Melloba — public website styles (Phase 5.2)
   Calm, trustworthy, parent-friendly, mobile-first, accessible.
   Brand tokens are CSS variables so they can be aligned to the official
   Melloba brand kit without touching markup. */

:root {
  --brand-700: #256f66;
  --brand-600: #2f8f83;
  --brand-500: #3aa99b;
  --brand-050: #eef7f5;
  --sand-050: #faf8f4;
  --sand-100: #f3ede3;
  --ink: #1e2a2e;
  --muted: #55636a;
  --line: #e3e8e7;
  --white: #ffffff;
  --focus: #1b5e8c;
  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(30,42,46,.06), 0 8px 24px rgba(30,42,46,.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1,h2,h3 { line-height: 1.2; color: var(--ink); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.01em; margin-top: 0; }
h3 { font-size: 1.15rem; }
p { color: var(--muted); }
a { color: var(--brand-700); }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.skip-link { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; font-weight: 600; font-size: 1rem; padding: 12px 20px; border-radius: 999px; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform .12s ease, background .12s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-700); color: #fff; }
.btn-primary:hover { background: #1c534c; }
.btn-ghost { background: transparent; color: var(--brand-700); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-050); }
.btn-store small { display: block; font-weight: 500; font-size: .72rem; opacity: .85; }
.btn[aria-disabled="true"] { opacity: .75; cursor: default; }
.pill { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--brand-700); background: var(--brand-050); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.9); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.15rem; }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--brand-500), var(--brand-700)); display: inline-block; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .96rem; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { background: var(--sand-100); }
.nav-links a[aria-current="page"] { color: var(--brand-700); font-weight: 600; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; width: 44px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.section { padding: 64px 0; }
.hero { padding: 72px 0 56px; background: radial-gradient(1200px 400px at 80% -10%, var(--brand-050), transparent 60%), var(--sand-050); border-bottom: 1px solid var(--line); }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 58ch; }
.lead { font-size: 1.12rem; }
.eyebrow { color: var(--brand-700); font-weight: 600; margin: 0 0 10px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; align-items: center; }
.center { text-align: center; }
.center .cta-row { justify-content: center; }
.measure { max-width: 68ch; }
.measure-narrow { max-width: 56ch; }
.alt { background: var(--sand-050); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 6px 0 8px; }
.card p { margin: 0; }
.card-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-050); color: var(--brand-700); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.05rem; }
.steps { display: grid; gap: 16px; }
.step { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--sand-050); }
.step-num { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-600); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.step h3 { margin: 2px 0 6px; }
.step p { margin: 0; }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--brand-500); background: var(--brand-050); border-radius: var(--radius); padding: 20px 22px; }
.callout.warn { border-left-color: #c98a2b; background: #fdf6ec; }
.callout h3 { margin-top: 0; }
.list-check { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.list-check li { position: relative; padding-left: 30px; color: var(--muted); }
.list-check li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--brand-600); font-weight: 800; }
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 26px; }
.prose p, .prose li { color: var(--muted); }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
.updated { font-size: .9rem; color: var(--muted); }
.site-footer { background: var(--ink); color: #cdd8d7; padding: 56px 0 28px; margin-top: 24px; }
.site-footer a { color: #dfeae8; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer-brand .brand { color: #fff; }
.footer-brand p { color: #9fb0b0; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: .95rem; margin: 0 0 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; align-items: center; color: #9fb0b0; font-size: .88rem; }
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 16px; display: none; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; border-radius: 10px; }
  .nav .nav-cta .btn-store { display: none; }
}
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } .section { padding: 48px 0; } }
