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

:root {
  --dark:   #0d1b2a;
  --accent: #0d6efd;
  --green:  #16a34a;
  --bg:     #f1f5f9;
  --card:   #ffffff;
  --border: #e2e8f0;
  --text:   #1e293b;
  --muted:  #64748b;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── Header ── */
header {
  background: var(--dark);
  color: #fff;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo { font-size: 1.3rem; font-weight: 700; color: #fff; text-decoration: none; }
.badge {
  font-size: 0.65rem;
  background: #16a34a;
  color: #fff;
  padding: 2px 8px;
  border-radius: 99px;
  font-weight: 700;
  text-transform: uppercase;
}
.nav-cta {
  margin-left: auto;
  font-size: 0.82rem;
  color: #94a3b8;
  text-decoration: none;
}
.nav-cta:hover { color: #fff; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1a3a5c 100%);
  color: #fff;
  padding: 64px 32px 0;
  text-align: center;
}
.hero-kicker {
  display: inline-block;
  background: rgba(13,110,253,0.25);
  border: 1px solid rgba(13,110,253,0.5);
  border-radius: 99px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #93c5fd;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 18px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.hero h1 em {
  font-style: normal;
  color: #60a5fa;
}
.hero-sub {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

/* ── Form card ── */
.form-card {
  background: #fff;
  border-radius: 16px 16px 0 0;
  padding: 36px 40px;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 0 -4px 40px rgba(0,0,0,0.18);
}
@media (max-width: 600px) {
  .form-card { padding: 28px 20px; border-radius: 12px 12px 0 0; }
}
.form-card h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.form-card .form-sub {
  font-size: 0.87rem;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.5;
}
.field-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}
/* Label sub-spans */
.field-optional { font-weight: 400; text-transform: none; }
.field-required  { color: #dc2626; }

.field input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
  color: var(--text);
}
.field input:focus { border-color: var(--accent); }
.field input.error { border-color: #dc2626; }

.btn-download {
  display: block;
  width: 100%;
  padding: 13px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s;
  font-family: inherit;
  text-align: center;
}
.btn-download:hover:not(:disabled) { filter: brightness(0.9); }
.btn-download:disabled { opacity: 0.55; cursor: not-allowed; }

.form-note {
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}
.form-note a { color: var(--muted); }

.form-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: 7px;
  padding: 10px 13px;
  color: #dc2626;
  font-size: 0.85rem;
  margin-bottom: 14px;
  display: none;
}
.form-error.show { display: block; }

/* ── Success state ── */
.success-state {
  display: none;
  text-align: center;
}
.success-state.show { display: block; }
.success-icon { font-size: 3rem; margin-bottom: 12px; }
.success-state h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}
.success-state p {
  font-size: 0.88rem;
  color: var(--muted);
  margin-bottom: 22px;
  line-height: 1.5;
}
.success-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 14px;
}
.success-note a { color: var(--accent); }

.btn-get-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: filter 0.15s;
}
.btn-get-pdf:hover { filter: brightness(0.9); }

/* ── Main content area ── */
.main {
  background: var(--bg);
  padding: 64px 32px;
}
.container {
  max-width: 900px;
  margin: 0 auto;
}

/* ── What's inside ── */
.section-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 10px;
}
.section-heading {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 10px;
}
.section-sub {
  text-align: center;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.inside-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}
@media (max-width: 700px) {
  .inside-grid { grid-template-columns: 1fr; }
}
@media (min-width: 701px) and (max-width: 900px) {
  .inside-grid { grid-template-columns: repeat(2, 1fr); }
}
.inside-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}
.inside-card .card-icon {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
.inside-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.inside-card p {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Regulatory context banner ── */
.reg-banner {
  background: var(--dark);
  color: #fff;
  border-radius: 14px;
  padding: 32px 36px;
  margin-bottom: 56px;
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.reg-banner-text { flex: 1; min-width: 200px; }
.reg-banner-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.reg-banner-text p {
  font-size: 0.87rem;
  color: #94a3b8;
  line-height: 1.6;
}
.reg-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.reg-stat .num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #60a5fa;
  display: block;
}
.reg-stat .lbl {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* ── Pitfalls ── */
.pitfalls-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}
@media (max-width: 640px) {
  .pitfalls-grid { grid-template-columns: 1fr; }
}
.pitfall-item {
  background: #fef9f0;
  border: 1px solid #fde68a;
  border-left: 4px solid #d97706;
  border-radius: 8px;
  padding: 16px 18px;
}
.pitfall-item h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: #92400e;
  margin-bottom: 5px;
}
.pitfall-item p {
  font-size: 0.82rem;
  color: #78350f;
  line-height: 1.5;
}

/* ── CTA bottom ── */
.cta-bottom {
  background: linear-gradient(135deg, #1e40af 0%, #0d6efd 100%);
  color: #fff;
  border-radius: 14px;
  padding: 40px 36px;
  text-align: center;
}
.cta-bottom h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.cta-bottom p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.btn-cta-scroll {
  display: inline-block;
  padding: 12px 28px;
  background: #fff;
  color: #1e40af;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: filter 0.15s;
}
.btn-cta-scroll:hover { filter: brightness(0.95); }

/* ── Footer ── */
footer {
  text-align: center;
  padding: 24px 16px;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--card);
}
footer a { color: var(--accent); }

/* ── Spinner ── */
.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }
