/* =====================
   Reset & Base
   ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --blue-50:   #eff6ff;
  --blue-100:  #dbeafe;
  --blue-400:  #60a5fa;
  --blue-600:  #2563eb;
  --blue-700:  #1d4ed8;
  --shadow-blue: 0 10px 40px -8px rgba(37,99,235,.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  background: var(--slate-50);
  color: var(--slate-900);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* =====================
   Header
   ===================== */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
}

.logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--blue-600);
  border-radius: .5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 14px -2px rgba(37,99,235,.4);
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--slate-800);
}

.logo-text span { color: var(--blue-600); }

@media (max-width: 640px) { .logo-text { display: none; } }

.btn-call-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--blue-600);
  color: #fff;
  text-decoration: none;
  padding: .625rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, box-shadow .2s, transform .1s;
  box-shadow: 0 4px 12px -2px rgba(37,99,235,.3);
  white-space: nowrap;
}

.btn-call-header:hover { background: var(--blue-700); box-shadow: 0 6px 18px -2px rgba(37,99,235,.4); }
.btn-call-header:active { transform: scale(.96); }

/* =====================
   Hero
   ===================== */
.hero {
  padding: 4rem 1rem 3rem;
}

.hero-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--slate-900);
  margin-bottom: 1.5rem;
  animation: fadeUp .5s ease both;
}

.hero h1 span { color: var(--blue-600); }

.hero-sub {
  font-size: 1.2rem;
  color: var(--slate-600);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  animation: fadeUp .5s .1s ease both;
}

/* =====================
   Quiz Card
   ===================== */
.quiz-card {
  background: #fff;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px -12px rgba(0,0,0,.12);
  border: 1px solid var(--slate-100);
  padding: 3rem;
  max-width: 40rem;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

@media (max-width: 640px) { .quiz-card { padding: 2rem 1.5rem; } }

.quiz-panel {
  display: none;
  animation: fadeIn .3s ease;
}

.quiz-panel.active { display: block; }

.quiz-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue-600);
  text-transform: uppercase;
  letter-spacing: .1em;
  display: block;
  margin-bottom: .5rem;
}

.quiz-question {
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 2rem;
}

.quiz-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) { .quiz-buttons { grid-template-columns: 1fr; } }

.quiz-btn {
  padding: 1rem 2rem;
  background: var(--slate-50);
  border: 2px solid var(--slate-200);
  border-radius: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-700);
  cursor: pointer;
  transition: background .2s, border-color .2s, color .2s, transform .1s;
}

.quiz-btn:hover { background: var(--blue-50); border-color: var(--blue-400); color: var(--blue-700); }
.quiz-btn:active { transform: scale(.96); }
.quiz-btn.no:hover { background: var(--slate-100); border-color: var(--slate-300); color: var(--slate-700); }

/* Success panel */
.result-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.result-icon.success { background: var(--blue-100); color: var(--blue-600); }
.result-icon.dq { background: var(--slate-100); color: var(--slate-400); }

.result-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1rem;
}

.result-body {
  font-size: 1.1rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.btn-call-cta {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  background: var(--blue-600);
  color: #fff;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  transition: background .2s, box-shadow .2s, transform .1s;
  box-shadow: var(--shadow-blue);
}

.btn-call-cta:hover { background: var(--blue-700); box-shadow: 0 14px 40px -6px rgba(37,99,235,.45); }
.btn-call-cta:active { transform: scale(.96); }

.result-fine {
  margin-top: 1rem;
  font-size: .75rem;
  color: var(--slate-400);
  font-style: italic;
}

.result-tty {
  margin-top: .5rem;
  font-size: .875rem;
  color: var(--slate-500);
}

.btn-restart {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--blue-600);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: underline;
  margin-top: 1rem;
}

/* =====================
   Info Section
   ===================== */
.info-section {
  padding: 5rem 1rem;
  background: #fff;
}

.info-inner {
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}

.info-content { flex: 1; min-width: 280px; }

.info-content h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1.25rem;
}

.info-content p {
  font-size: 1.1rem;
  color: var(--slate-600);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 480px) { .benefits-grid { grid-template-columns: 1fr; } }

