/* Wobbly website: static, no scripts, no cookies, no external requests.
   Palette from docs/brand/README.md */

:root {
  --indigo-1: #7B6CF6;
  --indigo-2: #4936D8;
  --pencil: #FFC53D;
  --eraser: #FF8FAB;
  --scribble: #5B4FE9;
  --ink: #322E38;
  --ink-muted: #6b6477;
  --cream: #FFF9EE;
  --card: #FFFFFF;
  --grass: #58C472;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-rounded, "SF Pro Rounded", "Hiragino Maru Gothic ProN",
    Quicksand, Comfortaa, Manjari, "Arial Rounded MT", "Arial Rounded MT Bold",
    Calibri, source-sans-pro, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;   /* stop iOS from auto-inflating text */
  overflow-wrap: break-word;        /* long words/links never force scroll */
}

header.site {
  background: linear-gradient(135deg, var(--indigo-1), var(--indigo-2));
  color: #fff;
  padding: 16px 24px;
}

header.site .bar {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

header.site img.logo { width: 44px; height: 44px; border-radius: 10px; }

header.site .name {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  flex: 1;
}

header.site nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}
header.site nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 6px;
  padding: 11px 8px;          /* ~44px tall tap target, within the logo's height */
  font-weight: 600;
  opacity: 0.92;
}
header.site nav a:hover { opacity: 1; text-decoration: underline; }

/* Collapsible menu on phones. Pure CSS: a hidden checkbox drives it, so the
   page keeps its no-scripts promise. Hidden entirely on wide screens. */
.nav-toggle, .nav-button { display: none; }

@media (max-width: 700px) {
  header.site .bar { flex-wrap: wrap; }

  /* The checkbox stays focusable (Tab reaches it, Space toggles it) but
     invisible; the label draws the button and the focus ring. */
  .nav-toggle {
    display: block;
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0;
  }
  .nav-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-left: auto;
    color: #fff;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 11px;
    padding: 9px 14px;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
  }
  .nav-toggle:focus-visible ~ .nav-button {
    outline: 3px solid var(--pencil);
    outline-offset: 2px;
  }
  .nav-icon {
    width: 16px; height: 2px;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 -5px 0 #fff, 0 5px 0 #fff;
  }

  header.site nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    margin-top: 12px;
  }
  .nav-toggle:checked ~ nav { display: flex; }
  header.site nav a {
    margin-left: 0;
    padding: 13px 6px;
    font-size: 1.05rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
  }
}

main { max-width: 960px; margin: 0 auto; padding: 32px 24px 64px; }

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px;
  padding: 36px 0 18px;
}

.hero > div { flex: 1 1 340px; }

.hero img.mascot {
  width: 210px;
  max-width: 40vw;
  height: auto;
  transform-origin: bottom center;
  animation: mascot-wobble 1.2s ease-in-out 0.25s 1 both;
}

