/* ==========================================================================
   SwitchedOn Keyboards — design system
   One stylesheet, shared by every page. Edit here to restyle the whole site.
   Sections: tokens · base · layout · header · hero · typography · tables ·
   cards · product · chips · callouts · breadcrumb · related · footer · utils
   ========================================================================== */

/* ---------- Design tokens (light) ---------- */
:root {
  /* warm paper surfaces */
  --bg:        #f5efe4;
  --bg-raised: #fffdf9;
  --bg-sunken: #ece3d4;
  --bg-inset:  #f3ead9;

  /* ink + text */
  --ink:       #181410;
  --ink-soft:  #38312a;
  --muted:     #6c6052;
  --faint:     #8a7d6c;

  /* lines */
  --line:        #e3d9c6;
  --line-strong: #d2c5ad;

  /* brand */
  --accent:        #bd4327;   /* terracotta */
  --accent-strong: #9c3318;
  --accent-tint:   #f7e7df;
  --teal:          #1d6f6a;   /* "positive" / secondary */
  --teal-tint:     #dcebe8;
  --gold:          #a9792a;

  /* surfaces on dark sections (header/hero/footer) stay constant-ish */
  --on-dark:       #f5efe4;
  --on-dark-soft:  rgba(245,239,228,.74);
  --on-dark-faint: rgba(245,239,228,.55);

  /* shadows (warm-tinted) */
  --shadow-sm: 0 1px 2px rgba(40,28,16,.05);
  --shadow:    0 1px 2px rgba(40,28,16,.05), 0 10px 24px -14px rgba(40,28,16,.22);
  --shadow-lg: 0 4px 10px rgba(40,28,16,.07), 0 28px 56px -22px rgba(40,28,16,.34);

  /* shape + motion */
  --r-sm: 9px; --r: 13px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;
  --maxw: 1080px;
  --measure: 68ch;
  --ease: cubic-bezier(.22,.61,.36,1);

  /* fonts */
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-ui: 'Inter Tight', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --header-h: 64px;
}

/* ---------- Design tokens (dark) ---------- */
:root[data-theme="dark"] {
  --bg:        #15110d;
  --bg-raised: #1e1812;
  --bg-sunken: #100c09;
  --bg-inset:  #241c14;

  --ink:       #f3ece0;
  --ink-soft:  #ded4c4;
  --muted:     #ad9f8c;
  --faint:     #8a7d6b;

  --line:        #2c2318;
  --line-strong: #3b3022;

  --accent:        #e3653f;
  --accent-strong: #ef7a55;
  --accent-tint:   #2c1d16;
  --teal:          #54b3ab;
  --teal-tint:     #14211f;
  --gold:          #d2a64f;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 12px 28px -16px rgba(0,0,0,.7);
  --shadow-lg: 0 6px 14px rgba(0,0,0,.45), 0 30px 60px -24px rgba(0,0,0,.8);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #15110d;
    --bg-raised: #1e1812;
    --bg-sunken: #100c09;
    --bg-inset:  #241c14;
    --ink:       #f3ece0;
    --ink-soft:  #ded4c4;
    --muted:     #ad9f8c;
    --faint:     #8a7d6b;
    --line:        #2c2318;
    --line-strong: #3b3022;
    --accent:        #e3653f;
    --accent-strong: #ef7a55;
    --accent-tint:   #2c1d16;
    --teal:          #54b3ab;
    --teal-tint:     #14211f;
    --gold:          #d2a64f;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 12px 28px -16px rgba(0,0,0,.7);
    --shadow-lg: 0 6px 14px rgba(0,0,0,.45), 0 30px 60px -24px rgba(0,0,0,.8);
  }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image: radial-gradient(circle at 1px 1px, rgba(120,100,80,.045) 1px, transparent 0);
  background-size: 24px 24px;
  overflow-x: hidden;
}
:root[data-theme="dark"] body,
:root:not([data-theme="light"]) body { }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body { background-image: radial-gradient(circle at 1px 1px, rgba(255,240,220,.03) 1px, transparent 0); }
}
:root[data-theme="dark"] body { background-image: radial-gradient(circle at 1px 1px, rgba(255,240,220,.03) 1px, transparent 0); }

a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
img { max-width: 100%; height: auto; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: var(--r-sm);
  font-weight: 600; transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* ---------- Header ---------- */
header.site {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, #16120d 92%, transparent);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
header.site .wrap {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.logo {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 900; font-size: 1.32rem;
  letter-spacing: -.02em; color: var(--on-dark); white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo .mark { width: 34px; height: 34px; flex: none; border-radius: 9px; box-shadow: 0 4px 12px rgba(189,67,39,.45); }
.logo b { color: var(--accent); font-weight: 900; }
.logo .tld { color: var(--on-dark-faint); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--on-dark-soft); font-size: .93rem; font-weight: 500;
  padding: 8px 13px; border-radius: var(--r-sm); transition: color .15s, background .15s;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }

.header-tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 38px; height: 38px; flex: none; display: inline-grid; place-items: center;
  border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.05); color: var(--on-dark); cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.theme-toggle:hover { background: rgba(255,255,255,.13); transform: translateY(-1px); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
}

.nav-toggle { display: none; }

@media (max-width: 800px) {
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #16120d; padding: 10px 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,.1);
    box-shadow: var(--shadow-lg);
    transform: translateY(-130%); transition: transform .26s var(--ease);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav[data-open="true"] { transform: translateY(0); }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .nav-toggle {
    display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none;
    border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.05); color: var(--on-dark); cursor: pointer;
  }
  .nav-toggle svg { width: 20px; height: 20px; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 140% at 85% -10%, rgba(189,67,39,.32), transparent 55%),
    linear-gradient(165deg, #18130e 0%, #241c14 55%, #322415 100%);
  color: var(--on-dark);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: clamp(64px, 9vw, 104px) 0 clamp(64px, 8vw, 96px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,235,210,.05) 1px, transparent 0);
  background-size: 22px 22px;
}
.hero .wrap { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; font-weight: 700;
  color: var(--on-dark); background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14); padding: 7px 14px; border-radius: var(--r-pill);
  margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(189,67,39,.25); }
.hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.5rem, 6.2vw, 4.4rem); line-height: 1.02; letter-spacing: -.032em;
  margin: 0 0 20px; color: #fff; max-width: 16ch;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lead { font-size: clamp(1.06rem, 2.1vw, 1.28rem); color: var(--on-dark-soft); max-width: 56ch; margin: 0 0 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.statband {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 46px;
}
.statband .stat {
  flex: 1 1 150px; min-width: 140px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r); padding: 16px 18px;
}
.statband .stat b {
  display: block; font-family: var(--font-display); font-weight: 700;
  font-size: 1.9rem; color: #fff; line-height: 1; margin-bottom: 6px;
}
.statband .stat span { font-size: .82rem; color: var(--on-dark-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-ui); font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: var(--r-sm); cursor: pointer; border: 1px solid transparent;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px -6px rgba(189,67,39,.6); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); text-decoration: none; box-shadow: 0 14px 30px -8px rgba(189,67,39,.7); }
.btn-primary::after { content: "→"; font-weight: 700; transition: transform .15s var(--ease); }
.btn-primary:hover::after { transform: translateX(3px); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--on-dark); border-color: rgba(255,255,255,.2); }
.btn-ghost:hover { background: rgba(255,255,255,.13); text-decoration: none; transform: translateY(-2px); }

/* ---------- Main / typography ---------- */
main { display: block; padding: 0 0 84px; }
.section { padding-top: 8px; }
.page-head { padding-top: clamp(28px, 5vw, 48px); }

h1 {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4.6vw, 2.9rem);
  line-height: 1.08; letter-spacing: -.028em; margin: 18px 0 12px; color: var(--ink);
}
h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 1.78rem);
  line-height: 1.2; letter-spacing: -.015em; margin: 48px 0 14px; color: var(--ink);
}
h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.32rem; margin: 0 0 8px; color: var(--ink); }
p { max-width: var(--measure); color: var(--ink-soft); }
.lede { font-size: clamp(1.12rem, 2.3vw, 1.3rem); line-height: 1.5; color: var(--muted); max-width: 60ch; margin: 0 0 8px; }
strong { color: var(--ink); font-weight: 600; }

/* section headers on home */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: clamp(44px, 6vw, 68px) 0 4px; }
.section-head h2 { margin: 0; }
.section-kicker { display: block; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; font-weight: 700; color: var(--accent-strong); margin-bottom: 8px; }
.section-sub { color: var(--muted); margin: 4px 0 0; font-size: 1.02rem; max-width: 60ch; }
.section-link { font-size: .9rem; font-weight: 600; white-space: nowrap; }

/* ---------- Tables ---------- */
.table-wrap {
  margin: 28px 0; border: 1px solid var(--line); border-radius: var(--r);
  overflow-x: auto; background: var(--bg-raised); box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 460px; }
