/* DoctorPlus Clean Clinical Minimal foundation.
   This file intentionally avoids glassmorphism, decorative gradients,
   fake social proof styling, oversized rounded pills and heavy shadows. */
:root {
  --dp-primary: #0F6CBD;
  --dp-primary-hover: #0B5AA6;
  --dp-secondary: #14B8A6;
  --dp-bg: #F7F9FB;
  --dp-surface: #FFFFFF;
  --dp-border: #E5E7EB;
  --dp-text: #111827;
  --dp-text-muted: #6B7280;
  --dp-success: #16A34A;
  --dp-warning: #F59E0B;
  --dp-danger: #EF4444;
  --dp-info: #3B82F6;
  --dp-focus: rgba(15, 108, 189, 0.18);
  --dp-radius-input: 6px;
  --dp-radius-button: 6px;
  --dp-radius-card: 8px;
  --dp-radius-modal: 10px;
  --dp-shadow-subtle: 0 1px 2px rgba(17, 24, 39, 0.06);
  --dp-shadow-none: none;

  /* Compatibility aliases for existing pages. */
  --blue: var(--dp-primary);
  --blue-dark: var(--dp-primary-hover);
  --blue-soft: #EAF4FF;
  --navy: var(--dp-text);
  --muted: var(--dp-text-muted);
  --border: var(--dp-border);
  --bg: var(--dp-bg);
  --white: var(--dp-surface);
  --green: var(--dp-success);
  --red: var(--dp-danger);
  --amber: var(--dp-warning);
  --radius: var(--dp-radius-card);
  --shadow: var(--dp-shadow-subtle);

  --dp-blue: var(--dp-primary);
  --dp-blue-dark: var(--dp-primary-hover);
  --dp-blue-deep: #0A3F73;
  --dp-blue-soft: #EAF4FF;
  --dp-blue-soft-2: #F3F8FD;
  --dp-teal: var(--dp-secondary);
  --dp-green: var(--dp-success);
  --dp-muted: var(--dp-text-muted);
  --dp-background: var(--dp-bg);
  --shadow-sm: var(--dp-shadow-subtle);
  --shadow-md: var(--dp-shadow-subtle);
  --radius-sm: var(--dp-radius-button);
  --radius-md: var(--dp-radius-card);
  --radius-lg: 12px;
}

html {
  background: var(--dp-bg);
}

body {
  background: var(--dp-bg) !important;
  color: var(--dp-text) !important;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif !important;
}

button,
.btn,
.primary,
.secondary,
.danger,
.primary-btn,
.secondary-btn,
.danger-btn,
.success-btn,
.google-btn,
.cta-primary,
.cta-secondary {
  border-radius: var(--dp-radius-button) !important;
  box-shadow: none !important;
}

button,
.btn,
.primary,
.primary-btn,
.cta-primary {
  min-height: 42px;
}

.primary,
.primary-btn,
.cta-primary,
button[data-primary="true"] {
  background: var(--dp-primary) !important;
  color: #fff !important;
}

.primary:hover,
.primary-btn:hover,
.cta-primary:hover {
  background: var(--dp-primary-hover) !important;
}

.secondary,
.secondary-btn,
.cta-secondary,
.google-btn {
  background: var(--dp-surface) !important;
  color: var(--dp-text) !important;
  border: 1px solid var(--dp-border) !important;
}

.danger,
.danger-btn {
  background: #FEF2F2 !important;
  color: #B91C1C !important;
  border: 1px solid #FECACA !important;
}

input,
select,
textarea,
.field input,
.queue-select {
  border: 1px solid var(--dp-border) !important;
  border-radius: var(--dp-radius-input) !important;
  background: var(--dp-surface) !important;
  color: var(--dp-text) !important;
  box-shadow: none !important;
}

input:focus,
select:focus,
textarea:focus,
.field input:focus {
  border-color: var(--dp-primary) !important;
  box-shadow: 0 0 0 3px var(--dp-focus) !important;
  outline: 0;
}