/* One friendly wobble on first load, like a bouncy pencil settling. */
@keyframes mascot-wobble {
  0%   { transform: rotate(0deg); }
  12%  { transform: rotate(-7deg); }
  26%  { transform: rotate(6deg); }
  40%  { transform: rotate(-5deg); }
  55%  { transform: rotate(3deg); }
  70%  { transform: rotate(-2deg); }
  85%  { transform: rotate(1deg); }
  100% { transform: rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero img.mascot { animation: none; }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 12px;
}

.hero p.tag { font-size: 1.25rem; color: var(--ink-muted); margin: 0 0 20px; }
.hero p.tag strong { color: var(--indigo-2); font-weight: 800; }

.hl {
  background: linear-gradient(120deg, var(--pencil) 0%, var(--eraser) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 720px;
  margin: 0 0 22px;
}

/* By-the-numbers strip */
.stats-wrap { margin-top: 40px; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  background: linear-gradient(135deg, var(--indigo-1), var(--indigo-2));
  border-radius: 22px;
  padding: 28px 24px;
}
.stat { text-align: center; color: #fff; }
.stat .num {
  font-size: clamp(2.2rem, 6vw, 3rem);
  font-weight: 800;
  line-height: 1;
  color: var(--pencil);
}
.stat .lbl { font-size: 0.95rem; opacity: 0.95; margin-top: 6px; }

/* App showcase: pure-CSS scroll-snap rail + iPhone/iPad toggle.
   No scripts — the radios drive device choice, the rail scrolls natively. */
.showcase { margin-top: 8px; }

/* Device toggle (segmented control). The radios are visually hidden;
   the labels are the buttons. */
.device-toggle { text-align: center; }
.device-toggle > input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.device-toggle > label {
  display: inline-block;
  padding: 9px 22px;
  font-weight: 800;
  font-size: 1rem;
  color: var(--indigo-2);
  background: #fff;
  border: 2px solid rgba(123, 108, 246, 0.35);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.device-toggle > label[for="dev-iphone"] { border-radius: 999px 0 0 999px; border-right-width: 1px; }
.device-toggle > label[for="dev-ipad"]   { border-radius: 0 999px 999px 0; border-left-width: 1px; }
#dev-iphone:checked + label,
#dev-ipad:checked + label {
  background: linear-gradient(135deg, var(--indigo-1), var(--indigo-2));
  color: #fff;
  border-color: var(--indigo-2);
}
.device-toggle > input:focus-visible + label { outline: 3px solid var(--pencil); outline-offset: 2px; }

/* Shot rail: a horizontal, scroll-snapping strip of the App Store screenshots.
   Each shot already carries its own headline, so the rail's job is only to
   present them big enough to read and let a visitor move at their own pace.
   No timer, no autoplay: an image that moves on its own is an image nobody
   finishes reading. */
.shot-rails { margin-top: 26px; }

.shot-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0 4px;
  /* Room for the shadow, so scrolling never clips it. */
  padding: 10px 4px 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(123, 108, 246, 0.45) transparent;
}
.shot-rail::-webkit-scrollbar { height: 10px; }
.shot-rail::-webkit-scrollbar-track { background: rgba(123, 108, 246, 0.10); border-radius: 999px; }
.shot-rail::-webkit-scrollbar-thumb { background: rgba(123, 108, 246, 0.45); border-radius: 999px; }
.shot-rail:focus-visible { outline: 3px solid var(--pencil); outline-offset: 4px; border-radius: 24px; }

.shot-rail img {
  flex: 0 0 auto;
  scroll-snap-align: center;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 14px 34px rgba(50, 46, 56, 0.20);
  background: var(--card);
}
.shot-rail.is-iphone img { width: 286px; }
.shot-rail.is-ipad   img { width: 430px; }

/* Toggle drives which device rail is visible. */
#dev-iphone:checked ~ .shot-rails .is-ipad,
#dev-ipad:checked   ~ .shot-rails .is-iphone { display: none; }

.rail-hint {
  margin: 2px 0 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

@media (max-width: 560px) {
  .shot-rail.is-iphone img { width: 240px; }
  .shot-rail.is-ipad   img { width: 300px; }
}

.badge {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 12px 22px;
  font-weight: 700;
  text-decoration: none;
}

/* Friend-invite welcome. index.html shows it when the address carries ?code=… */
.invite-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(50, 46, 56, 0.55);
}
.invite-modal[hidden] { display: none; }
.invite-card {
  outline: none; /* focused by script on open, not by keyboard tabbing */
  background: var(--card);
  border-radius: 24px;
  border-top: 8px solid var(--pencil);
  padding: 30px 26px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}
.invite-card img { width: 88px; height: auto; margin-bottom: 6px; }
.invite-card h2 { margin: 0 0 10px; color: var(--indigo-2); }
.invite-card p { margin: 0 0 20px; color: var(--ink-muted); }
.invite-card .invite-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--indigo-2);
  background: var(--cream);
  border-radius: 8px;
  padding: 2px 8px;
}
.invite-close {
  display: block;
  margin: 14px auto 0;
  background: none;
  border: none;
  color: var(--ink-muted);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
body.modal-open { overflow: hidden; }

.pill {
  display: inline-block;
  background: #fff;
  border: 2px solid var(--indigo-1);
  color: var(--indigo-2);
  border-radius: 999px;
  padding: 4px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

section { margin-top: 48px; }

h2 { font-size: 1.7rem; margin: 0 0 16px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 14px rgba(50, 46, 56, 0.08);
}

.card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.card p { margin: 0; color: var(--ink-muted); }

/* Parent pull-quote: the emotional centerpiece of the "grow the child" section. */
.ethos-note {
  background: var(--card);
  border-left: 6px solid var(--pencil);
  border-radius: 14px;
  padding: 20px 26px;
  margin: 0 0 22px;
  max-width: 760px;
  box-shadow: 0 6px 18px rgba(50, 46, 56, 0.09);
}
.ethos-note p {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}

.privacy-banner {
  background: linear-gradient(135deg, var(--indigo-1), var(--indigo-2));
  color: #fff;
  border-radius: 22px;
  padding: 32px;
}
.privacy-banner h2 { color: #fff; }
.privacy-banner a { color: #ffe9a8; }
.privacy-banner ul { margin: 0; padding-left: 22px; }

.price-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.price {
  background: var(--card);
  border-radius: 18px;
  padding: 26px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(50, 46, 56, 0.08);
}
.price-table { max-width: 520px; margin: 0 auto; }
.price.hero-price { border: 3px solid var(--grass); position: relative; padding-top: 34px; }
.price-flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--grass);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}
.price .amount { font-size: 2.8rem; font-weight: 800; color: var(--indigo-2); }
.price .per { color: var(--ink-muted); font-size: 0.95rem; }
.price h3 { font-size: 1.3rem; margin: 0 0 4px; }

/* The free/full cards inside a card need list styling of their own. */
.card ul { margin: 0; padding-left: 20px; color: var(--ink-muted); }
.card ul li { margin: 0 0 6px; }
.card ul li:last-child { margin-bottom: 0; }

/* Pricing section: the free/full cards sit above the price, and the note about
   the grown-up unlock sits under it, so the last word on the page is the one
   surprise a parent would otherwise meet on day two. */
.price-table.pricing-price { margin-top: 22px; }
.ethos-note.pricing-note { margin: 26px auto 0; }
.ethos-note.pricing-note p { font-size: 1.05rem; font-weight: 500; }

/* ---------------------------------------------------------------------------
   "How Wobbly teaches": four steps, drawn as a path rather than a fourth
   identical grid of cards. Each step carries its own accent through the
   --accent custom property set inline in the markup, so a new step needs no
   new CSS. The ghost numeral is what makes the order readable at a glance.
--------------------------------------------------------------------------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  /* Two by two on a desktop: four across inside a 960px page would squeeze
     every step into a column too narrow to read. The min() keeps the track
     from staying 320px wide on a 320px phone, which would overflow the page. */
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 18px;
}

.step {
  position: relative;
  background: var(--card);
  border-radius: 20px;
  border-top: 5px solid var(--accent, var(--indigo-1));
  padding: 22px 22px 20px;
  box-shadow: 0 4px 14px rgba(50, 46, 56, 0.08);
}

.step-num {
  position: absolute;
  top: 6px;
  right: 16px;
  font-size: 4.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent, var(--indigo-1));
  opacity: 0.16;
  pointer-events: none;
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 1.7rem;
  line-height: 1;
  background: color-mix(in srgb, var(--accent, var(--indigo-1)) 18%, #fff);
  margin-bottom: 12px;
}

.step h3 { margin: 0 0 8px; font-size: 1.2rem; }
.step p { margin: 0; color: var(--ink-muted); }

/* ---------------------------------------------------------------------------
   "Praise the effort": one loud quote, then four quiet principles. The
   contrast between the two is the point; four more white cards would have read
   as more of the same.
--------------------------------------------------------------------------- */
.pullquote {
  position: relative;
  margin: 0 0 26px;
  max-width: 760px;
  background: var(--card);
  border-radius: 20px;
  padding: 30px 34px 26px 62px;
  box-shadow: 0 8px 22px rgba(50, 46, 56, 0.10);
}
.pullquote::before {
  content: "\201C";
  position: absolute;
  left: 20px;
  top: 6px;
  font-size: 5rem;
  line-height: 1;
  font-weight: 800;
  color: var(--pencil);
}
.pullquote p {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
.pullquote footer {
  margin-top: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--indigo-2);
}

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: 14px 26px;
}
.principles > li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0 14px 16px;
  border-left: 4px solid var(--accent, var(--indigo-1));
}
.principle-icon {
  flex: 0 0 auto;
  font-size: 1.5rem;
  line-height: 1.2;
}
.principles h3 { margin: 0 0 4px; font-size: 1.08rem; }
.principles p { margin: 0; color: var(--ink-muted); }

