/* welfairy.com v1 · built from the WelFairy design tokens (Grove Glint, light theme) */

@font-face {
  font-family: "Literata";
  src: url("../fonts/Literata-600-opsz.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-400.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/SourceSans3-700.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --anchor: #0F3D2E;
  --on-anchor: #F7F5EF;
  --fresh: #8FC3A0;
  --fresh-strong: #3E8E60;
  --fresh-tint: #E8F2EC;
  --fresh-deep: #164536;
  --sage-glow: #A8D9B6;
  --accent: #388BC5;
  --accent-ink: #1E6091;
  --accent-tint: #E3EEF7;
  --accent-light: #8CC4EA;
  --surface: #FFFFFF;
  --paper: #F7F5EF;
  --stone: #ECE8DD;
  --ink: #141F1A;
  --ink-muted: #585F59;
  --hairline: #D9D6CC;
  --border-control: #848A84;
  --focus: #1E6091;
  --success: #1D6A44;
  --success-tint: #E1F1E7;
  --critical: #A3291D;
  --critical-tint: #FBE5E1;
  --serif: "Literata", "Source Serif 4", Georgia, serif;
  --sans: "Source Sans 3", "Public Sans", system-ui, sans-serif;
  --shadow-soft: 0 1px 2px rgba(20, 31, 26, .06), 0 4px 12px rgba(20, 31, 26, .06);
  --radius-md: 6px;
  --radius-lg: 10px;
  --wrap: 1240px;
  --gutter: 40px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--anchor);
  font-variant-ligatures: none;
  font-optical-sizing: auto;
  margin: 0;
}
p { margin: 0; }
a { color: var(--accent-ink); text-underline-offset: .14em; }
a:hover { color: var(--anchor); }
button { font-family: inherit; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--accent-tint); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 10;
  background: var(--anchor); color: var(--on-anchor); padding: 12px 16px; border-radius: var(--radius-md);
  font-weight: 700; text-decoration: none; transition: top .15s;
}
.skip:focus { top: 12px; color: var(--on-anchor); }

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--anchor);
}
.h-section { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.15; text-wrap: balance; margin-bottom: 14px; }
.lede { max-width: 60ch; }
.measure { max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--radius-md); border: 1px solid transparent;
  font-weight: 700; font-size: 17px; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--anchor); color: var(--on-anchor); }
.btn-primary:hover { background: #0b2f23; color: var(--on-anchor); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--anchor); border-color: var(--border-control); }
.btn-ghost:hover { background: var(--surface); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: default; }

/* ---------- Header ---------- */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.wordmark {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--serif); font-weight: 600; font-size: 28px; color: var(--anchor);
  font-variant-ligatures: none; white-space: nowrap; text-decoration: none; letter-spacing: -.01em;
}
.wordmark:hover { color: var(--anchor); }
.wm-i { position: relative; display: inline-block; }
.wm-i svg { position: absolute; left: 50%; top: .12em; width: .44em; height: .44em; margin-left: -.19em; overflow: visible; }
.site-nav { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; font-weight: 700; font-size: 16px; }
.site-nav a:not(.btn) {
  color: var(--anchor); text-decoration: none; padding: 10px 6px; min-height: 44px; display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent; transition: border-color .15s;
}
.site-nav a:not(.btn):hover { border-bottom-color: var(--accent); }
.site-nav .btn { padding: 10px 20px; font-size: 16px; min-height: 44px; margin-left: 8px; }

