/* ═══════════════════════════════════════════════════════════════
   lucidact-pages.css — Styles for providers, patients, partners
   These styles handle the page-specific hero sections and
   detail layouts. All pages share a common pattern; only the
   class name prefixes differ (.provider-, .patient-, .partner-)
   ═══════════════════════════════════════════════════════════════ */

/* ─── PAGE HERO (shared pattern) ────────────────────
   Each subpage uses a prefixed hero class:
   .provider-hero / .patient-hero / .partner-hero
   They share identical styles — only the class name differs.
   ─────────────────────────────────────────────────── */
.provider-hero,
.patient-hero,
.partner-hero {
  background: linear-gradient(135deg, #edfaf9 0%, #e0f7f6 50%, #edfaf4 100%);
  padding: 80px 0 90px;
  overflow: hidden;
  position: relative;
}
.provider-hero::before,
.patient-hero::before,
.partner-hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10,175,170,.07) 0%, transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none;
}
.provider-hero h1,
.patient-hero h1,
.partner-hero h1 { color: var(--navy); margin-bottom: 18px; }

.provider-hero p.lead,
.patient-hero p.lead,
.partner-hero p.lead { font-size: clamp(15px, 1.3vw, 18px); color: var(--slate); margin-bottom: 32px; max-width: 480px; }

.provider-hero-layout,
.patient-hero-layout,
.partner-hero-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

/* ─── PRODUCTS SECTION ───────────────────────────── */
.products { background: var(--navy); }
.products .section-intro h2 { color: white; }
.products .section-intro p  { color: var(--slate-light); }
.products .section-label    { color: #4dd9d4; }

.product-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 28px;
  transition: background .2s, border-color .2s, transform .2s;
  cursor: pointer; display: flex; flex-direction: column;
}
.product-card:hover { background: rgba(10,175,170,.12); border-color: rgba(10,175,170,.4); transform: translateY(-3px); }
.product-tag {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; color: #4dd9d4;
  background: rgba(10,175,170,.18); padding: 3px 10px; border-radius: 50px; margin-bottom: 12px;
}
.product-card h3 { color: #f0fafa; margin-bottom: 6px; }
.product-card p  { color: #7aa8a8; font-size: 14px; margin: 0; flex: 1; }
.product-abbr { font-size: 28px; font-weight: 800; color: white; margin-bottom: 4px; }

.product-learn-more {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 18px; font-size: 13px; font-weight: 600;
  color: #4dd9d4; text-decoration: none;
  border: none; background: none; cursor: pointer; padding: 0;
  letter-spacing: .3px; transition: gap .2s, color .2s;
}
.product-learn-more:hover { color: #17c8c2; gap: 8px; }
.product-learn-more svg { width: 14px; height: 14px; transition: transform .2s; }
.product-learn-more:hover svg { transform: translateX(2px); }

/* ─── PRODUCT MODAL ──────────────────────────────── */
.pmodal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(6,26,26,.7);
  backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.pmodal-overlay.open { opacity: 1; pointer-events: all; }

.pmodal {
  position: fixed;
  bottom: 0; left: 0; right: 0; z-index: 9001;
  background: #ffffff;
  border-radius: 20px 20px 0 0;
  max-height: 92vh; overflow-y: auto;
  transform: translateY(100%);
  transition: transform .38s cubic-bezier(.32,.72,0,1);
  box-shadow: 0 -8px 60px rgba(0,0,0,.18);
  overscroll-behavior: contain;
  pointer-events: none;
}
.pmodal.open { transform: translateY(0); pointer-events: all; }

@media (min-width: 768px) {
  .pmodal {
    bottom: auto; left: 50%; top: 50%;
    transform: translate(-50%, -40%) scale(.96);
    border-radius: 20px; width: 90%; max-width: 860px; max-height: 88vh;
    opacity: 0;
    pointer-events: none;
    transition: transform .35s cubic-bezier(.32,.72,0,1), opacity .3s ease;
  }
  .pmodal.open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: all; }
}

.pmodal-handle { width: 40px; height: 4px; background: var(--gray-200); border-radius: 4px; margin: 14px auto 0; }
@media (min-width: 768px) { .pmodal-handle { display: none; } }

.pmodal-topbar {
  position: sticky; top: 0; z-index: 10;
  background: white; border-bottom: 1px solid var(--gray-100);
  padding: 16px 28px; display: flex; align-items: center; justify-content: space-between;
}
.pmodal-abbr-badge { display: inline-flex; align-items: center; gap: 10px; }
.pmodal-abbr { font-size: 18px; font-weight: 800; color: var(--blue); background: var(--blue-pale); padding: 4px 14px; border-radius: 8px; letter-spacing: .5px; }
.pmodal-full-name { font-size: 15px; font-weight: 600; color: var(--text-dark); }
.pmodal-close {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gray-50); border: 1px solid var(--gray-200);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text-soft); font-size: 18px; font-weight: 400;
  transition: background .15s, color .15s; flex-shrink: 0;
}
.pmodal-close:hover { background: var(--gray-200); color: var(--text-dark); }

