/* =============================================================
   MicroDeskLab — styles.css  ·  v2 "midnight"
   Solid-black, single vibrant accent (electric violet).
   Committed dark look: renders the same in any viewer theme.
   Sections:
     1. Tokens
     2. Reset & base
     3. Typography
     4. Layout primitives
     5. Buttons, chips, badges
     6. Keyboard cards
     7. Spec table / radar / pros-cons / callouts
     8. Header & footer
     9. Views (hero, quiz, comparator, offers, guide, ficha)
    10. Setup preview
    11. Responsive
    12. Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  color-scheme: dark;

  --bg:        #08080a;   /* solid near-black, no texture */
  --bg-2:      #050506;
  --panel:     #131317;   /* cards */
  --panel-2:   #1c1c22;   /* insets, chips, figures */
  --panel-3:   #24242c;

  --ink:       #f5f5f7;
  --ink-soft:  #b9b9c3;
  --muted:     #7d7d89;

  --line:      #262630;
  --line-soft: #1d1d25;

  --accent:      #7c5cff;   /* electric violet — the one loud color */
  --accent-2:    #9c85ff;   /* brighter, for hover */
  --accent-ink:  #0a0a0f;
  --accent-weak: rgba(124, 92, 255, .14);
  --accent-glow: rgba(124, 92, 255, .40);

  --good:      #34d399;     /* semantic only (best value, pros) */
  --good-weak: rgba(52, 211, 153, .14);
  --bad:       #fb7185;
  --warn:      #fbbf24;

  /* radar / chart series (data-viz, not "the accent") */
  --s1: #7c5cff;
  --s2: #f5a623;
  --s3: #ff5da2;
  --s4: #29d3e0;

  --radius:    12px;
  --radius-lg: 18px;
  --pill:      999px;
  --gutter:    clamp(1rem, 4vw, 2.75rem);
  --maxw:      1180px;

  --serif: "Bricolage Grotesque", "Segoe UI", Roboto, system-ui, sans-serif;
  --sans:  "IBM Plex Sans", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease:   cubic-bezier(0.16, 1, 0.3, 1);
  --shadow: 0 2px 8px rgba(0,0,0,.5), 0 24px 60px -20px rgba(0,0,0,.75);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.06; letter-spacing: -0.022em; font-family: var(--serif); font-weight: 700; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: var(--panel-3); border-radius: var(--pill); border: 3px solid var(--bg); }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 999;
  background: var(--accent); color: #fff;
  padding: .6rem 1rem; border-radius: var(--radius); font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* =============================================================
   3. Typography
   ============================================================= */
.eyebrow {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--accent); display: inline-block; }
h1.display { font-size: clamp(2.3rem, 6.4vw, 4.4rem); letter-spacing: -0.038em; line-height: 1.02; }
.accent-text { color: var(--accent); }
.lead { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--ink-soft); max-width: 60ch; }
.prose p { margin-bottom: 1rem; max-width: 68ch; }
.prose em { color: var(--ink); font-style: italic; }

/* =============================================================
   4. Layout primitives
   ============================================================= */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.view { padding-block: clamp(2.5rem, 7vw, 5rem); }
.view-head { margin-bottom: clamp(1.75rem, 4vw, 3rem); }
.view-head h1, .view-head h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); margin-top: .6rem; }
.view-head p { margin-top: .9rem; }

.section-rule { display: flex; align-items: baseline; gap: 1rem; border-top: 1px solid var(--line); padding-top: 1.05rem; margin-bottom: 1.9rem; }
.section-rule h2 { font-size: clamp(1.35rem, 3vw, 2rem); }
.section-rule .idx { font-family: var(--mono); font-size: .8rem; color: var(--accent); }

.grid-cards { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }

/* =============================================================
   5. Buttons, chips, badges
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem;
  border-radius: var(--pill);
  font-weight: 650; font-size: .96rem; letter-spacing: -0.01em;
  border: 1px solid var(--line);
  background: var(--panel-2); color: var(--ink);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); border-color: var(--panel-3); }
.btn:active { transform: translateY(0); }

.btn-primary,
.btn-primary:hover {
  background: var(--accent); color: #fff; border-color: transparent;
}
.btn-primary { box-shadow: 0 6px 20px -8px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-2); box-shadow: 0 12px 34px -8px var(--accent-glow); }

.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--panel-2); border-color: var(--panel-3); }

.btn-lg { padding: 1.05rem 1.8rem; font-size: 1.02rem; }
.btn-sm { padding: .62rem 1.05rem; font-size: .86rem; }

.btn-buy .arrow, .btn-buy::after { content: "↗"; font-size: .95em; transition: transform .2s var(--ease); }
.btn-buy:hover::after { transform: translate(2px, -2px); }

.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: .71rem; letter-spacing: .05em; text-transform: uppercase;
  padding: .32rem .66rem; border: 1px solid var(--line); border-radius: var(--pill);
  color: var(--ink-soft); background: var(--panel-2);
}
.chip-accent { color: var(--accent-2); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-weak); }
.chip-good { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, var(--line)); background: var(--good-weak); }

.stars { color: var(--accent-2); letter-spacing: .12em; font-size: .9rem; }
.stars .off { color: var(--panel-3); }

/* Floating badges (over card image) */
.kb-badge {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--mono); font-size: .74rem; font-weight: 600; letter-spacing: .02em;
  padding: .4rem .7rem; border-radius: var(--pill);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.kb-badge-rating { top: .8rem; left: .8rem; background: rgba(10,10,15,.6); color: var(--ink); border: 1px solid var(--line); }
.kb-badge-rating b { color: var(--accent-2); }
.kb-badge-offer  { top: .8rem; right: .8rem; background: var(--accent); color: #fff; box-shadow: 0 4px 16px -4px var(--accent-glow); }

/* =============================================================
   6. Keyboard cards — photo-forward
   ============================================================= */
.kb-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--panel); overflow: hidden;
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.kb-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow); }

.kb-figure {
  position: relative;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(130% 100% at 50% 8%, var(--accent-weak), transparent 62%),
    var(--panel-2);
  border-bottom: 1px solid var(--line);
  display: grid; place-items: center;
  padding: clamp(1rem, 3vw, 1.9rem);
  overflow: hidden;
}
.kb-figure .kb-figure-link { display: block; width: 100%; }
.kb-figure img, .kb-figure .kb-illu { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 18px 26px rgba(0,0,0,.5)); transition: transform .3s var(--ease); }
.kb-card:hover .kb-figure .kb-illu, .kb-card:hover .kb-figure img { transform: scale(1.035); }

.kb-body { padding: 1.05rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.kb-brand { font-family: var(--mono); font-size: .72rem; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.kb-card h3 { font-size: 1.18rem; }
.kb-card h3 a:hover { color: var(--accent-2); }
.kb-meta { display: flex; gap: .4rem; flex-wrap: wrap; }
.kb-rating-line { color: var(--muted); font-size: .82rem; display: flex; align-items: center; gap: .5rem; }

.kb-price { font-family: var(--mono); font-size: 1.15rem; font-weight: 600; color: var(--accent-2); margin-top: .15rem; }
.kb-price s { color: var(--muted); font-weight: 400; font-size: .8em; margin-right: .45rem; }

.kb-actions { display: flex; gap: .55rem; margin-top: auto; padding-top: .7rem; flex-wrap: wrap; }
.kb-actions .btn { flex: 1; min-width: 120px; }

.compare-toggle {
  position: absolute; bottom: .8rem; right: .8rem; z-index: 3;
  width: 38px; height: 38px; border-radius: var(--pill);
  border: 1px solid var(--line); background: rgba(10,10,15,.6);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; font-size: 1.05rem; color: var(--ink-soft);
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.compare-toggle:hover { color: var(--ink); border-color: var(--panel-3); }
.compare-toggle[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: transparent; }

/* Category entry card */
.cat-card { padding: 1.4rem; gap: .55rem; display: flex; flex-direction: column; }
.cat-card:hover { transform: translateY(-4px); }
.cat-card .chip { align-self: flex-start; margin-top: .5rem; }

/* =============================================================
   7. Spec table / radar / pros-cons / callouts
   ============================================================= */
/* Ficha técnica — grouped, low-rule, sans values */
.spec-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.spec-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 1.4rem 1.5rem 1.2rem;
}
.spec-group-title {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--sans);
  font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: .9rem; margin-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}
.spec-group-title .spec-ico { width: 1.15rem; height: 1.15rem; flex: none; color: var(--accent-2); }
.spec-list { display: flex; flex-direction: column; }
.spec-list .spec-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem 1.1rem;
  align-items: baseline;
  padding-block: .52rem;
}
.spec-list .spec-row dt { color: var(--muted); font-size: .86rem; }
.spec-list .spec-row dd {
  font-family: var(--sans);
  color: var(--ink);
  font-size: .93rem;
  line-height: 1.45;
  text-wrap: pretty;
}
.spec-list .spec-row dd.spec-na {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
  font-style: italic;
}
@media (max-width: 400px) {
  .spec-list .spec-row { grid-template-columns: 1fr; gap: .15rem; padding-block: .6rem; }
}

