:root {
  /* Quizzie LIGHT theme ("lite mode") — lavender surfaces, ink-navy text.
     Brand accents (lime/pink/indigo) are unchanged. Lime is a FILL only; for
     text/links on light we use --accent-ink (indigo) so it stays legible, and
     filled buttons put --on-accent (dark ink) on top of the lime/pink. */
  --bg: #eae6f7;
  --surface: #ffffff;
  --text: #1c1436;
  --text-muted: #5b5480;
  --accent: #C6FF3D;
  --accent-pink: #FF4FA8;
  --accent-indigo: #6366F1; /* the third holographic-wordmark hue; also the body radial glow */
  --accent-ink: #6366F1;    /* readable accent for links + inline text on light */
  --on-accent: #0F0F1E;     /* dark text placed on lime/pink filled buttons */
  --border: rgba(99, 102, 241, 0.16);

  /* Type scale */
  --font-display: 'Unbounded', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;

  /* Subtle radial glow — Electric Arena vibe without being loud */
  background-image:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(99, 102, 241, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 30% at 100% 100%, rgba(198, 255, 61, 0.04), transparent 70%);
  background-attachment: fixed;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px;
}

header {
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
  padding-bottom: 24px;
}

/* Holographic wordmark — mirrors HolographicWordmark.tsx in the app.
   Lime → indigo → pink → indigo → lime, scrolling 6s linear infinite. */
.brand {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-decoration: none;
  display: inline-block;
  background: linear-gradient(
    90deg,
    #C6FF3D 0%,
    #6366F1 12.5%,
    #FF4FA8 25%,
    #6366F1 37.5%,
    #C6FF3D 50%,
    #6366F1 62.5%,
    #FF4FA8 75%,
    #6366F1 87.5%,
    #C6FF3D 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
  line-height: 1;
}

@keyframes shimmer {
  from { background-position: 0% 50%; }
  to { background-position: -200% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .brand { animation: none; background-position: 0% 50%; }
}

nav {
  margin-top: 16px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

nav a:hover { color: var(--accent-ink); }
nav a.active { color: var(--text); }

h1 {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.15;
}

h2 {
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 600;
  margin: 40px 0 12px;
  color: var(--text);
}

h3 {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text);
}

p, ul, ol { color: var(--text-muted); }

ul, ol { padding-left: 20px; }
li { margin-bottom: 4px; }

a {
  color: var(--accent-ink);
  transition: opacity 0.15s ease;
}
a:hover { opacity: 0.8; text-decoration: underline; }

strong { color: var(--text); font-weight: 600; }

.meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.todo {
  background: rgba(255, 79, 168, 0.08);
  border-left: 3px solid var(--accent-pink);
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--text);
  border-radius: 4px;
}

.todo::before {
  content: "TODO: ";
  font-weight: 700;
  color: var(--accent-pink);
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 14px;
}

/* Legal-link row in the homepage footer — muted, not accent, so the links read
   as secondary chrome rather than calls to action. */
.footer-links {
  margin: 0 0 12px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-ink);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}

/* Card-scoped heading: keeps a card label compact instead of the page-level h2
   (22px / 40px top margin). Used by the share-landing pages for correct h1→h2 order. */
.card h2 {
  font-size: 18px;
  margin: 0 0 8px;
}

/* Primary install card — accent border lifts it above the equal-weight info
   cards below so the conversion CTA reads as the dominant action, not the first
   of three identical blocks. */
.card-cta {
  border-color: rgba(198, 255, 61, 0.35);
}

.button {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 14px;
  transition: transform 0.1s ease, opacity 0.15s ease;
}

.button:hover {
  opacity: 0.9;
  text-decoration: none;
}

.button:active {
  transform: translateY(1px);
}

.button-danger {
  background: var(--accent-pink);
  color: var(--on-accent);
}

input[type="email"],
input[type="text"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  margin-bottom: 12px;
  transition: border-color 0.15s ease;
}

input:focus {
  outline: 2px solid var(--accent-ink);
  outline-offset: 2px;
  border-color: var(--accent-ink);
}

label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  font-family: ui-monospace, "SF Mono", Monaco, monospace;
  color: var(--accent-ink);
}

/* Multi-step flows (delete-account, future forms) */
.step.hidden { display: none; }

.card-warning {
  border-color: rgba(255, 79, 168, 0.35);
  background: rgba(255, 79, 168, 0.05);
}

.button-neutral {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.button-neutral:hover { color: var(--text); }

.action-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 8px;
}

/* Desktop install QR (revealed by JS). On a white card so the dark modules scan
   reliably against the dark page background. */
.qr-block {
  text-align: center;
  margin: 20px 0 4px;
}

.qr-img {
  width: 160px;
  height: 160px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
}

.qr-cap {
  font-size: 13px;
  color: var(--text-muted);
  margin: 8px 0 0;
}

.error-msg {
  color: var(--accent-pink);
  font-size: 13px;
  min-height: 18px;
  margin-top: 8px;
  font-weight: 500;
}

.error-msg:empty { display: none; }

.hint-link {
  font-size: 13px;
  margin-top: 16px;
  text-align: center;
}

.hint-link a { color: var(--text-muted); }
.hint-link a:hover { color: var(--accent-ink); }

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Tables — used in privacy policy vendor list */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  vertical-align: top;
}

th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}

tbody tr:last-child td { border-bottom: none; }

/* Mobile tweaks */
@media (max-width: 480px) {
  .container { padding: 32px 20px; }
  h1 { font-size: 28px; }
  h2 { font-size: 20px; }
  nav { gap: 16px; }
  .action-row { flex-direction: column; }
  .action-row .button { width: 100%; text-align: center; }
  th, td { padding: 10px 12px; }
}
