/* Guest / marketing / auth — public surface */
:root {
  --guest-ink: #0f172a;
  --guest-muted: #64748b;
  --guest-line: #e2e8f0;
  --guest-teal: #0f766e;
  --guest-teal-deep: #0d5c56;
  --guest-indigo: #4f46e5;
  --guest-surface: #ffffff;
  --guest-hero-mesh: radial-gradient(900px 500px at 15% -20%, rgba(14, 165, 233, 0.2), transparent),
    radial-gradient(800px 450px at 85% 10%, rgba(15, 118, 110, 0.18), transparent),
    radial-gradient(600px 400px at 50% 100%, rgba(79, 70, 229, 0.08), transparent),
    linear-gradient(180deg, #f0f4f8 0%, #f8fafc 45%, #f1f5f9 100%);
}

.guest-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--guest-hero-mesh);
  color: var(--guest-ink);
}

.guest-page--auth {
  background: linear-gradient(165deg, #f0fdfa 0%, #f8fafc 35%, #eef2ff 100%);
}

.guest-flash-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 4vw 0;
  width: 100%;
}

/* Header */
.guest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 4vw;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  position: sticky;
  top: 0;
  z-index: 50;
}

.guest-header--compact {
  padding-block: 0.75rem;
}

.guest-brand {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--guest-ink);
}

.guest-brand:hover {
  text-decoration: none;
  color: var(--guest-teal);
}

.guest-brand__mark {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.guest-brand__mark span {
  color: var(--guest-teal);
}

.guest-brand__suffix {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--guest-muted);
}

.guest-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.guest-nav a.guest-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--guest-muted);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  text-decoration: none;
}

.guest-nav a.guest-link:hover {
  color: var(--guest-ink);
  background: rgba(15, 23, 42, 0.05);
  text-decoration: none;
}

.guest-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.guest-btn:hover {
  text-decoration: none;
}

.guest-btn--primary {
  background: linear-gradient(135deg, var(--guest-teal), var(--guest-teal-deep));
  color: #fff;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.35);
}

.guest-btn--primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.guest-btn--ghost {
  background: #fff;
  border-color: var(--guest-line);
  color: var(--guest-ink);
}

.guest-btn--ghost:hover {
  border-color: var(--guest-teal);
  color: var(--guest-teal);
}

.guest-btn--outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.guest-btn--sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.guest-main {
  flex: 1;
  width: 100%;
}

/* Hero */
.guest-hero {
  padding: 3rem 4vw 3.5rem;
  position: relative;
  overflow: hidden;
}

.guest-hero__inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .guest-hero__inner {
    grid-template-columns: 1fr;
  }
}

.guest-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--guest-teal);
  margin-bottom: 1rem;
}

.guest-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: linear-gradient(90deg, var(--guest-teal), transparent);
  border-radius: 2px;
}

.guest-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--guest-ink);
}

.guest-hero__lead {
  margin: 0 0 1.75rem;
  font-size: 1.08rem;
  color: var(--guest-muted);
  max-width: 36rem;
  line-height: 1.65;
}

.guest-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.guest-hero__note {
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--guest-muted);
}

.guest-hero__panel {
  background: var(--guest-surface);
  border: 1px solid var(--guest-line);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
  position: relative;
}

.guest-hero__panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.35), rgba(14, 165, 233, 0.2), rgba(79, 70, 229, 0.15));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.guest-hero__panel h3 {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--guest-muted);
}

.guest-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.guest-metric {
  padding: 1rem;
  border-radius: 14px;
  background: linear-gradient(145deg, #f8fafc, #fff);
  border: 1px solid var(--guest-line);
}

.guest-metric__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--guest-muted);
  margin-bottom: 0.35rem;
}

.guest-metric__value {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--guest-ink);
}

.guest-metric__sub {
  font-size: 0.82rem;
  color: var(--guest-muted);
  margin-top: 0.2rem;
}

/* Sections */
.guest-section {
  padding: 2.5rem 4vw 3rem;
}

.guest-section--muted {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--guest-line);
  border-bottom: 1px solid var(--guest-line);
}

.guest-section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.guest-section__head h2 {
  margin: 0 0 0.65rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.guest-section__head p {
  margin: 0;
  color: var(--guest-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.guest-features {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.15rem;
}

.guest-feature {
  padding: 1.35rem 1.4rem;
  background: var(--guest-surface);
  border: 1px solid var(--guest-line);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.guest-feature:hover {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 12px 40px rgba(15, 118, 110, 0.1);
}

.guest-feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--guest-teal-deep);
  margin-bottom: 0.85rem;
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
}

.guest-feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.guest-feature p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--guest-muted);
  line-height: 1.55;
}

