/* ==========================================================================
   DoorFit — investor pitch
   Editorial fashion meets logistics. Tokens first; everything else reads them.
   ========================================================================== */

:root {
  --bg: #fbfbf9;
  --bg-2: #f3f6f4;
  --card: #ffffff;
  --ink: #1d2a26;
  --ink-2: #58665f;
  --ink-3: #8b968f;
  --emerald: #1f8a6b;
  --emerald-deep: #2c9a7a;
  --emerald-soft: #e7f4ee;
  --coral: #e9775d;
  --coral-soft: #fdeee8;
  --gold: #d0a85a;
  --line: rgba(29, 42, 38, 0.08);
  --line-strong: rgba(29, 42, 38, 0.16);
  --shadow: 0 1px 2px rgba(29, 42, 38, 0.04), 0 16px 40px -24px rgba(31, 138, 107, 0.25);
  --on-emerald: #ffffff;
  --panel: #f0f8f4;
  --panel-ink: #1d2a26;

  --f-display: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --f-body: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --f-urdu: "Noto Nastaliq Urdu", serif;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1180px;
  --radius: 16px;
  color-scheme: light;
}

/* Dark is opt-in via the header toggle; the pitch opens light by default. */
:root[data-theme="dark"] {
  --bg: #111a17;
  --bg-2: #16211d;
  --card: #1a2723;
  --ink: #eef2ef;
  --ink-2: #b3beb8;
  --ink-3: #85918b;
  --emerald: #5cc9a3;
  --emerald-deep: #3fae8a;
  --emerald-soft: #1d332b;
  --coral: #f59a83;
  --coral-soft: #3a2621;
  --gold: #e0bf7a;
  --line: rgba(238, 242, 239, 0.08);
  --line-strong: rgba(238, 242, 239, 0.18);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 50px -28px rgba(0, 0, 0, 0.8);
  --on-emerald: #111a17;
  --panel: #19302a;
  --panel-ink: #eef2ef;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
  overflow-x: hidden;
  transition: background-color .4s ease, color .4s ease;
}
/* paper grain */
body::before {
  display: none;
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; margin: 0; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 22ch; }
h2 em, h1 em { font-style: normal; color: var(--emerald); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 58ch; margin-top: 1.2rem; }
.mono { font-family: var(--f-mono); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--ink-2); }
.small { font-size: .88rem; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 1rem; height: 62px; }
.logo { display: flex; align-items: center; gap: .55rem; text-decoration: none; font-family: var(--f-display); font-size: 1.25rem; font-weight: 800; letter-spacing: -.03em; }
.logo svg { width: 26px; height: 26px; }
.logo b { font-weight: 800; color: var(--emerald); }
.nav { display: flex; gap: 1.3rem; margin-left: auto; }
.nav a { text-decoration: none; font-size: .88rem; font-weight: 500; color: var(--ink-2); position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1.5px; background: var(--coral); transition: right .3s ease; }
.nav a:hover::after, .nav a.active::after { right: 0; }
.nav a.active { color: var(--ink); }
.tb-actions { display: flex; gap: .5rem; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  height: 38px; min-width: 38px; padding: 0 .8rem;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  font-size: .85rem;
  transition: background .2s, border-color .2s;
}
.icon-btn:hover { background: var(--bg-2); }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn.solid { background: var(--emerald); color: #fff; border-color: var(--emerald); font-weight: 600; }
.icon-btn.solid:hover { filter: brightness(1.08); }
@media (max-width: 860px) { .nav { display: none; } .tb-actions { margin-left: auto; } }
@media (max-width: 420px) { .icon-btn .lbl { display: none; } }

/* ---------- sections & hang-tag labels ---------- */
.slide { position: relative; padding: clamp(72px, 11vw, 140px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 62px; }
.slide.alt { background: var(--bg-2); }
.tag {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--f-mono); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-2);
  padding: .38rem .8rem .38rem .55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  margin-bottom: 1.6rem;
  justify-self: start; width: fit-content;
  background: var(--card);
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); }
.tag b { color: var(--emerald); font-weight: 700; }
.sec-head { display: grid; grid-template-columns: 1fr; gap: .4rem; margin-bottom: clamp(2.4rem, 5vw, 4rem); }
.sec-head.split { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 2rem; }
@media (max-width: 860px) { .sec-head.split { grid-template-columns: 1fr; } }

