/* =====================================================================
   MAYCHIEU.ORG — Public design system
   Brand: Trust Ink #11233F · Projector Blue #0E7AFE · Lumen Cyan #23D3EE
   Fonts: Be Vietnam Pro (head) · Inter (body) · Roboto Mono (specs)
   Light, bright, trustworthy. Mobile-first.
   ===================================================================== */

:root {
  /* Brand */
  --ink: #11233F;
  --ink-2: #0B1830;
  --blue: #0E7AFE;
  --blue-dark: #0B5FCC;
  --blue-soft: #EAF3FF;
  --cyan: #23D3EE;
  --cyan-soft: #DDF7FF;
  --amber: #F6B73C;
  --amber-soft: #FFF5DB;
  --amber-ink: #8A5A00;
  --green: #16A34A;
  --green-soft: #EAFBF0;
  --green-ink: #0F7A3B;
  --red: #DC2626;
  --red-soft: #FDECEC;

  /* Neutrals */
  --screen: #F7FAFC;
  --paper: #FFFFFF;
  --graphite: #243040;
  --muted: #66758A;
  --muted-2: #8A97A8;
  --line: #E3EAF2;
  --line-2: #D9E2EF;

  /* Type */
  --font-head: "Be Vietnam Pro", "Inter", system-ui, Arial, sans-serif;
  --font-body: "Inter", system-ui, Arial, sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, Consolas, monospace;

  /* Radii / shadow */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(17,35,63,.06), 0 1px 3px rgba(17,35,63,.05);
  --sh-2: 0 8px 24px rgba(17,35,63,.08);
  --sh-3: 0 18px 48px rgba(17,35,63,.14);
  --ring: 0 0 0 3px rgba(14,122,254,.28);

  /* Layout */
  --maxw: 1200px;
  --gap: clamp(16px, 3vw, 24px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--screen);
  color: var(--graphite);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(20px, 5vw, 28px); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--r-sm); font-family: var(--font-head);
  font-weight: 700; font-size: .95rem; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(14,122,254,.28); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; box-shadow: 0 10px 22px rgba(14,122,254,.34); transform: translateY(-1px); }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(17,35,63,.05); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-pill);
  font-family: var(--font-head); font-size: .78rem; font-weight: 700; padding: 5px 11px; line-height: 1; }
.badge-info { background: var(--blue-soft); color: var(--blue-dark); }
.badge-cyan { background: var(--cyan-soft); color: #0a6c80; }
.badge-warning { background: var(--amber-soft); color: var(--amber-ink); }
.badge-good { background: var(--green-soft); color: var(--green-ink); }
.badge-danger { background: var(--red-soft); color: var(--red); }
.badge-ghost { background: #EEF2F7; color: var(--muted); }

/* =====================================================================
   Header
   ===================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(247,250,252,.82);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 68px; }
.brand-logo { flex: none; display: flex; align-items: center; }
.brand-logo img { height: 38px; width: auto; }
.brand-logo .logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -.02em; }
.brand-logo .logo-text b { color: var(--blue); font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.main-nav a { color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: .94rem;
  padding: 9px 13px; border-radius: var(--r-sm); transition: background .15s, color .15s; }
.main-nav a:hover { background: rgba(14,122,254,.08); color: var(--blue-dark); }
.main-nav a.active { color: var(--blue-dark); background: var(--blue-soft); }
.header-spacer { flex: 1; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  width: 44px; height: 44px; cursor: pointer; align-items: center; justify-content: center; color: var(--ink); }

/* Mobile nav (CSS checkbox toggle) */
#nav-switch { display: none; }
@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .header-cta .btn-primary { display: none; }
  .header-inner { gap: 10px; }
  .main-nav { position: fixed; inset: 68px 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px; gap: 2px; margin: 0;
    box-shadow: var(--sh-2); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .2s; }
  #nav-switch:checked ~ .main-nav { transform: none; opacity: 1; pointer-events: auto; }
  .main-nav a { padding: 13px 14px; font-size: 1rem; }
}

/* ---------- Flash ---------- */
.flash { padding: 11px 0; font-size: .92rem; font-weight: 600; }
.flash-success { background: var(--green-soft); color: var(--green-ink); }
.flash-error { background: var(--red-soft); color: var(--red); }

/* =====================================================================
   Hero (directory pattern: search-focused)
   ===================================================================== */
.hero { position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 480px at 78% -8%, rgba(35,211,238,.20), transparent 60%),
    radial-gradient(900px 420px at 10% 0%, rgba(14,122,254,.12), transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, var(--screen) 100%);
  border-bottom: 1px solid var(--line); }