.guest-trust {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  padding: 1.5rem 0;
  font-size: 0.88rem;
  color: var(--guest-muted);
}

.guest-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.guest-trust strong {
  color: var(--guest-ink);
  font-weight: 700;
}

.guest-cta {
  margin: 0 4vw 3rem;
  padding: 2rem 1.75rem;
  border-radius: 20px;
  background: linear-gradient(135deg, #0f766e 0%, #0e7490 50%, #1e3a5f 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 118, 110, 0.35);
}

.guest-cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 800;
}

.guest-cta p {
  margin: 0 0 1.25rem;
  opacity: 0.92;
  font-size: 1rem;
}

.guest-cta .guest-btn--primary {
  background: #fff;
  color: var(--guest-teal-deep);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.guest-cta .guest-btn--primary:hover {
  filter: brightness(1.02);
}

/* Footer */
.guest-footer {
  margin-top: auto;
  padding: 2rem 4vw 2.25rem;
  background: #fff;
  border-top: 1px solid var(--guest-line);
}

.guest-footer__inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr repeat(2, 1fr);
  gap: 2rem;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .guest-footer__inner {
    grid-template-columns: 1fr;
  }
}

.guest-footer__brand {
  font-weight: 800;
  color: var(--guest-ink);
}

.guest-footer__brand span {
  color: var(--guest-teal);
}

.guest-footer h4 {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--guest-muted);
}

.guest-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guest-footer li {
  margin-bottom: 0.45rem;
}

.guest-footer a {
  color: var(--guest-muted);
  text-decoration: none;
  font-weight: 500;
}

.guest-footer a:hover {
  color: var(--guest-teal);
}

.guest-footer__copy {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--guest-line);
  text-align: center;
  font-size: 0.85rem;
  color: var(--guest-muted);
}

/* Auth stage */
.guest-auth-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
  min-height: calc(100vh - 180px);
}

.guest-auth-split {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
  border: 1px solid var(--guest-line);
  background: #fff;
}

@media (max-width: 860px) {
  .guest-auth-split {
    grid-template-columns: 1fr;
  }
}

.guest-auth-aside {
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 50%, #0f766e 120%);
  color: #e2e8f0;
  padding: 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.guest-auth-aside h2 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.guest-auth-aside p {
  margin: 0;
  font-size: 0.95rem;
  opacity: 0.88;
  line-height: 1.55;
}

.guest-auth-aside .guest-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  opacity: 0.9;
}

.guest-auth-aside .guest-list li {
  margin-bottom: 0.35rem;
}

.guest-auth-body {
  padding: 2rem 1.75rem 2.25rem;
}

.auth-card-v2 {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.auth-card-v2--wide {
  max-width: 520px;
}

.auth-card-v2 h1 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.auth-card-v2 .hint {
  margin: 0 0 1.35rem;
  color: var(--guest-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.auth-card-v2 .guest-divider {
  height: 1px;
  background: var(--guest-line);
  margin: 1.25rem 0;
}

.auth-card-v2 label {
  color: #475569;
}

.auth-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.auth-step__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  background: #e0f2fe;
  color: #0369a1;
}

.auth-step__dot--done {
  background: #d1fae5;
  color: #047857;
}

.auth-security-box {
  padding: 1rem 1.1rem;
  background: #f8fafc;
  border: 1px solid var(--guest-line);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.auth-security-box strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

/* Legacy auth-wrap compatibility */
.auth-wrap {
  min-height: auto;
  background: transparent;
  padding: 0;
}

.auth-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
}

.guest-page .btn-primary {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  font-weight: 600;
}

.guest-page .btn-outline {
  width: 100%;
}

.guest-text-center {
  text-align: center;
}

.guest-muted-link {
  font-size: 0.92rem;
  color: var(--guest-muted);
}

.guest-muted-link a {
  font-weight: 600;
}

.guest-auth-mini-footer {
  text-align: center;
  padding: 1.25rem 1rem 2rem;
  font-size: 0.85rem;
  color: var(--guest-muted);
  margin-top: auto;
}

.guest-auth-mini-footer a {
  color: var(--guest-teal);
  font-weight: 600;
}

.guest-auth-body--scroll {
  max-height: min(78vh, 720px);
  overflow-y: auto;
}
