/* ============================================================
   Remitra Health — marketing site styles
   ============================================================ */

:root {
  --c-bg: #ffffff;
  --c-bg-soft: #F9FAFB;
  --c-bg-dark: #18302A;
  --c-text: #0F172A;
  --c-text-muted: #475569;
  --c-text-dim: #94A3B8;
  --c-border: #E2E8F0;
  --c-border-strong: #CBD5E1;

  --c-brand: #396B55;
  --c-brand-2: #4A8268;
  --c-brand-deep: #2F5A47;
  --c-accent: #F59E0B;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-lg: 0 10px 32px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.04);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --container: 1180px;
  --header-h: 72px;

  --t-fast: 150ms ease;
  --t-med: 250ms ease;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; font-family: 'Sora', sans-serif; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-text-muted); }
p  { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.btn-lg { height: 52px; padding: 0 24px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--c-brand-2), var(--c-brand));
  color: white;
  box-shadow: 0 2px 12px rgba(57, 107, 85, 0.25);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 18px rgba(57, 107, 85, 0.35); }

.btn-outline {
  background: white;
  color: var(--c-brand-deep);
  border-color: var(--c-border-strong);
}
.btn-outline:hover { border-color: var(--c-brand); color: var(--c-brand); }

.btn-ghost {
  background: transparent;
  color: var(--c-text);
}
.btn-ghost:hover { color: var(--c-brand); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med), background var(--t-med);
}
.site-header.is-scrolled {
  border-color: var(--c-border);
  background: rgba(255,255,255,0.94);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--c-text);
}
.brand-mark { width: 28px; height: 28px; }
.brand-text { display: inline-flex; gap: 1px; }
.brand-accent { color: var(--c-brand); }

.primary-nav {
  display: flex;
  gap: 28px;
  margin-left: 24px;
}
.primary-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: color var(--t-fast);
  padding: 4px 0;
}
.primary-nav a:hover { color: var(--c-text); }
.primary-nav a.is-active { color: var(--c-brand); }
.primary-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--c-brand);
  border-radius: 2px;
}

.header-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  background: transparent;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--t-fast), opacity var(--t-fast);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--c-border);
  background: white;
}
.mobile-menu a {
  padding: 12px 8px;
  font-weight: 500;
  color: var(--c-text);
  border-radius: var(--radius-sm);
}
.mobile-menu a:hover { background: var(--c-bg-soft); }
.mobile-menu a.is-active {
  background: var(--c-bg-soft);
  color: var(--c-brand);
  font-weight: 600;
}
.mobile-menu .btn { margin-top: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 9vw, 120px) 0 clamp(48px, 6vw, 88px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 720px;
  background:
    radial-gradient(60% 50% at 30% 20%, rgba(74, 130, 104, 0.18), transparent 60%),
    radial-gradient(50% 50% at 80% 10%, rgba(14, 165, 233, 0.10), transparent 60%),
    linear-gradient(180deg, #EFF5F1 0%, #ffffff 75%);
  z-index: -1;
}
.hero-inner { max-width: 880px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-brand);
  background: rgba(57, 107, 85, 0.10);
  border: 1px solid rgba(57, 107, 85, 0.20);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
}
.hero-title { margin-bottom: 22px; }
.grad-text {
  background: linear-gradient(135deg, var(--c-brand-2), #0EA5E9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--c-text-muted);
  max-width: 640px;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--c-text-muted);
  font-size: 0.92rem;
}
.hero-meta li { display: inline-flex; gap: 8px; align-items: center; }
.hero-meta svg { width: 18px; height: 18px; color: var(--c-brand); }

/* ---------- Hero fineprint ---------- */
.hero-fineprint {
  color: var(--c-text-muted);
  font-size: 0.9rem;
  margin: -16px 0 28px;
}

/* ---------- Logo strip (legacy, unused) ---------- */
.logo-strip {
  padding: 22px 0 8px;
  border-bottom: 1px solid var(--c-border);
}
.logo-strip-label {
  text-align: center;
  font-size: 0.85rem;
  color: var(--c-text-muted);
  margin-bottom: 14px;
}
.logos {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  padding-bottom: 16px;
}
.logos span {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #8a9aa3;
  font-size: 0.95rem;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(72px, 9vw, 120px) 0;
}
.section-alt { background: var(--c-bg-soft); }

