:root {
  color-scheme: light;
  --text: #111820;
  --muted: #5f6974;
  --surface: #ffffff;
  --line: #d8dee4;
  --line-strong: #aeb8c2;
  --accent: #0f766e;
  --accent-strong: #0b5f59;
  --accent-soft: #e1f3ef;
  --danger: #b42318;
  --ok: #15803d;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f6f8f8;
}

body {
  margin: 0;
  color: var(--text);
  background: #f6f8f8;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.45;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  overflow: hidden;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(246, 248, 248, 0.18);
  content: "";
}

.hero-content {
  width: min(720px, calc(100% - 40px));
  margin: auto 0 auto 112px;
  padding: 64px 0;
}

.brand,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  margin: 0;
  font-size: 78px;
  line-height: 1.02;
}

.lead {
  max-width: 560px;
  margin: 22px 0 0;
  color: #28323c;
  font-size: 20px;
  font-weight: 560;
}

.signup-flow {
  width: min(560px, 100%);
  margin-top: 34px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.step {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.step.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.form-stage {
  display: none;
}

.form-stage.is-active {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

.code-field input {
  max-width: 220px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: #27313b;
  font-size: 13px;
  font-weight: 650;
}

.check input {
  width: 18px;
  min-height: 18px;
  margin-top: 1px;
  accent-color: var(--accent);
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 0 18px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 850;
}

.button:hover {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
}

.button.secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

.text-button {
  width: max-content;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 800;
}

.stage-copy {
  max-width: 520px;
  margin: 0;
  color: #28323c;
  font-size: 16px;
  font-weight: 650;
}

.small-copy,
.dev-code,
.form-message {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.dev-code {
  color: var(--accent-strong);
}

.form-message.error {
  color: var(--danger);
}

.form-message.ok {
  color: var(--ok);
}

.complete-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.flow-band {
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.flow-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(0, 1.4fr);
  gap: 44px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0;
}

h2 {
  margin: 0;
  font-size: 40px;
  line-height: 1.12;
}

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

.flow-list li {
  min-height: 168px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.flow-list span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.flow-list strong {
  display: block;
  margin-top: 14px;
  font-size: 18px;
}

.flow-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1040px) {
  .hero-content {
    margin-left: 40px;
  }
}

@media (max-width: 820px) {
  .hero {
    min-height: 86svh;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero::after {
    background: rgba(246, 248, 248, 0.62);
  }

  .hero-content {
    width: min(100% - 32px, 560px);
    margin: auto auto 24px;
    padding: 48px 0;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 34px;
  }

  .lead {
    font-size: 17px;
  }

  .flow-inner,
  .flow-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero-content {
    width: calc(100% - 28px);
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .stepper {
    gap: 6px;
  }

  .step {
    font-size: 12px;
  }

  input,
  .button {
    min-height: 50px;
  }

  .flow-inner {
    width: calc(100% - 28px);
    padding: 38px 0;
  }
}
