:root {
  --green-950: #082c1b;
  --green-800: #0d6237;
  --green-700: #118044;
  --green-600: #15944e;
  --green-500: #20a85c;
  --green-100: #daf1e2;
  --green-50: #f0f9f3;
  --ink: #183027;
  --muted: #65766e;
  --line: #dce7e0;
  --paper: #ffffff;
  --background: #f7faf8;
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(17, 87, 49, 0.12);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: transparent;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background: transparent;
}

button, input { font: inherit; }
button { cursor: pointer; }

.landing-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(32px, 6vw, 84px) 0;
}

.step[hidden] { display: none !important; }
.step { animation: step-in .45s cubic-bezier(.22, 1, .36, 1); }

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

#intro-step {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(480px, 1.1fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  min-height: min(720px, 86vh);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green-700);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--green-500);
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin: 20px 0 24px;
  max-width: 720px;
  color: var(--green-950);
  font-size: clamp(3rem, 5.5vw, 5.35rem);
  line-height: .99;
  letter-spacing: -.058em;
}

h1 em { color: var(--green-600); font-style: normal; }

.hero-lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.75;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 34px 0;
}

.benefit {
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.75);
}

.benefit strong, .benefit span { display: block; }
.benefit strong { color: var(--green-700); font-size: 1rem; }
.benefit span { margin-top: 3px; color: var(--muted); font-size: .74rem; line-height: 1.35; }

.primary-button, .secondary-button {
  border: 0;
  border-radius: 14px;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-width: 210px;
  padding: 17px 25px;
  color: #fff;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  box-shadow: 0 12px 28px rgba(21, 148, 78, .25);
}

.primary-button:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(21, 148, 78, .32); }
.primary-button:focus-visible, .secondary-button:focus-visible, .back-button:focus-visible { outline: 3px solid rgba(32, 168, 92, .3); outline-offset: 3px; }
.primary-button svg, .back-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button-note { display: inline-block; margin: 0 0 0 18px; color: var(--muted); font-size: .78rem; }

.hero-visual { position: relative; min-width: 0; }
.visual-glow { position: absolute; inset: 12% 2%; border-radius: 50%; background: rgba(32,168,92,.16); filter: blur(65px); }
.freight-illustration { position: relative; display: block; width: 100%; filter: drop-shadow(0 26px 45px rgba(13,98,55,.08)); }

.floating-card {
  position: absolute;
  padding: 13px 17px;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 14px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 14px 35px rgba(20,67,42,.13);
  backdrop-filter: blur(12px);
}
.floating-card span, .floating-card strong { display: block; }
.floating-card span { color: var(--muted); font-size: .68rem; }
.floating-card strong { margin-top: 3px; color: var(--green-950); font-size: .84rem; }
.floating-card--route { left: 1%; bottom: 10%; }
.floating-card--load { right: 1%; bottom: 22%; }
.floating-card--load strong { color: var(--green-600); font-size: 1.3rem; }

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 28px;
  padding: 8px 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}
.back-button:hover { color: var(--green-700); }

