/* The public page of the Nexus server (docs/SPEC-PAGE-WEBSITE.md). The tokens and shapes are those of
   docs/mocks/website/account.html and docs/mocks/website/product.html. No external font, image or request. */

:root {
  --bg: #0b0d11; --panel: #12151a; --panel2: #171b21; --panel3: #1d2229;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.12); --line3: rgba(255,255,255,.22);
  --text: #eceef1; --dim: #a0a6af; --faint: #8a919b;
  --gold: #ece3cf; --gold-hi: #fff8e8; --gold-lo: #8f887a; --gold-bg: rgba(236,227,207,.08);
  --route: #4fd1c5; --route-bg: rgba(79,209,197,.10); --route-line: rgba(79,209,197,.38);
  --ok: #63d49a; --warn: #e6c34f; --bad: #f0564e; --bad-text: #ff8b84;
  --mono: "Cascadia Mono", ui-monospace, Consolas, monospace;
  --ui: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r: 16px; --r2: 10px;
  /* the width of the player: PLAYER_MAX_W at most, PLAYER_MIN_W at least, and not so high that its list leaves the
     first screen (PLAYER_REST_H is all but the video) */
  --w: min(100vw - 48px, max(720px, min(1600px, (100vh - 340px) * 2.37)));
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 14px/1.5 var(--ui); background: var(--bg);
  background-image:
    radial-gradient(900px 420px at 12% -8%, rgba(79,209,197,.07), transparent 70%),
    radial-gradient(800px 380px at 92% -4%, rgba(236,227,207,.06), transparent 70%);
  background-attachment: fixed;
  font-variant-numeric: lining-nums tabular-nums;
}
::selection { background: rgba(236,227,207,.35); }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
a { color: inherit; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--route); outline-offset: 2px; border-radius: 6px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; backdrop-filter: blur(14px); background: rgba(11,13,17,.72); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 16px; }
.logo { display: flex; flex: none; align-items: center; gap: 10px; font-weight: 600; letter-spacing: .26em; color: var(--gold); font-size: 13px; }
.logo svg { width: 22px; height: 22px; }
.grow { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 10px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); font-size: 12px; color: var(--dim); }
.chip b { color: var(--text); font-weight: 600; }
.chip.live { border-color: var(--route-line); background: var(--route-bg); }
.chip.soon { border-color: rgba(230,195,79,.45); background: rgba(230,195,79,.08); }
.chip.bad { border-color: rgba(240,86,78,.4); background: rgba(240,86,78,.08); }
.code-chip { display: inline-flex; align-items: center; gap: 8px; flex: none; padding: 5px 10px 5px 12px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.03);
  color: var(--text); font-family: var(--mono); font-size: 12px; letter-spacing: .12em; white-space: nowrap; transition: border-color .15s, background .15s; }
.code-chip:hover { border-color: var(--line3); background: rgba(255,255,255,.06); }
.code-chip .i { width: 14px; height: 14px; color: var(--dim); }
.code-chip:focus-visible, .user:focus-visible { border-radius: 999px; }
.user { display: inline-flex; min-width: 0; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255,255,255,.03); }
.user:hover { border-color: var(--line3); }
.user > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #17140d; font-weight: 700; font-size: 12px; text-transform: uppercase; }

