/* ============================================================
   CompareSmartDevice — site-wide "futurist" theme layer
   Loaded by the layout AFTER app.css/nav.css on EVERY page.
   Remaps the warm espresso theme onto the cool instrument
   system introduced by home v3: blue-black surfaces, electric
   cyan accents, geometric type, mono data. Token remap first,
   then chrome + generic component overrides for warm values
   hardcoded in the base stylesheet. Home v3 keeps its own
   home.css component layer on top of this.
   ============================================================ */

:root {
  color-scheme: dark;

  /* surfaces */
  --bg: #07090d;
  --bg-elevated: #0d1117;
  --bg-card: #0d1117;
  --bg-hover: #111823;
  --surface: #0d1117;
  --border: rgba(154, 190, 255, 0.14);
  --border-light: rgba(154, 190, 255, 0.22);

  /* text */
  --text: #eaf2fb;
  --text-dim: #c3cfdd;
  --text-muted: #8fa0b3;

  /* accents */
  --accent: #2fd6f4;
  --accent-hover: #7ce9fb;
  --accent-dim: rgba(47, 214, 244, 0.11);
  --accent-glow: rgba(47, 214, 244, 0.25);

  /* status */
  --success: #39e0a4;
  --success-dim: rgba(57, 224, 164, 0.13);
  --warning: #e5c072;
  --warning-dim: rgba(229, 192, 114, 0.12);
  --danger: #f28b82;
  --danger-dim: rgba(242, 139, 130, 0.12);
  --info: #7cb8f0;
  --info-dim: rgba(124, 184, 240, 0.12);

  /* gradients */
  --gradient-hero: linear-gradient(165deg, #0a0e14 0%, #0d1219 55%, #0a0d12 100%);
  --gradient-accent: linear-gradient(135deg, #2fd6f4, #2563eb);
  --gradient-card: linear-gradient(150deg, #0e131a 0%, #0c1016 100%);

  /* type: geometric sans replaces the serif display face everywhere */
  --font-display: var(--font-sans);

  /* raw palette vars used across app.css — dark remap there is warm;
     cool equivalents by role: cream text -> cool white, sage -> mint,
     cedar/amber accents -> cyan family, brown tints -> blue-black tints */
  --ivory-050: #eaf2fb;
  --forest-900: #eaf2fb;
  --forest-800: #c3cfdd;
  --forest-700: #39e0a4;
  --forest-400: #39e0a4;
  --forest-050: rgba(57, 224, 164, 0.12);
  --cedar-050: #0e1a20;
  --cedar-100: #12212a;
  --cedar-300: #2fd6f4;
  --cedar-400: #2fd6f4;
  --cedar-500: #0ea5e9;
  --cedar-600: #0ea5e9;
  --cedar-700: #2fd6f4;
  --cedar-800: #7ce9fb;
  --cedar-900: #7ce9fb;

  /* stone = "elevated dark bg" role in the base theme's dark remap
     (warm #262019 family — e.g. .comparison-table th). Cool equivalents. */
  --stone-100: #111823;
  --stone-200: #1a2330;
  --stone-300: #46536b;
}

/* ---------- base ---------- */

body {
  background: #07090d;
  color: #eaf2fb;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  letter-spacing: -0.018em;
}

a { color: #7ce9fb; }
a:hover { color: #2fd6f4; }

::selection { background: rgba(47, 214, 244, 0.28); color: #eaf2fb; }

:focus-visible {
  outline: 2px solid #2fd6f4;
  outline-offset: 2px;
}

input, select, textarea {
  background: #0d1117;
  border: 1px solid rgba(154, 190, 255, 0.16);
  color: #eaf2fb;
}
input::placeholder, textarea::placeholder { color: #8fa0b3; opacity: 0.85; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #07090d; }
::-webkit-scrollbar-thumb { background: #1d2632; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #28374a; }

/* ---------- chrome: header + footer ---------- */

.site-header {
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(154, 190, 255, 0.08);
}
.site-header .brand-text,
.site-header .brand-text em {
  color: #eaf2fb;
  font-family: var(--font-sans);
  font-style: normal;
}
.site-header a.brand .brand-text em.brand-text__accent,
.site-footer .footer-brand em.footer-brand__accent {
  color: #2fd6f4;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 650;
}
.nav-links a { color: #c3cfdd; }
.nav-links a:hover { color: #2fd6f4; }
.nav-toggle .hamburger,
.nav-toggle .hamburger::before,
.nav-toggle .hamburger::after { background: #c3cfdd; }

.site-footer {
  background: #06080c;
  border-top: 1px solid rgba(154, 190, 255, 0.08);
  color: #8fa0b3;
}
.site-footer a { color: #c3cfdd; }
.site-footer a:hover { color: #2fd6f4; }
.site-footer h4 { color: #eaf2fb; font-family: var(--font-sans); }
.site-footer .footer-brand,
.site-footer .footer-brand em {
  color: #eaf2fb;
  font-family: var(--font-sans);
  font-style: normal;
}
.site-footer .footer-bottom { border-top: 1px solid rgba(154, 190, 255, 0.08); }

/* ---------- generic components ---------- */

.card {
  background: #0d1117;
  border: 1px solid rgba(154, 190, 255, 0.12);
}

.btn {
  border-radius: 9px;
  font-weight: 650;
}
.btn-primary {
  background: linear-gradient(135deg, #2fd6f4, #2563eb);
  color: #041018;
  border: none;
  box-shadow: 0 0 0 1px rgba(47, 214, 244, 0.35), 0 10px 34px -14px rgba(47, 214, 244, 0.55);
}
.btn-primary:hover { filter: brightness(1.08); color: #041018; }
.btn-outline {
  background: transparent;
  border: 1px solid rgba(154, 190, 255, 0.25);
  color: #eaf2fb;
}
.btn-outline:hover { border-color: #2fd6f4; color: #7ce9fb; }

.badge, .chip {
  background: rgba(47, 214, 244, 0.1);
  color: #7ce9fb;
  border: 1px solid rgba(47, 214, 244, 0.25);
}

.text-dim { color: #8fa0b3; }
.text-muted { color: #8fa0b3; }

table th {
  background: #111823;
  color: #8fa0b3;
  border-color: rgba(154, 190, 255, 0.12);
}
table td { border-color: rgba(154, 190, 255, 0.09); color: #c3cfdd; }
table td strong, table td a { color: #eaf2fb; }

code, pre, kbd {
  background: #0d1117;
  border: 1px solid rgba(154, 190, 255, 0.12);
  color: #7ce9fb;
}

hr { border-color: rgba(154, 190, 255, 0.1); }

/* "unknown" spec cells hardcoded to warm gold in the base theme */
.spec-cell--unknown,
.spec-cell--unknown strong {
  color: #e5c072;
  border-color: rgba(229, 192, 114, 0.35);
}
