:root {
  color-scheme: light;
  --navy-950: #061729;
  --navy-900: #071c33;
  --navy-800: #0d2d4d;
  --navy-700: #174a72;
  --gold-600: #b67d13;
  --gold-500: #d59b2d;
  --gold-400: #e5b84f;
  --gold-100: #fff4d8;
  --ink: #102131;
  --muted: #5d6b79;
  --line: #d9e0e6;
  --surface: #f7f4ed;
  --white: #ffffff;
  --danger: #a52b2b;
  --success: #236a3b;
  --shadow: 0 24px 62px rgba(7, 28, 51, 0.14);
  --radius: 18px;
  --body-font: "Outfit", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display-font: Georgia, "Times New Roman", serif;
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(7, 28, 51, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 28, 51, 0.026) 1px, transparent 1px),
    var(--surface);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: var(--body-font);
  font-size: 1rem;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 0.95rem;
  transform: translateY(-180%);
  border-radius: 0.35rem;
  background: var(--navy-950);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

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

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
}

.brand-header {
  width: min(1180px, calc(100% - 3rem));
  min-height: 66px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-bottom: 1px solid rgba(7, 28, 51, 0.12);
  background: rgba(247, 244, 237, 0.94);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.72rem;
  color: var(--navy-950);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-950);
  color: var(--gold-400);
  font-family: var(--display-font);
  font-size: 0.93rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--display-font);
  font-size: 1.04rem;
  line-height: 1.1;
}

.brand small {
  margin-top: 0.14rem;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.header-note {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.035em;
}

main {
  overflow: clip;
}

.conversion-shell {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.25rem 0 1rem;
  display: grid;
  grid-template-columns: minmax(0, 650px) minmax(0, 496px);
  gap: 34px;
  align-items: start;
}

.offer-panel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 50px 206px;
  gap: 16px;
  align-content: start;
}

.offer-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--navy-700);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  flex: 0 0 auto;
  background: var(--gold-500);
  content: "";
}

h1,
h2 {
  margin: 0;
  color: var(--navy-950);
  font-family: var(--display-font);
  font-weight: 700;
  letter-spacing: -0.038em;
}

h1 {
  position: relative;
  max-width: 100%;
  font-size: clamp(2.65rem, 3.35vw, 2.85rem);
  line-height: 0.98;
}

.headline-stage {
  position: relative;
  height: 2.94em;
  display: block;
  overflow: hidden;
}

.headline-slide {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  text-wrap: balance;
  will-change: opacity, transform;
}

.headline-slide:first-child {
  opacity: 1;
  visibility: visible;
}

.headline-line {
  display: block;
  white-space: nowrap;
}

.headline-accent {
  color: var(--navy-700);
}

.headline-progress {
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: min(150px, 34%);
  height: 2px;
  display: block;
  overflow: hidden;
  background: rgba(7, 28, 51, 0.12);
}

.headline-progress span {
  width: 100%;
  height: 100%;
  display: block;
  transform: scaleX(1);
  transform-origin: left center;
  background: var(--gold-500);
}

.lede {
  max-width: 620px;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.48;
}

.proof-rail {
  height: 50px;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  overflow: hidden;
  border: 1px solid rgba(7, 28, 51, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(7, 28, 51, 0.05);
}

.proof-rail div {
  min-width: 0;
  padding: 0.38rem 0.62rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.34rem;
  border-right: 1px solid rgba(7, 28, 51, 0.1);
}

.proof-rail div:last-child {
  border-right: 0;
}

.proof-rail dt,
.proof-rail dd {
  margin: 0;
}

.proof-rail dt {
  color: var(--navy-950);
  font-family: var(--display-font);
  font-size: 1.15rem;
  font-weight: 800;
}

.proof-rail dd {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}

.authority-panel {
  height: 206px;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 206px;
  grid-auto-flow: dense;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 18% 10%, rgba(213, 155, 45, 0.18), transparent 34%),
    var(--navy-950);
  box-shadow: 0 18px 42px rgba(7, 28, 51, 0.16);
}

.outcomes-copy {
  min-width: 0;
  padding: 1.05rem 1.2rem 0.9rem;
  color: var(--white);
}

.panel-label {
  margin: 0 0 0.7rem;
  color: var(--gold-400);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.outcomes-copy ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.42rem;
  list-style: none;
}

.outcomes-copy li {
  position: relative;
  padding-left: 1.25rem;
  color: #edf3f7;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
}

