/* integrations.css — styles for /integrations hub + EHR deep-dive pages */

:root {
  --ehr-green: #16a34a;
  --ehr-green-light: #dcfce7;
  --ehr-amber: #d97706;
  --ehr-amber-light: #fef3c7;
  --ehr-blue: #2563eb;
  --ehr-blue-light: #dbeafe;
}

/* ===== HUB ===== */
.integrations-hero {
  padding: 8rem 3rem 5rem;
  background: var(--teal-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.integrations-hero::before {
  content: '';
  position: absolute;
  bottom: -80px; left: -80px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(22,163,74,0.07);
  pointer-events: none;
}
.integrations-hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.integrations-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(22,163,74,0.15);
  color: #86efac;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.integrations-hero h1 {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.integrations-hero p {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto 2.5rem;
}
.integrations-hero .cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* EHR Grid */
.integrations-grid-section {
  padding: 5rem 3rem;
  max-width: 1080px;
  margin: 0 auto;
}
.integrations-grid-section h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--charcoal);
  text-align: center;
  margin-bottom: 3rem;
}
.ehr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.ehr-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.ehr-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  transform: translateY(-2px);
  border-color: var(--teal-light);
}
.ehr-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.ehr-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.ehr-icon.modmed { background: #1a1a2e; color: #fff; }
.ehr-icon.athenahealth { background: #0060c9; color: #fff; }
.ehr-icon.eclinicalworks { background: #e63946; color: #fff; }
.ehr-icon.nextgen { background: #0072ce; color: #fff; }
.ehr-icon.drchrono { background: #00a86b; color: #fff; }
.ehr-card-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
}
.ehr-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
}
.status-live { background: var(--ehr-green-light); color: var(--ehr-green); }
.status-beta { background: var(--ehr-amber-light); color: var(--ehr-amber); }
.ehr-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.ehr-card-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.ehr-card-api {
  font-size: 0.78rem;
  color: var(--gray-400);
  font-family: 'Courier New', monospace;
  background: var(--cream);
  padding: 0.35rem 0.7rem;
  border-radius: 6px;
  display: inline-block;
}
.ehr-card-arrow {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-light);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Don't see your EHR */
.integrations-ehr-form {
  padding: 4rem 3rem 5rem;
  background: var(--cream-mid);
  text-align: center;
}
.integrations-ehr-form h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}
.integrations-ehr-form p {
  color: var(--gray-600);
  margin-bottom: 2rem;
}
.ehr-request-form {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.ehr-request-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--charcoal);
  outline: none;
  transition: border-color 0.2s;
}
.ehr-request-form input:focus {
  border-color: var(--teal-light);
}
.ehr-request-success {
  display: none;
  background: var(--ehr-green-light);
  color: var(--ehr-green);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ===== EHR DEEP-DIVE SHARED ===== */
.ehr-hero {
  padding: 8rem 3rem 4rem;
  background: var(--teal-dark);
  position: relative;
  overflow: hidden;
}
.ehr-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.03);
  pointer-events: none;
}
.ehr-hero-inner {
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}
.ehr-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.ehr-badge.live { background: rgba(22,163,74,0.15); color: #86efac; }
.ehr-badge.beta { background: rgba(217,119,6,0.15); color: var(--amber-light); }
.ehr-hero h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.ehr-hero p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 2.5rem;
}
.ehr-hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* SVG Flow Diagram */
.ehr-flow-section {
  padding: 4rem 3rem;
  background: var(--cream-mid);
}
.ehr-flow-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.ehr-flow-inner h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  color: var(--charcoal);
}
.ehr-flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.ehr-flow-box {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  text-align: center;
  min-width: 140px;
}
.ehr-flow-box.ehr { border-color: var(--ehr-blue); background: var(--ehr-blue-light); }
.ehr-flow-box.caseflow { border-color: var(--teal-light); background: var(--teal-xlight); }
.ehr-flow-box.patient { border-color: var(--amber); background: var(--amber-xlight); }
.ehr-flow-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  margin-bottom: 0.35rem;
}
.ehr-flow-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--charcoal);
}
.ehr-flow-arrow {
  font-size: 1.8rem;
  color: var(--gray-400);
  padding: 0 0.5rem;
  line-height: 1;
}

