/* HealPlus marketing: tokens & base — :root is dark by default; html[data-theme="light"] opts into light. */
:root {
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Poppins", var(--font-sans);
  /* Fluid content cap: scales down on phones, up toward ~1580px on large displays */
  --content-max: min(1580px, 94vw);
  --page-gutter: clamp(1rem, 4vw, 5.5rem);
  /* Brand teal (matches hero “Get started”) */
  --brand-teal-deep: #0f766e;
  --brand-teal-mid: #14b8a6;
  --brand-teal-bright: #2dd4bf;
  --brand-teal-glow: #5eead4;
  /* Dark palette (default) */
  --color-bg: #0b1220;
  --color-bg-elevated: rgba(30, 41, 59, 0.65);
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-primary: var(--brand-teal-mid);
  --color-primary-dark: var(--brand-teal-deep);
  --color-accent: var(--brand-teal-bright);
  --color-accent-soft: rgba(45, 212, 191, 0.15);
  --color-primary-soft: rgba(45, 212, 191, 0.22);
  --btn-primary-fg: #0f172a;
  --color-border: rgba(148, 163, 184, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 48px rgba(0, 0, 0, 0.35);
  --radius: 1rem;
  --radius-lg: 1.25rem;
  --header-h: 4.25rem;
  --transition: 0.25s ease;
}

html[data-theme="light"] {
  --color-bg: #f0fdfa;
  --color-bg-elevated: rgba(255, 255, 255, 0.72);
  --color-text: #0f172a;
  --color-text-muted: #475569;
  --color-primary-soft: rgba(20, 184, 166, 0.14);
  --color-border: rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 40px rgba(20, 184, 166, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 0;
}

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  transition: background-color var(--transition), color var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--color-primary-dark);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--brand-teal-deep);
  color: #fff;
  border-radius: 0.25rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 0.5rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: var(--content-max);
  width: calc(100% - var(--page-gutter));
  margin-inline: auto;
  box-sizing: border-box;
}

.container--narrow {
  max-width: min(56rem, var(--content-max));
  width: calc(100% - var(--page-gutter));
  margin-inline: auto;
  box-sizing: border-box;
}

/* Glass */
.glass {
  background: var(--color-bg-elevated);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 18, 32, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition), background var(--transition);
}

html[data-theme="light"] .site-header {
  background: rgba(240, 253, 250, 0.88);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding-left: var(--page-gutter);
  padding-right: calc(var(--page-gutter) + 5.5rem);
}

.signin-fixed {
  position: fixed;
  top: max(0.65rem, env(safe-area-inset-top, 0px));
  right: max(0.65rem, env(safe-area-inset-right, 0px));
  z-index: 160;
  box-shadow: var(--shadow-sm);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-text);
}

.logo__img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: block;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.nav__toggle-bar {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
}

.nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
}

.nav__list a:hover {
  color: var(--color-primary);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-bg-elevated);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

@media (max-width: 900px) {
  .nav__toggle {
    display: flex;
  }

  .nav__list {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    background: var(--color-bg-elevated);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    display: none;
  }

  .nav__list.is-open {
    display: flex;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background var(--transition), color var(--transition);
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand-teal-mid) 0%, var(--brand-teal-bright) 100%);
  color: var(--btn-primary-fg);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(45, 212, 191, 0.35);
}

.btn--primary:hover {
  color: var(--btn-primary-fg);
  background: linear-gradient(135deg, var(--brand-teal-deep) 0%, var(--brand-teal-mid) 100%);
  box-shadow: 0 6px 24px rgba(45, 212, 191, 0.45);
}

.btn--secondary {
  background: var(--color-accent);
  color: #042f2e;
  border-color: transparent;
}

.btn--secondary:hover {
  color: #042f2e;
  filter: brightness(1.05);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn--outline:hover {
  background: rgba(20, 184, 166, 0.1);
}

.btn--ghost {
  border-color: var(--color-border);
  color: var(--color-text);
  background: transparent;
}

/* Hero: same embedded image + overlays as hospital CRM welcome.html */
.hero {
  --hero-teal: var(--brand-teal-bright);
  --hero-teal-deep: var(--brand-teal-mid);
  --hero-teal-accent: var(--brand-teal-glow);
  --hero-slate-bg: #0f172a;
  position: relative;
  padding: clamp(4.5rem, 12vw, 6.5rem) max(1rem, calc(var(--page-gutter) * 0.5)) max(5.5rem, calc(4rem + 48px));
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(160deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 41, 59, 0.9) 50%),
    url(https://images.unsplash.com/photo-1519494026892-80bbd2d6fd0d?w=1600) center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(45, 212, 191, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: min(58rem, calc(100vw - var(--page-gutter)));
  margin-inline: auto;
}

.hero .hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 1.25rem;
  letter-spacing: -0.03em;
  color: #f1f5f9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero .hero__lead {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.7;
  color: #94a3b8;
  margin: 0 auto 2rem;
  max-width: min(42rem, 85%);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

/* Hospital-style CTA buttons on hero only */
.hero .hero__btn.hero__btn--primary {
  background: linear-gradient(135deg, var(--hero-teal-deep) 0%, var(--hero-teal) 100%);
  color: var(--hero-slate-bg);
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(45, 212, 191, 0.35);
}

.hero .hero__btn.hero__btn--primary:hover {
  color: var(--hero-slate-bg);
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.45);
}

