/**
 * Guest / public site — enterprise light theme (layered on landing.css).
 * Auth/login pages keep landing.css dark styling; only html.guest-root + body.guest-public use this skin.
 */

/* ---- Design tokens (guest only) ----------------------------------------- */

html.guest-root {
  --gp-page: #eef1f6;
  --gp-page-2: #f8fafc;
  --gp-surface: #ffffff;
  --gp-border: #e2e8f0;
  --gp-border-strong: #cbd5e1;
  --gp-text: #0f172a;
  --gp-muted: #64748b;
  --gp-subtle: #94a3b8;
  --gp-accent: #1e40af;
  --gp-accent-hover: #1d4ed8;
  --gp-accent-soft: #eff6ff;
  --gp-teal: #0f766e;
  --gp-teal-soft: #ecfdf5;
  --gp-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 12px 28px -8px rgba(15, 23, 42, 0.1);
  --gp-shadow-lg: 0 20px 50px -20px rgba(15, 23, 42, 0.12);
}

html.guest-root,
html.guest-root body.guest-public {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  color: var(--gp-text);
  background: linear-gradient(165deg, var(--gp-page) 0%, var(--gp-page-2) 42%, #e8edf4 100%);
}

.guest-root {
  scroll-behavior: smooth;
}

.guest-public {
  letter-spacing: -0.012em;
}

.guest-public::before {
  content: '';
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 480px at 8% -8%, rgba(37, 99, 235, 0.07), transparent 58%),
    radial-gradient(720px 420px at 92% 4%, rgba(15, 118, 110, 0.06), transparent 55%),
    radial-gradient(500px 360px at 50% 104%, rgba(30, 64, 175, 0.05), transparent 55%);
}

.guest-public .guest-main,
.guest-public .guest-bar,
.guest-public .guest-strip,
.guest-public .guest-footer {
  position: relative;
  z-index: 1;
}

/* Override landing primitives inside guest -------------------------------- */

.guest-public .shell {
  border: 1px solid var(--gp-border);
  background: var(--gp-surface);
  box-shadow: var(--gp-shadow);
  backdrop-filter: none;
}

.guest-public .hero h1 {
  color: var(--gp-text);
}

.guest-public .lead {
  color: var(--gp-muted);
}

.guest-public .kicker {
  border: 1px solid rgba(30, 64, 175, 0.2);
  color: #1e40af;
  background: rgba(239, 246, 255, 0.95);
}

.guest-public .btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  border: 1px solid #1e40af;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.guest-public .btn-primary:hover {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.32);
}

.guest-public .btn-ghost {
  color: var(--gp-text);
  border-color: var(--gp-border-strong);
  background: var(--gp-surface);
}

.guest-public .btn-ghost:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.guest-public .badge-soft {
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.25);
  background: rgba(254, 243, 199, 0.75);
}

.guest-public .label {
  color: var(--gp-subtle);
}

.guest-public input,
.guest-public select,
.guest-public textarea {
  border: 1px solid var(--gp-border-strong);
  background: #f8fafc;
  color: var(--gp-text);
}

.guest-public input:focus,
.guest-public select:focus,
.guest-public textarea:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.guest-public .help {
  color: var(--gp-muted);
}

.guest-public .stat {
  background: var(--gp-surface);
  border-color: var(--gp-border);
}

.guest-public .stat .capt {
  color: var(--gp-muted);
}

.guest-public .stat .number {
  color: var(--gp-text);
}

.guest-public .section-head h2 {
  color: var(--gp-text);
}

.guest-public .pill-link {
  color: var(--gp-accent);
  font-weight: 850;
}

.guest-public .pill-link:hover {
  color: var(--gp-accent-hover);
  text-decoration: underline;
}