/* reveal */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; } .rv.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.35rem; border-radius: 999px;
  text-decoration: none; font-weight: 500; font-size: .98rem;
  border: 1px solid var(--emerald); background: var(--emerald); color: #fff; font-weight: 600;
  transition: transform .2s ease, background .2s, color .2s, border-color .2s, filter .2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--emerald); background: transparent; color: var(--emerald); filter: none; }
.btn svg { width: 16px; height: 16px; }

/* ---------- hero ---------- */
.hero { background: radial-gradient(900px 500px at 85% 10%, var(--emerald-soft), transparent 70%), radial-gradient(700px 400px at 0% 100%, var(--coral-soft), transparent 70%); padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(64px, 9vw, 120px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s cubic-bezier(.2,.75,.15,1) forwards; }
.hero h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .24s; }
@keyframes rise { to { transform: none; } }
.hero h1 .coral { color: var(--coral); }
.urdu { font-family: var(--f-urdu); direction: rtl; font-size: 1.25rem; color: var(--ink-3); margin-top: 1.4rem; line-height: 2.2; }
.hero .cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.8rem; margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.hero-meta div { display: grid; gap: .1rem; }
.hero-meta strong { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.hero-meta span { font-size: .82rem; color: var(--ink-2); }

/* order receipt card */
.receipt {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.6rem 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .receipt { animation: none; } }
.receipt::before { /* hang-tag hole */
  content: ""; position: absolute; top: 16px; right: 18px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong);
}
.receipt .clock { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.ring { width: 76px; height: 76px; flex: none; }
.ring circle { fill: none; stroke-width: 6; }
.ring .track { stroke: var(--line); }
.ring .prog { stroke: var(--coral); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .9s linear; }
.clock .t { font-family: var(--f-mono); font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.receipt ul { list-style: none; margin: 0; padding: 0; border-top: 1px dashed var(--line-strong); }
.receipt li { display: flex; justify-content: space-between; gap: 1rem; padding: .62rem 0; border-bottom: 1px dashed var(--line-strong); font-size: .92rem; }
.receipt li .st { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; padding: .15rem .5rem; border-radius: 999px; align-self: center; }
.st { font-weight: 700; }
.st.keep { background: var(--emerald-soft); color: var(--emerald); }
.st.ret { background: var(--coral-soft); color: var(--coral); }
.receipt .total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1rem; }
.receipt .total strong { font-family: var(--f-display); font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }

/* ---------- generic cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .grid-4 { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.3rem, 2.4vw, 2rem);
}
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--ink-2); }

.big-num { font-family: var(--f-display); font-size: clamp(2.4rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; color: var(--ink); }
.big-num.coral { color: var(--coral); }
.big-num.emerald { color: var(--emerald); }
.cite { display: inline-block; margin-top: .9rem; font-family: var(--f-mono); font-size: .72rem; font-weight: 500; color: var(--ink-3); text-decoration: none; border-bottom: 1px dotted var(--ink-3); }
.cite:hover { color: var(--coral); border-color: var(--coral); }
.est { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; padding: .1rem .4rem; border-radius: 4px; background: var(--bg-2); color: var(--ink-3); vertical-align: middle; margin-left: .3rem; }

.pullquote { font-family: var(--f-display); font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.35; max-width: 40ch; padding-left: 1.2rem; border-left: 3px solid var(--coral); margin-top: clamp(2.5rem, 5vw, 4rem); }
.pullquote em { color: var(--coral); }

/* ---------- solution steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 2rem 1.6rem 2rem 0; border-right: 1px solid var(--line); position: relative; }
.step + .step { padding-left: 1.6rem; }
.step:last-child { border-right: 0; }
@media (max-width: 860px) { .step, .step + .step { padding: 1.8rem 0; border-right: 0; border-bottom: 1px solid var(--line); } }
.step .n { font-family: var(--f-mono); font-size: .72rem; font-weight: 700; color: var(--coral); letter-spacing: .1em; }
.step h3 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin: .5rem 0 .8rem; }
.step h3 em { color: var(--emerald); }
.step p { color: var(--ink-2); }
.step ul { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.step li { font-size: .92rem; padding-left: 1.2rem; position: relative; }
.step li::before { content: ""; position: absolute; left: 0; top: .62em; width: .55rem; height: 1.5px; background: var(--coral); }

/* ---------- simulator ---------- */
.demo-grid { display: grid; grid-template-columns: 1fr 380px; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } .phone { margin: 0 auto; } }
.demo-steps { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .25rem; counter-reset: ds; }
.demo-steps li { counter-increment: ds; display: grid; grid-template-columns: 2.4rem 1fr; gap: .6rem; padding: .9rem 0; border-top: 1px solid var(--line); color: var(--ink-3); transition: color .3s; }
.demo-steps li::before { content: "0" counter(ds); font-family: var(--f-mono); font-size: .75rem; font-weight: 700; padding-top: .2rem; }
.demo-steps li b { display: block; font-weight: 600; }
.demo-steps li span { font-size: .9rem; }
.demo-steps li.on { color: var(--ink); }
.demo-steps li.on::before { color: var(--coral); }
.demo-steps li.done { color: var(--ink-2); }