.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-sub {
  margin-top: 16px;
  color: var(--c-text-muted);
  font-size: 1.06rem;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.feature-card {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-border-strong);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-icon[data-color="teal"]   { background: #DCEAE0; color: #234438; }
.feature-icon[data-color="blue"]   { background: #dbeafe; color: #1d4ed8; }
.feature-icon[data-color="violet"] { background: #ede9fe; color: #6d28d9; }
.feature-icon[data-color="amber"]  { background: #fef3c7; color: #b45309; }
.feature-icon[data-color="rose"]   { background: #ffe4e6; color: #be123c; }
.feature-icon[data-color="green"]  { background: #d1fae5; color: #047857; }

.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--c-text-muted); font-size: 0.97rem; }

/* ---------- Workflow ---------- */
.workflow-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.workflow-copy h2 { margin: 14px 0 18px; }
.workflow-copy > p { color: var(--c-text-muted); margin-bottom: 28px; max-width: 540px; }

.workflow-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
.workflow-list li {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
}
.workflow-list strong { color: var(--c-brand-deep); font-size: 1rem; }
.workflow-list span { color: var(--c-text-muted); font-size: 0.95rem; }

/* Card stack visual */
.workflow-visual {
  display: flex;
  justify-content: center;
}
.card-stack {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 440px;
}
.stack-card {
  position: absolute;
  left: 0; right: 0;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
  padding: 18px 20px;
  font-size: 0.92rem;
  display: grid;
  gap: 10px;
}
.stack-card--1 { top: 0;   transform: rotate(-3deg); }
.stack-card--2 { top: 130px; transform: rotate(1.5deg); box-shadow: var(--shadow-lg); }
.stack-card--3 { top: 280px; transform: rotate(-1deg); }
.stack-card:hover { transform: translateY(-4px) rotate(0); transition: transform var(--t-med); }

.stack-row { display: flex; align-items: center; gap: 10px; }
.stack-row-muted { color: var(--c-text-muted); font-size: 0.88rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-green { background: #467860; box-shadow: 0 0 0 4px rgba(57, 107, 85, 0.20); }
.dot-amber { background: #f59e0b; box-shadow: 0 0 0 4px rgba(245,158,11,0.18); }

.stack-bar {
  height: 6px;
  background: #e9eff1;
  border-radius: 999px;
  overflow: hidden;
}
.stack-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-brand-2), var(--c-brand-deep));
  border-radius: 999px;
}
.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-left: auto;
}
.pill-green { background: #DCEAE0; color: #234438; }

/* ---------- Stats ---------- */
.stats {
  background: linear-gradient(135deg, #234438, #18302A);
  color: white;
  padding: clamp(48px, 7vw, 80px) 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}
.stat-num {
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #FFFFFF, #B8D5C0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  margin-top: 6px;
  color: rgba(255,255,255,0.72);
  font-size: 0.94rem;
}

/* ---------- Why ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-bottom: 56px;
}
.why-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  background: white;
}
.why-card h3 { margin-bottom: 8px; color: var(--c-brand-deep); }
.why-card p { color: var(--c-text-muted); font-size: 0.97rem; }

.quote {
  margin: 0;
  padding: 36px clamp(24px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #EFF5F1, #ffffff);
  border: 1px solid var(--c-border);
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.quote p {
  font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 500;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.quote footer {
  margin-top: 14px;
  color: var(--c-text-muted);
  font-size: 0.92rem;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  align-items: stretch;
}
.price-card {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card--featured {
  border-color: var(--c-brand);
  box-shadow: 0 14px 40px rgba(57, 107, 85, 0.18);
  transform: translateY(-6px);
}
.price-card--featured:hover { transform: translateY(-8px); }
.price-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--c-brand);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.price-card h3 { font-size: 1.05rem; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price-amount { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; }
.price-period { color: var(--c-text-muted); font-size: 0.95rem; }
.price-tag { color: var(--c-text-muted); font-size: 0.92rem; }
.price-card ul {
  list-style: none;
  padding: 0;
  margin: 4px 0 8px;
  display: grid;
  gap: 10px;
}
.price-card li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--c-text);
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(57, 107, 85, 0.14);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M4 8 7 11 12 5' fill='none' stroke='%23396B55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}
.price-card .btn { margin-top: auto; }

/* ---------- CTA ---------- */
.cta {
  padding: clamp(72px, 9vw, 120px) 0;
  background:
    radial-gradient(60% 80% at 30% 30%, rgba(74, 130, 104, 0.22), transparent 65%),
    radial-gradient(50% 70% at 80% 80%, rgba(14, 165, 233, 0.14), transparent 60%),
    linear-gradient(135deg, #234438, #18302A);
  color: white;
}
.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.cta h2 { color: white; }
.cta p {
  color: rgba(255,255,255,0.75);
  margin-top: 14px;
  font-size: 1.05rem;
}
.cta-form {
  display: flex;
  gap: 8px;
  margin: 28px auto 14px;
  max-width: 480px;
  background: rgba(255,255,255,0.08);
  padding: 6px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.18);
}
.cta-form input {
  flex: 1;
  background: transparent;
  border: none;
  color: white;
  font-size: 1rem;
  padding: 0 16px;
  outline: none;
  font-family: inherit;
}
.cta-form input::placeholder { color: rgba(255,255,255,0.55); }
.cta-form input:focus-visible { outline: none; }
.cta-fineprint {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-bg-dark);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer .brand { color: white; }
.footer-tag {
  color: rgba(255,255,255,0.6);
  margin-top: 12px;
  font-size: 0.95rem;
  max-width: 280px;
}
.site-footer h3 {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 12px;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.site-footer ul a {
  color: rgba(255,255,255,0.65);
  font-size: 0.93rem;
  transition: color var(--t-fast);
}
.site-footer ul a:hover { color: white; }
.footer-base {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
}
.footer-fineprint { max-width: 540px; }

/* ---------- Product preview ---------- */
.product-preview .section-head { margin-bottom: 40px; }
.preview-shell {
  max-width: 1080px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #F1F5F4;
  border-bottom: 1px solid var(--c-border);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-border-strong);
}
.browser-url {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  background: white;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
}

.preview-mock {
  padding: 16px;
  background: linear-gradient(180deg, #F9FBFA 0%, #FFFFFF 100%);
}
.mock-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 14px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 16px;
}
.mock-tab-row { display: flex; gap: 4px; }
.mock-tab {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-text-muted);
  padding: 8px 14px;
  border-radius: 8px 8px 0 0;
  position: relative;
  bottom: -1px;
}
.mock-tab-active {
  color: var(--c-brand-deep);
  font-weight: 600;
  background: white;
  border: 1px solid var(--c-border);
  border-bottom-color: white;
}
.mock-userchip {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--c-text);
}
.mock-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-brand-2), var(--c-brand));
  color: white;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
}
.mock-userchip-name { font-weight: 500; }

.mock-body {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 12px;
}
.mock-panel {
  background: white;
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.82rem;
}
.mock-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.mock-panel-head h3 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--c-text-muted);
  text-transform: uppercase;
  margin: 0;
}
.mock-panel-meta { font-size: 0.72rem; color: var(--c-text-dim); }

