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

:root {
  --navy: #101528;
  --slate: #1f2641;
  --orange: #fcba04;
  --red: #e55934;
  --green: #22c55e;
  --white: #ffffff;
  --gray-light: #f0f0f0;
  --gray-dark: #636363;
  --font-heading: 'Quicksand', sans-serif;
  --font-body: 'Poppins', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== HERO (white) ===== */
.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  padding: 2rem;
}

.hero-content {
  text-align: center;
  max-width: 600px;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-icon {
  height: 64px;
  width: 64px;
  object-fit: contain;
}

.hero-logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy);
  letter-spacing: 3px;
}

.hero-logo-net {
  color: var(--orange);
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--navy);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  color: var(--gray-dark);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero-proof {
  margin-top: 1.5rem;
  color: #9ca3af;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: var(--orange);
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(252, 186, 4, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== CHECKLIST ===== */
.section-checklist {
  padding: 4rem 2rem;
  background: var(--gray-light);
  display: flex;
  justify-content: center;
}

.checklist-container {
  max-width: 680px;
  width: 100%;
}

.checklist-container h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.checklist-subtitle {
  text-align: center;
  color: var(--gray-dark);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Question row */
.checklist-item {
  background: var(--white);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.checklist-question {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.checklist-glossary {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--orange);
  font-size: 0.75rem;
  border-bottom: 1px dashed var(--orange);
  cursor: pointer;
  user-select: none;
  margin-bottom: 0.75rem;
}

.checklist-glossary::before {
  content: '?';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(252, 186, 4, 0.12);
  color: var(--orange);
  font-size: 0.65rem;
  font-weight: 700;
}

.checklist-glossary-body {
  display: none;
  padding: 0.75rem 1rem;
  background: rgba(252, 186, 4, 0.04);
  border-left: 3px solid var(--orange);
  border-radius: 0 6px 6px 0;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  color: var(--gray-dark);
  line-height: 1.5;
}

.checklist-glossary-body.open {
  display: block;
}

/* Three-option buttons in a row */
.checklist-options {
  display: flex;
  gap: 8px;
}

.checklist-opt {
  flex: 1;
  padding: 0.6rem 0.5rem;
  border: 2px solid var(--gray-light);
  border-radius: 8px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--navy);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  line-height: 1.3;
}

.checklist-opt:hover {
  border-color: var(--orange);
  background: rgba(252, 186, 4, 0.03);
}

.checklist-opt.selected {
  border-color: var(--orange);
  background: rgba(252, 186, 4, 0.08);
  font-weight: 600;
}

.checklist-opt.opt-no.selected {
  border-color: var(--red);
  background: rgba(229, 89, 52, 0.06);
}

.checklist-opt.opt-yes.selected {
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.06);
}

/* Contextual insights */
.checklist-insight {
  margin-top: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--gray-dark);
  background: var(--gray-light);
  border-left: 3px solid var(--orange);
  animation: fadeIn 0.3s ease;
}

.checklist-insight.insight-warning {
  border-left-color: var(--red);
  background: #fef2f0;
  color: #7c2d12;
}

.checklist-insight.insight-positive {
  border-left-color: var(--green);
  background: #f0fdf4;
  color: #166534;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Results button */
.btn-results {
  display: block;
  width: 100%;
  margin-top: 1.5rem;
  padding: 1.1rem;
  font-size: 1.05rem;
}

/* ===== RESULTS ===== */
.section-results {
  padding: 4rem 2rem;
  background: var(--white);
  display: flex;
  justify-content: center;
}

.results-container {
  max-width: 640px;
  width: 100%;
  text-align: center;
}

.results-container h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

/* Score gauge */
.score-gauge {
  margin-bottom: 1rem;
}

.score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 5px solid var(--orange);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  background: rgba(252, 186, 4, 0.04);
}

.score-circle.level-critical {
  border-color: var(--red);
  background: rgba(229, 89, 52, 0.04);
}

.score-circle.level-good {
  border-color: var(--green);
  background: rgba(34, 197, 94, 0.04);
}

.score-circle.level-partial {
  border-color: var(--orange);
  background: rgba(252, 186, 4, 0.04);
}

.score-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1;
  color: var(--navy);
}

.score-max {
  font-size: 1rem;
  color: var(--gray-dark);
}

.score-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.score-label.level-critical { color: var(--red); }
.score-label.level-partial { color: var(--orange); }
.score-label.level-good { color: var(--green); }

.score-verdict {
  max-width: 480px;
  margin: 0 auto 2.5rem;
  font-size: 0.95rem;
  color: var(--gray-dark);
  line-height: 1.6;
}