/* ---------- Hero ---------- */
.hero .wrap { padding-top: 48px; padding-bottom: 88px; display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; }
.hero-copy { flex: 1 1 480px; min-width: 0; }
.hero-copy .eyebrow { margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(42px, 5vw, 66px); line-height: 1.08; letter-spacing: -.01em; text-wrap: balance;
}
.hero-sub { margin-top: 30px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.5; max-width: 46ch; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-note { font-size: 15px; color: var(--ink-muted); }

/* Headline flourish: hand-drawn underline, twinkle on the i (one flourish per page) */
.ul { position: relative; z-index: 0; white-space: nowrap; display: inline-block; }
.ul .line { position: absolute; left: -.04em; bottom: -.22em; width: calc(100% + .08em); height: .36em; z-index: -1; overflow: visible; }
.ul .line path {
  fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: wfDraw .9s cubic-bezier(.65, 0, .35, 1) 4s forwards;
}
@keyframes wfDraw { to { stroke-dashoffset: 0; } }
.wi { position: relative; display: inline-block; }
.glint, .mote { position: absolute; left: 50%; top: .13em; width: .44em; height: .44em; margin-left: -.19em; overflow: visible; }
.glint { animation: wfFly 3.2s cubic-bezier(.45, .05, .3, 1) .6s both, wfGlow 4.8s ease-in-out 4.2s infinite; }
.mote { width: .16em; height: .16em; margin-left: -.06em; opacity: 0; animation: wfFly 3.2s cubic-bezier(.45, .05, .3, 1) var(--d) both, wfMote 1.2s ease-out var(--d) both; }
.mote:nth-child(1) { --d: .9s; }
.mote:nth-child(2) { --d: 1.1s; }
.mote:nth-child(3) { --d: 1.3s; }
.mote:nth-child(4) { --d: 1.5s; }
.mote:nth-child(5) { --d: 1.7s; }
.mote:nth-child(6) { --d: 1.9s; }
.mote:nth-child(7) { --d: 2.1s; }
.mote:nth-child(8) { --d: 2.3s; }
@keyframes wfFly {
  0% { transform: translate(-9em, -2.4em) scale(.5) rotate(-40deg); opacity: 0; }
  8% { opacity: 1; }
  30% { transform: translate(-6.2em, -3.1em) scale(.8) rotate(20deg); }
  52% { transform: translate(-3em, -.4em) scale(.9) rotate(-10deg); }
  72% { transform: translate(1.4em, -2.3em) scale(1.25) rotate(25deg); }
  88% { transform: translate(.5em, -1em) scale(1.1) rotate(-6deg); }
  100% { transform: none; opacity: 1; }
}
@keyframes wfMote { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; } }
@keyframes wfGlow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(56, 139, 197, .35)); }
  50% { filter: drop-shadow(0 0 7px rgba(56, 139, 197, .7)); }
}

/* Hero art: the paper trail and the phone */
.art { flex: 1 1 440px; min-width: 0; position: relative; height: 600px; }
.art-in { position: absolute; left: 0; top: 0; width: 100%; height: 600px; }
.sheet {
  position: absolute; left: 50%; top: 50%; width: 210px; height: 260px; margin: -130px 0 0 -105px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md);
  padding: 16px; box-shadow: var(--shadow-soft);
  animation: wfIn .7s var(--ease-out) var(--d) both;
  will-change: transform, opacity;
}
.sheet:nth-child(1) { --d: .1s; --x: -150px; --y: -150px; --r: -9deg; }
.sheet:nth-child(2) { --d: .25s; --x: 150px; --y: -160px; --r: 7deg; }
.sheet:nth-child(3) { --d: .4s; --x: -165px; --y: 60px; --r: 5deg; }
.sheet:nth-child(4) { --d: .55s; --x: 160px; --y: 50px; --r: -6deg; }
.sheet:nth-child(5) { --d: .7s; --x: -110px; --y: 170px; --r: -3deg; }
.sheet:nth-child(6) { --d: .85s; --x: 120px; --y: 175px; --r: 4deg; }
@keyframes wfIn {
  from { opacity: 0; transform: translate(0, 40px); }
  to { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--r)); }
}
.sheet::after {
  content: ""; position: absolute; inset: -1px; border-radius: var(--radius-md);
  background: var(--paper); opacity: 0; animation: wfVeil .8s ease-out 2.2s forwards;
}
@keyframes wfVeil { to { opacity: .55; } }
.sheet b { display: block; font-family: var(--serif); font-weight: 600; font-size: 14px; color: var(--anchor); margin-bottom: 10px; line-height: 1.25; }
.sheet i { display: block; height: 7px; border-radius: 3px; background: var(--stone); margin: 8px 0; }
.sheet i.w70 { width: 70%; } .sheet i.w80 { width: 80%; } .sheet i.w40 { width: 40%; }
.sheet i.w90 { width: 90%; } .sheet i.w65 { width: 65%; } .sheet i.w75 { width: 75%; }

