/* =============================================================
   PC PERFORMANCE CALCULATOR — design system
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Nav
   6. Buttons & forms  7. Cards & badges  8. Calculator
   9. Results & metrics  10. Tables  11. FAQ/Accordion
   12. Ads  13. Footer  14. Sections/misc  15. Responsive
   16. Reduced motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #090a0f;
  --bg-raised: #10121a;
  --surface: #141822;
  --surface-2: #191e2b;
  --border: #242a3a;
  --border-soft: #1b202c;
  --text: #eef1f6;
  --text-dim: #aab2c5;
  --text-mute: #6d7690;
  --accent: #00e6a8;
  --accent-2: #00b3ff;
  --accent-3: #b26bff;
  --warn: #ffb020;
  --danger: #ff5470;
  --ok: #00e6a8;
  --grad-accent: linear-gradient(120deg, var(--accent), var(--accent-2));
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 12px 32px -12px rgba(0,0,0,.55);
  --shadow-sm: 0 4px 14px -6px rgba(0,0,0,.4);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: 'Sora', var(--sans);
  --mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1240px;
  --nav-h: 68px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
  background-image:
    radial-gradient(600px 400px at 85% -10%, rgba(0,230,168,.09), transparent 60%),
    radial-gradient(600px 400px at 5% 0%, rgba(0,179,255,.08), transparent 60%);
  background-repeat: no-repeat;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font: inherit; color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.12; letter-spacing: -0.01em; font-family: var(--display); font-weight: 700; }
ul, ol { padding-left: 1.2em; }
table { border-collapse: collapse; width: 100%; }
::selection { background: var(--accent); color: #05100c; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.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; }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--accent); color: #05100c;
  border-radius: 8px; font-weight: 600; transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }
.section { padding-block: clamp(2.6rem, 6vw, 5rem); position: relative; }
.section-tight { padding-block: clamp(1.6rem, 3vw, 2.6rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 600 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .9rem;
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.muted { color: var(--text-dim); }
.text-mute { color: var(--text-mute); }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.grid { display: grid; gap: 1.2rem; }
.divider { height: 1px; background: var(--border-soft); border: 0; margin-block: 2rem; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.pill-link { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: .85rem; color: var(--text-dim); transition: border-color .2s var(--ease-out), color .2s var(--ease-out); }
.pill-link:hover { border-color: var(--accent); color: var(--text); }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
h4 { font-size: 1.05rem; }
.lede { font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--text-dim); max-width: 62ch; }
.mono { font-family: var(--mono); }
.gradient-text { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-head { max-width: 68ch; margin-bottom: clamp(1.6rem, 3vw, 2.4rem); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .82rem; color: var(--text-mute); padding-block: 1rem; }
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--text-mute); }

/* =============================================================
   5. Nav / Header
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(9,10,15,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.brand img { width: 30px; height: 30px; }
.brand .brand-sub { display: block; font: 500 .68rem/1 var(--mono); color: var(--text-mute); letter-spacing: .04em; }
.nav-links { display: none; align-items: center; gap: 1.6rem; }
.nav-links a { font-size: .92rem; color: var(--text-dim); position: relative; padding-block: .3rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--grad-accent); border-radius: 2px; }
.nav-actions { display: flex; align-items: center; gap: .7rem; }
.nav-toggle { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 10px; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ''; display: block; width: 18px; height: 2px; background: var(--text); position: relative; }
.mobile-nav { display: none; flex-direction: column; gap: .2rem; padding: .6rem 1.1rem 1.2rem; border-bottom: 1px solid var(--border-soft); background: var(--bg-raised); }
.mobile-nav.is-open { display: flex; }
.mobile-nav a { padding: .7rem .3rem; border-bottom: 1px solid var(--border-soft); color: var(--text-dim); font-size: .95rem; }
.mobile-nav a:last-child { border-bottom: 0; }

/* =============================================================
   6. Buttons & forms
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: .92rem;
  transition: transform .18s var(--ease-out), box-shadow .18s var(--ease-out), border-color .18s var(--ease-out), background .18s var(--ease-out);
  white-space: nowrap;
}
.btn-primary { background: var(--grad-accent); color: #06110d; box-shadow: 0 8px 24px -8px rgba(0,230,168,.5); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(0,230,168,.6); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: .55rem 1rem; font-size: .82rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .8rem; font-weight: 600; color: var(--text-dim); text-transform: uppercase; letter-spacing: .04em; }
.field .hint { font-size: .74rem; color: var(--text-mute); }
.input, .select {
  width: 100%; padding: .75rem .9rem; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-raised); color: var(--text); font-size: .95rem;
  transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
.input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,230,168,.15); outline: none; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%); background-position: calc(100% - 18px) center, calc(100% - 13px) center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }

.autocomplete { position: relative; }
.autocomplete-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 60;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); max-height: 280px; overflow-y: auto; display: none;
}
.autocomplete-list.is-open { display: block; }
.autocomplete-item { display: flex; flex-direction: column; gap: .1rem; padding: .65rem .9rem; cursor: pointer; border-bottom: 1px solid var(--border-soft); }
.autocomplete-item:last-child { border-bottom: 0; }
.autocomplete-item:hover, .autocomplete-item.is-active { background: rgba(0,230,168,.08); }
.autocomplete-item .name { font-size: .9rem; font-weight: 600; }
.autocomplete-item .meta { font-size: .74rem; color: var(--text-mute); }
.autocomplete-empty { padding: .9rem; font-size: .85rem; color: var(--text-mute); }

.toggle-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.toggle-chip {
  padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-raised);
  font-size: .84rem; color: var(--text-dim); transition: all .18s var(--ease-out);
}
.toggle-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--bg); background: var(--accent); font-weight: 600; }

/* =============================================================
   7. Cards & badges
   ============================================================= */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.4rem; box-shadow: var(--shadow-sm);
}
.card-hover { transition: transform .22s var(--ease-out), border-color .22s var(--ease-out), box-shadow .22s var(--ease-out); }
.card-hover:hover { transform: translateY(-4px); border-color: rgba(0,230,168,.35); box-shadow: var(--shadow); }
.badge {
  display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .65rem; border-radius: 999px;
  font: 600 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .04em;
  border: 1px solid var(--border); color: var(--text-dim); background: var(--bg-raised);
}
.badge-accent { border-color: rgba(0,230,168,.4); color: var(--accent); background: rgba(0,230,168,.08); }
.badge-warn { border-color: rgba(255,176,32,.4); color: var(--warn); background: rgba(255,176,32,.08); }
.badge-danger { border-color: rgba(255,84,112,.4); color: var(--danger); background: rgba(255,84,112,.08); }
.badge-mute { color: var(--text-mute); }
.data-tag {
  display: inline-flex; align-items: center; gap: .3rem; font: 600 .68rem/1 var(--mono);
  padding: .25rem .55rem; border-radius: 6px; text-transform: uppercase; letter-spacing: .03em;
}
.data-tag--verified { background: rgba(0,230,168,.1); color: var(--accent); }
.data-tag--estimated { background: rgba(0,179,255,.1); color: var(--accent-2); }
.data-tag--sample { background: rgba(255,176,32,.12); color: var(--warn); }
.data-tag--unavailable { background: rgba(255,255,255,.06); color: var(--text-mute); }