.hero .hero__btn.hero__btn--outline {
  background: transparent;
  color: var(--hero-teal);
  border-color: var(--hero-teal);
}

.hero .hero__btn.hero__btn--outline:hover {
  background: rgba(45, 212, 191, 0.15);
  border-color: var(--hero-teal-accent);
  color: var(--hero-teal-accent);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: #94a3b8;
}

.hero__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #f1f5f9;
}

.hero__curve {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--color-bg);
  border-radius: 32px 32px 0 0;
  transform: scaleX(1.1);
  z-index: 1;
  pointer-events: none;
}

/* Logos strip */
.logos {
  padding: 2rem 0;
  border-block: 1px solid var(--color-border);
  background: rgba(30, 41, 59, 0.3);
}

html[data-theme="light"] .logos {
  background: rgba(255, 255, 255, 0.4);
}

.logos__inner {
  text-align: center;
}

.logos__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.logos__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.logo-placeholder {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--color-bg-elevated);
  border: 1px dashed var(--color-border);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* Sections */
.section {
  padding: clamp(4rem, 10vw, 6rem) 0;
}

.section__header {
  text-align: center;
  max-width: min(52rem, calc(100% - 1rem));
  margin: 0 auto 3rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section__title--left {
  text-align: left;
}

.section__lead {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
}

.section__lead--left {
  text-align: left;
}

/* Features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
}

.feature-card {
  padding: 1.75rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-card__icon {
  width: 3.5rem;
  height: 3.5rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin: 0 0 0.75rem;
}

.feature-card p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1rem, 2vw, 1.75rem);
  counter-reset: step;
}

.steps__item {
  padding: 2rem 1.75rem;
  position: relative;
}

.steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 1rem;
}

.steps__item h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.steps__item p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* Pricing */
.pricing__card {
  max-width: min(40rem, 100%);
  margin: 0 auto;
  padding: 2.5rem;
  text-align: center;
}

.pricing__card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
}

.pricing__card p {
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

/* FAQ */
.faq-item {
  margin-bottom: 0.75rem;
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--color-primary);
  font-weight: 400;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

/* CTA band */
.cta-band__inner {
  padding: clamp(2.5rem, 6vw, 3.5rem);
  text-align: center;
}

.cta-band__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 0.75rem;
}

.cta-band__text {
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
  max-width: min(48rem, calc(100% - 1rem));
  margin-inline: auto;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Single contact form */
.forms-section {
  background: linear-gradient(180deg, transparent, rgba(20, 184, 166, 0.06));
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.container--form {
  max-width: min(40rem, var(--content-max));
  width: calc(100% - var(--page-gutter));
  margin-inline: auto;
  box-sizing: border-box;
}

.form {
  padding: 1.75rem 1.5rem;
}

.form__row {
  margin-bottom: 1.15rem;
}

.form__row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .form__row.two-col {
    grid-template-columns: 1fr;
  }
}

.form label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form-optional {
  font-weight: 500;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
}

.req {
  color: #dc2626;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font: inherit;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  background: rgba(15, 23, 42, 0.55);
  color: var(--color-text);
}

html[data-theme="light"] .form input,
html[data-theme="light"] .form textarea,
html[data-theme="light"] .form select {
  background: rgba(255, 255, 255, 0.65);
}

.form input:focus-visible,
.form textarea:focus-visible,
.form select:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

.form__error {
  display: block;
  font-size: 0.75rem;
  color: #dc2626;
  margin-top: 0.25rem;
  min-height: 1rem;
}

.form__note {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 1rem 0 0;
}

.form__note.is-success {
  color: var(--color-accent);
}

/* Trust badges */
.trust-badges {
  padding: 2rem 0 3rem;
}

.trust-badges__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

/* Footer */
.site-footer {
  width: 100%;
  padding: 0;
  border-top: 1px solid var(--color-border);
  background: rgba(0, 0, 0, 0.25);
}

.footer__inner {
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  padding: 3rem var(--page-gutter) 1.5rem;
}

html[data-theme="light"] .site-footer {
  background: rgba(15, 23, 42, 0.03);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer__heading {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__list li {
  margin-bottom: 0.5rem;
}

.footer__list a {
  color: var(--color-text);
  text-decoration: none;
}

.footer__list a:hover {
  color: var(--color-primary);
}

.footer__tagline {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin: 0.75rem 0 1.25rem;
  max-width: 22rem;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.footer__bottom nav {
  display: flex;
  gap: 1.25rem;
}

.footer__bottom a {
  color: var(--color-text-muted);
}

/* Sign in (existing customers) */
.signin-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.signin-modal[hidden] {
  display: none !important;
}

.signin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.signin-modal__panel {
  position: relative;
  z-index: 1;
  width: min(26rem, 100%);
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.signin-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signin-modal__close:hover {
  color: var(--color-text);
}

.signin-modal__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 2rem 1rem 0;
}

.signin-modal__form {
  padding: 0;
  margin: 0;
  background: transparent;
}

.signin-modal__preview {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  word-break: break-all;
  min-height: 1.25rem;
}

.signin-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}