/* ---------- layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 28px 24px 56px; display: grid; gap: 20px; }
.cards { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards > :only-child { grid-column: 1 / -1; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)); border: 1px solid var(--line);
  border-radius: var(--r); padding: 24px; position: relative;
}
.card h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.005em; }
.card .sub { margin: 4px 0 0; color: var(--dim); font-size: 13px; }
.eyebrow { margin: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 600; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 16px; border-radius: var(--r2); border: 1px solid var(--line2);
  background: rgba(255,255,255,.04); color: var(--text); font-weight: 500; font-size: 13px; text-decoration: none; transition: border-color .15s, background .15s, transform .08s, color .15s; white-space: nowrap; }
.btn:hover { border-color: var(--line3); background: rgba(255,255,255,.07); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #17140d; font-weight: 600; }
.btn.primary:hover { background: var(--gold-hi); border-color: var(--gold-hi); }
.btn.lg { padding: 12px 22px; font-size: 14px; }
.btn.block { width: 100%; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--dim); }
.btn.ghost:hover { color: var(--text); border-color: var(--line2); }
.btn.sm { padding: 5px 11px; font-size: 12px; }
.btn.danger { color: var(--bad-text); }
.btn.danger:hover { border-color: rgba(240,86,78,.6); color: var(--bad-text); }

/* ---------- hero ---------- */
.hero { padding: 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.hero-main { padding: 28px 32px; }
.hero-side { padding: 28px 28px 24px; border-left: 1px solid var(--line); background: rgba(0,0,0,.14); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 11px 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--route-line); background: var(--route-bg); color: var(--route); }
.pill.soon { border-color: rgba(230,195,79,.5); background: rgba(230,195,79,.1); color: var(--warn); }
.pill.bad { border-color: rgba(240,86,78,.45); background: rgba(240,86,78,.1); color: var(--bad-text); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); animation: pulse 2.2s ease-in-out infinite; }
.pill.bad .dot { animation: none; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 6%, transparent); } }
.hero-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.time { margin: 18px 0 0; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.1; font-weight: 500; letter-spacing: -.02em; color: var(--gold-hi); }
.time small { font-size: .5em; font-weight: 500; letter-spacing: 0; color: var(--gold-lo); margin-left: .14em; }
.time.off { color: var(--dim); }
.until { margin-top: 6px; color: var(--dim); font-size: 13px; }
.until b { color: var(--text); font-weight: 500; }
.meter { margin: 18px 0 22px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; max-width: 460px; }
.meter i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, rgba(79,209,197,.35), var(--route)); transition: width .6s linear; }
.meter.soon i { background: linear-gradient(90deg, rgba(230,195,79,.35), var(--warn)); }
.meter-gap { height: 22px; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-side .eyebrow { margin-bottom: 12px; }
.act { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.act li { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.act li:last-child { border-bottom: 0; }
.act .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--gold-bg); color: var(--gold); }
.act .ic.f { background: var(--route-bg); color: var(--route); }
.act .t { font-size: 13px; overflow-wrap: anywhere; }
.act .w { font-size: 12px; color: var(--faint); }
.act .d { font-size: 13px; font-weight: 600; color: var(--ok); }
.empty-note { color: var(--faint); font-size: 13px; }

/* ---------- compact cards ---------- */
.mini { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 18px 20px; }
.big-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--gold-bg); color: var(--gold); flex: none; }
.big-ic.ok { background: rgba(99,212,154,.1); color: var(--ok); }
.mini h2 { font-size: 14px; }
.mini .sub { margin: 2px 0 0; font-size: 12px; }
.ok-t { color: var(--ok); }

/* ---------- entry view ---------- */
.switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 12px; background: rgba(0,0,0,.28); border: 1px solid var(--line); }
.tab { padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--dim); font-weight: 500; font-size: 13px; }
.tab:hover { color: var(--text); }
.tab[aria-pressed="true"] { background: var(--panel3); color: var(--text); box-shadow: 0 0 0 1px var(--line2); }
.entry-form { display: block; }
.form-err { margin: 0 0 12px; }
.trial { margin: 18px 0 0; text-align: center; font-size: 12px; }
.trial:empty { display: none; }
.trial-link { color: var(--dim); text-decoration: none; border-bottom: 1px solid var(--line2); }
.trial-link:hover { color: var(--text); }

/* ---------- footer ---------- */
.foot { color: var(--faint); font-size: 12px; text-align: center; padding-top: 8px; }
.foot-links { padding-top: 0; }
.foot-link { color: var(--dim); text-decoration: none; border-bottom: 1px solid var(--line2); }
.foot-link:hover { color: var(--text); }

