/* ==========================================================================
   Reedstem, LLC — Corporate Design System
   Precision software for the work where every count matters.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --navy-950: #040b1c;
  --navy-900: #0a1630;
  --navy-800: #10224a;
  --navy-700: #1a3263;
  --brand: #0ea371;          /* Reed green */
  --brand-600: #0b8a60;
  --brand-50: #e9f9f2;
  --sky: #2563eb;            /* Signal blue */
  --sky-50: #eef3ff;
  --cyan: #06b6d4;
  --gold: #f5b544;
  --grad: linear-gradient(120deg, #10b981 0%, #06b6d4 48%, #2563eb 100%);
  --grad-soft: linear-gradient(120deg, rgba(16,185,129,.14), rgba(37,99,235,.14));

  /* Product colors */
  --medpass: #0f766e;
  --medpass-mint: #99f6e4;
  --medpass-50: #ecfdf8;
  --fixtock: #2f6bff;
  --fixtock-mint: #5ee2a0;
  --fixtock-50: #eef3ff;
  --fixtock-navy: #0b1437;

  /* Neutrals */
  --ink: #0b1324;
  --body: #334155;
  --muted: #64748b;
  --line: #e3e8f0;
  --line-2: #eef2f7;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --white: #ffffff;

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Manrope", "Inter", system-ui, sans-serif;

  /* Shape & depth */
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(10,22,48,.06), 0 1px 1px rgba(10,22,48,.04);
  --shadow: 0 10px 30px -12px rgba(10,22,48,.18), 0 4px 10px -6px rgba(10,22,48,.08);
  --shadow-lg: 0 40px 80px -30px rgba(10,22,48,.35), 0 18px 36px -18px rgba(10,22,48,.2);
  --ring: 0 0 0 4px rgba(14,163,113,.25);

  --container: 1200px;
  --header-h: 76px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--sky); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.022em; font-weight: 800; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.2em; }
