/* Post-Conflict Crypto Safety - Styles */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
 font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
 line-height: 1.6;
 color: #1a1a1a;
 background: #ffffff;
 min-height: 100vh;
 display: flex;
 flex-direction: column;
}

header {
 background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
 color: #ffffff;
 padding: 1rem 2rem;
 position: sticky;
 top: 0;
 z-index: 100;
 box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
 font-size: 1.5rem;
 font-weight: 700;
 color: #ffffff;
 text-decoration: none;
 margin-right: 2rem;
}

.logo:hover {
 color: #ecf0f1;
}

.nav-links {
 list-style: none;
 display: flex;
 gap: 1.5rem;
}

.nav-links a {
 color: #ecf0f1;
 text-decoration: none;
 font-weight: 500;
 padding: 0.25rem 0;
}

.nav-links a:hover {
 text-decoration: underline;
}

main {
 flex: 1;
 max-width: 1000px;
 width: 100%;
 padding: 2rem;
 margin: 0 auto;
}

.hero {
 text-align: center;
 margin-bottom: 2rem;
 padding: 2rem;
 background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
 border-radius: 12px;
 border: 1px solid #e0e0e0;
}

.hero h1 {
 font-size: clamp(1.8rem, 4vw, 2.5rem);
 color: #2c3e50;
 margin-bottom: 0.75rem;
 font-weight: 700;
}

.tagline {
 color: #555555;
 font-size: 1.1rem;
 margin-bottom: 1.5rem;
}

.threat-selector {
 display: flex;
 gap: 0.5rem;
 justify-content: center;
 margin-bottom: 1.5rem;
 flex-wrap: wrap;
}

.threat-btn {
 padding: 0.75rem 1.5rem;
 border: 2px solid #3498db;
 background: white;
 color: #3498db;
 border-radius: 8px;
 cursor: pointer;
 font-weight: 600;
 transition: all 0.2s ease;
}

.threat-btn:hover, .threat-btn:focus {
 background: #3498db;
 color: white;
}

.threat-btn[aria-pressed="true"] {
 background: #3498db;
 color: white;
}

.cta-button {
 padding: 1rem 2.5rem;
 background: #27ae60;
 color: white;
 border: none;
 border-radius: 8px;
 font-size: 1.1rem;
 font-weight: 600;
 cursor: pointer;
 transition: background 0.2s ease;
}

.cta-button:hover, .cta-button:focus {
 background: #2ecc71;
}

.checklist-section {
 margin: 2rem 0;
 padding: 1.5rem;
 border: 2px dashed #3498db;
 border-radius: 12px;
 background: #f8f9fa;
}

.checklist-section.hidden {
 display: none;
}

.checklist-section h2 {
 color: #2c3e50;
 margin-bottom: 1rem;
 font-size: 1.5rem;
}

.checklist-item {
 padding: 1rem;
 margin: 0.5rem 0;
 background: white;
 border-radius: 8px;
 border-left: 4px solid #3498db;
}

.checklist-item.completed {
 border-left-color: #27ae60;
 background: #e8f5e9;
}

.output-controls {
 margin-top: 1.5rem;
 display: flex;
 gap: 1rem;
 flex-wrap: wrap;
}

.secondary-button {
 padding: 0.75rem 1.5rem;
 background: #95a5a6;
 color: white;
 border: none;
 border-radius: 6px;
 cursor: pointer;
}

.secondary-button:hover, .secondary-button:focus {
 background: #7f8c8d;
}

.content-section {
 margin: 2rem 0;
 padding: 1.5rem;
 border-radius: 12px;
 border: 1px solid #e0e0e0;
}

.content-section h2 {
 color: #2c3e50;
 margin-bottom: 1rem;
 font-size: 1.4rem;
}

.content-section h3 {
 color: #34495e;
 margin: 1.25rem 0 0.75rem;
}

.scenario-card {
 background: #fff;
 padding: 1rem;
 margin: 1rem 0;
 border-radius: 8px;
 border: 1px solid #e0e0e0;
}

.scenario-card h4 {
 color: #2c3e50;
 margin-bottom: 0.5rem;
}

.note {
 background: #e8f4f8;
 border: 1px solid #3498db;
 border-radius: 8px;
 padding: 1rem;
 margin-top: 1rem;
}

ul {
 margin-left: 1.5rem;
}

ol {
 margin-left: 1.5rem;
}

li {
 margin: 0.5rem 0;
}

footer {
 background: #2c3e50;
 color: #ecf0f1;
 padding: 1.5rem 2rem;
 text-align: center;
 margin-top: 2rem;
}

.footer-note {
 font-size: 0.9rem;
 color: #bdc3c7;
 margin-bottom: 0.5rem;
}

.footer-links a {
 color: #3498db;
 text-decoration: none;
}

.footer-links a:hover {
 text-decoration: underline;
}

@media (max-width: 768px) {
 main {
 padding: 1rem;
 }

 .hero {
 padding: 1.5rem;
 }

 .threat-selector {
 flex-direction: column;
 align-items: center;
 }

 .output-controls {
 flex-direction: column;
 }

 .footer-links {
 font-size: 0.9rem;
 }
}

@media (max-width: 480px) {
 header {
 padding: 0.75rem 1rem;
 }

 .logo {
 margin-right: 1rem;
 }

 .nav-links {
 gap: 1rem;
 }
}

/* Animation for checklist items */
@keyframes fadeInUp {
 from { opacity: 0; transform: translateY(20px); }
 to { opacity: 1; transform: translateY(0); }
}

.checklist-item {
 animation: fadeInUp 0.4s ease-out;
}

.checklist-item:nth-child(1) { animation-delay: 0.1s; }
.checklist-item:nth-child(2) { animation-delay: 0.2s; }
.checklist-item:nth-child(3) { animation-delay: 0.3s; }
.checklist-item:nth-child(4) { animation-delay: 0.4s; }



/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