/* Area bars */
.areas {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.area-item {
  padding: 1rem 1.25rem;
  background: var(--gray-light);
  border-radius: 10px;
}

.area-item.area-critical {
  border-left: 4px solid var(--red);
  background: #fef2f0;
}

.area-item.area-critical .area-name::before {
  content: '⚠ ';
  color: var(--red);
}

.area-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.area-name {
  font-weight: 600;
  color: var(--navy);
}

.area-score {
  color: var(--gray-dark);
}

.area-bar {
  height: 6px;
  background: var(--white);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.area-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.area-recommendation {
  font-size: 0.85rem;
  color: var(--gray-dark);
  line-height: 1.5;
}

/* Action plan */
.action-plan {
  margin-top: 2.5rem;
  text-align: left;
}

.action-plan h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 1rem;
  text-align: center;
}

.action-step {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  margin-bottom: 8px;
  background: var(--gray-light);
  border-radius: 10px;
  align-items: flex-start;
}

.action-step-cta {
  background: rgba(252, 186, 4, 0.1);
  border: 2px solid var(--orange);
}

.action-step-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-step-cta .action-step-number {
  background: var(--orange);
  color: var(--navy);
}

.action-step-text {
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.action-step-effort {
  font-size: 0.75rem;
  color: var(--gray-dark);
}

/* NIS2 glossary in results */
.glossary-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--orange);
  font-size: 0.8rem;
  border-bottom: 1px dashed var(--orange);
  cursor: pointer;
  user-select: none;
}

.glossary-toggle::before {
  content: '?';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(252, 186, 4, 0.12);
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 700;
}

.glossary-body {
  display: none;
  padding: 1rem;
  background: rgba(252, 186, 4, 0.05);
  border-left: 3px solid var(--orange);
  border-radius: 0 6px 6px 0;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--gray-dark);
  line-height: 1.6;
  text-align: left;
}

.glossary-body.open {
  display: block;
}

/* Personalized CTA */
.cta-personal {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: rgba(252, 186, 4, 0.12);
  border-radius: 8px;
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* ===== CTA ===== */
.section-cta {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--slate) 100%);
  display: flex;
  justify-content: center;
}

.cta-container {
  max-width: 540px;
  width: 100%;
  text-align: center;
}

.cta-container h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-text {
  color: #a0a8c0;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.cta-social-proof {
  color: #6b7394;
  font-size: 0.8rem;
  margin-bottom: 2rem;
  letter-spacing: 0.2px;
}

/* Form — inline email + button */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-inline {
  display: flex;
  gap: 8px;
}

.form-inline input {
  flex: 1;
  padding: 0.9rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-inline input::placeholder {
  color: #8891a8;
}

.form-inline input:focus {
  border-color: var(--orange);
}

.btn-submit {
  white-space: nowrap;
  padding: 0.9rem 1.5rem;
  font-size: 0.9rem;
}

.gdpr-note {
  font-size: 0.75rem;
  color: #8891a8;
  margin-top: 0.5rem;
}

/* Form states */
.form-success p {
  color: var(--green);
  font-weight: 600;
  padding: 1rem;
}

.form-success-next {
  font-size: 0.85rem;
  color: #8891a8 !important;
  font-weight: 400 !important;
}

.form-success-next a {
  color: var(--orange);
  text-decoration: underline;
}

.form-error p {
  color: var(--red);
  font-weight: 600;
  padding: 1rem;
}

/* ===== FLOATING CTA ===== */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 2rem;
  background: linear-gradient(0deg, rgba(16, 21, 40, 0.95) 0%, rgba(16, 21, 40, 0.85) 100%);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  z-index: 100;
  animation: slideUp 0.4s ease;
}

.floating-cta.hidden {
  display: none !important;
}

.floating-cta-btn {
  text-decoration: none;
  text-align: center;
  width: 100%;
  max-width: 400px;
  padding: 0.9rem 2rem;
  font-size: 0.95rem;
  box-shadow: 0 -2px 20px rgba(252, 186, 4, 0.25);
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .hero-content h1 {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .checklist-container h2 {
    font-size: 1.3rem;
  }

  .checklist-options {
    flex-direction: column;
  }

  .checklist-opt {
    padding: 0.75rem 1rem;
    text-align: left;
  }

  .results-container h2,
  .cta-container h2 {
    font-size: 1.35rem;
  }

  .score-circle {
    width: 110px;
    height: 110px;
  }

  .score-number {
    font-size: 2.2rem;
  }

  .form-inline {
    flex-direction: column;
  }

  .btn-submit {
    width: 100%;
  }
}