.table-wrap > table { margin: 0; }
caption { caption-side: top; text-align: left; padding: 14px 18px 0; color: var(--muted); font-size: .88rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th {
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: .73rem;
  text-transform: uppercase; letter-spacing: .07em; position: sticky; top: 0;
}
tbody th, tbody td:first-child { font-weight: 600; color: var(--ink); }
tbody td { color: var(--ink-soft); }
tbody tr:nth-child(even) { background: var(--bg-inset); }
tbody tr:hover { background: var(--accent-tint); }
tr:last-child td { border-bottom: none; }
td:not(:first-child) { font-family: var(--font-mono); font-size: .86rem; letter-spacing: -.01em; }

/* ---------- Link-card grids (home) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); gap: 16px; margin: 24px 0; }
.link-card {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s;
  overflow: hidden;
}
.link-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--teal)); transform: scaleX(0); transform-origin: left;
  transition: transform .24s var(--ease);
}
.link-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); text-decoration: none; }
.link-card:hover::after { transform: scaleX(1); }
.link-card .k { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--accent-strong); }
.link-card .t { font-weight: 600; font-size: 1.02rem; line-height: 1.35; color: var(--ink); }
.link-card .vs { color: var(--muted); font-weight: 500; }

/* ---------- Product panels (.card) ---------- */
.card {
  position: relative; background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px 28px 26px 30px; margin: 22px 0;
  box-shadow: var(--shadow); transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.card::before { content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(var(--accent), var(--teal)); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { margin: 0 0 8px; font-size: 1.42rem; }
.card p { margin: 0 0 12px; }
.card p strong { color: var(--ink); }

/* affiliate CTA — upgraded (§3a) */
a.buy {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  background: var(--accent); color: #fff !important;
  padding: 13px 26px; border-radius: var(--r-sm);
  font-family: var(--font-ui); font-weight: 700; font-size: 1rem; letter-spacing: -.01em;
  box-shadow: 0 8px 22px -6px rgba(189,67,39,.55);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
  text-decoration: none !important; white-space: nowrap; cursor: pointer;
  border: none; line-height: 1.3;
}
a.buy:hover { transform: translateY(-3px); background: var(--accent-strong); text-decoration: none !important; box-shadow: 0 16px 32px -10px rgba(189,67,39,.72); }
a.buy::after { content: "→"; font-weight: 700; margin-left: 2px; transition: transform .15s var(--ease); }
a.buy:hover::after { transform: translateX(3px); }
/* full-width variant */
a.buy.buy-block { display: flex; width: 100%; justify-content: center; margin-top: 0; }
/* compact variant */
a.buy.buy-sm { padding: 8px 16px; font-size: .85rem; gap: 6px; box-shadow: 0 4px 12px -4px rgba(189,67,39,.5); }

/* ---------- Chips / tags ---------- */
.tag, .chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 500;
  background: var(--bg-inset); border: 1px solid var(--line); color: var(--muted);
  padding: 4px 12px; border-radius: var(--r-pill); margin: 3px 5px 3px 0;
}
.tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }

/* ---------- Callouts ---------- */
.disclosure {
  font-size: .86rem; color: var(--muted); background: var(--bg-inset);
  padding: 14px 18px; border-radius: var(--r); margin: 28px 0;
  border: 1px solid var(--line); border-left: 3px solid var(--gold);
}
.disclosure b { color: var(--ink-soft); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .82rem; color: var(--muted); padding-top: clamp(20px, 4vw, 34px); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "/"; color: var(--faint); }
.breadcrumb a { color: var(--muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--accent-strong); }
.breadcrumb [aria-current="page"] { color: var(--ink-soft); font-weight: 600; }

/* ---------- Related / explore band ---------- */
.related { margin-top: clamp(48px, 7vw, 80px); padding-top: 36px; border-top: 1px solid var(--line); }
.related h2 { margin: 0 0 4px; font-size: 1.4rem; }
.related .section-sub { margin-bottom: 18px; }

.cta-band {
  margin-top: clamp(40px, 6vw, 64px);
  background:
    radial-gradient(120% 160% at 90% 0%, rgba(189,67,39,.3), transparent 55%),
    linear-gradient(160deg, #18130e, #2a2015);
  color: var(--on-dark); border-radius: var(--r-xl); padding: clamp(32px, 5vw, 52px);
  position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; margin: 0 0 10px; }
.cta-band p { color: var(--on-dark-soft); max-width: 52ch; margin: 0 0 22px; }

/* ---------- Footer ---------- */
footer.site { background: #16120d; color: var(--on-dark-soft); padding: 56px 0 36px; font-size: .92rem; margin-top: 40px; }
footer.site a { color: var(--on-dark-soft); }
footer.site a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 26px; }
.foot-brand .flogo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; color: var(--on-dark); margin-bottom: 12px; }
.foot-brand .flogo b { color: var(--accent); }
.foot-brand .mark { width: 30px; height: 30px; border-radius: 8px; }
.foot-brand p { color: var(--on-dark-faint); max-width: 34ch; font-size: .88rem; }
.foot-col h4 { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; color: var(--on-dark-faint); margin: 4px 0 14px; font-weight: 700; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.foot-col a { font-size: .9rem; }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-direction: column; gap: 12px; }
.foot-bottom .disclose { font-size: .82rem; color: var(--on-dark-faint); max-width: 80ch; line-height: 1.6; }
.foot-bottom .legal { font-size: .8rem; color: var(--on-dark-faint); }

@media (max-width: 760px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 26px; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 440px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: clamp(60px, 12vw, 120px) 0; }
.notfound .big { font-family: var(--font-display); font-weight: 900; font-size: clamp(4rem, 18vw, 9rem); line-height: 1; color: var(--accent); letter-spacing: -.04em; }
.notfound p { margin: 0 auto 24px; }

/* ---------- Motion ----------
   Only hide content when JS is present (html.js). No-JS and reduced-motion
   users see everything immediately. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(16px); }
  .js [data-reveal].reveal { animation: rise .65s var(--ease) forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* ---------- Utilities ---------- */
.center { text-align: center; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.hide { display: none !important; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .card { padding: 22px 20px 22px 24px; }
}

/* ---------- Keyboard review pages ---------- */
.kb-hero { padding-top: clamp(24px, 4vw, 40px); margin-bottom: 36px; }
.kb-hero h1 { margin-top: 8px; margin-bottom: 12px; }
.kb-hero-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 22px; }
.kb-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-inset); color: var(--ink-soft); border: 1px solid var(--line);
  padding: 11px 20px; border-radius: var(--r-sm); font-weight: 600; font-size: .95rem;
  transition: background .15s, border-color .15s;
}
.btn-secondary:hover { background: var(--accent-tint); border-color: var(--accent); text-decoration: none; }
.btn-secondary::after { content: " →"; }

