/* Public / guest experience — landing + auth refinements */

body.guest-site.public-site {
  --guest-ink: #0f172a;
  --guest-subtle: #64748b;
  --guest-line: #e2e8f0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    var(--bg)
    radial-gradient(ellipse 100% 80% at 100% -40%, rgba(37, 99, 235, 0.07), transparent),
    radial-gradient(ellipse 80% 50% at -10% 20%, rgba(14, 165, 233, 0.06), transparent);
}

.guest-main {
  flex: 1;
}

.guest-header.site-header {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.guest-brand.guest-brand {
  gap: 0.75rem;
}

.guest-brand-text {
  letter-spacing: -0.02em;
}

.guest-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  flex-shrink: 0;
}

.guest-nav {
  gap: 0.35rem 0.75rem;
}

.guest-nav-link {
  color: var(--guest-subtle);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  text-decoration: none;
}

.guest-nav-link:hover {
  color: var(--primary);
  text-decoration: none;
  background: rgba(37, 99, 235, 0.06);
}

@media (max-width: 960px) {
  .guest-nav .guest-nav-link {
    display: none;
  }
}

@media (max-width: 520px) {
  .guest-nav {
    justify-content: flex-end;
  }

  .guest-nav .btn-ghost {
    display: none;
  }
}

/* Landing section rhythm */
.guest-main {
  outline: none;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin: 0 0 0.5rem;
}

.section-head {
  max-width: 38rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  letter-spacing: -0.02em;
  color: var(--guest-ink);
}

.trust-strip {
  border-top: 1px solid var(--guest-line);
  border-bottom: 1px solid var(--guest-line);
  background: rgba(255, 255, 255, 0.65);
  padding: 1rem 0;
}

.trust-strip .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--guest-subtle);
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-strip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.hero {
  padding: 3.25rem 0 4.25rem;
}

.hero h1 {
  color: var(--guest-ink);
}

.hero-lead {
  max-width: 42ch;
}

.hero-card {
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -30%;
  width: 70%;
  height: 100%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 70%);
  pointer-events: none;
}

.steps-section {
  background: linear-gradient(180deg, #fff 0%, var(--bg) 55%);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--guest-line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.step-card:hover {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: var(--shadow);
}

.step-num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.step-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--guest-ink);
}

.step-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--guest-subtle);
  line-height: 1.55;
}

.contact-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--guest-line);
  border-radius: var(--radius);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow);
}

.contact-card-cta {
  text-align: right;
}

@media (max-width: 640px) {
  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-card-cta {
    text-align: left;
  }
}

.contact-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
}

.contact-card p {
  margin: 0;
  color: var(--guest-subtle);
  font-size: 0.95rem;
}

/* Footer */
.guest-footer.site-footer {
  margin-top: 0;
  padding: 2.75rem 0 1.5rem;
  background: #f8fafc;
  border-top: 1px solid var(--guest-line);
}

.guest-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.75rem;
}

@media (max-width: 900px) {
  .guest-footer-grid {
      grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .guest-footer-grid {
      grid-template-columns: 1fr;
  }
}

.guest-footer-title {
  display: block;
  font-size: 1.05rem;
  color: var(--guest-ink);
  margin-bottom: 0.35rem;
}

.guest-footer-heading {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--guest-subtle);
  margin-bottom: 0.4rem;
}

.guest-footer-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--guest-subtle);
}

.guest-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
}

.guest-footer-list li {
  margin-bottom: 0.35rem;
}

.guest-footer-list a {
  font-weight: 600;
  color: var(--guest-ink);
}

.guest-footer-list a:hover {
  color: var(--primary);
}

.guest-footer-legal {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--guest-line);
  font-size: 0.8rem;
  color: var(--guest-subtle);
  text-align: center;
}

/* Auth split layout */
.auth-split {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 440px);
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
  width: 100%;
}

@media (max-width: 900px) {
  .auth-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-aside {
    display: none;
  }
}

.auth-aside {
  background: linear-gradient(165deg, #0f172a 0%, #1e3a5f 45%, #1d4ed8 100%);
  color: #e2e8f0;
  padding: 2.5rem 2.25rem;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.auth-aside::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(255, 255, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.auth-aside-inner {
  position: relative;
  z-index: 1;
}

.auth-aside-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  margin-bottom: 1rem;
}

.auth-aside-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #fff;
}

.auth-aside-text {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.92;
}

.auth-aside-list {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.85rem;
  line-height: 1.65;
  opacity: 0.88;
}

.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 3rem;
  background: transparent;
}

.guest-auth-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.guest-auth-page .auth-split {
  flex: 1;
}

body.guest-site .auth-card {
  width: 100%;
  max-width: 400px;
  border-radius: 16px;
  padding: 2rem 2rem 2.25rem;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
}

.auth-card.auth-card--wide {
  max-width: 520px;
}

body.guest-site .auth-card h1 {
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  color: var(--guest-ink);
}

body.guest-site .auth-card .sub {
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-demo-hint {
  font-size: 0.8rem;
  color: var(--guest-subtle);
  background: #f1f5f9;
  border: 1px solid var(--guest-line);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  margin: 0 0 1rem;
  line-height: 1.45;
}

.auth-demo-hint code {
  font-size: 0.78rem;
  font-weight: 600;
  background: #e2e8f0;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
}

body.guest-site .form-group input,
body.guest-site .form-group select {
  border-radius: 10px;
  border-color: #cbd5e1;
  transition: border-color 0.15s, box-shadow 0.15s;
}

body.guest-site .form-group input:focus,
body.guest-site .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

body.guest-site .btn-primary {
  width: 100%;
  padding: 0.65rem 1.25rem;
  justify-content: center;
}

.auth-card-links {
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--guest-line);
  font-size: 0.88rem;
  color: var(--guest-subtle);
}

.auth-card-links a {
  font-weight: 600;
}

/* Registration grid on guest pages */
body.guest-site .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0 1rem;
}

body.guest-site .form-grid .form-group:last-child {
  grid-column: 1 / -1;
}

.guest-auth-footer {
  margin-top: auto;
  padding: 1rem 0;
  border-top: 1px solid var(--guest-line);
  background: rgba(255, 255, 255, 0.85);
}

.guest-auth-footer-inner {
  text-align: center;
}

.guest-auth-footer-inner p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--guest-subtle);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .feature-card,
  .step-card {
    transition: none;
  }

  .btn-primary:hover {
    transform: none;
  }
}
