/* =============================================================
   HELIX BILLING — Design System
   Fonts: Bricolage Grotesque (display) · Manrope (body) · JetBrains Mono (data)
   Palette: derived from the Helix Billing logo — navy / azure / cyan
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Core brand — sampled from logo */
  --helix-navy:   #0F1A38;
  --helix-blue:   #0A6FE0;
  --helix-blue-2: #0858C4;
  --helix-teal:   #29B6F0;
  --helix-teal-2: #50E2FF;

  /* Surfaces */
  --bg:          #FFFFFF;
  --bg-soft:     #F2F7FC;
  --bg-deep:     #07122B;
  --glass:       rgba(255, 255, 255, 0.65);
  --glass-strong:rgba(255, 255, 255, 0.85);
  --stroke:      rgba(15, 26, 56, 0.08);
  --stroke-2:    rgba(15, 26, 56, 0.14);

  /* State + text */
  --success:    #16B364;
  --warning:    #F5A524;
  --danger:     #E5484D;
  --text:       #0F1A38;
  --text-muted: #586277;
  --text-dim:   #818EA8;
  --on-dark:    #E9F1FB;
  --on-dark-muted: #9BB0CC;

  /* Gradients */
  --grad-hero:  linear-gradient(135deg, #0A6FE0 0%, #50E2FF 100%);
  --grad-teal:  linear-gradient(135deg, #29B6F0 0%, #50E2FF 100%);
  --grad-ink:   linear-gradient(160deg, #0F1A38 0%, #07122B 100%);
  --grad-text:  linear-gradient(100deg, #0A6FE0 0%, #2CC4F5 55%, #50E2FF 100%);

  /* Typography */
  --font-display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --font-body:    "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* Radii + shadow */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(10,37,64,.06), 0 2px 6px rgba(10,37,64,.05);
  --shadow-md: 0 8px 24px rgba(10,37,64,.08), 0 2px 8px rgba(10,37,64,.04);
  --shadow-lg: 0 24px 60px rgba(10,37,64,.14), 0 8px 24px rgba(10,37,64,.08);
  --shadow-glow: 0 18px 50px rgba(10,111,224,.28);

  /* Layout */
  --maxw: 1200px;
  --gut: clamp(20px, 5vw, 64px);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--helix-blue); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 3px solid var(--helix-blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--helix-navy);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.3rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; letter-spacing: -0.02em; }
p  { color: var(--text-muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--helix-blue);
  display: inline-flex;
  align-items: center;
  gap: .55em;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px;
  background: var(--grad-hero); border-radius: 2px;
}
.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--text-muted); line-height: 1.6; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section--soft { background: var(--bg-soft); }
.section--ink { background: var(--grad-ink); color: var(--on-dark); }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--ink p { color: var(--on-dark-muted); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: .5rem 0 .8rem; }

.grid { display: grid; gap: 24px; }
@media (min-width: 720px){ .grid-2 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 720px){ .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 980px){ .grid-3 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 720px){ .grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 980px){ .grid-4 { grid-template-columns: repeat(4,1fr); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-body); font-weight: 700; font-size: .98rem;
  letter-spacing: -0.01em; padding: 14px 26px; border-radius: var(--r-pill);
  border: 1px solid transparent; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--helix-blue); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 56px rgba(10,111,224,.4); background: var(--helix-blue-2); }