.phone {
  position: absolute; left: 50%; top: 50%; width: 272px; height: 548px; margin: -274px 0 0 -136px;
  background: var(--ink); border-radius: 42px; padding: 11px;
  box-shadow: 0 24px 56px rgba(20, 31, 26, .28), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  animation: wfPhone .9s var(--ease-out) 2.4s both;
  will-change: transform, opacity;
}
@keyframes wfPhone { from { opacity: 0; transform: translateY(60px) scale(.94); } to { opacity: 1; transform: none; } }
.screen { background: var(--paper); border-radius: 32px; height: 100%; overflow: hidden; display: flex; flex-direction: column; position: relative; }
.island { position: absolute; left: 50%; top: 10px; width: 80px; height: 22px; margin-left: -40px; background: var(--ink); border-radius: 999px; }
.statusbar { display: flex; justify-content: space-between; padding: 12px 22px 0; font-size: 11px; font-weight: 700; color: var(--anchor); }
.statusbar span:last-child { display: inline-flex; gap: 4px; align-items: center; }
.app-head { padding: 16px 16px 10px; display: flex; align-items: center; justify-content: space-between; }
.app-wm { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--anchor); font-variant-ligatures: none; white-space: nowrap; }
.avatar { width: 28px; height: 28px; border-radius: 999px; background: var(--fresh); color: var(--ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.app-body { padding: 0 14px; display: grid; gap: 10px; flex: 1; align-content: start; }
.app-card { background: var(--anchor); color: var(--on-anchor); border-radius: 14px; padding: 14px; }
.app-card .k { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-glow); }
.app-card .t { margin: 4px 0 10px; font-family: var(--serif); font-weight: 600; font-size: 17px; line-height: 1.15; text-wrap: balance; }
.track { height: 6px; border-radius: 999px; background: var(--fresh-deep); overflow: hidden; }
.bar { height: 6px; border-radius: 999px; background: var(--accent-light); width: 25%; animation: wfBar 2.4s steps(3, end) 3.3s forwards; }
@keyframes wfBar { to { width: 100%; } }
.app-card .n { margin: 8px 0 0; font-size: 11px; color: #BFD0C5; }
.app-list { background: var(--surface); border-radius: 14px; padding: 4px 12px; }
.row { display: flex; gap: 8px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--stone); }
.row:last-child { border-bottom: 0; }
.row:nth-child(1) { --d: 3.3s; } .row:nth-child(2) { --d: 3.9s; } .row:nth-child(3) { --d: 4.5s; } .row:nth-child(4) { --d: 5.1s; }
.ico { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--fresh-tint); color: var(--anchor); display: grid; place-items: center; }
.ico.blue { background: var(--accent-tint); }
.ico svg { width: 16px; height: 16px; }
.row .name { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.25; font-weight: 700; }
.pill { display: inline-block; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 3px 7px; white-space: nowrap; animation: wfShow .4s ease-out var(--d) both; }
.pill.ok { background: var(--success-tint); color: var(--success); }
.pill.no { background: var(--stone); color: #4A504B; }
.pill.go { background: var(--accent-tint); color: var(--accent-ink); }
.dot { flex: none; width: 18px; height: 18px; border-radius: 999px; border: 2px solid var(--hairline); display: grid; place-items: center; animation: wfCheck .4s ease-out var(--d) forwards; }
.dot svg { width: 10px; height: 10px; opacity: 0; animation: wfShow .3s ease-out var(--d) forwards; }
@keyframes wfCheck { to { background: var(--fresh-strong); border-color: var(--fresh-strong); } }
@keyframes wfShow { from { opacity: 0; } to { opacity: 1; } }
.app-tabs { margin-top: 10px; background: var(--surface); border-top: 1px solid var(--hairline); padding: 8px 10px 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.app-tabs span { display: grid; justify-items: center; gap: 2px; font-size: 9.5px; font-weight: 700; color: var(--ink-muted); }
.app-tabs span.on { color: var(--anchor); }
.app-tabs svg { width: 16px; height: 16px; }

/* ---------- Sections ---------- */
.band { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.section .wrap { padding-top: 88px; padding-bottom: 88px; }
.section.tight .wrap { padding-top: 72px; padding-bottom: 72px; }

/* The Problem: map and stats */
.problem-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; margin-top: 36px; }
.map-col { flex: 1 1 480px; min-width: 0; }
.stats-col { flex: 1 1 440px; min-width: 0; }
.map-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.natbtn {
  min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--anchor); background: var(--surface); color: var(--anchor);
  font: 700 15px/1 var(--sans); cursor: pointer; transition: background-color .15s, color .15s;
}
.natbtn[aria-pressed="true"] { background: var(--anchor); color: var(--on-anchor); }
.natbtn:hover { box-shadow: 0 0 0 2px var(--fresh-tint); }
.state-select { display: none; }
.state-select label { font-weight: 700; font-size: 15px; }
.state-select select {
  margin-left: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border-control); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink); font: 400 16px/1.2 var(--sans);
}
.tilemap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.tile {
  aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 4px;
  background: var(--fresh-tint); color: var(--anchor);
  font: 700 13px/1 var(--sans); cursor: pointer;
  transition: background-color .12s, color .12s, transform .12s;
}
.tile:hover { background: #d4e8db; transform: translateY(-1px); }
.tile[aria-pressed="true"] { background: var(--anchor); color: var(--on-anchor); }
.tile:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; position: relative; z-index: 1; }
.map-hint { margin-top: 12px; font-size: 13px; color: var(--ink-muted); }

