:root {
  --dh-font-ui: Tahoma, "Segoe UI", Verdana, Geneva, sans-serif;
  --dh-teal: #0d9488;
  --dh-teal-dark: #0f766e;
  --dh-navy: #0f172a;
  --dh-slate: #334155;
  --dh-mint: #ccfbf1;
  --dh-cream: #f8fafc;
  --dh-white: #ffffff;
  --dh-accent: #f59e0b;
  --radius: 12px;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

/* Screen-reader-only (home nav toggle label, etc.) */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

* { box-sizing: border-box; }
body.public {
  margin: 0;
  font-family: var(--dh-font-ui);
  color: var(--dh-slate);
  background: var(--dh-cream);
  line-height: 1.6;
}

.container { width: min(1120px, 92vw); margin-inline: auto; }

.site-header {
  background: var(--dh-white);
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.logo {
  font-family: var(--dh-font-ui);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--dh-navy);
  text-decoration: none;
}
.logo span { color: var(--dh-teal); }
.nav-main {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.nav-main a {
  color: var(--dh-slate);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}
.nav-main a:hover { color: var(--dh-teal); }
.header-actions { display: flex; gap: 0.5rem; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--dh-teal), var(--dh-teal-dark));
  color: var(--dh-white);
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--dh-navy);
  border: 1px solid #cbd5e1;
}
.btn-lg { padding: 0.85rem 1.75rem; font-size: 1rem; }

.hero {
  padding: 4rem 0 3rem;
  background: radial-gradient(1200px 600px at 10% -20%, var(--dh-mint), transparent),
    linear-gradient(180deg, var(--dh-white) 0%, var(--dh-cream) 100%);
}
.hero h1 {
  font-family: var(--dh-font-ui);
  font-size: clamp(2rem, 4vw, 2.85rem);
  color: var(--dh-navy);
  line-height: 1.15;
  margin: 0 0 1rem;
}
.hero p.lead { font-size: 1.15rem; max-width: 36rem; margin-bottom: 1.75rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.section { padding: 3.5rem 0; }
.section h2 {
  font-family: var(--dh-font-ui);
  color: var(--dh-navy);
  font-size: 1.75rem;
  margin: 0 0 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.card {
  background: var(--dh-white);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
  border: 1px solid #e2e8f0;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--dh-navy); }
.card .meta { font-size: 0.85rem; color: #64748b; }
.card .price { color: var(--dh-teal); font-weight: 700; margin-top: 0.5rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}
.step {
  background: var(--dh-white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--dh-teal);
  box-shadow: var(--shadow);
}
.step strong { color: var(--dh-teal); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  text-align: center;
}
.stat {
  background: var(--dh-white);
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.stat .num { font-family: var(--dh-font-ui); font-size: 1.75rem; color: var(--dh-teal); font-weight: 700; }

.site-footer {
  background: var(--dh-navy);
  color: #94a3b8;
  padding: 2.5rem 0 1rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding-bottom: 1.5rem;
}
.site-footer a { color: var(--dh-mint); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 1rem 0; font-size: 0.85rem; }

.page-head { padding: 2rem 0 1rem; }
.page-head h1 { font-family: var(--dh-font-ui); color: var(--dh-navy); margin: 0; }

.form-row { margin-bottom: 1rem; }
.form-row label { display: block; font-weight: 600; margin-bottom: 0.35rem; font-size: 0.9rem; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; max-width: 400px; padding: 0.65rem 0.85rem; border: 1px solid #cbd5e1;
  border-radius: 8px; font: inherit;
}
.alert { padding: 0.75rem 1rem; border-radius: 8px; margin-bottom: 1rem; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }

.tabs-login { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.tabs-login a {
  padding: 0.5rem 1rem; border-radius: 8px; text-decoration: none; color: var(--dh-slate);
  background: #e2e8f0; font-weight: 600;
}
.tabs-login a.active { background: var(--dh-teal); color: white; }

.auth-box { max-width: 440px; margin: 2rem auto; background: white; padding: 2rem; border-radius: var(--radius); box-shadow: var(--shadow); }

.auth-hidden { display: none !important; }
.text-muted { color: #64748b; }

.auth-page-wrap {
  background: linear-gradient(165deg, rgba(99, 95, 250, 0.06) 0%, rgba(13, 148, 136, 0.08) 45%, #f8fafc 100%);
  min-height: 58vh;
}
.auth-card.auth-box {
  max-width: 460px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.08), 0 2px 8px rgba(15, 23, 42, 0.04);
}
.auth-card-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}
.auth-card-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--dh-teal), var(--dh-base, #635FFA));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card-icon.auth-card-icon--hospital {
  background: color-mix(in srgb, var(--pub-primary) 14%, transparent);
  color: var(--pub-primary);
}
.auth-card-title {
  font-family: var(--dh-font-ui);
  color: var(--dh-navy);
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  line-height: 1.2;
}
.auth-card-sub {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.45;
}
.auth-switch-hint {
  margin: 1.15rem 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: #64748b;
}
.auth-switch-hint a {
  color: var(--dh-teal, #0d9488);
  font-weight: 600;
  text-decoration: none;
}
.auth-switch-hint a:hover { text-decoration: underline; }
.tabs-login a:focus-visible {
  outline: 2px solid var(--dh-teal);
  outline-offset: 2px;
}
.auth-password-wrap {
  display: flex;
  align-items: stretch;
  max-width: 400px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}
.auth-password-wrap input {
  border: none !important;
  border-radius: 0 !important;
  flex: 1;
  min-width: 0;
}
.auth-toggle-pass {
  border: none;
  background: #f1f5f9;
  color: var(--dh-navy);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}
.auth-toggle-pass:hover { background: #e2e8f0; }
.auth-forgot { margin: 0 0 1rem; font-size: 0.9rem; }
.auth-forgot a { color: var(--dh-teal); font-weight: 600; }
.auth-submit { width: 100%; max-width: 400px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
.auth-demo-hint {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #64748b;
}
.auth-demo-hint code { font-size: 0.8rem; background: #f1f5f9; padding: 0.15rem 0.35rem; border-radius: 4px; }
.form-row--half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  max-width: 400px;
}
@media (max-width: 480px) {
  .form-row--half { grid-template-columns: 1fr; }
}
.auth-agree {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  max-width: 400px;
}
.auth-agree input { width: auto; margin-top: 0.35rem; flex-shrink: 0; }
.auth-agree label { margin: 0; font-weight: 500; }