.btn-ghost { background: transparent; color: var(--helix-navy); border-color: var(--stroke-2); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--helix-blue); color: var(--helix-blue); background: rgba(10,111,224,.04); }
.btn-teal { background: var(--grad-teal); color: var(--helix-navy); }
.btn-teal:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(41,182,240,.4); }
.btn-light { background: #fff; color: var(--helix-navy); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-outline-light { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-outline-light:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--stroke); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; color: var(--helix-navy); letter-spacing: -0.03em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-logo { height: 38px; width: auto; flex: none; }
.footer-brand .brand-logo { height: 42px; }
@media (max-width: 520px){ .brand-logo { height: 32px; } }
.nav-links { display: none; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a { color: var(--helix-navy); font-weight: 600; font-size: .96rem; padding: 9px 14px; border-radius: var(--r-pill); transition: background .2s, color .2s; }
.nav-links a:hover { background: rgba(10,37,64,.05); color: var(--helix-blue); }
.nav-cta { margin-left: auto; display: none; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 11px 20px; }
.nav-phone { display: none; font-weight: 700; color: var(--helix-navy); font-size: .95rem; }
.burger { margin-left: auto; display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; }
.burger span { width: 24px; height: 2.5px; background: var(--helix-navy); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger.open span:nth-child(1){ transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2){ opacity: 0; }
.burger.open span:nth-child(3){ transform: translateY(-7.5px) rotate(-45deg); }

@media (min-width: 1040px){
  .nav-links { display: flex; }
  .nav-phone { display: inline; }
  .burger { display: none; }
  .nav-cta { display: flex; margin-left: 0; }
  .nav-links { margin-left: 12px; }
  .nav { gap: 16px; }
}

/* mobile drawer */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: rgba(255,255,255,.98); backdrop-filter: blur(10px);
  padding: 24px var(--gut); transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity .28s, transform .28s; overflow-y: auto;
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a { display: block; padding: 15px 6px; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--helix-navy); border-bottom: 1px solid var(--stroke); }
.mobile-menu .btn { margin-top: 22px; }

/* Dropdown (mega-lite) */
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 280px;
  background: #fff; border: 1px solid var(--stroke); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; transform: translateY(8px);
  pointer-events: none; transition: opacity .2s, transform .2s;
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; transform: none; pointer-events: auto; }
.drop a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: var(--r-sm); }
.drop a span { font-size: .8rem; color: var(--text-dim); font-weight: 500; }
.drop a:hover { background: var(--bg-soft); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--stroke); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(10,111,224,.25); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .98rem; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(10,111,224,.12), rgba(41,182,240,.12));
  color: var(--helix-blue); margin-bottom: 18px;
}
.card-icon svg { width: 26px; height: 26px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; margin-top: 16px; color: var(--helix-blue); }
.card-link svg { width: 16px; height: 16px; transition: transform .25s; }
.card:hover .card-link svg { transform: translateX(4px); }

/* glass cards on gradient mesh */
.glass {
  background: var(--glass); border: 1px solid rgba(255,255,255,.6);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: var(--r-lg); box-shadow: 0 20px 50px rgba(10,37,64,.12);
}

/* ---------- Atmospheric backgrounds ---------- */
.mesh { position: relative; isolation: isolate; }
.mesh::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 60% at 12% 8%, rgba(10,111,224,.16), transparent 60%),
    radial-gradient(42% 55% at 92% 18%, rgba(41,182,240,.18), transparent 60%),
    radial-gradient(60% 70% at 78% 92%, rgba(0,224,198,.10), transparent 60%);
}
.grid-bg::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(10,37,64,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,37,64,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px;
  border-radius: var(--r-pill); background: rgba(10,111,224,.08); color: var(--helix-blue);
  font-weight: 700; font-size: .82rem; border: 1px solid rgba(10,111,224,.14);
}
.pill svg { width: 15px; height: 15px; }
.pill-soft { background: rgba(10,37,64,.05); color: var(--helix-navy); border-color: var(--stroke); }
.pill-success { background: rgba(22,179,100,.1); color: var(--success); border-color: rgba(22,179,100,.2); }

.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: .85rem;
  color: var(--helix-navy); padding: 10px 16px; background: #fff;
  border: 1px solid var(--stroke); border-radius: var(--r-pill); box-shadow: var(--shadow-sm);
}
.badge svg { width: 17px; height: 17px; color: var(--helix-teal); }

