/* Map of Voices.
   Two looks from one set of colours: warm paper by day, and a dark one for phones set to dark mode.
   Every colour used below is named here, so changing the look means changing only this block. */

:root {
  --bg: #f7f2ea;            /* the page */
  --surface: #fffdf9;       /* cards and dialogs */
  --surface-2: #f1e9dd;     /* quiet panels inside cards */
  --line: #e2d7c8;
  --text: #2a2320;
  --muted: #6d635b;
  --accent: #f08a3c;        /* orange: the colour of the 16 Days campaign. Used for fills. */
  --accent-hover: #f79b54;
  --accent-ink: #2a1304;    /* text on top of orange */
  --accent-text: #b4500e;   /* orange dark enough to read as text on the page */
  --me: #b4500e;
  --witness: #2c6da6;
  --helped: #2c7a4d;        /* green: ways forward */
  --danger: #a3261a;
  --glass: rgba(255, 253, 249, .9);   /* controls that float on the map */
  --fade: 247, 242, 234;              /* the page colour, for soft edges */
  --tint: rgba(60, 40, 20, .05);
  --helped-tint: rgba(44, 122, 77, .1);
  --glow: #ffe9d2;                    /* the warm light on the opening page */
  --shadow: 0 10px 34px rgba(70, 45, 20, .16);
  --shadow-small: 0 2px 10px rgba(70, 45, 20, .14);
  --backdrop: rgba(60, 45, 30, .45);
  --map-filter: none;
  --radius: 16px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14151b;
    --surface: #1d1f28;
    --surface-2: #282b37;
    --line: #383c4c;
    --text: #efeae2;
    --muted: #a9a7b0;
    --accent-text: #f5a05e;
    --me: #f5a05e;
    --witness: #86bbe6;
    --helped: #8bd6a0;
    --danger: #ffb4a8;
    --glass: rgba(29, 31, 40, .9);
    --fade: 20, 21, 27;
    --tint: rgba(255, 255, 255, .05);
    --helped-tint: rgba(134, 211, 155, .11);
    --glow: #2b2a35;
    --shadow: 0 16px 50px rgba(0, 0, 0, .5);
    --shadow-small: 0 2px 10px rgba(0, 0, 0, .4);
    --backdrop: rgba(8, 9, 13, .72);
    --map-filter: brightness(.8) saturate(.82) contrast(1.05); /* a bright map is harsh next to dark cards */
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

h1, h2, h3, p { margin: 0; }

button, select, textarea, input { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes appear { from { opacity: 0; } }
@keyframes halo {
  from { box-shadow: 0 0 0 0 rgba(232, 118, 31, .5), 0 3px 10px rgba(60, 30, 5, .35); }
  to { box-shadow: 0 0 0 13px rgba(232, 118, 31, 0), 0 3px 10px rgba(60, 30, 5, .35); }
}

/* ---------- Map ---------- */

#map { position: fixed; inset: 0; background: #e6e2da; }

.maplibregl-map { font-family: var(--sans); }
.maplibregl-canvas { filter: var(--map-filter); }
.maplibregl-ctrl-bottom-right { margin-bottom: 70px; }
.maplibregl-ctrl-group { border-radius: 12px !important; overflow: hidden; box-shadow: var(--shadow-small) !important; }

/* One circle per town, with the number of stories in it. */
.bubble {
  appearance: none;
  padding: 0;
  font-family: inherit;
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #ffa25a, #e36d16 72%);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border: 2.5px solid #fff;
  box-shadow: 0 0 0 5px rgba(232, 118, 31, .22), 0 3px 10px rgba(60, 30, 5, .35);
  cursor: pointer;
  transition: transform .18s cubic-bezier(.3, 1.4, .5, 1);
  animation: halo 2.8s ease-out infinite;
}
.bubble:hover { transform: scale(1.12); }
.bubble.is-open {
  transform: scale(1.3);
  background: #2a1304;
  animation: none;
  box-shadow: 0 0 0 6px rgba(42, 19, 4, .22), 0 3px 12px rgba(0, 0, 0, .4);
}

.city-name {
  position: absolute;
  left: 50%;
  top: calc(100% + 4px);
  transform: translateX(-50%);
  white-space: nowrap;
  font: 600 11.5px var(--sans);
  color: #2a2620;
  text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff;
  pointer-events: none;
}

/* ---------- Buttons ---------- */

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 10px 17px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 500;
  transition: background .15s ease, border-color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: default; }

.btn-primary {
  background: linear-gradient(180deg, #f6994f, var(--accent));
  border-color: transparent;
  color: var(--accent-ink);
  font-weight: 650;
  box-shadow: 0 4px 14px rgba(232, 118, 31, .32);
}
.btn-primary:hover { background: linear-gradient(180deg, #f9a763, var(--accent-hover)); }

.btn-ghost { background: transparent; }

.btn-exit { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
.btn-exit:hover { background: var(--text); opacity: .86; }
.btn-small { padding: 6px 12px; font-size: 13px; }
.btn-big { padding: 14px 26px; font-size: 16.5px; }

/* Keeps the exit button in view at the top of a dialog, even when the dialog scrolls. */
.dialog-top { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; margin: -10px -10px 2px 0; }

.lang {
  width: auto;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 8px 9px 13px;
  cursor: pointer;
  box-shadow: var(--shadow-small);
}
.lang option { background: var(--surface); color: var(--text); }

.icon-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  flex: none;
  transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

.link { appearance: none; border: 0; background: none; padding: 4px 0; margin-top: 14px; font: inherit; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--text); }

/* ---------- Top bar: floats on the map ---------- */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 12px 14px 26px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: linear-gradient(to bottom, rgba(var(--fade), .82), rgba(var(--fade), .5) 55%, rgba(var(--fade), 0));
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.topbar-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.topbar-right { display: flex; gap: 8px; flex: none; }

.brand {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-small);
  border-radius: 999px;
  padding: 7px 15px 7px 12px;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  overflow: hidden;
}
.brand::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(232, 118, 31, .25); }
.brand-name { font-family: var(--serif); font-size: 19px; letter-spacing: .01em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.filters { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px; padding: 3px 14px 6px; }
.filters::-webkit-scrollbar { display: none; }

.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--glass);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 13.5px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.filters .chip { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-small); }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--muted)); }
.chip[data-cat="all"]::before { display: none; }
.chip[data-cat="me"] { --dot: var(--me); }
.chip[data-cat="witness"] { --dot: var(--witness); }
.chip[data-cat="helped"] { --dot: var(--helped); }
.chip:hover { color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }

.headline {
  align-self: flex-start;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  color: var(--muted);
  box-shadow: var(--shadow-small);
}
.headline strong { color: var(--text); font-variant-numeric: tabular-nums; }
.headline-sep { margin: 0 4px; }
.headline-first { appearance: none; border: 0; background: none; padding: 0; font: inherit; color: var(--accent-text); text-decoration: underline; cursor: pointer; }

.demo {
  position: fixed;
  left: 16px;
  bottom: 80px;
  z-index: 900;
  font-size: 12px;
  color: var(--muted);
  background: var(--glass);
  border: 1px dashed var(--line);
  padding: 4px 10px;
  border-radius: 999px;
}
.load-error { bottom: 116px; border-style: solid; border-color: var(--danger); color: var(--danger); }

.map-hint {
  position: fixed;
  left: 50%;
  bottom: 108px;
  z-index: 900;
  transform: translateX(-50%);
  margin: 0;
  max-width: calc(100vw - 32px);
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
  pointer-events: none;
  animation: appear .5s ease .4s backwards;
}

/* ---------- Bottom actions: one floating bar ---------- */

.actions {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 1000;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 6px;
  max-width: calc(100vw - 20px);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.actions .btn:not(.btn-primary) { border-color: transparent; background: transparent; }
.actions .btn:not(.btn-primary):hover { background: var(--surface-2); }

/* ---------- Story reader ---------- */

.reader {
  position: fixed;
  left: 50%;
  bottom: 82px;
  translate: -50% 0;
  width: min(600px, calc(100vw - 32px));
  max-height: min(60dvh, 540px);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise .28s cubic-bezier(.2, .8, .3, 1);
}

.reader-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 12px 6px 24px;
}
.reader-head h2 { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.2; }
.reader-head p { color: var(--muted); font-size: 13px; }

.reader-body { overflow-y: auto; padding: 10px 24px 16px; }

.reader-help { display: block; margin: 0 24px 10px; font-size: 12.5px; text-align: left; }

.reader-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 5px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.story {
  --cat: var(--muted);
  position: relative;
  padding-left: 20px;
  animation: appear .3s ease;
}
.story::before { content: ""; position: absolute; left: 0; top: 3px; bottom: 3px; width: 4px; border-radius: 4px; background: var(--cat); }
.story[data-cat="me"] { --cat: var(--me); }
.story[data-cat="witness"] { --cat: var(--witness); }

.story-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--cat); margin-bottom: 8px; }
.tag { color: var(--muted); font-weight: 400; border: 1px solid var(--line); border-radius: 999px; padding: 0 9px; }

