/* ───────────────────────── MeterTab — tokenbar.app ─────────────────────────
   Static, no build. Dark, premium, gauge-themed. System fonts for speed + Apple feel. */

:root {
  --bg: #0a0b0f;
  --bg-2: #0e1017;
  --panel: rgba(255,255,255,.045);
  --panel-brd: rgba(255,255,255,.09);
  --ink: #f4f6fb;
  --ink-2: #aab2c5;
  --ink-3: #6b7386;
  --brand: #7c8cff;
  --brand-2: #a879ff;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --cyan: #56d4f0;
  --violet: #b79cff;
  --radius: 18px;
  --maxw: 1120px;
  --font: -apple-system, "SF Pro Display", BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  letter-spacing: -0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: normal; color: var(--brand); }
code { font-family: var(--mono); font-size: .88em; background: rgba(255,255,255,.07); padding: .1em .4em; border-radius: 6px; color: #dbe0ff; }

/* ── backgrounds ── */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 75%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 40% at 78% 8%, rgba(124,140,255,.20), transparent 70%),
    radial-gradient(45% 40% at 12% 18%, rgba(168,121,255,.16), transparent 70%),
    radial-gradient(60% 50% at 50% 110%, rgba(52,211,153,.08), transparent 70%);
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: .5em; justify-content: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: 12px; border: 0; cursor: pointer;
  box-shadow: 0 8px 24px -8px rgba(124,140,255,.6);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(124,140,255,.75); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-ghost { background: rgba(255,255,255,.06); box-shadow: none; border: 1px solid var(--panel-brd); }
.btn-ghost:hover { background: rgba(255,255,255,.1); box-shadow: none; }
.btn-block { display: flex; width: 100%; }

/* ── glass ── */
.glass {
  background: var(--panel);
  border: 1px solid var(--panel-brd);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
}

/* ── nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(10,11,15,.6); border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner { display: flex; align-items: center; gap: 20px; height: 62px; }
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.nav-brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }

/* ── hero ── */
.hero { padding: 84px 0 72px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: rgba(255,255,255,.05); border: 1px solid var(--panel-brd);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
h1 { font-size: clamp(38px, 5.2vw, 62px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; }
.grad { background: linear-gradient(115deg, var(--brand) 10%, var(--brand-2) 55%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lede { font-size: 19px; color: var(--ink-2); margin: 22px 0 30px; max-width: 34ch; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: var(--ink-3); font-size: 13.5px; font-weight: 500; }

/* ── hero art: menu bar + panel ── */
.hero-art { position: relative; }
.menubar {
  display: flex; align-items: center; gap: 10px;
  background: rgba(20,22,30,.9); border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px 12px 0 0; padding: 7px 12px; font-size: 12px; color: var(--ink-2);
}
.mb-dot { width: 10px; height: 10px; border-radius: 50%; }
.mb-red { background: #ff5f57; } .mb-amber { background: #febc2e; } .mb-green { background: #28c840; }
.mb-spacer { flex: 1; }
.mb-item { opacity: .6; font-size: 13px; }
.mb-clock { font-variant-numeric: tabular-nums; opacity: .8; }
.mb-pill {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink);
  background: rgba(124,140,255,.16); border: 1px solid rgba(124,140,255,.4);
  padding: 3px 9px; border-radius: 8px; font-variant-numeric: tabular-nums;
}
.mb-ring { width: 12px; height: 12px; border-radius: 50%; background: conic-gradient(var(--green) 0 38%, rgba(255,255,255,.15) 38% 100%); }

.panel { padding: 22px; margin-top: -1px; border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 40px 90px -40px rgba(0,0,0,.8); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
.panel-title { font-weight: 700; font-size: 15px; }
.panel-sub { color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.28); padding: 4px 10px; border-radius: 999px; }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); }

.gauge-wrap { position: relative; width: 172px; height: 172px; margin: 6px auto 20px; }
.gauge { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 11; }
.gauge-fill {
  fill: none; stroke: url(#g); stroke-width: 11; stroke-linecap: round;
  stroke: var(--green);
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  animation: fill 1.4s cubic-bezier(.16,1,.3,1) .2s forwards;
  filter: drop-shadow(0 0 8px rgba(52,211,153,.5));
}
@keyframes fill { to { stroke-dashoffset: 202.6; } } /* 38% used */
.gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gauge-pct { font-size: 46px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.gauge-pct span { font-size: 22px; color: var(--ink-3); margin-left: 2px; }
.gauge-label { color: var(--ink-3); font-size: 12px; margin-top: -2px; }

.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 20px; }
.stat { text-align: center; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 12px 6px; }
.stat-v { font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; }
.stat-l { color: var(--ink-3); font-size: 11.5px; margin-top: 2px; }

.heat-label { color: var(--ink-3); font-size: 11.5px; margin-bottom: 8px; }
.heat-grid { display: grid; grid-template-columns: repeat(18, 1fr); gap: 4px; }
.heat-grid i { aspect-ratio: 1; border-radius: 3px; background: rgba(255,255,255,.06); }
.heat-grid i.h1 { background: rgba(52,211,153,.28); }
.heat-grid i.h2 { background: rgba(52,211,153,.5); }
.heat-grid i.h3 { background: rgba(52,211,153,.72); }
.heat-grid i.h4 { background: var(--green); }

/* ── providers ── */
.providers { padding: 26px 0 8px; }
.providers-label { text-align: center; color: var(--ink-3); font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pill { font-size: 14px; font-weight: 600; color: var(--ink-2); background: rgba(255,255,255,.045); border: 1px solid var(--panel-brd); padding: 8px 16px; border-radius: 999px; }
.pill-hot { color: #fff; background: rgba(124,140,255,.16); border-color: rgba(124,140,255,.45); }

/* ── sections ── */
.section { padding: 84px 0; }
.section-eyebrow { color: var(--brand); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px; }
.section-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.section-subtitle { color: var(--ink-2); font-size: 18px; margin-top: 14px; max-width: 62ch; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col-rev .devices { order: -1; }

.ticks { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 16px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: -1px; color: var(--green); font-weight: 800; background: rgba(52,211,153,.14); width: 21px; height: 21px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; }

/* ── terminal ── */
.terminal { overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0,0,0,.8); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--panel-brd); }
.t-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.2); }
.t-dot:nth-child(1){background:#ff5f57;} .t-dot:nth-child(2){background:#febc2e;} .t-dot:nth-child(3){background:#28c840;}
.term-title { margin-left: 8px; color: var(--ink-3); font-size: 12.5px; font-family: var(--mono); }
.term-body { font-family: var(--mono); font-size: 13px; line-height: 1.85; padding: 20px 22px; color: var(--ink-2); overflow-x: auto; white-space: pre; }
.c-dim { color: var(--ink-3); } .c-cyan { color: var(--cyan); } .c-green { color: var(--green); }
.c-amber { color: var(--amber); } .c-red { color: var(--red); } .c-violet { color: var(--violet); }

/* ── features grid ── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; }
.card { padding: 26px; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.card:hover { transform: translateY(-4px); border-color: rgba(124,140,255,.4); background: rgba(124,140,255,.05); }
.f-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, rgba(124,140,255,.2), rgba(168,121,255,.14)); border: 1px solid rgba(124,140,255,.28); margin-bottom: 16px; }
.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 7px; }
.card p { color: var(--ink-2); font-size: 15px; }
.card a { color: var(--brand); }

/* ── companion devices ── */
.apps .devices { display: flex; align-items: center; justify-content: center; gap: 26px; position: relative; min-height: 380px; }
.phone { width: 210px; height: 420px; border-radius: 40px; padding: 12px; position: relative; box-shadow: 0 40px 90px -40px rgba(0,0,0,.85); }
.phone-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; background: #000; border-radius: 999px; }
.phone-screen { height: 100%; border-radius: 30px; background: linear-gradient(180deg, #12141c, #0b0d13); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; }
.p-ring { width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) 0 38%, rgba(255,255,255,.09) 38% 100%); position: relative; }
.p-ring::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: #0d0f16; }
.p-ring span { position: relative; z-index: 1; font-size: 34px; font-weight: 800; }
.p-ring span i { font-style: normal; font-size: 18px; color: var(--ink-3); }
.p-line { color: var(--ink-3); font-size: 13px; }
.p-bars { display: flex; gap: 6px; align-items: flex-end; height: 42px; margin-top: 4px; }
.p-bars span { width: 10px; background: linear-gradient(var(--brand), var(--brand-2)); border-radius: 3px; opacity: .85; }
.p-bars span:nth-child(1){height:40%;} .p-bars span:nth-child(2){height:70%;} .p-bars span:nth-child(3){height:55%;}
.p-bars span:nth-child(4){height:90%;} .p-bars span:nth-child(5){height:48%;} .p-bars span:nth-child(6){height:76%;} .p-bars span:nth-child(7){height:60%;}

.watch { width: 128px; height: 156px; border-radius: 36px; padding: 12px; box-shadow: 0 40px 90px -40px rgba(0,0,0,.85); align-self: center; }
.watch-screen { height: 100%; border-radius: 26px; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
.w-ring { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) 0 38%, rgba(255,255,255,.1) 38% 100%); position: relative; }
.w-ring::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #000; }
.w-ring span { position: relative; z-index: 1; font-size: 18px; font-weight: 800; }
.w-timer { color: var(--green); font-size: 14px; font-variant-numeric: tabular-nums; }

/* ── pricing ── */
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 20px; justify-content: center; margin-top: 44px; }
.price { padding: 30px; display: flex; flex-direction: column; }
.price h3 { font-size: 16px; color: var(--ink-2); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.price .amount { font-size: 46px; font-weight: 800; letter-spacing: -.03em; margin-top: 8px; }
.amount-note { color: var(--ink-3); font-size: 14px; margin-bottom: 20px; }
.price ul { list-style: none; display: grid; gap: 11px; margin-bottom: 24px; }
.price li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: 15px; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.price li strong { color: var(--ink); }
.price .btn, .price .btn-ghost { margin-top: auto; }
.price.featured { border-color: rgba(124,140,255,.5); background: linear-gradient(180deg, rgba(124,140,255,.09), rgba(168,121,255,.04)); position: relative; box-shadow: 0 30px 80px -44px rgba(124,140,255,.6); }
.tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }
.trial-note { text-align: center; color: var(--ink-3); font-size: 12.5px; margin-top: 10px; }
.micro { text-align: center; color: var(--ink-3); font-size: 13px; margin-top: 22px; }

/* ── privacy banner ── */
.privacy-banner { display: flex; gap: 20px; align-items: center; padding: 26px 30px; }
.pb-badge { font-size: 30px; flex-shrink: 0; width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; background: rgba(52,211,153,.12); border: 1px solid rgba(52,211,153,.3); }
.privacy-banner p { color: var(--ink-2); font-size: 15.5px; }
.privacy-banner a { color: var(--green); font-weight: 600; }

/* ── faq ── */
.faq { display: grid; gap: 12px; margin-top: 36px; max-width: 820px; }
.faq details { padding: 4px 22px; transition: background .15s; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16.5px; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 22px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); font-size: 15px; padding-bottom: 18px; max-width: 68ch; }
.faq code { font-size: .85em; }

