/* ============================================================
   AP ENGINE — Global Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

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

:root {
  --navy:       #0D1B2A;
  --navy-mid:   #1a2e42;
  --blue:       #1F4E78;
  --blue-light: #2E5C8A;
  --blue-pale:  #EEF4FA;
  --gold:       #F59E0B;
  --gold-hover: #FBBF24;
  --gold-pale:  #FEF3C7;
  --white:      #FFFFFF;
  --off-white:  #F8F9FB;
  --gray-100:   #F1F3F6;
  --gray-200:   #E2E8F0;
  --gray-400:   #94A3B8;
  --gray-600:   #475569;
  --text:       #0D1B2A;
  --text-mid:   #334155;
  --text-muted: #64748B;
  --radius:     12px;
  --radius-lg:  20px;
  --shadow-sm:  0 1px 3px rgba(13,27,42,0.06), 0 1px 2px rgba(13,27,42,0.04);
  --shadow-md:  0 4px 16px rgba(13,27,42,0.08), 0 2px 6px rgba(13,27,42,0.04);
  --shadow-lg:  0 20px 50px rgba(13,27,42,0.12), 0 8px 20px rgba(13,27,42,0.06);
  --max-w:      1200px;
  --section-py: 100px;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--white);
  color: var(--text);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Syne', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(38px, 5.5vw, 58px); font-weight: 800; }
h2 { font-size: clamp(30px, 4vw, 44px);   font-weight: 700; }
h3 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 700; }
h4 { font-size: 20px; font-weight: 600; }
p  { color: var(--text-mid); line-height: 1.7; }

a { color: inherit; text-decoration: none; }

/* ── Layout ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 768px) { .container { padding: 0 20px; } }

.section { padding: var(--section-py) 0; }
.section--gray  { background: var(--off-white); }
.section--navy  { background: var(--navy); }
.section--blue  { background: var(--blue); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: all 0.25s ease;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.btn--gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(245,158,11,0.35);
}
.btn--gold:hover {
  background: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245,158,11,0.45);
}
.btn--gold:active { transform: translateY(0); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn--outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline-dark {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid var(--blue);
}
.btn--outline-dark:hover {
  background: var(--blue);
  color: var(--white);
}
.btn--lg { font-size: 17px; padding: 17px 36px; border-radius: 14px; }
.btn svg { width: 18px; height: 18px; transition: transform 0.2s ease; }
.btn:hover svg { transform: translateX(3px); }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow 0.3s ease;
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav__logo {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.nav__logo span { color: var(--gold); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.nav__links a:hover { color: var(--blue); background: var(--blue-pale); }
.nav__links a.active { color: var(--blue); font-weight: 600; }
.nav__cta { flex-shrink: 0; }
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: none;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav__mobile {
  display: none;
  flex-direction: column;
  padding: 16px 20px 24px;
  border-top: 1px solid var(--gray-200);
  gap: 4px;
}
.nav__mobile a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 12px 16px;
  border-radius: 8px;
  display: block;
  transition: all 0.2s ease;
}
.nav__mobile a:hover { color: var(--blue); background: var(--blue-pale); }
.nav__mobile .btn { width: 100%; justify-content: center; margin-top: 8px; }

@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__inner { padding: 0 20px; }
}
.nav__mobile.open { display: flex; }

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__brand .logo {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.footer__brand .logo span { color: var(--gold); }
.footer__brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.55); max-width: 280px; }
.footer__col h4 { font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700; color: var(--white); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col a { display: block; font-size: 14px; color: rgba(255,255,255,0.55); padding: 5px 0; transition: color 0.2s ease; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer__bottom-links { display: flex; gap: 20px; }
.footer__bottom-links a { font-size: 13px; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer__bottom-links a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ── Section label ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
  border: 1px solid rgba(245,158,11,0.2);
}
.section-label--white {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
}
.section-label--blue {
  color: var(--blue);
  background: var(--blue-pale);
  border-color: rgba(31,78,120,0.15);
}

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--gray-200);
}
.card__icon {
  width: 52px;
  height: 52px;
  background: var(--blue-pale);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
}
.card__icon svg { width: 26px; height: 26px; }

/* ── Stat blocks ── */
.stat-block { text-align: center; padding: 32px 20px; }
.stat-block__num {
  font-family: 'Syne', sans-serif;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-block__label { font-size: 15px; color: rgba(255,255,255,0.65); font-weight: 400; }

/* ── Grid helpers ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Text helpers ── */
.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.mb-4  { margin-bottom: 4px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

/* ── Divider ── */
.divider {
  width: 48px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 20px 0;
}
.divider--center { margin: 20px auto; }

/* ── Page hero ── */
.page-hero {
  background: var(--navy);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(31,78,120,0.5) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(245,158,11,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.65); font-size: clamp(16px, 2vw, 19px); max-width: 560px; }

/* ── Prose (legal pages) ── */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 24px; margin: 40px 0 14px; color: var(--navy); }
.prose h3 { font-size: 18px; margin: 28px 0 10px; color: var(--navy); }
.prose p  { margin-bottom: 16px; font-size: 16px; }
.prose ul { margin: 12px 0 16px 20px; }
.prose ul li { font-size: 16px; color: var(--text-mid); margin-bottom: 8px; line-height: 1.65; }
.prose strong { color: var(--text); font-weight: 600; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.anim-fade-up   { animation: fadeUp   0.7s ease both; }
.anim-fade-down { animation: fadeDown 0.7s ease both; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.12s; }
.d3 { animation-delay: 0.20s; }
.d4 { animation-delay: 0.28s; }
.d5 { animation-delay: 0.36s; }

/* ── Checklist ── */
.checklist { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.55;
}
.checklist li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2.5' stroke='%231F4E78'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m4.5 12.75 6 6 9-13.5'/%3E%3C/svg%3E") center/contain no-repeat;
  margin-top: 2px;
}
.checklist--gold li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2.5' stroke='%23F59E0B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m4.5 12.75 6 6 9-13.5'/%3E%3C/svg%3E");
}

/* ── Quote block ── */
.quote-card {
  background: var(--blue-pale);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 32px 36px;
}
.quote-card blockquote {
  font-size: 19px;
  font-style: italic;
  color: var(--navy);
  line-height: 1.65;
  margin-bottom: 16px;
}
.quote-card cite { font-size: 14px; font-weight: 600; color: var(--blue); font-style: normal; }

/* ── Step number ── */
.step-number {
  width: 40px;
  height: 40px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  font-family: 'Syne', sans-serif;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Responsive utils ── */
@media (max-width: 768px) {
  :root { --section-py: 64px; }
  body { font-size: 16px; }
  .page-hero { padding: 72px 0 56px; }
}
