/* SwapLords platform site.
   Dark, violet, structural. The storefront themes live in their own files and
   share none of this, so changing the platform's look never touches a panel. */

@font-face { font-family: 'Display'; src: url('/fonts/space-grotesk-vf.woff2') format('woff2-variations');
  font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'Body'; src: url('/fonts/inter-vf.woff2') format('woff2-variations');
  font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Mono'; src: url('/fonts/mono-vf.woff2') format('woff2-variations');
  font-weight: 100 800; font-display: swap; }

:root {
  --ink: #07070a;
  --ink-2: #0d0d13;
  --ink-3: #14141c;
  --line: #23232e;
  --line-2: #2e2e3c;
  --text: #f3f3f7;
  --muted: #9a9aad;
  --faint: #6a6a7e;
  --brand: #8b5cf6;
  --brand-2: #a78bfa;
  --brand-dim: #5b21b6;
  --good: #34d399;
  --warn: #fbbf24;
  --bad: #f87171;
  --radius: 14px;
  --radius-sm: 9px;
  --wrap: 1140px;
  --shadow: 0 18px 50px -20px rgba(0,0,0,.85);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--ink); color: var(--text);
  font-family: 'Body', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6; overflow-x: hidden;
  font-feature-settings: 'cv05' 1, 'ss01' 1;
}
h1, h2, h3, h4, .display { font-family: 'Display', 'Body', sans-serif; font-weight: 600; letter-spacing: -.02em; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.14rem; }
p { margin: 0 0 1em; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
code, .mono, kbd { font-family: 'Mono', ui-monospace, monospace; font-size: .92em; }
img, svg { max-width: 100%; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.4rem 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap-narrow { max-width: 760px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .875rem; }
.tiny { font-size: .8rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(7,7,10,.82);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 1.4rem; height: 66px; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: 'Display', sans-serif;
  font-weight: 700; font-size: 1.16rem; letter-spacing: -.03em; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 27px; height: 27px; display: block; }
.nav { display: flex; gap: 1.35rem; align-items: center; margin-left: auto; }
.nav a:not(.btn) { color: var(--muted); font-size: .92rem; font-weight: 500; }
.nav a:not(.btn):hover, .nav a.on { color: var(--text); text-decoration: none; }
.nav a.btn-primary { color: #fff; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); padding: .45rem .6rem; margin-left: auto; cursor: pointer; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.25rem; border-radius: var(--radius-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: .94rem; cursor: pointer; white-space: nowrap;
  transition: transform .08s ease, filter .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff;
  box-shadow: 0 10px 28px -12px rgba(139,92,246,.85); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--ink-3); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--brand); background: #191922; }
.btn-line { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-line:hover { border-color: var(--brand); }
.btn-danger { background: #2a1416; border-color: #5c2126; color: #fca5a5; }
.btn-danger:hover { border-color: var(--bad); }
.btn-sm { padding: .42rem .8rem; font-size: .84rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* surfaces */
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card-pad { padding: 1.8rem; }
.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-head { padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); display: flex; gap: 1rem;
  align-items: center; justify-content: space-between; flex-wrap: wrap; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1.02rem; }
.panel-body { padding: 1.3rem; }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }

/* hero */
.hero { position: relative; padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -40% 20% auto -10%; height: 760px;
  background: radial-gradient(closest-side, rgba(124,58,237,.22), transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; inset: -30% -20% auto auto; width: 820px; height: 820px;
  background: radial-gradient(closest-side, rgba(167,139,250,.13), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 600;
  letter-spacing: .13em; text-transform: uppercase; color: var(--brand-2);
  border: 1px solid rgba(139,92,246,.32); background: rgba(139,92,246,.09);
  padding: .35rem .75rem; border-radius: 100px; margin-bottom: 1.4rem; }
.hero h1 { max-width: 19ch; }
.hero h1 .accent { background: linear-gradient(110deg, var(--brand-2), #c4b5fd 55%, var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.12rem); color: var(--muted); max-width: 54ch; margin-bottom: 1.9rem; }
.hero-cta { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.hero-note { color: var(--faint); font-size: .86rem; margin-top: .9rem; }

/* preview mock */
  border-radius: 10px; text-align: center; padding: .72rem; font-weight: 600; font-size: .92rem; color: #fff; }

/* sections */
.section { padding: clamp(3rem, 7vw, 5.2rem) 0; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,.015), transparent); }
.section-head { max-width: 62ch; margin-bottom: 2.4rem; }
.section-head.center { margin-left: auto; margin-right: auto; }
.eyebrow { font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-2); margin-bottom: .7rem; }

.pillar { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ink-2); position: relative; overflow: hidden; }
.pillar::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent); opacity: .5; }
.pillar h3 { margin-bottom: .55rem; }
.pillar p { color: var(--muted); margin: 0; font-size: .95rem; }

.step { display: flex; gap: 1rem; align-items: flex-start; }
.step-n { font-family: 'Mono', monospace; font-size: .8rem; color: var(--brand-2);
  border: 1px solid rgba(139,92,246,.3); border-radius: 7px; padding: .25rem .5rem; flex: 0 0 auto; }
.step h3 { font-size: 1rem; margin-bottom: .3rem; }
.step p { color: var(--muted); font-size: .91rem; margin: 0; }

.feat { padding: 1.25rem; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ink-2); }
.feat h3 { font-size: .98rem; margin-bottom: .35rem; }
.feat p { color: var(--muted); font-size: .89rem; margin: 0; }

