:root {
  --navy-900: #0F1926;
  --navy-800: #1C2C40;
  --blue-600: #385273;
  --slate-500: #6C7A8C;
  --mist-100: #F0F1F2;

  --bg: #F0F1F2;
  --surface: #ffffff;
  --surface-soft: #f8f9fa;
  --text: #0F1926;
  --muted: #6C7A8C;
  --line: rgba(15, 25, 38, .12);
  --accent: #385273;
  --accent-strong: #1C2C40;
  --success: #385273;
  --danger: #b54747;
  --shadow: 0 24px 70px rgba(15, 25, 38, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 8%, rgba(56, 82, 115, .10), transparent 30rem),
    radial-gradient(circle at 92% 16%, rgba(108, 122, 140, .14), transparent 28rem),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; }

.page-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image:
    linear-gradient(rgba(28, 44, 64, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28, 44, 64, .035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 65%);
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(22px, 5vw, 72px) 0;
}

.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: clamp(150px, 15vw, 205px);
  height: auto;
  max-height: 78px;
}

.header-tag {
  color: var(--navy-800);
  border: 1px solid rgba(28, 44, 64, .14);
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(15, 25, 38, .05);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(480px, .95fr);
  gap: clamp(40px, 6vw, 92px);
  align-items: center;
  padding: clamp(38px, 6vh, 74px) clamp(22px, 5vw, 72px) 58px;
}

.hero-copy { max-width: 690px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  margin-bottom: 20px;
}
.eyebrow span { width: 28px; height: 2px; background: var(--blue-600); border-radius: 2px; }

h1, h2 { font-family: Manrope, Inter, sans-serif; margin: 0; }
h1 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: .99;
  letter-spacing: -.045em;
  max-width: 760px;
  color: var(--navy-900);
}
.hero-text {
  margin: 24px 0 0;
  max-width: 680px;
  color: #526173;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.7;
}

.service-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.service-row span {
  font-size: 12px;
  font-weight: 750;
  color: var(--navy-800);
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 82, 115, .15);
  background: rgba(255,255,255,.72);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(28, 44, 64, .12);
  border: 1px solid rgba(28, 44, 64, .12);
  border-radius: 18px;
  overflow: hidden;
  margin-top: 34px;
  max-width: 720px;
  box-shadow: 0 12px 34px rgba(15, 25, 38, .07);
}
.metric {
  background: rgba(255,255,255,.90);
  padding: 18px 14px;
  min-height: 102px;
}
.metric strong {
  display: block;
  font-family: Manrope, sans-serif;
  font-size: 24px;
  letter-spacing: -.03em;
  color: var(--blue-600);
}
.metric span { display: block; margin-top: 7px; color: var(--slate-500); font-size: 11px; line-height: 1.45; }

.trust-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.55;
  max-width: 610px;
}
.trust-note p { margin: 0; }
.trust-note strong { color: var(--navy-800); }
.trust-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-600);
  font-size: 12px;
  font-weight: 900;
}

.form-column { width: 100%; max-width: 610px; justify-self: end; }
.form-card {
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(28, 44, 64, .11);
  border-radius: 26px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -110px;
  top: -120px;
  background: rgba(56, 82, 115, .08);
  pointer-events: none;
}
.form-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--navy-900), var(--blue-600), var(--slate-500));
}
.form-card > * { position: relative; z-index: 1; }

.step-pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--blue-600);
  background: rgba(56, 82, 115, .08);
  border: 1px solid rgba(56, 82, 115, .18);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
}
.form-heading h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; margin-top: 14px; letter-spacing: -.025em; color: var(--navy-900); }
.form-heading p { margin: 11px 0 24px; color: var(--slate-500); font-size: 13px; line-height: 1.55; }

.field-grid { display: grid; gap: 14px; }
.field-grid.two-col { grid-template-columns: 1fr 1fr; }
.field { margin-bottom: 14px; }
.field label {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 750;
  color: var(--navy-800);
}
.field label > span:not(.optional) { color: var(--blue-600); }
.optional { color: #8793a1; font-size: 10px; font-weight: 600; }

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(28, 44, 64, .15);
  background: #fbfcfd;
  color: var(--navy-900);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  font-size: 13px;
}
input::placeholder, textarea::placeholder { color: #8b97a4; }
select { color-scheme: light; }
textarea { resize: vertical; min-height: 86px; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(56, 82, 115, .68);
  box-shadow: 0 0 0 3px rgba(56, 82, 115, .10);
  background: #fff;
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: rgba(181,71,71,.70); }
.field-error { display: block; min-height: 0; color: var(--danger); font-size: 10px; margin-top: 5px; }
.field.invalid .field-error { min-height: 13px; }

.submit-btn {
  width: 100%;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-600), var(--navy-800));
  border-radius: 13px;
  padding: 15px 18px;
  margin-top: 4px;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 12px 28px rgba(28, 44, 64, .22);
  transition: transform .16s ease, filter .16s ease, opacity .16s ease;
}
.submit-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { cursor: wait; opacity: .65; }