.pmodal-body { padding: 32px 28px 40px; }

.pmodal-hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d3535 100%);
  border-radius: var(--radius); padding: 32px;
  margin-bottom: 32px; position: relative; overflow: hidden;
}
.pmodal-hero::before {
  content: ''; position: absolute; top: -60px; right: -40px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10,175,170,.15) 0%, transparent 70%);
}
.pmodal-hero-abbr { font-size: 52px; font-weight: 900; color: rgba(255,255,255,.12); line-height: 1; margin-bottom: 8px; letter-spacing: -2px; }
.pmodal-hero h2 { font-size: clamp(20px, 2.5vw, 30px); color: white; font-weight: 400; margin-bottom: 10px; line-height: 1.25; }
.pmodal-hero p  { color: #7aa8a8; font-size: 15px; margin: 0; max-width: 560px; }

.pmodal-section-heading { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }

.pmodal-challenge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 32px; }
@media (max-width: 640px) { .pmodal-challenge-grid { grid-template-columns: 1fr; } }
.pmodal-challenge-card { background: var(--gray-50); border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 16px 18px; }
.pmodal-challenge-card .label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: #e85c6a; margin-bottom: 6px; }
.pmodal-challenge-card h4 { font-size: 14px; color: var(--text-dark); margin-bottom: 4px; }
.pmodal-challenge-card p  { font-size: 13px; color: var(--text-soft); margin: 0; }

.pmodal-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 32px; }
@media (max-width: 640px) { .pmodal-why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px)  { .pmodal-why-grid { grid-template-columns: 1fr; } }
.pmodal-why-card { background: var(--blue-pale); border: 1px solid rgba(10,175,170,.2); border-radius: var(--radius); padding: 16px 18px; }
.pmodal-why-card h4 { font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 4px; }
.pmodal-why-card p  { font-size: 13px; color: var(--text-soft); margin: 0; }

.pmodal-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 32px; }
@media (max-width: 500px) { .pmodal-features-grid { grid-template-columns: 1fr; } }
.pmodal-feature-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--radius); border: 1px solid var(--gray-200); background: white; }
.pmodal-feature-dot { width: 28px; height: 28px; flex-shrink: 0; background: var(--blue-pale); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; margin-top: 1px; }
.pmodal-feature-item h4 { font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
.pmodal-feature-item p  { font-size: 12.5px; color: var(--text-soft); margin: 0; }

.pmodal-steps { display: flex; flex-direction: column; gap: 0; margin-bottom: 32px; }
.pmodal-step { display: flex; gap: 16px; align-items: flex-start; position: relative; }
.pmodal-step:not(:last-child)::after {
  content: ''; position: absolute;
  left: 15px; top: 36px; width: 2px;
  height: calc(100% + 2px); background: var(--gray-200);
}
.pmodal-step-num { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--blue); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; z-index: 1; }
.pmodal-step-body { padding-bottom: 22px; flex: 1; }
.pmodal-step-body h4 { font-size: 14px; font-weight: 600; color: var(--text-dark); margin-bottom: 2px; }
.pmodal-step-body p  { font-size: 13px; color: var(--text-soft); margin: 0; }

