/* ===== Pentest Prep Checklist Styles ===== */
:root {
  --cat-accent-default: #1e4080;
  --cat-bg-default: #1e4080;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ===== Accessibility: Focus Indicators ===== */
*:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ===== Accessibility: Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Skip Link ===== */
.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 10000;
  padding: 12px 20px;
  background: var(--primary-blue);
  color: white;
  font-weight: 600;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 12px 0;
  background: #f8fafc;
  border-bottom: 1px solid var(--gray-100);
}

.breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li:not(:last-child)::after {
  content: "/";
  color: var(--gray-400);
}

.breadcrumb-list a {
  color: var(--primary-blue);
  text-decoration: none;
}

.breadcrumb-list a:hover {
  text-decoration: underline;
}

.breadcrumb-list .current {
  color: var(--gray-500);
}

/* ===== Hero ===== */
.checklist-hero {
  padding: 100px 0 40px;
  background: var(--primary-blue-dark);
  color: white;
  text-align: center;
}

.checklist-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: white;
}

.checklist-hero p {
  font-size: 1.2rem;
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
  color: #ffffff;
}

/* Trust Stats */
.trust-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.trust-stat {
  text-align: center;
}

.trust-stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  display: block;
}

.trust-stat-label {
  font-size: 0.8rem;
  opacity: 0.85;
  font-weight: 500;
}

/* Overall Progress */
.overall-progress {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.15);
  padding: 16px 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-md);
}

.overall-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.overall-progress-label {
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.9;
}

.overall-progress-count {
  font-size: 0.85rem;
  font-weight: 700;
}

.overall-progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  border-radius: 4px;
}

.overall-progress-fill {
  height: 100%;
  background: white;
  transition: width 0.4s ease;
  border-radius: 4px;
}

/* ===== Checklist Body ===== */
.checklist-body {
  padding: 40px 0;
  background: var(--gray-100, #f3f4f6);
}

.checklist-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

/* Category Card */
.category-card {
  background: white;
  border: 1px solid var(--gray-200);
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.category-card:hover {
  box-shadow: var(--shadow-md);
}

.category-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  user-select: none;
  background: var(--cat-bg, #1e4080);
  border: none;
  width: 100%;
  text-align: left;
  min-height: 44px;
  border-radius: 0;
}

.category-card-header:hover {
  background: var(--primary-blue-light, #2e5090);
}

.category-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.category-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cat-accent);
  background: white;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cat-accent);
  border-radius: var(--radius-sm);
}

.category-icon {
  margin-right: 6px;
}

.category-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
}

.category-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.category-progress-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  background: white;
  color: var(--cat-accent);
  border: 1px solid var(--cat-accent);
  white-space: nowrap;
  border-radius: 20px;
}

.category-progress-pill.complete {
  background: #16a34a;
  color: white;
  border-color: #16a34a;
}

.category-chevron {
  width: 20px;
  height: 20px;
  color: white;
  transition: transform 0.2s ease;
}

.category-card.open .category-chevron {
  transform: rotate(180deg);
}

/* Category Content */
.category-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.category-card.open .category-content {
  max-height: 3000px;
}

.controls-list {
  padding: 0 24px 24px;
}

.control-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}

.control-item:last-child {
  border-bottom: none;
}

.control-checkbox {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 2px solid var(--gray-300);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  margin-top: 0;
  border-radius: var(--radius-sm);
}

.control-checkbox:hover {
  border-color: var(--cat-accent);
  background: rgba(30, 58, 95, 0.05);
}

.control-checkbox.checked {
  background: var(--cat-accent);
  border-color: var(--cat-accent);
}

.control-checkbox.checked svg {
  display: block;
}

.control-checkbox svg {
  display: none;
  width: 18px;
  height: 18px;
  color: white;
}

.control-number {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  min-width: 32px;
  margin-top: 12px;
}

.control-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--gray-700);
  margin-top: 10px;
}

.control-item.completed .control-text {
  color: var(--gray-500);
  text-decoration: line-through;
}

/* Category Progress Bar (within card) */
.category-progress-bar {
  margin: 0 24px 20px;
  height: 4px;
  background: var(--gray-100);
  overflow: hidden;
  border-radius: 2px;
}

.category-progress-fill {
  height: 100%;
  background: var(--cat-accent);
  transition: width 0.3s ease;
  border-radius: 2px;
}

