/* ============================================================
   Auth Pages — Landing, Login, Register
   Standalone layout (no sidebar). Uses Prisma design tokens.
   ============================================================ */

/* ── Reset / Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body.auth-body {
  font-family: var(--font-display, 'Inter', sans-serif);
  background: var(--bg-page, #f4f6f8);
  color: var(--text-primary, #1a1a1a);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ── Auth card pages (login / register) ─────────────────── */
.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 24px 16px;
  background: linear-gradient(145deg, #f0fdf6 0%, #f4f6f8 50%, #eff6ff 100%);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  text-decoration: none;
}

.auth-brand-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.auth-brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary, #1a1a1a);
  letter-spacing: -0.02em;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  padding: 40px;
  width: 100%;
  max-width: 440px;
}

.auth-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary, #1a1a1a);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.auth-card-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary, #6b7280);
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ── Form elements ───────────────────────────────────────── */
.auth-form-group {
  margin-bottom: 18px;
}

.auth-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-primary, #1a1a1a);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.auth-input {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--text-primary, #1a1a1a);
  background: var(--bg-input, #f9fafb);
  border: 1.5px solid var(--border-input, #e5e7eb);
  border-radius: 8px;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.auth-input:focus {
  border-color: var(--primary, #00B577);
  box-shadow: 0 0 0 3px rgba(0, 181, 119, 0.12);
  background: #fff;
}

.auth-input::placeholder { color: #9ca3af; }

/* OTP input — wider character spacing */
.auth-input-otp {
  letter-spacing: 6px;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
}

/* ── Buttons ─────────────────────────────────────────────── */
.auth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 150ms ease, transform 80ms ease, box-shadow 150ms ease;
  outline: none;
}

.auth-btn:active { transform: scale(0.98); }
.auth-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-btn-primary {
  background: var(--primary, #00B577);
  color: #fff;
  margin-top: 8px;
}

.auth-btn-primary:hover:not(:disabled) {
  background: var(--primary-dark, #008f5d);
  box-shadow: 0 4px 12px rgba(0, 181, 119, 0.3);
}

/* ── Step transitions ────────────────────────────────────── */
.auth-step {
  transition: opacity 250ms ease, transform 250ms ease;
}

.auth-step.hidden {
  display: none;
}

/* ── Helper text ─────────────────────────────────────────── */
.auth-alt-link {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary, #6b7280);
}

.auth-alt-link a {
  color: var(--primary, #00B577);
  font-weight: 600;
  text-decoration: none;
}

.auth-alt-link a:hover { text-decoration: underline; }

.auth-resend {
  text-align: center;
  margin-top: 14px;
  font-size: 0.825rem;
  color: var(--text-secondary, #6b7280);
}

.auth-resend button {
  background: none;
  border: none;
  color: var(--primary, #00B577);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
}

.auth-resend button:hover { text-decoration: underline; }

/* ── Toast / alert ───────────────────────────────────────── */
.auth-alert {
  display: none;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 16px;
  line-height: 1.4;
}

.auth-alert.show { display: block; }
.auth-alert.error { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.auth-alert.success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* ── Email display in step 2 ─────────────────────────────── */
.auth-email-display {
  font-weight: 600;
  color: var(--primary, #00B577);
  word-break: break-all;
}

/* ── OTP timer ───────────────────────────────────────────── */
.auth-otp-note {
  font-size: 0.8rem;
  color: var(--text-secondary, #9ca3af);
  text-align: center;
  margin-top: 8px;
}

/* ── Divider ─────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-secondary, #9ca3af);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-input, #e5e7eb);
}

/* ══════════════════════════════════════════════════════════
   LANDING PAGE
   ══════════════════════════════════════════════════════════ */
.landing-body {
  font-family: var(--font-display, 'Inter', sans-serif);
  background: #fff;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
}

/* ── Navbar ──────────────────────────────────────────────── */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.landing-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.landing-nav-brand-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.landing-nav-brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-btn-ghost {
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  background: none;
  border: none;
  color: #374151;
  cursor: pointer;
  border-radius: 8px;
  transition: background 150ms ease;
  text-decoration: none;
}

.landing-btn-ghost:hover { background: #f3f4f6; }

.landing-btn-primary {
  padding: 8px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  background: #00B577;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease, box-shadow 150ms ease;
}

.landing-btn-primary:hover {
  background: #008f5d;
  box-shadow: 0 4px 12px rgba(0,181,119,0.3);
}

/* ── Hero ────────────────────────────────────────────────── */
.landing-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 96px 24px 80px;
  background: linear-gradient(160deg, #f0fdf6 0%, #fff 45%, #eff6ff 100%);
  position: relative;
  overflow: hidden;
}

.landing-hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,181,119,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.landing-hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: rgba(0, 181, 119, 0.1);
  color: #008f5d;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.landing-hero-title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 700px;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.landing-hero-title span {
  background: linear-gradient(135deg, #00B577 0%, #00875a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-hero-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 36px;
}

.landing-hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.landing-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #00B577;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease, box-shadow 150ms ease, transform 80ms ease;
  box-shadow: 0 4px 16px rgba(0, 181, 119, 0.3);
}

.landing-cta-primary:hover {
  background: #008f5d;
  box-shadow: 0 6px 20px rgba(0, 181, 119, 0.4);
  transform: translateY(-1px);
}

.landing-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #fff;
  color: #374151;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 150ms ease, background 150ms ease;
}

.landing-cta-secondary:hover {
  border-color: #d1d5db;
  background: #f9fafb;
}

/* ── Stats row ───────────────────────────────────────────── */
.landing-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  padding: 40px 24px;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  background: #fafafa;
  flex-wrap: wrap;
}

.landing-stat {
  text-align: center;
}

.landing-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: #00B577;
  letter-spacing: -0.03em;
}

.landing-stat-label {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 500;
  margin-top: 2px;
}

/* ── Features ────────────────────────────────────────────── */
.landing-features {
  padding: 80px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.landing-section-label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00B577;
  margin-bottom: 12px;
}

.landing-section-title {
  text-align: center;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.landing-section-subtitle {
  text-align: center;
  font-size: 1rem;
  color: #6b7280;
  max-width: 520px;
  margin: 0 auto 52px;
  line-height: 1.6;
}

.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.landing-feature-card {
  background: #fff;
  border: 1.5px solid #f0f0f0;
  border-radius: 14px;
  padding: 28px 24px;
  transition: border-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.landing-feature-card:hover {
  border-color: rgba(0,181,119,0.3);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.landing-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 24px;
}

.feature-icon-green  { background: rgba(0, 181, 119, 0.1);  color: #00B577; }
.feature-icon-indigo { background: rgba(99, 102, 241, 0.1); color: #6366f1; }
.feature-icon-amber  { background: rgba(245, 158, 11, 0.1);  color: #f59e0b; }
.feature-icon-rose   { background: rgba(244, 63, 94, 0.1);   color: #f43f5e; }

.landing-feature-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.landing-feature-desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ── How it works ────────────────────────────────────────── */
.landing-how {
  padding: 80px 24px;
  background: linear-gradient(160deg, #f0fdf6 0%, #f8fafc 100%);
}

.landing-how-inner {
  max-width: 900px;
  margin: 0 auto;
}

.landing-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 48px;
  position: relative;
}

.landing-step {
  text-align: center;
  padding: 0 16px;
}

.landing-step-num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #00B577;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.125rem;
  font-weight: 800;
  color: #00B577;
  box-shadow: 0 4px 12px rgba(0,181,119,0.15);
}

.landing-step-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.landing-step-desc {
  font-size: 0.875rem;
  color: #6b7280;
  line-height: 1.6;
}

/* ── CTA section ─────────────────────────────────────────── */
.landing-cta-section {
  padding: 80px 24px;
  text-align: center;
}

.landing-cta-box {
  background: linear-gradient(135deg, #00B577 0%, #00875a 100%);
  border-radius: 20px;
  padding: 64px 32px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 16px 48px rgba(0,181,119,0.25);
}

.landing-cta-box h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.landing-cta-box p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.6;
}

.landing-cta-box-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #fff;
  color: #00B577;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 80ms ease, box-shadow 150ms ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.landing-cta-box-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ── Footer ──────────────────────────────────────────────── */
.landing-footer {
  padding: 28px 48px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.landing-footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #374151;
  text-decoration: none;
  font-size: 0.9rem;
}

.landing-footer-copy {
  font-size: 0.8rem;
  color: #9ca3af;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .landing-nav { padding: 0 20px; }
  .landing-nav-brand-name { display: none; }
  .auth-card { padding: 28px 20px; }
  .landing-stats { gap: 28px; }
  .landing-features { padding: 56px 20px; }
  .landing-footer { padding: 24px 20px; flex-direction: column; text-align: center; }
}

/* ══════════════════════════════════════════════════════════
   TRIAL BANNER
   ══════════════════════════════════════════════════════════ */
.trial-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-display, 'Inter', sans-serif);
  flex-shrink: 0;
}

.trial-banner-icon { font-size: 18px; flex-shrink: 0; }
.trial-banner-text { flex: 1; }

.trial-banner-cta {
  padding: 5px 14px;
  background: #fff;
  color: #d97706;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease, box-shadow 150ms ease;
  flex-shrink: 0;
}

.trial-banner-cta:hover {
  background: #fffbeb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.trial-banner-dismiss {
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  transition: background 150ms ease;
  padding: 0;
}

.trial-banner-dismiss:hover { background: rgba(255,255,255,0.35); }

/* ══════════════════════════════════════════════════════════
   PAYWALL MODAL
   ══════════════════════════════════════════════════════════ */
.paywall-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  font-family: var(--font-display, 'Inter', sans-serif);
}

.paywall-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.2);
  animation: paywall-in 250ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes paywall-in {
  from { opacity: 0; transform: scale(0.92) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.paywall-logo {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.paywall-title {
  font-size: 1.375rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.paywall-subtitle {
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 24px;
}

.paywall-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
}

.paywall-price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a1a1a;
  letter-spacing: -0.03em;
}

.paywall-price-period {
  font-size: 1rem;
  color: #9ca3af;
  font-weight: 500;
}

.paywall-features-box {
  background: #f3f4f8;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 24px;
  text-align: left;
}

.paywall-features-heading {
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #6b7280;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.paywall-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.paywall-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #374151;
  padding: 5px 0;
}

.paywall-features li::before {
  content: '✓';
  color: var(--primary, #00B577);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  width: 18px;
}

.paywall-btn-primary {
  display: block;
  width: 100%;
  padding: 14px 20px;
  background: var(--primary, #00B577);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 150ms ease, box-shadow 150ms ease, transform 80ms ease;
  box-shadow: 0 4px 16px rgba(0, 181, 119, 0.3);
}

.paywall-btn-primary:hover:not(:disabled) {
  background: var(--primary-dark, #008f5d);
  box-shadow: 0 6px 20px rgba(0, 181, 119, 0.4);
  transform: translateY(-1px);
}

.paywall-btn-primary:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.paywall-btn-secondary {
  display: block;
  width: 100%;
  padding: 12px 20px;
  background: none;
  color: #9ca3af;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: color 150ms ease;
}

.paywall-btn-secondary:hover { color: #6b7280; }

.paywall-fine-print {
  font-size: 0.775rem;
  color: #d1d5db;
  margin-top: 8px;
}

/* ══════════════════════════════════════════════════════════
   SUBSCRIPTION SUCCESS TOAST
   ══════════════════════════════════════════════════════════ */
.subscription-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #1a1a1a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-display, 'Inter', sans-serif);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 3000;
  opacity: 0;
  transition: opacity 250ms ease, transform 250ms ease;
  white-space: nowrap;
}

.subscription-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
