/* ============================================================
   Aura Chiro — Marketing Site
   ============================================================ */

:root {
  /* Aura Chiro blue palette */
  --gold: #2563EB;          /* primary brand blue */
  --orange: #06B6D4;        /* cyan accent */
  --orange-light: #93C5FD;  /* light blue */
  --cream: #E8F1FF;         /* pale blue tint */
  --red: #ED3337;           /* alert red */
  --indigo: #2563EB;        /* gradient start (legacy name) */
  --violet: #1D4ED8;        /* readable text accent (deep blue) */
  --teal: #2563EB;          /* decorative accent = blue (legacy name) */
  --ink: #0F1B33;           /* navy near-black (headings/text) */
  --ink-2: #33415C;         /* slate body text */
  --muted: #64748B;         /* slate muted */
  --line: #E3E9F2;          /* cool hairline */
  --bg: #ffffff;
  --bg-alt: #F4F7FD;        /* cool off-white */
  --bg-dark: #0C1428;       /* navy band */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 10px rgba(15, 27, 51, 0.06);
  --shadow: 0 18px 50px rgba(15, 27, 51, 0.13);
  --shadow-lg: 0 30px 80px rgba(15, 27, 51, 0.22);
  --grad: linear-gradient(120deg, #2563EB 0%, #1D4ED8 55%, #1E40AF 100%);
  --grad-text: linear-gradient(120deg, #1D4ED8 0%, #2563EB 55%, #1E40AF 100%);
  --max: 1180px;
  --font: "Lato", system-ui, sans-serif;
  --font-body: "Lato", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand__text { font-family: var(--font); color: var(--ink); line-height: 1.15; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  background: rgba(37, 99, 235, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow--center { display: inline-block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(37, 99, 235, 0.34); background-size: 160% 160%; }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(37, 99, 235, 0.44); }
.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink-2); }
.btn--ghost:hover { color: var(--violet); }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--block { display: flex; width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 34px; height: 34px; }
.brand__text { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand__accent { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.nav__links { display: flex; align-items: center; gap: 20px; }
.nav__links > a:not(.btn) { font-weight: 600; font-size: 0.95rem; color: var(--ink-2); transition: color 0.15s ease; }
.nav__links > a:not(.btn):hover { color: var(--violet); }
.nav__login { padding: 9px 16px; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 80px 0 90px; }
.hero__glow {
  position: absolute; inset: -20% -10% auto -10%; height: 720px;
  background:
    radial-gradient(50% 50% at 20% 20%, rgba(37, 99, 235, 0.28), transparent 70%),
    radial-gradient(50% 50% at 85% 10%, rgba(6, 182, 212, 0.20), transparent 70%),
    radial-gradient(40% 40% at 60% 60%, rgba(219, 234, 254, 0.55), transparent 70%);
  z-index: -1;
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -0.025em; }
.hero__sub { font-size: 1.15rem; color: var(--muted); margin: 22px 0 30px; max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badges { list-style: none; display: flex; flex-wrap: wrap; gap: 20px; margin-top: 28px; color: var(--ink-2); font-weight: 600; font-size: 0.92rem; }

/* ---------- Hero mockup ---------- */
.hero__visual { position: relative; }

/* ---------- Hero screenshot (replaced the .mock div-built dashboard) ----------
   Same browser-chrome framing and 3D tilt as .mock so the hero keeps its look,
   but wrapping a real product screenshot. The .mock* rules below are now unused
   by index.html — kept only so the mockup can be restored if needed. */
.hero-shot {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden;
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.hero__visual:hover .hero-shot { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.hero-shot__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #f1f4fb; border-bottom: 1px solid var(--line); }
.hero-shot__bar > span { width: 11px; height: 11px; border-radius: 50%; background: #d3d9e6; }
.hero-shot__bar > span:nth-child(1){ background:#ff6058; }
.hero-shot__bar > span:nth-child(2){ background:#ffbe2f; }
.hero-shot__bar > span:nth-child(3){ background:#28c93f; }
/* The screenshot is mostly white, so a hairline keeps it from bleeding into the card. */
.hero-shot img { display: block; width: 100%; height: auto; background: #fff; }

.mock {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.hero__visual:hover .mock { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #f1f4fb; border-bottom: 1px solid var(--line); }
.mock__bar > span { width: 11px; height: 11px; border-radius: 50%; background: #d3d9e6; }
.mock__bar > span:nth-child(1){ background:#ff6058; } .mock__bar > span:nth-child(2){ background:#ffbe2f; } .mock__bar > span:nth-child(3){ background:#28c93f; }
.mock__url { margin-left: 12px; font-size: 0.72rem; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 4px 12px; }
.mock__body { display: grid; grid-template-columns: 64px 1fr; min-height: 320px; }
.mock__side { background: #0C1428; padding: 16px 12px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.mock__avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); }
.mock__nav { width: 34px; height: 10px; border-radius: 6px; background: rgba(255,255,255,0.14); }
.mock__nav--active { background: var(--teal); }
.mock__main { padding: 18px; display: flex; flex-direction: column; gap: 14px; background: #fbfcff; }
.mock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.mock__card--accent { background: var(--grad); border: none; color: #fff; }
.mock__label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.8; }
.mock__big { font-family: var(--font); font-weight: 800; font-size: 1.5rem; color: var(--ink); }
.mock__card--accent .mock__big { color: #fff; }
.mock__sub { font-size: 0.62rem; opacity: 0.85; }
.mock__panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.mock__panel-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.mock__chip { font-size: 0.6rem; font-weight: 700; color: var(--violet); background: rgba(37,99,235,0.20); padding: 3px 8px; border-radius: 999px; }
.mock__lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.mock__lines i { height: 8px; border-radius: 6px; background: #eef1f8; display: block; }
.mock__spine { display: flex; gap: 6px; justify-content: center; }
.mock__spine span { width: 16px; height: 16px; border-radius: 5px; background: #e1e6f1; }
.mock__spine .hot { background: linear-gradient(135deg, #ff9a6c, #ff6058); }

.float-tag {
  position: absolute; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
  border-radius: 12px; padding: 10px 14px; font-size: 0.82rem; font-weight: 600; color: var(--ink-2);
  animation: floaty 4s ease-in-out infinite;
}
.float-tag b { color: var(--violet); }
.float-tag--1 { top: 8%; left: -26px; }
.float-tag--2 { bottom: 10%; right: -20px; animation-delay: 1.5s; }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-9px);} }

/* ---------- Trust ---------- */
.trust { padding: 30px 0 10px; }
.trust__lead { text-align: center; color: var(--muted); font-weight: 600; margin-bottom: 26px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 22px 10px; }
.stat__num { display: block; font-family: var(--font); font-weight: 900; font-size: clamp(1.8rem, 3.5vw, 2.6rem); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__label { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.stat__num--green { background: none; -webkit-text-fill-color: #16A34A; color: #16A34A; }
.stat--link { display: block; border-radius: var(--radius-sm); transition: background 0.15s ease, transform 0.15s ease; }
.stat--link:hover { background: rgba(37, 99, 235, 0.06); transform: translateY(-2px); }
#billing { scroll-margin-top: 92px; }

/* ---------- Today's Flow spotlight ---------- */
.flow {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  background:
    radial-gradient(60% 80% at 0% 0%, rgba(37, 99, 235, 0.12), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(6, 182, 212, 0.10), transparent 60%),
    var(--bg-alt);
}
.flow__inner { display: flex; flex-direction: column; align-items: center; gap: 40px; }
.flow__copy { max-width: 720px; text-align: center; }
.flow__copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 16px; }
.flow__copy p { color: var(--muted); margin-bottom: 22px; }
.flow__copy .checks { margin-bottom: 28px; text-align: left; display: inline-flex; }
.flow__visual { width: 100%; max-width: 980px; }

.flow-shot {
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden;
}
.flow-shot__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #f1f4fb; border-bottom: 1px solid var(--line); }
.flow-shot__bar > span { width: 11px; height: 11px; border-radius: 50%; background: #d3d9e6; }
.flow-shot__bar > span:nth-child(1){ background:#ff6058; } .flow-shot__bar > span:nth-child(2){ background:#ffbe2f; } .flow-shot__bar > span:nth-child(3){ background:#28c93f; }
.flow-shot img { display: block; width: 100%; height: auto; }

/* ---------- AI band ---------- */
.ai { position: relative; overflow: hidden; padding: 90px 0; background: var(--bg-dark); color: #fff; }
.ai__glow { position: absolute; inset: 0; background: radial-gradient(45% 60% at 12% 0%, rgba(37,99,235,0.32), transparent 60%), radial-gradient(45% 60% at 90% 100%, rgba(6,182,212,0.30), transparent 60%); z-index: 0; }
.ai__inner { position: relative; z-index: 1; }
.section__head--light h2 { color: #fff; }
.section__head--light p { color: rgba(255,255,255,0.78); }
.eyebrow--light { background: rgba(255,255,255,0.12); color: #fff; }
.ai__grid { max-width: 920px; margin: 0 auto; }
.ai-card { position: relative; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(6px); transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.ai-badge { position: absolute; top: 18px; right: 18px; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.03em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.ai-badge--now { background: rgba(22,163,74,0.22); color: #4ade80; }
.ai-badge--soon { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.62); }
.ai-card:hover { transform: translateY(-5px); border-color: rgba(37,99,235,0.6); background: rgba(255,255,255,0.08); }
.ai-card__icon { font-size: 1.5rem; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--grad); margin-bottom: 16px; }
.ai-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 8px; }
.ai-card p { color: rgba(255,255,255,0.74); font-size: 0.95rem; }
.ai__note { text-align: center; max-width: 680px; margin: 40px auto 0; color: rgba(255,255,255,0.6); font-size: 0.9rem; }

/* ---------- Grow: pipeline + billing panels ---------- */
.pipeline { display: flex; flex-direction: column; gap: 12px; }
.pipe { display: grid; grid-template-columns: 110px 1fr 34px; align-items: center; gap: 12px; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.pipe__bar { height: 14px; background: #eef1f8; border-radius: 999px; overflow: hidden; }
.pipe__bar i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.pipe b { text-align: right; font-family: var(--font); color: var(--ink); }
/* Billing trend chart */
.billing-chart { margin-bottom: 18px; }
.billing-chart svg { width: 100%; height: auto; display: block; }
.billing-legend { display: flex; gap: 18px; justify-content: flex-end; font-size: 0.74rem; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
.billing-legend span { display: inline-flex; align-items: center; gap: 6px; }
.billing-legend .sw { width: 13px; height: 3px; border-radius: 2px; display: inline-block; }
.sw--up { background: #16A34A; }
.sw--down { background: #ED3337; }
/* Lines/area/dots stay hidden until the section scrolls into view (.reveal.in),
   then run a continuous loop: draw left-to-right (collections climb, denials drop),
   hold, fade out, and repeat — so it keeps replaying while on screen. */
.billing-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.billing-area { opacity: 0; }
.billing-dot { opacity: 0; transform-box: fill-box; transform-origin: center; }
.reveal.in .billing-line--up   { animation: billing-up 6s ease-in-out infinite; }
.reveal.in .billing-line--down { animation: billing-down 6s ease-in-out infinite; }
.reveal.in .billing-area       { animation: billing-area-loop 6s ease-in-out infinite; }
.reveal.in .billing-dot        { animation: billing-dot-loop 6s ease-in-out infinite; }

@keyframes billing-up {
  0%   { stroke-dashoffset: 1; opacity: 0; }
  4%   { opacity: 1; }
  32%  { stroke-dashoffset: 0; }
  88%  { stroke-dashoffset: 0; opacity: 1; }
  96%  { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 1; opacity: 0; }
}
@keyframes billing-down {
  0%   { stroke-dashoffset: 1; opacity: 0; }
  10%  { opacity: 1; }
  38%  { stroke-dashoffset: 0; }
  88%  { stroke-dashoffset: 0; opacity: 1; }
  96%  { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 1; opacity: 0; }
}
@keyframes billing-area-loop {
  0%, 28% { opacity: 0; }
  46%     { opacity: 1; }
  88%     { opacity: 1; }
  96%, 100% { opacity: 0; }
}
@keyframes billing-dot-loop {
  0%, 36%   { opacity: 0; transform: scale(0); }
  46%       { opacity: 1; transform: scale(1); }
  88%       { opacity: 1; transform: scale(1); }
  95%, 100% { opacity: 0; transform: scale(0); }
}
@media (prefers-reduced-motion: reduce) {
  .billing-line { stroke-dashoffset: 0; }
  .billing-area, .billing-dot { opacity: 1; }
  .reveal.in .billing-line--up, .reveal.in .billing-line--down,
  .reveal.in .billing-area, .reveal.in .billing-dot { animation: none; }
}

.billing-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.billing-stat { background: #fafbff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.billing-stat b { display: block; font-family: var(--font); font-weight: 900; font-size: 1.5rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.billing-stat span { font-size: 0.78rem; color: var(--muted); font-weight: 600; }

/* ---------- Security & compliance ---------- */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 28px; }
.cert {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px;
  text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cert:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.cert__seal {
  width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font); font-weight: 900; font-size: 1rem; color: #fff;
  background: var(--grad); box-shadow: 0 10px 24px rgba(6, 182, 212, 0.32);
  border: 3px solid rgba(255, 255, 255, 0.7); outline: 2px solid var(--line);
}
.cert h3 { font-size: 1.05rem; margin-bottom: 8px; }
.cert p { color: var(--muted); font-size: 0.88rem; }

.secgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.secitem {
  display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.secitem__ic { font-size: 1.3rem; line-height: 1.2; flex-shrink: 0; }
.secitem b { display: block; color: var(--ink); font-family: var(--font); font-size: 0.98rem; }
.secitem span { color: var(--muted); font-size: 0.86rem; }
.sec-note { text-align: center; max-width: 680px; margin: 30px auto 0; color: var(--muted); font-size: 0.92rem; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 54px; }
.section__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -0.02em; }
.section__head p { color: var(--muted); font-size: 1.08rem; margin-top: 16px; }
.pricing-cadence-note { color: var(--violet); font-weight: 700; font-size: 0.95rem; margin-top: 6px; }

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Feature cards ---------- */
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.feature__icon { font-size: 1.7rem; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, rgba(37,99,235,0.18), rgba(6,182,212,0.14)); margin-bottom: 18px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Split modules ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 88px; }
.split:last-child { margin-bottom: 0; }
.split--reverse .split__media { order: 2; }
.split__copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.split__copy p { color: var(--muted); margin-bottom: 22px; }

.checks { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checks li { position: relative; padding-left: 32px; font-weight: 600; color: var(--ink-2); }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff;
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 900;
}
.checks--light li { color: rgba(255,255,255,0.92); }

/* Panel cards in modules */
.panel-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.panel-card__head { font-family: var(--font); font-weight: 700; color: var(--ink); margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.panel-card__foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.86rem; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot--green { background: #28c93f; box-shadow: 0 0 0 3px rgba(40,201,63,0.18); }

.macro-list { display: flex; flex-direction: column; gap: 10px; }
.macro { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; color: var(--ink-2); transition: 0.2s; }
.macro b { font-size: 0.78rem; color: var(--violet); }
.macro--on { background: rgba(37,99,235,0.12); border-color: rgba(37,99,235,0.5); }
.macro--on b { color: var(--violet); }

.bars { display: flex; flex-direction: column; gap: 14px; }
.bars__item { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: 12px; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); }
.bar { height: 12px; background: #eef1f8; border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.bar i.bar--warn { background: linear-gradient(135deg, #ffb547, #ff6058); }

.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 85%; padding: 11px 15px; border-radius: 16px; font-size: 0.88rem; line-height: 1.45; }
.bubble--in { background: #f1f4fb; color: var(--ink-2); border-bottom-left-radius: 4px; align-self: flex-start; }
.bubble--out { background: var(--grad); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; font-weight: 700; }

/* ---------- Specialties ---------- */
.spec { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 28px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.spec:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.spec__top { font-size: 2.4rem; margin-bottom: 14px; }

/* Animated spine emblem */
.spine-emblem { display: flex; justify-content: center; margin-bottom: 22px; }
.spine-emblem svg { height: 132px; width: auto; overflow: visible; }
.vert { transform-box: fill-box; transform-origin: center; opacity: 0.5; animation: spineWave 2.4s ease-in-out infinite; }
@keyframes spineWave {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; filter: drop-shadow(0 0 5px #22D3EE); }
}
@media (prefers-reduced-motion: reduce) {
  .vert { animation: none; opacity: 0.9; }
}
.spec h3 { font-size: 1.25rem; margin-bottom: 10px; }
.spec p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Compare table ---------- */
.compare { max-width: 880px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare__row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.compare__row:last-child { border-bottom: none; }
.compare__row--head { background: var(--bg-alt); }
.compare__feat, .compare__col { padding: 16px 20px; }
.compare__feat { font-weight: 600; color: var(--ink-2); }
.compare__col { text-align: center; font-weight: 700; color: var(--ink); }
.compare__col--us { background: rgba(37,99,235,0.10); color: var(--violet); font-size: 1.1rem; }
.compare__row--head .compare__col--us { font-family: var(--font); font-weight: 800; }
.compare__col--no { color: var(--muted); font-weight: 500; font-size: 0.9rem; }

/* ---------- Upgrade lockup (Medicfusion → Aura Chiro) ---------- */
.upgrade-lockup { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; margin: 0 auto 42px; }
.upgrade-lockup__logo-link { display: inline-flex; transition: opacity 0.15s ease, transform 0.15s ease; }
.upgrade-lockup__logo-link:hover { opacity: 0.85; transform: translateY(-1px); }
.upgrade-lockup__logo { height: 44px; width: auto; }
.upgrade-lockup__arrow { font-size: 1.9rem; color: var(--muted); font-weight: 300; }
.upgrade-lockup__product { font-family: var(--font); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.02em; color: var(--ink); }

/* ---------- Case studies ---------- */
.case-studies { align-items: stretch; }
.case-study {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 4px; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.case-study:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.case-study__icon { font-size: 1.5rem; margin-bottom: 10px; }
.case-study h3 { font-size: 1.08rem; margin-bottom: 6px; }
.case-study__sub { color: var(--muted); font-size: 0.9rem; line-height: 1.45; margin-bottom: 16px; flex: 1; }
.case-study__who { font-weight: 700; color: var(--ink); font-size: 0.92rem; display: flex; flex-direction: column; margin-bottom: 14px; }
.case-study__who span { font-weight: 500; color: var(--muted); font-size: 0.82rem; }
.case-study__link { font-weight: 700; color: var(--violet); font-size: 0.88rem; }
.case-studies__note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 28px; }

/* Footnote under the comparison table (free-migration asterisk). */
.compare__note { text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 18px; }
.compare__note sup { color: var(--violet); font-weight: 800; }
.compare__feat sup { color: var(--violet); font-weight: 800; }

/* ---------- Pricing ---------- */
.pricing { align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 28px; display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.plan:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.plan--featured { border: 2px solid var(--violet); box-shadow: var(--shadow); }
.plan__flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px; }
.plan__name { font-size: 1.3rem; margin-bottom: 12px; }
.plan__price { font-family: var(--font); font-weight: 800; font-size: 2.8rem; color: var(--ink); line-height: 1; }
.plan__price span { font-size: 1.4rem; vertical-align: super; }
.plan__price small { font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.plan__price--custom { font-size: 2rem; }
.plan__for { color: var(--muted); margin: 12px 0 22px; font-size: 0.95rem; }
.plan__list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.plan__list li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 0.95rem; }
.plan__list li::before { content: "✓"; position: absolute; left: 0; color: var(--violet); font-weight: 800; }

/* ---------- Real pricing layout ---------- */
.pricing2 { display: grid; gap: 24px; align-items: start; margin-bottom: 32px; max-width: 980px; margin-left: auto; margin-right: auto; }
/* Three plans now: Clinical Only, Billing Add-On, Integrated Clearinghouse. */
.pricing2--plans { grid-template-columns: repeat(3, 1fr); max-width: 1120px; margin-bottom: 24px; }
/* The clearinghouse card's name runs long, so keep headings from jumping height. */
.pricing2--plans .plan__name { min-height: 2.6em; display: flex; align-items: flex-end; }
/* "$50/month per billing provider" needs to wrap under the figure, not beside it. */
.pricing2--plans .plan__price small { display: block; margin-top: 6px; }
.plan__setup { margin: -6px 0 20px; color: var(--violet); font-weight: 700; font-size: 0.92rem; }
.plan__features { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 4px 0 20px; }
.plan__features li { position: relative; padding-left: 26px; font-size: 0.92rem; color: var(--ink-2); }
.plan__features li::before { content: "✓"; position: absolute; left: 0; color: var(--violet); font-weight: 800; }
.included { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 32px; max-width: 980px; margin: 0 auto 44px; }
.included h4 { font-size: 1.08rem; margin-bottom: 18px; color: var(--ink); }
.included__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 22px; }
.included__list li { position: relative; padding-left: 26px; font-size: 0.92rem; color: var(--ink-2); }
.included__list li::before { content: "✓"; position: absolute; left: 0; color: var(--violet); font-weight: 800; }
.included--strip { background: transparent; border: none; padding: 0 0 12px; text-align: center; }
.included--strip h4 { font-size: 0.92rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 16px; }
.included__list--row { grid-template-columns: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; }
.included__list--row li { padding-left: 24px; font-size: 0.88rem; }
.addons__title { text-align: center; font-size: 1.25rem; margin: 6px 0 24px; }
.addons { max-width: 980px; margin-left: auto; margin-right: auto; }
.addon { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; }
.addon h4 { font-size: 1rem; margin-bottom: 10px; }
.addon__price { font-family: var(--font); font-weight: 800; font-size: 1.45rem; color: var(--ink); }
.addon__price small { font-family: var(--font-body); font-size: 0.74rem; font-weight: 600; color: var(--muted); }
.addon p { margin-top: 10px; font-size: 0.8rem; color: var(--muted); line-height: 1.45; }
.pricing-note { max-width: 820px; margin: 34px auto 0; text-align: center; background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.28); border-radius: var(--radius-sm); padding: 15px 20px; font-weight: 600; color: var(--ink-2); }
/* Renamed from .plan__trial-note — there is no trial any more; this is just the
   small print under a plan card. */
.plan__note { font-size: 0.82rem; color: var(--muted); margin: -10px 0 20px; line-height: 1.4; }

/* ---------- Signup wizard modal ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.no-scroll { overflow: hidden; }

.signup-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(12, 20, 40, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.signup-modal.in { opacity: 1; }
.signup-modal[hidden] { display: none; }

.signup-modal__dialog {
  position: relative;
  width: 100%; max-width: 460px;
  max-height: 90vh; overflow-y: auto;
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 36px 32px 32px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}
.signup-modal.in .signup-modal__dialog { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .signup-modal, .signup-modal__dialog { transition: none; }
}

.signup-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: var(--bg-alt); color: var(--ink-2);
  font-size: 1.3rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.signup-modal__close:hover { background: var(--line); color: var(--ink); }

/* Progress indicator */
.signup-progress { display: flex; justify-content: space-between; margin-bottom: 28px; gap: 6px; }
.signup-progress__step {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--font); font-weight: 800; font-size: 0.82rem;
  color: var(--muted); position: relative;
}
.signup-progress__step::before {
  content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px;
  background: var(--line); z-index: 0;
}
.signup-progress__step:first-child::before { display: none; }
.signup-progress__step em {
  font-style: normal; font-family: var(--font-body); font-weight: 600; font-size: 0.68rem;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em;
}
.signup-progress__step::after {
  content: attr(data-step);
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: #fff; border: 2px solid var(--line); color: var(--muted);
  position: relative; z-index: 1; font-size: 0.78rem;
}
.signup-progress__step.is-active::after { border-color: var(--violet); color: var(--violet); background: rgba(37,99,235,0.1); }
.signup-progress__step.is-active { color: var(--violet); }
.signup-progress__step.is-done::after { border-color: var(--violet); background: var(--grad); color: #fff; content: "✓"; }
.signup-progress__step.is-done::before { background: var(--violet); }

/* Steps */
.signup-step__title { font-size: 1.3rem; margin-bottom: 6px; }
.signup-step__sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 22px; }
.signup-step__error {
  background: rgba(237, 51, 55, 0.08); border: 1px solid rgba(237, 51, 55, 0.3);
  color: #b3262a; border-radius: 10px; padding: 11px 14px; font-size: 0.86rem; font-weight: 600;
  margin-bottom: 16px;
}
.signup-step__fine { text-align: center; font-size: 0.85rem; color: var(--muted); margin-top: 16px; }
.signup-step__fine a { color: var(--violet); font-weight: 700; }
.signup-step__fine a[disabled] { pointer-events: none; opacity: 0.5; }
#su-resend-cooldown { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--muted); }

.field__hint { display: block; font-size: 0.78rem; color: var(--muted); margin-top: 2px; min-height: 1em; }
.field__hint--good { color: #18803a; font-weight: 600; }
.field__hint--bad { color: #b3262a; font-weight: 600; }
.link-btn { background: none; border: none; padding: 0; color: var(--violet); font-weight: 700; font-size: inherit; cursor: pointer; text-decoration: underline; }

.subdomain-field { display: flex; align-items: stretch; }
.subdomain-field input {
  border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: none; flex: 1; min-width: 0;
}
.subdomain-field__suffix {
  display: flex; align-items: center; padding: 0 12px;
  border: 1.5px solid var(--line); border-left: none; border-top-right-radius: 10px; border-bottom-right-radius: 10px;
  background: var(--bg-alt); color: var(--muted); font-size: 0.86rem; font-weight: 600; white-space: nowrap;
}

/* 6-digit code input */
.code-group { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.code-group.shake { animation: codeShake 0.4s ease; }
@keyframes codeShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-5px); }
  80% { transform: translateX(5px); }
}
@media (prefers-reduced-motion: reduce) {
  .code-group.shake { animation: none; }
}
.code-box {
  width: 46px; height: 56px; text-align: center; font-size: 1.4rem; font-weight: 800;
  font-family: var(--font); border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.code-box:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(37,99,235,0.28); }
.code-box.invalid { border-color: #ff6058; }

/* Billing cadence chooser (Step 3) */
.billing-cadence { border: none; margin: 0 0 20px; padding: 0; }
.billing-cadence__legend { font-size: 0.85rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; padding: 0; }
.cadence-options { display: flex; gap: 12px; }
.cadence-card {
  flex: 1; display: flex; flex-direction: column; gap: 4px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.cadence-card input { position: absolute; opacity: 0; pointer-events: none; }
.cadence-card:hover { border-color: var(--violet); }
.cadence-card:has(input:focus-visible) { outline: 2px solid var(--violet); outline-offset: 2px; }
.cadence-card.is-selected {
  border-color: var(--violet); background: rgba(37, 99, 235, 0.06);
  box-shadow: 0 0 0 1px var(--violet) inset;
}
.cadence-card__title { font-weight: 700; color: var(--ink); font-size: 0.94rem; }
.cadence-card.is-selected .cadence-card__title { color: var(--violet); }
.cadence-card__sub { font-size: 0.78rem; color: var(--muted); line-height: 1.4; }

@media (max-width: 560px) {
  .cadence-options { flex-direction: column; }
}

/* Terms checkbox */
.signup-terms {
  display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 20px;
  font-size: 0.85rem; color: var(--ink-2); line-height: 1.5; cursor: pointer;
}
.signup-terms input { margin-top: 3px; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--violet); }
.signup-terms a { color: var(--violet); font-weight: 700; }

/* Provisioning */
.provisioning { text-align: center; padding: 20px 0 6px; }
.provisioning h3 { font-size: 1.25rem; margin: 4px 0 8px; }
.provisioning p { color: var(--muted); font-size: 0.92rem; }
.provisioning__spinner {
  width: 52px; height: 52px; margin: 0 auto 22px;
  border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--violet);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .provisioning__spinner { animation: spin 2.4s linear infinite; }
}
.provisioning__status { font-weight: 700; color: var(--ink); font-size: 1rem; }
.provisioning__check {
  width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 1.6rem; font-weight: 900;
  display: grid; place-items: center;
}
.provisioning__check--wait { background: linear-gradient(135deg, #ffb547, #ff6058); font-size: 1.4rem; }
.provisioning--fail .btn { margin-top: 16px; }

@media (max-width: 560px) {
  .signup-modal { padding: 0; align-items: flex-end; }
  .signup-modal__dialog { max-width: none; width: 100%; border-radius: var(--radius) var(--radius) 0 0; max-height: 94vh; }
  .code-box { width: 40px; height: 50px; font-size: 1.2rem; }
}

/* ---------- CTA / Form ---------- */
.cta { position: relative; overflow: hidden; background: var(--bg-dark); color: #fff; padding: 90px 0; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 60% at 15% 0%, rgba(37,99,235,0.35), transparent 60%), radial-gradient(50% 60% at 90% 100%, rgba(6,182,212,0.32), transparent 60%); }
.cta__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.cta__copy .eyebrow { background: rgba(255,255,255,0.12); color: #fff; }
.cta__copy h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.cta__copy p { color: rgba(255,255,255,0.78); margin: 18px 0 26px; }

.demo-form { background: #fff; border-radius: 20px; padding: 32px; box-shadow: var(--shadow-lg); }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 0.82rem; font-weight: 700; color: var(--ink); }
.field input, .field select {
  font-family: var(--font-body); font-size: 0.95rem; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(37,99,235,0.28); }
.field input.invalid { border-color: #ff6058; }
.demo-form__fine { font-size: 0.76rem; color: var(--muted); text-align: center; margin-top: 14px; }
.form-success { margin-top: 18px; background: rgba(40,201,63,0.1); border: 1px solid rgba(40,201,63,0.4); color: #18803a; border-radius: 10px; padding: 14px 16px; font-weight: 600; font-size: 0.92rem; text-align: center; }

/* ---------- HubSpot embedded demo form ----------
   HubSpot ships its own stylesheet and owns the markup inside .hs-form-frame, so
   these rules only do two things: reserve height so the page doesn't jump when
   the embed loads, and nudge HubSpot's controls toward this site's type and
   input styling. Deliberately light-touch — HubSpot changes its class names
   without notice, so don't build anything load-bearing on them. */
.demo-form--embed { min-height: 520px; }
.demo-form--embed .hs-form-frame { font-family: var(--font-body); }

/* HubSpot's own reset can leave labels tiny; match the rest of the site. */
.demo-form--embed label { font-size: 0.82rem; font-weight: 700; color: var(--ink); }

.demo-form--embed input[type="text"],
.demo-form--embed input[type="email"],
.demo-form--embed input[type="tel"],
.demo-form--embed textarea,
.demo-form--embed select {
  font-family: var(--font-body); font-size: 0.95rem; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--ink); width: 100%; box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.demo-form--embed input:focus,
.demo-form--embed textarea:focus,
.demo-form--embed select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(37,99,235,0.28);
}

.demo-form--embed input[type="submit"],
.demo-form--embed button[type="submit"] {
  font-family: var(--font); font-weight: 700; font-size: 0.95rem;
  padding: 14px 22px; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--grad); color: #fff; cursor: pointer; width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.demo-form--embed input[type="submit"]:hover,
.demo-form--embed button[type="submit"]:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

@media (max-width: 560px) {
  .demo-form--embed { min-height: 620px; }
}

/* ---------- Footer ---------- */
.footer { background: #0A1020; color: rgba(255,255,255,0.7); padding: 64px 0 0; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 50px; padding-bottom: 48px; }
.footer__brand .brand__text { color: #fff; }
.footer__brand p { margin-top: 16px; font-size: 0.92rem; max-width: 340px; }
.footer__by { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.footer__by > span:first-child { font-size: 0.74rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.07em; font-weight: 600; }
.footer__mflogo { display: inline-flex; background: #fff; border-radius: 8px; padding: 8px 12px; transition: opacity 0.15s ease, transform 0.15s ease; }
.footer__mflogo:hover { opacity: 0.9; transform: translateY(-1px); }
.footer__mflogo img { height: 24px; width: auto; display: block; }
.footer__sub { margin-top: 16px; font-size: 0.82rem; color: rgba(255,255,255,0.55); }
.footer__sub a { color: rgba(255,255,255,0.8); text-decoration: underline; }
.footer__sub a:hover { color: var(--teal); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer__col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.footer__col a { display: block; font-size: 0.9rem; padding: 5px 0; color: rgba(255,255,255,0.65); transition: color 0.15s; }
.footer__col a:hover { color: var(--teal); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 22px 0; }
.footer__bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; }
.footer__legal a { color: rgba(255,255,255,0.65); }
.footer__legal a:hover { color: var(--teal); }

/* ---------- Reveal animation (progressive enhancement) ----------
   Content is visible by default. Only when JS is active (html.js) do we
   hide-then-reveal, so the page is never blank if JS/IO fails. */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Nav brand — Medicfusion wordmark
   ============================================================ */
.brand--mf { flex-shrink: 0; }
.brand__logo {
  height: 34px; width: auto; display: block;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.brand--mf:hover .brand__logo { opacity: 0.85; transform: translateY(-1px); }

/* ============================================================
   Hero lockup — Aura Chiro mark beside the upgrade eyebrow
   ============================================================ */
.hero__lockup {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 14px 18px; margin-bottom: 18px;
}
.hero__lockup-mark { display: inline-flex; align-items: center; gap: 10px; }
.hero__lockup-mark .brand__mark { width: 42px; height: 42px; flex-shrink: 0; }
.hero__lockup-name {
  font-family: var(--font); font-weight: 800; font-size: 1.55rem;
  letter-spacing: -0.02em; color: var(--ink); line-height: 1;
}
/* The eyebrow already ships with a bottom margin; the flex row owns spacing now. */
.hero__lockup .eyebrow { margin-bottom: 0; }

/* ============================================================
   About us
   ============================================================ */
.about__grid {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: 48px; align-items: start; max-width: 1060px; margin: 0 auto;
}
.about__copy p { color: var(--ink-2); font-size: 1.02rem; line-height: 1.7; margin-bottom: 18px; }
.about__copy p:last-child { margin-bottom: 0; }
.about__copy a { color: var(--violet); font-weight: 700; }
.about__copy a:hover { text-decoration: underline; }

.about__facts { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; }
.about__facts li {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--violet);
  border-radius: 12px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.about__facts li:hover { transform: translateX(3px); box-shadow: var(--shadow); }
.about__facts b { font-size: 0.98rem; color: var(--ink); }
.about__facts span { font-size: 0.88rem; color: var(--muted); line-height: 1.5; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  /* Three plan cards get cramped here — drop to two, third wraps below. */
  .pricing2--plans { grid-template-columns: repeat(2, 1fr); max-width: 760px; }
  .pricing2--plans .plan__name { min-height: 0; display: block; }
  .hero__inner, .cta__inner, .flow__inner { grid-template-columns: 1fr; gap: 44px; }
  .hero__visual { max-width: 480px; }
  .split, .split--reverse { grid-template-columns: 1fr; gap: 32px; }
  .split--reverse .split__media { order: 0; }
  .footer__inner { grid-template-columns: 1fr; gap: 36px; }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .secgrid { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

/* The nav gained an "About Us" link, so collapse to the hamburger earlier
   (1040px instead of 760px) to keep the links from crowding the logo. */
@media (max-width: 1040px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 20px 24px 28px; gap: 6px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-130%); transition: transform 0.3s ease; z-index: 90;
  }
  .nav__links.open { transform: none; }
  .nav__links > a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav__links .btn { margin-top: 8px; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 760px) {
  .grid--3, .grid--2, .grid--4 { grid-template-columns: 1fr; }
  .certs, .secgrid { grid-template-columns: 1fr; }
  .pricing2, .pricing2--plans { grid-template-columns: 1fr; }
  .included__list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .compare__row { grid-template-columns: 1.3fr 0.8fr 0.8fr; }
  .compare__feat, .compare__col { padding: 13px 12px; font-size: 0.85rem; }
  .float-tag { display: none; }

  .brand__logo { height: 28px; }
  .hero__lockup-mark .brand__mark { width: 34px; height: 34px; }
  .hero__lockup-name { font-size: 1.3rem; }
}
