:root {
  --bg: #0f172a;
  --bg-2: #172554;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --accent: #f97316;
  --accent-info: #0ea5e9;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --maxw: 1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--surface-alt);
  line-height: 1.6;
}

a { color: inherit; }
.container { width: min(calc(100% - 2rem), var(--maxw)); margin: 0 auto; }

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  background: #fff;
  z-index: 999;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}
.header-inner {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
}
.logo { font-weight: 700; text-decoration: none; }
.nav { display: none; gap: 0.4rem; flex-wrap: wrap; }
.nav a, .lang-switch a {
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}
.lang-switch a.active, .lang-switch a:hover, .nav a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.section { padding: 3rem 0; }
.hero {
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  color: #fff;
}
.hero-grid { display: grid; gap: 1rem; }
.eyebrow { color: #bae6fd; font-weight: 600; margin: 0 0 0.5rem; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }

.lead { font-size: 1.05rem; max-width: 66ch; }
.actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.25rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-secondary { background: #fff; color: var(--text); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; }

.panel, .card, details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel {
  padding: 1rem;
  color: var(--text);
}

.filters { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 1rem; }
.filters label { font-weight: 600; }
select, button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  background: #fff;
}
button { cursor: pointer; font-weight: 600; }

#run-quiz {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

#run-quiz:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

#run-quiz:focus-visible {
  outline: 3px solid #fdba74;
  outline-offset: 2px;
}

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; min-width: 860px; border-collapse: collapse; background: #fff; }
caption { text-align: left; padding: 0.9rem; font-weight: 700; }
th, td { text-align: left; vertical-align: top; padding: 0.8rem; border-bottom: 1px solid var(--line); }
th { background: #f1f5f9; }

.cards { display: grid; gap: 1rem; }
.card .body { padding: 1rem; }
.meta { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; margin: 0 0 0.8rem; padding: 0; }
.meta li {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.merchant-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.btn-merchant {
  min-height: 40px;
  padding: 0.55rem 0.8rem;
  font-size: 0.92rem;
}

.grid-two { display: grid; gap: 1rem; }
details { padding: 0.1rem 1rem; }
summary { cursor: pointer; font-weight: 700; padding: 0.9rem 0; }
.faq-list details + details { margin-top: 0.75rem; }

.quiz-result { margin-top: 1rem; padding: 0.8rem; border-radius: 12px; border: 1px dashed var(--accent-info); }
.hidden { display: none !important; }

.footer {
  background: var(--bg);
  color: #cbd5e1;
  padding: 2rem 0;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 860px) {
  .nav { display: flex; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; align-items: end; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-two { grid-template-columns: 1.15fr 0.85fr; }
}
@media (min-width: 1120px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .reveal { transition: none; }
  .reveal { opacity: 1; transform: none; }
}
