:root {
  --bg: #0c0a0d;
  --surface: #16141b;
  --surface-2: #1f1b24;
  --border: #403227;
  --border-bright: #926020;
  --amber: #f59e0b;
  --amber-bright: #fbbf24;
  --amber-soft: rgba(245, 158, 11, 0.14);
  --green: #10b981;
  --green-soft: rgba(16, 185, 129, 0.15);
  --red: #ef4444;
  --red-soft: rgba(239, 68, 68, 0.16);
  --ink: #f8fafc;
  --ink-2: #d6d3d1;
  --muted: #a8a29e;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(90% 42% at 50% 0%, rgba(245, 158, 11, 0.18) 0%, transparent 62%),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}

.mono {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 80px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid var(--border-bright);
}

.brand-name {
  font-size: 19px;
  font-weight: 900;
}

.brand-sub {
  font-size: 11px;
  color: var(--amber-bright);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.lang-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.lang-btn {
  cursor: pointer;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-bright);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 800;
}

.lang-btn.active {
  background: var(--amber);
  color: #110c04;
  border-color: var(--amber-bright);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.36);
}

.hero {
  border-color: var(--border-bright);
}

.eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--amber-soft);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: var(--amber-bright);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 4.8vw, 42px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.lead {
  color: var(--ink-2);
  font-size: 16px;
  margin: 0 0 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 20px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
}

.btn-amber {
  background: linear-gradient(135deg, #d97706, #f59e0b);
  color: #120c03;
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.28);
}

.btn-green {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
}

.btn-dark {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--border-bright);
}

.progress-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--amber-bright);
  margin-bottom: 10px;
}

.progress-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #d97706, #fbbf24);
  transition: width 0.25s ease;
}

.trooper-box {
  background: #100e14;
  border-left: 4px solid var(--amber);
  border-radius: 0 14px 14px 0;
  padding: 15px 16px;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
}

.vms-board {
  background: #07090b;
  border: 3px solid var(--amber);
  border-radius: 14px;
  padding: 20px 14px;
  text-align: center;
  font-family: ui-monospace, Menlo, monospace;
  color: #ffb703;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.72);
  font-weight: 900;
  font-size: 20px;
  line-height: 1.35;
  margin-bottom: 16px;
}

.bol-grid, .eld-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.mini-stat {
  background: #110f16;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 11px 12px;
}

.mini-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
}

.mini-stat-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin-top: 2px;
}

.gauge-panel {
  background: #0d0c11;
  border: 1px solid var(--border-bright);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.options-list {
  display: grid;
  gap: 11px;
  margin-top: 14px;
}

.option-btn {
  width: 100%;
  text-align: left;
  min-height: 58px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid var(--border-bright);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.45;
}

.option-btn:hover {
  border-color: var(--amber-bright);
}

.option-btn.selected-correct {
  background: var(--green-soft);
  border-color: var(--green);
}

.option-btn.selected-wrong {
  background: var(--red-soft);
  border-color: var(--red);
}

.coach-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fef3c7;
  font-size: 14.5px;
}

.verdict-banner {
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 18px;
  border: 2px solid transparent;
}

.verdict-pass {
  background: var(--green-soft);
  border-color: var(--green);
}

.verdict-border {
  background: var(--amber-soft);
  border-color: var(--amber);
}

.verdict-fail {
  background: var(--red-soft);
  border-color: var(--red);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.price-card {
  background: #121017;
  border: 1.5px solid var(--border-bright);
  border-radius: 18px;
  padding: 20px;
}

.price-val {
  font-size: 32px;
  font-weight: 900;
  color: var(--amber-bright);
  margin: 8px 0 4px;
}

input, select {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border-radius: 11px;
  border: 1px solid var(--border-bright);
  background: #0c0a0f;
  color: var(--ink);
  font-size: 15px;
  margin-bottom: 10px;
}

.invoice-sheet {
  background: #ffffff;
  color: #111827;
  border-radius: 14px;
  padding: 22px;
  margin-top: 16px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 8, 0.84);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 90;
}

.modal-backdrop.open {
  display: flex;
}

.modal {
  max-width: 560px;
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--amber);
  border-radius: 20px;
  padding: 22px;
}

.hidden {
  display: none !important;
}

.seo-footer-links {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

.seo-footer-links a {
  color: var(--amber-bright);
  text-decoration: none;
  margin-right: 12px;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.faq-item {
  background: #121017;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 16px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--ink);
  font-size: 14.5px;
}

.faq-item p {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--ink-2);
}

.lang-seo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.lang-seo-pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border-bright);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.lang-seo-pill[aria-current="page"] {
  background: var(--amber);
  color: #111827;
  border-color: var(--amber-bright);
}

@media print {
  body {
    background: #ffffff !important;
    color: #111827 !important;
  }
  .no-print, .topbar, .lang-bar, #heroSection, #quizSection, #resultsSection, #pricingCards, #seoInfoCard, footer {
    display: none !important;
  }
  #invoiceCard, #invoiceSheet {
    display: block !important;
    border: 1px solid #d1d5db !important;
    box-shadow: none !important;
  }
}