/* Schedule list */
.mock-sched-list { display: flex; flex-direction: column; gap: 6px; }
.mock-sched-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #F8FAFC;
}
.mock-sched-row-active {
  background: #EFF5F1;
  border: 1px solid #B8D5C0;
  padding: 7px 9px;
}
.mock-sched-time { font-weight: 600; color: var(--c-text); font-size: 0.82rem; }
.mock-sched-info { display: flex; flex-direction: column; line-height: 1.25; }
.mock-sched-info strong { font-size: 0.84rem; color: var(--c-text); font-weight: 600; }
.mock-sched-info span { font-size: 0.74rem; color: var(--c-text-muted); }

/* Status pills */
.mock-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.mock-pill-green { background: #DCEAE0; color: #234438; }
.mock-pill-amber { background: #FEEBC8; color: #B45309; }
.mock-pill-sky   { background: #E0F2FE; color: #0369A1; }
.mock-pill-slate { background: #E2E8F0; color: #475569; }

/* Encounter card */
.mock-enc { display: flex; flex-direction: column; gap: 8px; }
.mock-enc-name { font-weight: 700; color: var(--c-text); font-size: 0.92rem; }
.mock-enc-meta { font-size: 0.74rem; color: var(--c-text-muted); }
.mock-vitals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: #F8FAFC;
  border-radius: 8px;
  padding: 8px 10px;
}
.mock-vitals > div { display: flex; flex-direction: column; }
.mock-vitals span { font-size: 0.66rem; color: var(--c-text-muted); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.mock-vitals strong { font-size: 0.88rem; color: var(--c-text); font-weight: 700; }
.mock-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: #EFF5F1;
  color: #234438;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.mock-tag-muted { background: #F1F5F9; color: var(--c-text-muted); font-family: inherit; }
.mock-progress {
  height: 6px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}
.mock-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--c-brand-2), var(--c-brand));
  border-radius: 999px;
}
.mock-enc-cta {
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--c-brand);
  padding: 8px 10px;
  background: #EFF5F1;
  border-radius: 8px;
  text-align: center;
}

