/* ============== Design tokens ============== */
:root {
  --color-blue: #0D3599;
  --color-orange: #F46545;
  --color-bg-soft: #ECF2FE;
  --color-pink: #EBB4D4;
  --color-white: #FFFFFF;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Onest", system-ui, sans-serif;

  --frame-width: 1200px;
  --header-height: 88px;
}

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

html, body { margin: 0; padding: 0; }

body {
  background: var(--color-bg-soft);
  font-family: var(--font-body);
  color: #0A1128;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; }

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

button { font: inherit; cursor: pointer; border: none; background: none; padding: 0; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ============== Sticky header ============== */
/* The visual header is baked into Frame 48. We overlay transparent anchor links
   on top of the SVG nav items so they become clickable. */
.site-header {
  position: absolute;
  top: 48px;
  left: 50%;
  transform: translateX(-50%);
  width: var(--frame-width);
  height: 72px;
  z-index: 50;
  pointer-events: none;
}

.site-header__inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.site-header__logo {
  position: absolute;
  left: 66px;
  top: 16px;
  width: 170px;
  height: 54px;
  pointer-events: auto;
}

.site-header__nav {
  position: absolute;
  left: 272px;
  top: 28px;
  display: flex;
  gap: 16px;
  pointer-events: auto;
}

.site-header__nav a {
  display: inline-block;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: 500;
  color: transparent;
  cursor: pointer;
  border-radius: 8px;
  transition: background .15s ease;
}

.site-header__nav a:hover {
  background: rgba(13, 53, 153, 0.06);
}

/* ============== Frame base ============== */
main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  overflow-x: hidden;
}

.frame {
  position: relative;
  width: var(--frame-width);
  margin: 0 auto;
  display: block;
}

.frame__bg {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* Transparent clickable overlay */
.frame__cta {
  position: absolute;
  display: block;
  cursor: pointer;
  border-radius: 12px;
  transition: background .15s ease;
}

.frame__cta:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Specific CTA positions (coordinates based on 1200px-wide frames) */

/* Frame 48 hero buttons */
.frame--48 .frame__cta--48-primary {
  left: 68px;
  top: 505px;
  width: 269px;
  height: 60px;
  border-radius: 14px;
}
.frame--48 .frame__cta--48-secondary {
  left: 351px;
  top: 505px;
  width: 323px;
  height: 60px;
  border-radius: 14px;
}

/* Frame 60 CTA */
.frame--60 .frame__cta--60 {
  right: 72px;
  bottom: 52px;
  width: 220px;
  height: 50px;
  border-radius: 10px;
}

/* Frame 69 CTA */
.frame--69 .frame__cta--69 {
  right: 72px;
  bottom: 48px;
  width: 230px;
  height: 54px;
  border-radius: 12px;
}

/* Frame 71 CTA */
.frame--71 .frame__cta--71 {
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%);
  width: 400px;
  height: 54px;
  border-radius: 12px;
}

/* Frame 74 CTAs */
.frame--74 .frame__cta--74-primary {
  left: 360px;
  bottom: 52px;
  width: 235px;
  height: 54px;
  border-radius: 12px;
}
.frame--74 .frame__cta--74-secondary {
  left: 610px;
  bottom: 52px;
  width: 235px;
  height: 54px;
  border-radius: 12px;
}

/* ============== Lead form over Frame 75 ============== */
/* Positions pulled directly from frame-75.svg rect coords:
     input 1: x=678, y=175, w=391, h=61.22, r=20
     input 2: x=678, y=239.98
     input 3: x=678, y=304.97
     button : x=678, y=388.78
   Frame size: 1200×538 */
.lead-form {
  position: absolute;
  top: 175px;
  left: 678px;
  width: 391px;
  display: flex;
  flex-direction: column;
  z-index: 5;
}

.lead-form__input {
  width: 100%;
  height: 61px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  color: #0A1128;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.lead-form__input + .lead-form__input {
  margin-top: 4px;
}

.lead-form__input::placeholder {
  color: #9AA4B8;
}

.lead-form__input:focus {
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(13, 53, 153, 0.12);
}

.lead-form__submit {
  width: 100%;
  height: 61px;
  margin-top: 23px;
  background: var(--color-blue);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  border-radius: 20px;
  transition: background .15s ease, transform .1s ease;
}

.lead-form__submit:hover {
  background: #0A2A7E;
}

.lead-form__submit:active {
  transform: translateY(1px);
}

.lead-form__submit:disabled {
  opacity: 0.75;
  cursor: progress;
}

.lead-form--sent .lead-form__submit {
  background: #2EA055;
  pointer-events: none;
  opacity: 1;
}

/* Honeypot — hidden from humans, still in DOM for bots */
.lead-form__honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

/* Status message under the form */
.lead-form__status {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  color: #fff;
  min-height: 18px;
}

.lead-form__status--success {
  color: #D6FFE4;
}

.lead-form__status--error {
  color: #FFD6CF;
}

/* Consent checkbox under the submit button */
.lead-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  cursor: pointer;
  user-select: none;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
}