.pmodal-cta {
  background: linear-gradient(135deg, #089490 0%, #0aafaa 60%, #3da828 100%);
  border-radius: var(--radius); padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.pmodal-cta p { color: rgba(255,255,255,.9); font-size: 15px; font-weight: 500; margin: 0; }
.pmodal-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ─── DETAIL LAYOUTS ─────────────────────────────── */
.provider-detail,
.patient-detail,
.partner-detail { background: var(--gray-50); }

.provider-detail-layout,
.patient-detail-layout,
.partner-detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }


/* ─── AI SECTION ─────────────────────────────────── */
.ai-section {
  background: linear-gradient(135deg, #072424 0%, #0a2e2e 60%, #0d3535 100%);
  color: white; overflow: hidden; position: relative;
}
.ai-section::after {
  content: ''; position: absolute;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(10,175,170,.12) 0%, transparent 70%);
  bottom: -200px; right: -100px; pointer-events: none;
}
.ai-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ai-section .section-label { color: #4dd9d4; }
.ai-section h2 { color: white; margin-bottom: 16px; }
.ai-section > .container > .ai-layout > div > p { color: #7aa8a8; margin-bottom: 32px; }

.ai-card {
  background: rgba(10,175,170,.07); border: 1px solid rgba(10,175,170,.18);
  border-radius: var(--radius); padding: 22px 24px; margin-bottom: 16px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: background .2s, border-color .2s;
}
.ai-card:last-of-type { margin-bottom: 0; }
.ai-card:hover { background: rgba(10,175,170,.13); border-color: rgba(10,175,170,.4); }
.ai-card-icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: rgba(10,175,170,.2); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.ai-card h3 { color: #e0fafa; font-size: 15px; margin-bottom: 4px; }
.ai-card p  { color: #7aa8a8; font-size: 13.5px; margin: 0; }

.ai-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(10,175,170,.18); border: 1px solid rgba(10,175,170,.3);
  color: #4dd9d4; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 50px;
  margin-bottom: 12px; margin-top: 4px;
}

.ai-ui {
  background: rgba(10,175,170,.06); border: 1px solid rgba(10,175,170,.18);
  border-radius: var(--radius-lg); padding: 28px; position: relative; z-index: 1;
}
.ai-ui-header { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.ai-dot { width: 10px; height: 10px; border-radius: 50%; }
.ai-row {
  background: rgba(10,175,170,.07); border-radius: 8px;
  padding: 12px 16px; margin-bottom: 10px;
  display: flex; justify-content: space-between; align-items: center; font-size: 13.5px;
}
.ai-row:last-child { margin-bottom: 0; }
.ai-row-label { color: #7aa8a8; }
.ai-row-value { color: #e0fafa; font-weight: 600; }
.ai-row-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 50px; }
.tag-green  { background: rgba(91,191,60,.18);  color: #7dd144; }
.tag-blue   { background: rgba(10,175,170,.18);  color: #4dd9d4; }
.tag-orange { background: rgba(251,146,60,.15);  color: #fb923c; }
.tag-purple { background: rgba(91,191,60,.12);   color: #a3e635; }

/* ─── STATS BAND ─────────────────────────────────── */
.about-stats-section {
  background: var(--navy);
  padding: 56px 0;
}
.about-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.about-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px;
  border-right: 1px solid rgba(255,255,255,.1);
  text-align: center;
}
.about-stat:last-child { border-right: none; }
.about-stat-num {
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -1px;
}
.about-stat-label {
  font-size: 13px;
  color: var(--slate-light);
  font-weight: 500;
  letter-spacing: .3px;
}

/* ─── WHY PARTNER SECTION ────────────────────────── */
.why-partner { background: var(--body-bg); }

/* ─── PARTNER OPPS ───────────────────────────────── */
.partner-opps { background: var(--navy); }
.partner-opps .section-label    { color: #4dd9d4; }
.partner-opps .section-intro h2 { color: white; }
.partner-opps .section-intro p  { color: var(--slate-light); }

/* ─── CARE FEATURES SECTION (patients) ──────────── */
.care-features { background: white; }

/* ─── TOOLS / FEATURES (providers) ──────────────── */
.tools-section { background: var(--body-bg); }

/* ─── RESPONSIVE: SUBPAGES ───────────────────────── */
@media (max-width: 900px) {
  .provider-hero-layout,
  .patient-hero-layout,
  .partner-hero-layout,
  .provider-detail-layout,
  .patient-detail-layout,
  .partner-detail-layout { grid-template-columns: 1fr; gap: 48px; }

  .provider-hero-layout .visual-block,
  .patient-hero-layout .visual-block,
  .partner-hero-layout .visual-block { order: -1; min-height: 300px; }
}

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

/* ─── PARTNER PAGE: PATIENT TAG CLOUD ───────────────────── */

/* Outer card — matches the dark navy context of the section */
.ptag-canvas {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Shrink-to-fit — no scroll, no extra space */
  height: auto;
  min-height: 0;
}

/* Faux browser chrome header */
.ptag-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.ptag-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.ptag-title {
  color: rgba(255,255,255,.4);
  font-size: 12px;
  font-weight: 500;
  margin-left: 6px;
  letter-spacing: .2px;
}

/* Tag cloud wrapper — uses scale-to-fit so ALL tags show with no scroll */
.ptag-cloud {
  padding: 14px 16px 16px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  /* Scale trick: define a reference size, then scale down to fit */
  transform-origin: top left;
}

/* Individual pill */
.pt {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 13px;
  border-radius: 100px;
  border: 2px solid;
  white-space: nowrap;
  line-height: 1.35;
  cursor: default;
  transition: transform .15s ease, box-shadow .15s ease;
  letter-spacing: .1px;
}
.pt:hover {
  transform: translateY(-2px) scale(1.07);
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}

/* Colour palette — bright, high-contrast on dark navy */
.pt-red    { color: #ff6b6b; border-color: #ff6b6b; background: rgba(255,107,107,.10); }
.pt-orange { color: #ff9f43; border-color: #ff9f43; background: rgba(255,159,67,.10);  }
.pt-yellow { color: #ffd32a; border-color: #ffd32a; background: rgba(255,211,42,.09);  }
.pt-green  { color: #26de81; border-color: #26de81; background: rgba(38,222,129,.09);  }
.pt-teal   { color: #2bcbba; border-color: #2bcbba; background: rgba(43,203,186,.09);  }
.pt-sky    { color: #45aaf2; border-color: #45aaf2; background: rgba(69,170,242,.09);  }
.pt-purple { color: #a55eea; border-color: #a55eea; background: rgba(165,94,234,.09);  }
.pt-white  { color: #d1d8e0; border-color: #d1d8e0; background: rgba(209,216,224,.07); }

/* Responsive — scale cloud to avoid overflow at smaller widths */

@media (max-width: 900px) {
  .ptag-canvas { min-height: auto; }
  .pt { font-size: 11px; padding: 4px 11px; }
  .ptag-cloud { gap: 6px; padding: 14px 16px 16px; }
}

/* ─── PRODUCT MODAL: CPT REIMBURSEMENT TABLE ─────── */
.pmodal-cpt-wrap {
  margin-bottom: 8px;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.pmodal-cpt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 480px;
}

.pmodal-cpt-table thead tr {
  background: var(--navy);
}

.pmodal-cpt-table thead th {
  color: #4dd9d4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 2px solid rgba(10,175,170,.3);
}

.pmodal-cpt-table tbody tr {
  border-bottom: 1px solid var(--gray-100);
  transition: background .15s;
}
.pmodal-cpt-table tbody tr:last-child { border-bottom: none; }
.pmodal-cpt-table tbody tr:hover { background: var(--blue-pale); }

.pmodal-cpt-table tbody td {
  padding: 10px 14px;
  color: var(--text-dark);
  vertical-align: top;
  line-height: 1.5;
}

.pmodal-cpt-table tbody td:first-child {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  font-size: 12.5px;
}

.pmodal-cpt-table tbody td:nth-child(3),
.pmodal-cpt-table tbody td:nth-child(4) {
  font-weight: 600;
  color: #15803d;
  white-space: nowrap;
}

/* "NEW" badge in CPT code column */
.pmodal-new-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  background: #0aafaa;
  color: white;
  padding: 1px 5px;
  border-radius: 4px;
  letter-spacing: .5px;
  vertical-align: middle;
  margin-left: 4px;
  font-family: inherit;
}

.pmodal-cpt-note {
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.6;
  margin: 0;
  padding: 12px 16px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}
.pmodal-cpt-note strong { color: var(--text-dark); }
