:root {
  --bg: #ffffff;
  --surface: #f2f2f2;
  --surface-2: #e6e6e6;
  --ink: #0a0a0a;
  --muted: #5f5f5f;
  --accent: #d92b21;
  --accent-ink: #ffffff;
  --field-1: #000000;
  --field-1-ink: #ffffff;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(3.25rem, 7.4vw, 8.5rem);
  --m: clamp(16px, 2.8vw, 40px);
  --notch: polygon(0 0, calc(100% - 0px) 0, 100% 0, 100% 100%, 0 100%, 0 96px, 96px 96px, 96px 0);
  --display: "League Spartan", system-ui, sans-serif;
  --text: "Figtree", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.5 var(--text); overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, .display { font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; line-height: 0.9; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* nav */
.nav { position: absolute; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 28px var(--m); z-index: 5; }
.wordmark { font: 700 26px/1 var(--display); letter-spacing: -0.04em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.wordmark i { width: 22px; height: 22px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 45%, 45% 45%, 45% 0); }
.nav ul { list-style: none; display: flex; gap: clamp(16px, 2.4vw, 36px); margin: 0; padding: 0; font-size: 15px; align-items: center; }
.nav a { text-decoration: none; }
.nav a:not(.btn):hover { color: var(--accent); }

/* buttons: square, one fill */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; background: var(--ink); color: var(--bg); text-decoration: none; font: 600 16px/1 var(--text); border: 0; cursor: pointer; transition: transform .15s var(--ease), background .15s; }
.btn:hover { background: var(--accent); }
.btn:active { transform: translateY(2px) scale(.98); }
.btn.red { background: var(--accent); color: var(--accent-ink); }
.btn.red:hover { background: var(--ink); }
.btn.small { padding: 10px 14px; font-size: 15px; }
.btn.light { background: var(--bg); color: var(--ink); }
.btn.light:hover { background: var(--ink); color: var(--bg); }

/* hero */
.hero { position: relative; min-height: 100svh; padding: 150px var(--m) 0; overflow: hidden; }
.hero h1 { font-size: var(--step-display); max-width: 9.5em; }
.hero .lede { font-size: var(--step-lead); max-width: 34ch; margin-top: 28px; line-height: 1.35; }
.hero .act { margin-top: 32px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero .act code { font: 600 15px/1.4 var(--text); background: var(--surface); padding: 13px 16px; max-width: min(36ch, 100%); overflow-wrap: anywhere; }
.stage { position: absolute; left: 40%; right: 0; top: 44%; bottom: 0; background: var(--accent); clip-path: var(--notch); }
.term { position: absolute; left: calc(40% + 56px); top: calc(44% + 128px); width: min(640px, 54vw); background: #0d0d0d; color: #f1f1f1; font: 15px/1.6 var(--text); padding: 22px 24px 40px; }
.term .bar { display: flex; justify-content: space-between; color: #9b9b9b; font-size: 13px; margin-bottom: 14px; }
.term .ln { white-space: pre-wrap; }
.term .dim { color: #9b9b9b; }
.term .hi { color: #ff5a4f; font-weight: 600; }
.term .status { margin-top: 18px; background: #1f1f1f; padding: 10px 12px; display: flex; gap: 14px; flex-wrap: wrap; }
.term .status b { color: #fff; }
.cursor { display: inline-block; width: 9px; height: 1.1em; background: #f1f1f1; vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* chart (signature) */
.chart-wrap { position: relative; height: 300vh; background: var(--field-1); color: var(--field-1-ink); }
.chart-pin { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; grid-template-rows: auto auto 1fr auto; padding: 32px var(--m) 28px; }
.ticker { display: flex; gap: clamp(16px, 3vw, 48px); font-variant-numeric: tabular-nums; }
.ticker div { display: grid; gap: 4px; }
.ticker span { font-size: var(--step-small); color: #a8a8a8; }
.ticker b { font: 700 clamp(1.4rem, 2.4vw, 2.4rem)/1 var(--display); letter-spacing: -0.03em; }
.ticker .up { color: #ff5a4f; }
.plot { position: relative; margin-top: 20px; min-height: 0; }
.caption { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.caption p { font-size: var(--step-lead); max-width: 30ch; line-height: 1.3; min-height: 2.6em; transition: opacity .3s; }

.card { position: absolute; z-index: 5; left: clamp(8px, 3vw, 48px); top: 4%; width: min(400px, 86vw); background: #fff; color: var(--ink); padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.45); /* taste-skill-ignore: the decision card floats over the chart */ opacity: 0; transform: translateY(24px) scale(.97); transition: opacity .45s var(--ease), transform .45s var(--ease); pointer-events: none; }
.card.show { opacity: 1; transform: none; pointer-events: auto; }
.card h3 { font: 700 22px/1.1 var(--display); letter-spacing: -0.02em; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; }
.card h3 i { width: 14px; height: 14px; background: #f0a030; flex: none; }
.card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 16px; font-size: 15px; font-variant-numeric: tabular-nums; }
.card dt { color: var(--muted); }
.card dd { margin: 0; font-weight: 600; text-align: right; }
.meter { height: 8px; background: var(--surface-2); margin: 4px 0 14px; position: relative; }
.meter i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }
.meter b { position: absolute; top: -4px; bottom: -4px; width: 3px; background: var(--accent); }
.card .row { display: flex; gap: 8px; }
.card .row .btn { flex: 1; justify-content: center; padding: 13px 10px; font-size: 15px; }
.card .btn.amber { background: #f0a030; color: #111; }
.card .btn.amber:hover { background: var(--ink); color: #fff; }
.card .note { font-size: 13px; color: var(--muted); margin-top: 10px; min-height: 1.4em; }

/* how it works */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); }
.field { position: relative; min-height: 84svh; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.field:nth-child(1) { background: var(--surface); }
.field:nth-child(2) { background: var(--surface-2); }
.field:nth-child(3) { background: var(--accent); color: var(--accent-ink); }
.field:nth-child(4) { background: var(--field-1); color: var(--field-1-ink); }
.field h2 { font-size: clamp(22px, 2.2vw, 34px); line-height: 1; }
.field p.cl { font: 700 clamp(22px, 2vw, 32px)/1.05 var(--display); letter-spacing: -0.02em; }
.field p.sub { font-size: 16px; margin-top: 10px; max-width: 26ch; }
.rcard { align-self: center; width: 260px; background: #fff; color: var(--ink); padding: 16px; font-size: 14px; transition: transform .15s var(--ease); font-variant-numeric: tabular-nums; }
.field:hover .rcard { transform: translateY(-6px); }
.rcard .t { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.rcard .kv { display: flex; justify-content: space-between; color: var(--muted); }
.rcard .kv b { color: var(--ink); font-weight: 600; }
.rcard .tag { display: inline-block; margin-top: 10px; padding: 4px 8px; font-size: 13px; font-weight: 600; background: var(--surface); }
.rcard .tag.red { background: var(--accent); color: #fff; }
.rcard .tag.amber { background: #f0a030; }
.rcard .tag.dark { background: var(--ink); color: #fff; }
.rcard .mini { height: 6px; background: var(--surface-2); margin-top: 10px; position: relative; }
.rcard .mini i { position: absolute; inset: 0 auto 0 0; background: var(--ink); }

/* features mosaic */
.section { padding: clamp(120px, 14vw, 200px) 0 0; }
.board { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 104px; gap: 8px; padding: 0 10px; grid-auto-flow: dense; }
.tile { position: relative; overflow: hidden; background: var(--surface); padding: 20px; display: flex; flex-direction: column; justify-content: flex-end; }
.tile .cap b { display: block; font-size: 18px; font-weight: 600; }
.tile .cap span { font-size: 15px; display: block; max-width: 34ch; }
.tile [data-ui] { position: absolute; }
.t64 { grid-column: span 6; grid-row: span 4; }
.t62 { grid-column: span 6; grid-row: span 2; }
.t34 { grid-column: span 3; grid-row: span 4; }
.t32 { grid-column: span 3; grid-row: span 2; }
.tile.dark { background: var(--field-1); color: #fff; }
.tile.red { background: var(--accent); color: #fff; }
.tile.grey { background: var(--surface-2); }
.tile.head { justify-content: flex-start; background: var(--bg); padding-left: var(--m); }
.tile.head h2 { font-size: clamp(36px, 4vw, 60px); }
.tile.head p { margin-top: 14px; max-width: 40ch; }
.big { font: 700 1em/1 var(--display); letter-spacing: -0.04em; }
.key { display: inline-block; padding: .25em .45em; background: #fff; color: var(--ink); font: 600 1em/1 var(--text); margin-right: .2em; }
.sw { display: inline-flex; width: 2.2em; height: 1.2em; background: var(--accent); padding: .12em; justify-content: flex-end; }
.sw i { width: .96em; height: .96em; background: #fff; }
.blk { display: inline-block; padding: .2em .4em; background: #f0a030; color: #111; font: 700 1em/1 var(--display); }

/* pricing */

/* faq */
.faq { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 0 var(--m); }
.faq h2 { grid-column: 1 / 5; font-size: clamp(36px, 4vw, 60px); position: sticky; top: 96px; align-self: start; }
.faq .list { grid-column: 5 / 13; display: grid; gap: 8px; }
details { background: var(--surface); transition: background .2s; }
details summary { list-style: none; cursor: pointer; min-height: 72px; padding: 22px 64px 22px 24px; font-size: 20px; font-weight: 600; position: relative; }
details summary::-webkit-details-marker { display: none; }
details summary::before, details summary::after { content: ""; position: absolute; right: 24px; top: 34px; width: 16px; height: 3px; background: currentColor; transition: transform .2s var(--ease); }
details summary::after { transform: rotate(90deg); }
details[open] { background: var(--accent); color: var(--accent-ink); }
details[open] summary::after { transform: rotate(0); }
details summary:hover { color: var(--accent); }
details[open] summary:hover { color: var(--accent-ink); }
details p { padding: 0 24px 24px; max-width: 52ch; font-size: 17px; }

/* cta */
.cta { margin-top: clamp(120px, 14vw, 200px); background: var(--accent); color: var(--accent-ink); min-height: 90svh; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 40px var(--m); align-items: center; }
.cta .l { grid-column: 1 / 7; align-self: end; }
.cta h2 { font-size: clamp(56px, 7vw, 112px); line-height: .92; }
.cta .l p { margin-top: 20px; max-width: 36ch; }
.dialog { grid-column: 7 / 12; width: 100%; max-width: 460px; justify-self: end; background: #fff; color: var(--ink); padding: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.28); /* taste-skill-ignore: open dialog */ }
.dialog h3 { font: 700 24px/1.1 var(--display); letter-spacing: -0.02em; margin-bottom: 18px; }
.dialog label { display: block; font-size: 15px; font-weight: 600; margin: 14px 0 6px; }
.dialog input[type=number] { width: 100%; font: 600 18px var(--text); padding: 12px; border: 2px solid var(--surface-2); background: #fff; }
.dialog input:focus { border-color: var(--ink); outline: 0; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); padding: 4px; gap: 4px; }
.seg button { font: 600 15px var(--text); padding: 10px 6px; border: 0; background: transparent; cursor: pointer; transition: background .15s; }
.seg button[aria-pressed=true] { background: #fff; }
.seg button:hover { background: var(--surface-2); }
.cmd { margin-top: 18px; background: var(--ink); color: #fff; padding: 14px; font: 500 15px/1.5 var(--text); word-break: break-word; }
.cmd .dim { color: #9b9b9b; }
.dialog .btn { width: 100%; justify-content: center; margin-top: 14px; padding: 16px; }
.dialog .ok { font-size: 14px; color: var(--muted); margin-top: 8px; min-height: 1.4em; }

/* footer */
.foot { background: var(--field-1); color: #fff; padding: 56px var(--m) 28px; }
.mark { display: flex; gap: 4px; align-items: flex-end; height: 34svh; min-height: 200px; }
.mark span { flex: 1; display: flex; align-items: center; justify-content: center; font: 700 clamp(44px, 9vw, 150px)/1 var(--display); letter-spacing: -0.04em; color: var(--field-1); background: #fff; }
.mark span:nth-child(odd) { background: var(--accent); color: #fff; }
.links { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: 56px; font-size: 15px; }
.links div { grid-column: span 2; display: grid; gap: 8px; align-content: start; }
.links div.contact { grid-column: 9 / 13; }
.links b { font-weight: 600; margin-bottom: 4px; }
.links a { text-decoration: none; color: #cfcfcf; }
.links a:hover { color: #fff; }
.last { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; font-size: 14px; color: #bdbdbd; gap: 16px; flex-wrap: wrap; }

/* entrance */
.rise { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rise.in { opacity: 1; transform: none; }
.no-js .rise { opacity: 1; transform: none; }
.hero .rise { transition-duration: .9s; }

/* phone */
@media (max-width: 860px) {
  .nav ul li.hide { display: none; }
  .hero { padding-top: 110px; display: flex; flex-direction: column; }
  .hero h1 { font-size: 13vw; }
  .stage { position: relative; inset: auto; left: calc(-1 * var(--m)); width: 100vw; height: 520px; margin-top: 48px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 72px, 72px 72px, 72px 0); }
  .term { position: absolute; left: calc(var(--m) + 16px); top: auto; bottom: 0; width: calc(100vw - 32px); font-size: 14px; }
  .ticker { width: 100%; justify-content: space-between; }
  .card { top: 2%; left: 50%; transform: translate(-50%, 24px) scale(.97); }
  .card.show { transform: translate(-50%, 0); }
  .strip { grid-template-columns: 1fr; }
  .faq, .cta, .links { grid-template-columns: 1fr; }
  .faq h2, .faq .list, .cta .l, .dialog, .links div, .links div.contact { grid-column: 1 / -1; }
  .field { min-height: 64svh; }
  .board { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 28vw; gap: 6px; }
  .t64, .t34 { grid-column: span 2; grid-row: span 3; }
  .t62, .t32 { grid-column: span 1; grid-row: span 2; }
  .tile.head { grid-column: span 2; grid-row: span 3; }
  .tile.head h2 { font-size: 9vw; }
  .tile .cap span { font-size: 14px; }
  .tile.t62 .cap span, .tile.t32 .cap span { display: none; }
  .faq h2 { position: static; font-size: 9vw; }
  .cta { min-height: 84svh; }
  .cta h2 { font-size: 13vw; }
  .cta .l { align-self: start; }
  .mark { height: 22svh; min-height: 130px; }
  .mark span { font-size: 11vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .rise { opacity: 1; transform: none; }
}

/* tradingview-style symbol header */
.tv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.sym { display: flex; gap: 16px; align-items: center; }
.sym .logo { width: 52px; height: 52px; flex: none; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 45%, 45% 45%, 45% 0); }
.sym h2 { font-size: clamp(26px, 3vw, 44px); }
.sym .ex { display: block; margin-top: 6px; font-size: 14px; color: #a8a8a8; }
.sym .ex.illus { margin-top: 2px; font-size: 13px; color: #d9d9d9; font-style: italic; }
.quote { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.quote b { font: 700 clamp(36px, 4.4vw, 64px)/1 var(--display); letter-spacing: -0.03em; }
.quote .cur { font-size: 15px; color: #a8a8a8; }
.quote .chg { font-size: 18px; font-weight: 600; color: #ff5a4f; }
.tv-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.tv-bar .tabs { display: flex; gap: 4px; }
.tv-bar .tabs button { font: 600 14px var(--text); color: #cfcfcf; background: transparent; border: 0; padding: 8px 12px; cursor: pointer; transition: background .15s, color .15s; }
.tv-bar .tabs button:hover { background: #1f1f1f; color: #fff; }
.tv-bar .tabs button[aria-pressed=true] { background: #2a2a2a; color: #fff; }
.tv-bar .ticker b { font-size: clamp(1.1rem, 1.6vw, 1.5rem); }
.tv { position: absolute; inset: 0; }
.plot:not(.tv-on) .tv { display: none; }
@media (max-width: 860px) { .tv-bar .tabs button { padding: 8px 8px; font-size: 13px; } .tv-bar .ticker { width: auto; } }

.legend { display: flex; gap: 10px 18px; flex-wrap: wrap; align-items: center; font-size: 15px; color: #cfcfcf; }
.legend .k { display: inline-block; width: 18px; height: 4px; margin-right: 6px; vertical-align: middle; }
.legend .k.up { background: #22ab94; } .legend .k.dn { background: #f23645; } .legend .k.ps { background: #f0a030; }
.quote .chg.pos { color: #22ab94; }
.tv-bar .ticker b.up { color: #22ab94; } .tv-bar .ticker b.bad { color: #f23645; } .tv-bar .ticker b.hold { color: #f0a030; }

/* smooth scrolling: native, so the page never fights the scrollbar, keyboard or touch */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* hero: second action and install box */
.btn.ghost { background: var(--surface); color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.install { margin-top: 20px; max-width: 520px; background: #0d0d0d; color: #f1f1f1; position: relative; z-index: 2; }
.itabs { display: flex; gap: 2px; padding: 4px 4px 0; }
.itabs button { font: 600 14px var(--text); color: #a8a8a8; background: transparent; border: 0; padding: 9px 12px; cursor: pointer; transition: color .15s, background .15s; }
.itabs button:hover { color: #fff; }
.itabs button[aria-selected=true] { background: #1f1f1f; color: #fff; }
.iline { display: flex; gap: 12px; align-items: flex-start; background: #1f1f1f; padding: 14px 14px 14px 16px; }
.iline code { flex: 1; font: 500 15px/1.5 var(--text); overflow-wrap: anywhere; }
.copy { font: 600 14px var(--text); background: #fff; color: var(--ink); border: 0; padding: 8px 12px; cursor: pointer; flex: none; transition: transform .15s var(--ease), background .15s; }
.copy:hover { background: var(--accent); color: #fff; }
.copy:active { transform: scale(.96); }

/* facts band */
.facts { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--ink); color: #fff; }
.facts div { padding: 40px var(--m) 44px; display: grid; gap: 12px; align-content: start; }
.facts div:nth-child(even) { background: #161616; }
.facts b { font: 700 clamp(40px, 4.4vw, 72px)/.9 var(--display); letter-spacing: -0.04em; }
.facts div:first-child b { color: #ff5a4f; }
.facts span { font-size: 16px; max-width: 24ch; }

/* security */
.sec { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 0 var(--m); align-items: start; }
.sec .l { grid-column: 1 / 6; }
.sec h2 { font-size: var(--step-head); }
.sec .l p { margin-top: 18px; max-width: 40ch; }
.sec ul { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.sec li { position: relative; padding-left: 28px; max-width: 46ch; }
.sec li::before { content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 12px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 45%, 45% 45%, 45% 0); }
.sec .r { grid-column: 7 / 13; display: grid; gap: 8px; background: var(--accent); padding: 56px 40px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 72px, 72px 72px, 72px 0); }
.pane { background: #fff; padding: 20px; font-size: 15px; font-variant-numeric: tabular-nums; }
.pane.dark { background: var(--ink); color: #fff; }
.pane .ph { font-weight: 600; margin-bottom: 10px; }
.pane .kv { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.pane .kv span { color: var(--muted); }
.pane.dark .kv span { color: #a8a8a8; }
.pane .kv b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.pane .no { color: #ff5a4f; }
.pane .tag.pass { display: inline-block; margin-top: 10px; padding: 4px 8px; background: var(--surface); font-size: 13px; font-weight: 600; }

/* loop-cost calculator */
.calc { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: 0 var(--m); align-items: start; }
.calc .l { grid-column: 1 / 7; }
.calc h2 { font-size: var(--step-head); }
.calc .l > p { margin-top: 18px; max-width: 44ch; }
.controls { margin-top: 28px; display: grid; gap: 22px; max-width: 520px; }
.controls label { display: grid; gap: 8px; font-weight: 600; font-size: 16px; }
.controls output { font-weight: 400; font-variant-numeric: tabular-nums; }
.controls input[type=range] { accent-color: var(--accent); width: 100%; height: 28px; cursor: pointer; }
.controls select { font: 500 16px var(--text); padding: 12px; border: 2px solid var(--surface-2); background: #fff; color: var(--ink); }
.controls select:focus { border-color: var(--ink); outline: 0; }
.calc .r { grid-column: 8 / 13; display: grid; gap: 8px; }
.out { padding: 28px; display: grid; gap: 6px; }
.out.bad { background: var(--ink); color: #fff; }
.out.good { background: var(--accent); color: #fff; }
.out span { font-size: 16px; }
.out b { font: 700 clamp(48px, 6vw, 96px)/.9 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; transition: transform .2s var(--ease); }
.out b.bump { transform: scale(1.03); }
.out small { font-size: 15px; }
.assume { font-size: 14px; color: var(--muted); margin-top: 8px; max-width: 52ch; }

/* comparison */
.cmp { padding: 0 var(--m); }
.cmp h2 { font-size: var(--step-head); max-width: 14em; }
.tablewrap { margin-top: 36px; overflow-x: auto; }
.cmp table { width: 100%; border-collapse: collapse; font-size: 17px; min-width: 640px; }
.cmp th, .cmp td { text-align: left; padding: 16px 18px; vertical-align: top; }
.cmp thead th { font: 700 18px/1.2 var(--display); letter-spacing: -0.01em; padding-bottom: 18px; }
.cmp tbody tr:nth-child(odd) { background: var(--surface); }
.cmp tbody th { font-weight: 600; }
.cmp td { color: var(--muted); }
.cmp .us { background: var(--accent); color: #fff; font-weight: 600; }
.cmp thead .us { color: #fff; }

@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:last-child { grid-column: 1 / -1; }
  .sec, .calc { grid-template-columns: 1fr; }
  .sec .l, .sec .r, .calc .l, .calc .r { grid-column: 1 / -1; }
  .calc .r { margin-top: 40px; }
  .sec .r { padding: 72px 16px 16px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 56px, 56px 56px, 56px 0); }
  .install { max-width: none; }
  .cmp table { min-width: 0; font-size: 14px; }
  .cmp th, .cmp td { padding: 10px 8px; }
  .cmp thead th { font-size: 14px; }
}
.tile.red .sw { background: var(--ink); }
@media (max-width: 860px) { .board .tile:last-child { grid-column: span 2; } }

/* features: visuals sit inside their tile, never cropped */
.tile { justify-content: space-between; }
.tile .viz { position: static; align-self: flex-start; max-width: 100%; overflow-wrap: anywhere; line-height: 1; }
.v-meter { font-size: clamp(40px, 5.4vw, 88px); font-variant-numeric: tabular-nums; }
.v-sw { font-size: clamp(30px, 3vw, 48px); }
.v-keys, .v-local { font-size: clamp(22px, 2vw, 30px); }
.v-plan { font-size: clamp(28px, 2.6vw, 40px); }
.v-wip { font-size: clamp(22px, 2.4vw, 40px); }
.v-acc { font-size: clamp(40px, 4vw, 64px); }
.tile .key { margin: 0 .2em .2em 0; }
/* motion, once the tile is revealed */
.tile.in .sw { animation: swOn 3.2s var(--ease) infinite; }
.tile.in .sw i { animation: swKnob 3.2s var(--ease) infinite; }
@keyframes swOn { 0%,45% { justify-content: flex-start; background: #444; } 50%,100% { justify-content: flex-end; background: var(--ink); } }
@keyframes swKnob { 0%,45% { transform: none; } 50%,100% { transform: none; } }
.tile.in .v-keys .key { animation: press 2.4s var(--ease) infinite; }
.tile.in .v-keys .key:nth-child(2) { animation-delay: .12s; }
@keyframes press { 0%,70%,100% { transform: none; } 78% { transform: translateY(4px); background: var(--accent); color: #fff; } }
.tile.in .v-local .key { animation: pulse 2.8s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.05); } }
#v-wip .cur { display: inline-block; width: .08em; height: .9em; background: currentColor; margin-left: .05em; vertical-align: -0.05em; animation: blink 1s steps(1) infinite; }
@media (max-width: 860px) { .v-meter { font-size: 9vw; } .v-wip { font-size: 5vw; } }
@media (prefers-reduced-motion: reduce) { .tile.in .sw, .tile.in .sw i, .tile.in .v-keys .key, .tile.in .v-local .key { animation: none; } }

/* calculator: controls in two columns, results stay in view */
.controls { grid-template-columns: 1fr 1fr; max-width: none; gap: 22px 32px; }
.controls label:first-child { grid-column: 1 / -1; }
.calc .r { position: sticky; top: 96px; }
.calc { align-items: start; }
#compare { padding-top: clamp(80px, 9vw, 140px); }

/* pricing: no empty half */
@media (max-width: 860px) { .controls { grid-template-columns: 1fr; } .calc .r { position: static; } }

/* MCP section */
.mcp { margin-top: clamp(120px, 14vw, 200px); background: var(--field-1); color: #fff; display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; padding: clamp(64px, 8vw, 120px) var(--m); align-items: start; }
.mcp .l { grid-column: 1 / 6; }
.mcp h2 { font-size: var(--step-head); }
.mcp .l > p { margin-top: 18px; max-width: 42ch; }
.mcp .mcpcmd { margin-top: 28px; }
.mcp .note { font-size: 16px; color: #cfcfcf; }
.tools { grid-column: 7 / 13; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tools li { background: #161616; padding: 24px; display: grid; gap: 8px; transition: background .2s, transform .2s var(--ease); }
.tools li:hover { background: #1f1f1f; transform: translateX(-4px); }
.tools li:first-child { background: var(--accent); }
.tools b { font: 700 clamp(22px, 2vw, 30px)/1 var(--display); letter-spacing: -0.02em; }
.tools code { font: 500 14px/1.5 var(--text); background: rgba(0,0,0,.35); padding: 8px 10px; overflow-wrap: anywhere; }

/* tested section */
.tested { padding: 0 var(--m); }
.tested h2 { font-size: var(--step-head); }
.tested > p { margin-top: 18px; max-width: 56ch; }
.results { margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.res { background: var(--surface); padding: 28px 24px 32px; display: grid; gap: 14px; align-content: start; }
.res:nth-child(2) { background: var(--accent); color: #fff; }
.res b { font: 700 clamp(44px, 4.6vw, 76px)/.9 var(--display); letter-spacing: -0.04em; }
.res span { font-size: 16px; }
.tested .caveat { margin-top: 24px; font-size: 16px; max-width: 70ch; }
.tested .caveat code { font: 600 15px var(--text); }
@media (max-width: 860px) {
  .mcp { grid-template-columns: 1fr; } .mcp .l, .tools { grid-column: 1 / -1; }
  .results { grid-template-columns: 1fr 1fr; }
}

/* plans */
.plans { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; padding: 0 var(--m); align-items: stretch; }
.plans h2 { grid-column: 1 / -1; font-size: var(--step-head); margin-bottom: 32px; }
.plan { grid-column: span 6; padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.plan.free { background: var(--surface); }
.plan.max { background: var(--ink); color: #fff; }
.plan .ph { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 16px; }
.plan .ph b { font: 700 clamp(28px, 2.6vw, 40px)/1 var(--display); letter-spacing: -0.02em; }
.plan .amt { grid-row: 1 / 3; grid-column: 2; font: 700 clamp(88px, 10vw, 160px)/.8 var(--display); letter-spacing: -0.05em; }
.plan .amt sup { font-size: .45em; vertical-align: top; }
.plan.max .amt { color: #ff5a4f; }
.plan .ph small { font-size: 16px; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 17px; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 0; top: .45em; width: 11px; height: 11px; background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 45%, 45% 45%, 45% 0); }
.plan .lim { font-size: 16px; margin-top: auto; }
.plan.max .lim { color: #cfcfcf; }
.plan .btn { align-self: flex-start; }
@media (max-width: 860px) { .plan { grid-column: 1 / -1; padding: 24px; } }
.pay-msg { font-size: 15px; min-height: 1.4em; color: #cfcfcf; } #buy-max:disabled { opacity: .6; cursor: wait; }
.pay-msg { display: grid; gap: 10px; }
.pay-msg .lic { display: block; background: #1f1f1f; color: #fff; padding: 10px; font: 500 13px/1.4 var(--text); overflow-wrap: anywhere; }
.pay-msg .copy { justify-self: start; }

/* hero downloads */
.downloads { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 250px)); gap: 6px; position: relative; z-index: 2; }
.dl { display: grid; gap: 2px; padding: 14px 16px; background: var(--ink); color: #fff; text-decoration: none; transition: background .15s, transform .15s var(--ease); }
.dl:hover { background: var(--accent); }
.dl:active { transform: translateY(2px); }
.dl b { font: 700 20px/1.1 var(--display); letter-spacing: -0.01em; }
.dl span { font-size: 14px; color: #cfcfcf; }
.dl:hover span { color: #fff; }
.dlnote { margin-top: 12px; font-size: 15px; max-width: 506px; position: relative; z-index: 2; }
.linkish { font: 600 15px var(--text); background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; cursor: pointer; overflow-wrap: anywhere; text-align: left; }
@media (max-width: 860px) { .downloads { grid-template-columns: 1fr 1fr; } }