.place {
  display: flex; align-items: center; gap: 16px; background: var(--anchor); color: var(--surface);
  border-radius: var(--radius-lg); padding: 16px 20px; margin-bottom: 20px;
}
.flag {
  flex: none; width: 60px; height: 40px; border-radius: 3px; overflow: hidden; background: var(--fresh-deep);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35);
}
.flag img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s; }
.flag img.loading { opacity: 0; }
.place-kicker { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-glow); }
.place-name { display: block; font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.15; font-variant-ligatures: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px 20px; }
.stat { border-top: 2px solid var(--anchor); padding-top: 12px; }
.stat .lbl { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); }
.stat .big { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 40px; color: var(--anchor); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; transition: opacity .2s; }
.stat .txt { margin: 8px 0 4px; font-size: 15px; line-height: 1.45; }
.stat .src { margin: 0; font-size: 13px; color: var(--ink-muted); line-height: 1.4; }
.stats.swap .big, .stats.swap .txt, .stats.swap .src { opacity: 0; }
.stats .big, .stats .txt, .stats .src { transition: opacity .18s; }
.closing { margin-top: 40px; font-family: var(--serif); font-size: clamp(20px, 2vw, 24px); color: var(--anchor); max-width: 40ch; line-height: 1.35; font-variant-ligatures: none; font-weight: 600; }