/* What's Pulled */
.ehr-pulled-section {
  padding: 4rem 3rem;
  max-width: 860px;
  margin: 0 auto;
}
.ehr-pulled-section h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--charcoal);
}
.ehr-pulled-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.ehr-pulled-col h3 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-400);
  margin-bottom: 1rem;
}
.ehr-pulled-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ehr-pulled-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--charcoal);
}
.ehr-pulled-check { color: var(--ehr-green); font-weight: 700; font-size: 1.1rem; }
.ehr-pulled-cross { color: var(--gray-400); font-weight: 700; font-size: 1.1rem; }

/* Setup + Security */
.ehr-setup-security {
  padding: 4rem 3rem;
  background: var(--cream-mid);
}
.ehr-setup-security-inner {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.ehr-setup h2, .ehr-security h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--charcoal);
}
.ehr-setup p, .ehr-security p {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.65;
}
.ehr-security-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.ehr-security-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--charcoal);
}
.ehr-security-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ehr-green-light);
  color: var(--ehr-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

/* FAQ */
.ehr-faq-section {
  padding: 4rem 3rem;
  max-width: 760px;
  margin: 0 auto;
}
.ehr-faq-section h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--charcoal);
}
.ehr-faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 1.5rem 0;
}
.ehr-faq-q {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ehr-faq-toggle {
  font-size: 1.2rem;
  color: var(--teal-light);
  transition: transform 0.2s;
}
.ehr-faq-item.open .ehr-faq-toggle { transform: rotate(45deg); }
.ehr-faq-answer {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.65;
  display: none;
  padding-top: 0.35rem;
}
.ehr-faq-item.open .ehr-faq-answer { display: block; }

/* Lead Form */
.ehr-lead-form-section {
  padding: 4rem 3rem;
  background: var(--teal-dark);
}
.ehr-lead-form-inner {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}
.ehr-lead-form-inner h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}
.ehr-lead-form-inner p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.ehr-lead-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.ehr-lead-form input {
  padding: 0.85rem 1.1rem;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: rgba(255,255,255,0.08);
  color: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.ehr-lead-form input::placeholder { color: rgba(255,255,255,0.5); }
.ehr-lead-form input:focus { border-color: var(--teal-light); }
.ehr-lead-success {
  display: none;
  background: var(--ehr-green-light);
  color: var(--ehr-green);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}
.ehr-lead-submit {
  padding: 0.95rem;
  background: var(--ehr-green);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s;
}
.ehr-lead-submit:hover { background: #15803d; }

/* Pilot CTA Banner */
.ehr-pilot-banner {
  padding: 3rem 3rem;
  background: var(--cream-mid);
  text-align: center;
  border-top: 1px solid var(--gray-200);
}
.ehr-pilot-banner h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}
.ehr-pilot-banner p {
  color: var(--gray-600);
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

/* CTA Buttons */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: var(--ehr-green);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-primary:hover { background: #15803d; }
.btn-secondary {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-secondary-dark {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-secondary-dark:hover { border-color: var(--teal-light); color: var(--teal-mid); }
.btn-amber {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  background: var(--amber);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-amber:hover { background: #b45309; }

/* Footer */
.footer {
  background: var(--charcoal);
  padding: 3rem;
  color: rgba(255,255,255,0.5);
}
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-logo { margin-bottom: 1.5rem; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin-bottom: 1.5rem;
}
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: #fff; }
.footer-legal { font-size: 0.8rem; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; }
.footer-legal a { color: rgba(255,255,255,0.5); text-decoration: none; }

/* Mobile */
@media (max-width: 768px) {
  .integrations-hero { padding: 6rem 1.5rem 3rem; }
  .integrations-hero h1 { font-size: 2.2rem; }
  .integrations-grid-section { padding: 3rem 1.5rem; }
  .ehr-grid { grid-template-columns: 1fr; }
  .ehr-request-form { flex-direction: column; }
  .ehr-hero { padding: 6rem 1.5rem 3rem; }
  .ehr-hero h1 { font-size: 2rem; }
  .ehr-pulled-grid { grid-template-columns: 1fr; }
  .ehr-setup-security-inner { grid-template-columns: 1fr; gap: 2rem; }
  .ehr-flow-diagram { flex-direction: column; }
  .ehr-flow-arrow { transform: rotate(90deg); }
  .ehr-hero-cta-row { flex-direction: column; align-items: flex-start; }
}