.guest-public .feature {
  background: var(--gp-surface);
  border-color: var(--gp-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.guest-public .feature h3 {
  color: var(--gp-text);
}

.guest-public .feature p {
  color: var(--gp-muted);
}

.guest-public .notice-item {
  border: 1px solid var(--gp-border);
  background: #fafbfc;
}

.guest-public .notice-item h4 {
  color: var(--gp-text);
}

.guest-public .notice-item p {
  color: var(--gp-muted);
}

.guest-public .muted-html {
  color: var(--gp-muted);
}

.guest-public .panel-title h2 {
  color: var(--gp-text);
}

/* ---- Header -------------------------------------------------------------- */

.guest-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--gp-border);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 36px rgba(15, 23, 42, 0.05);
}

.guest-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.guest-brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.guest-brand-link:hover .guest-brand-name {
  color: var(--gp-accent);
}

.guest-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, 0.55), transparent 48%),
    linear-gradient(145deg, #3b82f6, #1e40af 48%, #172554);
  border: 1px solid rgba(30, 64, 175, 0.35);
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.22);
}

.guest-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.guest-brand-name {
  font-weight: 900;
  font-size: 1.04rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: var(--gp-text);
  white-space: nowrap;
}

.guest-brand-tag {
  font-size: 0.78rem;
  color: var(--gp-muted);
  font-weight: 650;
  letter-spacing: 0.02em;
  max-width: 38ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guest-nav-trigger {
  display: none;
  border: 1px solid var(--gp-border-strong);
  background: var(--gp-surface);
  color: var(--gp-text);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}

.guest-nav-trigger:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.guest-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
}

.guest-nav-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.guest-nav-portals {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-left: 18px;
  border-left: 1px solid var(--gp-border);
}

.guest-nlink {
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--gp-muted);
  transition: background 0.14s ease, color 0.14s ease;
}

.guest-nlink:hover {
  color: var(--gp-text);
  background: rgba(241, 245, 249, 0.9);
}

.guest-nlink.is-active {
  color: var(--gp-accent);
  background: var(--gp-accent-soft);
}

.guest-nlink-admin {
  color: #475569;
  font-weight: 750;
}

.guest-nlink-admin:hover {
  color: var(--gp-text);
}

.guest-portals-label {
  font-size: 0.62rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gp-subtle);
}

.guest-pill {
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.77rem;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.guest-pill:active {
  transform: translateY(1px);
}

.guest-pill-donor {
  background: #fff;
  border-color: var(--gp-border-strong);
  color: #334155;
}

.guest-pill-donor:hover {
  border-color: #64748b;
  background: #f8fafc;
}

.guest-pill-patient {
  background: var(--gp-accent-soft);
  border-color: rgba(37, 99, 235, 0.22);
  color: #1e40af;
}

.guest-pill-patient:hover {
  background: #dbeafe;
}

.guest-pill-hospital {
  background: var(--gp-teal-soft);
  border-color: rgba(15, 118, 110, 0.2);
  color: #115e59;
}

.guest-pill-hospital:hover {
  background: #d1fae5;
}

@media (max-width: 980px) {
  .guest-nav-trigger {
    display: inline-flex;
  }

  .guest-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 16px clamp(14px, 4vw, 22px) 22px;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--gp-border);
    box-shadow: var(--gp-shadow-lg);
    backdrop-filter: blur(14px);
    gap: 18px;
  }

  .guest-nav.is-open {
    display: flex;
  }

  .guest-bar-inner {
    position: relative;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
  }

  .guest-brand-link {
    width: calc(100% - 108px);
  }

  .guest-nav-trigger {
    order: 3;
    margin-left: auto;
    flex-shrink: 0;
  }

  .guest-nav-portals {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--gp-border);
    padding-top: 16px;
  }

  .guest-nav-primary {
    flex-direction: column;
    align-items: stretch;
  }

  .guest-nlink {
    border-radius: 12px;
  }
}