.radar-svg { width: 100%; height: auto; max-width: 400px; margin-inline: auto; overflow: visible; display: block; }
@keyframes radarIn { to { stroke-dashoffset: 0; } }
.radar-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); padding: 1.25rem; }
.radar-panel .radar-head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.radar-legend { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-top: .85rem; font-size: .82rem; color: var(--ink-soft); }
.radar-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.radar-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }

.pros-cons { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.pros-cons > div { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem; background: var(--panel); }
.pros-cons h4 { font-family: var(--mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .65rem; }
.pros-cons li { padding-left: 1.4rem; position: relative; margin-bottom: .5rem; font-size: .93rem; color: var(--ink-soft); }
.pros-cons .pros h4 { color: var(--good); }
.pros-cons .cons h4 { color: var(--bad); }
.pros-cons .pros li::before { content: "+"; position: absolute; left: .25rem; color: var(--good); font-weight: 700; }
.pros-cons .cons li::before { content: "\2013"; position: absolute; left: .25rem; color: var(--bad); font-weight: 700; }

.callout { border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--panel); padding: 1.1rem 1.3rem; border-radius: var(--radius); margin: 1.6rem 0; }
.callout .callout-label { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

.disclosure-note { font-size: .82rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin-top: 1.25rem; }

.kb-illu { width: 100%; height: auto; }

/* =============================================================
   8. Header & footer
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 1.25rem; min-height: 68px; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--serif); font-weight: 800; font-size: 1.18rem; letter-spacing: -0.03em; }
.brand .mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-family: var(--mono); font-size: .7rem;
  box-shadow: 0 4px 16px -4px var(--accent-glow);
}
.brand .mark::after { content: "\25AE\25AE"; letter-spacing: -2px; }
.nav-links { display: flex; align-items: center; gap: .15rem; margin-left: auto; flex-wrap: wrap; }
.nav-links a { padding: .55rem .8rem; border-radius: var(--pill); font-size: .9rem; font-weight: 500; color: var(--ink-soft); transition: color .15s var(--ease), background .15s var(--ease); }
.nav-links a:hover { background: var(--panel-2); color: var(--ink); }
.nav-links a.active { color: var(--ink); background: var(--panel-2); }
.nav-links a.nav-cta,
.nav-links a.nav-cta:hover {
  background: var(--accent); color: #fff; font-weight: 650;
  box-shadow: 0 6px 20px -8px var(--accent-glow);
}
.nav-links a.nav-cta:hover { background: var(--accent-2); }
.nav-cta .count { background: rgba(255,255,255,.22); color: #fff; border-radius: var(--pill); padding: 0 .45rem; margin-left: .45rem; font-family: var(--mono); font-size: .76rem; }
.menu-toggle { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 1.15rem; color: var(--ink); background: var(--panel-2); }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-2); margin-top: 5rem; padding-block: 3rem; font-size: .9rem; }
.site-footer .cols { display: grid; gap: 1.9rem; grid-template-columns: 1.5fr 1fr 1fr; }
.site-footer h5 { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .75rem; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--accent-2); }
.site-footer li { margin-bottom: .38rem; }
.site-footer .legal { margin-top: 2.25rem; padding-top: 1.6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; max-width: 90ch; }

/* =============================================================
   9. Views
   ============================================================= */
.hero { padding-block: clamp(2.75rem, 8vw, 6rem) clamp(2rem, 5vw, 3.5rem); }
.hero .hero-grid { display: grid; gap: clamp(1.5rem, 4vw, 3.25rem); grid-template-columns: 1.05fr .95fr; align-items: center; }
.hero h1 { margin: .85rem 0 1.1rem; }
.hero .hero-stats { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.hero .hero-stats div { display: flex; flex-direction: column; }
.hero .hero-stats b { font-family: var(--mono); font-size: 1.5rem; color: var(--ink); }
.hero .hero-stats span { font-size: .8rem; color: var(--muted); }
.hero .hero-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); padding: 1.4rem; box-shadow: var(--shadow); }

.quiz { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); padding: clamp(1.25rem, 4vw, 2.25rem); }
.quiz-progress { display: flex; gap: .35rem; margin-bottom: 1.5rem; }
.quiz-progress i { height: 4px; flex: 1; background: var(--panel-3); border-radius: var(--pill); }
.quiz-progress i.done { background: var(--accent); }
.quiz h3 { font-size: clamp(1.25rem, 3vw, 1.7rem); margin-bottom: 1.1rem; }
.quiz-options { display: grid; gap: .7rem; }
.quiz-option { text-align: left; border: 1px solid var(--line); border-radius: var(--radius); padding: .95rem 1.1rem; background: var(--panel-2); transition: border-color .15s var(--ease), background .15s var(--ease), transform .15s var(--ease); display: flex; gap: .8rem; align-items: flex-start; }
.quiz-option:hover { border-color: var(--accent); transform: translateX(3px); }
.quiz-option .k { font-family: var(--mono); color: var(--accent-2); font-size: .9rem; }
.quiz-option b { display: block; font-family: var(--sans); }
.quiz-option span { font-size: .86rem; color: var(--muted); }
.quiz-actions { margin-top: 1.4rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.quiz-result-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 1.25rem 0; }
.quiz-rank { display: flex; flex-direction: column; gap: .6rem; margin: 1rem 0 0; }
.quiz-rank li { display: flex; gap: .8rem; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem .9rem; background: var(--panel-2); }
.quiz-rank .qr-n { font-family: var(--mono); font-weight: 600; color: #fff; background: var(--accent); border-radius: var(--radius); width: 27px; height: 27px; display: grid; place-items: center; flex: none; font-size: .85rem; }
.quiz-rank .qr-body { display: flex; flex-direction: column; gap: .28rem; flex: 1; min-width: 0; }
.quiz-rank .qr-body b a:hover { color: var(--accent-2); }
.quiz-rank .qr-sub { font-size: .78rem; color: var(--muted); font-family: var(--mono); }
.quiz-rank .qr-bar { height: 6px; border-radius: var(--pill); background: var(--panel-3); overflow: hidden; margin-top: .25rem; }
.quiz-rank .qr-bar i { display: block; height: 100%; background: var(--accent); border-radius: var(--pill); }

/* Comparator */
.cmp-toolbar { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.5rem; }
.cmp-search { position: relative; flex: 1; min-width: 220px; }
.cmp-search input { width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--pill); background: var(--panel-2); color: var(--ink); }
.cmp-search input:focus-visible { border-color: var(--accent); }
.cmp-add-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.cmp-add-list .chip { cursor: pointer; transition: border-color .15s var(--ease), color .15s var(--ease); }
.cmp-add-list .chip:hover { border-color: var(--accent); color: var(--ink); }

