/* ========================================================================== 
   IGNITECARE WEBSITE — SINGLE MAINTAINABLE STYLESHEET
   ========================================================================== 
   HOW TO MAINTAIN THIS FILE
   1. Brand colours and spacing live in :root below.
   2. Every website section has a large labelled comment.
   3. Product screenshots are NOT stored in CSS. They are normal files in
      assets/images/ and are referenced from index.html.
   4. Responsive rules are grouped at the bottom of the file.
   ========================================================================== */

/* ========================================================================== 
   01. BRAND TOKENS — EDIT THESE FIRST
   ========================================================================== */
:root {
  --ink: #14201f;
  --copy: #4d5b59;
  --muted: #7b8583;
  --brand: #087c76;
  --brand-dark: #075f5b;
  --brand-soft: #e9f4f1;
  --soft: #f4f6f3;
  --warm: #f8f7f2;
  --line: #dfe4df;
  --line-strong: #cbd3cf;
  --dark: #102d2c;
  --white: #ffffff;
  --success: #18845f;
  --danger: #c94f57;
  --max-width: 1240px;
  --section-space: 112px;
  --header-height: 74px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ========================================================================== 
   02. RESET + GLOBAL TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);

  /* Keep the page scrollable while hiding the visible scrollbar. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--white);
  color: var(--ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }

h1, h2, h3, h4, h5, h6, p { margin-top: 0; }

h1, h2, h3, h4, h5, h6, .nav-brand-title {
  color: var(--ink);
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  font-weight: 650;
  letter-spacing: -.04em;
}

p { color: var(--copy); }

::selection {
  background: #a9ddd6;
  color: #0d2422;
}

.container {
  width: min(var(--max-width), calc(100% - 64px));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: var(--section-space) 0;
  background: var(--white);
}

.soft, #solutions, #modules, #contact { background: var(--soft); }
.sky, #dashboards, #portals, #faq { background: var(--warm); }

.eyebrow {
  display: block;
  margin: 0 0 18px;
  color: var(--brand);
  font-size: .75rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.section-head {
  max-width: 800px;
  margin-bottom: 62px;
}

.section-head.center {
  margin-inline: 0;
  text-align: left;
}

.section-head h2,
.problem-copy h2,
.consult-copy h2,
.portal-copy h2,
.security-copy h2,
.onboarding h2,
.contact-copy h2,
.medikredit-copy h2 {
  margin-bottom: 22px;
  font-size: clamp(2.3rem, 4.5vw, 4.15rem);
  line-height: 1.03;
}

.section-head p,
.problem-copy p,
.consult-copy p,
.portal-copy p,
.onboarding > div > p,
.contact-copy > p,
.medikredit-copy > p {
  max-width: 700px;
  margin-bottom: 0;
  font-size: 1.02rem;
  line-height: 1.78;
}

/* Accessibility */
.skip {
  position: fixed;
  z-index: 9999;
  top: -90px;
  left: 18px;
  padding: 11px 15px;
  border-radius: 6px;
  background: var(--dark);
  color: #fff;
  text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 16px; }

/* Subtle reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ========================================================================== 
   03. BUTTONS
   ========================================================================== */
.btn {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  text-align: center;
  text-decoration: none;
  font-size: .86rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: transform .18s, background .18s, border-color .18s, color .18s;
}
.btn svg { width: 17px; height: 17px; flex: 0 0 17px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; border-color: #000; }
.btn-secondary,
.btn-outline { background: transparent; border-color: #bcc5c1; color: var(--ink); }
.btn-secondary:hover,
.btn-outline:hover { background: #eef1ee; border-color: #9da9a4; }

/* ========================================================================== 
   04. HEADER + NAVIGATION
   ========================================================================== */
.header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header.scrolled { background: rgba(255,255,255,.99); }

.header .nav {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  overflow: hidden;
  border-radius: 8px;
}

.brand-mark img { width: 100%; height: 100%; object-fit: cover; }

.nav-brand-title {
  display: inline;
  font-size: 1.03rem;
  font-weight: 700;
  letter-spacing: -.025em;
}
.nav-brand-title sup { position: relative; top: -.55em; font-size: .48rem; }

.desk-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 2px;
}

.desk-nav a {
  padding: 9px 10px;
  border-radius: 5px;
  color: #3f4b49;
  font-size: .82rem;
  font-weight: 600;
  text-decoration: none;
}

.desk-nav a:hover,
.desk-nav a:focus-visible,
.desk-nav a.is-active {
  background: var(--soft);
  color: var(--ink);
  outline: none;
}

.nav-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }

.menu-btn {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.menu-btn svg { width: 21px; height: 21px; }

.mobile {
  position: fixed;
  z-index: 999;
  top: var(--header-height);
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--header-height));
  display: none;
  overflow: auto;
  padding: 18px 20px 24px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.mobile.open { display: grid; gap: 5px; }
.mobile a:not(.btn) { padding: 11px 8px; border-radius: 4px; color: var(--copy); font-weight: 650; text-decoration: none; }
.mobile a:not(.btn):hover { background: var(--soft); color: var(--ink); }
.mobile-brand { display: none; }
.whatsapp-nav { background: #1d9c57; border-color: #1d9c57; color: #fff; }
.whatsapp-icon { width: 25px; height: 25px; }

/* ========================================================================== 
   05. HERO — PHOTO FILE: assets/images/hero-practice-tech.jpg
   Replace that image file to update the hero without changing HTML or CSS.
   ========================================================================== */
.hero.hero-photo {
  position: relative;
  isolation: isolate;
  min-height: 690px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 142px 0 84px;
  background: var(--warm);
}

.hero-photo-media {
  position: absolute;
  z-index: -2;
  inset: var(--header-height) 0 0 42%;
  overflow: hidden;
  background: #e8eeeb;
}

.hero-photo-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  transform: scale(1.01);
}

.hero.hero-photo::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: var(--header-height) 0 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #fff 0%,
    rgba(255,255,255,.99) 28%,
    rgba(255,255,255,.91) 42%,
    rgba(255,255,255,.35) 59%,
    rgba(255,255,255,.04) 75%
  );
}

.hero-grid {
  width: min(var(--max-width), calc(100% - 64px));
  display: grid;
  grid-template-columns: minmax(0, 620px) 1fr;
  align-items: center;
  gap: 64px;
}