.note-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.note-list li { position: relative; padding-left: 1.6rem; margin-bottom: .75rem; color: var(--muted); font-size: .94rem; }
.note-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 7px; height: 7px;
  border-radius: 2px; background: var(--brand); }

details.faq { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--ink-2); margin-bottom: .6rem; }
details.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 600; font-size: .97rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; color: var(--brand-2); font-size: 1.2rem; line-height: 1; }
details.faq[open] summary::after { content: '\2212'; }
details.faq .faq-a { padding: 0 1.2rem 1.1rem; color: var(--muted); font-size: .93rem; }

/* forms */
label { display: block; font-size: .86rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; }
.hint { font-size: .8rem; color: var(--faint); font-weight: 400; margin-top: .3rem; }
input[type=text], input[type=password], input[type=number], input[type=url], input[type=email], select, textarea {
  width: 100%; background: #0a0a11; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  color: var(--text); padding: .68rem .85rem; font: inherit; font-size: .95rem; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(139,92,246,.16); }
input[type=color] { width: 56px; height: 40px; padding: 2px; background: #0a0a11; border: 1px solid var(--line-2); border-radius: 8px; }
textarea { min-height: 96px; resize: vertical; }
.field { margin-bottom: 1.05rem; }
.field-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; font-size: .92rem; }
.check input { width: auto; margin-top: .25rem; flex: 0 0 auto; accent-color: var(--brand); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.1rem; margin: 0 0 1.2rem; }
legend { padding: 0 .5rem; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-2); }

