/* styles.css — DataMed marketing site */

.tabnum { font-variant-numeric: tabular-nums; }
.sec-head-center { max-width: 760px; margin: 0 auto; text-align: center; }
.sec-head-center .eyebrow { margin: 0 auto; }

/* Icon badges (shared tone vars) */
.ibadge-brand  { --bd-bg: var(--grad);                 --bd-fg: #fff; }
.ibadge-teal   { --bd-bg: rgba(123,92,240,0.13);       --bd-fg: #5A3EC8; }
.ibadge-sky    { --bd-bg: rgba(22,67,126,0.13);       --bd-fg: var(--accent-ink); }
.ibadge-indigo { --bd-bg: rgba(92,108,242,0.13);       --bd-fg: #4A57D6; }
.ibadge {
  background: var(--bd-bg); color: var(--bd-fg);
  border-radius: 15px; display: grid; place-items: center; flex: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.ibadge-brand { box-shadow: var(--shadow-brand); }

/* ══════════════════ NAV ══════════════════ */
.nav-topbar { background: #fff; border-bottom: 1px solid var(--border); }
.nav-topbar-inner { display: flex; justify-content: flex-end; align-items: center; height: 34px; }
.nav-phone { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--ink); transition: color 160ms; }
.nav-phone svg { width: 15px; height: 15px; }
.nav-phone:hover { color: var(--accent-ink); }
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 800; transition: background 280ms var(--ease), box-shadow 280ms var(--ease), border-color 280ms var(--ease); border-bottom: 1px solid transparent; }
.nav-solid { background: rgba(255,255,255,0.82); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border-bottom-color: var(--border); box-shadow: 0 4px 24px -16px rgba(12,28,44,0.30); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a { font-family: var(--font-head); font-weight: 500; font-size: 14px; color: var(--ink-2); padding: 8px 11px; border-radius: 9px; transition: color 160ms, background 160ms; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); background: var(--mute); }
.nav-links a.active, .nav-mobile a.active { color: var(--accent-ink); background: var(--accent-soft); }
.nav-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-signin { font-family: var(--font-head); font-weight: 500; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.nav-signin:hover { color: var(--accent-ink); }
.nav-burger { display: none; color: var(--ink); width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center; border: 1px solid var(--border-strong); }
.nav-burger svg { width: 22px; height: 22px; }
.nav-mobile { display: none; }

.brand { display: flex; align-items: center; gap: 11px; }
.brand-tx { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: 0.16em; color: var(--ink); }
.brand-sub { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 500; }

/* ══════════════════ HERO ══════════════════ */
.hero { position: relative; padding: 150px 0 64px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; }
.orb-a { width: 520px; height: 520px; top: -160px; right: -80px; background: radial-gradient(circle, rgba(22,67,126,0.40), transparent 70%); }
.orb-b { width: 460px; height: 460px; top: 40px; left: -160px; background: radial-gradient(circle, rgba(123,92,240,0.30), transparent 70%); }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%); opacity: 0.5; }
.hero-inner { position: relative; z-index: 1; }
.hero-split .hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-centered .hero-inner { text-align: center; max-width: 880px; margin: 0 auto; }
.hero-centered .eyebrow { margin: 0 auto; }
.hero-h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 700; margin-top: 22px; letter-spacing: -0.03em; }
.hero-centered .hero-h1 { font-size: clamp(40px, 6vw, 72px); }
.hero-sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin-top: 22px; line-height: 1.55; max-width: 560px; }
.hero-centered .hero-sub { margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-centered .hero-cta { justify-content: center; }
.hero-trust { display: flex; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.hero-centered .hero-trust { justify-content: center; }
.trust-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.trust-chip svg { width: 16px; height: 16px; color: var(--success); flex: none; }

.hero-centered-visual { position: relative; z-index: 1; margin-top: 60px; display: flex; flex-direction: column; align-items: center; gap: 44px; }
.hero-centered-dash { width: 100%; max-width: 860px; }

/* Mini dashboard mock */
.mini-dash { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; transform: perspective(1600px) rotateY(-4deg) rotateX(2deg); transition: transform 500ms var(--ease); }
.hero-centered-dash .mini-dash, .mini-dash:hover { transform: none; }
.mini-top { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); background: var(--soft); }
.mini-dots { display: flex; gap: 6px; }
.mini-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.mini-dots span:nth-child(1){ background:#F0696E; } .mini-dots span:nth-child(2){ background:#F5BE4F; } .mini-dots span:nth-child(3){ background:#52C172; }
.mini-title { font-size: 12px; color: var(--faint); }
.mini-body { padding: 18px; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mini-kpi { background: var(--soft); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; }
.mk-l { font-size: 11.5px; color: var(--muted); }
.mk-v { font-size: 19px; font-weight: 700; font-family: var(--font-head); color: var(--ink); }
.mk-d { font-size: 11px; font-weight: 600; }
.mk-d.up { color: var(--success); } .mk-d.down { color: var(--danger); }
.mini-chart { margin-top: 14px; height: 150px; }
.chart-svg { width: 100%; height: 100%; }
.mini-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.mini-legend, .dpanel-legend { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.lg { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.lg.sky { background: var(--brand-sky); } .lg.teal { background: var(--brand-teal); }
.mini-legend .lg:not(:first-child) { margin-left: 10px; }
.dpanel-legend .lg:not(:first-child) { margin-left: 10px; }
.mini-live { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--success); font-weight: 500; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(14,163,113,0.5); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(14,163,113,0.45);} 70%{box-shadow:0 0 0 7px rgba(14,163,113,0);} 100%{box-shadow:0 0 0 0 rgba(14,163,113,0);} }

/* Pipeline strip */
.pipe { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; }
.pipe-node { display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; transform: translateY(14px); }
.pipe.in .pipe-node { opacity: 1; transform: none; transition: transform 600ms var(--ease); }
.pipe-ic { width: 60px; height: 60px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-md); display: grid; place-items: center; color: var(--accent-ink); }
.pipe-ic svg { width: 26px; height: 26px; }
.pipe-lb { font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pipe-link { width: 40px; height: 2px; position: relative; align-self: flex-start; margin-top: 30px; opacity: 0; }
.pipe.in .pipe-link { opacity: 1; }
.pipe-link span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--brand-sky), var(--brand-indigo)); border-radius: 2px; }
@media (max-width: 720px){ .pipe-link{ display:none; } .pipe{ gap: 18px; } }

