:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #171717;
  background: #f5f5f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
}

.topbar {
  height: 72px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.08);
}

.brand {
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .04em;
}

.login-link {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
}

.page {
  width: min(960px, calc(100% - 32px));
  margin: 64px auto 96px;
}

.hero {
  max-width: 720px;
  margin-bottom: 32px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
}

h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: .98;
  letter-spacing: -.045em;
}

.lead {
  max-width: 650px;
  margin: 20px 0 0;
  font-size: 18px;
  line-height: 1.6;
  color: #626262;
}

.card {
  padding: 32px;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field--full {
  grid-column: 1 / -1;
}

label {
  font-size: 13px;
  font-weight: 650;
}

label span,
small {
  font-weight: 400;
  color: #777;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #d7d7d2;
  border-radius: 10px;
  background: #fff;
  font: inherit;
}

input:focus,
select:focus {
  outline: 2px solid #171717;
  outline-offset: 1px;
}

.divider {
  height: 1px;
  background: #ecece8;
}

.price-card {
  padding: 24px;
  border-radius: 16px;
  background: #f7f7f4;
}

.price {
  display: block;
  font-size: 28px;
  margin-bottom: 4px;
}

.price-card p {
  margin: 0;
  color: #666;
}

.promo {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #deded9;
}

.promo-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 8px;
}

.button {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.button--primary {
  background: #171717;
  color: #fff;
}

.button--secondary {
  background: #e7e7e2;
  color: #171717;
}

.button:disabled {
  cursor: wait;
  opacity: .6;
}

.promo-message,
.form-message {
  margin: 12px 0 0;
  font-size: 14px;
}

.promo-message.is-error,
.form-message.is-error {
  color: #9d2020;
}

.promo-message.is-success {
  font-weight: 700;
}

.summary {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #deded9;
}

.summary > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 5px 0;
}

.summary-total {
  margin-top: 6px;
  padding-top: 12px !important;
  border-top: 1px solid #deded9;
}

.confirm {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.confirm input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.actions {
  display: flex;
  justify-content: flex-end;
}

.mail-state {
  padding: 24px 0;
}

.mail-state h2 {
  margin: 0 0 10px;
  font-size: 32px;
}

@media (max-width: 700px) {
  .topbar {
    padding: 0 18px;
  }

  .page {
    margin-top: 40px;
  }

  .card {
    padding: 22px;
  }

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

  .field--full {
    grid-column: auto;
  }

  .promo-row {
    grid-template-columns: 1fr;
  }

  .actions .button {
    width: 100%;
  }
}

[hidden] {
  display: none !important;
}