/* ---------------------------------------------------------------------------
   "Made for grown-ups": a room of its own. The tinted panel is doing the same
   job the parent gate does in the app, saying "this part is not for the child"
   before a word is read.
--------------------------------------------------------------------------- */
.grownup-room {
  background: rgba(123, 108, 246, 0.12);
  border: 1px solid rgba(123, 108, 246, 0.28);
  border-radius: 26px;
  padding: 30px 28px 32px;
}
.grownup-room h2 { margin-bottom: 10px; }
.grownup-room .eyebrow { margin-bottom: 6px; }
.grownup-room .lead { margin-bottom: 22px; }

@media (max-width: 560px) {
  .grownup-room { padding: 24px 18px 26px; border-radius: 20px; }
  .pullquote { padding: 26px 22px 22px 50px; }
  .pullquote::before { left: 14px; font-size: 4rem; }
}

/* ---------------------------------------------------------------------------
   Literacy / call-to-action page (literacy.html)
--------------------------------------------------------------------------- */

/* Hero illustration alongside the headline */
.hero img.scene {
  width: 320px;
  max-width: 46vw;
  height: auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--indigo-1);
  margin: 0 0 10px;
}

/* Big-number callout grid (the headline statistics) */
.bignums {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.bignum {
  background: var(--card);
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 4px 14px rgba(50, 46, 56, 0.08);
  border-top: 6px solid var(--indigo-1);
}
.bignum .big {
  font-size: clamp(2.4rem, 7vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  color: var(--indigo-2);
}
.bignum .what { font-weight: 700; margin: 10px 0 4px; }
.bignum .who { color: var(--ink-muted); font-size: 0.95rem; margin: 0; }
.bignum .src { display: block; margin-top: 12px; font-size: 0.78rem; }
.bignum .src a { color: var(--ink-muted); }

/* A few accent variants so the grid isn't monotone */
.bignum.c2 { border-top-color: var(--eraser); }
.bignum.c2 .big { color: var(--eraser); }
.bignum.c3 { border-top-color: var(--pencil); }
.bignum.c3 .big { color: #d99400; }
.bignum.c4 { border-top-color: var(--grass); }
.bignum.c4 .big { color: var(--grass); }

/* Data-viz figure (inline SVG charts) */
.chart {
  background: var(--card);
  border-radius: 18px;
  padding: 24px 22px 14px;
  box-shadow: 0 4px 14px rgba(50, 46, 56, 0.08);
  margin: 0;
}
.chart svg { width: 100%; height: auto; display: block; }
.chart figcaption {
  color: var(--ink-muted);
  font-size: 0.92rem;
  margin-top: 12px;
}
.chart figcaption strong { color: var(--ink); }

/* Pull-quote / thesis callout */
.quote {
  border-left: 6px solid var(--pencil);
  background: #fff;
  border-radius: 0 16px 16px 0;
  padding: 22px 24px;
  margin: 26px 0 0;
  box-shadow: 0 4px 14px rgba(50, 46, 56, 0.06);
}
.quote p { font-size: 1.2rem; margin: 0; font-weight: 600; }
.quote .by { color: var(--ink-muted); font-size: 0.95rem; font-weight: 600; margin-top: 8px; }
/* Hopeful variant — green accent, used for the "way out" note */
.quote.good { border-left-color: var(--grass); }

/* Two-column band: text beside an illustration */
.band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
}
.band > .copy { flex: 1 1 320px; }
.band > .art { flex: 1 1 240px; text-align: center; }
.band > .art img { width: 300px; max-width: 80%; height: auto; }

/* The big warm call-to-action: read at home tonight */
.cta-read {
  background: linear-gradient(135deg, #6f7bf7, var(--indigo-2));
  color: #fff;
  border-radius: 24px;
  padding: 40px 36px;
}
.cta-read h2 { color: #fff; font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
.cta-read .lead { color: #efe9ff; }
.cta-read a.badge { background: var(--pencil); color: var(--ink); margin-top: 8px; }

/* Tips list — concrete things parents can do tonight */
.tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}
.tips li {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 18px 20px;
}
.tips li b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.tips li span { color: #e7e1ff; font-size: 0.96rem; }

/* Video gallery — still frames linking out to YouTube */
.videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.video-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(50, 46, 56, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.video-card:hover,
.video-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(50, 46, 56, 0.18);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Play button, drawn in CSS so the page still loads no external assets */
.video-thumb::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 68px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(73, 54, 216, 0.92);
  box-shadow: 0 6px 18px rgba(50, 46, 56, 0.35);
}
.video-thumb::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-44%, -50%);
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #fff;
  z-index: 1;
}
.video-card:hover .video-thumb::after,
.video-card:focus-visible .video-thumb::after { background: var(--indigo-2); }
.video-dur {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.video-meta { padding: 18px 20px 20px; }
.video-meta .src-name {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--indigo-1);
  margin-bottom: 6px;
}
.video-meta h3 { margin: 0 0 6px; font-size: 1.12rem; line-height: 1.3; }
.video-meta p { margin: 0; color: var(--ink-muted); font-size: 0.94rem; }

/* Index page: link banner to the literacy page */
.mission-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  background: var(--card);
  border-radius: 22px;
  padding: 28px 30px;
  box-shadow: 0 4px 14px rgba(50, 46, 56, 0.08);
  border: 2px solid #ece4ff;
}
.mission-link img { width: 130px; max-width: 30vw; height: auto; }
.mission-link .copy { flex: 1 1 280px; }
.mission-link h2 { margin: 0 0 8px; }
.mission-link p { color: var(--ink-muted); margin: 0 0 14px; }
.mission-link a.more {
  font-weight: 800;
  color: var(--indigo-2);
  text-decoration: none;
}
.mission-link a.more:hover { text-decoration: underline; }

/* Sources block */
.sources { font-size: 0.9rem; color: var(--ink-muted); }
.sources ol { margin: 0; padding-left: 22px; }
.sources li { margin-bottom: 8px; }
.sources a { color: var(--indigo-2); overflow-wrap: anywhere; }
.note { font-size: 0.88rem; color: var(--ink-muted); font-style: italic; }

@media (max-width: 600px) {
  .hero img.scene { max-width: 70vw; width: 260px; }
  .cta-read { padding: 28px 22px; }
  .mission-link { padding: 22px 20px; }
}

footer.site {
  border-top: 2px solid #eee2c8;
  padding: 28px 24px 48px;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
footer.site .inner { max-width: 960px; margin: 0 auto; }
footer.site a { color: var(--indigo-2); }

/* Legal pages */
article.legal { background: var(--card); border-radius: 18px; padding: 36px; box-shadow: 0 4px 14px rgba(50,46,56,0.08); }
article.legal h1 { font-size: 2rem; margin-top: 0; }
article.legal h2 { font-size: 1.3rem; margin-top: 32px; }
article.legal .updated { color: var(--ink-muted); font-size: 0.95rem; }
article.legal a { overflow-wrap: anywhere; }   /* wrap long emails/URLs on phones */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 6px; }
article.legal table { border-collapse: collapse; width: 100%; min-width: 360px; }
article.legal th, article.legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; vertical-align: top; }

/* Phones: tighten padding, give content full width, stack the stats 2x2. */
@media (max-width: 600px) {
  main { padding: 24px 16px 48px; }
  section { margin-top: 36px; }
  header.site { padding: 14px 16px; }
  header.site .name { font-size: 1.25rem; }
  article.legal { padding: 22px 18px; }
  .stats { grid-template-columns: 1fr 1fr; padding: 22px 16px; }
  .hero { gap: 20px; padding: 20px 0 8px; }
}
