/* ============================================================
   UncensoredGPT — Payment Pages
   Black & white minimal dark theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg:        #0a0a0a;
  --bg-card:   #111111;
  --bg-input:  #1a1a1a;
  --border:    #2a2a2a;
  --border-focus: #555555;
  --white:     #ffffff;
  --grey-light: #a0a0a0;
  --grey-mid:   #555555;
  --accent:    #ffffff;
  --accent-hover: #e0e0e0;
  --danger:    #ff4d4d;
  --success:   #22c55e;
  --radius:    12px;
  --radius-sm: 8px;
  --shadow:    0 0 0 1px var(--border);
  --transition: 0.18s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  -webkit-font-smoothing: antialiased;
}

/* ---- Page wrapper ---- */
.page {
  width: 100%;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* ---- Logo ---- */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-wordmark {
  height: 22px;
  object-fit: contain;
  /* Invert dark text logo to white for dark background */
  filter: brightness(0) invert(1);
}

/* ---- Card ---- */
.card {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ---- Card header ---- */
.card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
  line-height: 1.2;
}

.card-header p {
  font-size: 0.875rem;
  color: var(--grey-light);
  line-height: 1.5;
}

/* ---- Pricing badge ---- */
.pricing {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.pricing-trial {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--white);
}

.pricing-detail {
  font-size: 0.8125rem;
  color: var(--grey-light);
}

.pricing-detail strong {
  color: var(--white);
}

/* ---- Features list ---- */
.features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--grey-light);
}

.features li::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Ccircle cx='8' cy='8' r='8' fill='%23ffffff' fill-opacity='0.12'/%3E%3Cpath d='M4.5 8l2.5 2.5 4.5-4.5' stroke='%23ffffff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: var(--border);
  width: 100%;
}

/* ---- Form ---- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--grey-light);
  letter-spacing: 0.01em;
}

.form-group input[type="email"] {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 12px 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input[type="email"]::placeholder {
  color: var(--grey-mid);
}

.form-group input[type="email"]:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.06);
}

/* ---- Buttons ---- */
.btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition), opacity var(--transition);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--white);
  color: #000000;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--grey-mid);
  background: rgba(255,255,255,0.04);
}

/* ---- Error message ---- */
.error-msg {
  display: none;
  background: rgba(255, 77, 77, 0.1);
  border: 1px solid rgba(255, 77, 77, 0.3);
  border-radius: var(--radius-sm);
  color: var(--danger);
  font-size: 0.8125rem;
  padding: 10px 14px;
  line-height: 1.4;
}

/* ---- Fine print ---- */
.fine-print {
  font-size: 0.75rem;
  color: var(--grey-mid);
  text-align: center;
  line-height: 1.5;
}

.fine-print a {
  color: var(--grey-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Success / Cancel states ---- */
.icon-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 4px;
}

.icon-circle.success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.icon-circle.cancel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.icon-circle svg {
  width: 32px;
  height: 32px;
}

.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ---- Spinner ---- */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0,0,0,0.3);
  border-top-color: #000;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}

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

/* ---- Footer ---- */
.page-footer {
  font-size: 0.75rem;
  color: var(--grey-mid);
  display: flex;
  align-items: center;
  gap: 16px;
}

.page-footer a {
  color: var(--grey-mid);
  text-decoration: none;
}

.page-footer a:hover {
  color: var(--grey-light);
}

.page-footer .sep {
  color: var(--border);
}

/* ---- Stripe badge ---- */
.stripe-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: var(--grey-mid);
}

.stripe-badge svg {
  height: 14px;
  opacity: 0.5;
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
  .card {
    padding: 28px 20px;
  }
}