.verdict-box {
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--r-lg);
  border-left: 4px solid var(--teal);
  padding: clamp(22px, 4vw, 34px); margin: 36px 0; box-shadow: var(--shadow);
}
.verdict-box h2 { margin: 0 0 10px; font-size: 1.28rem; color: var(--ink); }
.verdict-box > p { margin: 0 0 22px; max-width: 72ch; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pros-col h3 { font-size: .95rem; font-family: var(--font-ui); font-weight: 700; margin: 0 0 10px; color: var(--teal); }
.cons-col h3 { font-size: .95rem; font-family: var(--font-ui); font-weight: 700; margin: 0 0 10px; color: var(--muted); }
.pros-col ul, .cons-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pros-col li, .cons-col li { font-size: .9rem; color: var(--ink-soft); padding-left: 18px; position: relative; line-height: 1.5; }
.pros-col li::before { content: "✓"; color: var(--teal); font-weight: 700; position: absolute; left: 0; }
.cons-col li::before { content: "–"; color: var(--muted); font-weight: 700; position: absolute; left: 0; }

.kb-specs-section { margin: 44px 0; }
.kb-specs-section h2 { margin-bottom: 14px; }
.kb-review section { margin-bottom: 0; }
.kb-review h2 { margin-top: 42px; margin-bottom: 10px; }
.kb-review p { max-width: 72ch; }

/* ---- Scorecard ---- */
.kb-scorecard {
  display: flex; gap: clamp(18px, 3vw, 32px); align-items: stretch;
  background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow); margin: 0 0 18px;
}
.kb-score-overall {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding-right: clamp(18px, 3vw, 32px); border-right: 1px solid var(--line);
}
.kb-score-ring {
  width: 118px; height: 118px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #d2542f 0%, #a3361f 78%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 10px 26px -10px rgba(189,67,39,.6);
}
.kb-score-num { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; line-height: 1; }
.kb-score-outof { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; opacity: .85; margin-top: 3px; }
.kb-score-overall-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
}
.kb-score-bars { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 11px; min-width: 0; }
.kb-score-row { display: grid; grid-template-columns: 88px 1fr 30px; align-items: center; gap: 12px; }
.kb-score-name { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.kb-bar { height: 9px; border-radius: var(--r-pill); background: var(--bg-sunken); overflow: hidden; }
.kb-bar i { display: block; height: 100%; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--teal), #2c948c); }
.kb-score-v { font-family: var(--font-mono); font-size: .82rem; font-weight: 600; color: var(--ink); text-align: right; }

.kb-bestfor { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.kb-bestfor-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.kb-bestfor-tag {
  font-size: .82rem; font-weight: 600; color: var(--accent-strong);
  background: var(--accent-tint); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 5px 13px;
}
.kb-score-summary {
  font-family: var(--font-display); font-size: 1.08rem; font-style: italic; line-height: 1.5;
  color: var(--ink-soft); margin: 0 0 22px; max-width: 72ch;
}

/* ---- Spec table extras ---- */
.kb-spec-table th.spec-section {
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: .7rem;
  text-transform: uppercase; letter-spacing: .1em; padding: 9px 18px;
}
.kb-spec-table td.spec-yes { color: var(--teal); font-weight: 600; }
.kb-spec-table td.spec-k { width: 210px; }

@media (max-width: 600px) {
  .pros-cons { grid-template-columns: 1fr; }
  .kb-scorecard { flex-direction: column; }
  .kb-score-overall { flex-direction: row; gap: 16px; padding-right: 0; padding-bottom: 18px;
    border-right: none; border-bottom: 1px solid var(--line); justify-content: flex-start; }
  .kb-score-ring { width: 88px; height: 88px; }
  .kb-score-num { font-size: 2rem; }
}

/* ==========================================================================
   NEW COMMERCIAL COMPONENTS — CONTRACT v1 (§3)
   All components use design tokens and support light + dark themes.
   ========================================================================== */

/* ---------- §3a  Affiliate disclosure note ---------- */
.aff-note {
  font-size: .78rem; color: var(--faint); max-width: none;
  margin: 0 0 18px; line-height: 1.5;
  font-style: italic;
}

/* ---------- §3b  Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-ui); font-size: .7rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--bg-inset); color: var(--muted); border: 1px solid var(--line);
  white-space: nowrap; line-height: 1;
}
.badge-best {
  background: var(--accent-tint); color: var(--accent-strong);
  border-color: var(--accent-tint);
}
.badge-winner {
  background: var(--gold); color: #fff;
  border-color: var(--gold); text-shadow: 0 1px 2px rgba(0,0,0,.25);
}
.badge-pop {
  background: var(--teal-tint); color: var(--teal);
  border-color: var(--teal-tint);
}

/* ---------- §3b  Tiers ---------- */
.tier {
  display: inline-flex; align-items: center;
  font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--r-pill);
  background: var(--bg-inset); color: var(--muted); border: 1px solid var(--line);
  white-space: nowrap;
}
.tier-budget  { background: var(--teal-tint); color: var(--teal); border-color: var(--teal-tint); }
.tier-mid     { background: var(--bg-inset); color: var(--ink-soft); border-color: var(--line-strong); }
.tier-premium { background: color-mix(in srgb, var(--gold) 15%, transparent); color: var(--gold); border-color: color-mix(in srgb, var(--gold) 30%, transparent); }

/* ---------- §3c  Spec icons ---------- */
.spec-icons {
  display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0;
}
.spec-ico {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .74rem; font-weight: 500; color: var(--muted);
  background: var(--bg-inset); border: 1px solid var(--line);
  padding: 4px 9px 4px 7px; border-radius: var(--r-pill);
  white-space: nowrap; line-height: 1;
}
.spec-ico svg { flex: none; color: currentColor; }
.spec-ico i { font-style: normal; }

/* ---------- §3d  Product card ---------- */
.pcard {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }

/* media box: fixed 16:10 ratio */
.pcard-media {
  position: relative; width: 100%; padding-top: 62.5%; /* 10/16 = 62.5% */
  background: var(--bg-sunken); overflow: hidden; flex: none;
}
.pcard-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
/* badge overlays on media */
.pcard-media .badge-best {
  position: absolute; top: 10px; left: 10px; z-index: 2;
}
.pcard-score {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  background: rgba(24,20,16,.78); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  padding: 4px 9px; border-radius: var(--r-pill);
  white-space: nowrap; line-height: 1;
}

.pcard-body {
  display: flex; flex-direction: column; flex: 1; gap: 0;
  padding: 18px 20px 20px;
}
.pcard-roleline {
  display: flex; align-items: center; gap: 7px; margin-bottom: 6px;
  min-height: 22px;
}
.pcard-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.22rem;
  line-height: 1.15; color: var(--ink); margin: 0 0 6px;
}
.pcard-tier {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-bottom: 8px; font-size: .82rem; color: var(--muted);
}
.pcard-verdict {
  font-size: .93rem; color: var(--ink-soft); line-height: 1.55;
  margin: 0 0 12px; max-width: none;
}
.pcard-cta { margin-bottom: 12px; }
.pcard-cta a.buy { margin-top: 0; }