.hero-inner { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 5vw, 64px); max-width: 880px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--paper);
  border: 1px solid var(--line-2); color: var(--ink); border-radius: var(--r-pill);
  padding: 7px 14px; font-family: var(--font-head); font-weight: 600; font-size: .82rem; box-shadow: var(--sh-1); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; margin: 18px 0 14px; letter-spacing: -.025em; }
.hero h1 .accent { color: var(--blue);
  background: linear-gradient(120deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.28rem); color: var(--graphite); max-width: 640px; margin-bottom: 28px; }
.hero-search { display: flex; gap: 10px; max-width: 620px; background: var(--paper); border: 1px solid var(--line-2);
  border-radius: var(--r-md); padding: 8px; box-shadow: var(--sh-2); }
.hero-search:focus-within { border-color: var(--blue); box-shadow: var(--ring), var(--sh-2); }
.hero-search input { flex: 1; border: 0; background: none; font: inherit; font-size: 1.02rem; padding: 0 8px 0 12px; color: var(--ink); min-width: 0; }
.hero-search input:focus { outline: none; }
.hero-search .icon { color: var(--muted); align-self: center; }
.hero-popular { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-popular span { color: var(--muted); font-size: .88rem; }
.hero-popular a { background: var(--paper); border: 1px solid var(--line-2); color: var(--ink);
  padding: 6px 12px; border-radius: var(--r-pill); font-size: .86rem; font-weight: 600; transition: .15s; }
.hero-popular a:hover { border-color: var(--blue); color: var(--blue-dark); }

.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats .stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 14px 22px; box-shadow: var(--sh-1); min-width: 110px; }
.hero-stats .num { font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; color: var(--ink); line-height: 1; }
.hero-stats .num b { color: var(--blue); }
.hero-stats .lbl { font-size: .82rem; color: var(--muted); margin-top: 4px; }

/* =====================================================================
   Sections
   ===================================================================== */
.section { padding: clamp(44px, 6vw, 72px) 0; }
.section-tight { padding: clamp(32px, 4vw, 48px) 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; }
.section-head .sub { color: var(--muted); margin: 6px 0 0; }
.section-head .link { font-family: var(--font-head); font-weight: 700; font-size: .92rem; }
.eyebrow-sm { font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .06em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }

/* Browse-by chips with icons */
.facet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.facet { display: flex; align-items: center; gap: 12px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 14px 16px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.facet:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--cyan); text-decoration: none; }
.facet .fic { width: 40px; height: 40px; flex: none; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue); }
.facet .fic svg { width: 22px; height: 22px; }
.facet .ft { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: .95rem; line-height: 1.25; }
.facet .fs { font-size: .8rem; color: var(--muted); }