.outcomes-copy li::before {
  position: absolute;
  top: 0.42em;
  left: 0;
  width: 0.52rem;
  height: 0.52rem;
  border: 2px solid var(--gold-400);
  border-radius: 50%;
  content: "";
}

.authority-note {
  margin: 0.75rem 0 0;
  color: #b9c7d3;
  font-size: 0.69rem;
  letter-spacing: 0.03em;
}

.portrait-card {
  width: 206px;
  height: 206px;
  margin: 0;
  overflow: hidden;
  border-left: 3px solid var(--gold-500);
  background: #d9d6d0;
}

.portrait-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 8%;
  transition: transform 600ms ease;
}

.authority-panel:hover .portrait-card img {
  transform: scale(1.025);
}

.lead-card {
  min-height: 610px;
  padding: 1.45rem 1.55rem 1.2rem;
  overflow: hidden;
  border: 1px solid rgba(7, 28, 51, 0.11);
  border-top: 4px solid var(--gold-500);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

#gatehouse-lead-form {
  min-height: 562px;
  display: flex;
  flex-direction: column;
}

.form-step {
  min-height: 548px;
  display: flex;
  flex-direction: column;
  animation: step-in 260ms ease both;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--navy-700);
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.step-meta span:last-child {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.progress-track {
  height: 5px;
  margin-top: 0.48rem;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ebef;
}

.progress-track span {
  width: 50%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-600), var(--gold-400));
}

.progress-track.is-complete span {
  width: 100%;
}

.form-heading {
  margin-top: 1rem;
}

.form-heading h2 {
  max-width: 16ch;
  font-size: clamp(2rem, 3vw, 2.45rem);
  line-height: 0.98;
}

.form-heading p {
  max-width: 39ch;
  margin: 0.58rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.42;
}

#step-two-title:focus {
  outline: 0;
}

.form-fields {
  margin-top: 1.05rem;
  display: grid;
  gap: 0.72rem;
}

.field-group {
  min-width: 0;
}

.field-group label {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
}