/* buy-if / skip-if tradeoff */
.pcard-tradeoff {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 12px;
}
.buyif, .skipif {
  border-radius: var(--r); padding: 12px 14px; font-size: .82rem; line-height: 1.5;
}
.buyif {
  background: var(--teal-tint); border: 1px solid color-mix(in srgb, var(--teal) 25%, transparent);
}
.skipif {
  background: color-mix(in srgb, var(--gold) 12%, var(--bg-inset));
  border: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
}
.buyif strong, .skipif strong {
  display: block; font-size: .7rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; margin-bottom: 6px;
}
.buyif strong { color: var(--teal); }
.skipif strong { color: var(--gold); }
.buyif ul, .skipif ul {
  list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px;
}
.buyif li, .skipif li { padding-left: 16px; position: relative; color: var(--ink-soft); }
.buyif li::before { content: "✓"; color: var(--teal); font-weight: 700; position: absolute; left: 0; }
.skipif li::before { content: "✗"; color: var(--gold); font-weight: 700; position: absolute; left: 0; }

.pcard-alts {
  font-size: .78rem; color: var(--muted); margin-bottom: 10px; line-height: 1.6;
}
.pcard-alts a { color: var(--accent-strong); font-weight: 500; }
.pcard-foot { border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.pcard-foot a.buy { margin-top: 0; }

/* mini product card */
.pcard.pcard-mini .pcard-media { padding-top: 56%; }
.pcard.pcard-mini .pcard-body { padding: 12px 14px 14px; gap: 6px; }
.pcard.pcard-mini .pcard-verdict,
.pcard.pcard-mini .pcard-tradeoff,
.pcard.pcard-mini .pcard-alts,
.pcard.pcard-mini .pcard-foot,
.pcard.pcard-mini .spec-icons { display: none; }
.pcard.pcard-mini .pcard-name { font-size: 1rem; margin-bottom: 4px; }
.pcard.pcard-mini .pcard-cta a.buy { padding: 9px 16px; font-size: .87rem; }

@media (max-width: 560px) {
  .pcard-tradeoff { grid-template-columns: 1fr; }
}

/* ---------- §3e  Winner panel ---------- */
.winner-panel {
  position: relative; display: grid;
  grid-template-columns: minmax(260px, 44%) 1fr;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent);
}
.winner-panel-media {
  position: relative; overflow: hidden; min-height: 260px;
  background: var(--bg-sunken);
}
.winner-panel-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.winner-panel-media .badge-winner {
  position: absolute; top: 14px; left: 14px; z-index: 2;
}
.winner-panel-body {
  padding: clamp(22px, 3vw, 36px);
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.winner-panel-eyebrow {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-strong);
}
.winner-panel-name {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.4rem, 2.8vw, 1.9rem);
  line-height: 1.1; letter-spacing: -.02em; color: var(--ink); margin: 0;
}
.winner-panel-verdict {
  font-size: 1rem; color: var(--ink-soft); line-height: 1.6; max-width: 52ch; margin: 0;
}
.winner-panel-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.winner-panel-actions a.buy { padding: 14px 30px; font-size: 1.05rem; }