.cmp-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); }
.cmp-scroll { overflow-x: auto; }
.cmp-grid { display: grid; min-width: 640px; }
.cmp-grid > .cmp-row { display: grid; grid-template-columns: var(--cmp-cols); border-bottom: 1px solid var(--line-soft); }
.cmp-grid > .cmp-row:last-child { border-bottom: 0; }
.cmp-cell { padding: .75rem .9rem; font-family: var(--mono); font-size: .85rem; border-left: 1px solid var(--line-soft); color: var(--ink); }
.cmp-cell:first-child { border-left: 0; }
.cmp-rowlabel { font-family: var(--sans); font-weight: 600; color: var(--ink-soft); background: var(--panel-2); font-size: .88rem; }
.cmp-head-cell { padding: 1.1rem .9rem; border-left: 1px solid var(--line-soft); }
.cmp-head-cell h3 { font-size: 1.02rem; font-family: var(--serif); }
.cmp-head-cell .kb-brand { font-size: .7rem; }
.cmp-head-cell .mini-figure { aspect-ratio: 16/9; background: radial-gradient(120% 100% at 50% 10%, var(--accent-weak), transparent 60%), var(--panel-2); border: 1px solid var(--line-soft); border-radius: var(--radius); margin: .65rem 0; display: grid; place-items: center; padding: .5rem; }
.cmp-cell.best { background: var(--good-weak); color: var(--good); font-weight: 700; position: relative; }
.cmp-cell.best::after { content: "\25B2 mejor"; position: absolute; top: 3px; right: 7px; font-size: .58rem; letter-spacing: .05em; opacity: .85; }
.cmp-remove { margin-top: .55rem; color: var(--bad); font-size: .78rem; font-family: var(--mono); }
.cmp-overlay-panel { margin-bottom: 1.5rem; }
.cmp-empty { text-align: center; padding: 3.5rem 1rem; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-lg); }

