@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,700;0,800;1,700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #020B53;
  --primary-dark: #010830;
  --primary-mid: #062EC7;
  --accent: #8D79E4;
  --accent-light: #D6C9F7;
  --accent-ice: #99D5FC;
  --white: #ffffff;
  --off-white: #f5f3ff;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border: rgba(6,46,199,0.18);
  --border-plain: #e5e7eb;
  --radius: 12px;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, sans-serif; color: var(--text); background: var(--white); line-height: 1.6; overflow-x: hidden; }

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
  background: linear-gradient(135deg, rgba(2,11,83,0.97) 0%, rgba(141,121,228,0.97) 100%); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(214,201,247,0.2);
}
.nav-logo { display: inline-flex; align-items: center; gap: 8px; font-family: 'Playfair Display', Georgia, serif; font-size: 22px; font-weight: 800; color: var(--white); text-decoration: none; letter-spacing: -0.5px; }
.nav-logo span { color: var(--accent-light); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.72); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent-light); }
.nav-cta { background: linear-gradient(135deg, #062EC7, #8D79E4) !important; color: var(--white) !important; padding: 8px 18px !important; border-radius: 8px; font-weight: 700 !important; }
.nav-cta:hover { opacity: 0.9; color: var(--white) !important; }

/* ARTICLE STRIP */
.article-strip {
  position: fixed; top: 64px; left: 0; right: 0; z-index: 99;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 40px;
  background: linear-gradient(135deg, rgba(2,11,83,0.97) 0%, rgba(141,121,228,0.97) 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(214,201,247,0.15);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.article-strip::-webkit-scrollbar { display: none; }
.article-strip a {
  font-size: 13px; font-weight: 700; color: var(--white) !important;
  text-decoration: none; padding: 7px 16px; border-radius: 8px;
  background: linear-gradient(135deg, #062EC7, #8D79E4);
  transition: opacity 0.2s; white-space: nowrap;
}
.article-strip a:hover { opacity: 0.82; }
.article-strip a.active { background: linear-gradient(135deg, #8D79E4, #062EC7); }

/* PAGE HEADER */
.page-header {
  padding: 172px 40px 70px;
  background: linear-gradient(145deg, #9B6FE8 0%, #6A3FD4 30%, #2D1B8E 65%, #020B53 100%);
  position: relative; overflow: hidden;
}
.page-header::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(214,201,247,0.3), transparent);
}
.page-header-inner { max-width: 820px; margin: 0 auto; }
.page-header .eyebrow { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-light); margin-bottom: 14px; }
.page-header h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(32px, 5vw, 52px); font-weight: 800; color: #F5F1FA; line-height: 1.1; letter-spacing: -0.5px; margin-bottom: 16px; }
.page-header p { font-size: 17px; color: rgba(214,201,247,0.75); max-width: 560px; line-height: 1.7; }

/* MAIN CONTENT */
.page-content { max-width: 820px; margin: 0 auto; padding: 72px 40px 100px; }
.page-content h2 { font-family: 'Playfair Display', Georgia, serif; font-size: 26px; font-weight: 800; color: var(--primary); margin: 48px 0 16px; }
.page-content h3 { font-size: 18px; font-weight: 700; color: var(--primary-mid); margin: 32px 0 12px; }
.page-content p { font-size: 15.5px; color: #374151; line-height: 1.8; margin-bottom: 18px; }
.page-content ul, .page-content ol { margin: 0 0 18px 22px; }
.page-content li { font-size: 15px; color: #374151; line-height: 1.75; margin-bottom: 6px; }
.page-content a { color: var(--primary-mid); font-weight: 600; }
.page-content a:hover { color: var(--accent); }
.divider-line { width: 56px; height: 3px; background: linear-gradient(90deg, #062EC7, #8D79E4); border-radius: 2px; margin: 6px 0 36px; }

/* ARTICLE STYLES */
.article-img { width: 100%; border-radius: var(--radius); margin: 32px 0; object-fit: cover; max-height: 420px; display: block; }
.article-img-caption { font-size: 13px; color: var(--text-muted); text-align: center; margin-top: -20px; margin-bottom: 32px; font-style: italic; }
.callout { background: #eff3ff; border-left: 4px solid var(--primary-mid); padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 28px 0; }
.callout p { margin: 0; font-size: 15px; color: var(--primary); }
.callout strong { color: var(--primary); }
.warn-box { background: #fff7ed; border-left: 4px solid #c2410c; padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 28px 0; }
.warn-box p { margin: 0; font-size: 15px; color: #7c2d12; }
.tip-box { background: #f0fdf4; border-left: 4px solid #16a34a; padding: 16px 20px; border-radius: 0 8px 8px 0; margin: 28px 0; }
.tip-box p { margin: 0; font-size: 15px; color: #14532d; }
.data-table { width: 100%; border-collapse: collapse; margin: 24px 0 32px; font-size: 14px; }
.data-table th { background: linear-gradient(135deg, #020B53, #8D79E4); color: white; padding: 10px 14px; text-align: left; font-weight: 600; }
.data-table td { padding: 10px 14px; border-bottom: 1px solid var(--border-plain); color: #374151; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--off-white); }

/* GUIDE CTA BOX */
.guide-cta-box {
  background: linear-gradient(135deg, #020B53, #062EC7); border-radius: var(--radius);
  padding: 36px 40px; margin: 48px 0; display: flex;
  align-items: center; gap: 32px; flex-wrap: wrap;
}
.guide-cta-box h4 { font-family: 'Playfair Display', Georgia, serif; font-size: 22px; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.guide-cta-box p { font-size: 14px; color: rgba(214,201,247,0.7); margin: 0; }
.guide-cta-box-text { flex: 1; min-width: 200px; }
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, #8D79E4, #062EC7); color: var(--white); font-weight: 700; font-size: 14px; padding: 13px 24px; border-radius: 9px; text-decoration: none; transition: all 0.2s; white-space: nowrap; }
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-ghost-dark { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid rgba(214,201,247,0.3); color: rgba(214,201,247,0.85); font-weight: 600; font-size: 14px; padding: 12px 22px; border-radius: 9px; text-decoration: none; transition: all 0.2s; white-space: nowrap; }
.btn-ghost-dark:hover { border-color: var(--accent-light); color: var(--accent-light); }

/* CONTACT FORM */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--primary); }
.form-group input, .form-group textarea, .form-group select {
  padding: 12px 16px; border: 1.5px solid var(--border-plain); border-radius: 8px;
  font-size: 14.5px; font-family: inherit; color: var(--text);
  transition: border-color 0.2s; background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--primary-mid);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-submit { background: linear-gradient(135deg, #062EC7, #8D79E4); color: var(--white); font-weight: 700; font-size: 15px; padding: 14px 32px; border: none; border-radius: 10px; cursor: pointer; font-family: inherit; transition: all 0.2s; width: fit-content; }
.form-submit:hover { opacity: 0.9; transform: translateY(-1px); }

/* FOOTER */
footer { background: #010830; color: rgba(214,201,247,0.5); padding: 48px 40px; text-align: center; border-top: 1px solid rgba(141,121,228,0.15); }
footer .footer-logo { font-family: 'Playfair Display', Georgia, serif; font-size: 24px; font-weight: 800; color: var(--white); margin-bottom: 10px; display: block; text-decoration: none; }
footer .footer-logo span { color: var(--accent-light); }
.footer-nav { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; list-style: none; margin: 20px 0 28px; }
.footer-nav a { color: rgba(214,201,247,0.45); font-size: 13px; text-decoration: none; }
.footer-nav a:hover { color: var(--accent-light); }
.footer-divider { width: 40px; height: 2px; background: rgba(141,121,228,0.3); margin: 0 auto 24px; }
footer p { font-size: 12.5px; line-height: 1.7; }
footer a { color: var(--accent-light); text-decoration: none; }

/* PDF DOWNLOAD BAR */
.pdf-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--off-white); border: 1px solid var(--border); border-radius: 10px; padding: 14px 20px; margin: 20px 0 32px; }
.pdf-bar span { font-size: 14px; color: var(--text-muted); }
.pdf-bar button { background: linear-gradient(135deg, #062EC7, #8D79E4); color: white; border: none; padding: 10px 20px; border-radius: 8px; font-weight: 700; font-size: 13px; cursor: pointer; white-space: nowrap; font-family: inherit; transition: opacity 0.2s; }
.pdf-bar button:hover { opacity: 0.85; }

/* MAILERLITE MODAL OVERRIDES (article pages) */
#guide-modal .ml-embedded .ml-form-embedWrapper { box-shadow: none !important; border: none !important; padding: 0 !important; }
#guide-modal .ml-embedded .ml-form-embedBody { padding: 0 !important; }
#guide-modal .ml-embedded .ml-form-fieldRow input { font-family: 'Inter', sans-serif !important; border-radius: 8px !important; border: 1.5px solid #e5e7eb !important; }
#guide-modal .ml-embedded .ml-form-embedSubmit button { background: linear-gradient(135deg, #062EC7, #8D79E4) !important; font-family: 'Inter', sans-serif !important; font-weight: 700 !important; border-radius: 8px !important; }

@media print {
  nav, .article-strip { position: relative; top: auto; left: auto; right: auto; z-index: auto; }
  .page-header { padding-top: 24px; }
}

@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  .article-strip { padding: 0 16px; justify-content: flex-start; }
  .page-header { padding: 142px 20px 52px; }
  .page-content { padding: 48px 20px 72px; }
  .guide-cta-box { padding: 28px 24px; }
  .form-row { grid-template-columns: 1fr; }
  footer { padding: 40px 20px; }
}