.topbar,
.header {
  background: var(--dp-surface) !important;
  border-bottom: 1px solid var(--dp-border) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.auth-card,
.card,
.appt,
.queue-hero,
.sidebar,
.notice-box,
.message,
.patient-card,
.legal-card,
.panel,
.feature-card,
.step-card {
  background: var(--dp-surface) !important;
  border: 1px solid var(--dp-border) !important;
  border-radius: var(--dp-radius-card) !important;
  box-shadow: var(--dp-shadow-subtle) !important;
}

.hero,
.auth-wrapper,
.auth-wrap,
.landing-hero,
.page-hero {
  background: var(--dp-surface) !important;
  border: 1px solid var(--dp-border) !important;
  box-shadow: none !important;
}

.mark,
.logo,
.brand-logo {
  border-radius: var(--dp-radius-card) !important;
  background: var(--dp-primary) !important;
  box-shadow: none !important;
}

.badge,
.nav-badge,
.queue-status,
.status-chip,
.owner-badge {
  border-radius: 999px !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}

.tab,
.navbtn,
.choice-btn {
  border-radius: var(--dp-radius-button) !important;
  box-shadow: none !important;
}

.tab.active,
.navbtn.active,
.choice-btn.selected {
  background: #EAF4FF !important;
  color: var(--dp-primary-hover) !important;
  border-color: var(--dp-primary) !important;
}

.grid,
.queue-metrics,
.appt-meta {
  gap: 12px !important;
}

.empty {
  background: var(--dp-surface) !important;
  border: 1px dashed var(--dp-border) !important;
  border-radius: var(--dp-radius-card) !important;
  color: var(--dp-text-muted) !important;
}

h1,
h2,
h3 {
  color: var(--dp-text);
  letter-spacing: -0.02em;
}

.muted,
.status-line,
.caption,
small {
  color: var(--dp-text-muted) !important;
}

.table-wrap,
.table-container {
  border: 1px solid var(--dp-border) !important;
  border-radius: var(--dp-radius-card) !important;
  overflow: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th {
  background: #F3F4F6 !important;
  color: var(--dp-text-muted) !important;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td,
th {
  border-bottom: 1px solid var(--dp-border) !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.hero-highlight,
.gradient-text,
.highlight-gradient {
  background: none !important;
  color: var(--dp-primary) !important;
  -webkit-text-fill-color: currentColor !important;
}

[class*="blob"],
[class*="particle"],
.cursor-follower,
.cursor-trail {
  display: none !important;
}

/* File 75C: clean clinical public UI refinement.
   This pass removes remaining startup-template visual habits while preserving page structure and business logic. */
:root {
  --dp-page-max: 1180px;
}

body {
  min-height: 100vh;
}

.header,
.topbar,
header {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.container,
.topbar-inner {
  width: min(calc(100% - 32px), var(--dp-page-max)) !important;
}

.hero,
.landing-hero,
.page-hero,
.auth-wrap,
.auth-wrapper {
  background: var(--dp-bg) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--dp-border) !important;
  border-radius: 0 !important;
  padding-block: clamp(36px, 6vw, 72px) !important;
}

.hero h1,
.landing-hero h1,
.page-hero h1 {
  max-width: 760px !important;
  color: var(--dp-text) !important;
  font-size: clamp(2rem, 4.4vw, 3.2rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.035em !important;
}

.hero-copy,
.lead,
.page-copy {
  max-width: 760px !important;
  color: var(--dp-text-muted) !important;
  font-size: 1rem !important;
  line-height: 1.65 !important;
}

.hero-highlight,
.gradient-text,
.highlight {
  color: var(--dp-text) !important;
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
}

.eyebrow,
.badge,
.hero-note-item,
.dashboard-pill,
.status-chip,
.payment-status,
.queue-status,
.nav-badge {
  background: #F3F4F6 !important;
  color: var(--dp-text) !important;
  border: 1px solid var(--dp-border) !important;
  border-radius: 999px !important;
}

.eyebrow-dot,
.badge-dot,
.check-icon {
  background: var(--dp-primary) !important;
  color: #fff !important;
  border-radius: 999px !important;
}

.product-stage,
.dashboard-card,
.phone-preview,
.phone-frame,
.browser-frame,
.preview-card,
.metric-card,
.hospital-metric,
.trust-card,
.feature-card {
  background: var(--dp-surface) !important;
  border: 1px solid var(--dp-border) !important;
  border-radius: var(--dp-radius-card) !important;
  box-shadow: var(--dp-shadow-subtle) !important;
}

.metric-value,
.hospital-metric strong,
.queue-token {
  color: var(--dp-primary) !important;
}

.trust-grid,
.feature-grid,
.hospital-metrics,
.dashboard-grid {
  gap: 12px !important;
}

.section,
.content-section,
.legal-section {
  background: transparent !important;
}

.toc {
  border-radius: var(--dp-radius-card) !important;
  box-shadow: none !important;
}

.card,
.legal-card,
.policy-card,
.notice,
.notice-box,
.message,
.queue-notice,
.meta,
.queue-metric {
  border-radius: var(--dp-radius-card) !important;
  box-shadow: none !important;
}

.footer,
footer {
  background: var(--dp-surface) !important;
  border-top: 1px solid var(--dp-border) !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 760px) {
  .hero,
  .landing-hero,
  .page-hero {
    padding-block: 32px !important;
  }

  .hero-actions,
  .quick,
  .step-actions,
  .top-actions,
  .nav-actions {
    align-items: stretch !important;
  }

  .hero-actions .btn,
  .quick .btn,
  .step-actions .btn {
    width: 100% !important;
  }
}

