/* Guest / public portal — landing + auth shells */
.guest-body {
  --guest-aside-w: min(420px, 42vw);
  --guest-accent-line: linear-gradient(180deg, var(--brand-accent), #fbbf24);
}

.guest-skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.guest-skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--brand-primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}

/* ---------- Landing ---------- */
.guest-landing .landing-header {
  background: rgba(248, 250, 252, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.guest-landing .hero {
  padding: 5rem 0 5.5rem;
  background:
    radial-gradient(900px 480px at 12% 20%, rgba(245, 158, 11, 0.12), transparent 55%),
    radial-gradient(800px 400px at 92% 8%, rgba(14, 165, 233, 0.22), transparent 50%),
    linear-gradient(165deg, #ecfeff 0%, #f0f9ff 35%, var(--surface) 100%);
  position: relative;
}

.guest-landing .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 70%);
  pointer-events: none;
}

.guest-landing .hero .container {
  position: relative;
  z-index: 1;
}

.guest-topbar {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.5rem 0 0;
  margin-bottom: -0.25rem;
}

.guest-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.guest-trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.guest-trust-item strong {
  font-size: 0.8125rem;
  color: var(--text);
}

.guest-trust-item span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.guest-landing .hero-card {
  position: relative;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.guest-landing .hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.75rem;
  right: 1.75rem;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: var(--guest-accent-line);
  opacity: 0.95;
}

.guest-landing .hero-card h3 {
  padding-top: 0.35rem;
}

.guest-section-label {
  display: block;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

.guest-modules-bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.guest-module-tile {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.guest-module-tile strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.guest-module-tile p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.guest-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.guest-step {
  text-align: left;
  padding: 1.25rem;
  background: var(--surface-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.guest-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--brand-accent-soft);
  color: var(--brand-accent);
  font-weight: 800;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.guest-step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.guest-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.guest-landing .cta-band {
  box-shadow: 0 20px 40px rgba(8, 47, 73, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.guest-footer {
  padding: 3rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, var(--surface) 100%);
}

.guest-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.guest-footer-col h4 {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.guest-footer-col a {
  display: block;
  padding: 0.25rem 0;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
}

.guest-footer-col a:hover {
  color: var(--brand-primary);
}

.guest-footer-base {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ---------- Auth layout ---------- */
.guest-auth {
  min-height: 100vh;
  margin: 0;
  background: #f1f5f9;
}

.guest-auth-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: var(--guest-aside-w) 1fr;
}

@media (max-width: 960px) {
  .guest-auth-layout {
    grid-template-columns: 1fr;
  }
}

.guest-auth-aside {
  background: linear-gradient(165deg, #0f172a 0%, var(--brand-primary-dark) 42%, #0c4a6e 100%);
  color: #e2e8f0;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.guest-auth-aside::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.28), transparent 70%);
  pointer-events: none;
}

.guest-aside-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff !important;
  margin-bottom: 2rem;
}

.guest-aside-brand:hover {
  text-decoration: none;
  opacity: 0.92;
}

.guest-aside-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-accent), #fbbf24);
  color: #1c1917;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.guest-aside-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.guest-aside-eyebrow {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #94a3b8;
}

.guest-aside-lead {
  position: relative;
  z-index: 1;
  margin: 0.5rem 0 1.25rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #cbd5e1;
  max-width: 28ch;
}

.guest-aside-list {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.guest-aside-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.35rem;
  font-size: 0.9rem;
  color: #e2e8f0;
  line-height: 1.45;
}

.guest-aside-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-accent);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.25);
}

.guest-aside-foot {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
}

.guest-aside-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
}

.guest-auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 3rem;
  position: relative;
}

.guest-auth-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 400px at 80% 20%, rgba(14, 165, 233, 0.08), transparent);
  pointer-events: none;
}

.guest-auth-main-inner {
  position: relative;
  z-index: 1;
  width: min(480px, 100%);
}

.guest-auth-main-inner--wide {
  width: min(560px, 100%);
}

.guest-auth-card {
  width: 100%;
  background: var(--surface-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem 2rem 1.75rem;
  box-shadow: 0 4px 6px rgba(15, 23, 42, 0.04), 0 24px 48px rgba(15, 23, 42, 0.08);
}

.guest-auth-card--wide {
  max-width: none;
}

.guest-auth-heading {
  margin: 0 0 0.25rem;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.guest-auth-sub {
  margin: 0 0 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.guest-auth-divider {
  height: 1px;
  background: var(--border);
  margin: 0 0 1.5rem;
}

.guest-auth-links {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

.guest-auth-links a {
  font-weight: 600;
}

.guest-auth-footnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.25rem;
  justify-content: center;
}

.guest-auth-footnav a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
}

.guest-auth-footnav a:hover {
  color: var(--brand-primary);
}

.guest-auth-legal {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 960px) {
  .guest-auth-aside {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .guest-aside-lead {
    max-width: none;
  }

  .guest-aside-list {
    display: none;
  }

  .guest-aside-foot {
    margin-top: 1rem;
  }

  .guest-auth-card {
    padding: 1.5rem 1.25rem;
  }
}
