:root {
  --brand: #6b21a8;
  --brand-light: #9333ea;
  --brand-dark: #4c1d95;
  --brand-soft: #f3e8ff;
  --ink: #1e1b4b;
  --muted: #64748b;
  --surface: #ffffff;
  --surface-2: #faf5ff;
  --border: rgba(107, 33, 168, 0.12);
  --shadow: 0 24px 60px rgba(76, 29, 149, 0.14);
  --radius: 16px;
}

* { box-sizing: border-box; }

body.guest-body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--surface-2);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.guest-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--border);
}

.guest-nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.guest-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.guest-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-light), var(--brand-dark));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
}

.guest-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

.guest-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.guest-btn:hover { transform: translateY(-1px); }

.guest-btn-primary {
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  color: #fff;
  box-shadow: 0 12px 28px rgba(107, 33, 168, 0.28);
}

.guest-btn-ghost {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--border);
}

.guest-hero {
  max-width: 1140px;
  margin: 0 auto;
  padding: 56px 24px 72px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.guest-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.guest-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}

.guest-hero p.lead {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 34rem;
}

.guest-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.guest-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.88rem;
}

.guest-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.guest-preview {
  position: relative;
}

.guest-preview-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 22px;
  overflow: hidden;
}

.guest-preview-card::before {
  content: "";
  position: absolute;
  inset: -30% auto auto -20%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.22), transparent 70%);
  pointer-events: none;
}

.guest-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.guest-stat {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.guest-stat strong {
  display: block;
  font-size: 1.25rem;
  color: var(--brand-dark);
}

.guest-stat span {
  font-size: 0.78rem;
  color: var(--muted);
}

.guest-section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 24px 72px;
}

.guest-section h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.guest-section .sub {
  text-align: center;
  color: var(--muted);
  margin: 0 auto 36px;
  max-width: 36rem;
}

.guest-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.guest-feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.guest-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.guest-feature h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.guest-feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.guest-cta {
  margin-top: 48px;
  padding: 36px;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.guest-cta h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.guest-cta p {
  margin: 0;
  opacity: 0.9;
}

.guest-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Auth layout */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.auth-brand-panel {
  position: relative;
  padding: 48px;
  background: linear-gradient(160deg, var(--brand-dark) 0%, var(--brand) 45%, #7c3aed 100%);
  color: #fff;
  overflow: hidden;
}

.auth-brand-panel::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  right: -120px;
  bottom: -120px;
  background: rgba(255, 255, 255, 0.08);
}

.auth-brand-inner {
  position: relative;
  z-index: 1;
  max-width: 440px;
}

.auth-brand-inner h1 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  margin: 18px 0 12px;
  letter-spacing: -0.02em;
}

.auth-brand-inner p {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.6;
  margin: 0 0 28px;
}

.auth-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.auth-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.auth-points li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 0.75rem;
}

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: var(--surface-2);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px 28px;
}

.auth-card h2 {
  margin: 0 0 6px;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}

.auth-card .subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

.auth-field label {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #334155;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 1rem;
  pointer-events: none;
}

.auth-input-wrap input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 13px 14px 13px 42px;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth-input-wrap input:focus {
  outline: none;
  border-color: var(--brand-light);
  box-shadow: 0 0 0 4px rgba(147, 51, 234, 0.15);
}

.auth-toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 20px;
  font-size: 0.88rem;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
}

.auth-check input {
  accent-color: var(--brand);
}

.auth-link {
  color: var(--brand);
  font-weight: 700;
}

.auth-submit {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 14px;
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-light), var(--brand));
  box-shadow: 0 12px 28px rgba(107, 33, 168, 0.28);
  cursor: pointer;
}

.auth-submit:hover { filter: brightness(1.03); }

.auth-footer-text {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.88rem;
}

.auth-alert-danger {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.auth-alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

@media (max-width: 992px) {
  .guest-hero { grid-template-columns: 1fr; }
  .guest-features { grid-template-columns: repeat(2, 1fr); }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand-panel { padding: 36px 28px; }
}

@media (max-width: 640px) {
  .guest-features { grid-template-columns: 1fr; }
  .guest-stat-grid { grid-template-columns: 1fr; }
  .guest-nav-links .guest-btn-ghost { display: none; }
}