.story-text { font-family: var(--serif); font-size: 19px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

.story-extra {
  margin-top: 16px;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--tint);
}
.story-extra h4 { margin: 0 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cat); }
.story[data-cat="me"] .story-extra { background: var(--helped-tint); }
.story[data-cat="me"] .story-extra h4 { color: var(--helped); }
.story-extra p { font-family: var(--serif); font-size: 16.5px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Reactions are sentences of support. */
.reactions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

.react {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.react:hover { border-color: var(--accent); background: var(--surface-2); }
.react:active { transform: scale(.95); }
.react[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 600; cursor: default; }
.react-count { opacity: .65; font-variant-numeric: tabular-nums; }

.report { appearance: none; display: block; margin: 14px 0 0 auto; border: 0; background: none; padding: 4px; color: var(--muted); font-size: 12px; cursor: pointer; opacity: .8; }
.report:hover { opacity: 1; text-decoration: underline; }

.pause { text-align: center; padding: 14px 8px 6px; }
.pause h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-bottom: 8px; }
.pause p { color: var(--muted); }
.pause .dialog-actions { justify-content: center; }

/* ---------- Dialogs ---------- */

.dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  padding: 28px;
  width: min(540px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.dialog[open] { animation: rise .25s cubic-bezier(.2, .8, .3, 1); }
.dialog::backdrop { background: var(--backdrop); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.dialog h1 { font-family: var(--serif); font-weight: 500; font-size: 34px; letter-spacing: .01em; margin-bottom: 10px; }
.dialog h2 { font-family: var(--serif); font-weight: 500; font-size: 25px; line-height: 1.2; margin-bottom: 14px; }
.dialog h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 20px 0 8px; }

.lead { font-size: 16px; color: var(--text); }

.warning {
  margin: 16px 0;
  padding: 12px 15px;
  border-radius: 12px;
  border: 1px solid rgba(240, 138, 60, .5);
  background: rgba(240, 138, 60, .12);
}

.promises { margin: 0; padding-left: 20px; color: var(--muted); }
.promises li { margin: 4px 0; }

.note { color: var(--muted); font-size: 13px; margin-top: 16px; }
.hint { display: block; margin-top: 5px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }

.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.helpline-country { font-weight: 600; margin-top: 12px; }
.helpline { display: flex; gap: 12px; align-items: baseline; padding: 3px 0; }
.helpline a { color: var(--accent-text); font-weight: 700; text-decoration: none; white-space: nowrap; min-width: 108px; }
.helpline a:hover { text-decoration: underline; }
.helpline span { color: var(--muted); font-size: 14px; }

/* Who made this. */
.yea { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.credit { display: flex; align-items: center; gap: 14px; }
.credit p { margin: 0; }
.partner-logo { flex: none; height: 44px; width: auto; max-width: 150px; object-fit: contain; border-radius: 6px; background: #fff; padding: 5px 8px; }

/* ---------- Form ---------- */

.form-lead { color: var(--muted); margin: -4px 0 12px; }
.draft-kept { margin: -4px 0 12px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13px; color: var(--muted); }

.guide { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--tint); }
.guide summary { cursor: pointer; color: var(--accent-text); font-weight: 600; }
.guide .ask-list { font-size: 14px; color: var(--muted); }
.guide p { font-size: 14px; }

.field { display: block; border: 0; padding: 0; margin: 0 0 17px; min-width: 0; }
.field > span, .field > legend { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240, 138, 60, .25); }
textarea { resize: vertical; font-family: var(--serif); font-size: 17px; line-height: 1.55; }

.counter { display: block; text-align: right; color: var(--muted); font-size: 12px; margin-top: 4px; }

.locate { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: -6px 0 17px; }
.locate .hint { margin: 0; flex: 1 1 220px; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; }
.choice .chip { background: var(--bg); }
.choice input:checked + .chip { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
.choice input:focus-visible + .chip { outline: 2px solid var(--accent-text); outline-offset: 2px; }

.check { display: flex; gap: 10px; align-items: flex-start; margin: 9px 0; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--accent); flex: none; }

.captcha { margin: 0 0 14px; }
.captcha .hint { margin: 0 0 8px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.error { color: var(--danger); background: rgba(220, 80, 60, .1); border: 1px solid rgba(220, 80, 60, .4); border-radius: 12px; padding: 10px 13px; margin-top: 12px; font-size: 14px; }

/* ---------- Opening page (shown on every visit) ---------- */

.dialog.landing {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  animation: none;
  background: radial-gradient(1100px 720px at 12% -6%, var(--glow) 0%, transparent 66%), var(--bg);
}
/* On a wide screen, a few faint circles in the margins: voices on a map. */
@media (min-width: 1180px) {
  .dialog.landing {
    background:
      radial-gradient(circle at 3% 72%, rgba(240, 138, 60, .18) 0 8px, transparent 9px),
      radial-gradient(circle at 5.5% 44%, rgba(240, 138, 60, .13) 0 5px, transparent 6px),
      radial-gradient(circle at 96% 58%, rgba(240, 138, 60, .16) 0 12px, transparent 13px),
      radial-gradient(circle at 94% 86%, rgba(240, 138, 60, .12) 0 6px, transparent 7px),
      radial-gradient(1100px 720px at 12% -6%, var(--glow) 0%, transparent 66%),
      var(--bg);
  }
}

.landing-top {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 18px;
  background: linear-gradient(rgba(var(--fade), .96) 50%, rgba(var(--fade), 0));
}

.landing-body {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px 28px 6px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 44px;
  align-items: start;
  animation: rise .5s cubic-bezier(.2, .8, .3, 1);
}

.kicker { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-text); }
.kicker .dot { flex: none; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(232, 118, 31, .22); }

.landing-hero h1 { font-size: 60px; line-height: 1.02; letter-spacing: -.01em; margin-bottom: 16px; }
.landing-hero .lead { font-size: 19px; color: var(--muted); margin-bottom: 14px; }
.purpose { font-family: var(--serif); font-size: 17px; line-height: 1.5; }
.landing-hero .purpose { font-size: 20px; }
.landing-hero .dialog-actions { margin-top: 20px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0 12px; }
.stats.stats-two { grid-template-columns: repeat(2, 1fr); }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 13px 10px; text-align: center; box-shadow: var(--shadow-small); }
.stat strong { display: block; font-family: var(--serif); font-size: 32px; font-weight: 500; line-height: 1.1; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.stat:last-child:not(:nth-child(2)) strong { color: var(--helped); }
.stat span { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.3; color: var(--muted); }

.landing-ask { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px; box-shadow: var(--shadow); }
.landing-ask h2 { font-size: 26px; margin-bottom: 8px; }
.landing-ask > p:first-of-type { color: var(--muted); }

.ask-list { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 9px; }
.ask-list li { position: relative; padding-left: 22px; }
.ask-list li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ask-note { font-family: var(--serif); font-size: 17px; line-height: 1.5; border-top: 1px solid var(--line); padding-top: 14px; }

.landing-foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 28px 36px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 12px 44px;
  align-items: start;
}
.landing-foot .warning { margin: 0; }
.landing-foot .note, .landing-foot .yea { grid-column: 1 / -1; margin-top: 0; }

/* ---------- Small screens ---------- */

@media (max-width: 820px) {
  .landing-body, .landing-foot { grid-template-columns: 1fr; gap: 22px; padding-left: 18px; padding-right: 18px; }
  .landing-hero h1 { font-size: 42px; }
  .landing-hero .lead { font-size: 17px; }
  .landing-hero .purpose { font-size: 18px; }
  .landing-ask { padding: 20px 18px; }
  .btn-big { flex: 1 1 auto; }
}

@media (max-width: 640px) {
  .brand { padding: 7px 12px 7px 10px; gap: 7px; }
  .brand::before { width: 8px; height: 8px; }
  .brand-name { font-size: 15.5px; }
  .topbar-right { gap: 6px; }
  .topbar .btn-exit { padding: 9px 12px; font-size: 13.5px; }
  .btn { padding: 11px 14px; font-size: 14.5px; }
  .btn-small { padding: 7px 12px; font-size: 13px; }
  .actions { gap: 2px; width: max-content; }
  .actions .btn { flex: 0 1 auto; min-width: 0; white-space: normal; line-height: 1.2; }

  /* On a phone the story card is a sheet that comes up from the bottom, over the action bar. */
  .reader {
    left: 0; right: 0; bottom: 0;
    translate: none;
    width: auto;
    max-height: 64dvh;
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
  }
  .reader::before { content: ""; flex: none; align-self: center; width: 38px; height: 4px; margin-top: 8px; border-radius: 4px; background: var(--line); }
  .reader-head { padding: 10px 10px 4px 18px; }
  .reader-body { padding: 10px 18px 14px; }
  .reader-help { margin: 0 18px 8px; }
  .reader-nav { padding-bottom: max(5px, env(safe-area-inset-bottom)); }
  .story-text { font-size: 18px; }

  .dialog { padding: 22px 18px; }
  .dialog h1 { font-size: 28px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .demo { bottom: 76px; left: 12px; }
  .partner-logo { height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
