:root {
  --blue: #4a5df9;
  --blue-dark: #3447e3;
  --ink: #172338;
  --muted: #526070;
  --line: #e2e7ee;
  --paper: #f3f6fa;
  --white: #fff;
  --error: #8d2b2b;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: Poppins, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: var(--white);
  padding: 8px 12px;
  z-index: 5;
}

.skip:focus { top: 12px; }

.topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 6%;
  background: var(--blue);
  color: var(--white);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

header, .hero, .steps, .who, footer, .legal {
  padding-left: 6%;
  padding-right: 6%;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 88px;
  border-bottom: 1px solid #eef0f5;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.logo img { height: 36px; width: auto; display: block; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--blue);
  border-radius: 5px;
  background: var(--blue);
  color: var(--white);
  font: 500 15px/1 Poppins, sans-serif;
  padding: 16px 22px;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: var(--blue-dark); }

.button.small { padding: 13px 16px; font-size: 13px; white-space: nowrap; }

.button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 56px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 72px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}

h1, h2, h3 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
}

h1 {
  font-size: clamp(44px, 4.6vw, 72px);
  letter-spacing: -0.03em;
}

h1 em {
  display: block;
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
}

.legal h1 {
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
}

.lede {
  max-width: 460px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.proof {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  max-width: 460px;
}

.proof li {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  justify-self: end;
  width: 100%;
  max-width: 520px;
}

.panel h2 { font-size: 34px; }

.panel-note, .fine, .thanks p, .legal p, .who p, footer p {
  color: var(--muted);
}

.panel-note { margin: 10px 0 22px; font-size: 15px; }

form { display: grid; gap: 14px; }

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}

input, select {
  width: 100%;
  border: 1px solid #d5dce6;
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.3 Poppins, sans-serif;
  padding: 12px 12px;
}

.invalid { border-color: var(--error); }

.field-error, .form-error {
  color: var(--error);
  font-size: 13px;
  font-weight: 500;
}

.form-error { margin: 0; }

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.stack { display: grid; gap: 10px; }

.pair { display: grid; grid-template-columns: auto 1fr; gap: 10px; }

.stack .button { width: 100%; }

.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: #c5cedb;
}

.button.ghost:hover { background: var(--white); color: var(--blue); border-color: var(--blue); }

.progress {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.dots { display: flex; gap: 6px; margin-bottom: 18px; }

.dots i {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: #d5dce6;
}

.dots i.on { width: 22px; background: var(--blue); }

.choices { display: grid; gap: 8px; }

.choice {
  width: 100%;
  text-align: left;
  border: 1px solid #d5dce6;
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  font: 500 15px/1.3 Poppins, sans-serif;
  padding: 13px 14px;
  cursor: pointer;
}

.choice:hover { border-color: var(--blue); }

.choice[aria-pressed="true"] {
  border-color: var(--blue);
  background: #eef0ff;
  color: var(--blue);
}

.slider-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.text-btn {
  border: 0;
  background: none;
  padding: 8px 0;
  color: var(--muted);
  font: 500 14px/1 Poppins, sans-serif;
  cursor: pointer;
}

.text-btn:hover { color: var(--ink); }

.slide h2 { margin-bottom: 16px; }

.fine { margin: 0; font-size: 13px; }

.fine a, .legal a, footer a { color: var(--ink); }

.thanks h2 { font-size: 36px; margin-bottom: 12px; }

.thanks p { margin: 0; max-width: 420px; }

.steps, .who { padding-bottom: 72px; }

.steps h2, .legal h1 { font-size: clamp(36px, 4vw, 52px); }

.steps ol {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.steps li { border-top: 1px solid #ccd3e0; padding-top: 18px; }

.steps span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
}

.steps h3 { font-size: 28px; margin: 18px 0 10px; }

.steps p, .who p { margin: 0; color: var(--muted); max-width: 340px; }

.who p { max-width: 640px; font-size: 20px; color: var(--ink); }

.legal { padding-top: 56px; padding-bottom: 80px; max-width: 760px; }

.legal p { max-width: 620px; }

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  padding-bottom: 28px;
}

footer img { height: 28px; width: auto; }

footer p { margin: 0; font-size: 13px; }

@media (min-width: 1280px) {
  .topline, header, .hero, .steps, .who, footer, .legal {
    padding-left: max(6%, calc((100% - 1160px) / 2));
    padding-right: max(6%, calc((100% - 1160px) / 2));
  }
}

@media (max-width: 900px) {
  .hero, .steps ol { grid-template-columns: 1fr; }
  .panel { justify-self: stretch; max-width: none; }
  .topline span:last-child { display: none; }
  .hero { padding-top: 36px; gap: 32px; }
  h1 { font-size: clamp(40px, 11vw, 56px); }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .row { grid-template-columns: 1fr; }
  header { min-height: 72px; }
  .logo img { height: 28px; }
  .button.small { padding: 11px 12px; font-size: 12px; }
  .panel { padding: 22px 18px; }
  .proof { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
