:root {
  --ink: #061126;
  --muted: #39465b;
  --line: #cbd3df;
  --yellow: #ffc400;
  --yellow-dark: #e9ad00;
  --white: #ffffff;
  --focus: #a52820;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--white);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

.landing {
  min-height: 100vh;
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.72fr);
  min-height: 100vh;
  background: var(--white);
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(760px, 100%);
  min-height: 100vh;
  padding: clamp(28px, 5vw, 72px);
  padding-right: clamp(32px, 7vw, 120px);
}

.brand {
  position: absolute;
  top: clamp(28px, 4vw, 56px);
  left: clamp(28px, 5vw, 72px);
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand__main {
  font-size: clamp(2rem, 4vw, 3.75rem);
  font-weight: 950;
  line-height: 0.9;
}

.brand__sub {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(0.8rem, 1.35vw, 1.25rem);
  font-weight: 800;
  line-height: 1;
}

.brand__mark {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
}

.brand__mark span {
  display: block;
  width: clamp(34px, 3vw, 48px);
  height: clamp(5px, 0.45vw, 7px);
  transform: skewX(-28deg);
  background: var(--yellow);
}

.hero__copy {
  max-width: 680px;
  margin-top: clamp(76px, 12vw, 148px);
}

h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.2rem, 6.4vw, 6.25rem);
  font-weight: 950;
  line-height: 0.94;
  letter-spacing: 0;
}

.hero__copy p {
  max-width: 680px;
  margin: clamp(24px, 2.6vw, 34px) 0 0;
  color: var(--muted);
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.6;
}

.signup {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(210px, 300px);
  gap: 10px;
  width: min(720px, 100%);
  margin-top: clamp(26px, 3vw, 42px);
}

.signup__icon {
  position: relative;
  z-index: 1;
  grid-row: 1;
  grid-column: 1;
  align-self: center;
  width: 26px;
  height: 26px;
  margin-left: 20px;
  color: #667085;
  pointer-events: none;
}

.signup__icon svg,
.early-link svg {
  display: block;
  width: 100%;
  height: 100%;
}

.signup__icon path,
.early-link path {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.signup input {
  grid-row: 1;
  grid-column: 1;
  min-width: 0;
  height: 76px;
  padding: 0 22px 0 62px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
  background: var(--white);
  font-size: 1.05rem;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.signup .hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.signup input::placeholder {
  color: #7a8494;
}

.signup input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgb(165 40 32 / 14%);
}

.signup button {
  min-height: 76px;
  padding: 0 28px;
  border: 0;
  border-radius: 6px;
  color: var(--ink);
  background: linear-gradient(180deg, var(--yellow) 0%, var(--yellow-dark) 100%);
  box-shadow: 0 14px 28px rgb(255 196 0 / 24%);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.signup button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgb(255 196 0 / 28%);
}

.signup button:disabled {
  cursor: wait;
  opacity: 0.78;
  transform: none;
}

.signup button:focus-visible,
.early-link:focus-visible {
  outline: 3px solid rgb(165 40 32 / 30%);
  outline-offset: 4px;
}

.early-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: 30px;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.signup-status {
  min-height: 1.5rem;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 700;
}

.signup-status[data-state="success"] {
  color: #17633a;
}

.signup-status[data-state="error"] {
  color: var(--focus);
}

.early-link svg {
  width: 26px;
  height: 26px;
  transition: transform 160ms ease;
}

.early-link:hover svg {
  transform: translateX(4px);
}

.hero__media {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  background: #dce8f2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 62%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__content {
    min-height: auto;
    padding: 28px;
    padding-top: 130px;
  }

  .brand {
    top: 28px;
    left: 28px;
  }

  .hero__copy {
    margin-top: 28px;
  }

  h1 {
    max-width: 11ch;
  }

  .hero__media {
    min-height: 42vh;
    clip-path: polygon(0 7%, 100% 0, 100% 100%, 0 100%);
  }
}

@media (max-width: 680px) {
  .landing {
    overflow: visible;
  }

  .hero__content {
    padding: 22px;
    padding-top: 112px;
  }

  .brand {
    top: 22px;
    left: 22px;
  }

  .brand__main {
    font-size: 2rem;
  }

  .brand__sub {
    font-size: 0.78rem;
  }

  h1 {
    font-size: clamp(2.8rem, 15vw, 4.25rem);
  }

  .hero__copy p {
    font-size: 1.08rem;
  }

  .signup {
    grid-template-columns: 1fr;
  }

  .signup__icon {
    grid-row: 1;
    grid-column: 1;
  }

  .signup input {
    height: 64px;
  }

  .signup button {
    min-height: 64px;
  }

  .early-link {
    font-size: 1rem;
  }

  .hero__media {
    min-height: 34vh;
  }
}