/* ---------- HERO ---------- */
.hero { position: relative; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(56px, 8vw, 100px); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(40px, 5vw, 64px); align-items: center; }
@media (min-width: 980px){ .hero-grid { grid-template-columns: 1.04fr 1fr; } }
.hero h1 { margin: 18px 0 20px; }
.hero .lead { max-width: 540px; }
.hero-cta { margin-top: 32px; }
.hero-trust { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-trust-item { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--text-muted); }
.hero-trust-item svg { width: 16px; height: 16px; color: var(--success); }

/* Dashboard mock */
.dash {
  --d-pad: clamp(18px, 2.4vw, 26px);
  position: relative; border-radius: var(--r-xl); padding: var(--d-pad);
  background: var(--grad-ink); color: var(--on-dark);
  box-shadow: 0 40px 90px rgba(10,37,64,.34), inset 0 1px 0 rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.dash::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 50% at 80% 0%, rgba(41,182,240,.22), transparent 60%);
}
.dash-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.dash-title { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-muted); }
.dash-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--helix-teal-2); box-shadow: 0 0 0 4px rgba(0,224,198,.18); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{ box-shadow: 0 0 0 3px rgba(0,224,198,.18);} 50%{ box-shadow: 0 0 0 8px rgba(0,224,198,.05);} }
.dash-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .72rem; color: var(--on-dark-muted); }
.dash-kpis { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; margin-bottom: 14px; }
.kpi { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-md); padding: 16px; }
.kpi-label { font-size: .74rem; color: var(--on-dark-muted); font-weight: 600; }
.kpi-val { font-family: var(--font-mono); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: #fff; margin-top: 6px; letter-spacing: -0.02em; }
.kpi-val .unit { color: var(--helix-teal-2); }
.kpi-trend { font-size: .74rem; font-weight: 700; margin-top: 4px; display: inline-flex; align-items: center; gap: 4px; }
.kpi-trend.up { color: var(--helix-teal-2); }
.kpi-trend.down { color: var(--helix-teal-2); }

.dash-chart { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-md); padding: 16px 16px 8px; }
.dash-chart-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.dash-chart-head .t { font-size: .8rem; color: var(--on-dark-muted); font-weight: 600; }
.dash-chart-head .v { font-family: var(--font-mono); font-weight: 700; color: var(--helix-teal-2); }
.spark { width: 100%; height: 70px; }
.spark path.line { fill: none; stroke: url(#sparkGrad); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.spark path.area { fill: url(#sparkArea); opacity: .9; }
.dash-bars { display: flex; align-items: flex-end; gap: 7px; height: 56px; margin-top: 10px; }
.dash-bars .bar { flex: 1; background: linear-gradient(180deg, var(--helix-teal-2), rgba(41,182,240,.35)); border-radius: 4px 4px 2px 2px; transform-origin: bottom; transform: scaleY(.15); }
.dash-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.08); font-size: .78rem; color: var(--on-dark-muted); }
.dash-foot svg { width: 16px; height: 16px; color: var(--helix-teal-2); }

/* floating chips around dashboard */
.dash-wrap { position: relative; }
.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 9px;
  background: #fff; color: var(--helix-navy); font-weight: 700; font-size: .82rem;
  padding: 11px 15px; border-radius: 14px; box-shadow: var(--shadow-lg); border: 1px solid var(--stroke);
}
.float-chip svg { width: 18px; height: 18px; }
.float-chip .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.fc-1 { top: -18px; left: -22px; }
.fc-2 { bottom: 40px; right: -26px; }
@media (max-width: 560px){ .float-chip { display: none; } }

/* ---------- Logo strip ---------- */
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(20px,4vw,52px); }
.logo-strip span { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text-dim); letter-spacing: -0.02em; opacity: .8; transition: color .25s, opacity .25s; }
.logo-strip span:hover { color: var(--helix-navy); opacity: 1; }
.strip-label { text-align: center; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 26px; }

