/* ex5world.com: one stylesheet for every page. The EX5R's front as the page: slate blue, dark panels, the green LCD, in one
   typeface (Inter); light bands (.light) where there is text to read; each page's colour in --accent. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/InterVariable.woff2") format("woff2"); }
:root {
  --bg: #121826;
  --bg2: #182033;
  --panel: #212b41;
  --panel2: #2b3750;
  --line: #526180;
  --line2: #6a7a98;
  --ink: #f5f7fb;
  --ink-dim: #d0d8e5;
  --ink-faint: #aab5c8;
  --lcd: #b8d34c;
  --lcd-hi: #cfe56b;
  --lcd-ink: #1b230d;
  --slate: #3a4970;
  --accent: var(--lcd);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -20px rgba(0, 0, 0, .7);
  --radius: 12px;
  --wrap: 1180px;
  --gutter: 24px;
  color-scheme: dark;
}

/* the accent as text: as it is on the dark page, darker on a light band (worked out on every element, from its own --accent) */
* { --accent-ink: var(--accent); box-sizing: border-box; }
.light, .light * { --accent-ink: color-mix(in oklab, var(--accent) 48%, #10131a); }
.light {
  --bg: #f4f5f8; --bg2: #e7eaf0; --panel: #ffffff; --panel2: #f0f2f6; --line: #d3d9e3; --line2: #aeb7c6;
  --ink: #141a26; --ink-dim: #424c60; --ink-faint: #4e596d;
  --shadow: 0 1px 2px rgba(20, 26, 38, .06), 0 14px 34px -16px rgba(20, 26, 38, .22);
  color-scheme: light; background: var(--bg); color: var(--ink);
}
.alt { background: var(--bg2); }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; font-feature-settings: "cv11", "ss01"; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.022em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
section[id], .buybox[id], .addcart[id] { scroll-margin-top: 76px; }  /* (a section reached by a link, under the sticky header) */

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(18, 24, 38, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; flex-wrap: wrap; }
/* the logo: the globe of keys (assets/ex5world.svg) and the name, EX5 in ink and WORLD in the LCD's green */
.word { font-weight: 800; letter-spacing: .04em; color: var(--ink); white-space: nowrap; }
.word b { font-weight: 800; color: var(--lcd); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1; }
.brand .emblem { width: 36px; height: 36px; flex: none; }
.brand .txt { display: flex; flex-direction: column; }
.brand .word { font-size: 20px; line-height: 1; }
.brand .sub { margin-top: 5px; font: 600 9px/1.25 var(--sans); letter-spacing: .12em; color: var(--ink-faint); text-transform: uppercase; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; color: var(--ink-dim); font: 500 15px/1 var(--sans); padding: 10px 12px; border-radius: 6px; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: rgba(255, 255, 255, .1); }
.nav .short { display: none; }
/* PayPal's View cart button (PayPal draws it in .cart) */
.top .cart { margin-left: -12px; }
.top .cart .viewCartButtonContainer { height: 40px !important; border-radius: 999px !important; padding: 0 16px; font: 600 15px/1 var(--sans) !important; }

/* ---------- buttons, pills, labels ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font: 600 15.5px/1 var(--sans); text-decoration: none; cursor: pointer; transition: filter .15s, transform .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--lcd); color: var(--lcd-ink); }
.btn.primary:hover { background: var(--lcd-hi); }
.btn.ghost { border-color: var(--line2); color: var(--ink); background: rgba(255, 255, 255, .06); }
.btn.ghost:hover { background: rgba(255, 255, 255, .14); }
.btn.paypal { background: #ffc439; color: #111; }
.btn.paypal:hover { filter: brightness(1.05); }
/* PayPal's Add to cart button (PayPal draws its price and button in .addcart): the name is already beside it */
.addcart { margin-top: 16px; position: relative; z-index: 2; }
.card, .pack { position: relative; }
.stretch { color: inherit; text-decoration: none; }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }  /* (a card that holds the button: its name's link covers it, under the button) */
.addcart [id$="-wrapper"] { margin: 0 !important; }
.addcart .item-title, .addcart .item-description { display: none !important; }
.addcart .item-header { margin-bottom: 10px !important; }
.addcart.hbuy { margin-top: 26px; max-width: 360px; }
.addcart.hbuy .item-header { font-size: 26px; }
.addcart .addToCartButtonContainer { height: 46px !important; border-radius: 999px !important; font: 600 15px/1 var(--sans) !important; }

.kicker { display: inline-block; font: 600 15px/1 var(--sans); color: var(--accent-ink); margin-bottom: 18px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 99px; font: 600 12.5px/1 var(--sans); border: 1px solid var(--line2); color: var(--ink-dim); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); }
.pill.soon::before { background: #f0a33a; box-shadow: 0 0 8px #f0a33a; }
.pill.buy { color: var(--ink); border-color: var(--accent); }
.pill.buy::before { background: #3ec98a; box-shadow: 0 0 8px #3ec98a; }
.pname { font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pname b { color: var(--accent-ink); font-weight: 800; }

/* the instrument's LCD: the counts on the home page */
.lcd { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; padding: 9px 14px; border-radius: 2px; font: 600 14px/1 var(--mono); letter-spacing: .1em; color: var(--lcd-ink); background: linear-gradient(var(--lcd-hi), var(--lcd)); box-shadow: 0 0 0 4px #0b0f18, inset 0 0 14px rgba(27, 35, 13, .28); }
.lcd b { font-weight: 800; }
.lcd i { width: 18px; }

/* ---------- screenshots ---------- */
.frame { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 40px 70px -36px #000; background: #000; }
.frame button.zoom { all: unset; display: block; cursor: zoom-in; }
.frame img { width: 100%; }

/* ---------- sections ---------- */
section { padding: 96px 0; }
section.tight { padding: 56px 0; }
.sec-head { max-width: 760px; margin-bottom: 32px; }
.sec-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 750; }
.sec-head p { margin: 10px 0 0; color: var(--ink-dim); font-size: 18px; }
.seclink { font: 600 15px/1.2 var(--sans); color: var(--lcd); text-decoration: none; white-space: nowrap; }
.seclink:hover { text-decoration: underline; }
.minihead { font-size: 26px; font-weight: 750; margin-bottom: 24px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; background: linear-gradient(var(--slate), #283556 58%, var(--bg)); }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; max-width: 15ch; }
.hero .lead { margin: 22px 0 0; max-width: 640px; font-size: clamp(18px, 2vw, 20px); color: var(--ink-dim); }
.hero .actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero.split .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 32px; align-items: center; }
/* the rack's ears: the EX5R's oval holes down both edges, on a screen with room for them */
.hero::before, .hero::after { content: ""; position: absolute; top: 0; bottom: 0; width: 44px; display: none;
  background: radial-gradient(ellipse 15px 8px at 50% 50%, #0b0f18 96%, transparent 100%) center 34px / 44px 150px repeat-y; }
.hero::before { left: 6px; }
.hero::after { right: 6px; }
@media (min-width: 1340px) { .hero::before, .hero::after { display: block; } }

/* the covers, fanned out */
.fan { list-style: none; margin: 0; padding: 0; position: relative; height: 340px; }
.fan li { position: absolute; left: 50%; top: 50%; width: min(236px, 20vw); transform: translate(-50%, -50%) translateX(calc(var(--i) * min(70px, 6vw))) translateY(calc((var(--i) * var(--i)) * 10px)) rotate(calc(var(--i) * 7deg)); }
.fan img { width: 100%; border-radius: 12px; box-shadow: 0 24px 40px -14px rgba(0, 0, 0, .8); }

/* a bank's or an app's own top */
.hero .pname { display: block; font-size: clamp(38px, 6vw, 66px); line-height: 1.02; }
.hero .tagline { margin: 16px 0 0; font-size: clamp(21px, 2.5vw, 28px); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; max-width: 26ch; }
.hero .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 28px; }
.khero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.kcover img { width: 100%; border-radius: 14px; box-shadow: 0 34px 60px -24px #000; }
.phero .shot { margin-top: 48px; }

/* ---------- the catalogue ---------- */
.packs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pack { display: flex; flex-direction: column; text-decoration: none; border-radius: 14px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.pack:hover { transform: translateY(-3px); border-color: var(--accent); }
.pack .cover { aspect-ratio: 1; overflow: hidden; background: #000; }
.pack .cover img { width: 100%; height: 100%; object-fit: cover; }
.pack .body, .card .body { display: flex; flex-direction: column; gap: 9px; flex: 1; padding: 18px 20px 20px; }
.pack .pname { font-size: 19px; }
.kind { font: 600 13px/1.2 var(--sans); color: var(--ink-faint); }
.tag { margin: 0; color: var(--ink-dim); font-size: 15.5px; line-height: 1.45; }
.foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.more { font: 600 14px/1 var(--sans); color: var(--accent-ink); white-space: nowrap; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.card { display: flex; flex-direction: column; text-decoration: none; border-radius: 16px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card .img { aspect-ratio: 16 / 9.4; overflow: hidden; background: #000; }
.card .img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card .body { padding: 22px 24px 24px; }
.card .pname { font-size: 24px; }
.card .tag { font-size: 16.5px; }

/* the sound banks' categories */
.sfilter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.sfilter button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line2); background: none; color: var(--ink-dim); font: 600 14.5px/1 var(--sans); cursor: pointer; }
.sfilter button i { font-style: normal; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.sfilter button:hover { color: var(--ink); border-color: var(--ink-faint); }
.sfilter button.on { background: var(--lcd); border-color: var(--lcd); color: var(--lcd-ink); }
.sfilter button.on i { color: var(--lcd-ink); }
.pcat + .pcat { margin-top: 52px; }
.pcat[hidden] { display: none; }
.pcat-head { margin-bottom: 22px; padding-left: 14px; border-left: 4px solid var(--accent); }
.pcat-head h2 { font-size: 26px; font-weight: 750; }
.pcat-head p { margin: 6px 0 0; color: var(--ink-dim); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step { padding-top: 18px; border-top: 2px solid var(--accent-ink); }
.step::before { counter-increment: s; content: "0" counter(s); display: block; margin-bottom: 14px; font: 700 13px/1 var(--sans); color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-dim); font-size: 16px; }

/* ---------- a product's facts ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { font-size: clamp(32px, 4.4vw, 50px); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-dim); font-size: 15.5px; }
.kintro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px; margin-top: 36px; font-size: 18.5px; color: var(--ink-dim); }
.kintro p { margin: 0; }
.kintro b { color: var(--ink); }
#features .kintro { margin: 0 0 32px; grid-template-columns: minmax(0, 760px); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { padding: 20px 22px 22px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--accent); }
.tile h3 { font-size: 18px; margin-bottom: 8px; }
.tile p { margin: 0; color: var(--ink-dim); font-size: 16px; line-height: 1.5; }
.tile ul { margin: 0; padding: 0; list-style: none; color: var(--ink-dim); font-size: 16px; line-height: 1.45; }
.tile li + li { margin-top: 7px; }
.tile b { color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 12px; color: var(--ink-faint); font-size: 15px; }

/* ---------- a product's long part (site.json "deep") ---------- */
.toc { display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line2); text-decoration: none; color: var(--ink-dim); font: 600 14px/1 var(--sans); }
.toc a:hover { color: var(--ink); border-color: var(--ink-faint); }
.dsec { padding: 64px 0; }
.dsec h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 750; max-width: 24ch; }
.dsec .lead { margin: 14px 0 0; max-width: 720px; font-size: 20px; color: var(--ink-dim); }
.dbody { display: grid; gap: 26px; margin-top: 30px; }
.dbody > p, .dcol > p { margin: 0; color: var(--ink-dim); font-size: 18px; }
.dbody > p { max-width: 780px; }
.dbody b { color: var(--ink); }
.dbody h3 { font-size: 23px; font-weight: 750; }
.drow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; align-items: start; }
.dcol { display: grid; gap: 20px; min-width: 0; }
.points { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; color: var(--ink-dim); }
.points li { position: relative; padding-left: 19px; }
.points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.dbody figure { margin: 0; min-width: 0; }
.dbody figcaption { margin-top: 11px; color: var(--ink-faint); font-size: 15px; }
.fig svg { display: block; width: 100%; height: auto; }
.fig text { font-family: var(--sans); }
.fig.solo { max-width: 680px; }
.dtable { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); }
.dtable table { width: 100%; border-collapse: collapse; font-size: 16px; }
.dtable th { padding: 12px 16px; text-align: left; font-weight: 700; color: var(--ink); background: var(--panel2); }
.dtable td { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink-dim); vertical-align: top; }
.dtable td:first-child { color: var(--ink); font-weight: 650; white-space: nowrap; }
/* the square to drag */
.vlab { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 36px; align-items: center; padding: 26px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.vsq { display: block; width: 100%; height: auto; cursor: grab; touch-action: none; }
.vsq:active { cursor: grabbing; }
.vbars { display: grid; gap: 14px; }
.vb { display: grid; grid-template-columns: 22px 66px minmax(0, 1fr) 72px; gap: 10px; align-items: center; font-size: 16px; color: var(--ink-dim); }
.vb b { font-size: 18px; font-weight: 800; }
.vb em { font-style: normal; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.vtrack { display: block; height: 10px; border-radius: 5px; background: #10141d; overflow: hidden; }
.vtrack i { display: block; height: 100%; }
.vbars p { margin: 6px 0 0; color: var(--ink-faint); font-size: 15px; }

/* ---------- demos ---------- */
.demos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.demo { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.demo[hidden] { display: none; }
.demo.playing { border-color: var(--accent); }
.play { position: relative; flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--accent); cursor: pointer; }
.play::before { content: ""; position: absolute; left: 16px; top: 12px; border-left: 14px solid #10141d; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.play.on::before { left: 14px; top: 13px; width: 14px; height: 16px; border: 0; background: linear-gradient(90deg, #10141d 36%, transparent 36% 64%, #10141d 64%); }
.demo .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.demo .meta b { font-weight: 650; }
.demo .meta span { color: var(--ink-faint); font-size: 14.5px; }
.demo .bar { display: block; height: 3px; margin-top: 5px; border-radius: 2px; background: var(--line); overflow: hidden; }
.demo .bar i { display: block; height: 100%; width: 0; background: var(--accent); }

/* ---------- specs and the buy box ---------- */
.specbuy { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.specs { margin: 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.specs dt { font: 600 14.5px/1.6 var(--sans); color: var(--ink); }
.specs dd { margin: 0; color: var(--ink-dim); }
.buybox { padding: 30px; border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
.buybox h3 { font-size: 24px; margin: 14px 0 8px; }
.buybox .price { font-size: 44px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 18px; }
.buybox .price small { font-size: 15px; font-weight: 500; color: var(--ink-faint); letter-spacing: 0; margin-left: 6px; }
.buybox .note { margin: 16px 0 0; font-size: 14px; color: var(--ink-faint); }
.buybox p { color: var(--ink-dim); margin-bottom: 0; }

.mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mini a { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); text-decoration: none; }
.mini a:hover { background: var(--panel2); }
.mini .pname { font-size: 17px; }
.mini .t { color: var(--ink-faint); font-size: 14.5px; line-height: 1.4; }

/* ---------- plain pages ---------- */
main.light { min-height: 60vh; }
.prose { max-width: calc(760px + 2 * var(--gutter)); padding: 72px var(--gutter) 96px; }
.prose h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; margin-bottom: 26px; }
.prose h2 { font-size: 22px; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--ink-dim); }
.prose a { color: var(--accent-ink); }
.prose .steps { --n: 1 !important; margin-bottom: 8px; }

/* ---------- footer ---------- */
.site-foot { background: #0c111c; padding: 44px 0 52px; color: var(--ink-faint); font-size: 14px; }
.site-foot .wrap { display: grid; gap: 18px; }
.site-foot .links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-foot a { color: var(--ink-dim); text-decoration: none; }
.site-foot a:hover { color: var(--ink); text-decoration: underline; }
.site-foot p { margin: 0; }

/* ---------- lightbox ---------- */
dialog.lightbox { border: 0; padding: 0; background: none; max-width: 96vw; max-height: 94vh; }
dialog.lightbox::backdrop { background: rgba(4, 6, 10, .88); }
dialog.lightbox img { max-width: 96vw; max-height: 94vh; border-radius: 6px; }
dialog.lightbox button { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .7); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }

/* ---------- narrower screens ---------- */
@media (max-width: 1020px) {
  .packs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero.split .wrap { grid-template-columns: 1fr; }
  .fan { height: 300px; }
  .fan li { width: 210px; }
}
@media (max-width: 820px) {
  section.tight { padding: 44px 0; }
  .hero { padding: 48px 0 44px; }
  .khero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .kcover { max-width: 320px; }
  .cards, .gallery, .demos, .specbuy, .kintro, .drow, .vlab { grid-template-columns: minmax(0, 1fr); }
  .dsec { padding: 44px 0; }
  .dbody > p, .dcol > p { font-size: 17px; }
  .vsq { max-width: 340px; margin: 0 auto; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .mini { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .sec-head.row { flex-direction: column; align-items: flex-start; gap: 10px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .brand .sub { display: none; }
  .nav .long { display: none; }
  .nav .short { display: inline; }
  .top .wrap { gap: 10px; }
  .fan { height: 220px; }
  .fan li { width: 150px; transform: translate(-50%, -50%) translateX(calc(var(--i) * 56px)) translateY(calc((var(--i) * var(--i)) * 6px)) rotate(calc(var(--i) * 7deg)); }
  /* a phone: each bank in a row, its cover beside its words */
  .packs { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pack { flex-direction: row; }
  .pack .cover { flex: none; width: 116px; align-self: stretch; aspect-ratio: auto; }
  .pack .body { padding: 14px; gap: 6px; }
  .pack .pname { font-size: 17px; }
  .pack .tag { font-size: 14.5px; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
  .specs div { grid-template-columns: 100px 1fr; gap: 12px; }
  .dtable table { font-size: 14.5px; }
  .dtable th, .dtable td { padding: 10px 10px; }
  .dtable td:first-child { white-space: normal; }
  .vlab { padding: 16px; gap: 20px; }
  .foot { flex-wrap: wrap; }
}

/* ---------- a bank with little said about it yet ("teaser") ---------- */
.soonnote { margin: 0; font-size: 22px; font-weight: 700; color: var(--ink-dim); }
.specbuy.solo { grid-template-columns: minmax(0, 560px); }

/* ---------- a user manual (manuals/<slug>.html): its sections on a light band, their index beside them ---------- */
.mhero { padding: 64px 0 44px; }
.mhero .kicker { text-decoration: none; }
.mhero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 800; }
.mhero .lead { margin-top: 14px; max-width: 60ch; }
.mhero .row { margin-top: 22px; }
.manual { padding: 48px 0 96px; }
.mgrid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.mtoc { position: sticky; top: 84px; max-height: calc(100vh - 104px); overflow-y: auto; padding: 18px; border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.mtoc b { display: block; font-size: 13px; font-weight: 700; color: var(--ink-faint); margin-bottom: 10px; }
.mtoc ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; font-size: 15px; line-height: 1.35; }
.mtoc a { color: var(--ink-dim); text-decoration: none; }
.mtoc a:hover { color: var(--accent-ink); }
.mtext { max-width: 820px; min-width: 0; }
.mtext section { scroll-margin-top: 84px; padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.mtext section:last-child { border-bottom: 0; margin-bottom: 0; }
.mtext h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 750; margin-bottom: 16px; }
.mtext h3 { font-size: 19px; font-weight: 700; margin: 28px 0 8px; scroll-margin-top: 84px; }
.mtext p, .mtext li { color: var(--ink-dim); font-size: 17px; line-height: 1.6; }
.mtext ul, .mtext ol { padding-left: 22px; display: grid; gap: 6px; margin: 12px 0 16px; }
.mtext b { color: var(--ink); }
.mtext a { color: var(--accent-ink); }
.mtext code, .mtext kbd { font-family: var(--mono); font-size: 14px; padding: 1px 6px; border-radius: 5px; background: var(--panel2); border: 1px solid var(--line); color: var(--ink); white-space: nowrap; }
.mtext table { width: 100%; border-collapse: collapse; margin: 14px 0 18px; font-size: 15px; display: block; overflow-x: auto; }
.mtext th { text-align: left; font-size: 13px; font-weight: 700; color: var(--ink-faint); padding: 8px 12px; border-bottom: 1px solid var(--line2); white-space: nowrap; }
.mtext td { padding: 9px 12px; border-bottom: 1px solid var(--line); color: var(--ink-dim); vertical-align: top; line-height: 1.5; }
.mtext td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
.mtext td code { white-space: normal; }
.mtext table.prose td:first-child { white-space: normal; width: 36%; }   /* (a first column of sentences: symptoms) */
.mtext figure { margin: 12px 0 24px; }
.mtext figure img { width: 100%; height: auto; border-radius: 10px; border: 1px solid #0b0d10; box-shadow: 0 22px 40px -26px rgba(10, 14, 24, .6); }
.mtext figure.narrow { max-width: 480px; }
.mtext figcaption { margin-top: 9px; color: var(--ink-faint); font-size: 14.5px; line-height: 1.45; }
.mtext button.zoom { all: unset; display: block; cursor: zoom-in; }
.mtext .tip { padding: 14px 18px; border-radius: 10px; background: var(--panel); border-left: 4px solid var(--accent); box-shadow: var(--shadow); margin: 18px 0; }
.mtext .tip p { margin: 0; }
@media (max-width: 900px) {
  .mgrid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mtoc { position: static; max-height: none; }
  .mtoc ol { grid-template-columns: 1fr 1fr; column-gap: 26px; }
}
@media (max-width: 560px) {
  .mtoc ol { grid-template-columns: minmax(0, 1fr); }
  .mtext p, .mtext li { font-size: 16px; }
  .mtext td:first-child { white-space: normal; }
  .mtext th, .mtext td { padding: 8px 8px; }
}

/* ---------- EX5 & A.I. ---------- */
.hero h1 b { color: var(--lcd); font-weight: 800; }
.hfig { margin: 44px 0 0; }
.fig svg.tall { display: none; }
.chat { display: grid; gap: 16px; max-width: 900px; }
.chat blockquote { margin: 0; padding: 22px 26px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--accent); }
.chat span { display: block; margin-bottom: 10px; font: 700 14.5px/1.2 var(--sans); color: var(--accent-ink); }
.chat p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--ink); }
.dbody figure.narrow { max-width: 620px; }
.aiband { display: grid; gap: 10px; padding: 30px 32px; border-radius: 16px; text-decoration: none; background: linear-gradient(120deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-left: 4px solid var(--lcd); }
.aiband:hover { border-color: var(--lcd); }
.aiband .kicker { margin: 0; color: var(--lcd); }
.aiband b { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.aiband span { color: var(--ink-dim); font-size: 17px; }
.aiband .more { color: var(--lcd); font-weight: 600; font-size: 15px; }
@media (max-width: 560px) {
  .fig svg.wide { display: none; }
  .fig svg.tall { display: block; }
  .chat blockquote { padding: 18px 18px; }
  .chat p { font-size: 17px; }
  .aiband { padding: 22px 20px; }
}
@media (max-width: 560px) {
  .nav { gap: 2px; }
  .nav a { padding: 9px 8px; font-size: 14.5px; }   /* (three entries beside the logo on a phone) */
}

/* EX5 & A.I. under the home page's buttons */
.hnews { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 7px 16px 7px 7px; border-radius: 999px; text-decoration: none;
  color: var(--ink); background: rgba(11, 15, 24, .45); border: 1px solid var(--line2); font: 500 15px/1.3 var(--sans); transition: border-color .15s, background .15s; }
.hnews:hover { border-color: var(--lcd); background: rgba(11, 15, 24, .65); }
.hnews b { flex: none; padding: 6px 11px; border-radius: 999px; background: var(--lcd); color: var(--lcd-ink); font: 750 13px/1 var(--sans); }
.hnews i { font-style: normal; color: var(--lcd); }
@media (max-width: 560px) { .hnews { font-size: 14px; padding-right: 12px; } }