.form-layout {
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(500px, 1.22fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
}

.form-context h2, .success-step h2 {
  margin: 18px 0 22px;
  color: var(--green-950);
  font-size: clamp(2.25rem, 4vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.form-context > p { color: var(--muted); line-height: 1.75; }

.feature-list { display: grid; gap: 12px; margin: 30px 0; padding: 0; list-style: none; }
.feature-list li { display: flex; gap: 12px; align-items: center; color: #385047; font-size: .94rem; }
.feature-list span { display: grid; flex: 0 0 25px; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: var(--green-700); background: var(--green-100); font-weight: 800; }

.context-quote { padding: 20px 22px; border-left: 3px solid var(--green-500); border-radius: 0 14px 14px 0; background: var(--green-50); }
.context-quote strong, .context-quote span { display: block; }
.context-quote strong { color: var(--green-950); font-size: .9rem; }
.context-quote span { margin-top: 5px; color: var(--muted); font-size: .75rem; }

.form-card {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(220,231,224,.9);
  border-radius: 28px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.form-heading { margin-bottom: 28px; }
.step-label { color: var(--green-700); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.form-heading h3 { margin: 7px 0 7px; color: var(--green-950); font-size: clamp(1.65rem, 3vw, 2.25rem); letter-spacing: -.035em; }
.form-heading p { margin: 0; color: var(--muted); font-size: .86rem; }

.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field { display: block; margin-bottom: 15px; }
.field > span, .field > label, .fleet-field legend { display: block; margin: 0 0 7px; color: #344c42; font-size: .73rem; font-weight: 700; }
.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cedbd3;
  border-radius: 10px;
  color: var(--ink);
  background: #fbfdfc;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.field input:focus { border-color: var(--green-500); background: #fff; box-shadow: 0 0 0 4px rgba(32,168,92,.11); }
.field small { display: none; margin-top: 5px; color: var(--danger); font-size: .7rem; }
.field--error input { border-color: var(--danger); }
.field--error small { display: block; }
.country-combobox { position: relative; }
.country-combobox input { padding-right: 46px; }
.country-toggle {
  position: absolute;
  top: 1px;
  right: 1px;
  display: grid;
  width: 44px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 0 9px 9px 0;
  color: var(--muted);
  background: transparent;
}
.country-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.country-combobox--open .country-toggle svg { transform: rotate(180deg); }
.country-options {
  position: absolute;
  z-index: 20;
  top: calc(100% + 7px);
  right: 0;
  left: 0;
  max-height: 240px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(20, 67, 42, .16);
}
.country-options[hidden] { display: none; }
.country-option, .country-empty { padding: 10px 11px; border-radius: 8px; font-size: .82rem; }
.country-option { color: var(--ink); cursor: pointer; }
.country-option:hover, .country-option--active { color: var(--green-800); background: var(--green-50); }
.country-empty { color: var(--muted); }

.fleet-field { margin: 4px 0 24px; padding: 0; border: 0; }
.fleet-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fleet-options label { position: relative; }
.fleet-options input { position: absolute; opacity: 0; pointer-events: none; }
.fleet-options span { display: grid; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fbfdfc; font-size: .82rem; font-weight: 700; cursor: pointer; transition: .18s ease; }
.fleet-options input:checked + span { border-color: var(--green-500); color: var(--green-800); background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green-500); }
.fleet-options input:focus-visible + span { outline: 3px solid rgba(32,168,92,.25); outline-offset: 2px; }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-button { width: 100%; }
.submit-button:disabled { cursor: wait; opacity: .65; transform: none; }
.form-status { min-height: 20px; margin: 12px 0 0; color: var(--danger); font-size: .78rem; text-align: center; }
.privacy-note { margin: 4px auto 0; max-width: 520px; color: #87958e; font-size: .66rem; line-height: 1.55; text-align: center; }

.success-step { max-width: 680px; min-height: min(620px, 80vh); margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.success-icon { display: grid; width: 70px; height: 70px; margin-bottom: 24px; place-items: center; border-radius: 50%; color: #fff; background: var(--green-600); box-shadow: 0 16px 35px rgba(21,148,78,.24); font-size: 2rem; font-weight: 800; }
.success-step p { max-width: 540px; color: var(--muted); line-height: 1.7; }
.redirect-note { margin: 8px 0 16px; color: var(--muted); font-size: .88rem; }
.redirect-note a { color: var(--green-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.redirect-note a:hover { color: var(--green-600); }
.redirect-note span { font-weight: 800; color: var(--green-800); }
.secondary-button { margin-top: 18px; padding: 14px 22px; border: 1px solid var(--line); color: var(--green-800); background: #fff; }
.secondary-button:hover { border-color: var(--green-500); transform: translateY(-1px); }

@media (max-width: 980px) {
  #intro-step { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { max-width: 740px; }
  .hero-visual { max-width: 720px; margin: -25px auto 0; }
  .form-layout { grid-template-columns: 1fr; gap: 38px; }
  .form-context { max-width: 700px; }
}

@media (max-width: 620px) {
  .landing-shell { width: min(100% - 28px, 1180px); padding: 30px 0 44px; }
  #intro-step { gap: 34px; }
  h1 { margin-top: 16px; font-size: clamp(2.65rem, 13vw, 4rem); }
  .hero-lead { line-height: 1.65; }
  .benefit-grid { grid-template-columns: 1fr; gap: 8px; margin: 26px 0; }
  .benefit { display: flex; align-items: baseline; gap: 8px; padding: 12px 14px; }
  .benefit span { margin: 0; }
  .primary-button { width: 100%; }
  .button-note { display: block; margin: 12px 0 0; text-align: center; }
  .hero-visual { margin-top: -12px; }
  .floating-card { padding: 10px 12px; }
  .floating-card--route { left: 0; bottom: 4%; }
  .floating-card--load { right: 0; bottom: 16%; }
  .form-card { padding: 24px 18px; border-radius: 20px; }
  .field-grid { grid-template-columns: 1fr; gap: 0; }
  .form-context h2 { font-size: 2.55rem; }
  .context-quote { display: none; }
}

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