@media (max-width: 700px) {
  .winner-panel { grid-template-columns: 1fr; }
  .winner-panel-media { min-height: 200px; aspect-ratio: 16/9; position: relative; }
}

/* ---------- §3f  Score meters ---------- */
.meters { display: flex; flex-direction: column; gap: 10px; margin: 14px 0; }
.meter { display: grid; grid-template-columns: 90px 1fr 36px; align-items: center; gap: 10px; }
.meter-label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.meter-track {
  height: 9px; border-radius: var(--r-pill);
  background: var(--bg-sunken); overflow: hidden;
}
.meter-fill {
  display: block; height: 100%; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--teal), #2c948c);
  transition: width .4s var(--ease);
}
.meter-val {
  font-family: var(--font-mono); font-size: .82rem; font-weight: 600;
  color: var(--ink); text-align: right;
}

/* ---------- §3g  Homepage buying router ---------- */
.router-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin: 24px 0;
}
.router-card {
  display: flex; flex-direction: column;
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease), border-color .16s;
}
.router-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.router-card-media {
  width: 100%; aspect-ratio: 3/2; background: var(--bg-sunken); overflow: hidden; flex: none;
}
.router-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.router-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.router-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-strong);
}
.router-sub { font-size: .88rem; color: var(--muted); flex: 1; line-height: 1.5; max-width: none; margin: 0; }
.router-card .btn-primary { margin-top: auto; font-size: .88rem; padding: 10px 18px; }
.router-card a.buy { margin-top: auto; font-size: .88rem; padding: 10px 20px; }

/* ---------- §3h  Quiz ---------- */
.quiz {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: clamp(28px, 5vw, 52px);
  box-shadow: var(--shadow); max-width: 680px; margin: 0 auto;
}
.quiz-progress {
  height: 5px; background: var(--bg-sunken); border-radius: var(--r-pill);
  overflow: hidden; margin-bottom: 30px;
}
.quiz-progress-fill {
  height: 100%; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--accent), var(--teal));
  transition: width .35s var(--ease);
}
.quiz-step { display: none; }
.quiz-step.is-active { display: block; }
.quiz-q {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  line-height: 1.2; color: var(--ink); margin: 0 0 22px; max-width: none;
}
.quiz-opts {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px; margin-bottom: 28px;
}
.quiz-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  background: var(--bg-inset); border: 2px solid var(--line);
  border-radius: var(--r); padding: 16px 18px;
  font-family: var(--font-ui); font-weight: 600; font-size: .95rem;
  color: var(--ink); cursor: pointer; text-align: left;
  transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
}
.quiz-opt:hover {
  border-color: var(--accent); background: var(--accent-tint);
  transform: translateY(-2px); box-shadow: var(--shadow-sm);
}
.quiz-opt.is-sel {
  border-color: var(--accent); background: var(--accent-tint);
  color: var(--accent-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.quiz-opt-sub { font-size: .78rem; font-weight: 400; color: var(--muted); }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.quiz-nav .btn { font-size: .92rem; }
.quiz-step-num {
  font-size: .78rem; font-weight: 600; color: var(--faint); letter-spacing: .05em;
}
.quiz-results { display: none; }
.quiz-results.is-active { display: block; }
.quiz-results-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: var(--ink); margin: 0 0 6px; max-width: none;
}
.quiz-results-sub { color: var(--muted); font-size: .93rem; margin: 0 0 22px; max-width: none; }
.quiz-results-cards {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px; margin-bottom: 22px;
}
.quiz-restart {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .88rem; font-weight: 600; color: var(--muted);
  background: none; border: 1px solid var(--line); padding: 9px 16px;
  border-radius: var(--r-sm); cursor: pointer;
  transition: border-color .15s, color .15s;
}
.quiz-restart:hover { border-color: var(--accent); color: var(--accent-strong); }

/* ---------- §3i  Comparison cards ---------- */
.cmp-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px; margin: 24px 0;
}
.cmp-card {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .16s var(--ease), box-shadow .16s var(--ease);
}
.cmp-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cmp-card-media-row {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch;
  background: var(--bg-sunken); position: relative; gap: 0;
}
.cmp-card-media {
  aspect-ratio: 4/3; overflow: hidden; background: var(--bg-sunken);
}
.cmp-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-card-vs {
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--bg-raised);
  font-weight: 800; font-size: .78rem; letter-spacing: .06em;
  width: 36px; flex: none; z-index: 2;
}
.cmp-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.cmp-card-hook { font-size: .88rem; font-weight: 600; color: var(--ink-soft); line-height: 1.4; max-width: none; margin: 0; }
.cmp-card-names {
  font-size: .78rem; color: var(--muted); display: flex;
  align-items: center; gap: 6px; flex-wrap: wrap;
}
.cmp-card-names span { font-weight: 600; color: var(--ink-soft); }
.cmp-card-body .btn-primary { font-size: .87rem; padding: 10px 18px; align-self: flex-start; }

