/* Mobile-first. Base styles target phones; min-width queries add room. */
:root {
  --blue: #373a9f;
  --blue-dark: #262874;
  --blue-soft: #eef0ff;
  --yellow: #ffd85c;
  --pink: #f39ac9;
  --teal: #6fd6d0;
  --ink: #1d1f3a;
  --muted: #5a5d7a;
  --bg: #fffdf8;
  --card: #ffffff;
  --line: #e4e4f0;
  --error: #b42318;
  --ok: #157f3b;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(29, 31, 58, .06), 0 6px 20px rgba(29, 31, 58, .06);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: 1.55rem; color: var(--blue-dark); }

.skip { position: absolute; left: -999px; top: 0; background: var(--yellow); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- Header ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--blue); color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
  padding-top: env(safe-area-inset-top);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 16px; max-width: 1080px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: .95rem; white-space: nowrap; min-width: 0; }
.brand > span { overflow: hidden; text-overflow: ellipsis; }
.brand img { background: #fff; border-radius: 50%; padding: 2px; }
.lang { display: flex; background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 3px; }
.lang button {
  font: inherit; font-size: .85rem; font-weight: 700; color: #fff;
  background: transparent; border: 0; border-radius: 999px;
  min-width: 44px; min-height: 36px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: #fff; color: var(--blue); }

.subnav {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding: 0 12px 8px; max-width: 1080px; margin: 0 auto;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  flex: 0 0 auto; color: #fff; text-decoration: none; font-size: .88rem; font-weight: 600;
  padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, .1);
}
.subnav a.nav-cta { background: var(--yellow); color: var(--ink); }

/* ---------- Layout ---------- */
.hero, .section, .stats { padding: 32px 16px; max-width: 1080px; margin: 0 auto; }
.section { border-top: 1px solid var(--line); }
.section-intro { color: var(--muted); margin-top: 0; }

/* ---------- Hero ---------- */
.hero { padding-top: 28px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background:
    radial-gradient(circle at 92% 12%, var(--pink) 0 22px, transparent 23px),
    radial-gradient(circle at 80% 28%, var(--yellow) 0 12px, transparent 13px),
    radial-gradient(circle at 96% 40%, var(--teal) 0 9px, transparent 10px);
}
.eyebrow { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); margin: 0 0 8px; }
.hero h1 { font-size: 2.2rem; color: var(--blue-dark); }
.lede { font-size: 1.08rem; margin: 0 0 20px; }
.hero-ctas { display: flex; flex-direction: column; gap: 10px; }
.note { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 22px; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 2px solid var(--blue); transition: transform .1s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost { background: #fff; color: var(--blue); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 0; }
.stat {
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; border-top: 5px solid var(--yellow);
  display: flex; flex-direction: column; gap: 2px;
}
.stat:nth-child(2) { border-top-color: var(--pink); }
.stat:nth-child(3) { border-top-color: var(--teal); }
.stat:nth-child(4) { border-top-color: var(--blue); }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--blue-dark); }
.stat-label { font-size: .85rem; color: var(--muted); line-height: 1.3; }

/* ---------- Videos ---------- */
.video-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.video { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe, .video-frame button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame button { padding: 0; cursor: pointer; background: #111; }
.video-frame button img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 68px; height: 48px; border-radius: 14px; background: rgba(55, 58, 159, .92);
  display: grid; place-items: center;
}
.play::after { content: ""; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.video-frame button:hover .play, .video-frame button:focus-visible .play { background: #ff3b3b; }
.video-meta { padding: 10px 14px 14px; }
.video-meta h3 { font-size: 1.05rem; margin: 0; }
.video-meta p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- Budget ---------- */
.budget-bars { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.budget-bars li {
  position: relative; display: flex; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border-radius: 10px; background: var(--blue-soft); overflow: hidden; z-index: 0;
  font-size: .95rem;
}
.budget-bars li::before {
  content: ""; position: absolute; inset: 0 auto 0 0; z-index: -1;
  width: calc(var(--pct) * 2%); max-width: 100%; background: var(--c); opacity: .55;
}
.figures { display: grid; gap: 20px; }
figure { margin: 0; }
.zoom { padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); width: 100%; }
figcaption { font-size: .88rem; color: var(--muted); margin-top: 6px; text-align: center; }

dialog#lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; }
dialog#lightbox::backdrop { background: rgba(10, 10, 30, .9); }
dialog#lightbox img { max-width: 100vw; max-height: 92vh; width: auto; }
.lb-close {
  position: fixed; top: calc(10px + env(safe-area-inset-top)); right: 10px;
  width: 48px; height: 48px; border-radius: 50%; border: 0;
  font-size: 2rem; line-height: 1; background: #fff; color: var(--ink); cursor: pointer;
}

/* ---------- FAQ ---------- */
.faq details { background: var(--card); border-radius: 12px; box-shadow: var(--shadow); margin-bottom: 10px; }
.faq summary {
  list-style: none; cursor: pointer; padding: 14px 44px 14px 14px; font-weight: 700; position: relative;
  min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--blue); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 14px 14px; }
.faq .answer p { margin: 0 0 .8em; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq-contact { margin-top: 18px; }

/* ---------- Form ---------- */
.respond { background: linear-gradient(180deg, var(--blue-soft), transparent 70%); max-width: none; }
.respond > * { max-width: 640px; margin-left: auto; margin-right: auto; }
form { background: var(--card); padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.field { margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.field > label:not(.radio), legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
input[type="text"], input[type="email"] {
  width: 100%; font: inherit; font-size: 16px; /* 16px prevents iOS zoom */
  padding: 12px 14px; min-height: 50px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(55, 58, 159, .2); }
.hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }
.radio {
  display: flex; align-items: center; gap: 12px; min-height: 52px;
  padding: 10px 14px; border: 2px solid var(--line); border-radius: 10px; margin-bottom: 8px; cursor: pointer;
}
.radio input { width: 22px; height: 22px; accent-color: var(--blue); margin: 0; flex: none; }
.radio:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.err { display: none; color: var(--error); font-size: .88rem; margin: 6px 0 0; font-weight: 600; }
.field.invalid .err { display: block; }
.field.invalid input[type="text"], .field.invalid input[type="email"] { border-color: var(--error); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.privacy { font-size: .85rem; color: var(--muted); margin: 12px 0 0; }
.form-msg:empty { display: none; }
.form-msg { margin-top: 14px; padding: 14px; border-radius: 10px; font-weight: 600; }
.form-msg.ok { background: #e7f6ec; color: var(--ok); }
.form-msg.bad { background: #fdecea; color: var(--error); }

.give { text-align: center; }
.give p { max-width: 560px; margin: 0 auto 16px; color: var(--muted); }

.footer { background: var(--blue-dark); color: #fff; text-align: center; padding: 28px 16px calc(28px + env(safe-area-inset-bottom)); }
.footer img { margin: 0 auto 8px; background: #fff; border-radius: 50%; padding: 3px; }
.footer a { color: var(--yellow); }
.footer .small { font-size: .85rem; opacity: .85; }

/* ---------- Larger screens ---------- */
@media (min-width: 600px) {
  .hero h1 { font-size: 2.8rem; }
  .hero-ctas { flex-direction: row; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .video-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .subnav { justify-content: center; }
  .hero { padding: 56px 16px 40px; }
  .hero h1 { font-size: 3.4rem; max-width: 14ch; }
  .lede { max-width: 60ch; }
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .figures { grid-template-columns: 1fr 1fr; }
  .figures figure:last-child { grid-column: 1 / -1; max-width: 820px; justify-self: center; }
}