.alert { border-radius: var(--radius-sm); padding: .85rem 1.1rem; font-size: .92rem; margin-bottom: 1.2rem; border: 1px solid; }
.alert-bad { background: rgba(248,113,113,.08); border-color: rgba(248,113,113,.35); color: #fecaca; }
.alert-good { background: rgba(52,211,153,.08); border-color: rgba(52,211,153,.32); color: #a7f3d0; }
.alert-warn { background: rgba(251,191,36,.08); border-color: rgba(251,191,36,.32); color: #fde68a; }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-size: .74rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; padding: .65rem .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: .8rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.018); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .74rem; font-weight: 600;
  padding: .22rem .55rem; border-radius: 100px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.tag-good { color: #6ee7b7; border-color: rgba(52,211,153,.34); background: rgba(52,211,153,.08); }
.tag-warn { color: #fcd34d; border-color: rgba(251,191,36,.34); background: rgba(251,191,36,.08); }
.tag-bad { color: #fca5a5; border-color: rgba(248,113,113,.34); background: rgba(248,113,113,.08); }
.tag-brand { color: var(--brand-2); border-color: rgba(139,92,246,.4); background: rgba(139,92,246,.1); }

.kpi { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1.05rem 1.15rem; }
.kpi-n { font-family: 'Display', sans-serif; font-size: 1.85rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.kpi-l { font-size: .78rem; color: var(--faint); letter-spacing: .07em; text-transform: uppercase; margin-top: .2rem; }

/* dash shell */
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 1.8rem; align-items: start;
  padding: 1.8rem 0 4rem; }
.side { position: sticky; top: 84px; background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .7rem; }
.side a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 8px;
  color: var(--muted); font-size: .9rem; font-weight: 500; }
.side a:hover { background: var(--ink-3); color: var(--text); text-decoration: none; }
.side a.on { background: rgba(139,92,246,.13); color: var(--brand-2); }
.side .side-h { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
  padding: .8rem .7rem .3rem; font-weight: 600; }
.page-head { margin-bottom: 1.5rem; }
.page-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .25rem; }
.page-head p { color: var(--muted); margin: 0; font-size: .94rem; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; margin-top: 2rem; background: var(--ink-2); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(130px, 1fr)); gap: 2rem; }
.foot-grid h4 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: .7rem; font-family: 'Body', sans-serif; font-weight: 600; }
.foot-grid a { display: block; color: var(--muted); font-size: .89rem; margin-bottom: .45rem; }
.foot-grid a:hover { color: var(--text); }
.foot-bottom { margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--faint); font-size: .83rem; }

.cta-band { background: linear-gradient(135deg, rgba(139,92,246,.14), rgba(76,29,149,.09));
  border: 1px solid rgba(139,92,246,.26); border-radius: 18px; padding: clamp(2rem, 5vw, 3.2rem); text-align: center; }
.cta-band h2 { margin-bottom: .6rem; }
.cta-band p { color: var(--muted); max-width: 52ch; margin: 0 auto 1.6rem; }

.auth-wrap { min-height: 72vh; display: grid; place-items: center; padding: 2.5rem 0; }
.auth-card { width: 100%; max-width: 420px; }

/* --- the live exchange box in the hero -------------------------------------
   Same job the old mock picture did, except it quotes for real. */
.demo { background: linear-gradient(170deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line-2);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.demo-bar { display: flex; align-items: center; gap: .45rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: #10101a; }
.demo-dot { width: 9px; height: 9px; border-radius: 50%; background: #2c2c3a; flex: 0 0 auto; }
.demo-url { margin-left: .5rem; font-family: 'Mono', monospace; font-size: .74rem; color: var(--faint);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-live { margin-left: auto; display: inline-flex; align-items: center; gap: .35rem; font-size: .68rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--good); flex: 0 0 auto; }
.demo-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--good); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.demo-body { padding: 1.2rem; }
.demo-leg { display: flex; align-items: center; gap: .7rem; background: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .8rem .9rem; }
.demo-leg .grow { flex: 1 1 auto; min-width: 0; }
/* Only the little caption above the amount, not the coin picker, which is a
   label too and was being turned into a block by this. */
.demo-leg .grow label { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; margin-bottom: .2rem; }
/* input[type=number] above is an attribute selector, so this needs the element
   in front of the class to outrank it. */
input.demo-amt, .demo-amt { width: 100%; border: 0; background: none; color: var(--text); font-family: 'Mono', monospace;
  font-size: 1.2rem; font-weight: 600; padding: 0; outline: none; min-width: 0; }
input.demo-amt::-webkit-outer-spin-button, .demo-amt::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input.demo-amt[type=number] { -moz-appearance: textfield; padding: 0; }
.demo-out { color: var(--brand-2); transition: opacity .18s ease; }
.demo-out.wait { opacity: .35; }
.demo-leg label.demo-pick, .demo-pick { display: flex; align-items: center; gap: .45rem; background: var(--ink-3); border: 1px solid var(--line-2);
  border-radius: var(--radius-sm); padding: .4rem .55rem; cursor: pointer; flex: 0 0 auto; }
.demo-pick:focus-within { border-color: var(--brand); }
.demo-pick img { width: 22px; height: 22px; border-radius: 50%; }
.demo-pick select { background: none; border: 0; color: var(--text); font: inherit; font-weight: 600; font-size: .92rem;
  outline: none; cursor: pointer; padding-right: .1rem; }
.demo-pick select option { background: var(--ink-2); color: var(--text); }
.demo-flip { display: flex; justify-content: center; margin: -.5rem 0; position: relative; z-index: 2; }
.demo-flip button { width: 32px; height: 32px; border-radius: 50%; background: var(--ink-3); border: 1px solid var(--line-2);
  color: var(--brand-2); cursor: pointer; display: grid; place-items: center; transition: transform .25s ease, border-color .2s ease; }
.demo-flip button:hover { border-color: var(--brand); transform: rotate(180deg); }
.demo-leg + .demo-flip + .demo-leg { margin-top: 0; }
.demo-rate { font-family: 'Mono', monospace; font-size: .78rem; color: var(--muted); padding: .75rem .2rem .2rem; min-height: 1.6em; }
.demo-rate.err { color: var(--warn); }
.demo-rate b { color: var(--text); font-weight: 600; }
.demo-cta { display: block; text-align: center; margin-top: .7rem; background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff; font-weight: 700; padding: .85rem; border-radius: var(--radius-sm); box-shadow: 0 12px 28px -14px var(--brand); }
.demo-cta:hover { filter: brightness(1.08); text-decoration: none; }
.demo-note { color: var(--faint); font-size: .76rem; text-align: center; margin-top: .7rem; }
.flash { animation: flash .6s ease; }
@keyframes flash { from { color: var(--good); } to { color: inherit; } }

/* --- live price strip ------------------------------------------------------ */
.ticker-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); overflow: hidden; }
.ticker { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker-row { display: flex; gap: 0; flex: 0 0 auto; animation: slide 64s linear infinite; }
.ticker:hover .ticker-row { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tick { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border-right: 1px solid var(--line);
  white-space: nowrap; font-size: .84rem; }
.tick img { width: 18px; height: 18px; border-radius: 50%; }
.tick b { font-weight: 600; }
.tick .px { font-family: 'Mono', monospace; color: var(--muted); }
.tick .up { color: var(--good); font-size: .78rem; }
.tick .dn { color: var(--bad); font-size: .78rem; }
.tick .flat { color: var(--faint); font-size: .78rem; }

/* --- honest numbers --------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 1rem; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.2rem; background: var(--ink-2); text-align: center; }
.stat-n { font-family: 'Display', sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -.03em;
  background: linear-gradient(120deg, var(--brand-2), #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-l { color: var(--muted); font-size: .84rem; margin-top: .2rem; }

/* --- things arriving -------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }


/* --- theme previews --------------------------------------------------------
   A small drawing of a storefront, painted with the theme's real colours. */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 1.6rem; margin-top: 1.8rem; }
.theme-card h3 { margin: .9rem 0 .35rem; }
.theme-card p { margin: 0; }
.theme-prev { border: 1px solid; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 11;
  display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.theme-card:hover .theme-prev { transform: translateY(-4px); box-shadow: var(--shadow); }
.theme-bar { display: flex; align-items: center; gap: .3rem; padding: .45rem .6rem; border-bottom: 1px solid; flex: 0 0 auto; }
.theme-bar span { width: 6px; height: 6px; border-radius: 50%; }
.theme-bar em { font-family: 'Mono', monospace; font-size: .58rem; font-style: normal; margin-left: .3rem;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.theme-body { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; padding: .8rem; flex: 1 1 auto; align-items: center; }
.theme-copy { display: flex; flex-direction: column; gap: .3rem; }
.theme-copy i { width: 38%; height: 6px; border-radius: 3px; }
.theme-copy b { height: 9px; border-radius: 3px; width: 86%; }
.theme-copy s { height: 5px; border-radius: 3px; width: 70%; opacity: .55; }
.theme-box { border: 1px solid; border-radius: 7px; padding: .4rem; display: flex; flex-direction: column; gap: .3rem; }
.theme-leg { border: 1px solid; border-radius: 5px; padding: .3rem .35rem; display: flex; align-items: center; justify-content: space-between; }
.theme-leg span { height: 5px; width: 42%; border-radius: 3px; opacity: .7; }
.theme-leg em { height: 9px; width: 24%; border-radius: 3px; }
.theme-go { height: 13px; border-radius: 5px; margin-top: .1rem; }
.theme-strip { display: flex; gap: .5rem; padding: .35rem .6rem; border-top: 1px solid; flex: 0 0 auto; }
.theme-strip u { height: 5px; width: 34px; border-radius: 3px; opacity: .5; text-decoration: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero .demo { order: 2; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .side nav { display: flex; flex-wrap: wrap; gap: .3rem; }
  .side .side-h { width: 100%; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: 66px 0 auto 0; background: var(--ink-2); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 20px 1.1rem; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .7rem 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .7rem; }
  .burger { display: block; }
}
@media (max-width: 560px) {
  .demo-body { padding: 1rem; }
  .demo-leg { padding: .7rem; gap: .5rem; }
  .demo-amt { font-size: 1.05rem; }
  .demo-pick { padding: .35rem .45rem; }
  .demo-pick select { font-size: .86rem; max-width: 92px; }
  .tick { padding: .6rem .8rem; font-size: .8rem; }
  .stat { padding: 1.1rem .9rem; }
}

/* Everything that moves is a nicety. Switch it all off for anyone who asked
   their system to stop animations, including the price strip. */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .ticker-row { animation: none !important; }
  .ticker { overflow-x: auto; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
