/* QuotaPlug design system. Claude-like warm dark, clay orange, cartoon outlines and hard shadows. */
:root {
  --bg: #262624;
  --bg-deep: #1f1e1d;
  --surface: #30302e;
  --surface-2: #3a3936;
  --ink: #141413;
  --text: #f5f4ee;
  --muted: #b5b2a8;
  --faint: #8a877e;
  --line: #4a4844;
  --orange: #d97757;
  --orange-hi: #ec8d6a;
  --orange-soft: rgba(217, 119, 87, 0.14);
  --cream: #f0ead9;
  --green: #8fbf7f;
  --red: #e26d5c;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-lg: 6px 6px 0 var(--ink);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--orange-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--cream); }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 3px solid var(--orange-hi); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 680px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 0.78rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--orange-hi); margin-bottom: 18px;
}
.hl { color: var(--orange-hi); }
.squiggle { background: linear-gradient(transparent 62%, var(--orange-soft) 62%); padding: 0 4px; border-radius: 4px; }
code, kbd, .mono { font-family: var(--font-mono); font-size: 0.92em; }
:not(pre) > code { background: var(--surface-2); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(38, 38, 36, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 1.15rem/1 var(--font-display); }
.brand svg { width: 30px; height: 30px; flex: none; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.top .cta-row { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 2px solid var(--line); color: var(--text); border-radius: 10px; padding: 6px 10px; font: inherit; cursor: pointer; }
@media (max-width: 900px) {
  .nav, .top .cta-row .login { display: none; }
  .menu-btn { display: inline-block; margin-left: 0; }
  .top .cta-row { margin-left: auto; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-deep); padding: 16px 20px 22px; gap: 14px; border-bottom: 1px solid var(--line); margin: 0; }
}
@media (max-width: 480px) { .top .cta-row .btn { padding: 8px 10px; font-size: 0.84rem; } .brand { font-size: 1.02rem; gap: 7px; } .brand svg { width: 26px; height: 26px; } .menu-btn { padding: 5px 8px; } }
@media (max-width: 360px) { .top .cta-row .btn { display: none; } }
.split-card { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.split-cmd { min-width: 280px; }
@media (max-width: 640px) { .split-card { grid-template-columns: 1fr; } .split-cmd { min-width: 0; } }
.prose :not(pre) > code { overflow-wrap: anywhere; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; border: 2px solid var(--ink);
  font: 600 0.98rem/1.1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--orange); color: var(--ink); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--orange-hi); color: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn-primary:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.btn-lg { padding: 15px 24px; font-size: 1.05rem; border-radius: 14px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Cards */
.card {
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px;
}
.card.soft { border-color: var(--line); box-shadow: none; }
.grid { display: grid; gap: 22px; }
.grid > *, .card, .table-wrap { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

section { padding: 84px 0; }
section.tight { padding: 56px 0; }
.band { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: 14px; }

/* Hero */
.hero { padding: 72px 0 56px; position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 48px; align-items: center; }
@media (max-width: 980px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }
.hero .actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 18px; }
.hero .fine { color: var(--faint); font-size: 0.9rem; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--muted); font-size: 0.86rem;
}
.pill b { color: var(--text); font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(143,191,127,0.18); }

/* Terminal */
.term {
  background: #191918; border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); overflow: hidden; font: 13.5px/1.6 var(--font-mono);
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #232321; border-bottom: 1.5px solid var(--ink); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #4a4844; display: block; }
.term-bar i:first-child { background: #e26d5c; } .term-bar i:nth-child(2) { background: #e8b44e; } .term-bar i:nth-child(3) { background: #8fbf7f; }
.term-bar span { margin-left: 8px; color: var(--faint); font-size: 12px; }
.term pre { margin: 0; padding: 18px 18px 20px; white-space: pre-wrap; word-break: break-word; color: #d9d6cc; }
.t-dim { color: #7d7a72; } .t-or { color: var(--orange-hi); } .t-gr { color: var(--green); } .t-red { color: var(--red); } .t-b { color: #fff; font-weight: 700; }

/* Copy-to-clipboard command */
.cmd {
  display: inline-flex; align-items: center; gap: 12px; max-width: 100%;
  background: #191918; border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow);
  padding: 11px 12px 11px 16px; font: 500 0.95rem var(--font-mono); color: var(--cream);
}
.cmd .prompt { color: var(--orange-hi); }
.cmd code { background: none; border: 0; padding: 0; overflow-x: auto; white-space: nowrap; }
.cmd button { background: var(--surface-2); color: var(--muted); border: 1.5px solid var(--line); border-radius: 8px; padding: 5px 10px; font: 600 0.78rem var(--font-body); cursor: pointer; }
.cmd button:hover { color: var(--text); }

/* Stats */
.stat { font: 700 clamp(2.4rem, 4.6vw, 3.4rem)/1 var(--font-display); color: var(--orange-hi); margin-bottom: 10px; }
.stat-label { color: var(--muted); font-size: 0.98rem; }
.leak h3 { margin-top: 6px; }
.leak .fix { margin-top: 16px; padding-top: 16px; border-top: 1.5px dashed var(--line); color: var(--text); }
.leak .fix b { color: var(--green); }
.num-badge {
  width: 38px; height: 38px; border-radius: 12px; border: 2px solid var(--ink); background: var(--orange);
  color: var(--ink); display: grid; place-items: center; font: 700 1.05rem var(--font-display); box-shadow: 3px 3px 0 var(--ink);
}

/* Bars (burn chart) */
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 60px; gap: 12px; align-items: center; font-size: 0.92rem; }
.bar-track { height: 16px; background: var(--surface-2); border-radius: 8px; border: 1.5px solid var(--ink); overflow: hidden; }
.bar-fill { height: 100%; background: var(--orange); }
.bar-fill.after { background: var(--green); }
@media (max-width: 520px) { .bar-row { grid-template-columns: 96px 1fr 48px; font-size: 0.82rem; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font: 600 0.82rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
td.us, th.us { background: rgba(217, 119, 87, 0.08); }
.yes { color: var(--green); font-weight: 600; }
.no { color: var(--faint); }
.part { color: #e8b44e; }

/* Pricing */
.toggle { display: inline-flex; background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; padding: 4px; box-shadow: var(--shadow); }
.toggle button { background: none; border: 0; color: var(--muted); font: 600 0.95rem var(--font-body); padding: 9px 16px; border-radius: 10px; cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--orange); color: var(--ink); }
.save { font: 700 0.72rem var(--font-mono); background: var(--green); color: var(--ink); padding: 3px 7px; border-radius: 6px; margin-left: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 36px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } }
.plan { display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: var(--ink); background: linear-gradient(180deg, rgba(217,119,87,0.16), var(--surface) 46%); box-shadow: var(--shadow-lg); }
.plan .tag { position: absolute; top: -14px; right: 18px; background: var(--orange); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 12px; font: 700 0.78rem var(--font-body); }
.plan .for { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.price { font: 700 3rem/1 var(--font-display); }
.price small { font: 500 0.95rem var(--font-body); color: var(--muted); margin-left: 4px; }
.price-note { color: var(--faint); font-size: 0.86rem; margin: 8px 0 20px; min-height: 1.4em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: 0.95rem; }
.plan li { padding-left: 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 14px; border-radius: 4px; background: var(--orange); border: 1.5px solid var(--ink); }
.plan .btn { margin-top: auto; width: 100%; }
.roi { margin-top: 10px; font-size: 0.88rem; color: var(--green); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq details[open] { border-color: var(--ink); box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font: 600 1.4rem var(--font-mono); color: var(--orange-hi); }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 0 18px; color: var(--muted); }

/* Prose (guides, docs, compare) */
.prose { font-size: 1.04rem; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: #e4e1d7; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose pre { background: #191918; border: 2px solid var(--ink); border-radius: 12px; padding: 16px; overflow-x: auto; font: 13.5px/1.6 var(--font-mono); box-shadow: var(--shadow); }
.prose blockquote { margin: 1.4em 0; padding: 14px 18px; border-left: 4px solid var(--orange); background: var(--surface); border-radius: 0 12px 12px 0; }
.prose .table-wrap { margin: 1.4em 0; }
.answer { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin: 0 0 32px; }
.answer .label { font: 700 0.75rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--orange-hi); margin-bottom: 8px; }
.answer p:last-child { margin-bottom: 0; }
.crumbs { font-size: 0.86rem; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.meta-line { color: var(--faint); font-size: 0.9rem; margin-bottom: 26px; }
.toc { background: var(--bg-deep); border: 1.5px solid var(--line); border-radius: 14px; padding: 16px 20px; margin: 0 0 28px; font-size: 0.95rem; }
.toc b { display: block; margin-bottom: 6px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.inline-cta {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  background: linear-gradient(120deg, rgba(217,119,87,0.18), var(--surface)); border: 2px solid var(--ink);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin: 2em 0;
}
.inline-cta svg { width: 54px; height: 54px; }
.inline-cta p { margin: 0; color: var(--text); }
.inline-cta strong { display: block; font-family: var(--font-display); font-size: 1.2rem; }
@media (max-width: 640px) { .inline-cta { grid-template-columns: 1fr; } }
.related { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.related a { display: block; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; color: var(--text); text-decoration: none; }
.related a:hover { border-color: var(--orange); }
.related small { display: block; color: var(--faint); margin-top: 4px; }

/* Verdict boxes */
.verdict { margin: 1.8em 0; padding: 20px 22px; background: linear-gradient(180deg, rgba(217,119,87,0.14), var(--surface)); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.verdict h3 { margin: 0 0 8px; font-size: 1.15rem; color: var(--orange-hi); }
.verdict p:last-child { margin-bottom: 0; }

/* Forms */
.form { display: grid; gap: 14px; }
.form label { font-weight: 600; font-size: 0.92rem; }
.input {
  width: 100%; padding: 13px 14px; border-radius: 12px; border: 2px solid var(--line); background: var(--bg-deep);
  color: var(--text); font: 16px var(--font-body);
}
.input:focus { border-color: var(--orange); outline: none; }
.msg { font-size: 0.92rem; min-height: 1.3em; }
.msg.err { color: var(--red); } .msg.ok { color: var(--green); }
.auth-box { max-width: 440px; margin: 0 auto; }

/* Account */
.kpi { font: 700 2rem/1 var(--font-display); }
.kpi-label { color: var(--muted); font-size: 0.86rem; margin-top: 6px; }
.key-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.key-row code { font-size: 0.95rem; padding: 8px 12px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 700 0.76rem var(--font-body); border: 1.5px solid var(--ink); }
.badge.live { background: var(--green); color: var(--ink); }
.badge.warn { background: #e8b44e; color: var(--ink); }
.badge.off { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
.hidden { display: none !important; }
.nav .mobile-only { display: none; }
.nav.open .mobile-only { display: block; }
.dash { display: grid; gap: 22px; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.devices { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.devices li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--bg-deep); border: 1.5px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.devices small { color: var(--faint); display: block; }
.btn-small { padding: 7px 12px; font-size: 0.85rem; box-shadow: none; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 90px; margin-top: 14px; }
.spark i { flex: 1; background: var(--orange); border-radius: 4px 4px 0 0; min-height: 3px; opacity: .9; }
.spark i.zero { background: var(--surface-2); }
.code-big { font: 700 clamp(2rem, 6vw, 2.8rem)/1 var(--font-mono); letter-spacing: 0.08em; color: var(--orange-hi); text-align: center; margin: 14px 0; }
.or { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 0.85rem; margin: 6px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#checkout-mount { margin-top: 18px; border-radius: 12px; overflow: hidden; }
.roi { display: grid; gap: 16px; }
.roi input[type=range] { width: 100%; accent-color: var(--orange); }
.roi-out { font: 700 1.6rem/1.2 var(--font-display); }

/* Footer */
.foot { background: var(--bg-deep); border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; font-size: 0.92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot h4 { font: 600 0.8rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 0 0 12px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot .legal { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.84rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Mascot animation */
.flame-wiggle { transform-origin: 50% 90%; animation: wiggle 3.2s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(-2deg) scaleY(1); } 50% { transform: rotate(2deg) scaleY(1.04); } }
@media (prefers-reduced-motion: reduce) { .flame-wiggle { animation: none; } html { scroll-behavior: auto; } }

.quote { font: 500 1.25rem/1.5 var(--font-display); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.faq details, .faq summary, .answer p, .lead { min-width: 0; overflow-wrap: break-word; }
.faq summary code, .faq code { overflow-wrap: anywhere; }

/* Mobile: center everything short (titles, intros, buttons, tiles, prices, footer).
   Keep left-aligned what reads better that way: long text, lists, tables, code, terminal, forms, FAQ. */
@media (max-width: 640px) {
  .hero .hero-grid > div:first-child, .eyebrow, h1, h2, .lead, .quote,
  .card.soft, .card.leak, .num-badge, .stat, .stat-label, .kpi, .kpi-label,
  .plan, .inline-cta, .auth-box, .dash-head, .split-card, .foot { text-align: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero .actions, .inline-cta .actions, .dash-head, .foot .legal, .toggle-row { justify-content: center; }
  .hero .actions .btn { flex: 1 1 100%; }
  .num-badge { margin-left: auto; margin-right: auto; }
  .grid.g2 > div > .btn { display: flex; justify-content: center; }
  .dash-head { flex-direction: column; align-items: center; gap: 12px; }
  .foot-grid { grid-template-columns: 1fr 1fr; justify-items: center; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .foot .brand { justify-content: center; }
  /* stays left */
  .prose, .prose *, .plan ul, .plan li, .leak .fix, table, .table-wrap, .cmd, .term, pre, form, label, input, .faq, .answer, .toc, .crumbs, .meta-line, .bars, .roi { text-align: left; }
}

/* ===================== Visual layer: glass header, reveal, hover, illustrations ===================== */
html { scroll-padding-top: 84px; }
[id] { scroll-margin-top: 84px; }

/* Liquid-glass header: translucent, blurred, no hard line. The blur fades out at the bottom edge. */
.top { background: none; border-bottom: 0; backdrop-filter: none; -webkit-backdrop-filter: none; }
.top::before {
  content: ""; position: absolute; inset: 0 0 -18px; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(38, 38, 36, 0.74), rgba(38, 38, 36, 0.34));
  backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
  -webkit-mask-image: linear-gradient(#000 calc(100% - 24px), transparent); mask-image: linear-gradient(#000 calc(100% - 24px), transparent);
}
@media (max-width: 900px) {
  .nav.open { max-height: calc(100svh - 64px); overflow: auto; overscroll-behavior: contain; align-items: center; text-align: center; background: rgba(31, 30, 29, 0.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 0; border-radius: 0 0 18px 18px; box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28); }
}
.nav a { position: relative; padding: 4px 0; transition: color 0.15s ease; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--orange); scale: 0 1; transform-origin: left; transition: scale 0.2s ease; }
.nav a:hover::after, .nav a[aria-current="page"]::after { scale: 1 1; }

/* Hero: soft glow under the glass header, entrance without JS */
.hero::before { content: ""; position: absolute; inset: -90px 0 0; pointer-events: none; background: radial-gradient(52% 70% at 74% 28%, rgba(217, 119, 87, 0.17), transparent 72%), radial-gradient(40% 50% at 8% 20%, rgba(232, 180, 78, 0.07), transparent 70%); }
.hero-grid { position: relative; }
.rise { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--rd, 0s) backwards; }
@keyframes rise { from { opacity: 0; translate: 0 16px; } }

/* Scroll reveal: the hidden state exists only when JS marked the page; it never animates itself. */
html.js-reveal .reveal:not(.in) { opacity: 0; translate: 0 14px; }
.reveal.in {
  transition: opacity 0.55s ease var(--rd, 0s), translate 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) var(--rd, 0s),
    transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
@media print { html.js-reveal .reveal:not(.in) { opacity: 1 !important; translate: none !important; } }

/* Hover states */
.card, .related a, .gcard, .cmd, .pill, .faq details, .kpi-t { transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease; }
@media (hover: hover) {
  .card.leak:hover, .card.plan:hover, .card.step:hover, .card.feat:hover, .ba-card:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--ink); border-color: var(--orange); }
  .card.soft:hover { background: var(--surface-2); box-shadow: var(--shadow); }
  .related a:hover { transform: translateY(-2px); box-shadow: 4px 4px 0 var(--ink); background: var(--surface-2); }
  .gcard:hover { transform: translateY(-3px); box-shadow: 6px 6px 0 var(--ink); border-color: var(--orange); }
  .cmd:hover { transform: translateY(-1px); box-shadow: 5px 5px 0 var(--ink); }
}
.btn-ghost { transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--orange); transform: translateY(-1px); }
.btn-ghost:active { transform: translateY(1px); }
.btn-primary:focus-visible, .btn-ghost:focus-visible { outline-offset: 4px; }
.pill:hover { border-color: var(--orange); color: var(--text); }
.toggle button { transition: background 0.15s ease, color 0.15s ease; }
.toggle button:not([aria-pressed="true"]):hover { background: var(--surface-2); color: var(--text); }
.cmd button { transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.cmd button:hover { background: var(--orange); color: var(--ink); border-color: var(--ink); }
.crumbs a:hover, .toc a:hover { color: var(--orange-hi); }
.table-wrap tbody tr { transition: background-color 0.15s ease; }
.table-wrap tbody tr:hover td { background: rgba(255, 255, 255, 0.04); }
.table-wrap tbody tr:hover td.us { background: rgba(217, 119, 87, 0.16); }
.faq details:hover { border-color: var(--orange); }
.faq summary { transition: color 0.15s ease; }
.faq summary:hover { color: var(--orange-hi); }
.faq summary::after { transition: transform 0.2s ease; }
.faq summary:hover::after { transform: scale(1.25); }
.foot ul a { display: inline-block; transition: color 0.15s ease, transform 0.15s ease; }
.foot ul a:hover { transform: translateX(3px); }

/* ---------- The flame (Mascotte 2.0) ----------
   Idle: slow sway + a blink now and then. Hover (.is-lit, set by site.js): the outline morphs (SMIL),
   body and core flicker on different rhythms, embers rise, warm glow. Sometimes (.is-doused): water falls,
   the flame gasps and goes out in a puff of smoke, then relights with a bounce. */
.qp-flame { overflow: visible; }
.qp-flame .fl-body, .qp-flame .fl-inner, .qp-flame .fl-eyes, .qp-flame .fl-drop, .qp-flame .fl-s, .qp-flame .fl-p, .qp-flame .fl-e, .qp-flame .fl-face { transform-box: fill-box; }
.qp-flame .fl-body { transform-origin: 50% 100%; transition: filter .3s ease; }
.qp-flame .fl-inner { transform-origin: 50% 100%; }
.qp-flame .fl-eyes { transform-origin: 50% 50%; animation: fl-blink 5.5s infinite; }
.qp-flame .fl-oh, .qp-flame .fl-water, .qp-flame .fl-smoke, .qp-flame .fl-e { opacity: 0; }
.qp-flame .fl-s { fill: #8CC8F5; }
.qp-flame .fl-p { fill: #B9B3A8; }
@keyframes fl-blink { 0%, 93%, 100% { transform: scaleY(1); } 95.5% { transform: scaleY(.1); } }

.qp-flame.is-lit { filter: drop-shadow(0 0 5px rgba(240, 140, 95, .55)); animation: fl-glow 1.6s ease-in-out infinite; }
.qp-flame.is-lit .flame-wiggle { animation-play-state: paused; }
.qp-flame.is-lit .fl-body { animation: fl-flicker .62s linear infinite; }
.qp-flame.is-lit .fl-inner { animation: fl-core .41s ease-in-out infinite alternate; }
.qp-flame.is-lit .fl-face { animation: fl-face .62s linear infinite; }
.qp-flame.is-lit .fl-e { animation: fl-ember 1.25s ease-out infinite; }
.qp-flame.is-lit .fl-e2 { animation-delay: .4s; animation-duration: 1.05s; }
.qp-flame.is-lit .fl-e3 { animation-delay: .8s; animation-duration: 1.4s; }
@keyframes fl-glow { 0%, 100% { filter: drop-shadow(0 0 4px rgba(240, 140, 95, .45)); } 50% { filter: drop-shadow(0 0 9px rgba(245, 150, 90, .75)); } }
@keyframes fl-flicker {
  0% { transform: scale(1, 1) skewX(0deg); } 14% { transform: scale(1.025, 1.06) skewX(-2.5deg); }
  29% { transform: scale(.985, .97) skewX(1.5deg); } 41% { transform: scale(1.02, 1.08) skewX(-1deg); }
  57% { transform: scale(.99, 1.01) skewX(2.5deg); } 72% { transform: scale(1.03, 1.05) skewX(-2deg); }
  86% { transform: scale(.98, .98) skewX(1deg); } 100% { transform: scale(1, 1) skewX(0deg); } }
@keyframes fl-core { 0% { transform: scale(1, .94) translateX(-.6px); } 100% { transform: scale(.96, 1.12) translateX(.6px); } }
@keyframes fl-face { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-.4px, -.6px); } 66% { transform: translate(.4px, -.2px); } }
@keyframes fl-ember { 0% { opacity: 0; transform: translate(0, 6px) scale(1); } 20% { opacity: 1; } 100% { opacity: 0; transform: translate(3px, -22px) scale(.35); } }

.qp-flame.is-doused .flame-wiggle { animation-play-state: paused; }
.qp-flame.is-doused .fl-body { animation: fl-out 2.7s cubic-bezier(.3, 1.2, .5, 1) 1 both; }
.qp-flame.is-doused .fl-mouth { animation: fl-hide 2.7s step-end 1 both; }
.qp-flame.is-doused .fl-oh { animation: fl-show 2.7s step-end 1 both; }
.qp-flame.is-doused .fl-water { opacity: 1; }
.qp-flame.is-doused .fl-drop { animation: fl-fall .5s cubic-bezier(.5, 0, 1, .6) 1 both; }
.qp-flame.is-doused .fl-d2 { animation-delay: .09s; }
.qp-flame.is-doused .fl-d3 { animation-delay: .17s; }
.qp-flame.is-doused .fl-s { animation: fl-splash .45s ease-out .5s 1 both; }
.qp-flame.is-doused .fl-s1 { --dx: -7px; --dy: -6px; } .qp-flame.is-doused .fl-s2 { --dx: 7px; --dy: -6px; }
.qp-flame.is-doused .fl-s3 { --dx: -4px; --dy: -11px; } .qp-flame.is-doused .fl-s4 { --dx: 4px; --dy: -11px; }
.qp-flame.is-doused .fl-smoke { opacity: 1; }
.qp-flame.is-doused .fl-p { animation: fl-puff 1.3s ease-out .75s 1 both; }
.qp-flame.is-doused .fl-p2 { animation-delay: .9s; } .qp-flame.is-doused .fl-p3 { animation-delay: 1.05s; }
@keyframes fl-fall { 0% { opacity: 0; transform: translateY(-46px) scale(.8, 1.15); } 15% { opacity: 1; } 92% { opacity: 1; transform: translateY(14px) scale(.95, 1.1); } 100% { opacity: 0; transform: translateY(18px) scale(1.4, .5); } }
@keyframes fl-splash { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); } }
@keyframes fl-puff { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 25% { opacity: .75; } 100% { opacity: 0; transform: translate(4px, -30px) scale(1.6); } }
@keyframes fl-out {
  0% { transform: scale(1); filter: none; } 16% { transform: scale(1.08, .94); }
  24% { transform: scale(.9, 1.06) skewX(4deg); filter: saturate(.6); }
  34% { transform: scale(.14, .1); filter: grayscale(1) brightness(.85); }
  70% { transform: scale(.14, .1); filter: grayscale(1) brightness(.85); }
  80% { transform: scale(.7, 1.25); filter: none; } 88% { transform: scale(1.12, .92); }
  95% { transform: scale(.97, 1.03); } 100% { transform: scale(1); filter: none; } }
@keyframes fl-hide { 0% { opacity: 1; } 14% { opacity: 0; } 82% { opacity: 1; } }
@keyframes fl-show { 0% { opacity: 0; } 14% { opacity: 1; } 82% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .qp-flame .fl-eyes, .qp-flame.is-lit, .qp-flame.is-lit *, .qp-flame.is-doused * { animation: none !important; }
  .qp-flame.is-doused .fl-water, .qp-flame.is-doused .fl-smoke { opacity: 0; }
}
.brand span { transition: color 0.15s ease; }
.brand:hover span { color: var(--orange-hi); }

/* Hero terminal: types the command, spins while reading, then fills real bars and counts the percentages.
   Pure CSS: the final state is the default, the animation only runs from "nothing" to it (no flash without JS). */
@property --p { syntax: '<integer>'; initial-value: 0; inherits: false; }
.term { position: relative; transition: translate .25s ease, box-shadow .25s ease; }
#hero-term { box-shadow: var(--shadow-lg), 0 30px 70px -28px rgba(217,119,87,.45); }
.term:hover { translate: 0 -3px; }
.term-bar em.t-local { margin-left: auto; font: 600 10.5px var(--font-mono); font-style: normal; text-transform: uppercase; letter-spacing: .08em; color: var(--green); border: 1px solid rgba(143,191,127,.35); border-radius: 999px; padding: 2px 8px 2px 20px; position: relative; }
.term-bar em.t-local::before { content: ""; position: absolute; left: 8px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(143,191,127,.2); }
.t-replay { display: none; margin-left: 8px; width: 24px; height: 24px; border-radius: 7px; border: 1px solid #3a3936; background: #2a2927; color: var(--faint); font: 700 13px/1 var(--font-body); cursor: pointer; transition: color .15s, border-color .15s, rotate .4s; }
html.js .t-replay { display: inline-grid; place-items: center; }
.t-replay:hover { color: var(--orange-hi); border-color: var(--orange); rotate: -180deg; }
.term-body { padding: 18px 20px 20px; color: #d9d6cc; }
.term .ln { display: block; min-height: 1.6em; white-space: pre-wrap; }
.term .t-swap { display: grid; }
.term .t-swap > * { grid-area: 1 / 1; }
.term .t-run { visibility: hidden; }
.spin { display: inline-block; width: 1ch; font-style: normal; color: var(--orange-hi); }
.spin::before { content: "⠋"; animation: spin-ch .8s steps(1) infinite; }
@keyframes spin-ch { 0% { content: "⠋"; } 12.5% { content: "⠙"; } 25% { content: "⠹"; } 37.5% { content: "⠸"; } 50% { content: "⠼"; } 62.5% { content: "⠴"; } 75% { content: "⠦"; } 87.5% { content: "⠧"; } }
.term .t-total { display: flex; gap: 14px; margin-top: 12px; }
.t-usd { color: #fff; }
.term .t-row { display: grid; grid-template-columns: 17ch minmax(0, 1fr) 4.5ch; gap: 12px; align-items: center; padding: 2px 6px; margin: 0 -6px; border-radius: 6px; transition: background .15s; white-space: nowrap; }
.term .t-row:hover { background: rgba(217,119,87,.10); }
.term .t-row:hover .t-bar i { filter: brightness(1.15); }
.t-bar { position: relative; height: 12px; border-radius: 3px; background: repeating-linear-gradient(90deg, #3a3936 0 2px, transparent 2px 5px); overflow: hidden; }
.t-bar i { position: absolute; inset: 0 auto 0 0; width: max(var(--w), 6px); border-radius: 3px; background: repeating-linear-gradient(90deg, var(--orange) 0 9px, #c4664a 9px 10px); box-shadow: 0 0 12px rgba(217,119,87,.45); }
.t-pct { text-align: right; color: #fff; --p: var(--to); counter-reset: p var(--p); }
.t-pct::after { content: counter(p) "%"; }
.term .t-leak { margin-top: 12px; }
.t-ping { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 1px; border-radius: 50%; background: var(--red); vertical-align: middle; }
.term .t-win span { display: inline-block; color: var(--green); padding: 2px 8px; margin-left: -8px; border-radius: 6px; }
.term .t-win b { color: #b9e3a8; }
.term .t-end { margin-top: 10px; }
.caret { display: inline-block; width: 0.6em; height: 1.15em; margin-left: 2px; vertical-align: text-bottom; background: var(--orange-hi); }
.term .t-end .caret { animation: blink 1s steps(2, start) infinite; }

/* The animation (only on .anim; the replay button restarts it). */
.term.anim .typed { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; animation: typing 1.1s steps(18) .35s backwards; }
.term.anim .c0 .caret { animation: blink .9s steps(2, start) infinite, caretOff .01s linear 1.6s forwards; }
.term:not(.anim) .c0 .caret { visibility: hidden; }
.term.anim .ln:not(.c0) { animation: lnIn .35s ease var(--t, 2s) backwards; }
.term.anim .t-run { animation: showRun 1.55s steps(1) var(--t) both; }
.term.anim .t-done { animation: showDone .3s ease calc(var(--t) + 1.5s) backwards; }
.term.anim .t-bar i { animation: barFill .9s cubic-bezier(.2,.8,.2,1) calc(var(--t) + .1s) backwards; }
.term.anim .t-pct { animation: pctUp .9s cubic-bezier(.2,.8,.2,1) calc(var(--t) + .1s) backwards; }
.term.anim .t-ping { animation: ping 1.2s ease-out calc(var(--t) + .2s) 3; }
.term.anim .t-win span { animation: winGlow 1.4s ease calc(var(--t) + .3s) 1; }
@keyframes typing { from { width: 0; } to { width: 18ch; } }
@keyframes blink { to { opacity: 0; } }
@keyframes caretOff { to { visibility: hidden; } }
@keyframes lnIn { from { opacity: 0; translate: 0 4px; } }
@keyframes showRun { 0% { visibility: visible; } 100% { visibility: hidden; } }
@keyframes showDone { from { opacity: 0; } }
@keyframes barFill { from { width: 0; } }
@keyframes pctUp { from { --p: 0; } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(226,109,92,.6); } 100% { box-shadow: 0 0 0 9px rgba(226,109,92,0); } }
@keyframes winGlow { 0% { background: rgba(143,191,127,0); } 30% { background: rgba(143,191,127,.18); box-shadow: 0 0 22px rgba(143,191,127,.25); } 100% { background: rgba(143,191,127,0); } }
@media (max-width: 520px) {
  .term-body { padding: 14px; }
  .term .t-row { grid-template-columns: 14ch minmax(0, 1fr) 4ch; gap: 8px; }
  .term-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .term.anim *, .term.anim .ln { animation: none !important; }
  .term .t-run { visibility: hidden; }
  .spin::before { animation: none; }
}

/* Logo marquee */
.logos-band { padding-top: 8px; padding-bottom: 8px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; flex-wrap: wrap; justify-content: center; list-style: none; margin: 0; padding: 6px 0; }
.marquee-track li { display: flex; align-items: center; gap: 10px; flex: none; margin: 8px 19px; color: var(--faint); font: 600 0.9rem var(--font-mono); transition: color 0.2s ease, translate 0.2s ease; }
.marquee-track img { width: 26px; height: 26px; filter: brightness(0) invert(1); opacity: 0.55; transition: opacity 0.2s ease, scale 0.2s ease; }
.marquee-track li:hover { color: var(--orange-hi); translate: 0 -2px; }
.marquee-track li:hover img { opacity: 1; scale: 1.12; }
.marquee.run .marquee-track { flex-wrap: nowrap; justify-content: flex-start; width: max-content; animation: marq 44s linear infinite; }
.marquee.run:hover .marquee-track { animation-play-state: paused; }
@keyframes marq { to { transform: translateX(-50%); } }

/* Dashboard preview and activity feed: fixed size, nothing shifts */
.demo-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; align-items: stretch; }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } }
.dash-prev, .feed { display: flex; flex-direction: column; min-width: 0; height: 392px; padding: 18px 20px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.dp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.dp-head b { display: flex; align-items: center; gap: 9px; font: 600 1.05rem var(--font-display); }
.dp-head em { font-style: normal; color: var(--faint); font: 500 0.74rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.dp-tabs { display: inline-flex; padding: 3px; background: var(--bg-deep); border: 1.5px solid var(--line); border-radius: 10px; }
.dp-tabs button { background: none; border: 0; border-radius: 7px; padding: 5px 12px; color: var(--muted); font: 600 0.82rem var(--font-body); cursor: pointer; transition: background 0.15s ease, color 0.15s ease; }
.dp-tabs button:hover { color: var(--text); }
.dp-tabs button[aria-pressed="true"] { background: var(--orange); color: var(--ink); }
.dp { flex: 1; min-height: 0; display: flex; flex-direction: column; animation: fadeIn 0.3s ease; }
.dp[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpi-t { padding: 10px 12px; background: var(--bg-deep); border: 1.5px solid var(--line); border-radius: 12px; }
.kpi-t:hover { border-color: var(--orange); }
.kpi-t span { display: block; color: var(--faint); font-size: 0.74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-t b { display: block; font: 700 1.45rem/1.25 var(--font-display); font-variant-numeric: tabular-nums; }
.kpi-t:first-child b { color: var(--orange-hi); }
.chart { position: relative; flex: 1; min-height: 100px; touch-action: pan-y; cursor: crosshair; }
.spark-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.spark-svg path { vector-effect: non-scaling-stroke; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.sp-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 5; }
.sp-area { fill: rgba(217, 119, 87, 0.16) !important; stroke: none; }
.sp-before { stroke: var(--faint); stroke-width: 2; opacity: 0.8; }
.sp-after { stroke: var(--orange-hi); stroke-width: 3; }
.reveal.in .spark-svg { animation: wipe 1.3s cubic-bezier(0.3, 0.6, 0.2, 1) 0.2s backwards; }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.chart .cur { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--muted); opacity: 0.5; pointer-events: none; }
.chart .dot { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; border: 2px solid var(--ink); pointer-events: none; }
.chart .dot.a { background: var(--orange-hi); } .chart .dot.b { background: var(--muted); }
.tip { position: absolute; top: -6px; translate: -50% 0; z-index: 2; pointer-events: none; padding: 7px 10px; background: #191918; border: 1.5px solid var(--ink); border-radius: 10px; box-shadow: 3px 3px 0 var(--ink); font: 500 0.72rem/1.5 var(--font-mono); color: var(--muted); white-space: nowrap; }
.tip b { color: var(--text); }
.axis span::before { content: attr(data-d); }
.axis { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 6px; text-align: center; color: var(--faint); font: 500 0.7rem var(--font-mono); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 10px; font-size: 0.78rem; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.lg-b { background: var(--faint); } .lg-a { background: var(--orange-hi); }
.legend em { margin-left: auto; font-style: normal; color: var(--faint); }

.feed-view { flex: 1; min-height: 0; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 6%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 6%, #000 88%, transparent); }
.feed-list { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; padding: 11px 12px; background: var(--bg-deep); border: 1.5px solid var(--line); border-radius: 12px; font-size: 0.88rem; line-height: 1.35; transition: border-color 0.15s ease, translate 0.15s ease; }
.feed li:hover { border-color: var(--orange); translate: 3px 0; }
.feed.in li { animation: pop 0.45s cubic-bezier(0.2, 1.4, 0.4, 1) calc(0.25s + var(--i, 0) * 0.1s) backwards; }
@keyframes pop { from { opacity: 0; scale: 0.9; translate: 0 10px; } }
.feed .ft { flex: 1; min-width: 0; }
.feed li b { flex: none; color: var(--green); font: 600 0.76rem var(--font-mono); white-space: nowrap; }
.feed-ico { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--surface-2); }
.feed.run .feed-list { animation: feedUp 30s linear infinite; }
.feed.run:hover .feed-list { animation-play-state: paused; }
@keyframes feedUp { to { transform: translateY(-50%); } }

/* Illustrations */
.art { position: relative; margin-bottom: 18px; background: var(--bg-deep); border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; }
.art-svg { width: 100%; height: auto; aspect-ratio: 240 / 150; }
.art-svg text { font-family: var(--font-mono); font-weight: 700; }
.art .num-badge { position: absolute; top: 10px; left: 10px; margin: 0; width: 32px; height: 32px; font-size: 0.95rem; box-shadow: 2px 2px 0 var(--ink); }
.leak, .step { display: flex; flex-direction: column; }
.leak .stat-label { margin-bottom: 16px; }
.leak .fix, .step .cmd { margin-top: auto; }
.step .cmd { align-self: stretch; }
.step p { margin-bottom: 18px; }
.a-loop { transform-origin: 192px 78px; animation: spin 14s linear infinite; }
.leak:hover .a-loop { animation-duration: 2.2s; }
@keyframes spin { to { transform: rotate(360deg); } }
.a-coins, .a-spill, .a-crown { animation: hop 2.2s ease-in-out infinite alternate; }
.a-spark { animation: pulse 1.6s ease-in-out infinite alternate; transform-origin: 120px 60px; }
.a-glass { animation: sweep 3.4s ease-in-out infinite alternate; }
.a-peek { animation: hop 2.6s ease-in-out infinite alternate; }
.leak:hover .a-coins, .leak:hover .a-crown, .leak:hover .a-spill, .step:hover .a-glass, .step:hover .a-peek { animation-duration: 0.7s; }
@keyframes hop { to { transform: translateY(-5px); } }
@keyframes sweep { to { transform: translate(-34px, 8px); } }
@keyframes pulse { to { transform: scale(1.12); } }
.icon-svg { width: 56px; height: 56px; margin-bottom: 14px; transition: rotate 0.25s ease; }
.feat:hover .icon-svg { animation: wob 0.5s ease; }
@keyframes wob { 30% { rotate: -8deg; } 60% { rotate: 6deg; } }
.feat { text-align: left; }

/* Before and after */
.ba-top { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.ba-top .stat { margin: 0; }
.ba-top span { color: var(--muted); }
.bar-fill { transform-origin: 0 50%; }
html.js-reveal .reveal:not(.in) .bar-fill { scale: 0 1; }
.reveal.in .bar-fill { transition: scale 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s; }
.reveal.in .bar-fill.after { transition-delay: 0.55s; }

/* Plans */
.plan-ico { height: 64px; display: flex; align-items: flex-end; margin-bottom: 10px; }
.plan-ico svg { display: block; }

/* Article covers and the guides hub */
.cover { margin: 0 0 30px; overflow: hidden; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.cover-svg { display: block; width: 100%; height: auto; }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-bottom: 12px; }
.gcard { display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 18px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.gc-cover { display: block; overflow: hidden; border: 2px solid var(--ink); border-radius: 10px; }
.gc-cover svg { width: 100%; height: auto; transition: scale 0.35s ease; }
.gcard:hover .gc-cover svg { scale: 1.05; }
.gcard b { padding: 8px 8px 0; font: 600 1.05rem/1.3 var(--font-display); }
.gcard small { padding: 0 8px; color: var(--faint); font-size: 0.86rem; }

@media (max-width: 640px) {
  .term { font-size: clamp(10px, 3.05vw, 13.5px); }
  .term pre { padding: 14px; }
  .hero .fine, .logos-band .eyebrow, .plan-ico, .ba-top, .legend { text-align: center; justify-content: center; }
  .legend em { margin-left: 0; flex-basis: 100%; }
  .kpis { gap: 8px; }
  .kpi-t { padding: 8px; text-align: center; }
  .kpi-t b { font-size: 1.1rem; }
  .dash-prev, .feed { padding: 16px 14px; }
  .feat { text-align: center; }
  .icon-svg { margin-left: auto; margin-right: auto; }
  .ba-top { flex-wrap: wrap; }
  .tip { font-size: 0.68rem; }
  .gcard { text-align: left; }
}
@media (max-width: 380px) { .dp-tabs button { padding: 5px 9px; } .marquee-track li { margin: 8px 14px; } }

/* Reduced motion: no movement, everything visible */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js-reveal .reveal:not(.in) { opacity: 1; translate: none; }
  html.js-reveal .reveal:not(.in) .bar-fill { scale: 1 1; }
}
@media print { .marquee-track, .feed-list { animation: none !important; } .term *, .term .ln { animation: none !important; } }

/* On the dashboard itself, no header button pointing back to it. */
html.on-account .top .in-only.btn { display: none !important; }

/* Content pages on desktop: a real two-column layout (article + sticky "On this page"), not the phone column stretched.
   Header (crumbs, eyebrow, h1, lead, meta) on the left, cover illustration beside it, TOC follows you down the page. */
@media (min-width: 1100px) {
  main > section > .narrow:has(> .meta-line) { max-width: 1240px; padding: 0 32px; }
  main > section > .narrow:has(> .meta-line) > h1 { font-size: clamp(2.8rem, 3.6vw, 3.6rem); }
  main > section > .narrow:has(> .meta-line):has(> .toc) {
    display: grid; grid-template-columns: minmax(0, 1fr) 300px; column-gap: 72px; align-items: start;
  }
  main > section > .narrow:has(> .toc) > * { grid-column: 1; min-width: 0; }
  main > section > .narrow:has(> .toc) > .cover { grid-column: 2; grid-row: 1 / span 5; align-self: center; margin: 0; }
  main > section > .narrow:has(> .toc) > .toc {
    grid-column: 2; grid-row: span 60; align-self: start; position: sticky; top: 96px; margin: 0;
    max-height: calc(100svh - 120px); overflow: auto; overscroll-behavior: contain;
    background: transparent; border: 0; border-left: 2px solid var(--line); border-radius: 0; padding: 4px 0 4px 18px;
  }
  main > section > .narrow:has(> .toc) > .toc b { font: 600 .72rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
  main > section > .narrow:has(> .toc) > .toc ol { list-style: none; padding: 0; display: grid; gap: 2px; }
  main > section > .narrow:has(> .toc) > .toc a { display: block; padding: 5px 10px; margin-left: -12px; border-radius: 8px; color: var(--muted); text-decoration: none; line-height: 1.35; transition: color .15s, background .15s, translate .15s; }
  main > section > .narrow:has(> .toc) > .toc a:hover { color: var(--text); background: var(--surface); translate: 3px 0; }
  main > section > .narrow:has(> .toc) > .toc a.on { color: var(--orange-hi); background: var(--orange-soft); }
  main > section > .narrow:has(> .toc) > .prose, main > section > .narrow:has(> .toc) > .faq { max-width: 800px; }
  /* Pages without a TOC: one wider column, still desktop-sized. */
  main > section > .narrow:has(> .meta-line):not(:has(> .toc)) { max-width: 960px; }
}
@media (min-width: 1100px) {
  main > section > .narrow:has(> .toc):not(:has(> .cover)) > .toc { grid-row: 1 / span 60; }
}

/* Home: "using less does not mean thinking less" */
.vs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; max-width: 980px; margin: 0 auto 28px; }
.vs-card { border: 1px solid var(--line); border-radius: 18px; padding: 26px 26px 22px; background: var(--bg); }
.vs-old { opacity: .78; }
.vs-new { border-color: color-mix(in srgb, var(--orange) 55%, var(--line)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--orange) 25%, transparent), 0 14px 40px -24px color-mix(in srgb, var(--orange) 60%, transparent); }
.vs-tag { margin: 0 0 6px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vs-new .vs-tag { color: var(--orange); }
.vs-card h3 { margin: 0 0 16px; }
.vs-dial { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 18px; font-size: .85rem; text-align: center; }
.vs-dial span { padding: 6px 0; border-radius: 999px; color: var(--faint); }
.vs-old .vs-dial .on { background: color-mix(in srgb, var(--red) 22%, transparent); color: var(--text); }
.vs-new .vs-dial .on { background: var(--orange); color: #1f1e1d; font-weight: 600; }
.vs-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.vs-list li { position: relative; padding-left: 28px; color: var(--text); font-weight: 400; }
.vs-list li::before { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 700; }
.vs-list li.yes::before { content: "✓"; background: color-mix(in srgb, var(--green) 22%, transparent); color: var(--green); }
.vs-list li.no { color: var(--muted); }
.vs-list li.no::before { content: "✕"; background: color-mix(in srgb, var(--red) 18%, transparent); color: var(--red); }
.why-sharp .card h3 { margin-top: 0; }
.why-sharp .card p { margin-bottom: 0; color: var(--muted); }
/* the dial slides from Low to High when the section appears */
html.js-reveal .vs:not(.in) .vs-new .vs-dial .on { translate: -200% 0; }
html.js-reveal .vs.in .vs-new .vs-dial .on { animation: dialUp 1.1s .35s cubic-bezier(.2,.8,.2,1) both; }
@keyframes dialUp { from { translate: -200% 0; } to { translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { html.js-reveal .vs .vs-new .vs-dial .on { animation: none; translate: none; } }
@media (max-width: 760px) {
  .vs { grid-template-columns: 1fr; }
  .vs-card h3, .vs-tag { text-align: center; }
  .why-sharp .card h3 { text-align: center; }
}

/* Plan cards: the promise, right under the price */
.plan .promise { display: grid; gap: 3px; margin: 14px 0 16px; padding: 11px 13px; border-radius: 12px; background: color-mix(in srgb, var(--orange) 11%, transparent); border: 1px solid color-mix(in srgb, var(--orange) 30%, transparent); }
.plan .promise b { color: var(--text); font-size: .95rem; line-height: 1.3; }
.plan .promise span { color: var(--muted); font-size: .84rem; line-height: 1.35; }