.grid-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.hw-card { display: flex; flex-direction: column; gap: .7rem; }
.hw-card .hw-name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
.hw-card .hw-specs { display: flex; flex-wrap: wrap; gap: .4rem .8rem; font-size: .78rem; color: var(--text-mute); }
.hw-card .score-bar { height: 6px; border-radius: 999px; background: var(--bg-raised); overflow: hidden; }
.hw-card .score-bar > span { display: block; height: 100%; background: var(--grad-accent); border-radius: 999px; }

/* =============================================================
   8. Calculator
   ============================================================= */
.calculator {
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface), var(--bg-raised));
  box-shadow: var(--shadow); padding: clamp(1.2rem, 3vw, 2.2rem); position: relative; overflow: hidden;
}
.calculator::before {
  content: ''; position: absolute; inset: -40% -10% auto -10%; height: 60%;
  background: radial-gradient(50% 50% at 50% 0%, rgba(0,230,168,.14), transparent 70%);
  pointer-events: none;
}
.calc-grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; position: relative; }
.calc-row-2 { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
.calc-row-3 { display: grid; gap: 1.1rem; grid-template-columns: repeat(3, 1fr); }
.ram-config { border: 1px dashed var(--border); border-radius: 12px; padding: 1rem; display: grid; gap: .9rem; }
.ram-total { display: flex; align-items: baseline; gap: .5rem; font-family: var(--mono); }
.ram-total .val { font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.calc-submit { display: flex; flex-direction: column; align-items: center; gap: .7rem; margin-top: .6rem; text-align: center; }
.calc-submit .btn-primary { padding: 1rem 2.4rem; font-size: 1rem; }
.calc-submit .btn-primary.is-loading { pointer-events: none; }
.calc-submit .spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(6,17,13,.35); border-top-color: #06110d; animation: spin .7s linear infinite; }
.btn-primary.is-loading .spinner { display: inline-block; }
.btn-primary.is-loading .btn-label { opacity: .75; }
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================================
   9. Results & metrics
   ============================================================= */
.results { display: none; }
.results.is-visible { display: block; }
.metric-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.metric {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem; display: flex; flex-direction: column; gap: .3rem;
}
.metric .metric-label { font: 600 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--text-mute); }
.metric .metric-value { font-family: var(--display); font-size: 1.8rem; font-weight: 700; }
.metric .metric-sub { font-size: .78rem; color: var(--text-dim); }
.metric-value.accent { color: var(--accent); }

.exp-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.exp-excellent { background: rgba(0,230,168,.14); color: var(--accent); }
.exp-good { background: rgba(0,179,255,.14); color: var(--accent-2); }
.exp-acceptable { background: rgba(255,176,32,.14); color: var(--warn); }
.exp-limited { background: rgba(255,84,112,.14); color: var(--danger); }

.res-bars { display: flex; flex-direction: column; gap: .9rem; }
.res-bar-row { display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; gap: .8rem; }
.res-bar-row .res-label { font: 600 .82rem var(--mono); color: var(--text-dim); }
.res-bar-track { height: 14px; border-radius: 999px; background: var(--bg-raised); overflow: hidden; border: 1px solid var(--border-soft); }
.res-bar-fill { height: 100%; border-radius: 999px; background: var(--grad-accent); transition: width .8s var(--ease-out); }
.res-bar-row .res-val { font-family: var(--mono); font-weight: 700; text-align: right; }

.balance-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.util-bar { display: flex; flex-direction: column; gap: .4rem; }
.util-bar .util-track { height: 10px; border-radius: 999px; background: var(--bg-raised); overflow: hidden; }
.util-bar .util-fill { height: 100%; border-radius: 999px; }
.util-fill--cpu { background: var(--accent-2); }
.util-fill--gpu { background: var(--accent); }

.power-table { display: grid; gap: .55rem; }
.power-row { display: flex; align-items: center; justify-content: space-between; padding-block: .35rem; border-bottom: 1px dashed var(--border-soft); font-size: .9rem; }
.power-row:last-child { border-bottom: 0; }
.power-row .val { font-family: var(--mono); font-weight: 700; }
.power-row.total { font-size: 1.05rem; font-weight: 700; border-top: 1px solid var(--border); padding-top: .7rem; margin-top: .2rem; }

/* =============================================================
   10. Tables (compare)
   ============================================================= */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.data-table { min-width: 560px; font-size: .88rem; }
.data-table th, .data-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border-soft); }
.data-table thead th { background: var(--surface-2); font: 600 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .04em; color: var(--text-mute); position: sticky; top: 0; }
.data-table tbody tr:hover { background: rgba(255,255,255,.02); }
.data-table td.win { color: var(--accent); font-weight: 700; }
.data-table tbody tr:last-child td { border-bottom: 0; }

/* =============================================================
   11. FAQ / Accordion
   ============================================================= */
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 0; text-align: left; font-weight: 600; font-family: var(--display); }
.faq-q .icon { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: transform .25s var(--ease-out); font-size: .8rem; }
.faq-item[data-open="true"] .icon { transform: rotate(45deg); border-color: var(--accent); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease-out); color: var(--text-dim); font-size: .92rem; }
.faq-item[data-open="true"] .faq-a { padding-bottom: 1.1rem; }

/* =============================================================
   12. Ads (AdSense placeholders — clearly marked, never real ads yet)
   ============================================================= */
.ad-slot {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: .3rem;
  border: 1px dashed var(--border); border-radius: var(--radius-sm); background: var(--bg-raised);
  color: var(--text-mute); font: 600 .7rem/1 var(--mono); text-transform: uppercase; letter-spacing: .06em;
  margin-inline: auto; overflow: hidden;
}
.ad-slot::after { content: 'Espacio reservado · sin anuncios activos aún'; font: 500 .62rem/1 var(--sans); text-transform: none; letter-spacing: 0; color: var(--text-mute); opacity: .7; }
.ad-slot--banner { width: 100%; max-width: 970px; min-height: 90px; }
.ad-slot--infeed { width: 100%; min-height: 120px; }
.ad-slot--sidebar { width: 100%; min-height: 250px; }
.ad-sidebar-sticky { position: sticky; top: calc(var(--nav-h) + 20px); }

/* =============================================================
   13. Footer
   ============================================================= */