/* ---------- Stat counters ---------- */
.stats { display: grid; gap: 20px; grid-template-columns: repeat(2,1fr); }
@media (min-width: 860px){ .stats { grid-template-columns: repeat(4,1fr); } }
.stat { text-align: center; padding: 12px; }
.stat-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -0.04em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-num .suf { -webkit-text-fill-color: var(--helix-teal); }
.section--ink .stat-num { background: linear-gradient(100deg,#7FC8FF,#50E2FF); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { margin-top: 10px; font-weight: 600; color: var(--text-muted); font-size: .95rem; }
.section--ink .stat-label { color: var(--on-dark-muted); }

/* ---------- RCM timeline (Helix RCM Engine) ---------- */
.engine { position: relative; }
.engine-track { position: relative; display: grid; gap: 18px; }
@media (min-width: 760px){
  .engine-track { grid-template-columns: repeat(3,1fr); gap: 22px; }
}
@media (min-width: 1040px){
  .engine-track { grid-template-columns: repeat(3,1fr); }
}
.step {
  position: relative; background: #fff; border: 1px solid var(--stroke); border-radius: var(--r-lg);
  padding: 24px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s;
}
.step:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(41,182,240,.4); }
.step-num { font-family: var(--font-mono); font-size: .8rem; font-weight: 700; color: #fff; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--grad-hero); margin-bottom: 16px; }
.step h4 { margin-bottom: 7px; }
.step p { font-size: .92rem; }
.step .tag { display: inline-block; margin-top: 12px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--helix-teal); font-weight: 700; }

/* ---------- Specialty grid ---------- */
.spec-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; align-items: center; }
.spec-search { flex: 1; min-width: 220px; position: relative; }
.spec-search input {
  width: 100%; padding: 13px 16px 13px 44px; border-radius: var(--r-pill);
  border: 1px solid var(--stroke-2); background: #fff; font: inherit; font-size: .95rem; color: var(--text);
}
.spec-search input:focus { outline: none; border-color: var(--helix-blue); box-shadow: 0 0 0 4px rgba(10,111,224,.12); }
.spec-search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-dim); }
.spec-grid { display: grid; gap: 16px; grid-template-columns: repeat(2,1fr); }
@media (min-width: 720px){ .spec-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1000px){ .spec-grid { grid-template-columns: repeat(4,1fr); } }
.spec-tile {
  display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: var(--r-md);
  background: #fff; border: 1px solid var(--stroke); transition: transform .25s, box-shadow .25s, border-color .25s; color: var(--helix-navy);
}
.spec-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(10,111,224,.3); }
.spec-tile .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(10,111,224,.12), rgba(41,182,240,.12)); color: var(--helix-blue); }
.spec-tile .ic svg { width: 22px; height: 22px; }
.spec-tile strong { font-family: var(--font-display); font-size: 1.05rem; }
.spec-tile span { font-size: .85rem; color: var(--text-muted); }
.spec-tile[hidden] { display: none; }
.spec-empty { display: none; padding: 40px; text-align: center; color: var(--text-muted); }

/* ---------- Case studies ---------- */
.case {
  display: grid; gap: 0; border-radius: var(--r-xl); overflow: hidden;
  border: 1px solid var(--stroke); background: #fff; box-shadow: var(--shadow-md);
}
@media (min-width: 880px){ .case { grid-template-columns: .85fr 1.15fr; } }
.case-side { background: var(--grad-ink); color: #fff; padding: clamp(28px,4vw,44px); display: flex; flex-direction: column; justify-content: space-between; gap: 26px; }
.case-side .who { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.case-side .role { color: var(--on-dark-muted); font-size: .9rem; margin-top: 4px; }
.case-metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; }
.case-metric .n { font-family: var(--font-mono); font-size: 1.7rem; font-weight: 700; color: var(--helix-teal-2); }
.case-metric .l { font-size: .78rem; color: var(--on-dark-muted); margin-top: 2px; }
.case-body { padding: clamp(28px,4vw,44px); }
.case-body .q { font-family: var(--font-display); font-size: clamp(1.15rem,1.8vw,1.45rem); color: var(--helix-navy); line-height: 1.35; font-weight: 600; }
.case-body .block { margin-top: 22px; }
.case-body .block h5 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--helix-blue); margin-bottom: 6px; }
.case-body .block p { font-size: .96rem; }