.benefit-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--slate-700);
  font-weight: 500;
  font-size: .95rem;
}

.benefit-dot {
  width: 1.25rem;
  height: 1.25rem;
  background: var(--blue-100);
  color: var(--blue-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-image { flex: 1; min-width: 280px; }

.info-image img {
  width: 100%;
  border-radius: 1.5rem;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
}

/* =====================
   FAQ Section
   ===================== */
.faq-section {
  padding: 5rem 1rem;
  background: var(--slate-50);
}

.faq-inner {
  max-width: 48rem;
  margin: 0 auto;
}

.faq-inner h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--slate-900);
  text-align: center;
  margin-bottom: 3rem;
}

.faq-item {
  border-bottom: 1px solid var(--slate-200);
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.25rem 0;
  gap: 1rem;
}

.faq-trigger span {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--slate-800);
  line-height: 1.4;
}

.faq-icon { color: var(--slate-400); flex-shrink: 0; transition: transform .3s; }
.faq-item.open .faq-icon { transform: rotate(180deg); color: var(--blue-600); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s ease, padding .35s ease;
}

.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer p {
  padding-bottom: 1.25rem;
  color: var(--slate-600);
  line-height: 1.7;
  font-size: .97rem;
}

/* =====================
   Footer
   ===================== */
footer {
  background: var(--slate-900);
  color: var(--slate-400);
  padding: 4rem 1rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #fff;
  margin-bottom: 1rem;
}

.footer-logo span { font-size: 1.1rem; font-weight: 700; }

.footer-desc { font-size: .875rem; line-height: 1.6; }

.footer-col h4 {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .75rem;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li + li { margin-top: .5rem; }

.footer-col button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-400);
  font-size: .875rem;
  transition: color .2s;
}

.footer-col button:hover { color: var(--blue-400); }

.footer-phone a {
  display: block;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  margin-top: .25rem;
  transition: color .2s;
}

.footer-phone a:hover { color: var(--blue-400); }
.footer-phone p { font-size: .875rem; }
.footer-tty { font-size: .75rem; margin-top: .5rem; }

.compliance-badge {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  background: var(--slate-800);
  border: 1px solid var(--slate-700);
  padding: .75rem;
  border-radius: .5rem;
  color: var(--slate-400);
}

.compliance-badge svg { color: var(--blue-400); flex-shrink: 0; }

.footer-divider {
  border-top: 1px solid var(--slate-800);
  padding-top: 2rem;
}

.disclaimers {
  font-size: .7rem;
  line-height: 1.65;
  max-width: 60rem;
  margin-bottom: 1.5rem;
}

.disclaimers p + p { margin-top: .75rem; }
.disclaimers .required { font-weight: 700; color: var(--slate-300); font-style: italic; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .75rem;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-badges span {
  display: flex;
  align-items: center;
  gap: .25rem;
}

/* =====================
   Modals
   ===================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

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

.modal-box {
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 25px 60px -12px rgba(0,0,0,.35);
  width: 100%;
  max-width: 42rem;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: scaleIn .2s ease;
}

.modal-header {
  padding: 1.5rem 1.5rem;
  border-bottom: 1px solid var(--slate-100);
  background: var(--slate-50);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--slate-900);
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--slate-500);
  padding: .5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, color .2s;
}

.modal-close:hover { background: var(--slate-200); color: var(--slate-900); }

.modal-body {
  padding: 2rem;
  overflow-y: auto;
  color: var(--slate-600);
  line-height: 1.7;
  font-size: .97rem;
}

.modal-body p + p { margin-top: .75rem; }

.modal-body h4 {
  font-weight: 700;
  color: var(--slate-900);
  margin-top: 1rem;
  margin-bottom: .25rem;
}

/* =====================
   Partner Logo
   ===================== */
.partner-logo {
  max-height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}

.footer-partner-logo {
  max-height: 36px;
  max-width: 160px;
  filter: brightness(0) invert(1); /* white on dark footer */
}

/* =====================
   Animations
   ===================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}
