/* Bupilo marketing site — v2 redesign 2026-07-27.
   Self-contained: no CDN fonts, no analytics, no external requests of any kind,
   which is what lets nginx serve it under CSP default-src 'none'.
   Interactivity lives in /site.js (vanilla, ~6KB) and CSS keyframes; everything
   honours prefers-reduced-motion. */

:root {
  /* palette */
  --ink-950: #04100f;
  --ink-900: #071d1b;
  --ink-800: #0b2d2a;
  --ink:     #0c1a1e;
  --ink-2:   #33484f;
  --ink-3:   #62777d;
  --line:    #e3ecea;
  --bg:      #ffffff;
  --bg-soft: #f4faf8;
  --teal-900:#0b3d3a;
  --teal-700:#0f766e;
  --teal-500:#14b8a6;
  --teal-300:#5eead4;
  --teal-100:#ccfbf1;
  --teal-50: #effdf9;
  --amber:   #f59e0b;
  --amber-d: #b45309;
  --grad:    linear-gradient(135deg, #0f766e, #14b8a6);
  /* shape */
  --radius:  18px;
  --radius-s:12px;
  --wrap:    1180px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-card: 0 2px 4px rgba(4,32,29,.04), 0 14px 34px -18px rgba(4,32,29,.22);
  --shadow-pop:  0 30px 70px -30px rgba(4,32,29,.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink-2); background: var(--bg);
  font-size: 16.5px; line-height: 1.65; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--teal-700); }
::selection { background: var(--teal-300); color: var(--ink-900); }

