/* TestFlight beta signup — matches marketing light theme */

.testflight-main {
  flex: 1;
  background: linear-gradient(180deg, var(--brand-offwhite) 0%, #ffffff 48%);
}

.testflight-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.testflight-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-warm);
  margin-bottom: 16px;
}

.testflight-main h1 {
  font-family: 'Instrument Serif', serif;
  font-size: clamp(36px, 6vw, 48px);
  font-weight: 400;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.testflight-lead {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.testflight-benefits {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.testflight-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.45;
}

.testflight-benefits svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--brand-warm);
}

.testflight-offer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px 18px;
  border-radius: 14px;
  background: var(--brand-cream);
  border: 1px solid var(--border);
  margin-bottom: 32px;
}

.testflight-offer-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.testflight-offer-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.testflight-offer-head strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.testflight-offer-head p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.testflight-offer .testflight-section-label {
  margin-bottom: 0;
}

.testflight-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.testflight-plan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.testflight-plan:hover {
  border-color: var(--border-strong);
}

.testflight-plan.is-selected {
  border-color: var(--brand-warm);
  box-shadow: 0 0 0 2px rgba(139, 111, 71, 0.12);
}

.testflight-plan-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

.testflight-plan-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.testflight-plan-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.testflight-plan-dot--open {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.testflight-plan-dot--limited {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

.testflight-field--in-offer {
  margin-bottom: 0;
}

.testflight-field-hint {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 6px;
  line-height: 1.45;
}

.testflight-field input:read-only {
  background: var(--brand-offwhite);
  color: var(--text-secondary);
}

.testflight-card {
  background: #fff;
  border: none;
  border-radius: 20px;
  padding: 32px 28px 36px;
  box-shadow:
    0 1px 2px rgba(26, 20, 16, 0.04),
    0 8px 32px rgba(26, 20, 16, 0.08);
}

.testflight-card h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 26px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.testflight-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.testflight-card .testflight-section-label + .testflight-section-label,
.testflight-field + .testflight-section-label {
  margin-top: 4px;
}

.testflight-field {
  margin-bottom: 16px;
}

.testflight-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.testflight-field input,
.testflight-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
}

.testflight-field input::placeholder {
  color: var(--text-tertiary);
}

.testflight-field input:focus,
.testflight-field select:focus {
  outline: none;
  border-color: var(--brand-warm);
  box-shadow: 0 0 0 2px rgba(139, 111, 71, 0.15);
}

.testflight-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B5E4A' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.testflight-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

.testflight-error {
  font-size: 14px;
  color: #b42318;
  margin-bottom: 12px;
  display: none;
}

.testflight-error.is-visible {
  display: block;
}

.testflight-submit {
  width: 100%;
  margin-top: 8px;
  padding: 14px 20px;
  border: none;
  border-radius: 10px;
  background: var(--brand-dark);
  color: var(--brand-cream);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s;
}

.testflight-submit:hover:not(:disabled) {
  opacity: 0.88;
}

.testflight-submit:active:not(:disabled) {
  transform: scale(0.99);
}

.testflight-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.testflight-fine {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
  margin-top: 14px;
  text-align: center;
}

.testflight-success {
  display: none;
  text-align: center;
  padding: 8px 0 24px;
}

.testflight-success.is-visible {
  display: block;
}

.testflight-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-cream);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--brand-warm);
}

.testflight-success-icon svg {
  width: 28px;
  height: 28px;
}

.testflight-success h2 {
  font-family: 'Instrument Serif', serif;
  font-size: 32px;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.testflight-success-lead {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 28px;
}

.testflight-steps {
  text-align: left;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  margin-bottom: 24px;
  box-shadow: 0 1px 2px rgba(26, 20, 16, 0.04);
}

.testflight-steps h3 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.testflight-steps ol {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.testflight-steps li + li {
  margin-top: 10px;
}

.testflight-steps a {
  color: var(--brand-warm);
  text-decoration: none;
}

.testflight-steps a:hover {
  text-decoration: underline;
}

.testflight-join-btn {
  display: none;
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  background: var(--brand-dark);
  color: var(--brand-cream);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  margin-bottom: 16px;
}

.testflight-join-btn.is-visible {
  display: block;
}

.testflight-join-btn:hover {
  opacity: 0.88;
}

.testflight-back {
  display: inline-block;
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
}

.testflight-back:hover {
  color: var(--text-primary);
}

.testflight-footer {
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--brand-dark);
  color: var(--brand-muted);
  font-size: 13px;
}

.testflight-footer a {
  color: var(--brand-muted);
  text-decoration: none;
}

.testflight-footer a:hover {
  color: var(--brand-cream);
}

.testflight-footer .footer-links {
  display: flex;
  gap: 20px;
}

body.testflight-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

@media (max-width: 520px) {
  .testflight-row {
    grid-template-columns: 1fr;
  }

  .testflight-inner {
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .testflight-card {
    padding: 28px 20px 32px;
    border-radius: 16px;
  }

  .testflight-plan-grid {
    grid-template-columns: 1fr;
  }

  .testflight-footer {
    padding: 28px 24px;
    flex-direction: column;
    align-items: flex-start;
  }
}
