/* ===== Safe Page (index.html) Styles ===== */
.safe-page { min-height: 100vh; background: var(--bg); }

/* Hero */
.safe-hero { position: relative; min-height: 70vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.safe-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.safe-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.55); }
.safe-hero-content { position: relative; z-index: 1; text-align: center; padding: 1.5rem; max-width: 48rem; }
.safe-hero-content h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.15; margin-bottom: 1rem; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.safe-hero-content p { font-size: 1.125rem; color: rgba(255,255,255,0.8); max-width: 40rem; margin: 0 auto 1.5rem; }
.safe-hero-caption { font-size: 0.75rem !important; color: rgba(255,255,255,0.5) !important; }

/* Sections */
.safe-section { padding: 4rem 1.5rem; }
.safe-section--card { background: var(--secondary); }
.safe-container { max-width: 48rem; margin: 0 auto; }
.safe-container h2 { font-size: 1.5rem; font-weight: 600; margin-bottom: 1.5rem; }
.safe-text { color: var(--muted-fg); line-height: 1.7; margin-bottom: 1.5rem; }

/* Bullet list */
.safe-bullet-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; color: var(--muted-fg); }
.safe-bullet-list li { display: flex; align-items: flex-start; gap: 0.75rem; }
.bullet-dot { margin-top: 0.45rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--primary); flex-shrink: 0; display: inline-block; }

/* Cards grid */
.safe-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 2.5rem; }
.safe-card { display: flex; flex-direction: column; gap: 0.75rem; }
.safe-card-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; background: var(--accent); display: flex; align-items: center; justify-content: center; }
.safe-card-icon svg { width: 1.25rem; height: 1.25rem; color: var(--accent-fg); }
.safe-card h3 { font-size: 1.125rem; font-weight: 500; }
.safe-card p { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.6; }

/* Check list */
.safe-check-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.safe-check-list li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.875rem; color: var(--muted-fg); line-height: 1.6; }
.check-circle { width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 0.625rem; font-weight: 700; margin-top: 0.125rem; }

/* Text block */
.safe-text-block { display: flex; flex-direction: column; gap: 1rem; }
.safe-text-block p { font-size: 0.875rem; color: var(--muted-fg); line-height: 1.7; }

/* Disclaimer */
.safe-disclaimer { padding: 2.5rem 1.5rem; border-top: 1px solid var(--border); }
.safe-disclaimer p { font-size: 0.75rem; color: var(--muted-fg); line-height: 1.6; text-align: center; max-width: 48rem; margin: 0 auto; }

/* Institutional Footer */
.safe-inst-footer { padding: 3rem 1.5rem; background: var(--secondary); border-top: 1px solid var(--border); }
.safe-footer-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.safe-footer-links a { font-size: 0.75rem; color: var(--muted-fg); transition: color 0.2s; }
.safe-footer-links a:hover { color: var(--fg); }

/* Quiz Popup */
.quiz-box { background: #fff; border-radius: 1rem; box-shadow: 0 25px 50px rgba(0,0,0,0.2); width: 90vw; max-width: 28rem; padding: 1.5rem; position: relative; }
.quiz-top-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.5rem; }
.quiz-progress-bar { flex: 1; height: 0.375rem; background: #e5e7eb; border-radius: 9999px; overflow: hidden; }
.quiz-progress-fill { height: 100%; background: #3b82f6; border-radius: 9999px; transition: width 0.5s; }
.quiz-close { width: 1.75rem; height: 1.75rem; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #9ca3af; font-size: 1.125rem; transition: all 0.2s; }
.quiz-close:hover { color: #4b5563; background: #f3f4f6; }
.quiz-question { font-size: 1.125rem; font-weight: 700; color: #111827; margin-bottom: 0.25rem; }
.quiz-subtitle { font-size: 0.875rem; color: #6b7280; margin-bottom: 0.75rem; }
.quiz-options { display: flex; flex-direction: column; gap: 0.625rem; margin-top: 1rem; }
.quiz-option { width: 100%; text-align: left; padding: 0.75rem 1rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 500; transition: all 0.2s; background: #f3f4f6; color: #1f2937; border: none; cursor: pointer; }
.quiz-option:hover { background: #e5e7eb; }
.quiz-option.selected { background: #3b82f6; color: #fff; box-shadow: 0 4px 6px rgba(59,130,246,0.3); }
.quiz-continue { width: 100%; margin-top: 1.25rem; padding: 0.75rem; border-radius: 0.75rem; font-size: 0.875rem; font-weight: 600; background: #3b82f6; color: #fff; transition: all 0.2s; }
.quiz-continue:disabled { opacity: 0.4; cursor: not-allowed; }
.quiz-continue:not(:disabled):hover { background: #2563eb; }

/* Legal page shared */
.legal-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.legal-nav { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.5rem; background: var(--bg); border-bottom: 1px solid var(--border); }
.legal-back { font-size: 0.875rem; color: var(--muted-fg); transition: color 0.2s; text-decoration: none; }
.legal-back:hover { color: var(--primary); }
.legal-hero { background: var(--primary); padding: 4rem 1.5rem; text-align: center; }
.legal-hero h1 { font-size: 2rem; font-weight: 700; color: var(--primary-fg); margin-bottom: 0.5rem; }
.legal-hero p { font-size: 0.875rem; color: rgba(255,255,255,0.7); }
.legal-content { max-width: 48rem; margin: 0 auto; padding: 3rem 1.5rem; flex: 1; }
.legal-content h2 { font-size: 1.25rem; font-weight: 700; color: var(--fg); margin-top: 0; }
.legal-content h2 + h2, .legal-content p + h2 { margin-top: 2rem; }
.legal-content h3 { font-size: 1.125rem; font-weight: 600; color: var(--fg); margin-top: 1rem; }
.legal-content p { color: var(--muted-fg); line-height: 1.7; margin-top: 0.5rem; }
.legal-content ul { color: var(--muted-fg); list-style: disc; padding-left: 1.25rem; margin-top: 0.5rem; }
.legal-content ul li { margin-bottom: 0.25rem; }
.legal-content a { color: var(--primary); }
.legal-content a:hover { text-decoration: underline; }

/* 404 */
.not-found-page { display: flex; min-height: 100vh; align-items: center; justify-content: center; background: var(--muted); }
.not-found-page h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 1rem; }
.not-found-page p { font-size: 1.25rem; color: var(--muted-fg); margin-bottom: 1rem; }
.not-found-page a { color: var(--primary); text-decoration: underline; }

@media (max-width: 768px) {
  .safe-hero-content h1 { font-size: 1.75rem; }
  .safe-cards-grid { grid-template-columns: 1fr; }
  .safe-footer-links { flex-direction: column; align-items: center; }
}


/* Navbar */
.safe-navbar { position: absolute; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;    padding: 0.5rem 1.5rem; }
.safe-navbar-brand { font-size: 0.875rem; font-weight: 600; color: rgba(255,255,255,0.9); letter-spacing: -0.01em; }
.safe-navbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.safe-navbar-login { padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 500; color: #2563eb; background: none; border: none; cursor: pointer; transition: color 0.2s; }
.safe-navbar-login:hover { color: #fff; }
.safe-navbar-cta { padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 600; border-radius: 0.5rem; background: #2563eb; color: #fff; border: none; cursor: pointer; box-shadow: 0 4px 12px rgba(37,99,235,0.3); transition: background 0.2s; }
.safe-navbar-cta:hover { background: #1d4ed8; }