h1,h2,h3,h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.025em; }
h1 { font-size: clamp(2.35rem, 5.6vw, 4rem); }
h2 { font-size: clamp(1.65rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.16rem; letter-spacing: -.012em; }
p  { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.section { padding: 92px 0; position: relative; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.center { text-align: center; }
.lede { font-size: 1.18rem; color: var(--ink-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-700);
  background: var(--teal-50); border: 1px solid var(--teal-100);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal-500); box-shadow: 0 0 0 4px rgba(20,184,166,.18); }
.sec-head { max-width: 780px; margin: 0 auto 54px; text-align: center; }

/* ── scroll reveal (site.js adds .in) ──────────────────────────────── */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="left"]  { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal="left"].in, [data-reveal="right"].in { transform: none; }

/* ── header ────────────────────────────────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 90;
  background: rgba(6,23,21,.78); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s ease;
}
header.site.scrolled { background: rgba(6,23,21,.94); box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
.scrollbar {
  position: absolute; left: 0; bottom: -1px; height: 2.5px; width: 0;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-300)); z-index: 91;
}
.nav { display: flex; align-items: center; gap: 26px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.18rem;
         color: #fff; text-decoration: none; letter-spacing: -.02em; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none;
  background: var(--grad); display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: .98rem;
  box-shadow: 0 4px 14px rgba(20,184,166,.4);
}
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav nav a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .92rem; font-weight: 600;
             transition: color .15s ease; }
.nav nav a:hover { color: #fff; }
.nav nav a.btn { color: var(--ink-900); }
#menu-toggle { display: none; }
.burger { display: none; }

/* ── buttons ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 24px; border-radius: 12px; font-weight: 700; font-size: .95rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 20px -6px rgba(20,184,166,.55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(20,184,166,.65); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal-500); color: var(--teal-700); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink-900); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(0,0,0,.5); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); transform: translateY(-2px); }
.btn-lg { padding: 15px 32px; font-size: 1.02rem; border-radius: 14px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ── HERO (dark) ───────────────────────────────────────────────────── */
.hero-dark {
  position: relative; color: #cfe6e2; overflow: hidden;
  background: radial-gradient(1200px 700px at 85% -10%, #0e4f49 0%, transparent 55%),
              radial-gradient(900px 600px at -10% 110%, #123f4d 0%, transparent 50%),
              linear-gradient(165deg, #04211f 0%, var(--ink-900) 45%, #06231f 100%);
  padding: 96px 0 110px;
}
.hero-dark::before, .hero-dark::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5;
  pointer-events: none; animation: mesh 16s ease-in-out infinite alternate;
}
.hero-dark::before { width: 560px; height: 560px; top: -160px; right: -80px;
  background: radial-gradient(circle, rgba(20,184,166,.5), transparent 65%); }
.hero-dark::after  { width: 480px; height: 480px; bottom: -180px; left: -120px;
  background: radial-gradient(circle, rgba(14,116,144,.45), transparent 65%);
  animation-delay: -8s; }
@keyframes mesh {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(40px, 30px) scale(1.12); }
}
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.02fr .98fr;
             gap: 60px; align-items: center; }
.hero-dark .eyebrow { background: rgba(20,184,166,.12); border-color: rgba(94,234,212,.25);
  color: var(--teal-300); }
.hero-dark h1 { color: #fff; margin-bottom: .4em; }
.hero-dark h1 em { font-style: normal; background: linear-gradient(90deg, var(--teal-300), #7dd3fc);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-dark .lede { color: #a7c4bf; max-width: 33em; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px;
  font-size: .87rem; color: #8fb5af; font-weight: 600; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row b { color: var(--teal-300); font-weight: 800; }
.trust-row span::before { content: "✓"; color: var(--teal-500); font-weight: 800; }

/* browser mockup */
.stage { position: relative; }
.browser {
  position: relative; border-radius: 20px; overflow: hidden;
  background: rgba(10,34,31,.72); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow-pop), inset 0 1px 0 rgba(255,255,255,.08);
}
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px;
  background: rgba(255,255,255,.05); border-bottom: 1px solid rgba(255,255,255,.09); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.22); }
.browser-bar i:nth-child(1) { background: #f87171aa; }
.browser-bar i:nth-child(2) { background: #fbbf24aa; }
.browser-bar i:nth-child(3) { background: #34d399aa; }
.browser-bar span { margin-left: 10px; font-size: .74rem; color: #8fb5af;
  font-family: ui-monospace, "SF Mono", monospace; letter-spacing: .02em; }
.browser-body { padding: 20px; min-height: 320px; }

/* scenes */
.scene { display: none; gap: 12px; grid-template-columns: 1fr; }
.scene.active { display: grid; }
.scene-title { display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem; font-weight: 700; color: #d9efeb; }
.scene-title small { color: #749993; font-weight: 600; }
.m-row { display: flex; align-items: center; gap: 12px; padding: 11px 13px;
  border-radius: 12px; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.07); }
.m-ava { width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: linear-gradient(140deg, #1c6b62, #0e3f3a);
  display: grid; place-items: center; font-size: .68rem; font-weight: 800; color: var(--teal-300); }
.m-lines { flex: 1; display: grid; gap: 6px; }
.m-bar { height: 8px; border-radius: 6px; background: rgba(255,255,255,.14); }
.m-bar.w40 { width: 40%; } .m-bar.w55 { width: 55%; } .m-bar.w70 { width: 70%; } .m-bar.w85 { width: 85%; }
.m-bar.grow { transform-origin: left; }
.m-chip { flex: none; font-size: .68rem; font-weight: 800; padding: 4px 10px; border-radius: 999px;
  letter-spacing: .04em; }
.m-chip.ok   { background: rgba(52,211,153,.16); color: #6ee7b7; border: 1px solid rgba(52,211,153,.3); }
.m-chip.now  { background: rgba(94,234,212,.14); color: var(--teal-300); border: 1px solid rgba(94,234,212,.3);
  animation: pulse 1.6s ease-in-out infinite; }
.m-chip.warn { background: rgba(251,191,36,.13); color: #fcd34d; border: 1px solid rgba(251,191,36,.3); }
.m-amount { flex: none; font-family: ui-monospace, monospace; font-size: .8rem; color: #d9efeb; font-weight: 700; }
.m-total { display: flex; justify-content: space-between; align-items: center; padding: 13px;
  border-radius: 12px; background: rgba(20,184,166,.1); border: 1px solid rgba(94,234,212,.25);
  font-weight: 800; color: #fff; }
.m-total .m-amount { font-size: 1.02rem; color: var(--teal-300); }
.m-stamp { justify-self: center; margin-top: 2px; font-weight: 900; letter-spacing: .2em;
  color: #6ee7b7; border: 2.5px solid #6ee7b7; padding: 5px 18px; border-radius: 10px;
  font-size: .9rem; transform: rotate(-4deg); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

/* staggered entrance every time a scene activates */
.scene .a { opacity: 0; }
.scene.active .a { animation: sceneIn .5s cubic-bezier(.2,.7,.2,1) both; }
.scene.active .a:nth-child(2) { animation-delay: .12s; }
.scene.active .a:nth-child(3) { animation-delay: .24s; }
.scene.active .a:nth-child(4) { animation-delay: .36s; }
.scene.active .a:nth-child(5) { animation-delay: .48s; }
.scene.active .a:nth-child(6) { animation-delay: .60s; }
@keyframes sceneIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.scene.active .m-bar.grow { animation: growBar .8s .3s cubic-bezier(.2,.7,.2,1) both; }
@keyframes growBar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* scene tabs */
.scene-tabs { display: flex; gap: 8px; justify-content: center; margin-top: 16px; position: relative; z-index: 2; }
.scene-tabs button {
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #9fc2bc;
  font: 600 .74rem var(--font); padding: 7px 13px; border-radius: 999px; cursor: pointer;
  transition: all .2s ease;
}
.scene-tabs button.active { background: rgba(20,184,166,.18); border-color: rgba(94,234,212,.45);
  color: var(--teal-300); }
.scene-tabs button:hover { color: #fff; }

/* floating toasts */
.float-card {
  position: absolute; z-index: 3; display: flex; gap: 10px; align-items: center;
  background: rgba(9,30,27,.85); backdrop-filter: blur(10px);
  border: 1px solid rgba(94,234,212,.25); border-radius: 14px; padding: 11px 15px;
  font-size: .78rem; font-weight: 700; color: #d9efeb;
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.6);
  animation: floaty 6s ease-in-out infinite;
}
.float-card .fc-ico { width: 28px; height: 28px; border-radius: 9px; flex: none; display: grid;
  place-items: center; background: rgba(52,211,153,.15); color: #6ee7b7; font-size: .85rem; }
.float-card small { display: block; font-weight: 600; color: #749993; }
.fc1 { top: -22px; right: -14px; }
.fc2 { bottom: -20px; left: -18px; animation-delay: -3s; }
.fc2 .fc-ico { background: rgba(251,191,36,.14); color: #fcd34d; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ── stats band ────────────────────────────────────────────────────── */
.statband { background: var(--ink-900); color: #fff; padding: 0; border-top: 1px solid rgba(255,255,255,.06); }
.statband .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 34px 20px; text-align: center; border-left: 1px solid rgba(255,255,255,.07); }
.stat-cell:first-child { border-left: none; }
.stat-num { font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 850; letter-spacing: -.03em;
  color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-num b { color: var(--teal-300); font-weight: inherit; }
.stat-lbl { font-size: .82rem; color: #85a8a2; font-weight: 600; margin-top: 6px; }

/* ── cards / grids ─────────────────────────────────────────────────── */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-5px); border-color: #cde4df;
  box-shadow: 0 4px 8px rgba(4,32,29,.05), 0 26px 48px -20px rgba(4,32,29,.28); }
.card h3 { margin-bottom: .4em; }
.card p { margin: 0; font-size: .94rem; }
.icon {
  width: 44px; height: 44px; border-radius: 13px; background: var(--teal-50);
  border: 1px solid var(--teal-100); display: grid; place-items: center; margin-bottom: 16px;
}
.icon svg { width: 21px; height: 21px; stroke: var(--teal-700); fill: none; stroke-width: 1.9; }

.tick { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.tick li { display: flex; gap: 12px; align-items: flex-start; font-size: .97rem; }
.tick li::before {
  content: ""; flex: none; margin-top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-50) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/11px no-repeat;
  border: 1px solid var(--teal-100);
}

/* ── module explorer ───────────────────────────────────────────────── */
.explorer { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.xp-rail { display: grid; gap: 8px; position: sticky; top: 96px; }
.xp-rail button {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px;
  font: 700 .93rem var(--font); color: var(--ink-2); cursor: pointer;
  transition: all .2s ease; position: relative; overflow: hidden;
}
.xp-rail button .xp-dot { width: 9px; height: 9px; border-radius: 50%; background: #cbdedb; flex: none;
  transition: all .2s ease; }
.xp-rail button:hover { border-color: var(--teal-500); color: var(--teal-700); }
.xp-rail button.active { background: var(--ink-900); border-color: var(--ink-900); color: #fff;
  box-shadow: 0 14px 30px -14px rgba(7,29,27,.55); }
.xp-rail button.active .xp-dot { background: var(--teal-300); box-shadow: 0 0 0 4px rgba(94,234,212,.2); }
.xp-rail button.active::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2.5px;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-300)); width: 100%;
  transform-origin: left; animation: xpTimer 6.5s linear forwards; }
.xp-rail.paused button.active::after { animation-play-state: paused; }
@keyframes xpTimer { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.xp-panel { position: relative; min-height: 430px; }
.xp-page { display: none; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 36px;
  box-shadow: var(--shadow-card); }
.xp-page.active { display: grid; animation: xpIn .45s cubic-bezier(.2,.7,.2,1) both; }
@keyframes xpIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.xp-page h3 { font-size: 1.45rem; }
.xp-page .tick { margin-top: 18px; }
.xp-page .tick li { font-size: .93rem; }

/* light mock inside explorer pages */
.mock { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 16px;
  display: grid; gap: 10px; }
.mock-head { display: flex; justify-content: space-between; align-items: center;
  font-size: .76rem; font-weight: 800; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.mock-row { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line);
  border-radius: 11px; padding: 10px 12px; }
.mock-row .m-ava { background: var(--teal-100); color: var(--teal-900); width: 27px; height: 27px; font-size: .62rem; }
.mock-row .m-bar { background: #dcebe8; height: 7px; }
.mock-row .m-amount { color: var(--ink); font-size: .78rem; }
.mock-chip { flex: none; font-size: .66rem; font-weight: 800; padding: 3.5px 9px; border-radius: 999px; }
.mock-chip.ok { background: #d1fae5; color: #047857; }
.mock-chip.now { background: var(--teal-100); color: var(--teal-900); }
.mock-chip.warn { background: #fef3c7; color: #92400e; }
.mock-chip.crit { background: #fee2e2; color: #b91c1c; }
.mock-total { display: flex; justify-content: space-between; padding: 11px 12px; border-radius: 11px;
  background: var(--teal-50); border: 1px solid var(--teal-100); font-weight: 800; color: var(--ink);
  font-size: .84rem; }
.xp-page.active .mock-row, .xp-page.active .mock-total { opacity: 0; animation: sceneIn .45s both; }
.xp-page.active .mock-row:nth-child(2) { animation-delay: .08s; }
.xp-page.active .mock-row:nth-child(3) { animation-delay: .16s; }
.xp-page.active .mock-row:nth-child(4) { animation-delay: .24s; }
.xp-page.active .mock-row:nth-child(5) { animation-delay: .32s; }
.xp-page.active .mock-total { animation-delay: .4s; }

/* ── patient journey ───────────────────────────────────────────────── */
.journey-wrap { position: relative; }
.journey-line { position: absolute; left: 0; right: 0; top: 27px; height: 3px;
  background: var(--line); border-radius: 3px; }
.journey-line i { display: block; height: 100%; width: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--teal-700), var(--teal-300)); transition: width .25s linear; }
.journey { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; position: relative; }
.jstep { text-align: center; padding-top: 0; }
.jstep .jdot { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line); display: grid; place-items: center;
  font-size: 1.15rem; transition: all .35s cubic-bezier(.2,.7,.2,1); position: relative; z-index: 2; }
.jstep h4 { font-size: .92rem; margin-bottom: .25em; }
.jstep p { font-size: .8rem; color: var(--ink-3); margin: 0; line-height: 1.5; }
.jstep.lit .jdot { border-color: var(--teal-500); background: var(--teal-50);
  box-shadow: 0 0 0 6px rgba(20,184,166,.14); transform: scale(1.08); }

/* ── built for Botswana (dark) ─────────────────────────────────────── */
.bw-dark { background:
    radial-gradient(900px 500px at 110% 0%, rgba(20,184,166,.12), transparent 55%),
    linear-gradient(160deg, var(--ink-900), #08312d 130%);
  color: #a7c4bf; padding: 96px 0; }
.bw-dark h2, .bw-dark h3 { color: #fff; }
.bw-dark .eyebrow { background: rgba(20,184,166,.12); border-color: rgba(94,234,212,.25); color: var(--teal-300); }
.bw-dark .lede { color: #a7c4bf; }
.bw-card { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 26px; transition: all .25s ease; }
.bw-card:hover { background: rgba(255,255,255,.07); border-color: rgba(94,234,212,.3); transform: translateY(-4px); }
.bw-card h3 { font-size: 1.05rem; }
.bw-card p { font-size: .9rem; margin: 0; color: #93b7b1; }
.bw-card .icon { background: rgba(20,184,166,.12); border-color: rgba(94,234,212,.2); }
.bw-card .icon svg { stroke: var(--teal-300); }
.scheme-rail { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.scheme-rail span { border: 1px solid rgba(94,234,212,.25); background: rgba(20,184,166,.08);
  color: var(--teal-300); font-size: .8rem; font-weight: 800; letter-spacing: .05em;
  padding: 8px 16px; border-radius: 999px; }

/* ── specialty chips ───────────────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: .88rem; font-weight: 650; padding: 10px 18px; border-radius: 999px;
  transition: all .18s ease; cursor: default; }
.chip:hover { border-color: var(--teal-500); color: var(--teal-700); background: var(--teal-50);
  transform: translateY(-3px); box-shadow: 0 10px 20px -12px rgba(15,118,110,.4); }

/* ── difference tiles ──────────────────────────────────────────────── */
.diff { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; background: #fff;
  box-shadow: var(--shadow-card); position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease; }
.diff:hover { transform: translateY(-5px); box-shadow: 0 26px 48px -20px rgba(4,32,29,.28); }
.diff::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--grad); }
.diff .no { font-size: .74rem; font-weight: 800; letter-spacing: .12em; color: var(--teal-700);
  text-transform: uppercase; margin-bottom: 10px; }
.diff h3 { font-size: 1.08rem; }
.diff p { font-size: .92rem; margin: 0; }

/* ── pricing ───────────────────────────────────────────────────────── */
.price-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.price-grid.three { grid-template-columns: repeat(3, 1fr); max-width: 1120px; }
.price {
  border: 1px solid var(--line); border-radius: 20px; padding: 34px; background: #fff;
  display: flex; flex-direction: column; box-shadow: var(--shadow-card);
  transition: transform .25s ease, box-shadow .25s ease;
}
.price:hover { transform: translateY(-5px); }
.price.featured { border-color: var(--teal-500); box-shadow: 0 0 0 4px rgba(20,184,166,.12), var(--shadow-pop);
  position: relative; }
.price .tag {
  position: absolute; top: -13px; left: 32px; background: var(--grad); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; box-shadow: 0 6px 14px -4px rgba(20,184,166,.5);
}
.amount { font-size: 2.8rem; font-weight: 850; color: var(--ink); letter-spacing: -.035em; line-height: 1.05; }
.amount small { font-size: .95rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.price .tick { margin: 22px 0 28px; }
.price .btn { margin-top: auto; }
.price-note { margin-top: 28px; font-size: .89rem; color: var(--ink-3); }

/* cost projector */
.projector { max-width: 900px; margin: 26px auto 0; background: var(--ink-900); color: #a7c4bf;
  border-radius: 20px; padding: 32px 36px; display: grid; grid-template-columns: 1.1fr .9fr;
  gap: 34px; align-items: center; box-shadow: var(--shadow-pop); }
.projector h3 { color: #fff; margin-bottom: .3em; }
.projector p { font-size: .88rem; margin: 0 0 18px; }
.projector input[type=range] { width: 100%; accent-color: var(--teal-500); cursor: pointer; }
.proj-months { font-size: .84rem; font-weight: 700; color: var(--teal-300); margin-top: 8px; }
.proj-out { display: grid; gap: 10px; }
.proj-line { display: flex; justify-content: space-between; font-size: .89rem;
  padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.1); }
.proj-line b { color: #fff; font-variant-numeric: tabular-nums; }
.proj-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; }
.proj-total span { font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.proj-total b { font-size: 1.9rem; color: var(--teal-300); letter-spacing: -.02em;
  font-variant-numeric: tabular-nums; }

/* ── tables ────────────────────────────────────────────────────────── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }
th, td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink); font-weight: 750; background: var(--bg-soft); }
td strong { color: var(--ink); }

/* ── faq ───────────────────────────────────────────────────────────── */
details.faq { border: 1px solid var(--line); border-radius: 15px; padding: 4px 22px; background: #fff;
  margin-bottom: 12px; transition: border-color .2s ease, box-shadow .2s ease; }
details.faq:hover { border-color: #cde4df; }
details.faq[open] { border-color: var(--teal-500); box-shadow: 0 12px 28px -18px rgba(15,118,110,.35); }
details.faq summary {
  cursor: pointer; font-weight: 750; color: var(--ink); padding: 17px 0; list-style: none;
  display: flex; align-items: center; gap: 12px; font-size: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+"; margin-left: auto; color: var(--teal-700); font-size: 1.5rem; font-weight: 400;
  line-height: 1; transition: transform .25s ease;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { padding-bottom: 16px; margin: 0; font-size: .95rem;
  animation: faqIn .3s ease both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── legal pages ───────────────────────────────────────────────────── */
.page-head { background:
    radial-gradient(700px 300px at 90% -40%, rgba(20,184,166,.14), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line); padding: 62px 0 50px; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .3em; }
.page-head .updated { font-size: .88rem; color: var(--ink-3); margin: 0; }
.legal { padding: 58px 0 84px; }
.legal h2 { font-size: 1.32rem; margin-top: 2.2em; padding-top: .3em; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.03rem; margin-top: 1.6em; }
.legal ul, .legal ol { padding-left: 1.25em; margin: 0 0 1em; }
.legal li { margin-bottom: .5em; }
.legal .toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 15px;
  padding: 22px 26px; margin-bottom: 40px; }
.legal .toc ol { margin: 0; columns: 2; column-gap: 36px; font-size: .92rem; }
.callout { border-left: 3px solid var(--teal-500); background: var(--teal-50);
  padding: 18px 22px; border-radius: 0 12px 12px 0; margin: 22px 0; font-size: .95rem; }
.callout p:last-child { margin-bottom: 0; }

/* ── contact ───────────────────────────────────────────────────────── */
.contact-card { display: flex; gap: 15px; align-items: flex-start; }
.contact-card .icon { margin-bottom: 0; flex: none; }
.contact-card a { font-weight: 650; text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }

/* ── cta band ──────────────────────────────────────────────────────── */
.band { position: relative; overflow: hidden; color: #fff; padding: 84px 0; text-align: center;
  background: radial-gradient(800px 400px at 20% 0%, rgba(94,234,212,.16), transparent 55%),
              linear-gradient(135deg, var(--teal-900), var(--teal-700)); }
.band h2 { color: #fff; }
.band p { color: #c8e9e5; max-width: 42em; margin-inline: auto; }
.band .cta-row { justify-content: center; }

/* ── footer ────────────────────────────────────────────────────────── */
footer.site { background: var(--ink-950); color: #7fa39d; padding: 62px 0 32px; font-size: .9rem; }
footer.site h4 { color: #fff; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase;
  margin-bottom: 15px; }
footer.site a { color: #b7d2cd; text-decoration: none; }
footer.site a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-brand .brand { color: #fff; margin-bottom: 13px; }
.foot-bottom { border-top: 1px solid #12312d; margin-top: 44px; padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between;
  font-size: .84rem; }
.pay-marks { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pay-marks span { border: 1px solid #1c3f3a; border-radius: 7px; padding: 5px 11px; font-size: .72rem;
  font-weight: 750; color: #b7d2cd; letter-spacing: .04em; background: #071d1b; }

/* back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 80; width: 46px; height: 46px;
  border-radius: 14px; border: 1px solid rgba(255,255,255,.14); background: rgba(7,29,27,.9);
  color: #fff; font-size: 1.1rem; cursor: pointer; display: grid; place-items: center;
  opacity: 0; pointer-events: none; transform: translateY(10px);
  transition: all .3s ease; backdrop-filter: blur(8px); }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--teal-700); }

/* placeholders that MUST be filled before submitting to a payment provider */
.tbc { color: var(--amber-d); font-weight: 650; }
footer.site .tbc { color: #fbbf24; }

/* ── responsive ────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .stage { max-width: 620px; margin: 0 auto; }
  .explorer { grid-template-columns: 1fr; }
  .xp-rail { position: static; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .journey { grid-template-columns: repeat(4, 1fr); row-gap: 40px; }
  .journey-line { display: none; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .hero-dark { padding: 72px 0 84px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .price-grid, .price-grid.three { grid-template-columns: 1fr; }
  .projector { grid-template-columns: 1fr; padding: 26px; }
  .xp-page { grid-template-columns: 1fr; padding: 26px; }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .statband .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat-cell { border-left: none; padding: 24px 12px; }
  .legal .toc ol { columns: 1; }
  .float-card { display: none; }

  /* CSS-only mobile menu */
  .burger { display: grid; place-items: center; margin-left: auto; width: 42px; height: 42px;
    border: 1px solid rgba(255,255,255,.18); border-radius: 11px; cursor: pointer;
    background: rgba(255,255,255,.05); }
  .burger span, .burger span::before, .burger span::after {
    content: ""; display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px;
    position: relative; }
  .burger span::before { position: absolute; top: -6px; }
  .burger span::after  { position: absolute; top: 6px; }
  .nav nav { position: absolute; top: 70px; left: 0; right: 0; background: rgba(6,23,21,.98);
    backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.08);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; display: none;
    box-shadow: 0 24px 40px -20px rgba(0,0,0,.7); }
  #menu-toggle:checked ~ nav { display: flex; }
  .nav nav a { padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav nav .btn { margin: 16px 0 0; border-bottom: none; }
}
@media (max-width: 460px) {
  .g4, .journey { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .browser-body { min-height: 350px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

@media print {
  header.site, footer.site, .band, .cta-row, .to-top { display: none; }
  body { font-size: 11pt; }
}