/* ---------- fields ---------- */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; color: var(--dim); font-weight: 500; }
.input { width: 100%; padding: 11px 13px; border-radius: var(--r2); border: 1px solid var(--line2); background: #080b10; color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: var(--faint); opacity: .8; }
.input:focus { border-color: var(--gold-lo); box-shadow: 0 0 0 3px rgba(236,227,207,.12); }
.input.mono { font-family: var(--mono); letter-spacing: .02em; }
.input.err { border-color: rgba(240,86,78,.7); }
.err-t { color: var(--bad-text); font-size: 12px; min-height: 18px; margin: -6px 0 8px; }
.err-t:empty { min-height: 0; margin: 0; }

/* ---------- overlay ---------- */
.veil { position: fixed; inset: 0; z-index: 90; background: rgba(5,7,10,.66); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; animation: fade .15s ease-out; }
.veil.right { place-items: stretch end; padding: 0; }
@keyframes fade { from { opacity: 0; } }
.modal { width: min(480px, 100%); background: var(--panel2); border: 1px solid var(--line2); border-radius: 18px; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.6); animation: rise .2s ease-out; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } }
.modal h2 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.modal .sub { margin: 6px 0 20px; color: var(--dim); font-size: 13px; }
.row-end { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.success { text-align: center; padding: 28px 28px 30px; }
.success .big-check { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; background: rgba(99,212,154,.12); color: var(--ok); border: 1px solid rgba(99,212,154,.4); animation: pop .35s ease-out; }
.success .big-check .i { width: 30px; height: 30px; stroke-width: 2.2; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.success h2 { font-size: 22px; }
.success p { color: var(--dim); margin: 8px 0 22px; }
.success p b { color: var(--text); font-weight: 500; }
.spin { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--route); margin: 6px auto 16px; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.drawer { width: min(420px, 100%); background: var(--panel2); border-left: 1px solid var(--line2); padding: 26px 26px 30px; overflow: auto; box-shadow: -30px 0 80px rgba(0,0,0,.5); animation: slide .22s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.drawer-head h2 { margin: 0; font-size: 18px; }
.sec { padding: 18px 0; border-top: 1px solid var(--line); }
.sec.first { border-top: 0; padding-top: 0; }
.sec h3 { margin: 0 0 4px; font-size: 13px; font-weight: 600; }
.sec p { margin: 0 0 12px; color: var(--dim); font-size: 13px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 4px 0; }
.kv span:first-child { color: var(--dim); }
.kv span:last-child { overflow-wrap: anywhere; text-align: right; }
.confirm { display: inline-flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--dim); font-size: 12px; }

.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; justify-items: center; pointer-events: none; width: max-content; max-width: calc(100% - 32px); }
.toast { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; background: #242a32; border: 1px solid var(--line3); box-shadow: 0 10px 30px rgba(0,0,0,.5); font-size: 13px; animation: rise .2s ease-out; }
.toast .i { color: var(--ok); }

/* ---------- product view ---------- */
body.pv { overflow-x: clip; }
.pv .top-in { max-width: calc(var(--w) + 48px); }
.pv .wrap { padding-top: 0; display: block; }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.cine { width: var(--w); margin-left: calc(50% - var(--w) / 2); }
.phero { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding: 20px 0 16px; }
.phero h1 { margin: 0; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: var(--gold-hi); }
.phero .lead { margin: 2px 0 0; color: var(--dim); font-size: 14px; }

.show { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0; overflow: hidden; }
.stage { min-width: 0; display: flex; flex-direction: column; }
.screen { position: relative; aspect-ratio: 1920 / 810; background: #000; overflow: hidden; cursor: pointer; }
.screen video, .screen .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.screen .poster { filter: brightness(.55); }
.screen.wait video { visibility: hidden; }
.screen .big-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(11,13,17,.6); border: 1px solid var(--line3); backdrop-filter: blur(6px); color: var(--gold-hi); pointer-events: none; opacity: 0; transition: opacity .15s; }
.screen .big-play .i { width: 26px; height: 26px; margin-left: 3px; fill: currentColor; stroke: none; }
.screen.paused .big-play { opacity: 1; }
.seek { height: 14px; margin-top: -7px; padding: 5px 0; position: relative; z-index: 2; cursor: pointer; }
.seek .track { height: 4px; background: rgba(255,255,255,.1); }
.seek .fill { height: 100%; width: 0; background: var(--route); }
.seek:hover .track { height: 6px; margin-top: -1px; }
.bar { display: flex; align-items: center; gap: 14px; padding: 10px 18px 14px; margin-top: -5px; }
.bar .now { min-width: 0; flex: 1; margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.005em; }
.bar .clock { color: var(--faint); font-size: 12px; white-space: nowrap; }
.ctl { display: flex; gap: 4px; flex: none; }
.icb { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--dim); transition: border-color .15s, color .15s, background .15s; }
.icb:hover { color: var(--text); border-color: var(--line2); background: rgba(255,255,255,.04); }
.icb .fillic { fill: currentColor; stroke: none; }

.list { border-top: 1px solid var(--line); background: rgba(0,0,0,.14); min-width: 0; }
.items { list-style: none; margin: 0; padding: 8px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.item { width: 100%; display: grid; grid-template-columns: 72px 1fr; gap: 4px 12px; align-items: center; padding: 6px; border-radius: 12px; border: 1px solid transparent; background: transparent; text-align: left; transition: background .15s, border-color .15s; }
.item:hover { background: rgba(255,255,255,.04); }
.item .thumb { position: relative; width: 72px; aspect-ratio: 1920 / 810; border-radius: 6px; overflow: hidden; background: #000; }
.item .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .75; transition: opacity .15s; }
.item:hover .thumb img, .item.on .thumb img { opacity: 1; }
.item .t { display: block; font-size: 13px; font-weight: 500; }
.item .d { display: block; font-size: 12px; color: var(--faint); }
.item .eq { position: absolute; inset: 0; display: none; place-items: center; background: rgba(11,13,17,.55); color: var(--route); }
.item.on { background: var(--panel3); border-color: var(--line2); }
.item.on .t { color: var(--gold-hi); }
.item.on .eq { display: grid; }
.item .prog { grid-column: 1 / -1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.08); overflow: hidden; display: none; }
.item.on .prog { display: block; }
.item .prog i { display: block; height: 100%; width: 0; background: var(--route); }
.eqb { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
.eqb i { width: 3px; background: currentColor; border-radius: 1px; transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.eqb i:nth-child(1) { height: 60%; }
.eqb i:nth-child(2) { height: 100%; animation-delay: .2s; }
.eqb i:nth-child(3) { height: 40%; animation-delay: .4s; }
.show.still .eqb i { animation-play-state: paused; }
@keyframes eq { 50% { transform: scaleY(.35); } }

.sect { max-width: 1120px; margin: 0 auto; padding-top: 56px; }
.sect > h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.acard { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 16px; text-align: left; width: 100%; color: inherit; font: inherit; }
.acard img { width: 44px; height: 44px; }
.acard h3 { margin: 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acard .watch { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px 1px 6px; border-radius: 999px; border: 1px solid var(--route-line); background: var(--route-bg); color: var(--route); font-size: 11px; font-weight: 600; }
.acard .watch .i { width: 9px; height: 9px; fill: currentColor; stroke: none; }
button.acard { transition: border-color .15s, background .15s, transform .08s; }
button.acard:hover { border-color: var(--line3); background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); }
button.acard:active { transform: translateY(1px); }

.chain { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); margin-top: 22px; padding: 0; overflow: hidden; }
.chain-text { padding: 32px; display: grid; align-content: center; }
.chain-text p { margin: 0; font-size: 18px; line-height: 1.45; }
.chain-demo { padding: 22px 24px; background: rgba(0,0,0,.14); border-left: 1px solid var(--line); }
.chain-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.chain-head .t { font-size: 12px; color: var(--faint); }
.chores { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.chores li { display: grid; grid-template-columns: 32px minmax(0, 1.2fr) minmax(60px, 1fr) 64px; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 12px; border: 1px solid transparent; }
.chores img { width: 32px; height: 32px; }
.chores b { display: block; font-size: 13px; font-weight: 500; }
.chores .c { display: block; font-size: 12px; color: var(--faint); }
.chores em { font-style: normal; font-size: 12px; color: var(--faint); text-align: right; }
.cbar { height: 4px; border-radius: 4px; background: rgba(255,255,255,.07); overflow: hidden; }
.cbar i { display: block; height: 100%; border-radius: 4px; background: var(--route); }
.chores .done { opacity: .6; }
.chores .done em { color: var(--ok); }
.chores .done .cbar i { background: var(--ok); }
.chores .run { background: var(--panel3); border-color: var(--line2); }
.chores .run em { color: var(--route); font-weight: 600; }
.chores .next em { color: var(--text); }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 22px; padding: 0; overflow: hidden; }
.step { padding: 24px; border-left: 1px solid var(--line); }
.step:first-child { border-left: 0; }
.step .n { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--gold-bg); color: var(--gold); font-weight: 600; font-size: 13px; margin-bottom: 12px; }
.step h3 { margin: 0; font-size: 15px; font-weight: 600; }
.step .btn { margin-top: 14px; }
.pv .foot { padding-top: 48px; }
.pv .foot-links { padding-top: 6px; }
.modal.entry-card { width: min(400px, 100%); padding: 24px; }

/* ---------- narrow: under 900 px, one column ---------- */
@media (max-width: 899px) {
  :root { --w: 100%; }
  .nav { display: none; }
  .items { grid-auto-columns: 132px; overflow-x: auto; padding: 8px 12px 12px; gap: 8px; }
  .item { grid-template-columns: 1fr; gap: 6px; align-content: start; }
  .item .thumb { width: 100%; }
  .item .d { display: none; }
  .bar .clock { display: none; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chain { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .chain-demo { border-left: 0; border-top: 1px solid var(--line); }
  .chain-text { padding: 24px 20px; }
  .step { border-left: 0; border-top: 1px solid var(--line); }
  .step:first-child { border-top: 0; }
  .hero, .cards { grid-template-columns: 1fr; }
  .hero-side { border-left: 0; border-top: 1px solid var(--line); }
  .hero-main { padding: 26px 22px; }
  .top-in, .wrap { padding-left: 16px; padding-right: 16px; }
  .chip.hide-s { display: none; }
}

/* very narrow: the link "Discord" gives way first, never the code */
@media (max-width: 559px) {
  .hide-xs { display: none; }
  .grid4 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
