/* Guest / public marketing & auth — CareLink */
.public-site {
  --guest-deep: #0c1929;
  --guest-ink: #0f172a;
  --guest-accent: #0369a1;
  --guest-accent-soft: #e0f2fe;
  --guest-warm: #f0f9ff;
  /* Match form focus ring to public brand */
  --input-focus: #0369a1;
  --input-focus-glow: rgba(3, 105, 161, 0.22);
  --input-border: #cbd5e1;
}

.public-site .site-header {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}
.public-site .brand-mark {
  background: linear-gradient(135deg, #0369a1, #0d9488);
  border-radius: 12px;
}
.public-site .nav-links a.nav-cta {
  color: var(--guest-accent);
}

/* Trust strip */
.guest-trust-strip {
  background: var(--guest-deep);
  color: #cbd5e1;
  font-size: 0.82rem;
  padding: 10px 0;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.guest-trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
}
.guest-trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.guest-trust-strip strong {
  color: #fff;
  font-weight: 700;
}

/* Hero */
.guest-hero {
  position: relative;
  padding: clamp(48px, 8vw, 88px) 0 64px;
  background:
    radial-gradient(ellipse 900px 420px at 15% -20%, rgba(3, 105, 161, 0.18), transparent),
    radial-gradient(ellipse 700px 380px at 95% 10%, rgba(13, 148, 136, 0.14), transparent),
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 50%, var(--bg) 100%);
  overflow: hidden;
}
.guest-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2394a3b8' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
  pointer-events: none;
}
.guest-hero .container {
  position: relative;
  z-index: 1;
}
.guest-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
}
@media (max-width: 960px) {
  .guest-hero-grid {
    grid-template-columns: 1fr;
  }
}
.guest-eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--guest-accent);
  margin: 0 0 12px;
}
.guest-hero h1 {
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
  color: var(--guest-ink);
}
.guest-hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 54ch;
  line-height: 1.65;
}
.guest-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}
.guest-hero-actions .btn-primary {
  background: linear-gradient(135deg, #0369a1, #0d9488);
  box-shadow: 0 10px 28px rgba(3, 105, 161, 0.28);
}
.guest-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.guest-pills .pill {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(15, 23, 42, 0.08);
  color: var(--muted);
  font-weight: 600;
}

.guest-hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 26px 22px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.1);
  border-top: 4px solid var(--guest-accent);
}
.guest-hero-panel h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
  color: var(--guest-ink);
}
.guest-hero-panel .guest-panel-sub {
  margin: 0 0 20px;
  font-size: 0.92rem;
  color: var(--muted);
}
.guest-live-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 520px) {
  .guest-live-stats {
    grid-template-columns: 1fr;
  }
}
.guest-live-stat {
  padding: 14px 12px;
  border-radius: 14px;
  background: var(--guest-warm);
  border: 1px solid #bae6fd;
  text-align: center;
}
.guest-live-stat .num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--guest-ink);
  line-height: 1.1;
}
.guest-live-stat .lbl {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--guest-accent);
  margin-top: 4px;
}
.guest-hero-note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.guest-hero-note code {
  font-size: 0.85em;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 6px;
}

/* Sections */
.guest-section {
  padding: clamp(48px, 7vw, 72px) 0;
}
.guest-section.alt {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.guest-section-head {
  max-width: 720px;
  margin-bottom: 36px;
}
.guest-section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.5vw, 1.75rem);
  color: var(--guest-ink);
  letter-spacing: -0.02em;
}
.guest-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.guest-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 900px) {
  .guest-feature-grid {
    grid-template-columns: 1fr;
  }
}
.guest-feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px 22px;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.guest-feature-card:hover {
  border-color: #bae6fd;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}
.guest-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--guest-accent-soft);
  color: var(--guest-accent);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: 14px;
  font-weight: 700;
}
.guest-feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--guest-ink);
}
.guest-feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Flow timeline */
.guest-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 800px) {
  .guest-flow {
    grid-template-columns: 1fr;
  }
}
.guest-flow-step {
  position: relative;
  padding: 22px 20px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.guest-flow-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--guest-accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}
.guest-flow-step h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  padding-right: 40px;
  color: var(--guest-ink);
}
.guest-flow-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

/* Featured providers */
.guest-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.guest-doc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.guest-doc-card .guest-av {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--guest-accent-soft), #ccfbf1);
  color: var(--guest-accent);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}