/* ===== Progress Width Utilities (CSP-compliant) ===== */
.progress-w-0 {
  width: 0%;
}
.progress-w-1 {
  width: 1%;
}
.progress-w-2 {
  width: 2%;
}
.progress-w-3 {
  width: 3%;
}
.progress-w-4 {
  width: 4%;
}
.progress-w-5 {
  width: 5%;
}
.progress-w-6 {
  width: 6%;
}
.progress-w-7 {
  width: 7%;
}
.progress-w-8 {
  width: 8%;
}
.progress-w-9 {
  width: 9%;
}
.progress-w-10 {
  width: 10%;
}
.progress-w-11 {
  width: 11%;
}
.progress-w-12 {
  width: 12%;
}
.progress-w-13 {
  width: 13%;
}
.progress-w-14 {
  width: 14%;
}
.progress-w-15 {
  width: 15%;
}
.progress-w-16 {
  width: 16%;
}
.progress-w-17 {
  width: 17%;
}
.progress-w-18 {
  width: 18%;
}
.progress-w-19 {
  width: 19%;
}
.progress-w-20 {
  width: 20%;
}
.progress-w-21 {
  width: 21%;
}
.progress-w-22 {
  width: 22%;
}
.progress-w-23 {
  width: 23%;
}
.progress-w-24 {
  width: 24%;
}
.progress-w-25 {
  width: 25%;
}
.progress-w-26 {
  width: 26%;
}
.progress-w-27 {
  width: 27%;
}
.progress-w-28 {
  width: 28%;
}
.progress-w-29 {
  width: 29%;
}
.progress-w-30 {
  width: 30%;
}
.progress-w-31 {
  width: 31%;
}
.progress-w-32 {
  width: 32%;
}
.progress-w-33 {
  width: 33%;
}
.progress-w-34 {
  width: 34%;
}
.progress-w-35 {
  width: 35%;
}
.progress-w-36 {
  width: 36%;
}
.progress-w-37 {
  width: 37%;
}
.progress-w-38 {
  width: 38%;
}
.progress-w-39 {
  width: 39%;
}
.progress-w-40 {
  width: 40%;
}
.progress-w-41 {
  width: 41%;
}
.progress-w-42 {
  width: 42%;
}
.progress-w-43 {
  width: 43%;
}
.progress-w-44 {
  width: 44%;
}
.progress-w-45 {
  width: 45%;
}
.progress-w-46 {
  width: 46%;
}
.progress-w-47 {
  width: 47%;
}
.progress-w-48 {
  width: 48%;
}
.progress-w-49 {
  width: 49%;
}
.progress-w-50 {
  width: 50%;
}
.progress-w-51 {
  width: 51%;
}
.progress-w-52 {
  width: 52%;
}
.progress-w-53 {
  width: 53%;
}
.progress-w-54 {
  width: 54%;
}
.progress-w-55 {
  width: 55%;
}
.progress-w-56 {
  width: 56%;
}
.progress-w-57 {
  width: 57%;
}
.progress-w-58 {
  width: 58%;
}
.progress-w-59 {
  width: 59%;
}
.progress-w-60 {
  width: 60%;
}
.progress-w-61 {
  width: 61%;
}
.progress-w-62 {
  width: 62%;
}
.progress-w-63 {
  width: 63%;
}
.progress-w-64 {
  width: 64%;
}
.progress-w-65 {
  width: 65%;
}
.progress-w-66 {
  width: 66%;
}
.progress-w-67 {
  width: 67%;
}
.progress-w-68 {
  width: 68%;
}
.progress-w-69 {
  width: 69%;
}
.progress-w-70 {
  width: 70%;
}
.progress-w-71 {
  width: 71%;
}
.progress-w-72 {
  width: 72%;
}
.progress-w-73 {
  width: 73%;
}
.progress-w-74 {
  width: 74%;
}
.progress-w-75 {
  width: 75%;
}
.progress-w-76 {
  width: 76%;
}
.progress-w-77 {
  width: 77%;
}
.progress-w-78 {
  width: 78%;
}
.progress-w-79 {
  width: 79%;
}
.progress-w-80 {
  width: 80%;
}
.progress-w-81 {
  width: 81%;
}
.progress-w-82 {
  width: 82%;
}
.progress-w-83 {
  width: 83%;
}
.progress-w-84 {
  width: 84%;
}
.progress-w-85 {
  width: 85%;
}
.progress-w-86 {
  width: 86%;
}
.progress-w-87 {
  width: 87%;
}
.progress-w-88 {
  width: 88%;
}
.progress-w-89 {
  width: 89%;
}
.progress-w-90 {
  width: 90%;
}
.progress-w-91 {
  width: 91%;
}
.progress-w-92 {
  width: 92%;
}
.progress-w-93 {
  width: 93%;
}
.progress-w-94 {
  width: 94%;
}
.progress-w-95 {
  width: 95%;
}
.progress-w-96 {
  width: 96%;
}
.progress-w-97 {
  width: 97%;
}
.progress-w-98 {
  width: 98%;
}
.progress-w-99 {
  width: 99%;
}
.progress-w-100 {
  width: 100%;
}

