/* demo.jesedpty.com — page + phone styles. Phone tokens are the app's own
   (apps/mobile/lib/theme/colors.ts); page tokens extend the same palette. */
:root {
  --bg: #FAF9F6;
  --bg-alt: #F3F1EA;
  --surface: #FFFFFF;
  --ink: #1B2420;
  --ink-2: #5C6A61;
  --ink-3: #6F7C74;
  --line: #E8E5DE;
  --green: #123E32;
  --green-2: #1D5444;
  --sage: #65746D;
  --accent: #E77C36;
  --accent-ink: #A9521A;
  --radius: 20px;
  --max: 1160px;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow-page { font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 18px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.015em; line-height: 1.08; margin: 0; color: var(--ink); }
h2.sec { font-size: clamp(34px, 4.4vw, 52px); max-width: 18ch; }
.lede { font-size: 20px; color: var(--ink-2); max-width: 60ch; margin: 20px 0 0; }
section { padding: 112px 0; border-top: 1px solid var(--line); }
section.tight { padding: 72px 0; }

/* ── nav ── */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(250,249,246,.88); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; color: var(--ink); font-weight: 650; letter-spacing: .04em; font-size: 15px; }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.topbar nav { margin-left: auto; display: flex; gap: 26px; }
.topbar nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.topbar nav a:hover { color: var(--ink); }
.topbar .cta-sm { margin-left: 8px; }
@media (max-width: 860px) { .topbar nav { display: none; } .topbar .cta-sm { margin-left: auto; } }