.guest-doc-card h3 {
  margin: 0;
  font-size: 1.05rem;
}
.guest-doc-card .dept {
  margin: 4px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--guest-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.guest-doc-card .spec {
  margin: 6px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}
.guest-doc-card .fee {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--guest-ink);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.guest-doc-card .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* FAQ */
.guest-faq {
  max-width: 760px;
}
.guest-faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 12px;
  background: var(--surface);
}
.guest-faq-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--guest-ink);
}
.guest-faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* CTA band */
.guest-cta-band {
  background: linear-gradient(135deg, #0c4a6e, #0f766e);
  color: #e0f2fe;
  padding: 48px 0;
  text-align: center;
}
.guest-cta-band h2 {
  margin: 0 0 12px;
  font-size: 1.65rem;
  color: #fff;
}
.guest-cta-band p {
  margin: 0 auto 22px;
  max-width: 52ch;
  opacity: 0.92;
}
.guest-cta-band .btn-primary {
  background: #fff;
  color: #0c4a6e;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.guest-cta-band .btn-primary:hover {
  color: #0c4a6e;
  filter: brightness(1.05);
}
.guest-cta-band .btn-ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.guest-cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

/* Directory pages */
.guest-page-hero {
  background: linear-gradient(180deg, #f0f9ff, var(--bg));
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--border);
}
.guest-page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3vw, 2rem);
  color: var(--guest-ink);
}
.guest-page-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.6;
}
.guest-filters-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 24px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  box-shadow: var(--shadow);
}
.guest-filters-bar input[type="search"],
.guest-filters-bar select {
  flex: 1;
  min-width: 200px;
}

.guest-detail-head {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.guest-detail-head .guest-av-lg {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--guest-accent-soft), #ccfbf1);
  color: #0e7490;
  font-size: 1.65rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.guest-detail-head h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}
.guest-detail-meta {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}
.guest-detail-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.guest-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 860px) {
  .guest-detail-grid {
    grid-template-columns: 1fr;
  }
}
.guest-info-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.guest-info-panel h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  color: var(--guest-accent);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.guest-dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 8px 16px;
  font-size: 0.92rem;
}
@media (max-width: 520px) {
  .guest-dl {
    grid-template-columns: 1fr;
  }
}
.guest-dl dt {
  color: var(--muted);
  font-weight: 600;
}
.guest-dl dd {
  margin: 0;
}

.guest-callout {
  background: var(--guest-warm);
  border: 1px solid #bae6fd;
  border-radius: 14px;
  padding: 18px 20px;
  margin-top: 22px;
}
.guest-callout strong {
  display: block;
  margin-bottom: 6px;
  color: var(--guest-ink);
}

/* Auth split layout */
.guest-auth-layout {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
}
@media (max-width: 960px) {
  .guest-auth-layout {
    grid-template-columns: 1fr;
  }
}
.guest-auth-aside {
  background: linear-gradient(165deg, #0c4a6e 0%, #134e4a 100%);
  color: #e0f2fe;
  padding: clamp(32px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.guest-auth-aside h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.25;
  color: #fff;
}
.guest-auth-aside p {
  margin: 0;
  opacity: 0.9;
  line-height: 1.6;
  font-size: 0.98rem;
}
.guest-auth-aside ul {
  margin: 0;
  padding-left: 1.2rem;
  opacity: 0.92;
  line-height: 1.7;
  font-size: 0.92rem;
}
.guest-auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4vw, 48px) 20px;
  background: var(--bg);
}
.guest-auth-card {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}
.guest-auth-card h1 {
  margin: 0 0 8px;
  font-size: 1.5rem;
  color: var(--guest-ink);
}
.guest-auth-card .hint {
  margin: 0 0 22px;
}

/* Wide registration */
.guest-reg-page {
  padding: 36px 0 56px;
}
.guest-reg-layout {
  max-width: 820px;
  margin: 0 auto;
}
.guest-reg-header {
  text-align: center;
  margin-bottom: 28px;
}
.guest-reg-header h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  color: var(--guest-ink);
}
.guest-reg-header p {
  margin: 0 auto;
  max-width: 56ch;
  color: var(--muted);
  line-height: 1.6;
}
.guest-reg-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 30px 32px;
  box-shadow: var(--shadow);
}
.guest-reg-card .split {
  gap: 20px 28px;
}
.guest-reg-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.guest-reg-card select,
.guest-reg-card textarea {
  background-color: #fafbfc;
}
.guest-reg-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover:not(:disabled),
.guest-reg-card select:hover:not(:disabled),
.guest-reg-card textarea:hover:not(:disabled) {
  background-color: #fff;
}
.guest-reg-section {
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.guest-reg-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.guest-reg-section h2 {
  margin: 0 0 16px;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--guest-accent);
}

/* Footer */
.public-site .site-footer {
  background: var(--guest-ink);
  color: #94a3b8;
  border-top: none;
  padding: 48px 0 28px;
}
.public-site .site-footer a {
  color: #e2e8f0;
}
.public-site .site-footer a:hover {
  color: #fff;
}
.guest-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px 24px;
  margin-bottom: 32px;
}
@media (max-width: 800px) {
  .guest-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .guest-footer-grid {
    grid-template-columns: 1fr;
  }
}
.guest-footer-brand {
  font-weight: 800;
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.guest-footer-col h4 {
  margin: 0 0 12px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748b;
}
.guest-footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.guest-footer-col li {
  margin-bottom: 8px;
}
.guest-footer-col a {
  text-decoration: none;
  font-size: 0.92rem;
}
.guest-footer-col a:hover {
  text-decoration: underline;
}
.guest-footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

.guest-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 16px;
}