/* Offers */
.offer-row { display: grid; grid-template-columns: 110px 1fr auto; gap: 1.1rem; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); padding: 1.1rem; margin-bottom: .9rem; transition: border-color .2s var(--ease); }
.offer-row:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.offer-row .disc { font-family: var(--mono); color: #fff; background: var(--accent); padding: .12rem .5rem; border-radius: var(--pill); font-weight: 700; font-size: .82rem; }
.offer-row .now { color: var(--accent-2); font-weight: 600; font-family: var(--mono); }
.offer-figure { background: radial-gradient(120% 100% at 50% 10%, var(--accent-weak), transparent 60%), var(--panel-2); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: .5rem; }

/* Guide / legal prose */
.doc-prose { max-width: 72ch; }
.doc-prose h2 { font-size: 1.45rem; margin: 2.1rem 0 .8rem; }
.doc-prose h3 { font-size: 1.12rem; margin: 1.5rem 0 .6rem; }
.doc-prose p, .doc-prose li { margin-bottom: .8rem; color: var(--ink-soft); }
.doc-prose strong { color: var(--ink); }
.doc-prose ul { padding-left: 1.2rem; list-style: disc; }
.doc-prose ul li::marker { color: var(--accent); }
.toc { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.15rem 1.35rem; background: var(--panel); margin-bottom: 2rem; }
.toc a { color: var(--accent-2); }
.toc a:hover { color: var(--accent); }

/* =========== Buying guide — interactive =========== */
.reading-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.reading-progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: 0 50%; transform: scaleX(0); transition: transform .12s linear; }

.guide-head { max-width: 60ch; }
.guide-grid { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-top: 1.75rem; }
@media (min-width: 1024px) { .guide-grid { grid-template-columns: 232px 1fr; } }