/* ---------- Testimonials ---------- */
.quote { background: #fff; border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-sm); }
.quote .stars { color: var(--warning); letter-spacing: 2px; margin-bottom: 14px; font-size: .95rem; }
.quote p { color: var(--text); font-size: 1.02rem; line-height: 1.55; }
.quote .by { margin-top: 20px; display: flex; align-items: center; gap: 12px; }
.quote .av { width: 44px; height: 44px; border-radius: 50%; background: var(--grad-hero); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.quote .by strong { display: block; color: var(--helix-navy); font-size: .95rem; }
.quote .by span { font-size: .82rem; color: var(--text-muted); }

/* ---------- Feature list ---------- */
.feat-list { display: grid; gap: 16px; }
.feat { display: flex; gap: 14px; align-items: flex-start; }
.feat .tick { flex: none; width: 26px; height: 26px; border-radius: 8px; background: rgba(22,179,100,.12); color: var(--success); display: grid; place-items: center; }
.feat .tick svg { width: 16px; height: 16px; }
.feat strong { display: block; color: var(--helix-navy); font-size: 1.02rem; }
.feat p { font-size: .92rem; margin-top: 2px; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--grad-ink); color: #fff; padding: clamp(36px,5vw,64px); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 0%, rgba(41,182,240,.28), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: var(--on-dark-muted); max-width: 560px; margin: 14px auto 0; }
.cta-band .cta-row { justify-content: center; margin-top: 30px; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--stroke); border-radius: var(--r-xl); padding: clamp(24px,3vw,40px); box-shadow: var(--shadow-lg); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .88rem; color: var(--helix-navy); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid var(--stroke-2); border-radius: var(--r-sm);
  font: inherit; font-size: .98rem; color: var(--text); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--helix-blue); box-shadow: 0 0 0 4px rgba(10,111,224,.12); }
.field-row { display: grid; gap: 18px; }
@media (min-width: 620px){ .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; opacity: 0; }
.form-note { font-size: .82rem; color: var(--text-dim); margin-top: 6px; display: flex; gap: 8px; align-items: flex-start; }
.form-note svg { width: 15px; height: 15px; flex: none; margin-top: 2px; color: var(--helix-teal); }

/* multi-step */
.steps-head { display: flex; gap: 8px; margin-bottom: 26px; }
.steps-head .dot { flex: 1; height: 5px; border-radius: 3px; background: var(--stroke-2); transition: background .3s; }
.steps-head .dot.active { background: var(--grad-hero); }
.fstep { display: none; animation: fade .35s ease; }
.fstep.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.form-ok { display: none; text-align: center; padding: 30px 10px; }
.form-ok.show { display: block; }
.form-ok .big { width: 64px; height: 64px; border-radius: 50%; background: rgba(22,179,100,.12); color: var(--success); display: grid; place-items: center; margin: 0 auto 18px; }
.form-ok .big svg { width: 32px; height: 32px; }

