/* mesolens.app: one night-market scroll. The app's own world: deep navy, the meso coin's gold,
   Nunito, and the in-game price badges (green deal, amber above market, red overpriced). */
@font-face {
  font-family: 'Nunito';
  src: url('/assets/nunito.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}
:root {
  --night: #0a0f21;
  --deep: #10172f;
  --panel: #151e3c;
  --panel-hi: #1b2650;
  --line: rgba(150, 172, 255, 0.14);
  --ink: #eef1fb;
  --muted: #a9b2d2;
  --faint: #737ea3;
  --gold: #f39a2b;
  --gold-hi: #ffbe5c;
  --gold-ink: #2a1500;
  --deal: #3fe08e;
  --above: #ffb547;
  --over: #ff6b6b;
  --sans: 'Nunito', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'Consolas', monospace;
  --max: 1120px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 500 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
h1, h2, h3 { line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
h1 { font-weight: 900; font-size: clamp(38px, 6vw, 64px); }
h2 { font-weight: 900; font-size: clamp(28px, 4vw, 42px); }
h3 { font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
p { margin: 0; }
.lede { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 60ch; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 13px; font-weight: 800; color: var(--gold-hi); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---- the bar at the top ---- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: rgba(10, 15, 33, 0.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
body::before { content: ''; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--night); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 900; font-size: 21px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; }
.brand b { color: var(--gold-hi); font-weight: 900; }
.top nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.top nav a { color: var(--muted); font-weight: 700; font-size: 15px; }
.top nav a:hover { color: var(--ink); text-decoration: none; }
.top nav a.btn, .top nav a.btn:hover { color: var(--gold-ink); }
@media (max-width: 720px) { .top nav .opt { display: none; } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 12px; font-weight: 800; font-size: 17px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 60%, #e07f14 100%); color: var(--gold-ink); border-color: #b9650d; box-shadow: 0 8px 28px rgba(243, 154, 43, 0.28); }
.btn-gold:hover { box-shadow: 0 10px 34px rgba(243, 154, 43, 0.4); }
.btn-ghost { background: rgba(150, 172, 255, 0.08); color: var(--ink); border-color: var(--line); }
.btn small { font-weight: 700; opacity: 0.75; font-size: 13px; }
.btn-sm { padding: 8px 14px; font-size: 15px; border-radius: 10px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding-block: 72px 56px; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(243, 154, 43, 0.18), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero .copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 em { font-style: normal; color: var(--gold-hi); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 15px; font-weight: 700; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust span::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--deal); box-shadow: 0 0 10px rgba(63, 224, 142, 0.7); }
.shopframe { position: relative; border-radius: 16px; padding: 10px; background: linear-gradient(160deg, #2c5a95, #1f3f6e); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.shopframe img { border-radius: 10px; width: 100%; image-rendering: auto; }
.shopframe .cap { position: absolute; left: 16px; bottom: -14px; background: var(--deep); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 800; color: var(--muted); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-block: 44px 40px; } }

/* ---- badges, as in the game ---- */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge { display: grid; gap: 1px; padding: 8px 12px 8px 14px; border-radius: 10px; background: #0c1226; border: 1px solid var(--line); border-left: 3px solid var(--c); min-width: 168px; }
.badge b { color: var(--c); font-size: 14px; display: flex; justify-content: space-between; gap: 18px; }
.badge span { color: var(--faint); font-size: 12.5px; font-family: var(--mono); }
.badge.deal { --c: var(--deal); } .badge.above { --c: var(--above); } .badge.over { --c: var(--over); }

/* ---- sections ---- */
section { padding-block: 72px; }
.sec-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 760px; }
.band { background: linear-gradient(180deg, var(--deep), var(--night)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* features: picture and words, side by side, alternating */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-block: 28px; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature:nth-child(even) .media { order: 2; }
.feature .words { display: grid; gap: 14px; min-width: 0; }
.feature .words p { color: var(--muted); }
.feature .media { min-width: 0; }
.feature .media img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4); margin-inline: auto; }
.tier-tag { justify-self: start; font-size: 12px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; background: rgba(243, 154, 43, 0.14); color: var(--gold-hi); border: 1px solid rgba(243, 154, 43, 0.35); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ''; position: absolute; left: 3px; top: 0.55em; width: 11px; height: 6px; border-left: 2.5px solid var(--deal); border-bottom: 2.5px solid var(--deal); transform: rotate(-45deg); }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 22px; } .feature:nth-child(even) .media { order: 0; } }

.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.more div { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: grid; gap: 6px; }
.more b { font-size: 17px; }
.more span { color: var(--muted); font-size: 15px; }
@media (max-width: 800px) { .more { grid-template-columns: 1fr; } }

/* safe by design */
.safe { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.safe .col { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; display: grid; gap: 14px; align-content: start; }
.safe .col.no .ticks li::before { width: 12px; height: 12px; border: 0; transform: none; top: 0.45em; background: linear-gradient(45deg, transparent 43%, var(--over) 43%, var(--over) 57%, transparent 57%), linear-gradient(-45deg, transparent 43%, var(--over) 43%, var(--over) 57%, transparent 57%); }
.fine { color: var(--faint); font-size: 14px; margin-top: 18px; max-width: 80ch; }
@media (max-width: 800px) { .safe { grid-template-columns: 1fr; } }

/* everyone makes the prices */
.crowd { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; }
.earn { background: radial-gradient(120% 120% at 0% 0%, rgba(63, 224, 142, 0.12), transparent 60%), var(--panel); border: 1px solid rgba(63, 224, 142, 0.3); border-radius: 18px; padding: 26px 28px; display: grid; gap: 12px; }
.earn .big { font-size: 46px; font-weight: 900; line-height: 1; color: var(--deal); }
.bar { height: 10px; border-radius: 99px; background: rgba(150, 172, 255, 0.12); overflow: hidden; }
.bar i { display: block; height: 100%; width: 72%; background: linear-gradient(90deg, #2bbf75, var(--deal)); border-radius: 99px; }
@media (max-width: 860px) { .crowd { grid-template-columns: 1fr; } }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 16px; position: relative; }
.plan.pop { border-color: rgba(243, 154, 43, 0.6); background: linear-gradient(180deg, rgba(243, 154, 43, 0.1), transparent 40%), var(--panel); }
.plan .flag { position: absolute; top: -12px; left: 22px; background: var(--gold); color: var(--gold-ink); font-size: 12px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font-size: 40px; font-weight: 900; letter-spacing: -0.02em; }
.price span { color: var(--faint); font-weight: 700; }
.plan .ticks { font-size: 15px; align-content: start; }
.plan .ticks li.inc { color: var(--faint); }
.plan .ticks li.inc::before { border-color: var(--faint); }
.plan .how { color: var(--faint); font-size: 13.5px; }
@media (max-width: 1000px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan-note { margin-top: 22px; color: var(--muted); font-size: 15px; display: grid; gap: 6px; }
.donate { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--muted); }
.donate b { color: var(--ink); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 800; font-size: 18px; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--gold-hi); font-weight: 900; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); padding-bottom: 16px; }

/* last call */
.final { text-align: center; padding-block: 84px; position: relative; overflow: hidden; }
.final::before { content: ''; position: absolute; left: 50%; top: 40%; width: 640px; max-width: 100%; height: 420px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(243, 154, 43, 0.2), transparent); pointer-events: none; }
.final .wrap { position: relative; display: grid; gap: 22px; justify-items: center; }
.final img.coin { width: 88px; height: 88px; filter: drop-shadow(0 10px 30px rgba(243, 154, 43, 0.45)); }

/* footer */
footer { border-top: 1px solid var(--line); padding-block: 40px; color: var(--faint); font-size: 14px; }
footer .wrap { display: grid; gap: 18px; }
footer .row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer nav a { color: var(--muted); font-weight: 700; }

/* download page and the legal pages */
.page { padding-block: 56px 72px; }
.page .wrap { max-width: 860px; display: grid; gap: 24px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px 16px 62px; position: relative; color: var(--muted); }
.steps li b { color: var(--ink); }
.steps li::before { content: counter(s); position: absolute; left: 18px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: rgba(243, 154, 43, 0.16); color: var(--gold-hi); font-weight: 900; display: grid; place-items: center; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; font-size: 15px; }
.kv dt { color: var(--faint); font-weight: 700; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.legal { color: var(--muted); }
.legal h1 { color: var(--ink); font-size: clamp(30px, 4vw, 42px); margin-bottom: 6px; }
.legal h2 { color: var(--ink); font-size: 22px; margin: 26px 0 8px; }
.legal p, .legal li { margin: 0 0 10px; }
.legal ul { padding-left: 22px; }
.notfound { text-align: center; padding-block: 120px; display: grid; gap: 18px; justify-items: center; }