.hero-copy {
  width: 100%;
  min-width: 0;
  max-width: 620px;
}

.hero h1 {
  max-width: 620px;
  margin: 0 0 24px;
  font-size: clamp(3.05rem, 5.15vw, 5.15rem);
  line-height: 1.035;
  letter-spacing: -.055em;
  text-wrap: balance;
}
.hero h1 span {
  color: #066c67;
  font-weight: 700;
}

.hero-lead {
  max-width: 590px;
  margin-bottom: 29px;
  color: #496273;
  font-size: 1.03rem;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.hero-actions {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.trust-row {
  max-width: 610px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px 22px;
}
.trust-chip { display: inline-flex; align-items: flex-start; gap: 7px; color: #56625f; font-size: .77rem; font-weight: 600; }
.trust-chip svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 3px; color: var(--brand); }

.hero-assurance {
  max-width: 600px;
  margin: 24px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #d7dcd7;
  color: #536864;
  font-size: .82rem;
  line-height: 1.6;
}
.hero-assurance strong { color: var(--ink); }

/* Moving "Built for modern..." line. Change phrases in index.html. */
.modern-ticker {
  width: min(100%, 535px);
  overflow: hidden;
  margin: 0 0 22px;
  padding: 7px 0;
  border-top: 1px solid rgba(8,124,118,.24);
  border-bottom: 1px solid rgba(8,124,118,.24);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.modern-ticker-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  color: var(--brand-dark);
  font-size: .71rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: modernTicker 18s linear infinite;
  will-change: transform;
}
.modern-ticker-group { display: flex; align-items: center; gap: 17px; flex: 0 0 auto; }
.modern-ticker-track i { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #2fb5ae; font-size: 0; }
.modern-ticker:hover .modern-ticker-track { animation-play-state: paused; }
@keyframes modernTicker { to { transform: translateX(calc(-50% - 14px)); } }

/* ========================================================================== 
   06. PROOF / STATS STRIP
   ========================================================================== */
.proof-strip { margin: 0; background: #fff; }
.stats-grid-modern {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-modern {
  min-height: 130px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 28px 24px;
  border-right: 1px solid var(--line);
}
.stat-modern:last-child { border-right: 0; }
.stat-modern > strong { color: var(--brand); font-size: 1.2rem; font-weight: 750; line-height: 1.1; }
.stat-modern b { display: block; margin-bottom: 4px; font-size: .86rem; }
.stat-modern span { display: block; color: var(--muted); font-size: .75rem; line-height: 1.55; }

/* ========================================================================== 
   07. PRACTICE-TYPE MARQUEE
   ========================================================================== */
.specialty-marquee {
  padding: 24px 0;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.specialty-label {
  width: min(var(--max-width), calc(100% - 64px));
  margin: 0 auto 14px;
  color: var(--muted);
  font-size: .69rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.specialty-viewport {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 4%, #000 96%, transparent);
}

/* Horizontal UI can still scroll where needed, but no scrollbar is shown. */
.mobile,
.tab-bar,
.gallery-nav,
.specialty-viewport,
.modern-ticker {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mobile::-webkit-scrollbar,
.tab-bar::-webkit-scrollbar,
.gallery-nav::-webkit-scrollbar,
.specialty-viewport::-webkit-scrollbar,
.modern-ticker::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.specialty-track {
  display: flex;
  width: max-content;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  animation: specialtyScroll 32s linear infinite;
}

.specialty-set {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 30px;
  padding-right: 30px;
}

.specialty-set span {
  flex: 0 0 auto;
  color: #56615e;
  font-size: .79rem;
  font-weight: 600;
  white-space: nowrap;
}

.specialty-set i {
  width: 4px;
  height: 4px;
  flex: 0 0 4px;
  border-radius: 50%;
  background: var(--brand);
}

@keyframes specialtyScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* ========================================================================== 
   08. PRACTICE CHALLENGES
   ========================================================================== */
.practice-pain { background: #fff; }
.pain-grid-modern { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.pain-card-modern { min-height: 240px; margin-right: 34px; padding: 30px 34px 34px 0; border-bottom: 1px solid var(--line); }
.pain-card-modern:nth-child(3n) { margin-right: 0; padding-right: 0; }
.pain-icon { display: inline-block; margin-bottom: 26px; color: var(--brand); font-size: .7rem; font-weight: 800; letter-spacing: .06em; }
.pain-card-modern h3 { margin-bottom: 10px; font-size: 1.04rem; line-height: 1.35; }
.pain-card-modern p { margin: 0; font-size: .86rem; line-height: 1.67; }
.pain-bridge { margin-top: 34px; padding-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: #465b57; font-weight: 650; }
.pain-bridge a { flex-shrink: 0; color: var(--brand-dark); font-weight: 750; text-decoration: none; }

/* ========================================================================== 
   09. SOLUTIONS
   ========================================================================== */
.problem-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 72px; align-items: start; }
.paper-note { margin-top: 28px; padding: 18px 0 0; border-top: 1px solid var(--line-strong); color: #536561; font-size: .88rem; font-weight: 600; }
.problem-list { display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.problem-card { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 25px 0; border-bottom: 1px solid var(--line-strong); }
.problem-card .icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--brand); }
.problem-card .icon svg { width: 22px; height: 22px; }
.problem-card h3 { margin: 1px 0 7px; font-size: 1rem; }
.problem-card p { margin: 0; font-size: .86rem; line-height: 1.67; }

/* ========================================================================== 
   10. SECURITY
   ========================================================================== */
.security-feature { padding: 0; background: var(--dark); }
.security-shell { width: min(var(--max-width), calc(100% - 64px)); display: grid; grid-template-columns: .86fr 1.14fr; gap: 72px; padding: 92px 0; color: #fff; }
.security-copy { align-self: start; }
.security-copy .eyebrow { color: #8bd8cf; }
.security-copy h2 { color: #fff; }
.security-copy p { color: #c8d4d1; }
.security-seal { width: 78px; height: 78px; display: grid; place-items: center; margin: 0 0 24px; color: #8bd8cf; }
.security-seal svg { width: 58px; height: 58px; }
.security-promise { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); }
.security-promise strong { display: block; margin-bottom: 7px; color: #fff; }
.security-promise span { display: block; color: #b9cbc7; font-size: .82rem; line-height: 1.6; }
.security-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid rgba(255,255,255,.16); }
.security-card { min-height: 190px; padding: 25px 25px 25px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.security-card:nth-child(odd) { margin-right: 25px; border-right: 1px solid rgba(255,255,255,.16); }
.security-card .icon { display: inline-block; margin-bottom: 16px; font-size: 1.2rem; }
.security-card h3 { margin-bottom: 8px; color: #fff; font-size: .98rem; }
.security-card p { margin: 0; color: #b9cbc7; font-size: .79rem; line-height: 1.65; }

/* ========================================================================== 
   11. CONNECTED WORKFLOW
   ========================================================================== */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.journey-card { position: relative; min-height: 240px; padding: 30px 26px 32px 0; border-bottom: 1px solid var(--line); }
.journey-card:not(:nth-child(4n)) { margin-right: 26px; border-right: 1px solid var(--line); }
.journey-card::before { content: counter(journey-step, decimal-leading-zero); position: absolute; top: 25px; right: 26px; color: #c9d0cc; font-size: .7rem; font-weight: 800; letter-spacing: .08em; }
.journey { counter-reset: journey-step; }
.journey-card { counter-increment: journey-step; }
.journey-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 24px; color: var(--brand); }
.journey-icon svg { width: 22px; height: 22px; }
.journey-card h3 { margin-bottom: 9px; font-size: .98rem; }
.journey-card p { margin: 0; font-size: .82rem; line-height: 1.66; }
.branch-callout { margin-top: 32px; padding: 22px 0 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); }
.branch-callout strong { font-size: .96rem; }
.branch-callout span { max-width: 780px; color: var(--copy); font-size: .84rem; }

/* ========================================================================== 
   12. MEDIKREDIT / CLAIMS INTEGRATION
   Screenshot: assets/images/medikredit-workflow.png
   ========================================================================== */
.medikredit-section { background: #fff; }
.medikredit-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.medikredit-points { list-style: none; margin: 28px 0 22px; padding: 0; border-top: 1px solid var(--line); }
.medikredit-points li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.medikredit-points li > span { color: var(--brand); font-size: .75rem; font-weight: 800; }
.medikredit-points strong { display: block; margin-bottom: 3px; font-size: .91rem; }
.medikredit-points small { display: block; color: var(--copy); font-size: .78rem; line-height: 1.55; }
.integration-note { margin-bottom: 0; padding: 15px 0 0; border-top: 1px solid var(--line); font-size: .8rem; }
.medikredit-visual { margin: 0; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.medikredit-visual img { width: 100%; }
.medikredit-visual figcaption { padding: 10px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: .71rem; text-align: center; }
.integration-certification { margin-top: 72px; padding-top: 72px; display: grid; grid-template-columns: .92fr 1.08fr; gap: 54px; align-items: center; border-top: 1px solid var(--line); }
.certification-image { overflow: hidden; border: 1px solid var(--line); }
.certification-image img { width: 100%; }
.cert-badge-modern { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-dark); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.cert-badge-modern span { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; }
.cert-copy h3 { margin: 17px 0 13px; font-size: clamp(1.7rem, 2.6vw, 2.35rem); }
.cert-copy > p { font-size: .94rem; line-height: 1.75; }
.cert-copy ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.cert-copy li { position: relative; padding-left: 22px; color: var(--copy); font-size: .82rem; line-height: 1.5; }
.cert-copy li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.cert-copy small { display: block; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: .72rem; line-height: 1.55; }

/* ========================================================================== 
   13. ADMIN + DOCTOR DASHBOARDS
   Replace the screenshot files in assets/images/ to update these images.
   ========================================================================== */
.dashboards { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; }
.role-card { overflow: hidden; background: transparent; }
.role-image { aspect-ratio: 1.65 / 1; overflow: hidden; border: 1px solid var(--line-strong); background: #edf1ee; }
.role-image img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.role-body { padding: 26px 0 0; }
.role-label { display: block; margin-bottom: 13px; color: var(--brand); font-size: .69rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.role-body h3 { margin-bottom: 11px; font-size: 1.55rem; }
.role-body p { margin-bottom: 18px; font-size: .89rem; line-height: 1.7; }
.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.tick-list li { display: flex; gap: 8px; color: #53635f; font-size: .82rem; }
.tick-list svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; color: var(--success); }

/* ========================================================================== 
   14. CONSULTATION TABS
   ========================================================================== */
.consult-shell { display: grid; grid-template-columns: .78fr 1.22fr; gap: 60px; align-items: center; }
.step-list { margin-top: 26px; border-top: 1px solid var(--line); }
.step-item { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step-num { color: var(--brand); font-size: .76rem; font-weight: 800; }
.step-item h3 { margin: 0 0 4px; font-size: .94rem; }
.step-item p { margin: 0; font-size: .8rem; line-height: 1.6; }
.product-tabs { min-width: 0; }
.tab-bar { display: flex; gap: 0; overflow: auto; border-bottom: 1px solid var(--line-strong); }
.tab-btn { padding: 12px 16px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--copy); font-size: .78rem; font-weight: 750; white-space: nowrap; cursor: pointer; }
.tab-btn[aria-selected="true"] { border-bottom-color: var(--brand); color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel figure { margin: 20px 0 0; overflow: hidden; border: 1px solid var(--line-strong); background: #f0f3f1; }
.tab-panel img { width: 100%; }
.screen-caption { display: flex; justify-content: space-between; gap: 20px; padding-top: 11px; color: var(--muted); font-size: .7rem; }

/* ========================================================================== 
   15. FEATURE MODULES
   ========================================================================== */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-strong); }
.module { min-height: 230px; padding: 30px 25px 32px 0; border-bottom: 1px solid var(--line-strong); }
.module:not(:nth-child(4n)) { margin-right: 25px; border-right: 1px solid var(--line-strong); }
.module-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 24px; color: var(--brand); }
.module-icon svg { width: 22px; height: 22px; }
.module h3 { margin-bottom: 8px; font-size: .97rem; }
.module p { margin: 0; font-size: .81rem; line-height: 1.65; }

/* ========================================================================== 
   16. PRODUCT SCREENSHOT GALLERY
   All screenshots come from normal files in assets/images/.
   ========================================================================== */
.showcase-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 30px; }
.gallery-nav { display: grid; align-content: start; border-top: 1px solid var(--line-strong); }
.gallery-btn { padding: 16px 0; border: 0; border-bottom: 1px solid var(--line-strong); background: transparent; color: var(--copy); font-size: .83rem; font-weight: 750; text-align: left; cursor: pointer; }
.gallery-btn span { display: block; margin-top: 3px; color: var(--muted); font-size: .68rem; font-weight: 500; }
.gallery-btn[aria-selected="true"] { color: var(--brand-dark); }
.gallery-stage { min-width: 0; }
.gallery-panel { display: none; }
.gallery-panel.active { display: block; }
.gallery-frame { max-height: 680px; overflow: hidden; border: 1px solid var(--line-strong); background: #eef1ef; }
.gallery-frame img { width: 100%; height: auto; }
.gallery-caption { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 18px 0 0; }
.gallery-caption h3 { margin-bottom: 4px; font-size: .98rem; }
.gallery-caption p { margin: 0; font-size: .79rem; }
.demo-label { flex-shrink: 0; color: var(--brand); font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }

/* ========================================================================== 
   17. PATIENT PORTALS
   ========================================================================== */
.portal-grid { display: grid; grid-template-columns: .88fr 1.12fr; gap: 70px; align-items: center; }
.portal-points { margin-top: 25px; border-top: 1px solid var(--line-strong); }
.portal-point { display: grid; grid-template-columns: 38px 1fr; gap: 13px; padding: 17px 0; border-bottom: 1px solid var(--line-strong); }
.portal-point .icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--brand); }
.portal-point .icon svg { width: 20px; height: 20px; }
.portal-point h3 { margin: 1px 0 4px; font-size: .92rem; }
.portal-point p { margin: 0; font-size: .8rem; }
.portal-visual { position: relative; min-height: 520px; }
.phone { position: absolute; width: 265px; padding: 11px; overflow: hidden; border: 7px solid #173a38; border-radius: 30px; background: #fff; box-shadow: 0 25px 65px rgba(32,48,44,.16); }
.phone.one { top: 0; left: 30px; transform: rotate(-3deg); }
.phone.two { right: 18px; bottom: 0; transform: rotate(3deg); }
.notch { width: 76px; height: 14px; margin: -11px auto 10px; border-radius: 0 0 10px 10px; background: #173a38; }
.phone-head { padding: 15px; border-radius: 16px; background: var(--brand); color: #fff; }
.phone-head strong { color: #fff; font-size: .86rem; }
.phone-head small { display: block; margin-top: 4px; color: #d6eeea; font-size: .65rem; }
.phone-body { display: grid; gap: 9px; padding: 13px 4px 7px; }
.phone-field { height: 41px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 7px; background: #fafcfb; color: var(--muted); font-size: .66rem; }
.phone-action { height: 40px; display: grid; place-items: center; border-radius: 7px; background: var(--brand); color: #fff; font-size: .69rem; font-weight: 800; }
.slot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.slot { padding: 8px 5px; border: 1px solid #b7d8d3; border-radius: 6px; background: #f0f9f7; color: var(--brand-dark); font-size: .64rem; text-align: center; }
.qr-card, .mail-card { position: absolute; z-index: 3; padding: 14px; border: 1px solid var(--line-strong); background: #fff; box-shadow: 0 18px 45px rgba(32,48,44,.12); }
.qr-card { top: 35px; right: 0; width: 165px; }
.mail-card { bottom: 22px; left: 8px; width: 235px; }
.fake-qr { width: 62px; height: 62px; margin-bottom: 10px; border: 6px solid #fff; background: repeating-conic-gradient(#173a38 0 25%, #fff 0 50%) 0 / 16px 16px; box-shadow: 0 0 0 1px var(--line); }
.qr-card strong, .mail-card strong { font-size: .77rem; }
.qr-card span, .mail-card p { display: block; margin: 4px 0 0; color: var(--muted); font-size: .66rem; }

/* ========================================================================== 
   18. ONBOARDING + SUPPORT
   ========================================================================== */
.onboarding { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.go-live { border-top: 1px solid var(--line-strong); }
.go-step { display: grid; grid-template-columns: 48px 1fr; gap: 15px; padding: 18px 0; border-bottom: 1px solid var(--line-strong); }
.go-step b { color: var(--brand); font-size: .75rem; }
.go-step h3 { margin: 1px 0 4px; font-size: .93rem; }
.go-step p { margin: 0; font-size: .79rem; }
.support-partnership { grid-column: 1 / -1; margin-top: 62px; padding-top: 34px; display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; border-top: 1px solid var(--line-strong); }
.support-kicker { display: block; margin-bottom: 10px; color: var(--brand); font-size: .69rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.support-partnership h3 { max-width: 680px; margin-bottom: 12px; font-size: 1.55rem; }
.support-partnership p { max-width: 720px; margin: 0; font-size: .85rem; }
.support-points { display: grid; align-content: start; border-top: 1px solid var(--line-strong); }
.support-point { padding: 13px 0; border-bottom: 1px solid var(--line-strong); color: #4f625e; font-size: .81rem; font-weight: 650; }

/* ========================================================================== 
   19. TESTIMONIALS
   IMPORTANT: The current quote text is intentionally placeholder content.
   Replace each quote/name/practice in index.html with VERIFIED feedback before
   publishing the section as client testimony.
   ========================================================================== */
/* ==========================================================================
   TESTIMONIALS — CONTINUOUS MOVING CARDS
   ========================================================================== */

.testimonials {
  overflow: hidden;
  background: #fff;
}

/* The heading stays aligned with the rest of the website */
.testimonials .section-head {
  margin-bottom: 52px;
}


/* ----------------------------------------------------------
   MARQUEE VIEWPORT
   ---------------------------------------------------------- */

.testimonial-viewport {
  width: 100%;
  overflow: hidden;

  /* Soft fade as cards enter and leave */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 5%,
    #000 95%,
    transparent 100%
  );

  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 5%,
    #000 95%,
    transparent 100%
  );

  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.testimonial-viewport::-webkit-scrollbar {
  display: none;
}


/* ----------------------------------------------------------
   MOVING TRACK
   ---------------------------------------------------------- */

.testimonial-track {
  display: flex;
  width: max-content;

  transform: translate3d(0, 0, 0);
  will-change: transform;

  animation: testimonialScroll 40s linear infinite;
}


/* Each duplicate group */
.testimonial-set {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;

  gap: 22px;

  /* Must match the gap above */
  padding-right: 22px;
}


/* ----------------------------------------------------------
   TESTIMONIAL CARD
   ---------------------------------------------------------- */

.testimonial-card {
  width: clamp(310px, 30vw, 420px);
  min-height: 310px;

  flex: 0 0 auto;

  display: flex;
  flex-direction: column;

  margin: 0;
  padding: 32px;

  border: 1px solid var(--line);

  background: #fff;
}


/* Large quote mark */
.testimonial-mark {
  display: block;

  margin-bottom: 20px;

  color: var(--brand);

  font-family: Georgia, serif;
  font-size: 3.8rem;
  font-weight: 400;
  line-height: .7;
}


/* Quote */
.testimonial-card blockquote {
  flex: 1;

  margin: 0 0 30px;

  color: var(--ink);

  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
}


/* Person / practice information */
.testimonial-card figcaption {
  padding-top: 20px;

  border-top: 1px solid var(--line);
}

.testimonial-card figcaption strong {
  display: block;

  margin-bottom: 4px;

  color: var(--ink);

  font-size: .86rem;
  font-weight: 700;
}

.testimonial-card figcaption span {
  display: block;

  color: var(--muted);

  font-size: .76rem;
}


/* ----------------------------------------------------------
   ANIMATION
   ---------------------------------------------------------- */

@keyframes testimonialScroll {

  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }

}


/* Pause when user points at the testimonials */
.testimonial-viewport:hover .testimonial-track {
  animation-play-state: paused;
}


/* ----------------------------------------------------------
   TABLET
   ---------------------------------------------------------- */

@media (max-width: 820px) {

  .testimonial-track {
    animation-duration: 34s;
  }

  .testimonial-card {
    width: 340px;
    min-height: 290px;

    padding: 28px;
  }

}


/* ----------------------------------------------------------
   MOBILE
   ---------------------------------------------------------- */

@media (max-width: 620px) {

  .testimonials .section-head {
    margin-bottom: 36px;
  }

  .testimonial-viewport {
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 2%,
      #000 98%,
      transparent 100%
    );

    mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 2%,
      #000 98%,
      transparent 100%
    );
  }

  .testimonial-set {
    gap: 14px;
    padding-right: 14px;
  }

  .testimonial-card {
    width: calc(100vw - 48px);
    max-width: 360px;
    min-height: 280px;

    padding: 25px;
  }

  .testimonial-card blockquote {
    font-size: .92rem;
  }

  .testimonial-mark {
    font-size: 3.2rem;
  }

  .testimonial-track {
    animation-duration: 30s;
  }

}

.is-hidden {
  display: none;
}
/* ========================================================================== 
   20. PRICING
   ========================================================================== */
.pricing-modern { background: var(--warm); }
.pricing-shell { display: grid; grid-template-columns: 1.35fr .65fr; border: 1px solid var(--line-strong); background: #fff; }
.pricing-main { padding: 44px; }
.pricing-label { color: var(--brand); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pricing-main h3 { margin: 18px 0 15px; font-size: 2.4rem; line-height: 1.08; }
.pricing-intro { max-width: 720px; font-size: .96rem; line-height: 1.72; }
.pricing-includes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.pricing-includes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.pricing-includes li { position: relative; padding-left: 24px; color: var(--copy); font-size: .84rem; line-height: 1.5; }
.pricing-includes li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 900; }
.pricing-action { padding: 44px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: var(--dark); color: #fff; }
.trial-pill { color: #8bd8cf; font-size: .7rem; font-weight: 750; }
.pricing-action > strong { margin: 20px 0 11px; color: #fff; font-size: clamp(1.5rem, 2.4vw, 2.05rem); line-height: 1.2; }
.pricing-action p { color: #c4d0cd; font-size: .85rem; line-height: 1.65; }
.pricing-action .btn { width: 100%; background: #fff; border-color: #fff; color: var(--ink); }
.pricing-whatsapp { width: 100%; margin-top: 12px; color: #8bd8cf; font-size: .83rem; font-weight: 750; text-align: center; text-decoration: none; }
.pricing-note { margin: 16px 0 0; color: var(--muted); font-size: .75rem; text-align: center; }

/* ========================================================================== 
   21. OPTIONAL PRACTICE IT SETUP
   ========================================================================== */
.bundle-section { padding: 72px 0; background: var(--soft); }
.complete-bundle-card { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding-top: 34px; border-top: 1px solid var(--line-strong); }
.bundle-icon { width: 56px; height: 56px; display: grid; place-items: center; background: #e4ebe7; color: var(--brand); }
.bundle-icon svg { width: 31px; height: 31px; }
.bundle-copy .eyebrow { margin-bottom: 9px; }
.bundle-copy h2 { margin-bottom: 7px; font-size: 1.9rem; }
.bundle-copy p { max-width: 820px; margin: 0; font-size: .83rem; }

/* ========================================================================== 
   22. FAQ
   ========================================================================== */
.faq { max-width: 940px; border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px 0; border: 0; background: transparent; color: var(--ink); font-weight: 650; text-align: left; cursor: pointer; }
.faq-q svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--brand); transition: transform .25s; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-inner { overflow: hidden; }
.faq-inner p { max-width: 760px; margin: 0; padding: 0 0 24px; font-size: .84rem; line-height: 1.7; }

/* ========================================================================== 
   23. CONTACT + DEMO FORM
   ========================================================================== */
.contact { display: grid; grid-template-columns: .82fr 1.18fr; gap: 76px; align-items: start; }
.contact-list { margin-top: 32px; border-top: 1px solid var(--line-strong); }
.contact-row { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
.contact-row .icon { width: 32px; height: 32px; display: grid; place-items: center; color: var(--brand); }
.contact-row .icon svg { width: 20px; height: 20px; }
.contact-row small { display: block; color: var(--muted); font-size: .63rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-row a, .contact-row span { color: var(--ink); font-size: .87rem; font-weight: 750; text-decoration: none; }
.whatsapp-row .icon { color: #168b53; }
.form-card { padding: 38px; border: 1px solid var(--line-strong); background: #fff; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field.full, .consent, .submit-wrap, .form-note { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; color: #42544f; font-size: .72rem; font-weight: 750; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line-strong); border-radius: 5px; outline: none; background: #fff; color: var(--ink); }
.field textarea { min-height: 126px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(8,124,118,.09); }
.consent { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: .75rem; }
.consent input { margin-top: 4px; accent-color: var(--brand); }
.submit-wrap .btn { width: 100%; }
.form-note { margin: 0; color: var(--muted); font-size: .68rem; text-align: center; }

/* ========================================================================== 
   24. FOOTER
   ========================================================================== */
footer { padding: 72px 0 28px; background: #10201f; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: 44px; padding-bottom: 46px; }
.footer-brand p { max-width: 360px; margin: 18px 0 0; color: #aebbb8; font-size: .84rem; }
.footer-col { display: grid; align-content: start; gap: 9px; }
.footer-col h3 { margin-bottom: 7px; color: #fff; font-size: .71rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.footer-col a { color: #aebbb8; font-size: .81rem; text-decoration: none; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); color: #879692; font-size: .71rem; }
.footer-bottom a { color: #b8c8c4; }
.footer-grid .brand-mark { width: 34px; height: 34px; flex-basis: 34px; }
.ignitedry-footer-link { text-decoration: none; }

/* ========================================================================== 
   25. FLOATING CONTROLS + TOAST
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  z-index: 1200;
  right: 18px;
  bottom: 18px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1d9c57;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(21,92,55,.22);
}
.whatsapp-float span { display: none; }
.whatsapp-float .whatsapp-icon { width: 27px; height: 27px; }

.back-to-top {
  position: fixed;
  z-index: 1190;
  right: 20px;
  bottom: 82px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s;
  cursor: pointer;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top svg { width: 18px; height: 18px; }

.toast {
  position: fixed;
  z-index: 1300;
  right: 20px;
  bottom: 20px;
  max-width: 370px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(23,34,31,.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(120%);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.toast.show { opacity: 1; pointer-events: auto; transform: none; }
.toast-icon { width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0; background: var(--brand-soft); color: var(--success); }
.toast-icon svg { width: 19px; height: 19px; }
.toast strong { display: block; }
.toast span { display: block; margin-top: 3px; color: var(--muted); font-size: .76rem; }
.toast.error .toast-icon { background: #ffebec; color: var(--danger); }

/* ========================================================================== 
   26. RESPONSIVE — TABLET / SMALL LAPTOP
   ========================================================================== */
@media (max-width: 1120px) {
  .desk-nav { display: none; }
  .menu-btn { display: grid; }
  .header .nav-actions > .btn-primary { display: none; }

  .hero.hero-photo { min-height: auto; padding-bottom: 0; display: block; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-copy { max-width: 760px; }
  .hero-photo-media { position: relative; z-index: 0; inset: auto; width: min(100% - 64px, var(--max-width)); height: clamp(360px, 54vw, 590px); margin: 38px auto 0; }
  .hero.hero-photo::before { display: none; }

  .stats-grid-modern { grid-template-columns: repeat(3, 1fr); }
  .stat-modern:nth-child(3) { border-right: 0; }
  .stat-modern:nth-child(-n+3) { border-bottom: 1px solid var(--line); }

  .problem-grid,
  .security-shell,
  .medikredit-layout,
  .portal-grid,
  .onboarding,
  .contact { grid-template-columns: 1fr; gap: 54px; }

  .integration-certification { grid-template-columns: 1fr; }
  .security-copy { max-width: 760px; }
  .security-grid { max-width: 900px; }
  .journey { grid-template-columns: repeat(2, 1fr); }
  .journey-card:not(:nth-child(4n)) { margin-right: 0; border-right: 0; }
  .journey-card:nth-child(odd) { margin-right: 26px; border-right: 1px solid var(--line); }
  .modules { grid-template-columns: repeat(2, 1fr); }
  .module:not(:nth-child(4n)) { margin-right: 0; border-right: 0; }
  .module:nth-child(odd) { margin-right: 25px; border-right: 1px solid var(--line-strong); }
  .support-partnership { grid-template-columns: 1fr; gap: 30px; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-card:not(:nth-child(3n)) { margin-right: 0; border-right: 0; }
  .testimonial-card:nth-child(odd) { margin-right: 34px; border-right: 1px solid var(--line); }
  .testimonial-card:last-child { grid-column: 1 / -1; margin-right: 0; border-right: 0; min-height: 220px; }
}

/* ========================================================================== 
   27. RESPONSIVE — TABLET
   ========================================================================== */
@media (max-width: 820px) {
  :root { --section-space: 86px; }
  .container, .header .nav, .security-shell { width: calc(100% - 38px); }

  .specialty-marquee .container { grid-template-columns: 1fr; gap: 12px; }
  .stats-grid-modern { grid-template-columns: 1fr 1fr; }
  .stat-modern { border-bottom: 1px solid var(--line); }
  .stat-modern:nth-child(2n) { border-right: 0; }
  .stat-modern:nth-child(3) { border-right: 1px solid var(--line); }
  .stat-modern:last-child { grid-column: 1 / -1; border-bottom: 0; }

  .pain-grid-modern { grid-template-columns: 1fr 1fr; }
  .pain-card-modern, .pain-card-modern:nth-child(3n) { margin-right: 24px; padding-right: 24px; }
  .pain-card-modern:nth-child(2n) { margin-right: 0; padding-right: 0; }

  .security-grid { grid-template-columns: 1fr 1fr; }
  .dashboards { grid-template-columns: 1fr; gap: 62px; }
  .consult-shell { grid-template-columns: 1fr; gap: 52px; }
  .showcase-wrap { grid-template-columns: 1fr; gap: 22px; }
  .gallery-nav { grid-template-columns: repeat(4, minmax(145px, 1fr)); display: grid; overflow: auto; border-top: 0; border-bottom: 1px solid var(--line-strong); }
  .gallery-btn { padding: 13px; border-bottom: 0; border-right: 1px solid var(--line-strong); white-space: nowrap; }
  .portal-visual { max-width: 650px; width: 100%; margin-inline: auto; }
  .pricing-shell { grid-template-columns: 1fr; }
  .pricing-action { align-items: flex-start; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ========================================================================== 
   28. RESPONSIVE — MOBILE
   ========================================================================== */
@media (max-width: 620px) {
  :root { --section-space: 70px; --header-height: 68px; }
  .container, .header .nav, .security-shell { width: calc(100% - 28px); }

  .header .nav { grid-template-columns: auto 1fr auto; gap: 10px; }
  .brand-mark { width: 33px; height: 33px; flex-basis: 33px; }
  .nav-brand-title { font-size: .94rem; }
  .mobile { padding-inline: 14px; }

  .section-head { margin-bottom: 42px; }
  .section-head h2,
  .problem-copy h2,
  .consult-copy h2,
  .portal-copy h2,
  .security-copy h2,
  .onboarding h2,
  .contact-copy h2,
  .medikredit-copy h2 { font-size: 2.4rem; }

  .hero.hero-photo {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 0;
  }

  .hero-grid {
    width: calc(100% - 28px);
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .hero-copy {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .hero h1 {
    max-width: 100%;
    margin-bottom: 20px;
    font-size: clamp(2.35rem, 11.5vw, 3.25rem);
    line-height: 1.02;
    letter-spacing: -.05em;
    text-wrap: pretty;
  }

  .hero-lead {
    width: 100%;
    max-width: none;
    margin-bottom: 24px;
    font-size: .96rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 28px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 13px 16px;
    justify-content: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .hero-actions .btn svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
  }

  .trust-row {
    width: 100%;
    max-width: none;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .trust-chip {
    font-size: .8rem;
    line-height: 1.45;
  }

  .hero-assurance {
    width: 100%;
    max-width: none;
    margin-top: 26px;
  }

  .modern-ticker {
    width: 100%;
    margin-bottom: 18px;
  }

  .modern-ticker-track {
    font-size: .64rem;
    animation-duration: 17s;
  }

  .hero-photo-media {
    position: relative;
    inset: auto;
    z-index: auto;
    width: 100vw;
    height: 330px;
    margin: 36px 0 0 calc(50% - 50vw);
  }

  .hero-photo-media img {
    object-position: 63% 50%;
  }

  .specialty-label {
    width: calc(100% - 28px);
  }

  .stats-grid-modern { grid-template-columns: 1fr; }
  .stat-modern, .stat-modern:nth-child(3), .stat-modern:last-child { grid-column: auto; min-height: 0; padding: 20px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .stat-modern:last-child { border-bottom: 0; }

  .pain-grid-modern { grid-template-columns: 1fr; }
  .pain-card-modern, .pain-card-modern:nth-child(2n), .pain-card-modern:nth-child(3n) { min-height: 0; margin: 0; padding: 25px 0; border-bottom: 1px solid var(--line); }
  .pain-bridge { align-items: flex-start; flex-direction: column; }

  .security-shell { padding: 70px 0; }
  .security-grid { grid-template-columns: 1fr; }
  .security-card, .security-card:nth-child(odd) { min-height: 0; margin: 0; padding: 22px 0; border-right: 0; }

  .journey { grid-template-columns: 1fr; }
  .journey-card, .journey-card:nth-child(odd) { min-height: 0; margin: 0; padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .journey-card::before { right: 0; }
  .branch-callout { flex-direction: column; }

  .integration-certification { margin-top: 52px; padding-top: 42px; }
  .cert-copy ul { grid-template-columns: 1fr; }

  .role-image { aspect-ratio: 1.45 / 1; }
  .screen-caption, .gallery-caption { flex-direction: column; gap: 7px; }

  .modules { grid-template-columns: 1fr; }
  .module, .module:nth-child(odd) { min-height: 0; margin: 0; padding: 25px 0; border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .gallery-nav { grid-template-columns: repeat(4, 160px); }

  .portal-visual { min-height: 615px; }
  .phone { width: 230px; }
  .phone.one { left: 0; }
  .phone.two { right: 0; }
  .qr-card { width: 150px; }
  .mail-card { width: 220px; }

  .support-partnership { margin-top: 48px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .testimonial-card, .testimonial-card:nth-child(odd), .testimonial-card:last-child { grid-column: auto; min-height: 0; margin: 0; padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }

  .pricing-main, .pricing-action { padding: 29px 20px; }
  .pricing-main h3 { font-size: 1.95rem; }
  .pricing-includes { grid-template-columns: 1fr; }
  .complete-bundle-card { grid-template-columns: auto 1fr; }
  .complete-bundle-card .btn { grid-column: 1 / -1; width: 100%; }

  .form-card { padding: 24px 17px; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full, .consent, .submit-wrap, .form-note { grid-column: auto; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .whatsapp-float { right: 12px; bottom: 12px; width: 50px; height: 50px; }
  .back-to-top { right: 16px; bottom: 72px; }
  .toast { left: 13px; right: 13px; bottom: 13px; }
}

@media (max-width: 390px) {
  .container,
  .header .nav,
  .security-shell,
  .hero-grid {
    width: calc(100% - 22px);
  }

  .hero h1 {
    font-size: clamp(2.15rem, 11.8vw, 2.75rem);
  }

  .hero-actions .btn {
    min-height: 48px;
    padding-inline: 13px;
    font-size: .82rem;
  }

  .specialty-label {
    width: calc(100% - 22px);
  }
}


/* ========================================================================== 
   29. REDUCED MOTION
   Keep reveal effects disabled for accessibility, but leave the two small
   informational marquees running so their content remains continuously visible.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   IGNITECARE PATIENT APP — IN DEVELOPMENT
   ========================================================================== */

.patient-app-section {
  overflow: hidden;
  background: #f4f6f3;
}

.patient-app-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
  gap: 90px;
  align-items: center;
}


/* DEVELOPMENT STATUS */

.product-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;

  margin-bottom: 24px;
  padding: 7px 11px;

  border: 1px solid #b9d9d3;
  border-radius: 999px;

  background: #edf7f4;
  color: var(--brand-dark);

  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;

  border-radius: 50%;
  background: var(--brand);

  box-shadow: 0 0 0 5px rgba(8, 124, 118, .1);
}


/* COPY */

.patient-app-copy h2 {
  max-width: 700px;

  margin-bottom: 24px;

  font-size: clamp(2.5rem, 4.7vw, 4.4rem);
  line-height: 1.02;
}

.patient-app-copy h2 span {
  color: var(--brand-dark);
}

.patient-app-copy > p {
  max-width: 680px;
}

.patient-app-lead {
  margin-bottom: 17px;

  color: #344d49;

  font-size: 1.08rem;
  line-height: 1.75;
}


/* PRACTICE ↔ PATIENT */

.patient-connection {
  margin: 40px 0;
  padding: 25px 0;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;

  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.connection-side {
  display: flex;
  align-items: center;
  gap: 11px;
}

.connection-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;

  display: grid;
  place-items: center;

  border: 1px solid #c8d8d4;
  border-radius: 50%;

  background: #fff;
  color: var(--brand);
}

.connection-icon svg {
  width: 20px;
  height: 20px;
}

.connection-side strong {
  display: block;

  color: var(--ink);

  font-size: .83rem;
}

.connection-side span:not(.connection-icon) {
  display: block;

  margin-top: 2px;

  color: var(--muted);

  font-size: .7rem;
}

.connection-line {
  display: flex;
  align-items: center;
  gap: 8px;

  color: var(--brand);
}

.connection-line span {
  height: 1px;
  flex: 1;

  background: #b8cbc6;
}

.connection-line svg {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}


/* FEATURES */

.patient-app-features {
  border-top: 1px solid var(--line);
}

.patient-app-features article {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 15px;

  padding: 19px 0;

  border-bottom: 1px solid var(--line);
}

.patient-app-features article > span {
  color: var(--brand);

  font-size: .7rem;
  font-weight: 800;
}

.patient-app-features h3 {
  margin: 0 0 5px;

  font-size: .95rem;
}

.patient-app-features p {
  max-width: 600px;
  margin: 0;

  font-size: .8rem;
  line-height: 1.62;
}


/* PHONE PREVIEW */

.patient-app-visual {
  position: relative;

  min-height: 680px;

  display: grid;
  place-items: center;
}

.patient-app-visual::before {
  content: "";

  position: absolute;
  z-index: 0;

  width: 520px;
  height: 520px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(8, 124, 118, .13),
      rgba(8, 124, 118, .03) 55%,
      transparent 72%
    );
}

.patient-phone {
  position: relative;
  z-index: 1;

  width: min(330px, 80%);

  overflow: hidden;

  padding: 8px;

  border: 8px solid #14201f;
  border-radius: 42px;

  background: #fff;

  box-shadow:
    0 40px 90px rgba(26, 49, 46, .2);
}

.patient-phone-top {
  height: 20px;

  display: grid;
  place-items: start center;
}

.patient-phone-top span {
  width: 76px;
  height: 7px;

  border-radius: 999px;

  background: #14201f;
}

.patient-phone img {
  width: 100%;

  border-radius: 27px;

  background: #f3f6f4;
}

.app-preview-label {
  position: absolute;
  z-index: 2;

  top: 80px;
  left: 0;

  padding: 13px 15px;

  border: 1px solid var(--line);
  background: rgba(255,255,255,.94);
}

.app-preview-label span,
.app-preview-label strong {
  display: block;
}

.app-preview-label span {
  color: var(--muted);
  font-size: .66rem;
}

.app-preview-label strong {
  margin-top: 2px;

  font-size: .8rem;
}

.app-preview-note {
  position: absolute;
  z-index: 2;

  right: 0;
  bottom: 80px;

  max-width: 230px;

  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;

  padding: 15px;

  border: 1px solid var(--line);

  background: rgba(255,255,255,.95);
}

.app-preview-note strong {
  display: block;

  font-size: .78rem;
}

.app-preview-note p {
  margin: 4px 0 0;

  color: var(--muted);

  font-size: .68rem;
  line-height: 1.45;
}


/* PRODUCT VISION */

.patient-app-vision {
  margin-top: 90px;
  padding-top: 40px;

  display: grid;
  grid-template-columns: .55fr 1.45fr;
  gap: 60px;

  border-top: 1px solid var(--line-strong);
}

.patient-app-vision h3 {
  max-width: 700px;

  margin-bottom: 13px;

  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
}

.patient-app-vision p {
  max-width: 720px;

  margin: 0;

  font-size: .9rem;
  line-height: 1.75;
}


/* ==========================================================================
   PATIENT APP — MOBILE
   ========================================================================== */

@media (max-width: 900px) {

  .patient-app-layout {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .patient-app-visual {
    min-height: 600px;
  }

  .patient-app-vision {
    grid-template-columns: 1fr;
    gap: 10px;
  }

}


@media (max-width: 620px) {

  .patient-app-copy h2 {
    font-size: clamp(2.3rem, 11vw, 3.2rem);
  }

  .patient-app-lead {
    font-size: .98rem;
  }

  .patient-connection {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .connection-line {
    width: 100%;
  }

  .connection-line svg {
    transform: rotate(90deg);
  }

  .patient-app-visual {
    min-height: 520px;
  }

  .patient-phone {
    width: min(285px, 78vw);
  }

  .app-preview-label {
    top: 25px;
    left: 0;
  }

  .app-preview-note {
    right: 0;
    bottom: 20px;
  }

  .patient-app-vision {
    margin-top: 55px;
  }

}

/* =========================================================
   GLOBAL SITE WIDTH
   ========================================================= */

.container,
.nav-wrap,
.footer-container,
.footer-main {
  width: min(1400px, calc(100% - 48px)) !important;
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Mobile */
@media (max-width: 700px) {
  .container,
  .nav-wrap,
  .footer-container,
  .footer-main {
    width: 100% !important;
    max-width: 100% !important;

    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

.footer-follow {
  margin-top: 22px;
}

.footer-follow-label {
  display: block;

  margin-bottom: 10px;

  color: var(--text-muted, #7f8d92);

  font-size: .7rem;

  font-weight: 700;

  letter-spacing: .04em;
}


.footer-socials {
  display: flex;

  align-items: center;

  gap: 8px;
}


.footer-social-link {
  width: 38px;

  height: 38px;

  display: inline-flex;

  align-items: center;

  justify-content: center;

  border: 1px solid rgba(255, 255, 255, .10);

  border-radius: 8px;

  background: rgba(255, 255, 255, .025);

  color: #9ba8ac;

  text-decoration: none;

  transition:
    color .2s ease,
    border-color .2s ease,
    background .2s ease,
    transform .2s ease;
}


.footer-social-link:hover,
.footer-social-link:focus-visible {
  color: #00cccc;

  border-color: rgba(0, 204, 204, .30);

  background: rgba(0, 204, 204, .07);

  transform: translateY(-1px);

  outline: none;
}