/* Product beta request — theme follows the storefront. */
[hidden] {
  display: none !important;
}
.button-beta {
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
}
.button-beta:hover {
  background: var(--surface);
  border-color: var(--muted);
}
.purchase-box .button-beta {
  margin-top: 22px;
}
.beta-dialog {
  width: min(540px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  overflow-y: auto;
  box-shadow: 0 30px 100px #0004;
  overscroll-behavior: contain;
}
.beta-dialog::backdrop {
  background: #0007;
  backdrop-filter: blur(8px);
}
body:has(.beta-dialog[open]) {
  overflow: hidden;
}
.beta-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: 25px;
  line-height: 1;
}
.beta-close:hover {
  background: var(--surface-strong);
  color: var(--ink);
}
.beta-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 30px;
  margin-bottom: 25px;
}
.beta-product img {
  border-radius: 10px;
  flex-shrink: 0;
}
.beta-product .eyebrow {
  font-size: 8px;
  margin: 0 0 2px;
}
.beta-product strong {
  font-size: 14px;
  font-weight: 550;
}
.beta-dialog h2 {
  font-size: 31px;
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.04em;
}
#beta-intro {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 22px;
}
#beta-title:focus {
  outline: none;
}
.beta-access-info {
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.beta-access-info h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink);
}
.beta-access-info p {
  margin: 0 0 10px;
}
.beta-access-info strong {
  color: var(--ink);
}
.beta-access-info a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.beta-testflight-guide {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.beta-testflight-guide summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 550;
}
.beta-testflight-guide ol {
  margin: 12px 0;
  padding-left: 20px;
}
.beta-testflight-guide li + li {
  margin-top: 8px;
}
.beta-field {
  margin-bottom: 15px;
}
.beta-field label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin-bottom: 7px;
}
.beta-field input,
.beta-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 12px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
}
.beta-field textarea {
  display: block;
  resize: vertical;
  min-height: 94px;
  max-height: 240px;
}
.beta-field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.beta-field ::placeholder {
  color: var(--muted);
  opacity: 0.8;
  font-size: 13px;
}
.beta-privacy {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 17px 0;
}
.beta-privacy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
#beta-form > .button,
.beta-done {
  width: 100%;
  justify-content: space-between;
}
.beta-status,
.beta-test-note {
  font-size: 12px;
  line-height: 1.7;
}
.beta-status:empty {
  display: none;
}
.beta-status {
  margin: 16px 0 0;
}
.beta-status[data-state="error"],
.beta-test-note {
  color: var(--notice-ink);
  background: var(--notice-bg);
  border-radius: 8px;
  padding: 12px;
}
.beta-status[data-state="success"] {
  font-size: 15px;
  padding: 18px 0;
}
.beta-contact {
  margin-top: 14px;
}
.beta-done {
  margin-top: 16px;
}
.beta-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
@media (prefers-reduced-motion: no-preference) {
  .beta-dialog[open] {
    animation: beta-enter 0.24s cubic-bezier(0.2, 0.65, 0.2, 1) both;
  }
  @keyframes beta-enter {
    from {
      opacity: 0;
      transform: translateY(10px) scale(0.98);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (max-width: 560px) {
  .beta-dialog {
    padding: 26px 22px;
    border-radius: 18px;
  }
  .beta-dialog h2 {
    font-size: 28px;
  }
  .beta-product {
    margin-bottom: 22px;
  }
}
