:root {
  --ink: #2f455c;
  --muted: #60758a;
  --cream: #f1f9fc;
  --paper: #ffffff;
  --line: #d7e6eb;
  --green: #21d0b2;
  --green-dark: #168f82;
  --green-pale: #e4fcf7;
  --cyan: #1dcdfe;
  --mint: #34f5c5;
  --coral: #1dcdfe;
  --shadow: 0 24px 70px rgba(47, 69, 92, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 20%, rgba(29, 205, 254, 0.16), transparent 27rem),
    radial-gradient(circle at 92% 78%, rgba(52, 245, 197, 0.16), transparent 28rem),
    var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-dark); text-underline-offset: 3px; }

button, input { font: inherit; }

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

button, a, input, label { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 4px solid rgba(29, 205, 254, 0.42);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 12px 16px;
  color: white;
  border-radius: 10px;
  background: var(--ink);
  font-weight: 800;
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.mobile-start-button { display: none; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.brand-logo {
  display: block;
  width: 214px;
  height: auto;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 13px 13px 13px 5px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(33, 208, 178, 0.25);
}

.header-note {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 22px auto 48px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
}

.intro { padding: 28px 0; }

.eyebrow, .mini-label {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 690px;
  font-size: clamp(3.3rem, 6vw, 5.8rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

h1::after {
  content: "";
  display: block;
  width: 76px;
  height: 7px;
  margin-top: 28px;
  border-radius: 99px;
  background: var(--coral);
}

.intro-copy {
  max-width: 570px;
  margin: 26px 0 30px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.68;
}

.assurances { display: grid; gap: 14px; }

.assurance {
  display: flex;
  align-items: center;
  gap: 13px;
}

.assurance .check {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--green-dark);
  background: var(--green-pale);
  font-weight: 900;
}

.assurance div { display: flex; flex-direction: column; gap: 2px; }
.assurance strong { font-size: 0.94rem; }
.assurance div span { color: var(--muted); font-size: 0.84rem; }

.independence-note {
  max-width: 560px;
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(47, 69, 92, 0.11);
  color: #778095;
  font-size: 0.75rem;
  line-height: 1.55;
}

.form-card {
  position: relative;
  min-height: 660px;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 32px;
  background: rgba(255, 254, 250, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 130px;
  height: 130px;
  border-radius: 0 0 0 100%;
  background: linear-gradient(135deg, transparent, rgba(29, 205, 254, 0.1));
  pointer-events: none;
}

.progress-wrap { margin-bottom: 30px; }

.progress-copy {
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.progress-track {
  height: 6px;
  border-radius: 99px;
  background: #e8ebe9;
  overflow: hidden;
}

.progress-track span {
  display: block;
  width: 50%;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 280ms ease;
}

.form-step { display: none; }
.form-step.is-active { display: block; animation: enter 300ms ease both; }

@keyframes enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-heading { margin-bottom: 24px; }
.form-heading h2, .success-state h2 {
  margin: 0 0 8px;
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  letter-spacing: -0.045em;
}
.form-heading > p:not(.mini-label), .success-state > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.form-heading .required-note {
  margin-top: 10px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 720;
}

.field, .profile-fieldset { margin: 0 0 17px; padding: 0; border: 0; }
.field > label, .fieldset legend, .income-field > label {
  display: block;
  margin: 0 0 7px;
  font-size: 0.82rem;
  font-weight: 780;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: white;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(29, 205, 254, 0.13);
}

.field input::placeholder { color: #a4acb7; }

.phone-field, .money-field {
  display: flex;
  align-items: center;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.phone-field:focus-within, .money-field:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(29, 205, 254, 0.13);
}

.phone-field input, .money-field input {
  min-width: 0;
  flex: 1;
  height: 48px !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.country-code {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 13px;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 750;
}

.money-field > span:first-child {
  padding-left: 15px;
  color: var(--green-dark);
  font-weight: 850;
}

.money-field .currency { padding-right: 15px; color: var(--muted); font-size: 0.75rem; font-weight: 750; }

.segmented-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.segmented-options label, .profile-grid label { position: relative; cursor: pointer; }
.segmented-options input, .profile-grid input { position: absolute; opacity: 0; pointer-events: none; }
.segmented-options span {
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.segmented-options input:checked + span, .profile-grid input:checked + span {
  color: var(--green-dark);
  border-color: var(--green);
  background: var(--green-pale);
  box-shadow: inset 0 0 0 1px var(--green);
}

.segmented-options input:focus-visible + span, .profile-grid input:focus-visible + span {
  outline: 3px solid rgba(29, 205, 254, 0.25);
  outline-offset: 2px;
}

.consents { margin: 21px 0; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 0.75rem; line-height: 1.55; }
.checkbox-row + .checkbox-row { margin-top: 13px; }
.checkbox-row input { width: 18px; height: 18px; flex: 0 0 18px; margin: 1px 0 0; accent-color: var(--green); }
.checkbox-row em { color: var(--green-dark); font-style: normal; font-weight: 800; }

.primary-button, .secondary-button {
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  font-weight: 820;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.primary-button {
  width: 100%;
  color: white;
  background: var(--ink);
  box-shadow: 0 12px 24px rgba(47, 69, 92, 0.22);
}

.primary-button:hover { background: #25394e; transform: translateY(-1px); }
.primary-button:active, .secondary-button:active { transform: translateY(1px); }
.primary-button:disabled { cursor: wait; opacity: 0.65; transform: none; box-shadow: none; }
.secondary-button { padding: 0 20px; color: var(--ink); background: #eef0ef; }
.secondary-button:hover { background: #e3e7e5; }

.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profile-grid span {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 760;
  text-align: left;
}

.profile-grid span::after {
  content: "✓";
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  margin-left: auto;
  display: none;
  place-items: center;
  color: var(--ink);
  border-radius: 50%;
  background: var(--mint);
  font-size: 0.9rem;
  font-weight: 900;
}

.profile-grid input:checked + span::after { display: grid; }

.income-field { margin-top: 22px; }
.field-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 0.72rem; }
.institution-note { margin: 20px 0; color: #7b8496; font-size: 0.7rem; line-height: 1.45; }
.turnstile-container { min-height: 65px; margin: 0 0 18px; }
.submit-error { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; color: #8d2f27; background: #fff0ee; font-size: 0.82rem; font-weight: 750; line-height: 1.45; }
.submit-error:focus { outline: 3px solid rgba(182, 66, 54, 0.2); outline-offset: 2px; }
.button-row { display: grid; grid-template-columns: 0.7fr 1.3fr; gap: 10px; }

.field-error { display: none; margin-top: 6px; color: #b64236; font-size: 0.7rem; font-weight: 700; }
.field.has-error .field-error,
.fieldset.has-error .field-error,
.profile-fieldset.has-error .field-error,
.consents.has-error .consent-error { display: block; }
.field.has-error input:not([type="radio"]),
.phone-field.has-error { border-color: #d85b4d; }

.success-state { padding: 55px 10px 20px; text-align: center; animation: enter 350ms ease both; }
.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--cyan), var(--green), var(--mint));
  box-shadow: 0 14px 30px rgba(33, 208, 178, 0.28);
  font-size: 2rem;
  font-weight: 900;
}
.success-state > p { max-width: 400px; margin: 0 auto; }
.demo-notice { max-width: 410px; margin: 25px auto; padding: 14px; border-radius: 12px; color: var(--ink); background: rgba(29, 205, 254, 0.12); font-size: 0.78rem; line-height: 1.5; }
.success-state .success-reference { margin: -12px auto 24px; color: var(--muted); font-size: 0.75rem; overflow-wrap: anywhere; }

.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 25px auto 0;
  padding: 42px 0 35px;
  border-top: 1px solid rgba(47, 69, 92, 0.14);
  color: var(--muted);
  font-size: 0.86rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: clamp(28px, 5vw, 70px);
}
.footer-about img { width: min(230px, 100%); height: auto; }
.footer-about p, .footer-column p {
  max-width: 390px;
  margin: 18px 0 0;
  line-height: 1.65;
}
.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-column h2 {
  margin: 2px 0 8px;
  color: var(--ink);
  font-size: 1.05rem;
}
.footer-column a { font-weight: 700; }
.footer-email { overflow-wrap: anywhere; }
.footer-disclaimer {
  margin: 36px 0 0;
  padding: 25px 0;
  border-top: 1px solid rgba(47, 69, 92, 0.12);
  border-bottom: 1px solid rgba(47, 69, 92, 0.12);
  line-height: 1.75;
}
.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.76rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .page-shell { grid-template-columns: 1fr; max-width: 680px; }
  .intro { padding-bottom: 0; }
  h1 br { display: none; }
  .form-card { min-height: auto; }
}

@media (max-width: 600px) {
  body { background: var(--cream); }
  .site-header, .page-shell, .site-footer { width: min(100% - 20px, 680px); }
  .site-header { min-height: 68px; }
  .brand-logo { width: 184px; }
  .header-note { display: none; }
  .page-shell { margin-top: 0; margin-bottom: 28px; gap: 22px; }
  .intro { padding: 10px 4px 0; }
  .eyebrow { margin-bottom: 9px; font-size: 0.8rem; }
  h1 { font-size: clamp(2.65rem, 13vw, 3.5rem); line-height: 1; letter-spacing: -0.06em; }
  h1::after { width: 62px; height: 6px; margin-top: 18px; }
  .intro-copy { margin: 18px 0; font-size: 1.08rem; line-height: 1.55; }
  .mobile-start-button {
    min-height: 58px;
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    border-radius: 15px;
    background: var(--ink);
    box-shadow: 0 12px 24px rgba(47, 69, 92, 0.18);
    font-size: 1.05rem;
    font-weight: 850;
    text-decoration: none;
  }
  .assurances { gap: 12px; }
  .assurance { align-items: flex-start; }
  .assurance .check { width: 34px; height: 34px; flex-basis: 34px; }
  .assurance strong { font-size: 1rem; }
  .assurance div span { font-size: 0.9rem; line-height: 1.4; }
  .independence-note { margin-top: 22px; font-size: 0.83rem; line-height: 1.55; }
  .form-card {
    min-height: auto;
    padding: 25px 16px;
    border-radius: 20px;
    scroll-margin-top: 10px;
    box-shadow: 0 15px 45px rgba(47, 69, 92, 0.11);
  }
  .progress-wrap { margin-bottom: 26px; }
  .progress-copy { gap: 12px; font-size: 0.86rem; }
  .progress-track { height: 8px; }
  .form-heading { margin-bottom: 24px; }
  .form-heading h2, .success-state h2 { font-size: 1.85rem; line-height: 1.08; }
  .form-heading > p:not(.mini-label), .success-state > p { font-size: 1rem; }
  .form-heading .required-note { font-size: 0.88rem; line-height: 1.45; }
  .field, .profile-fieldset { margin-bottom: 21px; }
  .field > label, .fieldset legend, .income-field > label { margin-bottom: 9px; font-size: 1rem; }
  .field input[type="text"], .field input[type="tel"], .field input[type="email"] {
    height: 60px;
    padding: 0 16px;
    border-width: 2px;
    border-radius: 14px;
    font-size: 1.05rem;
  }
  .phone-field, .money-field { min-height: 60px; border-width: 2px; border-radius: 14px; }
  .phone-field input, .money-field input { height: 58px !important; font-size: 1.05rem; }
  .country-code { padding: 0 12px; font-size: 0.95rem; }
  .segmented-options { gap: 7px; }
  .segmented-options span { min-height: 54px; border-width: 2px; font-size: 0.92rem; }
  .consents { margin: 24px 0; }
  .checkbox-row { gap: 12px; font-size: 0.92rem; line-height: 1.55; }
  .checkbox-row input { width: 24px; height: 24px; flex-basis: 24px; }
  .checkbox-row a { font-weight: 800; }
  .field-error { margin-top: 8px; font-size: 0.86rem; line-height: 1.4; }
  .primary-button, .secondary-button { min-height: 60px; border-radius: 15px; font-size: 1.04rem; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-grid span { min-height: 72px; padding: 14px 15px; border-width: 2px; font-size: 1rem; line-height: 1.35; }
  .field-hint { margin-top: 8px; font-size: 0.86rem; line-height: 1.4; }
  .institution-note { font-size: 0.82rem; line-height: 1.5; }
  .button-row { grid-template-columns: 1fr; }
  .button-row .secondary-button { order: 2; }
  .success-state { padding: 36px 4px 12px; }
  .site-footer { margin-top: 12px; padding: 32px 5px 24px; font-size: 0.92rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-about img { width: 205px; }
  .footer-column { gap: 14px; }
  .footer-column h2 { font-size: 1.12rem; }
  .footer-disclaimer { margin-top: 30px; padding: 22px 0; line-height: 1.7; }
  .footer-bottom { flex-direction: column; gap: 8px; font-size: 0.8rem; line-height: 1.5; }
}

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