/* ---------- §3j  Quick-compare table (mobile-first) ---------- */
.cmp-table {
  width: 100%; border-collapse: collapse; margin: 28px 0;
}
.cmp-table th {
  background: var(--ink); color: var(--bg);
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; padding: 12px 16px; text-align: left;
  position: sticky; top: 0; z-index: 1;
}
.cmp-table td {
  padding: 13px 16px; border-bottom: 1px solid var(--line);
  vertical-align: middle; font-size: .9rem; color: var(--ink-soft);
}
.cmp-table td:first-child { font-weight: 600; color: var(--ink); }
.cmp-table tbody tr:nth-child(even) { background: var(--bg-inset); }
.cmp-table tbody tr:hover { background: var(--accent-tint); }
.cmp-table tr:last-child td { border-bottom: none; }
.cmp-table .cmp-td-name { font-weight: 700; color: var(--ink); }
.cmp-table .cmp-td-winner { color: var(--teal); font-weight: 600; }

/* mobile: each row becomes a card */
@media (max-width: 700px) {
  .cmp-table { display: block; }
  .cmp-table thead { display: none; }
  .cmp-table tbody, .cmp-table tr { display: block; }
  .cmp-table tr {
    background: var(--bg-raised); border: 1px solid var(--line);
    border-radius: var(--r); margin-bottom: 14px; padding: 12px 0;
    box-shadow: var(--shadow-sm); overflow: hidden;
  }
  .cmp-table tr:nth-child(even) { background: var(--bg-raised); }
  .cmp-table td {
    display: flex; align-items: baseline; gap: 10px;
    border-bottom: 1px solid var(--line); padding: 9px 16px;
  }
  .cmp-table td:last-child { border-bottom: none; }
  .cmp-table td[data-label]::before {
    content: attr(data-label);
    flex: 0 0 90px; font-size: .68rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .07em;
    color: var(--faint);
  }
  .cmp-table td:first-child { font-size: 1rem; }
  .cmp-table tbody tr:hover { background: var(--accent-tint); }
}

/* ---------- §3k  Size visuals ---------- */
/*
  Inline SVG markup for keyboard size graphics.
  Usage: <div class="size-visual size-visual--full">
           [paste SVG from the template below]
         </div>
  Each SVG uses stroke="currentColor" so it respects dark/light theme via CSS color.
  Copy the appropriate SVG block for each size.

  FULL-SIZE (~100%):
  <svg class="sv-kb" viewBox="0 0 280 90" fill="none" xmlns="http://www.w3.org/2000/svg" aria-label="Full-size keyboard layout">
    <rect x="1" y="1" width="278" height="88" rx="6" stroke="currentColor" stroke-width="1.5"/>
    <!-- main cluster -->
    <g stroke="currentColor" stroke-width="1">
      <!-- row 1: Esc + F-row + media cluster -->
      <rect x="8" y="8" width="12" height="9" rx="1.5"/>
      <rect x="25" y="8" width="38" height="9" rx="1.5"/>
      <rect x="67" y="8" width="38" height="9" rx="1.5"/>
      <rect x="109" y="8" width="38" height="9" rx="1.5"/>
      <rect x="151" y="8" width="28" height="9" rx="1.5"/>
      <rect x="183" y="8" width="12" height="9" rx="1.5"/>
      <rect x="197" y="8" width="12" height="9" rx="1.5"/>
      <rect x="211" y="8" width="12" height="9" rx="1.5"/>
      <!-- nav cluster row 1 -->
      <rect x="227" y="8" width="12" height="9" rx="1.5"/>
      <rect x="241" y="8" width="12" height="9" rx="1.5"/>
      <rect x="255" y="8" width="12" height="9" rx="1.5"/>
      <!-- rows 2-5: alpha + mods -->
      <rect x="8"  y="22" width="58" height="9" rx="1.5"/>
      <rect x="70" y="22" width="10" height="9" rx="1.5"/>
      <rect x="84" y="22" width="10" height="9" rx="1.5"/>
      <rect x="98" y="22" width="10" height="9" rx="1.5"/>
      <rect x="112" y="22" width="10" height="9" rx="1.5"/>
      <rect x="126" y="22" width="10" height="9" rx="1.5"/>
      <rect x="140" y="22" width="10" height="9" rx="1.5"/>
      <rect x="154" y="22" width="10" height="9" rx="1.5"/>
      <rect x="168" y="22" width="10" height="9" rx="1.5"/>
      <rect x="182" y="22" width="10" height="9" rx="1.5"/>
      <rect x="196" y="22" width="10" height="9" rx="1.5"/>
      <rect x="210" y="22" width="18" height="9" rx="1.5"/>
      <!-- nav cluster -->
      <rect x="227" y="22" width="12" height="9" rx="1.5"/>
      <rect x="241" y="22" width="12" height="9" rx="1.5"/>
      <rect x="255" y="22" width="12" height="9" rx="1.5"/>
      <!-- numpad area stub -->
      <rect x="232" y="36" width="12" height="9" rx="1.5"/>
      <rect x="246" y="36" width="12" height="9" rx="1.5"/>
      <rect x="260" y="36" width="10" height="9" rx="1.5"/>
      <rect x="232" y="49" width="12" height="9" rx="1.5"/>
      <rect x="246" y="49" width="12" height="9" rx="1.5"/>
      <rect x="260" y="49" width="10" height="9" rx="1.5"/>
      <rect x="232" y="62" width="12" height="9" rx="1.5"/>
      <rect x="246" y="62" width="12" height="9" rx="1.5"/>
      <rect x="260" y="62" width="10" height="20" rx="1.5"/>
      <rect x="232" y="75" width="28" height="9" rx="1.5"/>
      <rect x="246" y="75" width="12" height="9" rx="1.5"/>
      <!-- alpha rows simplified -->
      <rect x="8"  y="36" width="14" height="9" rx="1.5"/>
      <rect x="26" y="36" width="10" height="9" rx="1.5"/>
      <rect x="40" y="36" width="10" height="9" rx="1.5"/>
      <rect x="54" y="36" width="10" height="9" rx="1.5"/>
      <rect x="68" y="36" width="10" height="9" rx="1.5"/>
      <rect x="82" y="36" width="10" height="9" rx="1.5"/>
      <rect x="96" y="36" width="10" height="9" rx="1.5"/>
      <rect x="110" y="36" width="10" height="9" rx="1.5"/>
      <rect x="124" y="36" width="10" height="9" rx="1.5"/>
      <rect x="138" y="36" width="10" height="9" rx="1.5"/>
      <rect x="152" y="36" width="10" height="9" rx="1.5"/>
      <rect x="166" y="36" width="10" height="9" rx="1.5"/>
      <rect x="180" y="36" width="12" height="9" rx="1.5"/>
      <!-- space row -->
      <rect x="8"  y="75" width="18" height="9" rx="1.5"/>
      <rect x="30" y="75" width="12" height="9" rx="1.5"/>
      <rect x="46" y="75" width="12" height="9" rx="1.5"/>
      <rect x="62" y="75" width="80" height="9" rx="1.5"/>
      <rect x="146" y="75" width="12" height="9" rx="1.5"/>
      <rect x="162" y="75" width="12" height="9" rx="1.5"/>
      <rect x="178" y="75" width="18" height="9" rx="1.5"/>
      <!-- arrows -->
      <rect x="198" y="80" width="9" height="4" rx="1"/>
      <rect x="209" y="75" width="9" height="9" rx="1.5"/>
      <rect x="220" y="80" width="9" height="4" rx="1"/>
    </g>
  </svg>

  TKL (~80%): same as full but omit the numpad block (rect group starting x=232).
  Replace numpad rects with: (nothing — the board ends at x≈220)
  ViewBox: "0 0 222 90"
  <svg class="sv-kb" viewBox="0 0 222 90" ...>
    <rect x="1" y="1" width="220" height="88" rx="6" .../>
    [copy all non-numpad rows from FULL layout, nav cluster kept]
  </svg>

  75%: no numpad, no nav cluster, F-row present.
  ViewBox: "0 0 200 90"
  <svg class="sv-kb" viewBox="0 0 200 90" ...>
    <rect x="1" y="1" width="198" height="88" rx="6" .../>
  </svg>

  65%: no numpad, no nav, no F-row, arrows present.
  ViewBox: "0 0 186 78"

  60%: no numpad, no nav, no F-row, no arrows.
  ViewBox: "0 0 172 78"
*/

.size-visual {
  display: inline-block; color: var(--ink-soft);
}
.size-visual .sv-kb {
  display: block; max-width: 100%; height: auto;
}
/* size comparison: show multiple side by side scaled */
.size-visual-row {
  display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap;
}
.size-visual-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.size-visual-item figcaption {
  font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: .04em;
  text-transform: uppercase; text-align: center;
}

/* individual size variants — max-width controls apparent size for comparison */
.size-visual--full  .sv-kb { max-width: 280px; }
.size-visual--tkl   .sv-kb { max-width: 222px; }
.size-visual--75    .sv-kb { max-width: 200px; }
.size-visual--65    .sv-kb { max-width: 186px; }
.size-visual--60    .sv-kb { max-width: 172px; }

/* ---------- §3l  Top-picks grid ---------- */
.toppicks { display: flex; flex-direction: column; gap: 24px; margin: 28px 0; }
.toppicks > .winner-panel { /* already full-width in flex column */ }
.toppicks-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* ==========================================================================
   END NEW COMMERCIAL COMPONENTS
   ========================================================================== */


/* ---------- gen.py supplements (homepage router + guide money pages) ---------- */
.fast-verdict { background: var(--bg-raised); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r); padding: 20px 22px; margin: 22px 0 8px; box-shadow: var(--shadow-sm); }
.fast-verdict p { margin: 6px 0 14px; font-size: 1.06rem; }
.fast-verdict > div { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pop-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cmp-table-wrap { overflow-x: auto; margin: 18px 0; }
.cmp-card-name { font-weight: 700; font-size: 1rem; color: var(--ink); margin-top: 4px; }
.guide-faq { margin-top: clamp(40px, 6vw, 64px); }
.guide-faq h2 { margin: 2px 0 14px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-raised); margin: 0 0 10px; box-shadow: var(--shadow-sm); }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 14px 18px; list-style: none; position: relative; padding-right: 44px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--accent); font-weight: 400; line-height: 1; }
.faq-item[open] summary::after { content: "3"; }
.faq-item .faq-a { padding: 0 18px 16px; color: var(--ink-soft); }
.faq-item .faq-a a { color: var(--accent-strong); font-weight: 600; }