.field-group input,
.field-group select {
  width: 100%;
  height: 54px;
  padding: 0 0.95rem;
  border: 1px solid #cbd4dc;
  border-radius: 9px;
  background: #fbfcfd;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 500;
  box-shadow: inset 0 1px 2px rgba(7, 28, 51, 0.025);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.field-group select {
  padding-right: 2.5rem;
}

.field-group input::placeholder {
  color: #7d8996;
}

.field-group input:hover,
.field-group select:hover {
  border-color: #9baaba;
}

.field-group input:focus,
.field-group select:focus {
  border-color: var(--gold-600);
  outline: 0;
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(213, 155, 45, 0.18);
}

.field-group input[aria-invalid="true"],
.field-group select[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(165, 43, 43, 0.1);
}

.field-error,
.field-help {
  min-height: 0.92rem;
  margin: 0.2rem 0 0;
  font-size: 0.67rem;
  line-height: 1.25;
}

.field-error {
  color: var(--danger);
  font-weight: 600;
}

.field-help {
  color: var(--muted);
}

.primary-button {
  width: 100%;
  min-height: 58px;
  margin-top: 0.85rem;
  padding: 0.8rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(105deg, var(--gold-400), #f0c767);
  color: var(--navy-950);
  font-size: 0.93rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  box-shadow: 0 12px 24px rgba(182, 125, 19, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.primary-button svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  transition: transform 160ms ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: saturate(1.08);
  box-shadow: 0 16px 28px rgba(182, 125, 19, 0.28);
}

.primary-button:hover:not(:disabled) svg {
  transform: translateX(3px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-assurance {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.form-assurance p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.form-assurance ul {
  margin: 0.72rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}

.form-assurance li {
  position: relative;
  color: var(--navy-700);
  font-size: 0.66rem;
  font-weight: 700;
}

.form-assurance li + li::before {
  position: absolute;
  left: 0;
  color: var(--gold-500);
  content: "•";
}

.compact-fields {
  gap: 0.48rem;
}

.compact-fields .field-error,
.compact-fields .field-help {
  min-height: 0.7rem;
  margin-top: 0.13rem;
}

.consent-group {
  margin-top: 0.48rem;
  display: grid;
  gap: 0.42rem;
}

.check-row {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 0.55rem;
  align-items: start;
  color: #455564;
  font-size: 0.69rem;
  line-height: 1.36;
}

.check-row input {
  width: 17px;
  height: 17px;
  margin: 0.08rem 0 0;
  accent-color: var(--navy-900);
}

.check-row a {
  color: var(--navy-700);
  font-weight: 700;
  text-underline-offset: 2px;
}

.optional-consent {
  padding-top: 0.42rem;
  border-top: 1px solid var(--line);
}

.consent-error {
  margin: -0.25rem 0 0 1.55rem;
}

.back-button {
  margin: 0.55rem auto 0;
  padding: 0.28rem 0.5rem;
  border: 0;
  background: transparent;
  color: var(--navy-700);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-status {
  min-height: 1rem;
  margin: 0.4rem 0 0;
  color: var(--danger);
  font-size: 0.72rem;
  font-weight: 600;
  text-align: center;
}

.form-status.is-success {
  color: var(--success);
}

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

.noscript-note {
  margin: 0;
  color: var(--danger);
  font-size: 0.86rem;
}

.cookie-banner {
  position: fixed;
  z-index: 90;
  right: auto;
  bottom: 1rem;
  left: 1rem;
  width: min(460px, calc(100% - 2rem));
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: var(--navy-950);
  color: var(--white);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
}

.cookie-banner strong {
  font-size: 0.82rem;
}

.cookie-banner p {
  margin: 0.22rem 0 0;
  color: #cbd6df;
  font-size: 0.68rem;
  line-height: 1.35;
}

.cookie-actions {
  display: flex;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.cookie-actions button {
  min-height: 38px;
  padding: 0.52rem 0.72rem;
  border-radius: 7px;
  font-size: 0.68rem;
  font-weight: 800;
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--white);
}

.cookie-accept {
  border: 1px solid var(--gold-400);
  background: var(--gold-400);
  color: var(--navy-950);
}

/* Thank-you page compatibility. */
.success-card .primary-button {
  text-decoration: none;
}

@media (max-width: 1050px) {
  .brand-header,
  .conversion-shell {
    width: min(760px, calc(100% - 2rem));
  }

  .conversion-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "copy"
      "proof"
      "form"
      "authority";
    gap: 1rem;
  }

  .offer-panel {
    display: contents;
  }

  .offer-copy {
    grid-area: copy;
  }

  .proof-rail {
    grid-area: proof;
  }

  .authority-panel {
    grid-area: authority;
  }

  .lead-card {
    grid-area: form;
    width: min(100%, 610px);
    justify-self: center;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.65rem, 5vw, 2.85rem);
  }

  .lede {
    max-width: 680px;
  }
}

@media (max-width: 680px) {
  body {
    background-size: 32px 32px;
  }

  .brand-header {
    min-height: 60px;
  }

  .header-note {
    display: none;
  }

  .conversion-shell {
    padding-top: 1rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(1.45rem, 7.2vw, 2.85rem);
    line-height: 1;
  }

  .lede {
    font-size: 0.98rem;
  }

  .proof-rail {
    height: auto;
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-rail div {
    min-height: 44px;
  }

  .proof-rail div:nth-child(2) {
    border-right: 0;
  }

  .proof-rail div:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(7, 28, 51, 0.1);
  }

  .authority-panel {
    height: 142px;
    grid-template-columns: minmax(0, 1fr) 138px;
  }

  .outcomes-copy {
    padding: 0.82rem 0.9rem;
  }

  .panel-label {
    margin-bottom: 0.48rem;
    font-size: 0.61rem;
  }

  .outcomes-copy li {
    padding-left: 1rem;
    font-size: 0.69rem;
  }

  .authority-note {
    display: none;
  }

  .portrait-card {
    width: 138px;
    height: 142px;
  }

  .lead-card {
    min-height: 0;
    padding: 1.25rem 1.1rem 1rem;
  }

  #gatehouse-lead-form,
  .form-step {
    min-height: 0;
  }

  .form-heading h2 {
    font-size: clamp(2rem, 9vw, 2.45rem);
  }

  .form-assurance {
    margin-top: 1.2rem;
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-actions button {
    flex: 1;
  }
}

@media (max-width: 400px) {
  .brand-header,
  .conversion-shell {
    width: min(100% - 1.5rem, 380px);
  }

  .brand strong {
    font-size: 0.96rem;
  }

  h1 {
    font-size: clamp(1.45rem, 7.2vw, 1.8rem);
  }

  .authority-panel {
    grid-template-columns: minmax(0, 1fr) 118px;
  }

  .portrait-card {
    width: 118px;
  }

  .outcomes-copy li:last-child {
    display: none;
  }

  .lead-card {
    border-radius: 14px;
  }

  .step-meta {
    font-size: 0.61rem;
  }

  .check-row {
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