/* Brand grid */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.brand-card { display: flex; flex-direction: column; gap: 4px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px 18px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.brand-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--blue); text-decoration: none; }
.brand-card .bn { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.brand-card .bm { font-size: .8rem; color: var(--muted); }
.brand-card .bc { margin-top: 6px; font-size: .8rem; color: var(--blue-dark); font-weight: 600; }

/* Model grid */
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.model-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column; }
.model-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); text-decoration: none; }
.model-thumb { aspect-ratio: 4/3; background: linear-gradient(135deg, #EEF4FB, #E2F4FA);
  display: flex; align-items: center; justify-content: center; color: #9DB4CC; position: relative; }
.model-thumb img { width: 100%; height: 100%; object-fit: cover; }
.model-thumb .ph { width: 54px; height: 54px; opacity: .7; }
.model-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.model-card .mb { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.model-card .mn { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.02rem; line-height: 1.3; }
.model-card .mp { margin-top: auto; font-family: var(--font-head); font-weight: 800; color: var(--green-ink); font-size: 1rem; }

/* Value props */
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.value { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; }
.value .vic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 14px; }
.value h3 { font-size: 1.12rem; margin-bottom: 6px; }
.value p { color: var(--muted); margin: 0; font-size: .94rem; }

/* Content pillars */
.pillar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pillar { display: flex; gap: 12px; align-items: flex-start; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px 18px; transition: .15s; }
.pillar:hover { border-color: var(--blue); box-shadow: var(--sh-1); text-decoration: none; }
.pillar .pn { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.pillar .pd { font-size: .86rem; color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, var(--ink) 0%, #173258 55%, #0E3A6E 100%); position: relative; overflow: hidden; border-radius: var(--r-lg); }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(35,211,238,.4), transparent 60%); }
.cta-inner { position: relative; padding: clamp(32px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-inner h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 8px; }
.cta-inner p { color: #C7D8EE; margin: 0; max-width: 480px; }

/* =====================================================================
   Generic page
   ===================================================================== */
.page { padding-block: clamp(24px, 4vw, 40px) clamp(48px, 6vw, 72px); }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumb a { color: var(--muted); font-weight: 600; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: var(--line-2); }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 10px; }
.page-head .lead { font-size: 1.08rem; color: var(--graphite); max-width: 720px; }
.prose { color: var(--graphite); max-width: 720px; }
.prose p { margin-bottom: .9em; }

/* ===== Filter page ===== */
.filter-layout { display: grid; grid-template-columns: 280px minmax(0,1fr); gap: 28px; align-items: start; }
.filter-sidebar { position: sticky; top: 88px; }
.filter-mobile-toggle { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.filter-mobile-toggle > summary { display: flex; align-items: center; gap: 8px; padding: 14px 18px; font-family: var(--font-head); font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.filter-mobile-toggle > summary::-webkit-details-marker { display: none; }
.filter-mobile-toggle > summary .icon { width: 18px; height: 18px; color: var(--blue); }
.filter-body { padding: 4px 18px 18px; }
.filter-group { padding: 14px 0; border-top: 1px solid var(--line); }
.filter-group:first-child { border-top: 0; }
.filter-group h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 10px; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { background: var(--screen); border: 1px solid var(--line-2); color: var(--ink); border-radius: var(--r-pill);
  padding: 6px 11px; font-size: .82rem; font-weight: 600; transition: .15s; }
.fchip:hover { border-color: var(--blue); color: var(--blue-dark); text-decoration: none; }
.fchip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.fchip.on:hover { background: var(--blue-dark); color: #fff; }

.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.results-count { font-family: var(--font-head); color: var(--ink); font-size: 1.05rem; }
.results-count strong { color: var(--blue); font-size: 1.3rem; }
.sort-control { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sort-control select { padding: 8px 10px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font: inherit; font-size: .9rem; background: var(--paper); color: var(--ink); cursor: pointer; }

@media (max-width: 860px) {
  .filter-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .filter-mobile-toggle:not([open]) .filter-body { display: none; }
}

/* Empty state */
.empty { text-align: center; background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 48px 24px; }
.empty .eic { width: 64px; height: 64px; margin: 0 auto 14px; color: var(--cyan); }
.empty h3 { margin-bottom: 6px; }
.empty p { color: var(--muted); margin: 0 auto 18px; max-width: 440px; }

/* =====================================================================
   Spec sheet
   ===================================================================== */
.spec-wrap { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 36px; align-items: start; }
.spec-main { min-width: 0; }
.spec-hero { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 28px; margin-bottom: 32px; }
.spec-media { background: linear-gradient(135deg, #EEF4FB, #E2F4FA); border: 1px solid var(--line); border-radius: var(--r-md);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.spec-media img { width: 100%; height: 100%; object-fit: cover; }
.spec-media .ph { width: 76px; height: 76px; color: #9DB4CC; }
.spec-eyebrow { font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.spec-title { font-size: clamp(1.5rem, 3.4vw, 2.2rem); margin: 8px 0 12px; }
.spec-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.spec-price { font-family: var(--font-head); font-weight: 800; color: var(--green-ink); font-size: 1.7rem; }
.spec-price small { font-size: .8rem; color: var(--muted); font-weight: 600; }
.spec-short { color: var(--graphite); margin-top: 8px; }

.spec-block { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px 24px; margin-bottom: 18px; scroll-margin-top: 88px; }
.spec-block h2 { font-size: 1.18rem; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.spec-block h2 .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--cyan); flex: none; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 6px; border-bottom: 1px solid var(--line); font-size: .94rem; vertical-align: top; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 46%; color: var(--muted); font-weight: 500; }
.spec-table td { color: var(--ink); font-family: var(--font-mono); font-weight: 500; font-size: .9rem; }

/* Spec aside (sticky nav + key facts) */
.spec-aside { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px 20px; }
.aside-card h3 { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 12px; }
.keyfacts { display: flex; flex-direction: column; gap: 10px; }
.keyfacts .kf { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; }
.keyfacts .kf .k { color: var(--muted); }
.keyfacts .kf .v { font-family: var(--font-mono); font-weight: 700; color: var(--ink); text-align: right; }
.spec-jump a { display: block; padding: 8px 10px; border-radius: var(--r-sm); color: var(--ink); font-size: .9rem; font-weight: 600; }
.spec-jump a:hover { background: var(--blue-soft); color: var(--blue-dark); }

/* ===== Compare ===== */
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare-table th, .compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; font-size: .92rem; vertical-align: middle; }
.compare-table thead th { background: var(--screen); position: sticky; top: 0; }
.compare-table td { font-family: var(--font-mono); font-size: .86rem; color: var(--ink); }
.cmp-label { width: 200px; color: var(--muted); font-family: var(--font-body); font-weight: 600; position: sticky; left: 0; background: var(--paper); }
.compare-table thead .cmp-label { background: var(--screen); }
.cmp-head { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 130px; }
.cmp-thumb { width: 100%; aspect-ratio: 4/3; max-width: 150px; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg,#EEF4FB,#E2F4FA); display: flex; align-items: center; justify-content: center; color: #9DB4CC; }
.cmp-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cmp-thumb .ph { width: 36px; height: 36px; }
.cmp-name { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: .95rem; }
.cmp-no { color: var(--muted-2); }

/* Compare add button state */
.js-compare-add.is-added { background: var(--green-soft); border-color: var(--green); color: var(--green-ink); }

/* Floating compare tray */
#mc-compare-tray { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; background: var(--ink); color: #fff; box-shadow: 0 -8px 24px rgba(17,35,63,.22); }
.cmp-tray-inner { max-width: var(--maxw); margin: 0 auto; padding: 12px clamp(16px,4vw,28px); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cmp-tray-items { flex: 1; min-width: 200px; font-size: .9rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cmp-tray-items strong { color: #AFC0D6; font-weight: 600; }
.cmp-tray-chip { background: rgba(255,255,255,.12); border-radius: var(--r-pill); padding: 5px 8px 5px 12px; font-size: .84rem; display: inline-flex; align-items: center; gap: 4px; }
.cmp-tray-x { background: none; border: 0; color: #AFC0D6; font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 0 2px; }
.cmp-tray-x:hover { color: #fff; }
.cmp-tray-actions { display: flex; gap: 8px; }
.cmp-tray-actions .is-disabled { opacity: .5; pointer-events: none; }
body:has(#mc-compare-tray) .site-footer { margin-bottom: 64px; }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { background: var(--ink); color: #AFC0D6; margin-top: 24px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; padding: clamp(40px,5vw,56px) 0 36px; }
.footer-brand .logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: #fff; }
.footer-brand .logo-text b { color: var(--cyan); }
.footer-brand p { margin: 12px 0 0; font-size: .9rem; max-width: 320px; color: #95A8C2; }
.footer-col h4 { color: #fff; font-size: .92rem; margin-bottom: 12px; }
.footer-col a { display: block; color: #AFC0D6; font-size: .9rem; padding: 5px 0; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .84rem; color: #7E91AC; }

/* ---------- Error ---------- */
.error-page { text-align: center; padding-block: clamp(60px,9vw,110px); }
.error-page .code { font-family: var(--font-head); font-weight: 800; font-size: clamp(4rem,12vw,7rem);
  background: linear-gradient(120deg, var(--blue), var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; line-height: 1; }
.error-page p { color: var(--muted); margin: 8px 0 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .spec-wrap { grid-template-columns: 1fr; }
  .spec-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .aside-card { flex: 1; min-width: 220px; }
}
@media (max-width: 720px) {
  .spec-hero { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .hero-stats .stat { flex: 1; min-width: 90px; padding: 12px 14px; }
}
@media (max-width: 480px) {
  .footer-top { grid-template-columns: 1fr; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
