:root {
  --background: #fcf5f0;
  --highlight: #cdacbd;
  --ink: #2a2928;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  color: var(--ink);
  font-family: "sofia-pro", Arial, sans-serif;
  font-size: 16px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
}

a {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  width: min(100% - 40px, 540px);
  margin: 0 auto;
  padding: clamp(38px, 7vh, 86px) 0 90px;
}

.brand {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: flex-start;
  justify-content: start;
  gap: 28px;
  margin-bottom: 42px;
}

.brand__mark {
  width: 150px;
}

.brand__mark p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
}

.brand__mark img {
  display: block;
  width: 140px;
  margin: 11px 0 13px;
}

.brand__illustration {
  display: block;
  width: 76px;
  margin-top: 6px;
}

.brand__actions {
  display: grid;
  gap: 12px;
  justify-self: end;
  margin-top: 32px;
}

.shop-button {
  display: inline-grid;
  min-width: 170px;
  min-height: 50px;
  place-items: center;
  border-radius: 15px;
  background: #000;
  color: #fff;
  padding: 0 22px;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.shop-button[hidden] {
  display: none !important;
}

.shop-button:hover {
  background: var(--highlight);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-1px);
}

.content {
  width: min(100%, 540px);
  font-size: 1rem;
  line-height: 1.28;
  letter-spacing: 0;
}

.hello {
  display: block;
  width: 64px;
  margin-bottom: 22px;
}

p {
  margin: 0 0 24px;
}

strong {
  font-weight: 700;
}

mark {
  background: var(--highlight);
  color: inherit;
  font-weight: 700;
  padding: 0 3px 1px;
}

.custom-list {
  display: grid;
  gap: 13px;
  margin: 0 0 44px;
  padding: 0;
  list-style: none;
}

.custom-list li {
  position: relative;
  padding-left: 33px;
}

.custom-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 8px;
  background: url("assets/bullet.svg") center / contain no-repeat;
}

.signup {
  width: min(100%, 540px);
  margin-top: 44px;
}

.ml-form-embedContainer,
.ml-form-align-center,
.ml-form-embedWrapper,
.ml-form-embedBody,
.ml-block-form {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.signup-form {
  display: grid;
  gap: 16px;
}

.ml-form-formContent {
  display: grid;
  gap: 15px;
}

.ml-form-fieldRow,
.ml-field-group {
  margin: 0 !important;
}

input[type="text"],
input[type="email"] {
  width: 100% !important;
  min-height: 49px;
  border: 1px solid var(--ink) !important;
  border-radius: 15px !important;
  background: transparent !important;
  color: var(--ink) !important;
  padding: 0 22px !important;
  font-family: "sofia-pro", Arial, sans-serif !important;
  font-size: 0.9rem !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  outline: none;
}

input::placeholder {
  color: var(--ink);
  opacity: 1;
}

input:focus-visible {
  box-shadow: 0 0 0 4px rgba(205, 172, 189, 0.65);
}

.checkbox {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 13px;
  align-items: start;
  cursor: pointer;
}

.checkbox input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}

.checkbox input:checked {
  background:
    linear-gradient(45deg, transparent 45%, var(--background) 45% 56%, transparent 56%),
    linear-gradient(-45deg, transparent 52%, var(--background) 52% 64%, transparent 64%),
    var(--ink);
}

.label-description,
.privacy-note {
  display: block;
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.22;
}

.privacy-note {
  margin-top: -2px;
  padding-left: 33px;
}

.privacy-note a {
  font-style: italic;
}

.ml-form-embedSubmit {
  margin-top: 17px;
}

.primary,
.loading {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 15px;
  background: #000;
  color: #fff;
  font-family: "sofia-pro", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.primary:hover {
  background: var(--highlight);
  color: var(--ink);
  transform: translateY(-1px);
}

.primary:disabled,
.loading {
  background: var(--highlight);
  color: var(--ink);
  cursor: not-allowed;
  transform: none;
}

.almost-there,
.thank-you {
  display: grid;
  place-items: center;
  align-content: center;
  width: min(100% - 40px, 540px);
  margin: 0 auto;
  text-align: center;
}

.almost-there[hidden] {
  display: none !important;
}

.almost-there {
  min-height: 300px;
  padding: 38px 0 42px;
}

.thank-you {
  min-height: 100svh;
}

.thank-you img {
  width: 94px;
  margin-bottom: 36px;
}

.almost-there h1,
.thank-you h1 {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  font-weight: 700;
  line-height: 0.95;
}

.almost-there h1 {
  margin-bottom: 24px;
}

.almost-there p,
.thank-you p {
  margin: 0;
  font-size: 1.1rem;
}

.almost-there p {
  max-width: 420px;
}

@media (max-width: 560px) {
  .page {
    width: min(100% - 48px, 540px);
    padding-top: 30px;
  }

  .brand {
    grid-template-columns: auto auto 1fr;
    gap: 12px;
    margin-bottom: 54px;
  }

  .brand__mark {
    width: 138px;
  }

  .brand__mark img {
    width: 132px;
  }

  .brand__illustration {
    width: 66px;
  }

  .brand__actions {
    grid-column: 1 / -1;
    justify-self: stretch;
    margin-top: 12px;
  }

  .shop-button {
    width: 100%;
  }
}
