/* Beta tester registration. Scoped so a product page can embed [data-beta-register]. */

body.beta-body {
  min-height: 100vh;
}

body.beta-body::after {
  opacity: 0;
}

.beta-register {
  position: relative;
  z-index: 1;
  width: min(36.5rem, calc(100% - 1.5rem));
  margin: 1.75rem auto 2.5rem;
}

.beta-card {
  background:
    linear-gradient(180deg, rgba(18, 28, 24, 0.94), rgba(8, 14, 12, 0.96));
  border: 1px solid rgba(201, 160, 106, 0.32);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  padding: 2.15rem 2rem 1.85rem;
}

.beta-card[hidden] {
  display: none;
}

.beta-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
}

.beta-brand-mark {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.beta-brand-name {
  font-family: var(--font-display);
  font-size: 1.72rem;
  line-height: 1.05;
  font-weight: 650;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.beta-brand-name span {
  color: var(--accent);
}

.beta-brand-den {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.28rem;
  color: #e4d3b4;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.beta-brand-den i {
  display: block;
  width: 1.65rem;
  height: 1px;
  background: rgba(228, 211, 180, 0.7);
}

.beta-kicker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: fit-content;
  margin: 1.35rem auto 0.85rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(242, 239, 232, 0.16);
  background: rgba(242, 239, 232, 0.04);
  color: #efe6d8;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.beta-kicker svg,
.beta-field-icon svg,
.beta-submit svg,
.beta-home svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.beta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.55rem);
  line-height: 1.12;
  font-weight: 650;
  text-align: center;
  color: var(--heading);
  letter-spacing: -0.02em;
}

.beta-title span {
  color: var(--accent);
}

.beta-tagline {
  margin-top: 0.45rem;
  text-align: center;
  color: #d9d3c8;
  font-size: 1.02rem;
}

.beta-intro {
  margin: 0.85rem auto 1.35rem;
  max-width: 34rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.beta-app-note {
  margin: -0.7rem auto 1.15rem;
  text-align: center;
  color: var(--accent-soft);
  font-size: 0.86rem;
  font-weight: 650;
}

.beta-field {
  display: grid;
  grid-template-columns: 1.55rem 1fr;
  gap: 0.7rem;
  align-items: start;
  margin-bottom: 0.95rem;
}

.beta-field-icon {
  display: flex;
  justify-content: center;
  padding-top: 0.15rem;
  color: #cbbda8;
}

.beta-g {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1;
  color: var(--accent);
}

.beta-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: #f3efe8;
  font-size: 0.92rem;
  font-weight: 600;
}

.beta-req {
  color: var(--accent);
}

.beta-hint {
  margin: -0.15rem 0 0.4rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.beta-field input,
.beta-field select,
.beta-field textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(242, 239, 232, 0.14);
  background: rgba(8, 14, 12, 0.72);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.beta-field textarea {
  min-height: 6.4rem;
  resize: vertical;
}

.beta-field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #cbbda8 50%),
    linear-gradient(135deg, #cbbda8 50%, transparent 50%);
  background-position:
    calc(100% - 1.15rem) 50%,
    calc(100% - 0.75rem) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2rem;
}

.beta-field input::placeholder,
.beta-field textarea::placeholder {
  color: #7f8b84;
}

.beta-field input:focus,
.beta-field select:focus,
.beta-field textarea:focus {
  outline: 2px solid rgba(224, 138, 69, 0.55);
  outline-offset: 1px;
  border-color: rgba(224, 138, 69, 0.7);
}

.beta-checks {
  display: grid;
  gap: 0.7rem;
  margin: 0.35rem 0 0 2.25rem;
}

.beta-check {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: 0.65rem;
  align-items: start;
  color: #e7e1d6;
  font-size: 0.92rem;
  line-height: 1.4;
  cursor: pointer;
}

.beta-check input {
  appearance: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.12rem;
  border: 1.5px solid rgba(242, 239, 232, 0.45);
  border-radius: 4px;
  background: rgba(8, 14, 12, 0.4);
  display: grid;
  place-items: center;
}

.beta-check input:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.beta-check input:checked::after {
  content: "";
  width: 0.28rem;
  height: 0.5rem;
  border: solid #1a1008;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.beta-check input:focus-visible {
  outline: 2px solid rgba(224, 138, 69, 0.7);
  outline-offset: 2px;
}

.beta-optional {
  color: var(--muted);
}

.beta-form-error {
  margin: 0.85rem 0 0 2.25rem;
  color: #f0b4ae;
  font-size: 0.88rem;
}

.beta-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: min(100%, 20.5rem);
  margin: 1.35rem auto 0.15rem;
  min-height: 3rem;
  padding: 0.75rem 1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #1a1008;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(224, 138, 69, 0.22);
}

.beta-submit:hover {
  background: var(--accent-hover);
}

.beta-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.beta-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.beta-card--success {
  width: min(22.5rem, 100%);
  margin: 0 auto;
  padding: 2.4rem 1.7rem 1.8rem;
  text-align: center;
}

.beta-success-mark {
  display: grid;
  place-items: center;
  width: 4.4rem;
  height: 4.4rem;
  margin: 0 auto 1.15rem;
  border-radius: 50%;
  background: #1f8f4e;
  color: #effff4;
  box-shadow: 0 0 0 8px rgba(34, 160, 84, 0.16);
}

.beta-success-mark svg {
  width: 2rem;
  height: 2rem;
}

.beta-card--success h2 {
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1.15;
  font-weight: 650;
  color: var(--heading);
}

.beta-success-lead {
  margin-top: 0.85rem;
  color: #ddd6cb;
  font-size: 1rem;
}

.beta-success-copy {
  margin: 0.85rem auto 0;
  max-width: 22rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.beta-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 1.35rem;
  min-height: 2.8rem;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(242, 239, 232, 0.22);
  background: rgba(8, 14, 12, 0.35);
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.beta-home:hover {
  border-color: var(--accent);
  color: var(--heading);
}

@media (max-width: 640px) {
  .beta-card {
    padding: 1.5rem 1.05rem 1.35rem;
    border-radius: 22px;
  }

  .beta-brand-mark {
    width: 56px;
    height: 56px;
  }

  .beta-brand-name {
    font-size: 1.4rem;
  }

  .beta-checks,
  .beta-form-error {
    margin-left: 0;
  }

  .beta-field {
    grid-template-columns: 1.25rem 1fr;
    gap: 0.5rem;
  }
}
