/* registration.expert — shared design system
   Loaded by index.html and the comparison pages. Holds the design tokens
   (light + dark themes), reset, typography, buttons, nav, and theme toggle.
   Page-specific layout stays in each page's inline <style>. */

:root {
  --bg: #0e0d16;
  --bg-2: #15131f;
  --surface: #1c1a28;
  --surface-2: #232032;
  --border: #2e2b3d;
  --text: #ece9f5;
  --text-dim: #a8a3bd;
  --text-faint: #6f6a85;
  --accent: #7c75e8;
  --accent-2: #afa9ec;
  --accent-deep: #3c3489;
  --green: #5dcaa5;
  --header-bg: rgba(14,13,22,.82);
  --radius: 14px;
  --maxw: 1080px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #faf9fd;
  --bg-2: #f2f0fa;
  --surface: #ffffff;
  --surface-2: #f6f4fc;
  --border: #e5e1f0;
  --text: #1a1726;
  --text-dim: #545067;
  --text-faint: #837d96;
  --accent: #5d54d6;
  --accent-2: #4f45bd;
  --accent-deep: #cdc9f3;
  --green: #1f9068;
  --header-bg: rgba(250,249,253,.85);
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px;
  font-weight: 600; color: var(--accent-2); margin-bottom: 14px;
}
.muted { color: var(--text-dim); }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 10px; border: 0; cursor: pointer;
  transition: transform .08s ease, background .15s ease; white-space: nowrap;
}
.btn:hover { background: #8a83f0; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  padding: 10px 18px; font-size: 14px;
}
.btn-ghost:hover { background: var(--surface); transform: none; }

/* Nav */
header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 700; font-size: 17px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 9px; }
.brand-mark { height: 30px; width: 30px; display: block; }
.brand .dot { color: var(--accent-2); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a.lnk { color: var(--text-dim); font-size: 14px; font-weight: 500; }
.nav-links a.lnk:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links a.lnk { display: none; } }
.theme-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  background: transparent; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text-dim); cursor: pointer; font-size: 16px; line-height: 1;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.theme-toggle:hover { background: var(--surface); color: var(--text); }
.theme-toggle .ico-moon { display: none; }
:root[data-theme="light"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ico-moon { display: inline; }