/* ---------- Calculator ---------- */
.calc { display: grid; gap: 28px; }
@media (min-width: 920px){ .calc { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.calc-controls .field input[type=range] { padding: 0; accent-color: var(--helix-blue); height: 6px; }
.calc-out { background: var(--grad-ink); color: #fff; border-radius: var(--r-xl); padding: clamp(26px,3vw,38px); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.calc-out::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 90% 0, rgba(41,182,240,.25), transparent 60%); }
.calc-out > * { position: relative; }
.calc-big { font-family: var(--font-mono); font-size: clamp(2.2rem,5vw,3.2rem); font-weight: 700; color: var(--helix-teal-2); letter-spacing: -0.03em; line-height: 1; }
.calc-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.calc-row:last-child { border-bottom: 0; }
.calc-row .l { color: var(--on-dark-muted); font-size: .92rem; }
.calc-row .v { font-family: var(--font-mono); font-weight: 700; font-size: 1.15rem; }
.range-val { font-family: var(--font-mono); font-weight: 700; color: var(--helix-blue); }
.calc-disclaimer { font-size: .76rem; color: var(--text-dim); margin-top: 14px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: 22px; }
@media (min-width: 900px){ .price-grid { grid-template-columns: repeat(3,1fr); } }
.price {
  background: #fff; border: 1px solid var(--stroke); border-radius: var(--r-xl); padding: 32px;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.price:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price.featured { border-color: transparent; background: var(--grad-ink); color: #fff; box-shadow: var(--shadow-lg); }
.price.featured h3, .price.featured .price-num { color: #fff; }
.price.featured p, .price.featured .price-sub { color: var(--on-dark-muted); }
.price.featured .feat strong { color: #fff; }
.price-tag { display: inline-flex; align-self: flex-start; margin-bottom: 14px; }
.price-num { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; }
.price-num small { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.price-sub { font-size: .9rem; margin: 4px 0 22px; }
.price .feat-list { margin: 0 0 26px; }
.price.featured .feat .tick { background: rgba(0,224,198,.16); color: var(--helix-teal-2); }
.price .btn { margin-top: auto; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .85rem; color: var(--text-dim); display: flex; gap: 8px; flex-wrap: wrap; padding-top: 26px; }
.crumbs a { color: var(--text-muted); font-weight: 600; }
.crumbs a:hover { color: var(--helix-blue); }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding-top: clamp(40px,5vw,64px); padding-bottom: clamp(40px,5vw,64px); position: relative; overflow: hidden; }
.page-hero h1 { margin: 16px 0 18px; max-width: 16ch; }
.page-hero .lead { max-width: 620px; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--stroke); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.faq + .faq { margin-top: 14px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--helix-navy); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { flex: none; width: 22px; height: 22px; transition: transform .3s; color: var(--helix-blue); }
.faq[open] summary .chev { transform: rotate(45deg); }
.faq .faq-body { padding: 0 24px 22px; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--grad-ink); color: var(--on-dark-muted); padding-top: clamp(56px,7vw,88px); }
.footer-top { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 860px){ .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer-brand .brand { color: #fff; }
.footer-brand p { margin: 16px 0 20px; max-width: 320px; font-size: .94rem; }
.footer-col h5 { color: #fff; font-family: var(--font-display); font-size: 1rem; margin-bottom: 16px; }
.footer-col a { display: block; color: var(--on-dark-muted); padding: 6px 0; font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: var(--helix-teal-2); }
.footer-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-badges .b { display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 600; color: var(--on-dark); padding: 7px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: var(--r-pill); }
.footer-badges .b svg { width: 14px; height: 14px; color: var(--helix-teal-2); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; font-size: .85rem; }
.footer-bottom a { color: var(--on-dark-muted); }
.footer-bottom a:hover { color: #fff; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  display: none; box-shadow: var(--shadow-lg);
}
.sticky-cta .btn { width: 100%; }
@media (max-width: 1039px){ .sticky-cta.show { display: block; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ---------- Misc utility ---------- */
.center { text-align: center; }
.mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }
.muted { color: var(--text-muted); }
.hide-sm { display: none; }
@media (min-width: 720px){ .hide-sm { display: initial; } }
.split { display: grid; gap: clamp(32px,5vw,64px); align-items: center; }
@media (min-width: 920px){ .split { grid-template-columns: 1fr 1fr; } .split.wide-l { grid-template-columns: 1.1fr .9fr; } }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.guarantee {
  display: flex; gap: 18px; align-items: center; padding: 22px 26px; border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(10,111,224,.06), rgba(41,182,240,.08)); border: 1px solid rgba(10,111,224,.16);
}
.guarantee .seal { flex: none; width: 60px; height: 60px; border-radius: 50%; background: var(--grad-hero); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-glow); }
.guarantee .seal svg { width: 30px; height: 30px; }

/* ---------- Case study extras (reuse .case / .case-side / .case-body) ---------- */
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.case-side .tag { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.1); color: var(--on-dark); border: 1px solid rgba(255,255,255,.16); }
.case-stack { display: grid; gap: 24px; }
@media (min-width: 980px){ .case-stack.two { grid-template-columns: 1fr 1fr; } .case-stack.two .case { grid-template-columns: 1fr; } .case-stack.two .case-side { gap: 20px; } }

/* ---------- Code-capture cheat sheet (CPT / modifiers) ---------- */
.codesheet {
  border: 1px solid var(--stroke); border-radius: var(--r-xl); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-md);
}
.codesheet-head {
  display: flex; align-items: center; gap: 12px; padding: 18px clamp(20px,3vw,28px);
  background: var(--grad-ink); color: #fff;
}
.codesheet-head .dot-row { display: inline-flex; gap: 6px; margin-right: 4px; }
.codesheet-head .dot-row i { width: 11px; height: 11px; border-radius: 50%; display: block; opacity: .9; }
.codesheet-head .dot-row i:nth-child(1){ background: #FF5F57; }
.codesheet-head .dot-row i:nth-child(2){ background: #FEBC2E; }
.codesheet-head .dot-row i:nth-child(3){ background: #28C840; }
.codesheet-head .title { font-family: var(--font-mono); font-size: .82rem; letter-spacing: .04em; color: var(--on-dark); }
.codesheet-head .title b { color: #fff; }
.codesheet-head .chip { margin-left: auto; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--helix-teal-2); border: 1px solid rgba(80,226,255,.3); padding: 4px 10px; border-radius: var(--r-pill); }
.codesheet table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: .86rem; }
.codesheet tr { border-top: 1px solid var(--stroke); }
.codesheet tbody tr:hover { background: var(--bg-soft); }
.codesheet td { padding: 13px clamp(16px,2.5vw,24px); vertical-align: top; }
.codesheet td.code { color: var(--helix-blue); font-weight: 700; white-space: nowrap; width: 1%; }
.codesheet td.desc { color: var(--text); font-family: var(--font-body); font-size: .92rem; }
.codesheet td.mod { color: var(--helix-teal); font-weight: 600; white-space: nowrap; text-align: right; }
.codesheet caption { caption-side: bottom; padding: 12px clamp(16px,2.5vw,24px); font-size: .76rem; color: var(--text-dim); text-align: left; font-family: var(--font-body); }

/* ---------- Denial-pattern panel ---------- */
.denials { display: grid; gap: 16px; }
@media (min-width: 760px){ .denials { grid-template-columns: repeat(2,1fr); } }
.denial {
  position: relative; background: #fff; border: 1px solid var(--stroke); border-radius: var(--r-lg);
  padding: 24px 24px 24px 26px; box-shadow: var(--shadow-sm); transition: transform .3s, box-shadow .3s, border-color .3s;
}
.denial::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 4px; border-radius: 4px; background: var(--grad-hero); }
.denial:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(10,111,224,.25); }
.denial .code { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; color: var(--danger); text-transform: uppercase; }
.denial h4 { margin: 6px 0 10px; }
.denial .why { font-size: .92rem; color: var(--text-muted); }
.denial .fix { margin-top: 12px; display: flex; gap: 9px; align-items: flex-start; font-size: .92rem; color: var(--text); }
.denial .fix svg { flex: none; width: 18px; height: 18px; color: var(--success); margin-top: 1px; }
.denial .fix b { color: var(--helix-navy); }

/* ---------- Compact case card ---------- */
.case-mini {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--stroke);
  border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.case-mini:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(41,182,240,.4); }
.case-mini .head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.case-mini .av { flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--grad-hero); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; }
.case-mini .who { font-family: var(--font-display); font-weight: 700; color: var(--helix-navy); font-size: 1.02rem; line-height: 1.2; }
.case-mini .role { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }
.case-mini .mini-metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px 14px; padding: 16px 0; margin: 4px 0 14px; border-block: 1px solid var(--stroke); }
.case-mini .mini-metrics .n { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 700; color: var(--helix-blue); line-height: 1; }
.case-mini .mini-metrics .l { font-size: .74rem; color: var(--text-muted); margin-top: 4px; }
.case-mini blockquote { font-size: .92rem; color: var(--text); line-height: 1.5; margin: 0; }
.case-mini .res { margin-top: auto; padding-top: 14px; font-size: .82rem; color: var(--text-muted); }
.case-mini .res b { color: var(--success); }

/* ---------- Specialty workflow ribbon ---------- */
.flowribbon { display: grid; gap: 14px; counter-reset: flow; }
@media (min-width: 720px){ .flowribbon { grid-template-columns: repeat(4,1fr); gap: 0; } }
.flowstep { position: relative; padding: 22px 20px; background: #fff; border: 1px solid var(--stroke); border-radius: var(--r-md); }
@media (min-width: 720px){
  .flowribbon .flowstep { border-radius: 0; border-right: 0; }
  .flowribbon .flowstep:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
  .flowribbon .flowstep:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; border-right: 1px solid var(--stroke); }
  .flowstep::after { content: ""; position: absolute; right: -9px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%) rotate(45deg); background: #fff; border-top: 1px solid var(--stroke); border-right: 1px solid var(--stroke); z-index: 2; }
  .flowribbon .flowstep:last-child::after { display: none; }
}
.flowstep .n { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; color: var(--helix-blue); }
.flowstep h4 { font-size: 1rem; margin: 6px 0 5px; }
.flowstep p { font-size: .85rem; }

/* ---------- Specialty accent (per-page theming hook) ---------- */
.spec-accent { --accent: var(--helix-blue); --accent-2: var(--helix-teal); }
.spec-accent .eyebrow { color: var(--accent); }
.spec-accent .eyebrow::before { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.spec-accent .codesheet td.code { color: var(--accent); }
.spec-accent .denial::before { background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* ---------- Article prose ---------- */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.15em; }
.prose p, .prose li { color: var(--text-muted); font-size: 1.06rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); margin-top: 2.2em; margin-bottom: .2em; }
.prose h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); margin-top: 1.6em; margin-bottom: .1em; }
.prose h2 + p, .prose h3 + p, .prose h2 + ul, .prose h3 + ul { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .5em; }
.prose li::marker { color: var(--helix-blue); }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--helix-blue); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose blockquote {
  border-left: 3px solid var(--helix-blue); padding: 4px 0 4px 22px; margin-left: 0;
  font-family: var(--font-display); font-size: 1.2rem; color: var(--helix-navy); letter-spacing: -0.02em;
}
.prose .callout {
  background: var(--bg-soft); border: 1px solid var(--stroke); border-radius: var(--r-md);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.prose .callout p, .prose .callout li { margin-top: .5em; }
.prose .callout > :first-child { margin-top: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--stroke-2); }
.prose th { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--helix-navy); }
.prose td { color: var(--text-muted); }
.prose .disclaimer { font-size: .8rem; color: var(--text-dim); margin-top: 2.4em; padding-top: 1.2em; border-top: 1px solid var(--stroke); }
.article-toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 8px; }
.article-toc a { font-size: .82rem; font-weight: 600; color: var(--helix-blue); background: var(--bg-soft); border: 1px solid var(--stroke); border-radius: var(--r-pill); padding: 7px 15px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin-top: 20px; font-size: .85rem; color: var(--text-dim); font-family: var(--font-mono); letter-spacing: .04em; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .card:hover, .step:hover, .spec-tile:hover, .price:hover,
  .denial:hover, .case-mini:hover { transform: none !important; }
}