.guide-toc .toc-head { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.guide-toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .15rem; }
.guide-toc-link {
  display: block; width: 100%; text-align: left;
  padding: .55rem .75rem; border-radius: var(--radius);
  font-size: .87rem; line-height: 1.3; color: var(--muted);
  border-left: 2px solid transparent;
  transition: color .15s var(--ease), background .15s var(--ease), border-color .15s var(--ease);
}
.guide-toc-link:hover { color: var(--ink-soft); background: var(--panel-2); }
.guide-toc-link.is-active { color: var(--ink); background: var(--panel-2); border-left-color: var(--accent); font-weight: 600; }
@media (min-width: 1024px) { .guide-toc { position: sticky; top: 96px; } }
@media (max-width: 1023px) {
  .guide-toc {
    position: sticky; top: 67px; z-index: 40;
    margin-inline: calc(-1 * var(--gutter)); padding: .55rem var(--gutter);
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .guide-toc .toc-head { display: none; }
  .guide-toc ol { flex-direction: row; gap: .4rem; overflow-x: auto; scrollbar-width: none; }
  .guide-toc ol::-webkit-scrollbar { display: none; }
  .guide-toc-link { white-space: nowrap; border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: var(--pill); padding: .4rem .85rem; }
  .guide-toc-link.is-active { border-color: var(--accent); }
}
.guide-article h2 { scroll-margin-top: 110px; }

/* format switcher */
.format-switcher { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); padding: 1.35rem; margin: 1.9rem 0; }
.fs-btns { display: inline-flex; gap: .3rem; padding: .3rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--pill); }
.fs-btn { padding: .5rem 1.15rem; border-radius: var(--pill); font-weight: 600; font-size: .9rem; color: var(--muted); transition: color .15s var(--ease), background .15s var(--ease); }
.fs-btn[aria-pressed="true"] { background: var(--accent); color: #fff; }
.fs-stage { margin-top: 1.15rem; }
.kb-diagram { width: 100%; height: auto; max-width: 540px; }
.fs-caption { font-size: .88rem; color: var(--ink-soft); margin: .85rem 0 0; max-width: 48ch; }
.fs-caption b { color: var(--accent-2); }

/* tip callout */
.tip {
  display: grid; grid-template-columns: auto 1fr; gap: .95rem; align-items: start;
  border: 1px solid color-mix(in srgb, var(--accent) 32%, var(--line));
  background: var(--accent-weak);
  border-radius: var(--radius); padding: 1.15rem 1.3rem; margin: 1.7rem 0;
}
.tip .tip-ico { width: 1.4rem; height: 1.4rem; flex: none; color: var(--accent-2); margin-top: .05rem; }
.tip .tip-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); display: block; margin-bottom: .3rem; }
.tip p { margin: 0; color: var(--ink); }

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* jump button */
.guide-jump {
  position: fixed; right: clamp(1rem, 4vw, 2rem); bottom: clamp(1rem, 4vw, 2rem); z-index: 45;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.25rem; border-radius: var(--pill);
  background: var(--accent); color: #fff; font-weight: 650; font-size: .88rem;
  box-shadow: 0 12px 32px -8px var(--accent-glow), 0 2px 8px rgba(0,0,0,.45);
  transition: opacity .25s var(--ease), transform .25s var(--ease), background .15s var(--ease);
}
.guide-jump:hover { background: var(--accent-2); transform: translateY(-2px); }
.guide-jump.is-hidden { opacity: 0; transform: translateY(14px); pointer-events: none; }
@media (max-width: 1023px) {
  .guide-jump { left: 50%; right: auto; bottom: 1rem; transform: translateX(-50%); }
  .guide-jump:hover { transform: translateX(-50%) translateY(-2px); }
  .guide-jump.is-hidden { transform: translateX(-50%) translateY(14px); }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .reading-progress i { transition: none; }
}

/* Ficha */
.ficha-top { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr 1fr; align-items: start; }
.gallery .gallery-main { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); background: radial-gradient(120% 90% at 50% 8%, var(--accent-weak), transparent 60%), var(--panel-2); aspect-ratio: 4/3; display: grid; place-items: center; padding: clamp(1.25rem, 4vw, 2.25rem); overflow: hidden; }
.gallery .gallery-main .kb-illu,
.gallery .gallery-main .kb-photo { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 22px 34px rgba(0,0,0,.55)); }
.mini-figure .kb-photo, .offer-figure .kb-photo { width: 100%; height: auto; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0,0,0,.5)); }
.ficha-buybox { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.4rem; background: var(--panel); }
.ficha-buybox .price { font-family: var(--mono); font-size: 2rem; font-weight: 600; color: var(--accent-2); }
.ficha-buybox .price s { font-size: .5em; color: var(--muted); font-weight: 400; margin-right: .5rem; }
.ficha-buybox .btn { width: 100%; margin-top: 1rem; }
.ficha-section { margin-top: clamp(2.25rem, 6vw, 3.5rem); }

/* First-person experience note — sits above the editorial description */
.ficha-personal {
  border-left: 2px solid var(--accent);
  padding-left: 1rem;
  color: var(--ink);
  font-style: italic;
}
.ficha-personal-label {
  display: block;
  font-family: var(--mono); font-style: normal;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: .4rem;
}
.similar-strip { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.breadcrumb { font-family: var(--mono); font-size: .78rem; color: var(--muted); margin-bottom: 1.1rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent-2); }
blockquote.review { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem; background: var(--panel); }
blockquote.review p { margin: .55rem 0; font-size: .92rem; color: var(--ink-soft); }
blockquote.review cite { color: var(--muted); font-size: .8rem; font-style: normal; }