strong { color: var(--ink); font-weight: 650; }
::selection { background: rgba(14,163,113,.22); color: var(--ink); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-sm { padding: clamp(48px, 7vw, 80px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-900); color: #c6d1e4; }
.section-dark h2, .section-dark h3, .section-dark h4, .section-dark strong { color: #fff; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; } .mt-5 { margin-top: 64px; }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head p { font-size: 1.15rem; color: var(--muted); }
.section-dark .section-head p { color: #9fb0cc; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad); }
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: #6ee7b7; }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.6; color: var(--muted); }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 4. Buttons ---------- */
.btn {
  --bh: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 650 1rem/1 var(--font-sans); letter-spacing: -.005em; cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon-arrow { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -10px rgba(11,19,36,.5); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(11,19,36,.55); background: #111d38; }
.btn-brand { background: var(--grad); color: #fff; box-shadow: 0 14px 30px -12px rgba(14,163,113,.6); background-size: 150% 100%; }
.btn-brand:hover { color: #fff; transform: translateY(-2px); background-position: 100% 0; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(0,0,0,.5); }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.btn-outline-light:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.1); transform: translateY(-2px); }
.btn-sm { --bh: 42px; padding: 0 18px; font-size: .93rem; }
.btn-medpass { background: var(--medpass); color: #fff; }
.btn-medpass:hover { background: #0b5f58; color: #fff; transform: translateY(-2px); }
.btn-fixtock { background: var(--fixtock); color: #fff; }
.btn-fixtock:hover { background: #1f57e6; color: #fff; transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink); }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- 5. Header & navigation ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  transition: background .3s, box-shadow .3s, height .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 32px; }
.site-header.is-solid, body.header-light .site-header {
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: rgba(15,23,42,.07);
}
.site-header.is-solid { --header-h: 66px; box-shadow: 0 8px 24px -18px rgba(10,22,48,.25); }

.brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; flex: none; }
.brand:hover { color: #fff; }
.brand-mark { width: 38px; height: 38px; }
.brand-word { font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.03em; line-height: 1; }
.brand-word small { display: block; font-family: var(--font-sans); font-size: .62rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; opacity: .6; margin-top: 4px; }
.site-header.is-solid .brand, body.header-light .site-header .brand { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px;
  font-weight: 560; font-size: .97rem; color: rgba(255,255,255,.86); background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: #fff; background: rgba(255,255,255,.08); }
.nav-link.is-active { color: #fff; }
.nav-link .icon { width: 15px; height: 15px; transition: transform .25s; }
.nav-link[aria-expanded="true"] .icon { transform: rotate(180deg); }
.site-header.is-solid .nav-link, body.header-light .nav-link { color: var(--body); }
.site-header.is-solid .nav-link:hover, body.header-light .nav-link:hover,
.site-header.is-solid .nav-link[aria-expanded="true"], body.header-light .nav-link[aria-expanded="true"] { color: var(--ink); background: var(--bg-alt); }
.site-header.is-solid .nav-link.is-active, body.header-light .nav-link.is-active { color: var(--ink); }
.nav-cta { margin-left: 14px; display: flex; gap: 10px; }
.site-header:not(.is-solid) .nav-cta .btn-primary { background: #fff; color: var(--ink); }
body.header-light .site-header .nav-cta .btn-primary { background: var(--ink); color: #fff; }

.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 12px); left: 50%; width: 720px; transform: translate(-50%, 8px);
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.mega::before { content: ""; position: absolute; inset: -14px 0 auto 0; height: 14px; }
.has-mega.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega-item { display: flex; gap: 16px; padding: 18px; border-radius: 16px; color: var(--body); transition: background .2s; }
.mega-item:hover { background: var(--bg-alt); color: var(--body); }
.mega-item img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.mega-item strong { display: block; font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 4px; }
.mega-item span { font-size: .9rem; line-height: 1.5; color: var(--muted); }
.mega-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; margin-top: 4px; background: var(--bg-alt); border-radius: 14px; font-size: .9rem; }
.mega-foot a { font-weight: 650; }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .icon { width: 22px; height: 22px; }
.site-header.is-solid .nav-toggle, body.header-light .nav-toggle { color: var(--ink); border-color: var(--line); background: #fff; }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(4,11,28,.55); opacity: 0; transition: opacity .3s; backdrop-filter: blur(3px); }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); background: #fff; padding: 22px 24px 32px;
  transform: translateX(100%); transition: transform .38s var(--ease); display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.drawer-head .brand { color: var(--ink); }
.drawer-close { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.drawer nav ul { list-style: none; padding: 0; margin: 0; }
.drawer nav > ul > li > a { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line-2); font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.drawer .sub { padding: 8px 0 8px 0; }
.drawer .sub a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; color: var(--body); font-weight: 560; }
.drawer .sub img { width: 34px; height: 34px; border-radius: 9px; }
.drawer-cta { margin-top: auto; padding-top: 28px; display: grid; gap: 12px; }
body.no-scroll { overflow: hidden; }

/* ---------- 6. Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: #c6d1e4;
  background: radial-gradient(1200px 600px at 85% -10%, rgba(37,99,235,.35), transparent 60%),
              radial-gradient(900px 600px at -10% 30%, rgba(16,185,129,.22), transparent 60%),
              linear-gradient(180deg, var(--navy-950), var(--navy-900) 70%, #0d1d40);
  padding: calc(var(--header-h) + clamp(56px, 8vw, 100px)) 0 clamp(80px, 10vw, 130px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { color: #fff; margin-bottom: 26px; }
.hero h1 .text-grad { background: linear-gradient(110deg, #6ee7b7, #67e8f9 50%, #93b4ff); -webkit-background-clip: text; background-clip: text; }
.hero .lead { color: #a9b8d2; max-width: 600px; margin-bottom: 36px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); color: #d6e0f0; font-size: .88rem; font-weight: 550; margin-bottom: 28px;
}
.hero-badge b { background: var(--grad); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; color: #8ea0c0; font-size: .92rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .icon { color: #6ee7b7; width: 18px; height: 18px; }

/* Hero visual composition */
@media (min-width: 1240px) { .hero-visual { margin-right: -56px; } }
.hero-visual { position: relative; min-height: 560px; perspective: 1600px; }
.hv-card {
  position: absolute; background: #fff; border-radius: 22px; box-shadow: 0 50px 100px -30px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06);
  overflow: hidden; transition: transform .6s var(--ease);
}
.hv-medpass { left: 0; top: 56px; width: 68%; z-index: 2; }
.hv-phone { right: 0; top: 0; width: 40%; z-index: 3; border-radius: 34px; padding: 9px; background: #0b1020; }
.hv-phone img { border-radius: 26px; }
.hv-chip {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px;
  background: rgba(255,255,255,.96); box-shadow: 0 20px 40px -16px rgba(0,0,0,.45); font-size: .86rem; color: var(--ink); font-weight: 600;
  animation: float 6s ease-in-out infinite;
}
.hv-chip small { display: block; font-weight: 500; color: var(--muted); font-size: .76rem; }
.hv-chip .dot { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.hv-chip-1 { left: -18px; bottom: 70px; }
.hv-chip-2 { right: 6%; bottom: 8px; animation-delay: -3s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Mock app UI (MedPass illustration) */
.mock { font-size: 13px; color: var(--ink); }
.mock-bar { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--medpass); color: #fff; }
.mock-bar img { width: 26px; height: 26px; border-radius: 7px; }
.mock-bar b { font-family: var(--font-display); font-size: 14px; }
.mock-bar span { margin-left: auto; font-size: 11.5px; opacity: .85; }
.mock-tabs { display: flex; gap: 18px; padding: 0 18px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--muted); font-size: 12px; }
.mock-tabs span { padding: 11px 0; }
.mock-tabs .on { color: var(--medpass); box-shadow: inset 0 -2px 0 var(--medpass); }
.mock-list { padding: 8px 12px 14px; }
.mock-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 11px 8px; border-bottom: 1px solid var(--line-2); }
.mock-row:last-child { border-bottom: 0; }
.mock-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; color: var(--medpass); background: var(--medpass-50); }
.mock-row b { display: block; font-size: 13px; }
.mock-row small { color: var(--muted); font-size: 11.5px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.pill-due { background: #fff4e0; color: #9a5b00; }
.pill-ok { background: #e7f8ef; color: #12784b; }
.pill-c { background: #fdeaea; color: #b42318; }
.pill-prn { background: #eef3ff; color: #2049b8; }

/* ---------- 7. Trust/fact strip ---------- */
.fact-strip { position: relative; z-index: 2; margin-top: -56px; }
.fact-strip .inner {
  background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.fact { padding: 30px 28px; border-right: 1px solid var(--line-2); }
.fact:last-child { border-right: 0; }
.fact .num { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--ink); letter-spacing: -.03em; line-height: 1.1; }
.fact .num em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact p { margin: 6px 0 0; font-size: .92rem; color: var(--muted); line-height: 1.45; }

/* ---------- 8. Cards ---------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 22px;
  background: var(--grad-soft); color: var(--brand-600);
}
.card-icon .icon { width: 24px; height: 24px; }
.section-dark .card { background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.09); color: #a9b8d2; }
.section-dark .card:hover { background: rgba(255,255,255,.06); box-shadow: none; border-color: rgba(255,255,255,.18); }
.section-dark .card-icon { background: rgba(110,231,183,.1); color: #6ee7b7; }
.card-num { font-family: var(--font-display); font-weight: 800; font-size: .85rem; color: var(--brand-600); letter-spacing: .1em; margin-bottom: 14px; display: block; }

/* Product showcase cards */
.product-card {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(32px, 4vw, 52px); color: #d5e2f0;
  display: flex; flex-direction: column; min-height: 640px; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card.medpass { background: radial-gradient(600px 400px at 100% 0%, rgba(153,246,228,.25), transparent 60%), linear-gradient(160deg, #0f766e, #0a4a45 70%); }
.product-card.fixtock { background: radial-gradient(600px 400px at 100% 0%, rgba(94,226,160,.22), transparent 60%), linear-gradient(160deg, #2f6bff, #0b1437 75%); }
.product-card h3 { color: #fff; font-size: clamp(1.8rem, 2.6vw, 2.3rem); margin-bottom: 12px; }
.product-card .pc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.product-card .pc-head img { width: 56px; height: 56px; border-radius: 15px; box-shadow: 0 10px 20px -8px rgba(0,0,0,.5); }
.product-card .pc-tag { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.product-card .pc-domain { display: block; color: #fff; font-weight: 650; font-size: .95rem; }
.product-card p { color: rgba(226,236,248,.86); font-size: 1.05rem; }
.product-card ul { list-style: none; padding: 0; margin: 8px 0 30px; display: grid; gap: 10px; }
.product-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; color: #e6eef8; }
.product-card li .icon { color: var(--medpass-mint); margin-top: 3px; width: 18px; height: 18px; }
.product-card.fixtock li .icon { color: var(--fixtock-mint); }
.product-card .btn-row { margin-top: auto; }
.product-card .pc-visual { margin: 10px -12px 26px; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); }

/* ---------- 9. Feature lists, checks ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--brand); margin-top: 4px; width: 20px; height: 20px; flex: none; }
.check-list.cols-2 { grid-template-columns: 1fr 1fr; column-gap: 28px; }

.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature .card-icon { margin: 0; flex: none; width: 46px; height: 46px; border-radius: 12px; }
.feature h4 { margin-bottom: 6px; }
.feature p { margin: 0; font-size: .98rem; color: var(--muted); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 32px; }

/* Pillars */
.pillar { padding: 34px 30px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; }
.pillar::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.pillar:hover::after { transform: scaleX(1); }

/* Industry tiles */
.industry-group h3 { display: flex; align-items: center; gap: 12px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; color: var(--ink); transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.tile:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); }
.tile .icon { width: 22px; height: 22px; color: var(--brand-600); }
.tile.mp .icon { color: var(--medpass); }
.tile.fx .icon { color: var(--fixtock); }

/* Process / timeline */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 27px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, rgba(110,231,183,.6), rgba(147,180,255,.6)); }
.step { position: relative; text-align: center; padding: 0 18px; }
.step-dot { position: relative; z-index: 1; width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-800); border: 2px solid rgba(110,231,183,.6); color: #fff; font-family: var(--font-display); font-weight: 800; }
.step h4 { color: #fff; }
.step p { font-size: .96rem; color: #9fb0cc; }

/* Steps (light variant, numbered) */
.flow { display: grid; gap: 18px; counter-reset: flow; }
.flow-item { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.flow-item::before { counter-increment: flow; content: counter(flow, decimal-leading-zero); width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--medpass); background: var(--medpass-50); }
.flow.fx .flow-item::before { color: var(--fixtock); background: var(--fixtock-50); }
.flow-item h4 { margin-bottom: 4px; }
.flow-item p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- 10. Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; color: #b9c7de;
  background: radial-gradient(900px 500px at 90% -20%, rgba(37,99,235,.35), transparent 60%),
              radial-gradient(700px 500px at 0% 120%, rgba(16,185,129,.22), transparent 60%),
              var(--navy-950);
  padding: calc(var(--header-h) + clamp(56px, 7vw, 96px)) 0 clamp(64px, 8vw, 104px);
}
.page-hero::before { content: ""; position: absolute; inset: 0; opacity: .45; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.8vw, 3.9rem); max-width: 900px; }
.page-hero .lead { color: #a9b8d2; max-width: 720px; }
.page-hero.medpass { background: radial-gradient(900px 500px at 90% -10%, rgba(153,246,228,.28), transparent 60%), linear-gradient(170deg, #062e2b, #0b4a45 60%, #0f766e); }
.page-hero.fixtock { background: radial-gradient(900px 500px at 90% -10%, rgba(94,226,160,.22), transparent 60%), linear-gradient(170deg, #070d26, #0b1437 55%, #1d3fae); }
.page-hero .split { align-items: center; }
.product-lockup { display: inline-flex; align-items: center; gap: 14px; margin-bottom: 22px; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.product-lockup img { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 12px 24px -10px rgba(0,0,0,.55); }
.product-lockup small { display: block; font-family: var(--font-sans); font-weight: 500; font-size: .82rem; color: rgba(255,255,255,.65); }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 26px; font-size: .86rem; color: #8ea0c0; }
.breadcrumbs a { color: #b9c7de; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

/* Device frames */
.device-phone { border-radius: 40px; padding: 10px; background: #0b1020; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06); max-width: 300px; }
.device-phone img { border-radius: 31px; }
.device-tablet { border-radius: 26px; padding: 12px; background: #0b1020; box-shadow: var(--shadow-lg); }
.device-tablet img { border-radius: 16px; }
.device-browser { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.device-browser .bar { display: flex; gap: 7px; align-items: center; padding: 12px 16px; background: #f1f4f9; border-bottom: 1px solid var(--line); }
.device-browser .bar i { width: 11px; height: 11px; border-radius: 50%; background: #d4dbe6; }
.device-browser .bar span { margin-left: 14px; font-size: .78rem; color: var(--muted); background: #fff; padding: 4px 14px; border-radius: 8px; }
.phone-duo { position: relative; display: flex; justify-content: center; gap: 0; }
.phone-duo .device-phone { width: 52%; }
.phone-duo .device-phone:nth-child(2) { margin-left: -12%; margin-top: 70px; }

/* ---------- 11. Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; width: fit-content; margin: 0 auto 44px; }
.tab-btn { border: 0; background: none; padding: 11px 20px; border-radius: 999px; font: 600 .95rem var(--font-sans); color: var(--muted); cursor: pointer; transition: background .25s, color .25s, box-shadow .25s; }
.tab-btn:hover { color: var(--ink); }
.tab-btn[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line); }
.tab-panel { display: none; animation: fadeUp .5s var(--ease); }
.tab-panel.active { display: block; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- 12. Pricing & comparison ---------- */
.pricing { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px; text-align: center; transition: transform .3s var(--ease), box-shadow .3s; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.featured { border: 2px solid var(--medpass); position: relative; }
.price-card.featured::before { content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--medpass); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.price-card .tier { font-size: .85rem; font-weight: 650; color: var(--muted); }
.price-card .amt { font-family: var(--font-display); font-weight: 800; font-size: 2.3rem; color: var(--ink); letter-spacing: -.03em; margin: 8px 0 0; }
.price-card .per { font-size: .85rem; color: var(--muted); }
.plan-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; }
.plan h4 { font-size: 1.25rem; margin-bottom: 6px; }
.plan .tag { display: inline-block; font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--fixtock-50); color: var(--fixtock); margin-bottom: 14px; }
.plan p { font-size: .95rem; color: var(--muted); margin: 0; }

.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.compare { width: 100%; border-collapse: collapse; min-width: 680px; font-size: .97rem; }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.compare thead th { background: var(--bg-alt); font-family: var(--font-display); color: var(--ink); font-size: 1rem; }
.compare tbody th { font-weight: 650; color: var(--ink); width: 26%; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .mp { color: var(--medpass); } .compare .fx { color: var(--fixtock); }

/* ---------- 13. FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.07rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .3s var(--ease); color: var(--muted); }
.faq details[open] summary .icon { transform: rotate(45deg); color: var(--brand-600); }
.faq .answer { padding: 0 26px 22px; color: var(--body); }
.faq .answer p:last-child { margin: 0; }

/* ---------- 14. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(44px, 6vw, 80px); color: #b9c7de;
  background: radial-gradient(700px 400px at 100% 0%, rgba(37,99,235,.45), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(16,185,129,.35), transparent 60%), var(--navy-900);
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.cta-band p { margin: 0; font-size: 1.1rem; color: #a9b8d2; }

/* ---------- 15. Quote / statement ---------- */
.statement { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.3; letter-spacing: -.02em; color: var(--ink); max-width: 980px; }
.statement .text-grad { font-weight: 800; }
.section-dark .statement { color: #fff; }

/* ---------- 16. Media slots (image placeholders) ---------- */
.media-slot {
  position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #eaf2f8, #f3f6fb); border: 1px dashed #c8d3e2;
  display: grid; place-items: center; text-align: center; color: var(--muted);
}
.media-slot.wide { aspect-ratio: 16 / 9; }
.media-slot.tall { aspect-ratio: 4 / 5; }
.media-slot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-slot .ms-inner { padding: 24px; max-width: 320px; }
.media-slot .ms-inner .icon { width: 36px; height: 36px; margin: 0 auto 10px; color: #9aaac0; }
.media-slot .ms-inner b { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 4px; }
.media-slot .ms-inner small { font-size: .82rem; line-height: 1.4; display: block; }
.media-slot.has-img { border: 0; }
.media-slot.has-img .ms-inner { display: none; }
.section-dark .media-slot { background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border-color: rgba(255,255,255,.18); color: #8ea0c0; }
.section-dark .media-slot b { color: #fff; }

/* ---------- 17. Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); margin-bottom: 8px; }
.field label .req { color: #d92d20; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid #cfd8e5; background: #fff; font: 400 1rem var(--font-sans); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d92d20; }
.field .err { display: none; color: #d92d20; font-size: .85rem; margin-top: 6px; }
.field.invalid .err { display: block; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); }
.form-status { display: none; padding: 16px 18px; border-radius: 12px; font-weight: 550; }
.form-status.ok { display: block; background: var(--brand-50); color: #0b6b49; }
.form-status.err { display: block; background: #fef1f0; color: #b42318; }
.hp { position: absolute; left: -9999px; }

.contact-card { display: flex; gap: 16px; padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.contact-card .card-icon { margin: 0; width: 46px; height: 46px; }
.contact-card h4 { margin-bottom: 4px; }
.contact-card p { margin: 0; font-size: .95rem; color: var(--muted); }

/* ---------- 18. Prose (legal) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.6rem; margin-top: 2.2em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.8em; }
.prose ul { margin-bottom: 1.2em; }
.prose li { margin-bottom: .4em; }
.notice { padding: 18px 20px; border-radius: 14px; background: var(--sky-50); border: 1px solid #d6e2ff; color: #1e3a8a; font-size: .95rem; }

/* ---------- 19. Footer ---------- */
.site-footer { background: var(--navy-950); color: #8ea0c0; padding: 88px 0 0; font-size: .95rem; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--grad); opacity: .6; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer-brand p { margin: 20px 0 24px; max-width: 340px; line-height: 1.6; }
.site-footer h5 { color: #fff; font-family: var(--font-sans); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.site-footer a { color: #a9b8d2; }
.site-footer a:hover { color: #fff; }
.footer-products { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-products a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: #d6e0f0; font-weight: 600; font-size: .88rem; }
.footer-products img { width: 26px; height: 26px; border-radius: 7px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; padding: 28px 0; margin-top: 64px; border-top: 1px solid rgba(255,255,255,.08); font-size: .86rem; }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-word { font-family: var(--font-display); font-weight: 800; letter-spacing: -.05em; font-size: clamp(4rem, 15vw, 13rem); line-height: .8; text-align: center; margin-top: 30px; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; pointer-events: none; }

/* Back to top */
.to-top { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .3s var(--ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top .icon { transform: rotate(-90deg); }

/* ---------- 20. Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Marquee of capabilities */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; color: var(--ink); white-space: nowrap; font-size: .95rem; }
.marquee span .icon { width: 18px; height: 18px; color: var(--brand-600); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 21. Responsive ---------- */
@media (max-width: 1100px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .pricing { grid-template-columns: repeat(3, 1fr); }
  .plan-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .hero-visual { min-height: 480px; max-width: 620px; margin: 20px auto 0; width: 100%; }
  .grid-3, .features-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .fact-strip .inner { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(2) { border-right: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); }
  .process { grid-template-columns: 1fr 1fr; gap: 40px 0; }
  .process::before { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .product-card { min-height: 0; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { padding: 0 20px; }
  .grid-2, .grid-3, .grid-4, .features-grid, .tiles, .form-row, .check-list.cols-2 { grid-template-columns: 1fr; }
  .fact-strip .inner { grid-template-columns: 1fr 1fr; }
  .fact { padding: 22px 18px; }
  .process { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr 1fr; }
  .plan-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { min-height: 400px; }
  .hv-chip-1 { left: 0; }
  .hv-chip { font-size: .78rem; padding: 10px 12px; }
  .tabs { border-radius: 18px; width: 100%; justify-content: center; }
  .card { padding: 26px; }
  .btn { --bh: 50px; padding: 0 22px; }
  .btn-row .btn { flex: 1 1 auto; }
  .mega { display: none; }
  .hero { padding-bottom: 110px; }
  .hero-visual { min-height: 0; perspective: none; }
  .hv-medpass { position: relative; width: 100%; top: 0; }
  .hv-phone, .hv-chip-2 { display: none; }
  .hv-chip { position: relative; left: auto; right: auto; bottom: auto; margin-top: 14px; width: fit-content; animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .to-top, .drawer, .cta-band { display: none !important; }
  .hero, .page-hero { padding: 24px 0; background: none; color: #000; }
  .hero h1, .page-hero h1 { color: #000; }
}