/* ── buttons ── */
.btnp { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; height: 52px; padding: 0 24px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, background .15s, box-shadow .15s; }
.btnp:hover { transform: translateY(-1px); }
.btnp.primary { background: var(--green); color: #fff; box-shadow: 0 6px 20px -8px rgba(18,62,50,.55); }
.btnp.primary:hover { background: var(--green-2); }
.btnp.ghost { background: transparent; color: var(--ink); border-color: #D6D2C7; }
.btnp.ghost:hover { background: var(--surface); }
.btnp.small { height: 40px; padding: 0 16px; font-size: 14px; }
.btnp svg { width: 18px; height: 18px; fill: currentColor; }

/* ── hero ── */
.hero { padding: 64px 0 104px; border-top: 0; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero h1 { white-space: nowrap; font-size: clamp(54px, 7.4vw, 104px); line-height: .94; letter-spacing: -0.035em; }
.byline { font: 500 18px/1.4 var(--sans); color: var(--ink-2); margin: 22px 0 0; }
.byline b { color: var(--ink); font-weight: 650; }
.hero .lede { margin-top: 20px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.proof { display: flex; flex-wrap: wrap; gap: 10px; margin: 36px 0 0; padding: 0; list-style: none; }
.proof li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; color: var(--ink-2); }
.proof li b { color: var(--ink); font-weight: 600; }
.proof .pulse { width: 8px; height: 8px; border-radius: 50%; background: #C98A1E; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(201,138,30,.45); } 70% { box-shadow: 0 0 0 8px rgba(201,138,30,0); } 100% { box-shadow: 0 0 0 0 rgba(201,138,30,0); } }
.hero-shots { position: relative; height: 640px; margin: 0; }
.hero-shots img { position: absolute; width: 54%; height: auto; border-radius: 26px; box-shadow: 0 40px 80px -30px rgba(18,62,50,.5), 0 0 0 1px rgba(0,0,0,.04); background: var(--green); }
.hero-shots .s1 { left: 0; top: 70px; transform: rotate(-5deg); }
.hero-shots .s2 { left: 23%; top: 0; z-index: 2; }
.hero-shots .s3 { right: 0; top: 90px; transform: rotate(5deg); }
.hero-shots figcaption { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--ink-3); }
/* Below 980px the screenshots scale with the column: each is 54% wide at 1100×2390, and the
   lowest sits 90px down, so the box is sized from the column width, plus room for the caption. */
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; } .hero-shots { --w: min(520px, calc(100vw - 48px)); height: calc(var(--w) * 1.18 + 150px); max-width: 520px; width: 100%; margin: 16px auto 0; } }
@media (max-width: 560px) { .hero { padding-top: 36px; } }

/* ── 60-second overview ── */
.glance { background: var(--green); color: #EDEBE4; border-radius: 28px; padding: 44px; }
.glance-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.glance-kicker { margin: 0 0 10px; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #F2B58A; }
.glance h2 { color: #fff; font-size: clamp(28px, 3.2vw, 38px); }
.glance .btnp.ghost { color: #fff; border-color: rgba(255,255,255,.3); flex: none; }
.glance .btnp.ghost:hover { background: rgba(255,255,255,.08); }
.glance-list { margin: 32px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(255,255,255,.14); border-radius: 18px; overflow: hidden; }
.glance-list > div { background: var(--green); padding: 22px 20px 4px 0; }
.glance-list > div + div { padding-left: 20px; }
.glance-list dt { font: 600 15px/1.3 var(--sans); color: #fff; }
.glance-list dt span { display: block; font: 500 13px/1 var(--mono); color: #F2B58A; margin-bottom: 10px; }
.glance-list dd { margin: 8px 0 18px; font-size: 15px; line-height: 1.55; color: #D5DCD6; }
.glance-list a { color: #fff; }
.glance .meta { margin: 22px 0 0; font-size: 14px; color: #B3C1B9; }
@media (max-width: 1080px) { .glance-list { grid-template-columns: 1fr 1fr; } .glance-list > div, .glance-list > div + div { padding: 20px 20px 4px; } .glance-list > div:last-child { grid-column: 1 / -1; } }
@media (max-width: 760px) { .glance { padding: 30px 22px; } .glance-head { flex-direction: column; } .glance-list { grid-template-columns: 1fr; } .glance-list > div, .glance-list > div + div { padding: 18px 2px 2px; } }

/* ── problem / solution ── */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 48px; }
.two p { margin: 0 0 16px; color: var(--ink-2); font-size: 18px; }
.two p b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; gap: 8px; } }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 56px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.feature .fi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #E9EEEA; color: var(--green); margin-bottom: 18px; }
.feature .fi svg { width: 22px; height: 22px; fill: currentColor; }
.feature h3 { font: 600 17px/1.3 var(--sans); letter-spacing: 0; }
.feature p { margin: 8px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.55; }
.feature .who { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sage); }
@media (max-width: 980px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ── demo stage ── */
#demo { background: var(--bg-alt); }
.demo-grid { display: grid; grid-template-columns: 1fr auto; gap: 64px; align-items: start; margin-top: 48px; }
.demo-side { position: sticky; top: 96px; }
.demo-label { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #FCEBDD; color: #7E3C10; font-size: 13px; font-weight: 600; }
.tasks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; counter-reset: task; }
.tasks li { counter-increment: task; }
.tasks button { width: 100%; text-align: left; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s, transform .15s; }
.tasks button:hover { border-color: #C9C4B6; transform: translateX(2px); }
.tasks button::before { content: counter(task); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #E9EEEA; color: var(--green); font-weight: 650; font-size: 14px; }
.tasks b { display: block; font-size: 15px; font-weight: 600; }
.tasks small { display: block; color: var(--ink-2); font-size: 14px; line-height: 1.45; margin-top: 2px; }
.lang-switch { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; align-items: center; }
.lang-switch span { font-size: 14px; color: var(--ink-2); margin-right: 4px; }
.lang-switch button { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid #D6D2C7; background: var(--surface); font: 600 14px var(--sans); color: var(--ink); cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }
.safety { margin-top: 22px; font-size: 14px; color: var(--ink-2); display: flex; gap: 10px; align-items: flex-start; }
.safety svg { flex: none; width: 18px; height: 18px; margin-top: 2px; fill: var(--green); }
.tour-bar { display: none; margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: var(--green); color: #fff; align-items: center; gap: 14px; }
.tour-bar.on { display: flex; }
.tour-bar p { margin: 0; font-size: 15px; flex: 1; }
.tour-bar .step { font-size: 12px; opacity: .75; display: block; letter-spacing: .06em; text-transform: uppercase; }
.tour-bar button { background: rgba(255,255,255,.16); color: #fff; border: 0; height: 34px; padding: 0 14px; border-radius: 999px; font: 600 13px var(--sans); cursor: pointer; flex: none; }
@media (max-width: 980px) { .demo-grid { grid-template-columns: 1fr; gap: 32px; } .demo-side { position: static; order: 2; } .phone-stage { order: 1; } .tour-bar { position: sticky; bottom: 12px; z-index: 30; } }

/* ── phone frame ── */
.phone-stage { display: flex; flex-direction: column; align-items: center; width: 414px; }
@media (max-width: 980px) { .phone-stage { width: 100%; } }
.phone-fit { position: relative; }
.phone-shell { position: absolute; top: 0; left: 0; width: 414px; height: 868px; transform-origin: top left; border-radius: 64px; background: #0E1411; padding: 12px; box-shadow: 0 0 0 2px #2A332E inset, 0 50px 100px -40px rgba(18,62,50,.55), 0 30px 60px -30px rgba(0,0,0,.35); }
#phone { position: relative; width: 390px; height: 844px; border-radius: 52px; overflow: hidden; isolation: isolate; }
.demo-caption { margin-top: 18px; font-size: 13px; color: var(--ink-3); text-align: center; max-width: 360px; }

/* ═════════ inside the phone: the app's own tokens ═════════ */
#phone {
  --p-bg: #FBFAF7; --p-surface: #FFFFFF; --p-alt: #F3F1EA; --p-border: #E7E3D8; --p-text: #1B2420; --p-text2: #5C6A61;
  --p-brand: #123B32; --p-icon: #123B32; --p-accent: #D97B3F; --p-success: #2E7D4F; --p-warning: #B8862B; --p-danger: #B3413A; --p-info: #2E6F8E;
  --p-tint: rgba(18,59,50,.08);
  background: var(--p-bg); color: var(--p-text);
  font: 400 16px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  letter-spacing: -0.01em;
}
#phone[data-theme="dark"] {
  --p-bg: #0F1512; --p-surface: #171E1A; --p-alt: #1E2722; --p-border: #2A332E; --p-text: #EEF2EF; --p-text2: #A3B0A8;
  --p-brand: #1F5A4A; --p-icon: #8CC9AE; --p-tint: rgba(140,201,174,.12);
}
:where(#phone) :where(button, input, textarea) { font: inherit; color: inherit; letter-spacing: inherit; }
:where(#phone) :where(button) { background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; -webkit-tap-highlight-color: transparent; }
#phone button:active { opacity: .7; }
#phone :focus-visible { outline: 2px solid var(--p-accent); outline-offset: 2px; }
.ic { display: inline-flex; flex: none; align-items: center; justify-content: center; color: inherit; }
.ic svg { width: 100%; height: 100%; fill: currentColor; }
.ic.muted { color: var(--p-text2); }
[dir="rtl"] .ic.flip-rtl svg { transform: scaleX(-1); }

.status-bar { position: absolute; top: 0; left: 0; right: 0; height: 54px; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 8px 34px 0 50px; font: 600 17px -apple-system, "SF Pro Text", system-ui, sans-serif; background: var(--p-bg); color: var(--p-text); direction: ltr; }
.island { position: absolute; left: 50%; top: 11px; transform: translateX(-50%); width: 124px; height: 36px; border-radius: 20px; background: #000; }
.sb-icons { display: flex; gap: 6px; align-items: center; }
.sb-icons svg { display: block; fill: currentColor; }
.demo-chip { position: absolute; top: 19px; left: 93px; z-index: 6; font: 700 9px/1 system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #7E3C10; background: #FCEBDD; padding: 4px 6px; border-radius: 999px; pointer-events: none; }

#phone-screen { position: absolute; top: 54px; left: 0; right: 0; bottom: 83px; overflow: hidden; }
.screen { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; background: var(--p-bg); scrollbar-width: none; overscroll-behavior: contain; }
.screen::-webkit-scrollbar { display: none; }
.in-push { animation: inPush .34s cubic-bezier(.2,.8,.2,1) both; z-index: 2; box-shadow: -10px 0 30px rgba(0,0,0,.08); }
.out-push { animation: outPush .34s cubic-bezier(.2,.8,.2,1) both; }
.in-pop { animation: inPop .34s cubic-bezier(.2,.8,.2,1) both; }
.out-pop { animation: outPop .34s cubic-bezier(.2,.8,.2,1) both; z-index: 2; }
.in-fade { animation: fadeIn .22s ease both; z-index: 2; }
.out-fade { animation: fadeOut .18s ease both; }
@keyframes inPush { from { transform: translateX(100%); } }
@keyframes outPush { to { transform: translateX(-28%); } }
@keyframes inPop { from { transform: translateX(-28%); } }
@keyframes outPop { to { transform: translateX(100%); } }
[dir="rtl"] .in-push { animation-name: inPushR; } [dir="rtl"] .out-push { animation-name: outPushR; } [dir="rtl"] .in-pop { animation-name: inPopR; } [dir="rtl"] .out-pop { animation-name: outPopR; }
@keyframes inPushR { from { transform: translateX(-100%); } }
@keyframes outPushR { to { transform: translateX(28%); } }
@keyframes inPopR { from { transform: translateX(28%); } }
@keyframes outPopR { to { transform: translateX(-100%); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } }
@keyframes fadeOut { to { opacity: 0; } }

.pad { padding: 8px 24px 36px; }
.nav-header { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 12px; background: var(--p-bg); }
.nav-title { flex: 1; text-align: center; font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 44px; height: 44px; display: inline-flex !important; align-items: center; justify-content: center; border-radius: 22px; color: var(--p-icon); position: relative; }
.icon-btn-spacer { width: 44px; }
.hdr-actions { display: flex; }
.bell .dot { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--p-accent); border: 2px solid var(--p-bg); }

.home-top { display: flex; align-items: center; justify-content: space-between; margin: 4px -10px 6px 0; }
[dir="rtl"] .home-top { margin: 4px 0 6px -10px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; letter-spacing: .02em; font-size: 17px; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--p-brand); color: var(--p-accent); display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.greet { margin: 8px 0 2px; color: var(--p-text2); font-size: 15px; }
.display, .title-xl, .title-lg, .section-head h3, .org-name h2, .sub-h { font-family: inherit; color: var(--p-text); }
.display { font-size: 30px; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 18px; }
.title-xl { font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; margin: 6px 0 16px; }
.title-lg { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin: 18px 0 8px; text-align: center; }
.eyebrow { margin: 6px 0 0; color: var(--p-accent); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.muted-p { color: var(--p-text2); font-size: 15px; margin: -6px 0 18px; }
.center-col .muted-p { margin: 0 0 18px; text-align: center; }
.caps { display: block; margin: 22px 8px 8px; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--p-text2); }
.hint { font-size: 13px; color: var(--p-text2); margin: 8px 0 14px; line-height: 1.45; }
.hint.center { text-align: center; margin-top: 40px; }

.actions3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.action-card { display: flex !important; flex-direction: column; align-items: center; text-align: center !important; gap: 6px; padding: 14px 6px; border: 1px solid var(--p-border) !important; border-radius: 16px; background: var(--p-surface) !important; }
.action-card b { font-size: 14px; font-weight: 600; }
.action-card span:last-child { font-size: 12px; color: var(--p-text2); line-height: 1.35; }
.ic.circle { width: 44px !important; height: 44px !important; border-radius: 50%; background: var(--p-tint); color: var(--p-icon); padding: 11px; }
.ic.square { width: 44px !important; height: 44px !important; border-radius: 12px; background: var(--p-tint); color: var(--p-icon); padding: 11px; }
.ic.tile { width: 52px !important; height: 52px !important; border-radius: 14px; padding: 13px; }
.ic.tile.green { background: var(--p-tint); color: var(--p-icon); }
.ic.tile.amber { background: rgba(184,134,43,.12); color: #A0711A; }
.ic.tile.rose { background: rgba(190,60,120,.10); color: #B0397A; }
.ic.tile.teal { background: rgba(46,125,120,.12); color: #2B7D78; }
.ic.tile-sm { width: 36px !important; height: 36px !important; border-radius: 12px; background: var(--p-tint); color: var(--p-icon); padding: 9px; }

.search-box { display: flex !important; align-items: center; gap: 12px; width: 100%; height: 52px; padding: 0 16px; margin: 16px 0 6px; background: var(--p-surface) !important; border: 1px solid var(--p-border) !important; border-radius: 14px; color: var(--p-text2) !important; font-size: 16px; }
.search-box input { flex: 1; border: 0; outline: 0; background: transparent; height: 100%; min-width: 0; color: var(--p-text) !important; }
.search-box input::placeholder { color: var(--p-text2); }
.search-box.input:focus-within { border-color: var(--p-icon) !important; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; }
.section-head h3 { font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.section-head.caps-head { margin: 18px 0 0; }
.section-head .caps { margin: 0 8px 8px; }
.count-txt { color: var(--p-accent); font-weight: 600; font-size: 14px; margin: 0 8px 8px; }
.link { color: var(--p-accent) !important; font-weight: 600; font-size: 15px; }
.link.end { display: block; margin: 0 0 12px auto; }
[dir="rtl"] .link.end { margin: 0 auto 12px 0; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cat-card { display: flex !important; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; min-height: 112px; background: var(--p-surface) !important; border: 1px solid var(--p-border) !important; border-radius: 16px; font-size: 15px; font-weight: 500; text-align: start !important; }
.cat-card small { font-size: 12px; color: var(--p-text2); margin-top: -6px; }
.svc-card { display: flex !important; flex-direction: column; align-items: center; text-align: center !important; gap: 8px; padding: 16px 10px; background: var(--p-surface) !important; border: 1px solid var(--p-border) !important; border-radius: 16px; }
.svc-card b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.pill { padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(46,125,79,.12); color: var(--p-success); }
.pill.fee { background: rgba(217,123,63,.14); color: #A45622; }

.card { background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 18px; }
.card.list { overflow: hidden; }
.list-row { display: flex !important; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-bottom: 1px solid var(--p-border) !important; text-align: start !important; }
.list-row:last-child { border-bottom: 0 !important; }
.list-row.menu { padding: 12px 16px; }
.list-row.static.unread { background: var(--p-tint); }
.list-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.row-title { font-weight: 650; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.row-title.plain { font-weight: 400; }
.row-sub { color: var(--p-text2); font-size: 13.5px; line-height: 1.4; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.org-logo { flex: none; display: inline-grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--c) 12%, var(--p-surface)); color: var(--c); font-weight: 700; letter-spacing: .02em; border: 1px solid var(--p-border); }
#phone[data-theme="dark"] .org-logo { color: color-mix(in srgb, var(--c) 50%, #fff); }
.verified { color: var(--p-success); display: inline-flex; }

.campaign { display: block !important; width: 100%; padding: 16px; background: var(--p-surface) !important; border: 1px solid var(--p-border) !important; border-radius: 18px; margin-bottom: 12px; text-align: start !important; }
.campaign-top { display: flex; gap: 12px; align-items: center; }
.campaign-top > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.campaign-top b { font-size: 15px; line-height: 1.3; }
.campaign-top small { color: var(--p-text2); font-size: 13px; }
.bar { display: block; height: 8px; border-radius: 8px; background: var(--p-alt); margin: 14px 0 10px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--p-accent); border-radius: 8px; }
.campaign-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--p-text2); }
.campaign-foot b { color: var(--p-text); font-weight: 600; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tone-success { background: rgba(46,125,79,.12); color: #256B42; }
.tone-warning { background: rgba(184,134,43,.14); color: #7F5A10; }
.tone-danger { background: rgba(179,65,58,.12); color: #A0362F; }
.tone-info { background: rgba(46,111,142,.12); color: #265E79; }
.tone-neutral { background: var(--p-alt); color: var(--p-text2); }
#phone[data-theme="dark"] .tone-warning { color: #E0B55E; }
#phone[data-theme="dark"] .tone-info { color: #7DB8D4; }
#phone[data-theme="dark"] .tone-success { color: #7CC79A; }
#phone[data-theme="dark"] .tone-danger { color: #E58A84; }

.segmented { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; background: var(--p-alt); border-radius: 14px; margin-bottom: 4px; }
.seg { height: 38px; border-radius: 10px; font-size: 15px; font-weight: 500 !important; color: var(--p-text2) !important; text-align: center !important; }
.seg.on { background: var(--p-surface) !important; color: var(--p-text) !important; box-shadow: 0 1px 3px rgba(0,0,0,.08); font-weight: 600 !important; }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 10px -24px 4px; padding: 4px 24px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 6px 0 18px; padding: 0; }
.chips.three { display: grid; grid-template-columns: repeat(3, 1fr); margin: 6px 0 14px; padding: 0; overflow: visible; }
.chip { flex: none; height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--p-border) !important; background: var(--p-surface) !important; font-size: 15px; font-weight: 500; white-space: nowrap; display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; }
.chips.three .chip { padding: 0 6px; border: 0 !important; background: var(--p-alt) !important; border-radius: 12px; font-size: 14px; height: 44px; }
.chip.on, .chips.three .chip.on { background: var(--p-brand) !important; color: #fff !important; border-color: var(--p-brand) !important; }
.count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--p-accent); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.count.accent { margin-inline-end: 8px; }

.cover { height: 150px; border-radius: 18px; background: color-mix(in srgb, var(--c) 14%, var(--p-surface)); border: 1px solid var(--p-border); display: grid; place-items: center; }
.cover span { font-size: 56px; font-weight: 700; line-height: 1; color: color-mix(in srgb, var(--c) 70%, transparent); letter-spacing: .04em; }
.org-head { margin: -36px 0 0 18px; }
[dir="rtl"] .org-head { margin: -36px 18px 0 0; }
.org-head .org-logo { border: 4px solid var(--p-bg); box-sizing: content-box; }
.org-name { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 16px; }
.org-name h2 { font-size: 22px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.btn { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 14px; border-radius: 14px; font-weight: 600; font-size: 16px; text-align: center !important; }
.btn.primary { background: var(--p-brand) !important; color: #fff !important; }
.btn.accent { background: #C96A2E !important; color: #fff !important; }
.btn.secondary { background: var(--p-surface) !important; border: 1px solid var(--p-border) !important; color: var(--p-icon) !important; }
.btn.danger { background: rgba(179,65,58,.08) !important; color: var(--p-danger) !important; margin-top: 24px; }
#phone[data-theme="dark"] .btn.danger { color: #E58A84 !important; }
.btn.wide { width: 100%; margin-top: 14px; }
.about { padding: 18px; margin-bottom: 4px; }
.about b { font-weight: 600; }
.about p { margin: 6px 0 8px; color: var(--p-text2); font-size: 15px; }

.progress { height: 6px; border-radius: 6px; background: var(--p-alt); margin: -2px 0 16px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--p-brand); border-radius: 6px; transition: width .3s; }
#phone[data-theme="dark"] .progress span { background: var(--p-icon); }
.row-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 16px; }
.row-card > span { display: flex; flex-direction: column; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; font-size: 14px; color: var(--p-text2); }
.field input, .field textarea { border: 1px solid var(--p-border); border-radius: 12px; background: var(--p-surface); padding: 12px 14px; outline: 0; resize: none; color: var(--p-text) !important; font-size: 16px !important; }
.field input:focus, .field textarea:focus { border-color: var(--p-icon); }
.field-label { font-size: 15px; margin: 16px 0 8px; }
.field-label.strong { font-weight: 600; margin-bottom: 0; }
.sub-h { font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.kv { padding: 4px 16px; margin-bottom: 14px; }
.kv > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--p-border); font-size: 14px; }
.kv > div:last-child { border-bottom: 0; }
.kv span { color: var(--p-text2); }
.kv b { font-weight: 600; text-align: end; }
.demo-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: #7E3C10; background: #FCEBDD; padding: 10px 12px; border-radius: 12px; margin: 14px 0 0; line-height: 1.4; }
#phone[data-theme="dark"] .demo-note { background: #3A2617; color: #F2C29F; }

.recipient { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; }
.recipient > span { display: flex; flex-direction: column; }
.recipient .caps { margin: 0; }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.amount { height: 48px; border-radius: 12px; border: 1px solid var(--p-border) !important; background: var(--p-surface) !important; font-weight: 600 !important; text-align: center !important; }
.amount.on { background: var(--p-brand) !important; color: #fff !important; border-color: var(--p-brand) !important; }
.radio-card { display: flex !important; gap: 14px; align-items: flex-start; width: 100%; padding: 14px 16px; border: 1px solid var(--p-border) !important; border-radius: 16px; background: var(--p-surface) !important; margin-bottom: 10px; text-align: start !important; }
.radio-card > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.radio-card b { font-weight: 600; font-size: 15px; }
.radio-card small { font-size: 13px; color: var(--p-text2); line-height: 1.4; }
.radio-card.on { border: 1.5px solid var(--p-brand) !important; background: var(--p-tint) !important; }
#phone[data-theme="dark"] .radio-card.on { border-color: var(--p-icon) !important; }
.radio-card.compact { align-items: center; padding: 12px 16px; }
.radio-card[disabled] { opacity: .5; cursor: not-allowed; }
.radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--p-text2); margin-top: 1px; display: grid; place-items: center; }
.on > .radio { border-color: var(--p-brand); }
.on > .radio::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--p-brand); }
#phone[data-theme="dark"] .on > .radio { border-color: var(--p-icon); }
#phone[data-theme="dark"] .on > .radio::after { background: var(--p-icon); }
.breakdown { padding: 14px 16px; margin: 6px 0 10px; font-size: 14px; }
.breakdown > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; color: var(--p-text2); font-variant-numeric: tabular-nums; }
.breakdown > div > span:last-child { color: var(--p-text); }
.breakdown .total { color: var(--p-text); font-weight: 650; }
.breakdown > div:nth-child(6) { border-top: 1px solid var(--p-border); margin-top: 6px; padding-top: 9px; }
.breakdown .hint { margin: 10px 0 2px; }
.toggle-row { display: flex !important; align-items: center; justify-content: space-between; width: 100%; padding: 14px 16px; margin: 4px 0 6px; }
.switch { width: 51px; height: 31px; border-radius: 16px; background: #CFCBC2; position: relative; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.switch.on { background: var(--p-success); }
.switch.on::after { transform: translateX(20px); }
[dir="rtl"] .switch::after { left: auto; right: 2px; }
[dir="rtl"] .switch.on::after { transform: translateX(-20px); }

.center-col { display: flex; flex-direction: column; align-items: center; }
.empty { padding-top: 48px; text-align: center; gap: 10px; }
.empty b { font-size: 17px; }
.success-mark { width: 84px; height: 84px; border-radius: 50%; background: rgba(46,125,79,.12); color: var(--p-success); display: grid; place-items: center; margin-top: 36px; animation: pop .5s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.confirm-line { font-size: 13px; color: var(--p-text2); text-align: center; margin: 0 0 4px; }

.stack { display: grid; gap: 12px; }
.give-card { display: flex !important; align-items: center; gap: 16px; width: 100%; padding: 16px; border: 1px solid var(--p-border) !important; border-radius: 18px; background: var(--p-surface) !important; text-align: start !important; }
.give-card > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.give-card b { font-size: 17px; font-weight: 650; }
.give-card small { color: var(--p-text2); font-size: 14px; }

.act-card { display: flex !important; flex-direction: column; gap: 10px; width: 100%; padding: 14px 16px; margin-top: 12px; border: 1px solid var(--p-border) !important; border-radius: 18px; background: var(--p-surface) !important; text-align: start !important; position: relative; }
.act-card.fresh { animation: fresh 1.6s ease; }
@keyframes fresh { 0% { box-shadow: 0 0 0 3px rgba(217,123,63,.5); } 100% { box-shadow: 0 0 0 0 rgba(217,123,63,0); } }
.act-top { display: flex; justify-content: space-between; gap: 8px; }
.type-pill { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--p-tint); color: var(--p-icon); }
.type-pill.t-donation { background: rgba(217,123,63,.14); color: #A45622; }
.type-pill.t-reservation { background: rgba(46,111,142,.12); color: #265E79; }
.type-pill.t-volunteer { background: rgba(43,125,120,.12); color: #236B66; }
#phone[data-theme="dark"] .type-pill { color: #D6E6DE; }
.act-mid { display: flex; align-items: center; gap: 12px; }
.act-mid > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.act-mid b { font-weight: 600; }
.act-mid small { color: var(--p-text2); font-size: 13px; }
.act-when { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--p-text2); }
.attention-line { font-size: 13px; font-weight: 600; color: #7F5A10; background: rgba(184,134,43,.12); padding: 7px 10px; border-radius: 10px;  }
#phone[data-theme="dark"] .attention-line, #phone[data-theme="dark"] .attention { color: #E0B55E; }
.attention { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(184,134,43,.12); color: #7F5A10; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.timeline { list-style: none; padding: 6px 0 0; margin: 8px 0 0; }
.timeline li { position: relative; padding: 0 0 18px 30px; color: var(--p-text2); font-size: 15px; }
[dir="rtl"] .timeline li { padding: 0 30px 18px 0; }
.timeline li::before { content: ""; position: absolute; left: 8px; top: 14px; bottom: -2px; width: 2px; background: var(--p-border); }
[dir="rtl"] .timeline li::before { left: auto; right: 8px; }
.timeline li:last-child::before { display: none; }
.tl-dot { position: absolute; left: 2px; top: 5px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--p-border); background: var(--p-bg); }
[dir="rtl"] .tl-dot { left: auto; right: 2px; }
.timeline li.done { color: var(--p-text); }
.timeline li.done .tl-dot { background: var(--p-success); border-color: var(--p-success); }
.timeline li.done::before { background: var(--p-success); }
.timeline li.now { color: var(--p-text); font-weight: 650; }
.timeline li.now .tl-dot { border-color: var(--p-accent); background: var(--p-accent); box-shadow: 0 0 0 4px rgba(217,123,63,.2); }

.me { display: flex; align-items: center; gap: 14px; }
.me > span:last-child { display: flex; flex-direction: column; }
.me b { font-size: 18px; }
.me small { color: var(--p-text2); font-size: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--p-brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 20px; }

.screen:has(.composer) { display: flex; flex-direction: column; }
.chat-body { padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bubble { max-width: 80%; padding: 10px 14px; border-radius: 18px; background: var(--p-surface); border: 1px solid var(--p-border); font-size: 15px; align-self: flex-start; border-end-start-radius: 6px; animation: fadeIn .2s ease both; }
.bubble.me { align-self: flex-end; background: var(--p-brand); color: #fff; border-color: var(--p-brand); border-end-start-radius: 18px; border-end-end-radius: 6px; }
.composer { position: sticky; bottom: 0; display: flex; gap: 8px; padding: 10px 12px; background: var(--p-bg); border-top: 1px solid var(--p-border); }
.composer input { flex: 1; height: 44px; border-radius: 22px; border: 1px solid var(--p-border); background: var(--p-surface); padding: 0 16px; outline: 0; color: var(--p-text) !important; }
.send { width: 44px; height: 44px; border-radius: 22px; background: var(--p-brand) !important; color: #fff !important; display: grid !important; place-items: center; }

#phone-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 83px; display: grid; grid-template-columns: repeat(5, 1fr); padding-top: 8px; background: var(--p-surface); border-top: 1px solid var(--p-border); z-index: 4; }
.tab { display: flex !important; flex-direction: column; align-items: center; color: var(--p-text2) !important; position: relative; text-align: center !important; }
.tab > span:nth-child(2) { font-size: 11px; font-weight: 600; margin-top: 4px; white-space: nowrap; }
.tab.on { color: var(--p-icon) !important; }
.tab-badge { position: absolute; top: -4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--p-accent); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.home-ind { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: var(--p-text); opacity: .85; z-index: 5; pointer-events: none; }
#phone-toast { position: absolute; left: 16px; right: 16px; bottom: 100px; z-index: 8; padding: 12px 16px; border-radius: 14px; background: rgba(27,36,32,.94); color: #fff; font-size: 14px; text-align: center; opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; pointer-events: none; }
#phone-toast.show { opacity: 1; transform: none; }

/* ── engineering ── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 56px; }
.stat { background: var(--surface); padding: 26px 24px; }
.stat b { display: block; font: 500 44px/1 var(--serif); letter-spacing: -0.02em; color: var(--green); }
.stat span { display: block; margin-top: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.stats-note { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }

.arch { margin-top: 64px; display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 20px; align-items: start; }
.arch-col { display: grid; gap: 14px; align-content: start; }
.arch h4 { margin: 0 0 2px; font: 600 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sage); }
.node { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.node b { display: block; font-weight: 650; font-size: 16px; }
.node small { display: block; color: var(--ink-2); font-size: 14px; margin-top: 4px; line-height: 1.45; }
code { font: 500 .86em var(--mono); background: var(--bg-alt); padding: 1px 6px; border-radius: 6px; color: var(--green); }
.node.core { background: var(--green); border-color: var(--green); color: #E6ECE8; padding: 22px; }
.node.core b { color: #fff; font-size: 18px; }
.node.core small { color: #C4D0C9; }
.node.core ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.node.core li { padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.07); font-size: 14px; color: #E6ECE8; line-height: 1.45; }
.node.core li b { display: inline; font-size: 14px; }
.node.core code { background: rgba(255,255,255,.12); color: #fff; }
.arch-arrow { text-align: center; color: var(--sage); font-size: 13px; padding: 2px 0; }
@media (max-width: 980px) { .arch { grid-template-columns: 1fr; } }

/* ── engineering challenges ── */
.challenges-intro { margin-top: 72px; }
.sub-sec { font-size: clamp(26px, 3vw, 34px); max-width: 26ch; }
.challenges { margin-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.challenge { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 20px; display: flex; flex-direction: column; }
.ctag { align-self: flex-start; font: 600 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--green); background: #E9EEEA; padding: 6px 9px; border-radius: 999px; }
.challenge h4 { margin: 16px 0 0; font: 500 22px/1.2 var(--serif); letter-spacing: -0.01em; color: var(--ink); }
.challenge dl { margin: 14px 0 0; display: grid; gap: 4px; flex: 1; }
.challenge dt { font: 600 12px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--sage); margin-top: 10px; }
.challenge dt + dd { margin: 4px 0 0; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.challenge dt:nth-of-type(2) { color: var(--accent-ink); }
.challenge .ref { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font: 12px/1.5 var(--mono); color: var(--ink-3); overflow-wrap: anywhere; }
.stats-note code { font: 12px var(--mono); }
@media (max-width: 980px) { .challenges { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .challenges { grid-template-columns: 1fr; } }

.code-grid { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.code { background: #0F1A16; color: #D9E2DC; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.code header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; color: #A8B8AF; }
.code header b { color: #fff; font-weight: 600; }
.code pre { margin: 0; padding: 18px; overflow-x: auto; font: 12.5px/1.65 var(--mono); flex: 1; }
.code pre code { background: none; padding: 0; color: inherit; font: inherit; }
.code p { margin: 0; padding: 14px 18px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; color: #BCC9C1; line-height: 1.5; }
.code .c { color: #8A9F94; } .code .k { color: #F0A673; } .code .s { color: #A9D7B8; }
.code.wide { grid-column: 1 / -1; }
@media (max-width: 860px) { .code-grid { grid-template-columns: 1fr; } }

/* ── what I built ── */
.built { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 48px; }
.built p { color: var(--ink-2); font-size: 18px; margin: 0 0 16px; }
.built p b { color: var(--ink); font-weight: 600; }
.roles { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.roles li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.roles b { display: block; font-size: 16px; font-weight: 650; }
.roles span { display: block; font-size: 15px; color: var(--ink-2); margin-top: 3px; line-height: 1.5; }
.disclosure { margin-top: 20px; padding: 18px 20px; border-radius: 16px; background: #F1EEE4; border: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.disclosure b { color: var(--ink); }
@media (max-width: 860px) { .built { grid-template-columns: 1fr; gap: 28px; } }

/* ── evidence ── */
.gallery { margin-top: 48px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery a { display: block; border-radius: 22px; }
.gallery img { border-radius: 22px; box-shadow: 0 20px 40px -24px rgba(18,62,50,.5); background: var(--green); aspect-ratio: 1100 / 2390; width: 100%; height: auto; }
.gallery figcaption { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.evidence-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; margin-top: 64px; align-items: start; }
@media (max-width: 860px) { .evidence-grid { grid-template-columns: 1fr; gap: 24px; } }
.milestones { margin: 0; padding: 0 0 0 28px; border-left: 2px solid var(--line); }
.milestones li { list-style: none; position: relative; padding-bottom: 24px; }
.milestones li::before { content: ""; position: absolute; left: -37px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--green); }
.milestones li.hl::before { background: var(--accent); border-color: var(--accent); }
.milestones time { font: 600 13px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--sage); }
.milestones b { display: block; font-size: 17px; font-weight: 650; margin-top: 2px; }
.milestones span { display: block; color: var(--ink-2); font-size: 15px; margin-top: 2px; }
.h-sub { font: 600 13px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--sage); margin: 0 0 20px; }

.status-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.status-card .row { display: flex; align-items: center; gap: 12px; }
.status-card .dot { width: 10px; height: 10px; border-radius: 50%; background: #C98A1E; flex: none; }
.status-card h3 { font: 600 20px/1.3 var(--sans); letter-spacing: -0.01em; }
.status-card dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 18px 0 0; font-size: 15px; }
.status-card dt { color: var(--ink-2); }
.status-card dd { margin: 0; font-weight: 500; }
.status-card p { font-size: 14px; color: var(--ink-2); margin: 16px 0 0; }
.status-card + .status-card { margin-top: 16px; }

/* ── vision ── */
.vision { background: var(--green); color: #EDEBE4; border-top: 0; }
.vision .eyebrow-page { color: #F2B58A; }
.vision h2.sec { color: #fff; max-width: 16ch; }
.vision .lede { color: #C9D3CC; }
.vision-metrics { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.18); }
.vision-metrics li { padding: 32px 28px 8px 0; display: flex; flex-direction: column; }
.vision-metrics li + li { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.18); }
.vtag { align-self: flex-start; font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: #3B1A05; background: #F2B58A; padding: 6px 10px; border-radius: 999px; }
.vnum { margin-top: 22px; font: 400 clamp(56px, 7vw, 92px)/.95 var(--serif); letter-spacing: -0.035em; color: #fff; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
.vlab { margin-top: 14px; font: 500 17px/1.35 var(--sans); color: #EDEBE4; }
.vfoot { margin-top: 6px; font-size: 13px; color: #9FB0A6; }
.vision-note { margin-top: 48px; display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); max-width: 820px; }
.vision-note .vi { display: inline-flex; flex: none; width: 22px; height: 22px; margin-top: 1px; color: #F2B58A; }
.vision-note .vi svg { width: 22px; height: 22px; }
.vision-note p { margin: 0; font-size: 15px; line-height: 1.6; color: #C9D3CC; }
.vision-note b { color: #fff; }
.vision + .contact { border-top: 0; }
@media (max-width: 860px) { .vision-metrics { grid-template-columns: 1fr; } .vision-metrics li, .vision-metrics li + li { padding: 26px 0 18px; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.18); } }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── contact / footer ── */
.contact { text-align: center; }
.contact h2 { margin: 0 auto; max-width: 20ch; }
.contact .mail { display: inline-block; margin-top: 26px; font: 500 clamp(22px, 3.4vw, 34px)/1.2 var(--serif); color: var(--green); text-decoration-thickness: 1px; word-break: break-all; }
.contact .hero-ctas { justify-content: center; }
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; font-size: 14px; color: var(--ink-3); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer p { margin: 0; max-width: 72ch; }

.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  section { padding: 80px 0; }
  .lede { font-size: 18px; }
  .stat { padding: 20px 16px; }
  .stat b { font-size: 34px; }
}
.hero { overflow-x: clip; }
.code header span { overflow-wrap: anywhere; min-width: 0; }