/* ===== Inline CTA ===== */
.inline-cta {
  max-width: 800px;
  margin: 0 auto 16px;
  padding: 20px 24px;
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.inline-cta-text {
  font-size: 0.9rem;
  color: var(--gray-700);
  font-weight: 500;
}

.inline-cta-text strong {
  color: var(--primary-blue);
}

.inline-cta .btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  background: var(--primary-blue);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.inline-cta .btn-sm:hover {
  background: var(--primary-blue-dark);
}

/* ===== Dynamic CTA ===== */
.dynamic-cta {
  text-align: center;
  padding: 48px 24px;
  background: var(--gray-50, #f9fafb);
  border-top: 1px solid var(--gray-200);
}

.dynamic-cta h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.dynamic-cta p {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.dynamic-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: var(--primary-blue);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
  border-radius: var(--radius-sm);
}

.dynamic-cta .btn:hover {
  background: var(--primary-blue-dark);
}

/* ===== FAQ Section ===== */
.faq-section {
  padding: 56px 0;
  background: var(--primary-blue-light);
}

.faq-section h2 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}

.faq-section .faq-subtitle {
  text-align: center;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 36px;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: white;
  border: 1px solid var(--gray-200);
  border-left: 3px solid var(--primary-blue-dark);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-blue-dark);
  padding: 18px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gray-400);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item summary:hover {
  color: var(--primary-blue);
}

.faq-item .faq-answer {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray-700);
  margin: 0;
  padding: 0 24px 18px;
}

/* ===== Save Progress Modal ===== */
.save-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.save-modal-overlay.visible {
  display: flex;
}

.save-modal {
  background: white;
  padding: 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  position: relative;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.save-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400);
  font-size: 1.5rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.save-modal-close:hover {
  background: var(--gray-100);
}

.save-modal h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.save-modal p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.save-modal-progress {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 0.25rem;
}

.save-modal-sublabel {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 1.5rem;
}

.save-modal input[type="email"] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  font-size: 1rem;
  font-family: var(--font-sans);
  margin-bottom: 12px;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
}

.save-modal input[type="email"]:focus {
  border-color: var(--primary-blue);
  outline: none;
}

.save-modal button[type="submit"] {
  width: 100%;
  padding: 12px;
  background: var(--primary-blue);
  color: white;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.15s ease;
  border-radius: var(--radius-sm);
}

.save-modal button[type="submit"]:hover {
  background: var(--primary-blue-dark);
}

.save-modal .skip-link-text {
  display: block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--gray-400);
  cursor: pointer;
  text-decoration: underline;
  background: none;
  border: none;
  font-family: var(--font-sans);
}

/* PDF Download link */
.pdf-download-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--gray-100);
  font-size: 0.9rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-200);
}

.pdf-download-bar a {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: none;
}

.pdf-download-bar a:hover {
  text-decoration: underline;
}

/* ===== Screen Reader Only ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Responsive: Mobile (480px) ===== */
@media (max-width: 480px) {
  .checklist-hero h1 {
    font-size: 1.5rem;
  }

  .checklist-hero p {
    font-size: 0.9rem;
  }

  .trust-stats {
    gap: 16px;
  }

  .trust-stat-number {
    font-size: 1.25rem;
  }

  .category-name {
    font-size: 0.95rem;
  }

  .inline-cta {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== Responsive: Tablet (768px) ===== */
@media (max-width: 768px) {
  .checklist-hero h1 {
    font-size: 1.75rem;
  }

  .checklist-hero p {
    font-size: 1rem;
  }

  .category-card-header {
    padding: 16px;
    flex-wrap: wrap;
    gap: 12px;
  }

  .category-header-right {
    width: 100%;
    justify-content: space-between;
  }

  .controls-list {
    padding: 0 16px 16px;
  }

  .control-item {
    padding: 12px 0;
  }

  .overall-progress {
    padding: 12px 16px;
  }

  .trust-stats {
    gap: 20px;
  }

  .faq-list {
    padding: 0 16px;
  }
}

/* ===== Responsive: Large Desktop (1200px+) ===== */
@media (min-width: 1200px) {
  .checklist-grid {
    max-width: 900px;
  }

  .overall-progress {
    max-width: 900px;
  }

  .checklist-hero h1 {
    font-size: 3rem;
  }

  .inline-cta {
    max-width: 900px;
  }
}

/* Force footer links to always be visible */
.footer-links ul {
  max-height: none !important;
  overflow: visible !important;
}
