/* QuickDueDiligence.com — Shared Stylesheet
   Design: Fintech trust — dark navy + white, system fonts, WCAG AA contrast
   Palette: --navy #0f2040 | --blue #1a56db | --accent #f59e0b | --danger #dc2626 | --success #16a34a
*/
:root {
  --navy: #0f2040;
  --navy2: #1a3260;
  --blue: #1a56db;
  --blue-light: #eff6ff;
  --accent: #f59e0b;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --text: #1e293b;
  --muted: #64748b;
  --radius: 10px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── NAV ── */
.site-nav {
  background: var(--navy);
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  gap: 16px;
}
.nav-logo {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.3px;
  white-space: nowrap;
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-links a {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background .15s, color .15s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.1); color: #fff; }
.nav-links a.nav-cta {
  background: var(--accent);
  color: var(--navy);
  font-weight: 700;
  padding: 6px 14px;
}
.nav-links a.nav-cta:hover { background: #fbbf24; }
.nav-hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: .2s; }
@media(max-width: 720px) {
  .nav-hamburger { display: block; }
  .nav-links { display: none; flex-direction: column; align-items: flex-start; position: absolute; top: 58px; left: 0; right: 0; background: var(--navy2); padding: 12px 20px 16px; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 10px 12px; font-size: 14px; }
}

/* ── DISCLAIMER BANNER ── */
.disclaimer-bar {
  background: #1e3a5f;
  color: #93c5fd;
  font-size: 12px;
  text-align: center;
  padding: 7px 20px;
  border-bottom: 1px solid #1e40af;
}
.disclaimer-bar strong { color: #bfdbfe; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  color: white;
  padding: 56px 20px 48px;
  text-align: center;
}
.hero h1 { font-size: clamp(24px, 5vw, 40px); font-weight: 800; margin-bottom: 14px; line-height: 1.2; }
.hero h1 span { color: var(--accent); }
.hero p { color: #94a3b8; font-size: 17px; max-width: 640px; margin: 0 auto 24px; }
.hero-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.hero-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: .3px;
}

/* ── PAGE HERO (articles) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  color: white;
  padding: 40px 20px 36px;
}
.page-hero-inner { max-width: 860px; margin: 0 auto; }
.page-hero .breadcrumb { font-size: 12px; color: #64748b; margin-bottom: 10px; }
.page-hero .breadcrumb a { color: #94a3b8; }
.page-hero h1 { font-size: clamp(22px, 4vw, 34px); font-weight: 800; margin-bottom: 10px; line-height: 1.25; }
.page-hero .meta { color: #94a3b8; font-size: 13px; }

/* ── LAYOUT ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.content-wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.section { padding: 40px 0; }
.section-sm { padding: 24px 0; }

/* ── CARDS ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  overflow: hidden;
}
.card-header {
  background: var(--navy);
  color: white;
  padding: 14px 22px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-body { padding: 24px; }

/* ── TOOL: QUESTIONNAIRE ── */
.tool-wrap { max-width: 760px; margin: 0 auto; }
.progress-wrap { margin-bottom: 24px; }
.progress-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.progress-bg { background: #e2e8f0; height: 8px; border-radius: 4px; overflow: hidden; }
.progress-fill { background: linear-gradient(90deg, var(--blue), var(--accent)); height: 100%; width: 0%; transition: width .4s cubic-bezier(.23,1,.32,1); border-radius: 4px; }
.step { display: none; }
.step.active { display: block; }
.step-title { font-size: 20px; font-weight: 700; margin-bottom: 6px; color: var(--navy); }
.step-desc { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.options { display: flex; flex-direction: column; gap: 10px; }
.option-btn {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color .15s, background .15s, transform .1s;
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
}
.option-btn:hover { border-color: var(--blue); background: var(--blue-light); }
.option-btn.selected { border-color: var(--blue); background: var(--blue-light); }
.option-btn:active { transform: scale(0.99); }
.option-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.option-text strong { display: block; font-weight: 600; }
.option-text span { font-size: 12px; color: var(--muted); }
.step-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; transition: background .15s, transform .1s; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary { background: #f1f5f9; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #e2e8f0; }
.btn-accent { background: var(--accent); color: var(--navy); font-weight: 700; }
.btn-accent:hover { background: #fbbf24; }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue-light); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn.copied { background: var(--success); color: #fff; }

/* ── RESULTS ── */
.result-wrap { display: none; }
.risk-meter-wrap { text-align: center; margin: 24px 0; }
.risk-meter-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 10px; }
.risk-meter-bar { height: 24px; border-radius: 12px; background: linear-gradient(90deg, #16a34a 0%, #f59e0b 40%, #ea580c 70%, #dc2626 100%); position: relative; margin-bottom: 8px; }
.risk-needle { position: absolute; top: -6px; width: 4px; height: 36px; background: var(--navy); border-radius: 2px; transform: translateX(-50%); transition: left .8s cubic-bezier(.23,1,.32,1); }
.risk-tier-badge { display: inline-block; padding: 8px 24px; border-radius: 24px; font-size: 20px; font-weight: 800; margin-top: 10px; letter-spacing: .3px; }
.tier-low { background: #dcfce7; color: #15803d; }
.tier-moderate { background: #fef9c3; color: #a16207; }
.tier-high { background: #ffedd5; color: #c2410c; }
.tier-veryhigh { background: #fee2e2; color: #b91c1c; }
.result-score { font-size: 13px; color: var(--muted); margin-top: 6px; }
.result-breakdown { margin-top: 20px; }
.breakdown-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 7px; background: #f8fafc; border: 1px solid var(--border); margin-bottom: 8px; font-size: 13px; }
.breakdown-score { font-weight: 700; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.score-low { background: #dcfce7; color: #15803d; }
.score-mod { background: #fef9c3; color: #a16207; }
.score-high { background: #ffedd5; color: #c2410c; }
.score-vhigh { background: #fee2e2; color: #b91c1c; }
.next-steps { margin-top: 20px; padding: 18px; border-radius: 8px; border-left: 4px solid; }
.next-steps.low { background: var(--success-bg); border-color: var(--success); }
.next-steps.moderate { background: #fefce8; border-color: #ca8a04; }
.next-steps.high { background: #fff7ed; border-color: #ea580c; }
.next-steps.veryhigh { background: var(--danger-bg); border-color: var(--danger); }
.next-steps h3 { font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.next-steps ul { padding-left: 18px; font-size: 13px; line-height: 1.8; }

/* ── VERIFICATION PANEL ── */
.verify-panel { margin-top: 24px; }
.verify-panel h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; color: var(--navy); }
.registry-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.registry-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--blue-light);
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: background .15s;
}
.registry-link:hover { background: #dbeafe; text-decoration: none; }
.sanctions-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sanctions-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
  text-decoration: none;
  transition: background .15s;
}
.sanctions-link:hover { background: #fee2e2; text-decoration: none; }

/* ── AD SLOTS ── */
.ad-slot {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  color: var(--muted);
  text-align: center;
  padding: 16px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 8px;
  margin: 24px 0;
}

/* ── AFFILIATE CALLOUT ── */
.affiliate-callout {
  background: linear-gradient(135deg, #0f2040 0%, #1a3260 100%);
  color: white;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.affiliate-callout h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.affiliate-callout p { font-size: 13px; color: #94a3b8; }
.affiliate-callout .btn { flex-shrink: 0; }

/* ── ARTICLE CONTENT ── */
.article-body { line-height: 1.8; }
.article-body h2 { font-size: 22px; font-weight: 700; color: var(--navy); margin: 36px 0 14px; padding-top: 8px; border-top: 2px solid var(--border); }
.article-body h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin: 24px 0 10px; }
.article-body p { margin-bottom: 16px; color: var(--text); }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 16px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { color: var(--navy); }
.article-body a { color: var(--blue); font-weight: 600; }
.article-body blockquote { border-left: 4px solid var(--accent); padding: 12px 18px; background: #fffbeb; border-radius: 0 8px 8px 0; margin: 20px 0; font-style: italic; color: var(--muted); }
.article-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; }
.article-body th { background: var(--navy); color: white; padding: 10px 14px; text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
.article-body td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.article-body tr:nth-child(even) td { background: #f8fafc; }

/* ── FAQ ── */
.faq-item { border: 1px solid var(--border); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.faq-q { padding: 14px 18px; font-weight: 600; font-size: 15px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: #fff; transition: background .15s; }
.faq-q:hover { background: var(--blue-light); }
.faq-arrow { transition: transform .25s; font-size: 12px; color: var(--muted); flex-shrink: 0; margin-left: 12px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; font-size: 14px; color: var(--muted); line-height: 1.7; padding: 0 18px; background: #fafafa; }
.faq-item.open .faq-a { max-height: 400px; padding: 14px 18px; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }

/* ── TRUST PAGES ── */
.trust-body h2 { font-size: 20px; font-weight: 700; color: var(--navy); margin: 28px 0 10px; }
.trust-body h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin: 20px 0 8px; }
.trust-body p, .trust-body li { font-size: 15px; color: var(--text); line-height: 1.8; margin-bottom: 12px; }
.trust-body ul, .trust-body ol { padding-left: 22px; margin-bottom: 16px; }
.trust-body a { color: var(--blue); }

/* ── CONTACT FORM ── */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); margin-bottom: 5px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
.form-group textarea { min-height: 120px; resize: vertical; }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 40px 20px 24px;
  margin-top: 60px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
@media(max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.footer-brand .logo { font-size: 18px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer-brand .logo span { color: var(--accent); }
.footer-brand p { font-size: 13px; line-height: 1.7; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #e2e8f0; margin-bottom: 12px; }
.footer-col a { display: block; color: #94a3b8; font-size: 13px; margin-bottom: 8px; text-decoration: none; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e3a5f; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 12px; }
.footer-bottom a { color: #64748b; text-decoration: none; }
.footer-bottom a:hover { color: #94a3b8; }
.footer-legal { font-size: 11px; color: #475569; margin-top: 16px; line-height: 1.7; border-top: 1px solid #1e3a5f; padding-top: 16px; }

/* ── UTILITIES ── */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media(max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
.info-box { background: var(--blue-light); border: 1px solid #bfdbfe; border-radius: 8px; padding: 16px 18px; font-size: 14px; color: #1e40af; margin: 20px 0; }
.warn-box { background: var(--warning-bg); border: 1px solid #fcd34d; border-radius: 8px; padding: 16px 18px; font-size: 14px; color: #92400e; margin: 20px 0; }
.danger-box { background: var(--danger-bg); border: 1px solid #fca5a5; border-radius: 8px; padding: 16px 18px; font-size: 14px; color: #991b1b; margin: 20px 0; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.tag-danger { background: #fee2e2; color: #b91c1c; }
.tag-warning { background: #fef9c3; color: #a16207; }
.tag-success { background: #dcfce7; color: #15803d; }
.tag-info { background: var(--blue-light); color: #1d4ed8; }

/* ── PRINT ── */
@media print {
  .site-nav, .disclaimer-bar, .ad-slot, .affiliate-callout, .btn-row, .site-footer, .step-nav { display: none !important; }
  body { background: white; font-size: 13px; }
  .hero, .page-hero { background: white !important; color: black !important; padding: 10px 0 !important; }
  .hero h1, .page-hero h1 { color: black !important; font-size: 20px !important; }
  .hero p, .page-hero .meta { color: #555 !important; }
  .card { box-shadow: none; border: 1px solid #ccc; }
  .result-wrap { display: block !important; }
  .step { display: none !important; }
  .step.active { display: none !important; }
}