/* ── footer ── */
footer { border-top: 1px solid rgba(255,255,255,.06); padding: 34px 0; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; }
.foot-brand img { width: 22px; height: 22px; border-radius: 6px; }
.footer-links { display: flex; gap: 22px; margin-left: auto; }
.footer-links a { color: var(--ink-2); font-size: 14px; }
.footer-links a:hover { color: var(--ink); }
.foot-copy { color: var(--ink-3); font-size: 13px; width: 100%; }

/* ── responsive ── */
@media (max-width: 900px) {
  .hero-inner, .two-col { grid-template-columns: 1fr; gap: 40px; }
  .two-col-rev .devices { order: 0; }
  .grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .lede { max-width: none; }
  .prices { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding: 54px 0 48px; }
  .section { padding: 60px 0; }
  .hero-meta { gap: 12px; }
  .devices { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .gauge-fill { stroke-dashoffset: 202.6; }
}

/* ── document pages (privacy / support / 404) ── */
.doc { max-width: 760px; margin: 0 auto; padding: 70px 24px 90px; }
.doc h1 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -.03em; margin-bottom: 6px; }
.doc .updated { color: var(--ink-3); font-size: 14px; margin-bottom: 34px; }
.doc h2 { font-size: 21px; font-weight: 700; margin: 34px 0 10px; letter-spacing: -.02em; }
.doc p, .doc li { color: var(--ink-2); font-size: 16px; }
.doc p { margin-bottom: 14px; }
.doc ul { margin: 0 0 16px 22px; display: grid; gap: 8px; }
.doc a { color: var(--brand); }
.doc strong { color: var(--ink); }
.doc .back { display: inline-block; margin-bottom: 30px; color: var(--ink-2); font-size: 14px; }
.doc .lead { font-size: 18px; color: var(--ink); }
.center-wrap { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 24px; }