@media (max-width: 980px) {
  .guest-bar-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
  }

  .guest-brand-link {
    grid-column: 1;
    grid-row: 1;
    width: auto;
  }

  .guest-nav-trigger {
    grid-column: 2;
    grid-row: 1;
    order: 0;
    margin-left: 0;
  }

  .guest-nav {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* ---- Trust strip --------------------------------------------------------- */

.guest-strip {
  border-bottom: 1px solid var(--gp-border);
  background: rgba(255, 255, 255, 0.55);
}

.guest-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  padding: 10px 0;
  font-size: 0.76rem;
  font-weight: 750;
  color: var(--gp-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.guest-strip-dot {
  opacity: 0.45;
}

/* ---- Main sections ------------------------------------------------------ */

.guest-public .guest-main section.hero.container {
  padding-top: clamp(52px, 8vw, 78px);
  padding-bottom: 36px;
}

.guest-public .hero-grid {
  align-items: center;
}

.guest-avail-card {
  position: relative;
  overflow: hidden;
}

.guest-avail-card::before {
  content: '';
  position: absolute;
  top: -45%;
  right: -14%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1), transparent 68%);
  pointer-events: none;
}

.guest-avail-result {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: rgba(239, 246, 255, 0.9);
  font-size: 0.93rem;
  color: #1e3a8a;
}

.guest-avail-result strong {
  color: #1e40af;
}

.guest-portal-hint {
  margin-top: 18px;
  font-size: 0.86rem;
  color: var(--gp-muted);
  line-height: 1.55;
}

.guest-portal-hint .gp-don {
  font-weight: 800;
  color: #334155;
}
.guest-portal-hint .gp-pat {
  font-weight: 800;
  color: #1d4ed8;
}
.guest-portal-hint .gp-hos {
  font-weight: 800;
  color: #0f766e;
}

.guest-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.guest-btn-row .btn {
  min-height: 44px;
}

.guest-public .stats {
  padding: 26px 0 56px;
}

.guest-kpi-shell {
  position: relative;
  padding-top: 8px;
}

.guest-kpi-shell::before {
  content: '';
  position: absolute;
  inset: auto 14px 100% 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gp-border), transparent);
}

.stats-grid.guest-stats {
  gap: 18px;
}

.stat.guest-stat {
  padding: 20px 20px 20px 18px;
  border-radius: var(--radius);
  background: var(--gp-surface);
  border: 1px solid var(--gp-border);
  border-left: 4px solid var(--gp-accent);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  align-items: baseline;
}

.guest-stat-ico {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 950;
  font-size: 0.95rem;
  color: #fff;
}

