@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/montserrat-latin.woff2') format('woff2');
}

:root {
  --pulse-navy: #223382;
  --even-blue: #3fa9f5;
  --signal-mid: #2e6fc0;
  --r2-orange: #f7941d;
  --ink: #1a2146;
  --paper: #ffffff;
  --wash: #eef3fb;
  --line: #c9d4ea;
  --error: #b00020;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  --gutter: 20px;
  --max: 640px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }
a { color: var(--signal-mid); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Masthead */
.masthead { background: var(--pulse-navy); border-bottom: 5px solid var(--r2-orange); color: #fff; }
.masthead__inner { display: flex; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.masthead__logo { width: 84px; height: auto; flex: none; }
.masthead__title { margin: 0; font-size: 1.6rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }

/* Form card */
.download { background: var(--wash); padding: 20px 0 28px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px; box-shadow: 0 1px 2px rgba(34, 51, 130, .08); }
.card[hidden] { display: none; }
.card__label { display: block; font-weight: 700; font-size: 1rem; line-height: 1.35; margin-bottom: 10px; color: var(--pulse-navy); }

input[type="email"] {
  display: block; width: 100%; min-height: 52px;
  padding: 12px 14px; font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 2px solid #6d7aa8; border-radius: 8px;
}
input[type="email"][aria-invalid="true"] { border-color: var(--error); }
:focus-visible { outline: 3px solid var(--pulse-navy); outline-offset: 2px; }
.footer a:focus-visible { outline-color: #fff; }
input[type="email"]:focus-visible { outline-offset: 0; border-color: var(--pulse-navy); }

.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.cf-turnstile { margin-top: 12px; max-width: 100%; min-height: 65px; overflow: hidden; }
.consent a { display: inline-block; padding: 6px 0; }

.form-error { margin: 10px 0 0; color: var(--error); font-weight: 600; font-size: .95rem; line-height: 1.4; }
.form-error:empty { display: none; }

.btn {
  display: block; width: 100%; min-height: 56px; margin-top: 14px;
  padding: 14px 20px; border: 0; border-radius: 8px; cursor: pointer;
  font: inherit; font-size: 1.05rem; font-weight: 700; text-align: center; text-decoration: none;
  color: #fff; background: var(--pulse-navy);
}
.btn:hover { background: #1a2868; }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn--accent { background: var(--r2-orange); color: var(--ink); }
.btn--accent:hover { background: #ffa83a; }
.btn--xl { min-height: 64px; font-size: 1.2rem; }

.consent { margin: 12px 0 0; font-size: .85rem; line-height: 1.45; color: #3d4670; }

.thanks h2 { margin: 0 0 4px; font-size: 1.4rem; line-height: 1.25; color: var(--pulse-navy); }
.thanks h2:focus { outline: none; }
.thanks__note { margin: 12px 0 0; font-size: .95rem; text-align: center; color: #3d4670; }

.noscript { margin: 12px 0 0; padding: 12px; background: #fff3d6; border: 1px solid var(--r2-orange); border-radius: 8px; font-weight: 600; }

/* Story */
.banner { display: block; width: 100%; max-height: 262px; object-fit: cover; }
.story { padding-top: 28px; padding-bottom: 36px; }
.story p { margin: 0 0 1.1em; }
.story__close { font-weight: 700; color: var(--pulse-navy); font-size: 1.1rem; }
.story__cta { margin-top: 1.4em; }

/* Footer */
.footer { background: var(--pulse-navy); color: #dfe6fb; padding: 20px 0; font-size: .9rem; text-align: center; }
.footer p { margin: 0; }
.footer a { color: #fff; }

@media (min-width: 640px) {
  body { font-size: 18px; }
  .masthead__logo { width: 120px; }
  .masthead__title { font-size: 2.3rem; }
  .masthead__inner { gap: 24px; padding-top: 24px; padding-bottom: 24px; }
  .card { padding: 26px; }
  .btn { width: auto; min-width: 280px; }
  .btn--xl { width: 100%; }
  .story__cta .btn { display: inline-block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Gives the Turnstile widget its full 300px on a 360px phone. */
@media (max-width: 379px) {
  :root { --gutter: 16px; }
  .card { padding: 12px; }
}