/* =============================================================
   10. Setup preview
   ============================================================= */
.setup { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--panel); }
.setup-stage {
  aspect-ratio: 16/10; display: grid; place-items: center;
  padding: clamp(1.75rem, 7vw, 4rem);
  position: relative; overflow: hidden;
  background-color: var(--panel-2);
  background-size: cover; background-position: center;
}
/* subtle vignette so the composited keyboard doesn't look pasted-on */
.setup-stage::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 0%, transparent 55%, rgba(0,0,0,.28));
}
.setup-kb { position: relative; width: min(86%, 640px); }
.setup-kb .setup-kb-img { position: relative; z-index: 2; width: 100%; height: auto; }
.setup-contact {
  position: absolute; left: 50%; bottom: -6%; width: 86%; height: 46%;
  transform: translateX(-50%); z-index: 1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.55), transparent 72%);
  filter: blur(20px);
}
.setup-stage[data-desk="light-wood"] .setup-kb-img { filter: drop-shadow(0 24px 34px rgba(45,32,18,.42)); }
.setup-stage[data-desk="light-wood"] .setup-contact { opacity: .5; }
.setup-stage[data-desk="white"] .setup-kb-img { filter: drop-shadow(0 22px 30px rgba(60,62,72,.38)); }
.setup-stage[data-desk="white"] .setup-contact { opacity: .34; }
.setup-stage[data-desk="dark"] .setup-kb-img { filter: drop-shadow(0 20px 30px rgba(0,0,0,.72)); }
.setup-stage[data-desk="dark"] .setup-contact { opacity: .6; background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.72), transparent 70%); }
.setup-stage[data-desk="walnut"] .setup-kb-img { filter: drop-shadow(0 24px 34px rgba(14,7,3,.6)); }
.setup-stage[data-desk="walnut"] .setup-contact { opacity: .5; }
@media (prefers-reduced-motion: no-preference) {
  .setup-stage { transition: background-image .01s; }
}
.setup-controls { display: flex; gap: .55rem; padding: 1rem; border-top: 1px solid var(--line); flex-wrap: wrap; background: var(--panel); }
.setup-swatch { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: var(--pill); padding: .4rem .8rem .4rem .45rem; font-size: .82rem; color: var(--ink-soft); transition: border-color .15s var(--ease), color .15s var(--ease); }
.setup-swatch:hover { border-color: var(--panel-3); color: var(--ink); }
.setup-swatch i { width: 20px; height: 20px; border-radius: var(--pill); border: 1px solid rgba(255,255,255,.15); }
.setup-swatch[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-weak); color: var(--accent-2); }
.setup-swatch i.light-wood { background: linear-gradient(160deg,#d9b98c,#b98f5f); }
.setup-swatch i.dark { background: linear-gradient(160deg,#2a2a2e,#131316); }
.setup-swatch i.white { background: linear-gradient(160deg,#f2f2f0,#d9d9d6); }
.setup-swatch i.walnut { background: linear-gradient(160deg,#6b4a34,#3f2a1d); }

/* =============================================================
   11. Responsive
   ============================================================= */
@media (max-width: 960px) {
  .hero .hero-grid { grid-template-columns: 1fr; }
  .ficha-top { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .menu-toggle { display: grid; }
  .nav-links {
    position: fixed; inset: 68px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--panel); border-bottom: 1px solid var(--line);
    padding: .6rem; transform: translateY(-130%); transition: transform .25s var(--ease);
    max-height: calc(100dvh - 68px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: .85rem .8rem; border-radius: var(--radius); }
  .pros-cons { grid-template-columns: 1fr; }
  .offer-row { grid-template-columns: 70px 1fr; }
  .offer-row .offer-cta { grid-column: 1 / -1; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .quiz-result-cards { grid-template-columns: 1fr; }
  .kb-actions .btn { flex: 1 1 100%; }
}

/* =============================================================
   12. Reduced motion
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .radar-draw { stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