/* Eligibility + AR */
.mock-elig { display: flex; flex-direction: column; gap: 10px; }
.mock-elig-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: #EFF5F1;
  border-radius: 8px;
}
.mock-elig-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-brand);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.78rem;
  flex: none;
}
.mock-elig-row strong { display: block; font-size: 0.82rem; color: var(--c-text); }
.mock-elig-row span { display: block; font-size: 0.7rem; color: var(--c-text-muted); }
.mock-elig-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 10px;
  background: #F8FAFC;
  border-radius: 8px;
}
.mock-elig-stat span { font-size: 0.74rem; color: var(--c-text-muted); }
.mock-elig-stat strong { font-size: 0.95rem; color: var(--c-text); font-weight: 700; }

.mock-ar {
  margin-top: 4px;
  padding: 10px 12px;
  background: #F8FAFC;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-ar-label { font-size: 0.7rem; color: var(--c-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.mock-ar-bars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  height: 56px;
  align-items: end;
}
.mock-ar-bar {
  background: linear-gradient(180deg, var(--c-brand-2), var(--c-brand));
  border-radius: 4px 4px 0 0;
  min-height: 12px;
}
.mock-ar-bar:nth-child(2) { background: linear-gradient(180deg, #8DB89A, #5E957B); }
.mock-ar-bar:nth-child(3) { background: linear-gradient(180deg, #DCEAE0, #B8D5C0); }
.mock-ar-total { font-size: 0.82rem; color: var(--c-text); font-weight: 600; }

/* ---------- Specialties ---------- */
.specialty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.specialty-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 28px;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  color: inherit;
}
.specialty-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-brand);
}
.specialty-card h3 {
  color: var(--c-brand-deep);
  font-size: 1.08rem;
  margin: 0 0 4px;
}
.specialty-card p {
  color: var(--c-text-muted);
  font-size: 0.93rem;
  margin: 0 0 10px;
  flex: 1;
}
.specialty-link {
  color: var(--c-brand);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: -0.005em;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  padding: 36px 0;
  background: white;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}
.trust-strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  justify-content: center;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--c-text-muted);
}
.trust-pill svg {
  width: 14px;
  height: 14px;
  color: var(--c-brand);
  flex: none;
}

/* ---------- CTA secondary link + invisible #demo anchor ---------- */
.cta-anchor {
  position: absolute;
  top: -80px;
}
.cta { position: relative; }
.cta-secondary {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.92rem;
}
.cta-secondary a {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cta-secondary a:hover { color: rgba(255, 255, 255, 0.85); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .primary-nav, .header-actions { display: none; }
  .menu-toggle { display: flex; }
  .menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.is-open span:nth-child(2) { opacity: 0; }
  .menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .mobile-menu[data-open="true"] { display: flex; }

  .workflow-grid { grid-template-columns: 1fr; }
  .card-stack { height: 420px; max-width: 360px; }

  .mock-body { grid-template-columns: 1fr; }
  .preview-mock { padding: 12px; }
  .mock-tab { padding: 6px 10px; font-size: 0.78rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .cta-form { flex-direction: column; border-radius: var(--radius-md); padding: 12px; gap: 10px; }
  .cta-form input { padding: 14px; background: rgba(255,255,255,0.06); border-radius: var(--radius-sm); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-base { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