.site-footer { border-top: 1px solid var(--border-soft); background: var(--bg-raised); padding-block: 3rem 1.6rem; }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: 1.4fr repeat(3, 1fr); }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-mute); margin-bottom: .9rem; }
.footer-col a { display: block; padding-block: .4rem; font-size: .88rem; color: var(--text-dim); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--border-soft); font-size: .8rem; color: var(--text-mute); }
.footer-disclaimer { font-size: .78rem; color: var(--text-mute); max-width: 74ch; margin-top: 1.2rem; line-height: 1.6; }

/* =============================================================
   14. Sections / misc
   ============================================================= */
.hero { padding-block: clamp(2.4rem, 6vw, 4.4rem) clamp(1.6rem, 4vw, 2.4rem); text-align: center; }
.hero-title { max-width: 20ch; margin-inline: auto; }
.hero-lede { max-width: 56ch; margin-inline: auto; margin-top: 1rem; }
.hero-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-top: 1.8rem; }
.hero-stat { text-align: center; }
.hero-stat .num { font-family: var(--display); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.hero-stat .lbl { font-size: .74rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: .04em; }

.content-block { display: grid; gap: .9rem; }
.content-block p { color: var(--text-dim); }
.two-col { display: grid; gap: 2.4rem; grid-template-columns: 1fr; }
.side-rail { display: flex; flex-direction: column; gap: 1.4rem; }

.related-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.link-row { display: flex; flex-wrap: wrap; gap: .55rem; }

.spec-table { display: grid; gap: 0; }
.spec-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--border-soft); }
.spec-row:last-child { border-bottom: 0; }
.spec-row .k { color: var(--text-mute); font-size: .84rem; }
.spec-row .v { font-weight: 600; text-align: right; }

.pros-cons { grid-template-columns: 1fr 1fr; }
.pros-cons ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.pros-cons li { display: flex; align-items: flex-start; gap: .5rem; font-size: .9rem; color: var(--text-dim); }
.pros-cons .pros li::before { content: '✓'; color: var(--accent); font-weight: 700; }
.pros-cons .cons li::before { content: '–'; color: var(--danger); font-weight: 700; }

.tier-badge { display: inline-block; padding: .3rem .7rem; border-radius: 999px; font: 600 .72rem/1 var(--mono); text-transform: uppercase; }
.tier-budget { background: rgba(0,179,255,.12); color: var(--accent-2); }
.tier-mid-range { background: rgba(0,230,168,.12); color: var(--accent); }
.tier-high-end { background: rgba(178,107,255,.14); color: var(--accent-3); }
.tier-enthusiast { background: rgba(255,176,32,.14); color: var(--warn); }
.tier-laptop { background: rgba(255,255,255,.08); color: var(--text-dim); }

.search-box { position: relative; max-width: 480px; }
.search-box input { padding-left: 2.6rem; }
.search-box .icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); opacity: .5; font-size: .85rem; }
.nav-search { display: none; width: 190px; }
.nav-search .input { padding-block: .55rem; font-size: .84rem; }
.mobile-nav .nav-search { display: block; width: 100%; margin-bottom: .6rem; }
@media (min-width: 1100px) { .nav-search { display: block; } }

.legal-content h2 { margin-top: 2rem; margin-bottom: .7rem; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-dim); margin-bottom: .6rem; }
.legal-content ul { margin-bottom: 1rem; }

.share-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.share-row input[readonly] { flex: 1; min-width: 180px; }
.toast { position: fixed; bottom: 1.4rem; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; background: var(--surface-2); border: 1px solid var(--accent); color: var(--text); padding: .7rem 1.2rem; border-radius: 999px; font-size: .85rem; transition: all .25s var(--ease-out); z-index: 500; }
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

.404-hero { text-align: center; padding-block: 5rem; }

/* =============================================================
   15. Responsive (mobile-first)
   ============================================================= */
@media (min-width: 540px) {
  .pros-cons { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .calc-row-2 { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-wrap: nowrap; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .calc-grid { grid-template-columns: 1fr 1fr; }
  .calc-grid > .field-game-block, .calc-grid > .ram-config, .calc-grid > .calc-submit, .calc-grid > .calc-row-3 { grid-column: 1 / -1; }
  .two-col { grid-template-columns: 2.1fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}
@media (min-width: 1280px) {
  .container { padding-inline: 1.6rem; }
}
@media (max-width: 719px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* =============================================================
   16. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition-duration: .01s; }
  .res-bar-fill { transition: none; }
  .spinner { animation: none; }
}