/* ══════════════════ FEATURES ══════════════════ */
.features { background: #fff; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.fcard { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px; overflow: hidden; transition: transform 280ms var(--ease), box-shadow 280ms var(--ease), border-color 280ms var(--ease); }
.fcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--accent-border); }
.fcard-wide { grid-column: span 2; display: flex; flex-direction: column; }
.fcard .ibadge { margin-bottom: 20px; }
.fcard-t { font-size: 21px; font-weight: 700; margin-bottom: 11px; letter-spacing: -0.01em; }
.fcard-wide .fcard-t { font-size: 25px; }
.fcard-b { font-size: 15.5px; color: var(--muted); line-height: 1.6; }
.fcard-chips { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.fchip { font-size: 12.5px; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-border); padding: 6px 12px; border-radius: 999px; }
.fcard-glow { position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; background: var(--grad-soft); border-radius: 50%; opacity: 0; transition: opacity 320ms var(--ease); pointer-events: none; }
.fcard:hover .fcard-glow { opacity: 1; }

/* ══════════════════ LIFECYCLE ══════════════════ */
.lifecycle { background: var(--soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.lc { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; margin-top: 60px; align-items: start; }
.lc-rail { position: relative; display: flex; flex-direction: column; gap: 6px; }
.lc-rail-line { position: absolute; left: 26px; top: 28px; bottom: 28px; width: 2px; background: var(--border-strong); border-radius: 2px; }
.lc-rail-fill { width: 100%; background: var(--grad); border-radius: 2px; transition: height 600ms var(--ease); }
.lc-step { position: relative; display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: 14px; text-align: left; transition: background 200ms var(--ease); z-index: 1; }
.lc-step:hover { background: rgba(255,255,255,0.7); }
.lc-step.on { background: #fff; box-shadow: var(--shadow-md); }
.lc-node { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; background: #fff; border: 1px solid var(--border-strong); color: var(--faint); transition: all 260ms var(--ease); }
.lc-node svg { width: 20px; height: 20px; }
.lc-step.on .lc-node { background: var(--grad); color: #fff; border-color: transparent; box-shadow: var(--shadow-brand); }
.lc-step.done .lc-node { color: var(--success); border-color: var(--success); }
.lc-step-tx { display: flex; flex-direction: column; gap: 2px; }
.lc-step-code { font-size: 11px; font-weight: 500; color: var(--faint); letter-spacing: 0.06em; }
.lc-step.on .lc-step-code { color: var(--accent-ink); }
.lc-step-title { font-family: var(--font-head); font-size: 15.5px; font-weight: 600; color: var(--ink); }

.lc-stage { position: sticky; top: 100px; }
.lc-card { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 40px; box-shadow: var(--shadow-lg); animation: lcIn 460ms var(--ease); }
@keyframes lcIn { from { transform: translateY(14px) scale(0.99); } to { transform: none; } }
.lc-card-ic { width: 60px; height: 60px; border-radius: 17px; display: grid; place-items: center; background: var(--bd-bg); color: var(--bd-fg); margin-bottom: 22px; }
.lc-card-ic svg { width: 28px; height: 28px; }
.lc-card-code { font-size: 13px; font-weight: 500; color: var(--accent-ink); letter-spacing: 0.1em; }
.lc-card-title { font-size: 28px; font-weight: 700; margin: 8px 0 14px; }
.lc-card-body { font-size: 17px; color: var(--muted); line-height: 1.6; }
.lc-card-metric { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; padding: 16px 20px; background: var(--soft); border: 1px solid var(--border); border-radius: 14px; }
.lcm-l { font-size: 14px; color: var(--muted); }
.lcm-v { font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--ink); display: inline-flex; align-items: center; gap: 9px; }
.lcm-check { width: 22px; height: 22px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; }
.lcm-check svg { width: 14px; height: 14px; }
.lc-progress { display: flex; gap: 6px; margin-top: 24px; }
.lc-progress span { height: 4px; flex: 1; border-radius: 2px; background: var(--border-strong); transition: background 300ms; }
.lc-progress span.on { background: var(--grad); }

/* ══════════════════ DASHBOARD PREVIEW ══════════════════ */
.dashboard { background: #fff; }
.dash-frame { position: relative; margin-top: 56px; }
.dash-window { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; z-index: 1; }
.dash-chrome { display: flex; align-items: center; gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--border); background: var(--soft); }
.dash-url { font-size: 13px; color: var(--faint); flex: 1; }
.dash-range { display: flex; gap: 4px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.rg { font-family: var(--font-mono); font-size: 12px; color: var(--muted); padding: 6px 11px; border-radius: 7px; transition: all 180ms; }
.rg.on { background: var(--grad); color: #fff; }
.dash-grid { padding: 22px; display: grid; gap: 18px; }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px; transition: box-shadow 240ms, transform 240ms; }
.kpi:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.kpi-head { display: flex; align-items: center; justify-content: space-between; }
.kpi-l { font-size: 13px; color: var(--muted); }
.kpi-d { font-size: 12px; font-weight: 600; }
.kpi-d.up { color: var(--success); } .kpi-d.down { color: var(--danger); }
.kpi-v { font-family: var(--font-head); font-size: 27px; font-weight: 700; color: var(--ink); margin: 8px 0 10px; letter-spacing: -0.02em; }
.spark { width: 100%; height: 34px; display: block; }
.dash-main { display: grid; grid-template-columns: 1.7fr 1fr; gap: 18px; }
.dpanel { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
.dpanel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dpanel-t { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); }
.dpanel-sub { font-size: 12px; color: var(--faint); }
.dpanel-chart { height: 200px; }
.dpanel-area .dpanel-chart { height: 220px; }

/* Donut */
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut { width: 130px; height: 130px; flex: none; }
.donut-big { font-family: var(--font-head); font-weight: 700; font-size: 26px; fill: var(--ink); }
.donut-cap { font-size: 11px; fill: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.donut-legend { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.leg-row { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.leg-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.leg-label { color: var(--ink-2); flex: 1; }
.leg-val { font-family: var(--font-head); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Bars */
.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 168px 1fr; align-items: center; gap: 14px; }
.bar-name { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 12px; background: var(--mute); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--grad); border-radius: 999px; width: 0; transition: width 1100ms var(--ease); }
.dash-reflect { position: absolute; left: 8%; right: 8%; bottom: -36px; height: 60px; background: var(--grad); filter: blur(38px); opacity: 0.22; border-radius: 50%; z-index: 0; }

/* ══════════════════ STATUS CHECK ══════════════════ */
.statuscheck { background: var(--soft); border-top: 1px solid var(--border); }
.st-frame { position: relative; margin-top: 56px; }
.st-window { position: relative; z-index: 1; background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.st-chrome { display: flex; align-items: center; gap: 16px; padding: 15px 20px; border-bottom: 1px solid var(--border); background: var(--soft); flex-wrap: wrap; }
.st-title { font-size: 13px; color: var(--faint); }
.st-summary { display: flex; align-items: center; gap: 14px; margin-left: auto; flex-wrap: wrap; }
.st-sum { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.st-sum::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.st-sum-paid { color: var(--success); } .st-sum-paid::before { background: var(--success); }
.st-sum-pending { color: var(--warning); } .st-sum-pending::before { background: var(--warning); }
.st-sum-denied { color: var(--danger); } .st-sum-denied::before { background: var(--danger); }
.st-run { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: #fff; background: var(--grad); padding: 9px 15px; border-radius: 10px; box-shadow: var(--shadow-brand); transition: transform 160ms var(--ease), opacity 160ms; }
.st-run:hover:not(:disabled) { transform: translateY(-1px); }
.st-run:disabled { opacity: 0.7; cursor: default; }
.st-run svg { width: 15px; height: 15px; }

.st-table { width: 100%; }
.st-row { display: grid; grid-template-columns: 2.2fr 0.7fr 0.6fr 0.9fr 0.9fr 1.25fr 1fr; align-items: center; gap: 14px; padding: 15px 22px; border-bottom: 1px solid var(--border); transition: background 220ms var(--ease); }
.st-row:last-child { border-bottom: none; }
.st-head { background: #fff; border-bottom: 1px solid var(--border-strong); font-family: var(--font-head); font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); padding-top: 12px; padding-bottom: 12px; }
.st-r { text-align: right; }
.st-head .st-r { text-align: right; }
.st-row.is-checking { background: linear-gradient(90deg, rgba(22,67,126,0.07), transparent); }
.st-payer { font-size: 14.5px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-code { font-size: 13px; color: var(--muted); }
.st-row .st-r.mono { font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.st-paid { color: var(--success) !important; font-weight: 600; }
.st-status { display: flex; flex-direction: column; gap: 3px; }

.stbadge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); font-size: 12.5px; font-weight: 600; padding: 5px 11px 5px 9px; border-radius: 999px; width: fit-content; border: 1px solid transparent; }
.stbadge .stdot { width: 7px; height: 7px; border-radius: 50%; }
.stbadge-paid { color: var(--success); background: var(--success-soft); border-color: rgba(14,163,113,0.25); }
.stbadge-paid .stdot { background: var(--success); }
.stbadge-pending { color: #B5790E; background: var(--warning-soft); border-color: rgba(226,148,27,0.30); }
.stbadge-pending .stdot { background: var(--warning); }
.stbadge-denied { color: var(--danger); background: var(--danger-soft); border-color: rgba(225,70,104,0.25); }
.stbadge-denied .stdot { background: var(--danger); }
.stbadge-checking { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent-border); }
.stspin { width: 11px; height: 11px; border-radius: 50%; border: 2px solid rgba(22,67,126,0.30); border-top-color: var(--accent); animation: spin 0.7s linear infinite; }
.stspin-dark { border-color: rgba(255,255,255,0.45); border-top-color: #fff; }
.st-sub { font-size: 11px; color: var(--faint); }

.st-check { font-family: var(--font-head); font-weight: 600; font-size: 13px; color: var(--accent-ink); text-align: right; transition: color 150ms; }
.st-check:hover:not(:disabled) { color: var(--ink); }
.st-check:disabled { color: var(--faint); cursor: default; }

.st-foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--soft); flex-wrap: wrap; gap: 8px; }
.st-foot-r { font-size: 12px; color: var(--faint); }

@media (max-width: 860px) {
  .st-row { grid-template-columns: 1.6fr 0.7fr 0.9fr 1.2fr 0.9fr; }
  .st-row > :nth-child(3), .st-head > :nth-child(3) { display: none; } /* units */
  .st-row > :nth-child(5), .st-head > :nth-child(5) { display: none; } /* paid */
}
@media (max-width: 560px) {
  .st-row { grid-template-columns: 1.5fr 1.1fr 0.9fr; gap: 10px; padding: 13px 16px; }
  .st-row > :nth-child(2), .st-head > :nth-child(2) { display: none; } /* cpt */
  .st-row > :nth-child(4), .st-head > :nth-child(4) { display: none; } /* billed */
  .st-row > :nth-child(7), .st-head > :nth-child(7) { display: none; } /* action */
  .st-summary { width: 100%; }
}

/* ══════════════════ COMPARISON ══════════════════ */
.compare { background: var(--soft); border-top: 1px solid var(--border); }
.cmp-wrap { margin-top: 52px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: #fff; box-shadow: var(--shadow-md); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.cmp-table th, .cmp-table td { padding: 18px 20px; text-align: center; transition: background 200ms; }
.cmp-feat { text-align: left !important; font-size: 14.5px; color: var(--ink-2); font-weight: 500; width: 38%; }
thead .cmp-feat { width: 38%; }
.cmp-col { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--muted); vertical-align: bottom; border-bottom: 2px solid var(--border); }
.cmp-col span { display: block; }
.cmp-col.cmp-us { color: var(--ink); }
.cmp-badge { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--soft); margin: 0 auto 8px; box-shadow: inset 0 0 0 1px var(--border); }
.cmp-table tbody tr { border-top: 1px solid var(--border); }
.cmp-us { background: linear-gradient(180deg, rgba(22,67,126,0.05), rgba(92,108,242,0.04)); }
.cmp-table .hl:not(.cmp-us) { background: var(--soft); }
.cmp-cell { display: inline-grid; place-items: center; }
.cmp-cell.full { width: 30px; height: 30px; border-radius: 50%; background: var(--success-soft); color: var(--success); }
.cmp-cell.full svg { width: 18px; height: 18px; }
.cmp-cell.none { width: 30px; height: 30px; border-radius: 50%; background: rgba(100,120,136,0.10); color: var(--faint); }
.cmp-cell.none svg { width: 16px; height: 16px; }
.cmp-cell.partial { font-size: 12.5px; font-weight: 600; color: var(--warning); background: var(--warning-soft); padding: 5px 12px; border-radius: 999px; }

/* ══════════════════ SERVICES HERO (dark) ══════════════════ */
.svc-hero { background: var(--page); padding: 108px 0 40px; }
.svc-hero-h1 { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: clamp(34px, 4.6vw, 54px); line-height: 1.12; letter-spacing: -0.02em; max-width: 920px; margin: 20px 0 18px; }
.svc-hero-h1 em { font-family: "Source Serif 4", Georgia, "Times New Roman", serif; font-style: italic; font-weight: 600; color: var(--brand-teal); }
.svc-hero-sub { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 620px; margin: 0 0 30px; }
@media (max-width: 720px) {
  .svc-hero { padding: 88px 0 56px; }
  .svc-hero-sub { font-size: 16px; }
}

/* ══════════════════ SERVICES TILE GRID ══════════════════ */
.svc-grid-sec { background: var(--soft); padding: 60px 0 68px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-tile { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 26px 26px 58px; box-shadow: 0 10px 30px rgba(12,28,44,0.06); }
.svc-tile-ic { display: block; font-size: 26px; line-height: 1; margin-bottom: 14px; }
.svc-tile-t { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--accent); margin: 0 0 8px; }
.svc-tile-b { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.svc-tile-link { position: absolute; left: 26px; bottom: 22px; font-size: 14px; font-weight: 600; color: var(--accent); transition: color 160ms; }
.svc-tile-link:hover { color: var(--accent-ink); }
@media (max-width: 900px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }

/* ══════════════════ HERO METRICS GRID ══════════════════ */
.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.metric-card {
  position: relative; overflow: hidden;
  background:
    linear-gradient(rgba(12,28,44,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12,28,44,0.045) 1px, transparent 1px),
    var(--soft);
  background-size: 26px 26px, 26px 26px, cover;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px 13px;
}
.metric-value { display: block; font-family: "Source Serif 4", Georgia, "Times New Roman", serif; font-size: 26px; font-weight: 600; line-height: 1.05; color: var(--accent); margin-bottom: 4px; }
.metric-emph .metric-value { color: var(--brand-teal); }
.metric-label { display: block; font-size: 11.5px; line-height: 1.35; color: var(--muted); }

/* compact the mini dashboard so dashboard + metrics fit the original column */
.hero-visual .mini-top { padding: 8px 14px; }
.hero-visual .mini-body { padding: 12px; }
.hero-visual .mini-kpi { padding: 8px 10px; }
.hero-visual .mk-v { font-size: 16px; }
.hero-visual .mini-chart { height: 92px; margin-top: 10px; }
.hero-visual .mini-foot { margin-top: 8px; }
@media (max-width: 480px) {
  .metrics-grid { grid-template-columns: 1fr; }
}

/* ══════════════════ OUR SOLUTIONS ══════════════════ */
.sol-pillar { margin-top: 64px; }
.sol-pillar-t { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 14px; margin: 0; }
.sol-pillar-num { font-size: 13px; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-border); padding: 4px 11px; border-radius: 999px; }
.sol-pillar-sub { color: var(--muted); margin: 10px 0 28px; max-width: 720px; font-size: 16.5px; line-height: 1.65; }

/* ══════════════════ SECURITY (dark) ══════════════════ */
.security { background: radial-gradient(ellipse 90% 70% at 80% 0%, #16314A 0%, #0C1C2C 60%); color: #fff; }
.sec-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.eyebrow.eyebrow-light { color: #A9C2EE; background: rgba(255,255,255,0.06); border-color: rgba(169,194,238,0.35); }
.eyebrow.eyebrow-light .dot { background: #A9C2EE; }
.sec-title-light { color: #fff; }
.sec-sub-light { color: #9FB4C6; }
.sec-cards { display: flex; flex-direction: column; gap: 16px; }
.sec-card { display: flex; gap: 18px; align-items: flex-start; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09); border-radius: 18px; padding: 22px 24px; transition: background 240ms, border-color 240ms, transform 240ms; }
.sec-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(22,67,126,0.34); transform: translateX(4px); }
.sec-card-ic { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--shadow-brand); }
.sec-card-ic svg { width: 23px; height: 23px; }
.sec-card-t { font-size: 18px; color: #fff; margin-bottom: 5px; }
.sec-card-b { font-size: 14.5px; color: #9FB4C6; line-height: 1.55; }

/* ══════════════════ CTA ══════════════════ */
.cta { background: #fff; }
.cta-card { position: relative; border-radius: var(--r-xl); overflow: hidden; background: linear-gradient(135deg, #0C1C2C, #14304A); box-shadow: var(--shadow-lg); }
.cta-bg { position: absolute; inset: 0; overflow: hidden; }
.cta-orb { position: absolute; width: 420px; height: 420px; border-radius: 50%; filter: blur(70px); opacity: 0.55; background: radial-gradient(circle, rgba(22,67,126,0.6), transparent 70%); top: -160px; left: -100px; }
.cta-orb-2 { background: radial-gradient(circle, rgba(92,108,242,0.55), transparent 70%); top: auto; bottom: -180px; left: auto; right: -120px; }
.cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 0.9fr; gap: 48px; padding: 56px; align-items: center; }
.cta-copy .eyebrow { margin-bottom: 22px; }
.cta-title { font-size: clamp(28px, 3.4vw, 40px); color: #fff; letter-spacing: -0.02em; }
.cta-sub { font-size: 17px; color: #A9BED0; margin-top: 16px; line-height: 1.55; }
.cta-list { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 13px; }
.cta-list li { display: flex; align-items: flex-start; gap: 12px; color: #D6E2EC; font-size: 15px; }
.cta-tick { width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; flex: none; margin-top: 1px; }
.cta-tick svg { width: 14px; height: 14px; }

.cta-form-wrap { background: #fff; border-radius: var(--r-lg); padding: 32px; box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4); }
.cta-form-t { font-size: 21px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input { font-family: var(--font-body); font-size: 15.5px; color: var(--ink); padding: 13px 15px; border: 1px solid var(--border-strong); border-radius: 11px; transition: border-color 180ms, box-shadow 180ms; outline: none; background: var(--soft); }
.field input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: #fff; }
.field.bad input { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-soft); }
.field-err { font-style: normal; font-size: 12.5px; color: var(--danger); }
.cta-submit { width: 100%; margin-top: 6px; }
.cta-fine { font-size: 12px; color: var(--faint); text-align: center; margin-top: 14px; }
.cta-done { text-align: center; padding: 20px 8px; animation: lcIn 400ms var(--ease); }
.cta-done-ic { width: 60px; height: 60px; border-radius: 50%; background: var(--success-soft); color: var(--success); display: grid; place-items: center; margin: 0 auto 18px; }
.cta-done-ic svg { width: 32px; height: 32px; }
.cta-done h3 { font-size: 22px; margin-bottom: 10px; }
.cta-done p { font-size: 15px; color: var(--muted); margin-bottom: 22px; }

/* ══════════════════ FOOTER ══════════════════ */
.footer { background: #0C1C2C; color: #9FB4C6; padding: 64px 0 30px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer .brand-name { color: #fff; }
.footer-tag { margin-top: 16px; font-size: 14.5px; color: #7F94A6; max-width: 280px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-h { font-family: var(--font-head); font-size: 13px; font-weight: 600; color: #fff; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.footer-col a { font-size: 14.5px; color: #9FB4C6; transition: color 160ms; }
.footer-col a:hover { color: #9FC0EA; }
.footer-base { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; font-size: 13px; color: #6B8194; }

/* ══════════════════ RESPONSIVE ══════════════════ */
@media (max-width: 1000px) {
  .hero-split .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 560px; }
  .lc { grid-template-columns: 1fr; gap: 32px; }
  .lc-stage { position: static; }
  .sec-inner, .cta-grid { grid-template-columns: 1fr; }
  .dash-main { grid-template-columns: 1fr; }
  .cta-grid { padding: 40px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav-links, .nav-signin { display: none; }
  .nav-burger { display: flex; }
  .nav-mobile { display: flex; flex-direction: column; gap: 4px; padding: 12px 28px 20px; background: rgba(255,255,255,0.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
  .nav-mobile a { padding: 12px; font-family: var(--font-head); font-weight: 500; color: var(--ink-2); border-radius: 9px; }
  .nav-mobile a:hover { background: var(--mute); }
  .nav-mobile-cta { color: #fff !important; background: var(--grad); text-align: center; }
  .bento { grid-template-columns: 1fr; }
  .fcard-wide { grid-column: span 1; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .sec-pad { padding: 80px 0; }
  .hero { padding: 120px 0 70px; }
}
@media (max-width: 768px) {
  .nav-inner { height: 58px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 8px 13px; font-size: 13px; }
  .nav-burger { width: 36px; height: 36px; }
  .nav-burger svg { width: 19px; height: 19px; }
}

@media (max-width: 540px) {
  .wrap { padding: 0 18px; }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .bar-row { grid-template-columns: 120px 1fr; }
  .cta-form-wrap { padding: 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-base { flex-direction: column; gap: 8px; text-align: center; }
}

/* ───────────────────────── AUTOMATED REPORTING ───────────────────────── */
.reporting { background: linear-gradient(180deg, var(--page) 0%, var(--soft) 100%); }
.rpt-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 28px; align-items: start; margin-top: 56px; }

/* Config card */
.rpt-config { background: var(--card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 26px; }
.rpt-config-head { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.rpt-config-head h3 { font-size: 19px; }
.rpt-cfg-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px; color: #fff; background: var(--grad); box-shadow: var(--shadow-brand); }
.rpt-cfg-ic svg { width: 20px; height: 20px; }

.rpt-field { padding: 18px 0; border-top: 1px solid var(--border); }
.rpt-field:first-of-type { border-top: none; padding-top: 0; }
.rpt-field-l { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--ink); margin-bottom: 12px; }
.rpt-field-l svg { width: 16px; height: 16px; color: var(--accent); }
.rpt-field-hint { display: block; margin-top: 9px; font-size: 12px; color: var(--muted); }

/* Segmented control (frequency) */
.rpt-seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--mute); border-radius: 12px; }
.rpt-seg-btn { padding: 9px 16px; border-radius: 9px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--muted); transition: all 180ms var(--ease); }
.rpt-seg-btn:hover { color: var(--ink-2); }
.rpt-seg-btn.on { color: #fff; background: var(--grad); box-shadow: var(--shadow-sm); }

/* Stepper (recipients) */
.rpt-stepper { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border-strong); border-radius: 12px; padding: 4px; background: var(--page); }
.rpt-stepper button { width: 34px; height: 34px; border-radius: 9px; font-size: 20px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); display: grid; place-items: center; transition: all 160ms var(--ease); }
.rpt-stepper button:hover { background: var(--grad); color: #fff; }
.rpt-stepper-v { min-width: 118px; text-align: center; font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--ink); }

/* Section toggles */
.rpt-blocks { display: flex; flex-direction: column; gap: 9px; }
.rpt-block { display: flex; align-items: center; gap: 13px; width: 100%; text-align: left; padding: 13px 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--page); transition: all 180ms var(--ease); }
.rpt-block:hover { border-color: var(--accent-border); box-shadow: var(--shadow-sm); }
.rpt-block.on { border-color: var(--accent-border); background: var(--accent-soft); }
.rpt-block-ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--muted); background: var(--mute); transition: all 180ms var(--ease); }
.rpt-block-ic svg { width: 18px; height: 18px; }
.rpt-block.on .rpt-block-ic { color: #fff; background: var(--grad); }
.rpt-block-tx { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.rpt-block-t { font-family: var(--font-head); font-weight: 600; font-size: 14.5px; color: var(--ink); }
.rpt-block-d { font-size: 12.5px; color: var(--muted); }
.rpt-switch { flex: none; width: 40px; height: 23px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background 200ms var(--ease); }
.rpt-switch span { position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform 200ms var(--ease); }
.rpt-switch.on { background: var(--accent); }
.rpt-switch.on span { transform: translateX(17px); }

.rpt-config-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--muted); }

/* Email preview */
.rpt-preview { position: relative; }
.rpt-mail { background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.rpt-mail-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--soft); }
.rpt-mail-folder { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.rpt-mail-folder svg { width: 14px; height: 14px; }
.rpt-mail-head { display: flex; gap: 13px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.rpt-avatar { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--grad-soft); border: 1px solid var(--accent-border); }
.rpt-mail-meta { flex: 1; min-width: 0; }
.rpt-mail-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.rpt-from { font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.rpt-time { font-size: 11.5px; color: var(--faint); }
.rpt-subject { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); margin-top: 3px; }
.rpt-to { font-size: 11.5px; color: var(--muted); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpt-mail-body { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 14px; }

.rpt-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rpt-kpi { padding: 12px; border: 1px solid var(--border); border-radius: 13px; background: var(--soft); display: flex; flex-direction: column; gap: 3px; }
.rpt-kpi-l { font-size: 11.5px; color: var(--muted); }
.rpt-kpi-v { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--ink); letter-spacing: -0.02em; }
.rpt-kpi-d { font-size: 11.5px; font-weight: 600; }
.rpt-kpi-d.up { color: var(--success); }

.rpt-line { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.45; }
.rpt-line-warn { background: var(--warning-soft); border: 1px solid rgba(226,148,27,0.28); color: var(--ink-2); }
.rpt-line-ic { flex: none; width: 22px; height: 22px; color: var(--warning); }
.rpt-line-ic svg { width: 20px; height: 20px; }
.rpt-link { color: var(--accent-ink); font-weight: 600; white-space: nowrap; }

.rpt-block-h { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.rpt-aging, .rpt-payers { padding: 14px; border: 1px solid var(--border); border-radius: 13px; background: var(--page); }
.rpt-bars { display: flex; flex-direction: column; gap: 8px; }
.rpt-bar-row { display: grid; grid-template-columns: 52px 1fr 40px; align-items: center; gap: 10px; }
.rpt-bar-l { font-size: 11.5px; color: var(--muted); }
.rpt-bar-track { height: 8px; border-radius: 999px; background: var(--mute); overflow: hidden; }
.rpt-bar-fill { display: block; height: 100%; border-radius: 999px; transition: width 600ms var(--ease); }
.rpt-bar-fill.teal { background: var(--brand-teal); }
.rpt-bar-fill.sky { background: var(--brand-sky); }
.rpt-bar-fill.indigo { background: var(--brand-indigo); }
.rpt-bar-fill.warn { background: var(--warning); }
.rpt-bar-v { font-size: 11.5px; color: var(--ink-2); text-align: right; }

.rpt-payer-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); }
.rpt-payer-row:first-of-type { border-top: none; }
.rpt-payer-n { font-size: 13px; color: var(--ink-2); }
.rpt-payer-amt { font-size: 13px; font-weight: 600; color: var(--ink); }
.rpt-payer-rate { font-size: 11.5px; color: var(--success); }

.rpt-empty { padding: 28px 14px; text-align: center; font-size: 13.5px; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: 13px; }
.rpt-mail-foot { font-size: 11px; color: var(--faint); text-align: center; padding-top: 4px; }

/* Benefits */
.rpt-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.rpt-benefit { padding: 24px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow-sm); transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); }
.rpt-benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.rpt-benefit-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-border); margin-bottom: 16px; }
.rpt-benefit-ic svg { width: 22px; height: 22px; }
.rpt-benefit-t { font-size: 16px; margin-bottom: 8px; }
.rpt-benefit-b { font-size: 14px; color: var(--muted); line-height: 1.55; }

@media (max-width: 920px) {
  .rpt-grid { grid-template-columns: 1fr; }
  .rpt-benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-inner { height: 58px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 8px 13px; font-size: 13px; }
  .nav-burger { width: 36px; height: 36px; }
  .nav-burger svg { width: 19px; height: 19px; }
}

@media (max-width: 540px) {
  .rpt-kpis { grid-template-columns: 1fr; }
  .rpt-benefits { grid-template-columns: 1fr; }
  .rpt-stepper-v { min-width: 90px; }
}

/* ───────────────────────── PATIENT INVOICING (QuickBooks) ───────────────────────── */
.invoicing { background: var(--page); }
.inv-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 36px; align-items: center; margin-top: 56px; }

/* Flow steps */
.inv-flow { display: flex; flex-direction: column; }
.inv-step { display: flex; gap: 16px; }
.inv-step-rail { display: flex; flex-direction: column; align-items: center; flex: none; }
.inv-step-node { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: var(--grad); box-shadow: var(--shadow-brand); }
.inv-step-node svg { width: 21px; height: 21px; }
.inv-step-line { flex: 1; width: 2px; min-height: 26px; margin: 6px 0; background: linear-gradient(var(--accent-border), var(--border)); }
.inv-step-tx { padding-bottom: 26px; }
.inv-step:last-child .inv-step-tx { padding-bottom: 0; }
.inv-step-num { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 4px; }
.inv-step-t { font-size: 16.5px; margin-bottom: 5px; }
.inv-step-b { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* Invoice document */
.inv-preview { position: relative; }
.inv-doc { background: var(--card); border: 1px solid var(--border-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.inv-doc-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--soft); }
.inv-doc-app { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); flex: 1; }
.inv-doc-app svg { width: 14px; height: 14px; }
.inv-synced { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--success); }
.inv-doc-head { display: flex; justify-content: space-between; gap: 20px; padding: 20px; border-bottom: 1px solid var(--border); }
.inv-doc-label { display: block; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }
.inv-doc-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink); }
.inv-doc-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.inv-doc-due { text-align: right; }
.inv-doc-amt { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--ink); letter-spacing: -0.02em; }
.inv-doc-terms { font-size: 11px; color: var(--faint); margin-top: 2px; }

.inv-table { padding: 6px 20px; }
.inv-row { display: grid; grid-template-columns: 1.7fr 0.8fr 0.9fr 0.8fr; align-items: center; gap: 8px; padding: 11px 0; border-top: 1px solid var(--border); }
.inv-row-head { border-top: none; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); padding-bottom: 6px; }
.inv-r { text-align: right; }
.inv-desc { font-size: 13px; color: var(--ink-2); }
.inv-row .mono { font-size: 13px; color: var(--ink); }
.inv-ins { color: var(--success) !important; }
.inv-pat { font-weight: 600; }

.inv-totals { padding: 14px 20px 18px; background: var(--soft); border-top: 1px solid var(--border); }
.inv-total-row { display: flex; justify-content: space-between; align-items: center; padding: 4px 0; font-size: 13px; color: var(--muted); }
.inv-total-row .mono { color: var(--ink-2); }
.inv-total-due { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--border-strong); font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--ink); }
.inv-total-due .mono { font-weight: 700; color: var(--ink); }
.inv-doc-foot { padding: 12px 20px; font-size: 11px; color: var(--faint); text-align: center; border-top: 1px solid var(--border); }

/* Benefits */
.inv-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.inv-benefit { padding: 24px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--card); box-shadow: var(--shadow-sm); transition: transform 220ms var(--ease), box-shadow 220ms var(--ease); }
.inv-benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.inv-benefit-ic { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-border); margin-bottom: 16px; }
.inv-benefit-ic svg { width: 22px; height: 22px; }
.inv-benefit-t { font-size: 16px; margin-bottom: 8px; }
.inv-benefit-b { font-size: 14px; color: var(--muted); line-height: 1.55; }

@media (max-width: 920px) {
  .inv-grid { grid-template-columns: 1fr; gap: 28px; }
  .inv-benefits { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-inner { height: 58px; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 8px 13px; font-size: 13px; }
  .nav-burger { width: 36px; height: 36px; }
  .nav-burger svg { width: 19px; height: 19px; }
}

@media (max-width: 540px) {
  .inv-benefits { grid-template-columns: 1fr; }
  .inv-doc-amt { font-size: 22px; }
  .inv-row { grid-template-columns: 1.4fr 0.9fr 0.9fr; }
  .inv-row .inv-r:nth-child(3) { display: none; }
  .inv-row-head span:nth-child(3) { display: none; }
}