/* Aspekta is the Virtuoso heading typeface. Drop Aspekta-500.woff2 / Aspekta-600.woff2
   into /public/fonts to use it; until then headings fall back to Inter. */
@font-face { font-family: "Aspekta"; src: url("/fonts/Aspekta-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Aspekta"; src: url("/fonts/Aspekta-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --blue: #2776FB;
  --blue-hover: #1663E6;
  --navy: #0F1554;
  --bg: #F4F7FE;
  --surface: #FFFFFF;
  --tint: #E8F0FF;
  --tint-strong: #D6E4FF;
  --border: #DCE3F1;
  --text: #3A4062;
  --muted: #6B7291;
  --error: #C4262E;
  --error-bg: #FDECEC;
  --success: #0E8A5F;
  --radius-lg: 24px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 21, 84, .04), 0 12px 40px -12px rgba(15, 21, 84, .16);
  --font-head: "Aspekta", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
strong { color: var(--navy); font-weight: 600; }
a { color: var(--blue); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #0F1554 0%, #16287F 45%, #2776FB 100%);
  padding: 28px 0 150px;
}
.hero__pattern {
  position: absolute; inset: 0;
  opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='46' viewBox='0 0 80 46'%3E%3Cpath d='M40 0 80 23 40 46 0 23Z' fill='none' stroke='%23fff' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 80px 46px;
  mask-image: linear-gradient(115deg, transparent 20%, #000 75%);
  -webkit-mask-image: linear-gradient(115deg, transparent 20%, #000 75%);
}
.hero .wrap { position: relative; }
.brand { display: inline-block; }
.brand img { width: 168px; }
.hero__body { max-width: 760px; margin-top: 64px; }
.hero h1 {
  font: 600 clamp(2rem, 4.6vw, 3.25rem)/1.15 var(--font-head);
  letter-spacing: -0.02em;
  margin: 20px 0 20px;
  color: #fff;
}
.hero h1 .accent { color: #A9C8FF; }
.lede { font-size: 1.125rem; color: rgba(255,255,255,.82); margin: 0; max-width: 680px; }
.lede strong { color: #fff; }

.pill {
  display: inline-flex; align-items: center;
  background: var(--tint); color: var(--navy);
  font: 600 .75rem/1 var(--font-body);
  letter-spacing: .04em;
  padding: 7px 12px;
  border-radius: 999px;
}
.pill--on-dark { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.22); text-transform: uppercase; }

.points { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.points li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px; border-radius: var(--radius);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
}
.points strong { display: block; color: #fff; font-size: .975rem; margin-bottom: 2px; }
.points span { color: rgba(255,255,255,.75); font-size: .9rem; }
.icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--blue);
}
.icon svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Card ---------- */
main { margin-top: -96px; position: relative; }
.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  padding: 44px 48px 48px;
}
.card__head h2, .success h2 {
  font: 600 2rem/1.2 var(--font-head); letter-spacing: -0.01em;
  color: var(--navy); margin: 0 0 8px;
}
.card__head p { margin: 0; color: var(--muted); }
.req { color: var(--blue); font-weight: 600; }
.opt { color: var(--muted); font-weight: 400; font-size: .8125rem; margin-left: 6px; }

.section { border: 0; padding: 32px 0 0; margin: 32px 0 0; border-top: 1px solid var(--border); min-width: 0; }
.section legend {
  float: left; width: 100%; padding: 0; margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
  font: 600 1.25rem/1.3 var(--font-head); color: var(--navy);
}
.section legend + * { clear: both; }
.section__intro { margin: 0 0 14px; color: var(--text); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.section > .field { margin-top: 18px; }
.section > .grid { margin-top: 18px; }
.section > .grid:first-of-type { margin-top: 0; }
label { font-weight: 500; color: var(--navy); font-size: .9375rem; margin-bottom: 7px; }

input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  font: inherit; color: var(--navy);
  background: #FBFCFF;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
textarea { resize: vertical; min-height: 64px; }
input::placeholder, textarea::placeholder { color: #9AA1BA; }
input:hover, textarea:hover, select:hover { border-color: #C3CEE6; }
input:focus, textarea:focus, select:focus {
  outline: none; border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 4px rgba(39, 118, 251, .15);
}
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.hint { margin: 6px 0 0; font-size: .8125rem; color: var(--muted); }

.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--error); background: #FFFBFB; }
.error { margin: 6px 0 0; font-size: .8125rem; color: var(--error); font-weight: 500; }
.error:empty { display: none; }

/* Chips (checkbox cards) */
.chips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chip { position: relative; margin: 0; cursor: pointer; font-weight: 500; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: flex; align-items: center; gap: 12px;
  min-height: 52px; height: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #FBFCFF;
  color: var(--navy); font-size: .9375rem;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.chip span::before {
  content: ""; flex: none; width: 20px; height: 20px; border-radius: 6px;
  border: 1.5px solid #B9C4DC; background: #fff;
  transition: background .15s, border-color .15s;
}
.chip:hover span { border-color: #C3CEE6; }
.chip input:checked + span { border-color: var(--blue); background: var(--tint); }
.chip input:checked + span::before {
  border-color: var(--blue);
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(39, 118, 251, .2); border-color: var(--blue); }
.chips.is-invalid .chip span { border-color: #EDB7BA; }
.chips + .error { margin-top: 8px; }

/* Honeypot */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Submit */
.submit { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--border); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.turnstile:empty { display: none; }
.form-error {
  margin: 0; width: 100%;
  background: var(--error-bg); color: var(--error);
  border-radius: var(--radius-sm); padding: 12px 16px; font-weight: 500; font-size: .9375rem;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  font: 600 1rem/1 var(--font-body);
  color: #fff; background: var(--blue);
  border: 0; border-radius: 12px;
  padding: 16px 26px; cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 20px -8px rgba(39, 118, 251, .6);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--blue-hover); transform: translateY(-1px); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(39, 118, 251, .3); }
.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn__spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading .btn__arrow { display: none; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn--ghost { background: var(--tint); color: var(--navy); box-shadow: none; }
.btn--ghost:hover { background: var(--tint-strong); }
@keyframes spin { to { transform: rotate(360deg); } }
.fine { margin: 0; font-size: .8125rem; color: var(--muted); max-width: 560px; }

/* Success */
.success { text-align: center; padding: 40px 0 16px; outline: none; }
.success p { max-width: 460px; margin: 0 auto 28px; }
.success__icon {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; border-radius: 20px; background: var(--blue);
  margin-bottom: 20px;
  box-shadow: 0 12px 28px -10px rgba(39, 118, 251, .7);
}
.success__icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Training callout on the confirmation screen */
.training {
  display: flex; align-items: center; gap: 18px;
  margin: 0 0 20px; padding: 20px 22px;
  text-align: left;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #0F1554 0%, #1A3BB3 60%, #2776FB 100%);
  color: #fff;
}
.training__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.training__icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.training__body { flex: 1; min-width: 0; }
.training__body strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 2px; }
.training__body span { display: block; color: rgba(255,255,255,.8); font-size: .9rem; }
.training__body b { color: #fff; font-weight: 600; }
.training__btn { flex: none; background: #fff; color: var(--navy); box-shadow: none; padding: 13px 20px; }
.training__btn:hover { background: var(--tint); }
@media (max-width: 640px) {
  .training { flex-direction: column; align-items: flex-start; }
}

/* What happens next */
.journey {
  margin-top: 28px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
}
.journey__title { font: 600 1.0625rem/1.3 var(--font-head); color: var(--navy); margin: 0 0 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 15px; left: 42px; right: -6px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--tint-strong) 0 6px, transparent 6px 12px);
}
.step { position: relative; display: flex; flex-direction: column; gap: 12px; }
.step__num {
  position: relative; z-index: 1;
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--tint); color: var(--navy);
  font: 600 .875rem/1 var(--font-body);
  box-shadow: 0 0 0 4px var(--bg);
}
.step:first-child .step__num { background: var(--blue); color: #fff; }
.step strong { display: block; font-size: .9375rem; margin-bottom: 3px; }
.step span:not(.step__num) { display: block; font-size: .875rem; color: var(--muted); line-height: 1.5; }
.journey--next { margin: 8px 0 32px; }
.journey--next .step:first-child strong::after {
  content: "Up next"; margin-left: 8px; vertical-align: 2px;
  font: 600 .6875rem/1 var(--font-body); letter-spacing: .03em; text-transform: uppercase;
  color: var(--blue); background: var(--tint); padding: 4px 8px; border-radius: 999px;
}

/* Footer */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 40px; padding-bottom: 48px; color: var(--muted); font-size: .875rem; }
.footer img { width: 130px; }

[hidden] { display: none !important; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .points { grid-template-columns: 1fr; gap: 10px; }
  .hero__body { margin-top: 44px; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .step:not(:last-child)::after { top: 40px; bottom: -12px; left: 15px; right: auto; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--tint-strong) 0 6px, transparent 6px 12px); }
  .step { flex-direction: row; gap: 14px; }
  .step__num { flex: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding-bottom: 120px; }
  .lede { font-size: 1rem; }
  main { margin-top: -80px; }
  .card { padding: 28px 20px 32px; border-radius: 20px; }
  .card__head h2, .success h2 { font-size: 1.625rem; }
  .grid, .chips { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
