/* Expansion waitlist page styles — orange-amber accent on the dark theme.
   Two-column layout: check-your-address panel on the left, signup form
   panel on the right (revealed after a "not yet available" check). */

.ex-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 60px; /* nav height */
}

/* === LEFT PANEL === */
.ex-left {
  background: linear-gradient(160deg, #0E0A07 0%, #07090E 60%, #0D1117 100%);
  border-right: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}

.ex-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244,166,54,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,166,54,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.ex-left-inner {
  position: relative;
  z-index: 1;
  max-width: 480px;
}

.ex-headline {
  font-family: 'Rubik', sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: #E8EDF4;
  margin-bottom: 20px;
}

.ex-sub {
  font-size: 16px;
  color: #8892A4;
  line-height: 1.7;
  font-weight: 300;
  max-width: 420px;
  margin-bottom: 36px;
}

.ex-divider {
  width: 48px;
  height: 1px;
  background: rgba(244,166,54,0.4);
  margin: 32px 0;
}

/* Address-check form (inline on left panel) */
.ex-check-form-wrap {
  margin: 0 0 8px;
}

.ex-check-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #8892A4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.ex-check-form {
  margin-bottom: 12px;
}

.ex-check-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  background: #111827;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ex-check-row:focus-within {
  border-color: rgba(244,166,54,0.5);
  box-shadow: 0 0 0 3px rgba(244,166,54,0.08);
}

.ex-check-input {
  background: transparent;
  border: 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #E8EDF4;
  padding: 14px 16px;
  outline: none;
}

.ex-check-input::placeholder {
  color: #4B5A6F;
}

.ex-check-btn {
  background: #F4A636;
  color: #07090E;
  border: 0;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 14px;
  padding: 0 20px;
  cursor: pointer;
  letter-spacing: 0.01em;
  white-space: nowrap;
  position: relative;
  transition: opacity 0.15s;
}

.ex-check-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.ex-check-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.ex-check-btn-text { }
.ex-check-btn-spinner { display: none; }

.ex-check-btn-spinner::after {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: ex-spin 0.8s linear infinite;
  vertical-align: middle;
}

@keyframes ex-spin {
  to { transform: rotate(360deg); }
}

.ex-check-error {
  font-size: 12px;
  color: #f87171;
  margin: 8px 2px 0;
}

/* Inline result box */
.ex-check-result {
  margin-top: 16px;
  padding: 18px 18px;
  border-radius: 10px;
  background: rgba(244,166,54,0.06);
  border: 1px solid rgba(244,166,54,0.18);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ex-result-covered {
  background: rgba(10,191,156,0.06);
  border-color: rgba(10,191,156,0.22);
}

.ex-result-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ex-result-icon-ok {
  background: rgba(10,191,156,0.12);
}

.ex-result-icon-wait {
  background: rgba(244,166,54,0.12);
}

.ex-result-body {
  flex: 1;
}

.ex-result-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #E8EDF4;
  margin-bottom: 4px;
}

.ex-result-sub {
  font-size: 13px;
  color: #8892A4;
  line-height: 1.55;
  font-weight: 300;
  margin-bottom: 12px;
}

.ex-result-cta {
  display: inline-block;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.ex-result-cta-primary {
  background: #0ABF9C;
  color: #07090E;
}

.ex-result-cta-primary:hover {
  opacity: 0.9;
}

/* Facts cluster */
.ex-facts {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 8px;
}

.ex-fact {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.ex-fact-icon {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(244,166,54,0.25);
  background: rgba(244,166,54,0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.ex-fact-title {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #E8EDF4;
  margin-bottom: 4px;
}

.ex-fact-desc {
  font-size: 13px;
  color: #8892A4;
  line-height: 1.6;
  font-weight: 300;
}

/* === RIGHT PANEL === */
.ex-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
  background: #0D1117;
}

.ex-form-wrap {
  width: 100%;
  max-width: 400px;
}

.ex-form-header {
  margin-bottom: 36px;
}

.ex-form-header h2 {
  font-family: 'Rubik', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: #E8EDF4;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.ex-form-header p {
  font-size: 14px;
  color: #8892A4;
  line-height: 1.6;
  font-weight: 300;
}

/* Form fields */
.ex-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: #8892A4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.req {
  color: #F4A636;
  margin-left: 2px;
}

.optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #4B5A6F;
  font-size: 12px;
}

.field-input {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #E8EDF4;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  width: 100%;
}

.field-input::placeholder {
  color: #4B5A6F;
}

.field-input:focus {
  border-color: rgba(244,166,54,0.5);
  box-shadow: 0 0 0 3px rgba(244,166,54,0.08);
}

.field-error {
  font-size: 12px;
  color: #f87171;
  display: none;
}

/* Alert box */
.form-alert {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  display: none;
}

.alert-success {
  background: rgba(244,166,54,0.08);
  border: 1px solid rgba(244,166,54,0.25);
  color: #F4A636;
}

.alert-error {
  background: rgba(248,113,113,0.08);
  border: 1px solid rgba(248,113,113,0.2);
  color: #f87171;
}

.alert-info {
  background: rgba(148,163,184,0.08);
  border: 1px solid rgba(148,163,184,0.2);
  color: #94A3B8;
}

/* Submit button */
.ex-submit {
  background: #F4A636;
  color: #07090E;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-family: 'Rubik', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  letter-spacing: 0.01em;
  position: relative;
  margin-top: 4px;
}

.ex-submit:hover:not(:disabled) {
  opacity: 0.9;
  transform: translateY(-1px);
}

.ex-submit:active:not(:disabled) {
  transform: translateY(0);
}

.ex-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-text { }
.btn-loading { display: none; }

/* Spinner animation (uses .spin from theme.css if available) */
.spin {
  animation: ex-spin 0.8s linear infinite;
}

/* Footer note */
.ex-footer-note {
  margin-top: 20px;
  font-size: 13px;
  color: #4B5A6F;
  text-align: center;
}

.ex-email-link {
  color: #F4A636;
  text-decoration: none;
  font-weight: 500;
}

.ex-email-link:hover {
  text-decoration: underline;
}

/* === PUBLIC DEMAND CARD (Where demand is highest) === */

.ex-demand-card {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(244,166,54,0.06);
  border: 1px solid rgba(244,166,54,0.18);
}

.ex-demand-label {
  font-family: 'Rubik', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 10px;
}

.ex-demand-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.ex-demand-row:first-of-type {
  border-top: 0;
}

.ex-demand-area {
  color: #E8EDF4;
  font-weight: 600;
}

.ex-demand-count {
  color: #F4A636;
  font-weight: 500;
  font-size: 13px;
}

.ex-demand-empty {
  color: #8892A4;
  font-size: 13px;
  font-weight: 300;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .ex-page {
    grid-template-columns: 1fr;
  }

  .ex-left {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 60px 40px;
  }

  .ex-right {
    padding: 60px 40px;
  }
}

@media (max-width: 600px) {
  .ex-left {
    padding: 48px 24px;
  }

  .ex-right {
    padding: 48px 24px;
  }

  .ex-headline {
    font-size: 36px;
  }

  .ex-form-wrap {
    max-width: 100%;
  }

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

  .ex-check-btn {
    padding: 12px 16px;
  }
}