.guest-stat-ico--donor {
  background: linear-gradient(145deg, #475569, #334155);
}
.guest-stat-ico--patient {
  background: linear-gradient(145deg, #2563eb, #1e40af);
}
.guest-stat-ico--hospital {
  background: linear-gradient(145deg, #0d9488, #0f766e);
}
.guest-stat-ico--units {
  background: linear-gradient(145deg, #6366f1, #4338ca);
}

.guest-stat .number {
  grid-column: 2;
}
.guest-stat .capt {
  grid-column: 2;
}

.guest-section-label {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gp-subtle);
  margin-bottom: 10px;
}

.guest-cap-head {
  max-width: 52ch;
}

.guest-cap-head h2 {
  margin-top: 0;
}

.section-head.guest-section-head {
  align-items: flex-start;
}

.grid-3 .feature.guest-feature {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  min-height: 100%;
}

.guest-feature .icon-dot.guest-fe-ico {
  width: 44px;
  height: 44px;
}

.guest-fe-ico.fe-a {
  background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
  border: 1px solid rgba(37, 99, 235, 0.22);
}

.guest-fe-ico.fe-b {
  background: linear-gradient(135deg, #d1fae5 0%, #ecfdf5 100%);
  border: 1px solid rgba(15, 118, 110, 0.2);
}

.guest-fe-ico.fe-c {
  background: linear-gradient(135deg, #e0e7ff 0%, #eef2ff 100%);
  border: 1px solid rgba(67, 56, 202, 0.2);
}

.guest-chip {
  flex-shrink: 0;
}

.guest-public .duo {
  gap: 22px;
  padding-bottom: 78px;
}

.guest-about-card .muted-html.guest-about-inner {
  font-size: 0.95rem;
  line-height: 1.75;
}

.notice-item.guest-notice {
  border-left: 3px solid #2563eb;
  background: #fafbff;
}

/* ---- CTA band ------------------------------------------------------------ */

.guest-cta-band {
  margin: -10px auto 72px;
  padding: clamp(24px, 4vw, 34px);
  border-radius: var(--radius);
  border: 1px solid var(--gp-border);
  background:
    linear-gradient(115deg, rgba(239, 246, 255, 0.95) 0%, rgba(255, 255, 255, 0.92) 45%, rgba(236, 253, 245, 0.5) 100%);
  box-shadow: var(--gp-shadow);
}

.guest-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  justify-content: space-between;
}

.guest-cta-copy h3 {
  margin: 0 0 8px;
  font-size: 1.32rem;
  letter-spacing: -0.02em;
  color: var(--gp-text);
}

.guest-cta-copy p {
  margin: 0;
  max-width: 56ch;
  color: var(--gp-muted);
  line-height: 1.6;
}

.guest-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

/* ---- Footer -------------------------------------------------------------- */

.guest-footer {
  border-top: 1px solid var(--gp-border);
  background:
    radial-gradient(800px 200px at 50% -10%, rgba(37, 99, 235, 0.06), transparent 70%),
    #f1f5f9;
  padding: 52px 0 0;
}

.guest-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 32px;
}

@media (max-width: 960px) {
  .guest-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .guest-footer-grid {
    grid-template-columns: 1fr;
  }
}

.guest-footer-brand {
  font-weight: 950;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
  color: var(--gp-text);
}

.guest-footer-desc {
  margin: 0 0 14px;
  color: var(--gp-muted);
  line-height: 1.65;
  font-size: 0.92rem;
  max-width: 44ch;
}

.guest-footer-muted {
  color: var(--gp-muted);
  font-size: 0.85rem;
  line-height: 1.65;
}

.guest-footer-heading {
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gp-subtle);
  margin-bottom: 14px;
}

.guest-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.guest-footer-links li + li {
  margin-top: 10px;
}

.guest-footer-links a {
  color: #334155;
  font-weight: 650;
}

.guest-footer-links a:hover {
  color: var(--gp-accent);
}

.guest-dl {
  margin: 0;
}

.guest-dl dt {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gp-subtle);
}

.guest-dl dd {
  margin: 4px 0 14px;
  font-weight: 650;
  color: var(--gp-text);
}

.guest-dl a {
  color: var(--gp-accent);
}

.guest-footer-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  margin-top: 40px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--gp-border);
  font-size: 0.82rem;
  color: var(--gp-muted);
}

.guest-footer-base a {
  color: var(--gp-accent);
  font-weight: 750;
}

/* ---- Guidelines page ----------------------------------------------------- */

.guest-doc-wrap {
  padding: 28px 0 60px;
}

.guest-doc-hero {
  max-width: 720px;
  margin-bottom: 22px;
}

.guest-breadcrumbs {
  font-size: 0.82rem;
  margin-bottom: 14px;
  color: var(--gp-muted);
  font-weight: 650;
}

.guest-breadcrumbs a {
  color: var(--gp-accent);
  font-weight: 750;
}

.guest-doc-hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 3.8vw, 2.35rem);
  letter-spacing: -0.03em;
  color: var(--gp-text);
}

.guest-doc-lead {
  margin: 12px 0 0;
  color: var(--gp-muted);
  max-width: 58ch;
  line-height: 1.68;
}

.guest-doc-body {
  padding: clamp(26px, 4vw, 36px);
}

.guest-doc-body.shell {
  margin-bottom: 8px;
}

.guest-prose {
  font-size: 1.02rem;
  line-height: 1.82;
}

.guest-doc-aside-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .guest-doc-aside-grid {
    grid-template-columns: 1fr;
  }
}

.guest-side-card {
  padding: 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gp-border);
  background: var(--gp-surface);
  box-shadow: var(--gp-shadow);
}

.guest-side-card h3 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: var(--gp-text);
}

.guest-side-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--gp-muted);
  line-height: 1.58;
}

.guest-side-links {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.guest-side-links a {
  display: inline-flex;
  font-weight: 800;
}

.guest-pill-soft {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(254, 243, 199, 0.9);
  color: #92400e;
  border: 1px solid rgba(217, 119, 6, 0.22);
}