.lead-form__consent-checkbox {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid #fff;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
  position: relative;
}

.lead-form__consent-checkbox:checked {
  background: #fff;
  border-color: #fff;
}

.lead-form__consent-checkbox:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 5px;
  width: 4px;
  height: 8px;
  border: solid var(--color-orange);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.lead-form__consent-checkbox:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.lead-form__consent-text a {
  color: #fff;
  text-decoration: underline;
}

.lead-form__consent-text a:hover {
  text-decoration: none;
}

/* ============== Site footer ============== */
.site-footer {
  width: 100%;
  padding: 28px 0;
  background: var(--color-bg-soft);
  border-top: 1px solid rgba(13, 53, 153, 0.08);
}

.site-footer__inner {
  width: var(--frame-width);
  max-width: 100%;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: rgba(10, 17, 40, 0.7);
}

.site-footer__brand {
  font-weight: 500;
}

.site-footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer__links a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(10, 17, 40, 0.3);
  text-underline-offset: 3px;
  transition: color .15s ease;
}

.site-footer__links a:hover {
  color: var(--color-blue);
}

/* ============== Legal pages (privacy / consent) ============== */
.legal-body {
  background: var(--color-bg-soft);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-header {
  width: 100%;
  padding: 24px 0;
  border-bottom: 1px solid rgba(13, 53, 153, 0.08);
}

.legal-header__inner {
  width: 800px;
  max-width: 92%;
  margin: 0 auto;
}

.legal-header__home {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-blue);
  text-decoration: none;
}

.legal-header__home:hover {
  text-decoration: underline;
}

.legal {
  flex: 1;
  width: 800px;
  max-width: 92%;
  margin: 0 auto;
  padding: 48px 0 72px;
  color: #0A1128;
  font-size: 16px;
  line-height: 1.7;
}

.legal h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.2;
  color: var(--color-blue);
  margin: 0 0 12px;
}

.legal__meta {
  color: rgba(10, 17, 40, 0.6);
  font-size: 14px;
  margin: 0 0 40px;
}

.legal h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.3;
  color: var(--color-blue);
  margin: 40px 0 12px;
}

.legal p,
.legal ul {
  margin: 0 0 16px;
}

.legal ul {
  padding-left: 20px;
}

.legal li {
  margin-bottom: 6px;
}

.legal a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal a:hover {
  text-decoration: none;
}

.legal strong {
  font-weight: 600;
  color: #0A1128;
}

/* ============== Responsive ============== */
/* The page is designed at 1200px desktop. On smaller screens we scale
   the entire canvas down so the pixel-perfect layout is preserved. */

@media (max-width: 1199px) {
  body { background: var(--color-bg-soft); }
  body:not(.legal-body) main { transform-origin: top center; }
  .site-header { display: none; }
}

@media (max-width: 1199px) and (min-width: 960px) {
  body:not(.legal-body) main { transform: scale(0.8); width: 125%; margin-left: -12.5%; }
}

@media (max-width: 959px) and (min-width: 720px) {
  body:not(.legal-body) main { transform: scale(0.6); width: 166.66%; margin-left: -33.33%; }
}

@media (max-width: 719px) and (min-width: 540px) {
  body:not(.legal-body) main { transform: scale(0.45); width: 222%; margin-left: -61%; }
}

@media (max-width: 539px) {
  body:not(.legal-body) main { transform: scale(0.32); width: 312.5%; margin-left: -106%; }
}