/* The Plan: constellation */
.plan .wrap { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.plan-copy { flex: 1 1 380px; min-width: 0; }
.plan-list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.plan-list li { display: flex; gap: 12px; }
.plan-list li::before { content: ""; flex: none; width: 12px; height: 12px; margin-top: 8px; border-radius: 999px; background: var(--accent); }
.plan-list li:nth-child(2)::before { background: var(--fresh-strong); }
.plan-list li:nth-child(3)::before { background: var(--fresh); }
.plan-list li:nth-child(4)::before { background: transparent; border: 2px solid var(--fresh-strong); }
.constellation { flex: 1 1 520px; min-width: 0; max-width: 100%; height: auto; }
.constellation text { font-family: var(--sans); font-size: 17px; fill: var(--ink); }
.constellation text.lead { font-weight: 700; fill: var(--accent-ink); }
.ray { stroke: var(--hairline); stroke-width: 1.5; fill: none; }
.js .ray { stroke-dasharray: 240; stroke-dashoffset: 240; }
.ray.lead { stroke: var(--accent); stroke-width: 2.5; }
.ray.next { stroke: var(--fresh-strong); }
.js .node { opacity: 0; }
.in-view .ray { animation: wfRay 1.2s ease-out var(--d) both; }
.in-view .node { animation: wfShow .6s ease-out var(--d) both; }
.ray:nth-child(1) { --d: .3s; } .ray:nth-child(2) { --d: .9s; } .ray:nth-child(3) { --d: 1s; } .ray:nth-child(4) { --d: 1.3s; }
.ray:nth-child(5) { --d: 1.4s; } .ray:nth-child(6) { --d: 1.5s; } .ray:nth-child(7) { --d: 1.6s; } .ray:nth-child(8) { --d: 1.7s; }
.ray:nth-child(9) { --d: 1.8s; } .ray:nth-child(10) { --d: 1.9s; } .ray:nth-child(11) { --d: 2s; } .ray:nth-child(12) { --d: 2.1s; }
.node:nth-child(1) { --d: .6s; } .node:nth-child(2) { --d: 1.2s; } .node:nth-child(3) { --d: 1.3s; } .node:nth-child(4) { --d: 1.5s; }
.node:nth-child(5) { --d: 1.6s; } .node:nth-child(6) { --d: 1.7s; } .node:nth-child(7) { --d: 1.8s; } .node:nth-child(8) { --d: 1.9s; }
.node:nth-child(9) { --d: 2s; } .node:nth-child(10) { --d: 2.1s; } .node:nth-child(11) { --d: 2.2s; } .node:nth-child(12) { --d: 2.3s; }
@keyframes wfRay { to { stroke-dashoffset: 0; } }

/* How it will work */
.steps { margin: 40px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 24px 16px; counter-reset: step; }
.steps li { border-top: 3px solid var(--fresh-strong); padding-top: 14px; counter-increment: step; }
.steps li:first-child { border-top-color: var(--accent); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--ink-muted); margin-bottom: 8px; }
.steps h3 { font-size: 20px; line-height: 1.25; }
.steps p { margin-top: 6px; font-size: 15px; }
.js .reveal .steps li { opacity: 0; transform: translateY(10px); }
.reveal.in-view .steps li { animation: wfRise .6s var(--ease-out) both; animation-delay: calc(var(--i) * 90ms); }
.steps li:nth-child(1) { --i: 0; } .steps li:nth-child(2) { --i: 1; } .steps li:nth-child(3) { --i: 2; }
.steps li:nth-child(4) { --i: 3; } .steps li:nth-child(5) { --i: 4; } .steps li:nth-child(6) { --i: 5; }
@keyframes wfRise { to { opacity: 1; transform: none; } }