.privacy-copy {
  color: #7d8997;
  font-size: 10px;
  text-align: center;
  line-height: 1.55;
  margin: 12px 8px 0;
}
.form-status { min-height: 18px; margin-top: 10px; font-size: 12px; text-align: center; color: var(--danger); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.booking-section {
  position: relative;
  z-index: 2;
  padding: 42px clamp(18px, 5vw, 72px) 72px;
  min-height: 90vh;
  background: var(--navy-900);
  color: #fff;
}
.booking-header { text-align: center; max-width: 720px; margin: 0 auto 28px; display: grid; justify-items: center; }
.booking-section .step-pill {
  color: #fff;
  background: rgba(240, 241, 242, .10);
  border-color: rgba(240, 241, 242, .18);
}
.success-check {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(108, 122, 140, .20);
  border: 1px solid rgba(240, 241, 242, .28);
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  margin-bottom: 15px;
}
.booking-header h2 { font-size: clamp(30px, 4vw, 50px); letter-spacing: -.035em; line-height: 1.04; margin-top: 14px; color: #fff; }
.booking-header p { color: #cfd5dc; line-height: 1.6; margin: 14px 0 0; }
.calendly-shell {
  max-width: 1080px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 28px 70px rgba(0,0,0,.24);
  border: 1px solid rgba(240,241,242,.12);
}
.booking-note { text-align: center; color: #aab4c0; font-size: 11px; margin-top: 16px; }

.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(28, 44, 64, .12);
  padding: 22px clamp(22px, 5vw, 72px) 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 24px;
  align-items: center;
  color: var(--slate-500);
  font-size: 11px;
  background: rgba(255,255,255,.48);
}
.site-footer p { margin: 0; }
.site-footer div { display: flex; gap: 16px; }
.site-footer a { text-decoration: none; color: var(--navy-800); }
.site-footer a:hover { color: var(--blue-600); }
.site-footer .disclaimer { grid-column: 1 / -1; line-height: 1.55; max-width: 900px; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero-copy { max-width: 820px; }
  .form-column { max-width: 760px; justify-self: stretch; }
  .metrics { max-width: 760px; }
}

@media (max-width: 720px) {
  .site-header { padding-top: 14px; }
  .brand-logo { width: 150px; }
  .header-tag { display: none; }
  .hero { padding-top: 34px; gap: 34px; }
  h1 { font-size: clamp(38px, 11.5vw, 54px); }
  .hero-text { font-size: 15px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric { min-height: 90px; }
  .field-grid.two-col { grid-template-columns: 1fr; gap: 0; }
  .form-card { border-radius: 20px; }
  .booking-section { padding-left: 12px; padding-right: 12px; }
  .calendly-shell { border-radius: 16px; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer div { flex-wrap: wrap; }
}

@media (max-width: 420px) {
  .brand-logo { width: 138px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { padding: 15px 12px; }
  .metric strong { font-size: 21px; }
  .form-card { padding: 21px 16px; }
  input, select, textarea { font-size: 16px; }
}

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

/* Successful submission state shown inside the form before Calendly redirect. */
.submit-success {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 34px 18px;
}
.submit-success-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-600);
  color: #fff;
  font-size: 25px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(56, 82, 115, .20);
}
.submit-success h3 {
  margin: 18px 0 8px;
  font-family: Manrope, Inter, sans-serif;
  color: var(--navy-900);
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -.025em;
}
.submit-success p {
  margin: 0;
  max-width: 420px;
  color: #526173;
  font-size: 14px;
  line-height: 1.6;
}
.submit-success .submit-success-small {
  margin-top: 8px;
  font-size: 12px;
  color: var(--slate-500);
  overflow-wrap: anywhere;
}
.redirect-row {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--navy-800);
  font-size: 12px;
  font-weight: 700;
}
.redirect-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(56, 82, 115, .18);
  border-top-color: var(--blue-600);
  border-radius: 50%;
  animation: rr-spin .75s linear infinite;
}
@keyframes rr-spin { to { transform: rotate(360deg); } }

/* Extra phone safeguards for small screens. */
@media (max-width: 560px) {
  .site-header { padding-left: 16px; padding-right: 16px; }
  .hero { padding-left: 16px; padding-right: 16px; padding-bottom: 38px; }
  .hero-copy { width: 100%; }
  .service-row { gap: 8px; }
  .service-row span { font-size: 11px; padding: 8px 10px; }
  .metrics { width: 100%; }
  .form-column { min-width: 0; }
  .form-card { width: 100%; }
  .submit-btn { min-height: 52px; }
  .site-footer { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 360px) {
  .site-header { padding-left: 12px; padding-right: 12px; }
  .hero { padding-left: 12px; padding-right: 12px; }
  .form-card { padding: 20px 13px; }
  .service-row span { width: 100%; text-align: center; }
  .submit-success { min-height: 320px; padding-left: 8px; padding-right: 8px; }
}
