:root{--paper:#fffaf7;--ink:#382e29;--muted:#6b6058;--line:#d8cec4;--brown:#761e0b;--white:#fff;--sans:"Host Grotesk",sans-serif}
body.modal-open {
  overflow: hidden;
}

.early-access-modal[hidden] {
  display: none;
}

.early-access-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.early-access-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 27, 23, 0.64);
  backdrop-filter: blur(8px);
}

.early-access-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: clamp(28px, 5vw, 48px);
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(25, 16, 12, 0.28);
}

.confirmation-modal[hidden] {
  display: none;
}

.confirmation-modal {
  position: fixed;
  inset: 0;
  z-index: 65;
  display: grid;
  place-items: center;
  padding: 24px;
}

.confirmation-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 500px);
  padding: clamp(34px, 6vw, 60px) clamp(28px, 6vw, 56px);
  background: var(--paper);
  box-shadow: 0 24px 80px rgba(25, 16, 12, 0.28);
  text-align: center;
}

.confirmation-mark {
  display: grid;
  width: 56px;
  height: 56px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--brown);
  color: var(--white);
  font-family: var(--sans);
  font-size: 1.8rem;
}

.confirmation-panel h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.35rem, 5vw, 2.8rem);
  line-height: 1;
  white-space: nowrap;
}

.confirmation-panel p:not(.kicker) {
  max-width: 38ch;
  margin: 0 auto 28px;
  color: var(--muted);
  font-family: var(--sans);
  line-height: 1.6;
}

.confirmation-panel .solid-button {
  min-width: 190px;
}

.early-access-panel h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 0.98;
}

.early-access-copy {
  max-width: 42ch;
  margin-bottom: 26px;
  color: var(--muted);
  font-family: var(--sans);
  line-height: 1.55;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.35rem;
  line-height: 1;
}

.early-access-form {
  display: grid;
  gap: 10px;
}

.early-access-form label:not(.consent-row) {
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.early-access-form input[type="email"],
.early-access-form input[type="text"],
.early-access-form select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
}

.other-country-field[hidden] {
  display: none;
}

.other-country-field {
  display: grid;
  gap: 10px;
}

.early-access-form input:focus,
.early-access-form select:focus,
.modal-close:focus-visible {
  outline: 2px solid var(--brown);
  outline-offset: 3px;
}

.consent-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 12px 0 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.45;
}

.consent-row input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--brown);
}

.early-access-form .solid-button {
  width: 100%;
  margin-top: 4px;
}

.form-status {
  min-height: 1.4em;
  margin: 4px 0 0;
  color: var(--brown);
  font-family: var(--sans);
  font-size: 0.88rem;
  line-height: 1.45;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.78rem;
  line-height: 1.45;
}

.form-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.early-access-panel .solid-button,.confirmation-panel .solid-button{background:var(--brown);color:white;border:1px solid var(--brown);padding:15px 24px;font:inherit;cursor:pointer}.early-access-panel input,.early-access-panel select{font:inherit}.early-access-panel .kicker,.confirmation-panel .kicker{font-size:12px;letter-spacing:.1em;text-transform:uppercase}