/* Read More */
.cards { margin-top: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 20px;
  transition: transform .18s var(--ease-out), box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: #c9c5b8; color: var(--ink); }
.card .kind { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.card h3 { font-size: 20px; line-height: 1.25; }
.card p { font-size: 15px; }
.card .open { margin-top: auto; padding-top: 6px; font-size: 14px; font-weight: 700; color: var(--accent-ink); }
.card:hover .open { text-decoration: underline; }
.more-note { margin-top: 16px; font-size: 14px; color: var(--ink-muted); }
.more-note a { font-weight: 700; }

/* Support */
.support { background: var(--fresh-tint); }
.support .wrap { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 96px; padding-bottom: 96px; }
.support-copy { flex: 1 1 400px; min-width: 0; }
.support-copy p { margin-top: 16px; }
.support-copy .alt { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(15, 61, 46, .18); font-size: 15px; }
.support-copy .alt a { font-weight: 700; }
.form {
  flex: 1 1 480px; min-width: 0; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius-lg);
  padding: 32px; display: grid; gap: 18px;
}
.field { display: grid; gap: 6px; }
.field > span { font-weight: 700; }
.field .hint { font-weight: 400; font-size: 14px; color: var(--ink-muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 12px; border: 1px solid var(--border-control); border-radius: var(--radius-md);
  background: var(--surface); color: var(--ink); font: 400 17px/1.4 var(--sans);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--critical); }
.err { font-size: 14px; color: var(--critical); font-weight: 700; display: none; }
.field.bad .err { display: block; }
.hidden { display: none !important; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 700; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--border-control); border-radius: 999px; cursor: pointer; background: var(--surface);
  transition: background-color .12s, border-color .12s;
}
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.chip .box {
  width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--border-control); display: grid; place-items: center; flex: none;
  background: var(--surface);
}
.chip .box svg { width: 11px; height: 11px; opacity: 0; }
.chip:hover { background: var(--paper); }
.chip:has(input:checked) { background: var(--fresh-tint); border-color: var(--anchor); }
.chip:has(input:checked) .box { background: var(--anchor); border-color: var(--anchor); }
.chip:has(input:checked) .box svg { opacity: 1; }
.chip:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.pot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.form-foot { font-size: 13px; color: var(--ink-muted); }
.form-status { display: none; border-radius: var(--radius-md); padding: 14px 16px; font-size: 15px; }
.form-status.show { display: block; }
.form-status.err { background: var(--critical-tint); color: var(--critical); font-weight: 400; }
.form-status.err b { font-weight: 700; }
.form-status.info { background: var(--accent-tint); color: var(--ink); }
.form-status a { font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: 32px 0 40px; font-size: 14px; color: var(--ink-muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--anchor); font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer .legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }

/* ---------- Inner pages ---------- */
.page .wrap { max-width: 900px; padding-top: 48px; padding-bottom: 96px; }
.page h1 { font-size: clamp(34px, 4vw, 44px); line-height: 1.15; margin-bottom: 12px; text-wrap: balance; }
.page h2 { font-size: 28px; margin: 56px 0 16px; }
.page p + p { margin-top: 16px; }
.page .lede { font-size: 19px; }
.src-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.src-list li { background: var(--surface); border: 1px solid var(--hairline); border-radius: 8px; padding: 20px 24px; scroll-margin-top: 24px; }
.src-list li:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.src-list .who { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.src-list h3 { margin: 6px 0; font-size: 21px; line-height: 1.3; }
.src-list h3 a { color: var(--anchor); display: inline-block; padding: 9px 0; margin: -9px 0; }
.src-list h3 a:hover { color: var(--accent-ink); }
.src-list .use { margin: 0; font-size: 15px; }
.page .back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: none; margin-top: 32px; }
.page .back:hover { text-decoration: underline; }
.thanks .wrap { padding-top: 72px; padding-bottom: 120px; }
.thanks .twinkle { width: 56px; height: 56px; margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .section .wrap { padding-top: 64px; padding-bottom: 64px; }
  .support .wrap { padding-top: 64px; padding-bottom: 64px; }
}
@media (max-width: 700px) {
  .state-select { display: block; }
  .map-hint { display: none; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .site-header .wrap { gap: 8px; }
  .site-nav { width: 100%; justify-content: space-between; gap: 4px 10px; font-size: 15px; }
  .site-nav .btn { margin-left: 0; padding: 10px 14px; font-size: 15px; }
  .hero .wrap { padding-top: 24px; padding-bottom: 56px; gap: 24px; }
  .art { height: 440px; overflow: hidden; }
  .art-in { transform: scale(.72); transform-origin: 50% 0; }
  .tile { font-size: 10.5px; border-radius: 3px; }
  .tilemap { gap: 3px; }
  .form { padding: 20px; }
  .form .btn { justify-self: stretch; }
  .constellation text { font-size: 23px; }
  .place-name { font-size: 24px; }
  .stat .big { font-size: 36px; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
  .tile { font-size: 9px; }
}

/* ---------- Reduced motion: everything lands in its final state ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .sheet { opacity: 1; transform: translate(var(--x), var(--y)) rotate(var(--r)); animation: none; }
  .sheet::after { animation: none; opacity: .55; }
  .phone { animation: none; opacity: 1; transform: none; }
  .bar { animation: none; width: 100%; }
  .dot { animation: none; background: var(--fresh-strong); border-color: var(--fresh-strong); }
  .dot svg { animation: none; opacity: 1; }
  .pill { animation: none; opacity: 1; }
  .glint { animation: none; }
  .mote { display: none; }
  .ul .line path { animation: none; stroke-dashoffset: 0; }
  .js .ray, .in-view .ray { animation: none; stroke-dashoffset: 0; }
  .js .node, .in-view .node { animation: none; opacity: 1; }
  .js .reveal .steps li, .reveal.in-view .steps li { animation: none; opacity: 1; transform: none; }
  .tile:hover, .card:hover { transform: none; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .art, .form, .skip { display: none; }
  body { background: #fff; }
}

/* ---------- v1.1: overview box, consent, Message to the Founder, the overview gate ---------- */
.overview-box { display: flex; gap: 16px; align-items: center; background: var(--surface); border-radius: var(--radius-lg); padding: 20px; margin-top: 28px; }
.overview-box .doc { flex: none; width: 72px; height: 94px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 3px; padding: 8px; }
.overview-box .doc i { display: block; height: 4px; margin-top: 4px; background: var(--stone); border-radius: 3px; }
.overview-box .doc i.t { height: 6px; width: 70%; background: var(--anchor); margin: 0 0 8px; }
.overview-box .doc i.s { width: 60%; }
.overview-box h3 { font-size: 20px; line-height: 1.25; }
.overview-box p { margin: 2px 0 6px; font-size: 15px; }
.linkbtn { background: none; border: 0; padding: 10px 0; margin: -10px 0; min-height: 44px; font: 700 17px/1.4 var(--sans); color: var(--accent-ink); text-decoration: underline; text-underline-offset: .14em; cursor: pointer; }
.linkbtn:hover { color: var(--anchor); }
.support-copy .alt { margin-top: 24px; }

.consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; line-height: 1.45; padding: 4px 0; }
.consent input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.consent .box { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 4px; border: 2px solid var(--border-control); background: var(--surface); display: grid; place-items: center; }
.consent .box svg { width: 12px; height: 12px; opacity: 0; }
.consent:has(input:checked) .box { background: var(--anchor); border-color: var(--anchor); }
.consent:has(input:checked) .box svg { opacity: 1; }
.consent:has(input:focus-visible) .box { outline: 2px solid var(--focus); outline-offset: 2px; }

.gate { border: 0; border-radius: var(--radius-lg); padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px rgba(20, 31, 26, .28); }
.gate::backdrop { background: rgba(15, 61, 46, .55); }
.gate[open] { animation: wfGate .22s var(--ease-out); }
@keyframes wfGate { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.gate-form { position: relative; display: grid; gap: 16px; padding: 32px; }
.gate-form h2 { font-size: clamp(24px, 3vw, 30px); line-height: 1.15; text-wrap: balance; padding-right: 36px; }
.gate-form .eyebrow { margin-bottom: 0; }
.gate-intro { font-size: 15px; color: var(--ink-muted); }
.gate-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--anchor); font-size: 28px; line-height: 1; cursor: pointer; }
.gate-close:hover { background: var(--paper); }
.gate-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gate.done .gate-form > .field, .gate.done .consent, .gate.done .gate-intro, .gate.done #g-send { display: none; }
.form-status.ok { background: var(--success-tint); color: var(--ink); }
@media (max-width: 640px) {
  .gate-form { padding: 24px 20px; }
  .overview-box { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .gate[open] { animation: none; } }