.phone {
  width: 100%; max-width: 360px; aspect-ratio: 9 / 18.5;
  border-radius: 46px; padding: 11px;
  background: #101814;
  box-shadow: 0 0 0 1.5px #2a3a33, 0 40px 80px -30px rgba(10, 30, 24, .6);
  position: relative;
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 92px; height: 24px; transform: translateX(-50%); background: #101814; border-radius: 20px; z-index: 3; }
.screen {
  height: 100%; border-radius: 36px; overflow: hidden;
  background: #fbf8f3; color: #14201b;
  display: flex; flex-direction: column;
  font-size: 14px; position: relative;
  --s-emerald: #1f8a6b; --s-coral: #e9775d; --s-line: rgba(20,32,27,.1); --s-mute: #6b7670;
}
.scr-top { padding: 48px 18px 10px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--s-line); }
.scr-top .brand { font-family: var(--f-display); font-size: .95rem; font-weight: 800; letter-spacing: .12em; }
.scr-top .pill { font-family: var(--f-mono); font-size: .62rem; font-weight: 700; background: #e7f4ee; color: #1f8a6b; padding: .25rem .55rem; border-radius: 999px; }
.scr-body { flex: 1; overflow-y: auto; padding: 14px 16px; scrollbar-width: none; }
.scr-body::-webkit-scrollbar { display: none; }
.scr-foot { padding: 12px 16px 18px; border-top: 1px solid var(--s-line); background: #fbf8f3; }
.scr-btn { width: 100%; border: 0; border-radius: 14px; padding: .95rem; background: #1f8a6b; color: #fff; font-weight: 600; font-size: .95rem; transition: background .2s, opacity .2s; }
.scr-btn:hover { background: #197a5e; }
.scr-btn:disabled { opacity: .4; cursor: not-allowed; background: #8b968f; }
.scr-h { font-family: var(--f-display); font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 2px 0 8px; }
.scr-sub { color: var(--s-mute); font-size: .78rem; margin-bottom: 12px; }
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prod {
  border: 1.5px solid var(--s-line); border-radius: 14px; padding: 8px; background: #fff;
  text-align: left; position: relative; transition: border-color .2s, transform .2s;
}
.prod:hover { transform: translateY(-2px); }
.prod.sel { border-color: var(--s-emerald); }
.prod .sw { height: 84px; border-radius: 9px; margin-bottom: 7px; position: relative; overflow: hidden; }
.prod .sw::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.14) 0 6px, transparent 6px 12px); }
.prod .nm { font-size: .78rem; line-height: 1.2; font-weight: 500; }
.prod .pr { font-family: var(--f-mono); font-size: .7rem; color: var(--s-mute); margin-top: 2px; }
.prod .chk { position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.9); border: 1.5px solid var(--s-line); display: grid; place-items: center; font-size: .7rem; color: transparent; }
.prod.sel .chk { background: var(--s-emerald); border-color: var(--s-emerald); color: #fff; }
.opt { display: block; width: 100%; text-align: left; border: 1.5px solid var(--s-line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.opt.sel { border-color: var(--s-emerald); box-shadow: 0 0 0 3px rgba(31,138,107,.14); }
.opt .r1 { display: flex; justify-content: space-between; font-weight: 500; font-size: .88rem; }
.opt .r2 { color: var(--s-mute); font-size: .74rem; margin-top: 3px; }
.opt .badge { font-family: var(--f-mono); font-size: .58rem; background: var(--s-coral); color: #fff; padding: .12rem .4rem; border-radius: 4px; margin-left: .3rem; vertical-align: middle; }
.line-item { display: flex; justify-content: space-between; gap: .6rem; padding: 7px 0; border-bottom: 1px dashed var(--s-line); font-size: .82rem; }
.line-item.tot { border-bottom: 0; font-weight: 600; font-size: .95rem; padding-top: 10px; }
.line-item .x { color: var(--s-mute); text-decoration: line-through; }
.track { position: relative; padding-left: 22px; margin-top: 8px; }
.track::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--s-line); }
.track .ev { position: relative; padding: 0 0 16px; color: var(--s-mute); font-size: .82rem; transition: color .3s; }
.track .ev::before { content: ""; position: absolute; left: -21px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--s-line); transition: all .3s; }
.track .ev.on { color: #14201b; }
.track .ev.on::before { background: var(--s-emerald); border-color: var(--s-emerald); }
.track .ev b { display: block; font-weight: 500; }
.eta { display: flex; align-items: center; justify-content: space-between; background: #e7f4ee; color: #1d2a26; border-radius: 16px; padding: 14px 16px; margin-bottom: 12px; }
.eta .tt { font-family: var(--f-mono); font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #1f8a6b; }
.eta small { display: block; font-size: .68rem; opacity: .7; }
.stylist { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--s-line); border-radius: 14px; margin-bottom: 12px; background: #fff; }
.stylist .av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #1f8a6b, #5cc9a3); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 1rem; }
.stylist .nm { font-weight: 500; font-size: .85rem; } .stylist .rt { font-size: .72rem; color: var(--s-mute); }
.mini-map { height: 92px; border-radius: 14px; margin-bottom: 12px; position: relative; overflow: hidden; background: #e9efe9; background-image: linear-gradient(rgba(20,32,27,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(20,32,27,.06) 1px, transparent 1px); background-size: 18px 18px; }
.mini-map .rd { position: absolute; left: 14%; right: 14%; top: 50%; height: 3px; background: rgba(15,92,71,.25); border-radius: 2px; }
.mini-map .dot { position: absolute; top: calc(50% - 7px); width: 14px; height: 14px; border-radius: 50%; }
.mini-map .dot.a { left: calc(14% - 7px); background: #14201b; }
.mini-map .dot.b { right: calc(14% - 7px); background: var(--s-coral); }
.mini-map .bike { position: absolute; top: calc(50% - 13px); left: 14%; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; background: var(--s-emerald); color: #fff; display: grid; place-items: center; font-size: .8rem; transition: left .4s linear; box-shadow: 0 0 0 5px rgba(15,92,71,.18); }
.try-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--s-line); }
.try-row .sw { width: 44px; height: 44px; border-radius: 9px; }
.try-row .nm { font-size: .8rem; font-weight: 500; line-height: 1.2; }
.try-row .pr { font-family: var(--f-mono); font-size: .68rem; color: var(--s-mute); }
.kr { display: inline-flex; border: 1px solid var(--s-line); border-radius: 999px; overflow: hidden; }
.kr button { border: 0; background: transparent; font-size: .68rem; padding: .35rem .6rem; font-weight: 500; color: var(--s-mute); }
.kr button.k.on { background: var(--s-emerald); color: #fff; }
.kr button.r.on { background: var(--s-coral); color: #fff; }
.timer-bar { height: 5px; background: var(--s-line); border-radius: 3px; overflow: hidden; margin: 6px 0 12px; }
.timer-bar i { display: block; height: 100%; background: var(--s-coral); width: 100%; transition: width 1s linear; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 0; }
.pay-methods button { border: 1.5px solid var(--s-line); background: #fff; border-radius: 10px; padding: 8px 4px; font-size: .68rem; font-weight: 500; }
.pay-methods button.sel { border-color: var(--s-emerald); color: var(--s-emerald); }
.done-badge { width: 64px; height: 64px; border-radius: 50%; background: var(--s-emerald); color: #fff; display: grid; place-items: center; font-size: 1.8rem; margin: 18px auto 12px; animation: pop .5s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.scr-note { font-size: .72rem; color: var(--s-mute); text-align: center; margin-top: 8px; }
.fade-in { animation: fadeIn .45s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- comparison table ---------- */
.compare { width: 100%; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { text-align: left; padding: 1rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; background: var(--bg-2); }
.compare td:first-child { color: var(--ink-2); width: 26%; }
.compare td.us { color: var(--ink); font-weight: 500; }
.compare td.us::before { content: "✓ "; color: var(--emerald); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.table-scroll .compare { min-width: 620px; }
.table-scroll .compare tr:last-child td { border-bottom: 0; }

/* ---------- calculators ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--card); }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc-in { padding: clamp(1.3rem, 3vw, 2.4rem); display: grid; gap: 1.25rem; align-content: start; }
.calc-out { padding: clamp(1.3rem, 3vw, 2.4rem); background: var(--panel); color: var(--panel-ink); border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 1.2rem; position: relative; overflow: hidden; }
.calc-out::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 1px solid rgba(31,138,107,.12); box-shadow: 0 0 0 40px rgba(31,138,107,.035), 0 0 0 80px rgba(31,138,107,.02); pointer-events: none; }
.field { display: grid; gap: .45rem; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.field label { font-size: .9rem; color: var(--ink-2); }
.field output { font-family: var(--f-mono); font-size: .92rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; margin: 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--emerald) 0 var(--p, 50%), var(--line-strong) var(--p, 50%) 100%); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-strong); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--emerald); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%; background: var(--card); border: 2px solid var(--emerald); box-shadow: 0 2px 6px rgba(0,0,0,.15); transition: transform .15s; }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--card); border: 2px solid var(--emerald); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.2); }
.kpi { display: grid; gap: .2rem; position: relative; z-index: 1; }
.kpi .k { font-family: var(--f-mono); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.kpi .v { font-family: var(--f-display); font-size: clamp(2.2rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.05; color: var(--emerald); }
.kpi .v.neg { color: var(--coral); }
.kpi .sub { font-size: .85rem; color: var(--ink-2); }
.kpi-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; position: relative; z-index: 1; }
.kpi-row .kpi .v { font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--ink); }
.waterfall { display: grid; gap: .5rem; position: relative; z-index: 1; margin-top: auto; }
.wf { display: grid; grid-template-columns: 9.5rem 1fr 6.2rem; align-items: center; gap: .7rem; font-size: .82rem; }
@media (max-width: 480px) { .wf { grid-template-columns: 7rem 1fr 5.4rem; font-size: .75rem; } }
.wf .bar { height: 10px; border-radius: 5px; background: rgba(29,42,38,.07); overflow: hidden; }
.wf .bar i { display: block; height: 100%; border-radius: 5px; transition: width .35s ease; }
.wf .bar i.pos { background: var(--emerald-deep); }
.wf .bar i.neg { background: var(--coral); }
.wf .amt { font-family: var(--f-mono); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.calc-note { font-size: .8rem; color: var(--ink-3); margin-top: 1rem; max-width: 80ch; }
.calc-reset { justify-self: start; background: none; border: 0; padding: 0; font-size: .82rem; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.calc-reset:hover { color: var(--coral); }

/* ---------- map ---------- */
.map-shell { display: grid; grid-template-columns: 300px 1fr; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--card); }
@media (max-width: 900px) { .map-shell { grid-template-columns: 1fr; } }
.map-side { padding: 1.5rem; display: grid; gap: 1.3rem; align-content: start; border-right: 1px solid var(--line); }
@media (max-width: 900px) { .map-side { border-right: 0; border-bottom: 1px solid var(--line); } }
.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; border-radius: 999px; background: var(--bg-2); gap: 2px; }
.seg button { border: 0; background: transparent; padding: .5rem .9rem; border-radius: 999px; font-size: .82rem; color: var(--ink-2); transition: background .2s, color .2s; }
.seg button.on { background: var(--card); color: var(--emerald); font-weight: 600; box-shadow: 0 1px 3px rgba(29,42,38,.12); }
#map { height: 100%; min-height: 540px; width: 100%; background: var(--bg-2); }
#map .leaflet-tile-pane { filter: grayscale(.85) sepia(.12) contrast(.95) brightness(1.02); }
#map.map-dark .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(.78) contrast(1.15) hue-rotate(160deg) sepia(.15); }
@media (max-width: 900px) { #map { height: 420px; min-height: 420px; } }
.zone-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.zone-list li { display: flex; justify-content: space-between; gap: .6rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.zone-list li .ph { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .05em; padding: .12rem .45rem; border-radius: 4px; align-self: center; }
.ph.p0 { background: var(--coral); color: #fff; }
.ph.p1 { background: var(--emerald); color: var(--on-emerald); }
.ph.p2 { background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line-strong); }
.zone-list li.off { opacity: .35; }
.map-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.map-stats div strong { display: block; font-family: var(--f-display); font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.map-stats div span { font-size: .78rem; color: var(--ink-2); }
.leaflet-container { font-family: var(--f-body) !important; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--card) !important; color: var(--ink) !important; }
.leaflet-popup-content { margin: 12px 14px !important; font-size: .85rem; line-height: 1.4; }
.leaflet-popup-content b { font-family: var(--f-display); font-size: 1rem; font-weight: 700; }
.leaflet-control-attribution { font-size: 10px !important; }

/* ---------- business model ---------- */
.rev-stream { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; padding: 1.6rem 0; border-top: 1px solid var(--line); align-items: start; }
.rev-stream .ix { font-family: var(--f-display); font-size: .85rem; font-weight: 800; line-height: 2.4rem; text-align: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--coral-soft); color: var(--coral); text-transform: uppercase; }
.rev-stream h3 { margin-bottom: .4rem; }
.rev-stream p { color: var(--ink-2); max-width: 60ch; }
.rev-stream .when { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--emerald); margin-top: .5rem; }

/* ---------- competition grid ---------- */
.pos-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 960px) { .pos-wrap { grid-template-columns: 1fr; } }
.posmap { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; border: 1px solid var(--line-strong); border-radius: 20px; background:
  linear-gradient(var(--line), var(--line)) 50% 0 / 1px 100% no-repeat,
  linear-gradient(var(--line), var(--line)) 0 50% / 100% 1px no-repeat,
  var(--card); }
.posmap .ax { position: absolute; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.posmap .ax.x1 { left: 12px; bottom: 10px; } .posmap .ax.x2 { right: 12px; bottom: 10px; }
.posmap .ax.y1 { left: 12px; top: 10px; } .posmap .ax.y2 { right: 12px; top: 10px; }
.posmap .ax.xl { left: 50%; bottom: -26px; transform: translateX(-50%); white-space: nowrap; }
.posmap .ax.yl { left: -14px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap; }
.dotp { position: absolute; transform: translate(-6px, 6px); display: flex; align-items: center; gap: .4rem; font-size: .78rem; white-space: nowrap; }
.dotp i { width: 12px; height: 12px; border-radius: 50%; background: var(--ink-3); flex: none; box-shadow: 0 0 0 4px var(--card); }
.dotp.us { font-family: var(--f-display); font-size: 1.05rem; font-weight: 800; color: var(--emerald); }
.dotp.us i { width: 22px; height: 22px; background: var(--coral); animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(232,93,64,.45), 0 0 0 4px var(--card); } 100% { box-shadow: 0 0 0 22px rgba(232,93,64,0), 0 0 0 4px var(--card); } }
.dotp.left { flex-direction: row-reverse; transform: translate(calc(-100% + 6px), 6px); }
.dotp.us { transform: translate(-11px, 11px); }
.dotp.us.left { transform: translate(calc(-100% + 11px), 11px); }
.comp-list { display: grid; gap: 0; }
.comp { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comp:first-child { border-top: 1px solid var(--line); }
.comp .h { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.comp .h b { font-weight: 700; }
.comp .h span { font-family: var(--f-mono); font-size: .68rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; text-align: right; }
.comp p { font-size: .9rem; color: var(--ink-2); margin-top: .25rem; }
.comp .cite { margin-top: .35rem; }

/* ---------- GTM timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: linear-gradient(90deg, var(--coral), var(--emerald)); opacity: .5; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr; } .timeline::before { left: 11px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; } }
.tl { padding: 0 1.4rem 0 0; position: relative; }
@media (max-width: 860px) { .tl { padding: 0 0 2rem 2.6rem; } }
.tl::before { content: ""; display: block; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 2px solid var(--coral); margin-bottom: 1.2rem; position: relative; }
@media (max-width: 860px) { .tl::before { position: absolute; left: 0; top: 0; } }
.tl:nth-child(n+3)::before { border-color: var(--emerald); }
.tl .when { font-family: var(--f-mono); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); }
.tl h3 { margin: .35rem 0 .6rem; }
.tl ul { margin: 0; padding: 0 0 0 1rem; color: var(--ink-2); font-size: .92rem; display: grid; gap: .3rem; }

/* ---------- risks ---------- */
.risk { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.5rem; padding: 1.3rem 0; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .risk { grid-template-columns: 1fr; gap: .4rem; } }
.risk .q { font-family: var(--f-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.35; }
.risk .a { color: var(--ink-2); }
.risk .a b { color: var(--ink); font-weight: 600; }

/* ---------- team ---------- */
.person { display: grid; gap: .8rem; }
.person .ph-img { aspect-ratio: 4 / 5; border-radius: 16px; border: 1.5px dashed var(--line-strong); display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--bg-2) 0 10px, transparent 10px 20px); color: var(--ink-3); font-family: var(--f-display); font-size: 2.4rem; font-weight: 800; }
.person .ph-img img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.person h3 { font-size: 1.2rem; }
.person .role { font-family: var(--f-mono); font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--emerald); }
.person p { color: var(--ink-2); font-size: .92rem; }
.placeholder-flag { display: inline-block; font-family: var(--f-mono); font-size: .62rem; background: var(--coral-soft); color: var(--coral); padding: .15rem .45rem; border-radius: 4px; margin-left: .3rem; letter-spacing: .05em; }

/* ---------- ask ---------- */
.ask-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
@media (max-width: 900px) { .ask-hero { grid-template-columns: 1fr; } }
.ask-amt { font-family: var(--f-display); font-size: clamp(4rem, 11vw, 7.5rem); font-weight: 800; line-height: .95; letter-spacing: -.05em; color: var(--emerald); }
.ask-amt small { font-size: .17em; font-weight: 600; color: var(--ink-2); letter-spacing: 0; display: block; margin-top: .9rem; }
.funds { display: flex; height: 64px; border-radius: 14px; overflow: hidden; margin: 2.4rem 0 1.2rem; }
.funds div { display: flex; align-items: flex-end; padding: .5rem .6rem; font-family: var(--f-mono); font-size: .75rem; font-weight: 700; color: #fff; transition: flex-grow .5s; min-width: 0; overflow: hidden; white-space: nowrap; }
.funds-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem 1.4rem; }
.funds-legend > div { display: grid; grid-template-columns: 12px 1fr auto; gap: .6rem; align-items: start; font-size: .9rem; }
.funds-legend i { width: 12px; height: 12px; border-radius: 3px; margin-top: .35rem; }
.funds-legend span { color: var(--ink-2); font-size: .82rem; display: block; }
.funds-legend b { font-family: var(--f-mono); font-weight: 700; font-size: .85rem; }
.milestones { 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: 3rem; }
@media (max-width: 860px) { .milestones { grid-template-columns: 1fr 1fr; } }
.milestones div { background: var(--card); padding: 1.4rem; }
.milestones strong { font-family: var(--f-display); font-size: 2rem; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; display: block; color: var(--emerald); }
.milestones span { font-size: .85rem; color: var(--ink-2); }

/* ---------- closing ---------- */
.closing { background: linear-gradient(135deg, var(--emerald-soft), var(--coral-soft)); color: var(--ink); text-align: left; border-bottom: 0; }
.closing h2 { font-size: clamp(2.2rem, 5.4vw, 4rem); max-width: 18ch; }
.closing h2 em { color: var(--coral); }







.sources { padding: 3rem 0 4rem; font-size: .82rem; color: var(--ink-2); }
.sources h3 { font-family: var(--f-mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; color: var(--ink-3); }
.sources ol { margin: 0; padding-left: 1.4rem; display: grid; gap: .35rem; columns: 2; column-gap: 2.5rem; }
@media (max-width: 760px) { .sources ol { columns: 1; } }
.sources li { break-inside: avoid; margin-bottom: .35rem; }
.sources a { color: var(--ink-2); word-break: break-word; }
.sources .disclaimer { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--ink-3); max-width: 90ch; }

/* ---------- present mode ---------- */
.present-hud { display: none; }
body.presenting .topbar { display: none; }
body.presenting .slide { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; scroll-margin-top: 0; padding: 56px 0; }
body.presenting .sources { display: none; }
html.presenting { scroll-snap-type: y proximity; }
body.presenting .slide { scroll-snap-align: start; }
body.presenting .present-hud {
  display: flex; align-items: center; gap: .6rem;
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  background: var(--card); color: var(--ink); border: 1px solid var(--line-strong);
  padding: .35rem .4rem .35rem .9rem; border-radius: 999px;
  font-family: var(--f-mono); font-size: .75rem;
  box-shadow: var(--shadow);
}
.present-hud button { border: 0; background: rgba(255,255,255,.12); color: inherit; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; }
.present-hud button { background: var(--bg-2); }
.present-hud button:hover { background: var(--emerald); color: #fff; }
.present-hud .hint { opacity: .6; margin-right: .3rem; }
@media (max-width: 600px) { .present-hud .hint { display: none; } }
