/* ===================================================================
   Isley Capital — Stylesheet
   Modern, premium, Apple-inspired. Black + gold. Mobile-first. No deps.
   =================================================================== */

:root {
  --bg:        #000000;   /* true black, premium */
  --bg-2:      #0b0c0e;
  --bg-3:      #141619;
  --card:      #101215;
  --line:      #24272d;
  --line-2:    #313640;
  --text:      #f5f3ef;
  --muted:     #a5a096;
  --muted-2:   #857f75;   /* AA-contrast on true black (~5.3:1) */
  --accent:    #d6a24a;   /* Isley Capital gold */
  --accent-2:  #e7bd73;   /* lighter gold for text/highlights */
  --accent-ink:#14110a;   /* dark ink on gold buttons */
  --ok:        #4bbf87;
  --err:       #e2705f;
  --radius:    20px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --wrap:      1180px;
  --wrap-narrow: 820px;
  --shadow:    0 30px 80px rgba(0,0,0,.55);
  --shadow-sm: 0 10px 30px rgba(0,0,0,.35);
  --ease:      cubic-bezier(.22,.61,.36,1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font);
  background: transparent;
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Fixed debossed brand watermark ----------
   Sits behind all content (z-index below the page), stays fixed and centered
   while the page scrolls and while portfolio tabs / pages change. */
.bg-logo {
  position: fixed;
  /* Centered between the bottom of the fixed 76px header and the page bottom */
  top: calc(50% + 38px); left: 50%;
  transform: translate(-50%, -50%);
  width: min(82vw, 720px);
  height: 84vh;
  z-index: -1;
  pointer-events: none;
}
/* The engraved emblem. A visible bronze fill makes the mark clearly readable on
   the black page; the top-dark -> bottom-light gradient mimics a recessed interior
   (upper wall in shadow, lower wall catching light) so it reads debossed without a
   diffuse glow that would bleed over content on scroll. */
.bg-logo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    #0f0b06 0%,
    #1d150c 52%,
    #2c2012 82%,
    #38290f 100%);
  -webkit-mask: url("logo.svg") no-repeat center / contain;
          mask: url("logo.svg") no-repeat center / contain;
  /* A crisp warm highlight along the lower lip + a soft ambient shadow for depth. */
  filter:
    drop-shadow(0 3px 2px rgba(255,242,216,.30))
    drop-shadow(0 -1px 1px rgba(0,0,0,.85))
    drop-shadow(0 10px 20px rgba(0,0,0,.5));
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--accent-2); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.18; margin: 0 0 .5em; font-weight: 700; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
::selection { background: rgba(214,162,74,.28); color: #fff; }

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

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Keyboard focus (WCAG 2.4.7) ---------- */
a:focus-visible, button:focus-visible, .onramp-chip:focus-visible,
.filter:focus-visible, .brand-grid a:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }
:focus:not(:focus-visible) { outline: none; }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-weight: 600; font-size: 1.02rem; line-height: 1;
  padding: 15px 30px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .16s var(--ease), background .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { position: relative; overflow: hidden; background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px rgba(214,162,74,.24); }
.btn-primary:hover { background: var(--accent-2); color: var(--accent-ink); box-shadow: 0 12px 34px rgba(214,162,74,.34); }
/* Signature detail — a quiet gold sheen sweeps once across the primary CTA on hover, then resets instantly (clean exit) */
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 55%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent);
  transform: skewX(-18deg); transition: left 0s;
}
.btn-primary:hover::after { left: 150%; transition: left .6s var(--ease); }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: .92rem; }
.btn-block { width: 100%; }

/* ---------- Sticky CTA (reveals after hero) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(10,9,8,.82); backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-top: 1px solid rgba(214,162,74,.22);
  transform: translateY(100%); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.sticky-cta.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.sticky-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.sticky-cta-text strong { font-size: .98rem; font-weight: 600; color: var(--text); }
.sticky-cta .btn-sm { padding: 12px 24px; }
@media (max-width: 620px) { .sticky-cta-text { display: none; } .sticky-cta-inner { justify-content: center; } }

/* ---------- HCP / Rx notice bar (conspicuous top disclosure) ---------- */
.hcp-bar {
  background: #0b0c0e; border-bottom: 1px solid var(--line);
  color: var(--muted-2); font-size: .72rem; letter-spacing: .03em;
  text-align: center; padding: 7px 16px; line-height: 1.4;
}
.hcp-bar strong { color: var(--muted); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0,0,0,.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); }
.brand-logo { display: flex; align-items: center; cursor: pointer; }
.brand-logo:hover { text-decoration: none; }

/* Logo mark — official Isley Capital glyph (assets/logo.svg), masked so the
   gold gradient shows through the shape while staying crisp at any size.
   Shared size across header + footer for a consistent identity. */
.brand-mark {
  width: 32px; height: 54px; flex: none; display: block;
  background: linear-gradient(160deg, var(--accent-2) 0%, var(--accent) 45%, #b07f2e 100%);
  -webkit-mask: url("logo.svg") no-repeat center / contain;
          mask: url("logo.svg") no-repeat center / contain;
  transition: filter .2s var(--ease);
}
.brand-logo:hover .brand-mark { filter: brightness(1.32) drop-shadow(0 0 10px rgba(214,162,74,.35)); }

/* Header wordmark + descriptor */
.brand-text {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding-left: 14px; border-left: 1px solid var(--line-2);
}
.brand-text strong {
  font-size: 1.02rem; font-weight: 700; line-height: 1;
  letter-spacing: .24em; text-indent: .24em; color: var(--text);
}
.brand-sub {
  font-size: .58rem; font-weight: 600; line-height: 1;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2);
}

.main-nav { display: flex; align-items: center; }
.main-nav ul { display: flex; align-items: center; gap: 30px; list-style: none; }
.main-nav a { position: relative; color: var(--muted); font-size: .96rem; font-weight: 500; }
.main-nav a:hover { color: var(--text); text-decoration: none; }
.main-nav ul a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform: scaleX(0); transform-origin: left; opacity: 0;
  transition: transform .2s var(--ease), opacity .2s var(--ease);
}
.main-nav ul a.active { color: var(--text); }
.main-nav ul a.active::after { transform: scaleX(1); opacity: 1; }
.main-nav a.btn-primary { color: var(--accent-ink); }
.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 76px;
  background:
    radial-gradient(1000px 520px at 12% -12%, rgba(214,162,74,.12), transparent 60%),
    transparent;
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
}
.hero-inner { max-width: 860px; }

.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; color: var(--accent-2); font-weight: 700; margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.5rem); margin-bottom: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.03; }
.hero .accent { color: var(--accent-2); }
.lede { font-size: clamp(1.06rem, 1.6vw, 1.24rem); color: var(--muted); max-width: 640px; line-height: 1.6; }
.tagline { margin: 24px 0 0; font-size: clamp(.95rem, 1.8vw, 1.15rem); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.tagline span { color: var(--accent-2); }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 34px 0 0; }

/* Audience on-ramps — role-based entry into the site */
.hero-onramp { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 26px 0 0; }
.onramp-label { font-size: .82rem; color: var(--muted-2); font-weight: 600; letter-spacing: .04em; margin-right: 4px; }
.onramp-chip {
  font-size: .9rem; font-weight: 600; color: var(--text);
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.02); transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.onramp-chip:hover { border-color: var(--accent); color: var(--accent-2); background: rgba(214,162,74,.06); text-decoration: none; }

/* ---------- Section shells ---------- */
.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 14px; letter-spacing: -0.01em; }
.section-sub { color: var(--muted); max-width: 720px; margin-bottom: 44px; font-size: 1.04rem; }
.section-sub:has(+ .trust-strip), .section-sub:has(+ .territory-note) { margin-bottom: 18px; }
.continuum, .portfolio, .feature, .why, .pitch, .brands, .contact, .ordering { padding: 88px 0; }

/* ---------- Mid-page CTA band ---------- */
.mid-cta {
  margin-top: 56px; padding: 40px 32px; text-align: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(214,162,74,.08) 0%, transparent 60%),
    var(--card);
}
.mid-cta p { font-size: clamp(1.1rem, 2vw, 1.35rem); font-weight: 600; color: var(--text); margin-bottom: 22px; letter-spacing: -0.01em; }

/* ---------- Ordering & supply ---------- */
.portfolio { border-top: 1px solid var(--line); }
.ordering { border-top: 1px solid var(--line); }
.ordering-track {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px; list-style: none; counter-reset: order;
}
.ordering-step {
  position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 24px;
  transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.ordering-step::before {
  content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 70%);
  opacity: 0; transition: opacity .2s var(--ease);
}
.ordering-step:hover { border-color: var(--line-2); background: var(--bg-3); transform: translateY(-4px); }
.ordering-step:hover::before { opacity: 1; }
.ordering-num { font-size: .8rem; font-weight: 700; color: var(--accent-2); letter-spacing: .12em; }
.ordering-step h3 { font-size: 1.16rem; margin: 12px 0 10px; letter-spacing: -0.01em; }
.ordering-step p { color: var(--muted); font-size: .94rem; }

/* ---------- Care continuum ---------- */
.phase-track { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; list-style: none; text-align: left; }
.phase-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; position: relative; transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.phase-card::before {
  content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 2px;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  transform: scaleY(0); transform-origin: top; opacity: 0;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.phase-card:hover { border-color: var(--line-2); background: var(--bg-3); }
.phase-card:hover::before { transform: scaleY(1); opacity: 1; }
.phase-num { font-size: .8rem; font-weight: 700; color: var(--accent-2); letter-spacing: .12em; }
.phase-card h3 { font-size: 1.16rem; margin: 12px 0 10px; letter-spacing: -0.01em; }
.phase-card p { color: var(--muted); font-size: .94rem; margin-bottom: 16px; }
.phase-card a { font-weight: 600; font-size: .92rem; }
/* Momentum — the five phases reveal in sequence, letting the eye read 01 -> 05 as one continuous motion */
.js .phase-track .phase-card:nth-child(2) { transition-delay: .07s; }
.js .phase-track .phase-card:nth-child(3) { transition-delay: .14s; }
.js .phase-track .phase-card:nth-child(4) { transition-delay: .21s; }
.js .phase-track .phase-card:nth-child(5) { transition-delay: .28s; }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter {
  display: inline-flex; align-items: center; min-height: 44px;
  background: rgba(255,255,255,.03); color: var(--muted); border: 1px solid var(--line);
  padding: 10px 20px; border-radius: 999px; font-size: .94rem; font-weight: 600; cursor: pointer;
  transition: color .18s var(--ease), border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--line-2); }
.filter.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 8px 22px rgba(214,162,74,.24); }

/* Physician trust signal — restrained, evidence-forward */
.trust-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 0 0 36px; }
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.trust-strip span::before { content: "✓"; color: var(--accent-2); font-weight: 800; font-size: .82rem; }

/* Admin territory callout + rep urgency hook — shared quiet-gold cue */
.territory-note, .urgency-note {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .86rem; font-weight: 600; color: var(--accent-2);
}
.territory-note { margin: 0 0 38px; padding: 10px 18px; border-radius: 999px; border: 1px solid rgba(214,162,74,.28); background: rgba(214,162,74,.05); }
.urgency-note { margin-top: 22px; color: var(--muted); }
/* Two-tone subtitle treatment — bold gold lead-in, muted continuation (shared) */
.section-sub strong, .lede strong, .urgency-note strong, .contact-copy > p strong { color: var(--accent-2); font-weight: 700; }
.territory-note::before, .urgency-note::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(214,162,74,.16);
}
@media (max-width: 400px) { .territory-note { width: 100%; } }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; text-align: left; cursor: pointer; color: inherit; font: inherit;
  display: flex; flex-direction: column; gap: 12px; min-height: 232px;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.product-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(214,162,74,.35), 0 16px 38px rgba(214,162,74,.16); background: var(--bg-3); }
.product-card .tag {
  align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(214,162,74,.35); color: var(--accent-2);
  background: rgba(214,162,74,.06);
}
/* One restrained brand-gold treatment across every phase — differentiated by
   label text, not color, for a unified premium look. */
.tag.or, .tag.postop, .tag.office, .tag.device, .tag.equipment {
  color: var(--accent-2); border-color: rgba(214,162,74,.35);
}
.product-card h3 { font-size: 1.22rem; margin: 0; letter-spacing: -0.015em; }
.product-card .mfr { font-size: .82rem; color: var(--muted-2); }
.product-card .form { font-size: .92rem; color: var(--muted); margin: 0; }
.product-card .more { margin-top: auto; font-size: .9rem; font-weight: 600; color: var(--accent-2); }

/* ---------- MiniStim feature ---------- */
.feature { background: transparent; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.feature-copy h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.01em; }
.feature-list { list-style: none; margin: 24px 0 30px; display: grid; gap: 14px; }
.feature-list li { position: relative; padding-left: 30px; color: var(--muted); }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 800; }
.feature-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.feature-spec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.feature-spec:hover { border-color: var(--accent); box-shadow: inset 0 0 44px rgba(214,162,74,.12), 0 16px 38px rgba(0,0,0,.42); }
.feature-spec h3 { font-size: 1.08rem; margin-bottom: 16px; }
.feature-spec dl { display: grid; gap: 0; margin: 0; }
.feature-spec dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.feature-spec dl > div:last-child { border-bottom: 0; }
.feature-spec dt { color: var(--muted); font-size: .9rem; }
.feature-spec dd { margin: 0; font-weight: 600; font-size: .9rem; text-align: right; }
.spec-note { margin-top: 18px; font-size: .76rem; color: var(--muted-2); line-height: 1.5; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: border-color .2s var(--ease), transform .2s var(--ease); }
.why-card::after {
  content: ""; position: absolute; left: 26px; right: 26px; bottom: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform: scaleX(0); transform-origin: left; opacity: 0;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.why-card:hover { border-color: var(--line-2); transform: translateY(-4px); }
.why-card:hover::after { transform: scaleX(1); opacity: 1; }
.why-card h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
.why-card p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Brands / product lines ---------- */
.brands { background: transparent; border-top: 1px solid var(--line); }
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; }
.brand-grid a {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 5px; padding: 26px 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); height: 100%;
  color: var(--text); transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.brand-grid a::before {
  content: ""; position: absolute; top: 0; right: 0; width: 140px; height: 140px; pointer-events: none;
  background: radial-gradient(circle at top right, rgba(214,162,74,.24), transparent 68%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.brand-grid a:hover { border-color: var(--accent); transform: translateY(-4px); text-decoration: none; }
.brand-grid a:hover::before { opacity: 1; }
.brand-grid strong { position: relative; font-size: 1rem; }
.brand-grid span { font-size: .82rem; color: var(--muted); }
.brand-note { margin-top: 28px; color: var(--muted); font-size: .92rem; }

/* ---------- Contact ---------- */
.contact { background: transparent; border-top: 1px solid var(--line); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact-copy p { color: var(--muted); }
.contact-list { list-style: none; margin: 30px 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 14px; font-size: 1.04rem; }
.contact-list li > span {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; margin: 0; border-radius: 50%;
  background: rgba(214,162,74,.08); border: 1px solid rgba(214,162,74,.28);
  color: var(--accent-2); font-size: 1.02rem; line-height: 1;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.contact-list a { color: var(--text); font-weight: 600; }
.contact-list a:hover { color: var(--accent-2); }
.contact-list li:hover > span { border-color: var(--accent); background: rgba(214,162,74,.14); }
.contact-fineprint { font-size: .78rem; color: var(--muted-2); }

.lead-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; display: flex; flex-direction: column; }
.field label { font-size: .86rem; font-weight: 600; margin-bottom: 7px; }
.req { color: var(--accent-2); }
.field input, .field select, .field textarea {
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  color: var(--text); padding: 13px 15px; font: inherit; width: 100%;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(214,162,74,.16); }
.field textarea { resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.error { color: var(--err); font-size: .78rem; min-height: 1em; margin-top: 4px; }
.field.invalid input { border-color: var(--err); }
.form-status { text-align: center; font-weight: 600; margin: 16px 0 0; min-height: 1.2em; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
.form-consent { font-size: .74rem; color: var(--muted-2); margin: 16px 0 0; line-height: 1.5; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Partner page extras ---------- */
.subhero { padding: 44px 0 68px; }
.subhero .hero-inner { text-align: left; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 600; margin-bottom: 22px; }
.nav-current > a { color: var(--text) !important; }
.main-nav ul .nav-current > a:not(.btn)::after { transform: scaleX(1); opacity: 1; }
.looking-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.looking-list li { position: relative; padding: 20px 20px 20px 50px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: border-color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease); }
.looking-list li::before { content: "\2713"; position: absolute; left: 20px; top: 20px; color: var(--accent-2); font-weight: 800; }
.looking-list li:hover { border-color: var(--accent); background: var(--bg-3); transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(214,162,74,.35), 0 16px 38px rgba(214,162,74,.16); }
.pitch { background: transparent; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 720px) { .looking-list { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: rgba(11,12,14,.55); border-top: 1px solid var(--line); padding: 72px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1.15fr; gap: 40px 56px; padding-bottom: 44px; border-bottom: 1px solid var(--line); align-items: start; }
.footer-brand { display: flex; gap: 16px; align-items: center; }
.footer-brand > div { position: relative; display: flex; flex-direction: column; justify-content: center; padding-left: 16px; }
.footer-brand > div::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 1px; height: 50%; background: var(--line-2); }
.footer-brand strong { letter-spacing: .12em; line-height: 1.3; }
.footer-brand p { margin: 2px 0; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.footer-brand .brand-mark { width: 44px; height: 74px; }
.footer-states { color: var(--muted-2) !important; font-size: .84rem; letter-spacing: .03em; margin-top: 10px !important; }
.footer-states strong { color: var(--accent-2); font-weight: 700; }
.footer-h { font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent-2); font-weight: 700; margin: 2px 0 15px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; align-items: flex-start; }
.footer-col a { position: relative; color: var(--muted); font-size: .92rem; padding-bottom: 3px; }
.footer-col a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .2s var(--ease); opacity: .8;
}
.footer-col a:hover { color: var(--text); text-decoration: none; }
.footer-col a:hover::after { transform: scaleX(1); }
.footer-cta p { color: var(--muted); font-size: .9rem; line-height: 1.55; margin: 0 0 18px; max-width: 250px; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; gap: 30px; } }

.compliance { padding: 34px 0; }
.compliance h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 24px 0 8px; }
.compliance p { font-size: .78rem; color: var(--muted-2); line-height: 1.6; max-width: 980px; }
.compliance .hipaa { border-left: 2px solid var(--line-2); padding-left: 14px; }
.copyright { font-size: .78rem; color: var(--muted-2); margin: 20px 0 0; }

/* ---------- Modal ---------- */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-panel {
  position: relative; background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--radius-lg); max-width: 700px; width: 100%; max-height: 86vh; overflow-y: auto;
  box-shadow: var(--shadow); animation: pop .24s var(--ease);
}
@keyframes pop { from { transform: translateY(14px) scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close {
  position: sticky; top: 0; float: right; margin: 14px 14px 0 0;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--bg-3); color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; z-index: 2;
  transition: border-color .2s var(--ease);
}
.modal-close:hover { border-color: var(--accent); }
.modal-body { padding: 10px 40px 40px; }
.modal-body .tag { display: inline-block; margin-bottom: 14px; }
.modal-body h2 { font-size: 1.8rem; margin-bottom: 4px; letter-spacing: -0.02em; }
.modal-body .m-mfr { color: var(--muted); font-size: .9rem; margin-bottom: 4px; }
.modal-body .m-form { color: var(--text); font-weight: 600; margin-bottom: 4px; }
.modal-body .m-reg { color: var(--accent-2); font-size: .82rem; letter-spacing: .02em; margin-bottom: 22px; }
.modal-body h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 22px 0 8px; }
.modal-body ul { list-style: none; display: grid; gap: 9px; }
.modal-body ul li { position: relative; padding-left: 20px; color: var(--text); font-size: .94rem; }
.modal-body ul li::before { content: "•"; position: absolute; left: 4px; color: var(--accent-2); }
.modal-body .m-diff { background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; font-size: .9rem; color: var(--muted); }
.modal-body .m-note { font-size: .8rem; color: var(--muted-2); border-left: 2px solid var(--accent); padding-left: 12px; margin-top: 18px; }
.modal-body .m-reimb { font-size: .84rem; color: var(--muted); margin-top: 14px; }
.modal-cta { margin-top: 28px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .phase-track { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
  .continuum, .portfolio, .feature, .why, .pitch, .brands, .contact { padding: 84px 0; }
}
@media (max-width: 720px) {
  .continuum, .portfolio, .feature, .why, .pitch, .brands, .contact { padding: 64px 0; }
  .hero { padding: 84px 0 68px; }
  .brand-sub { display: none; }
  .brand-text { padding-left: 12px; }
  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
  .main-nav ul {
    position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(0,0,0,.96); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); padding: 8px 0;
    max-height: 0; overflow: hidden; transition: max-height .3s var(--ease);
  }
  .main-nav ul.open { max-height: 460px; }
  .main-nav li { width: 100%; padding: 0 24px; }
  .main-nav li a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); }
  .main-nav li:last-child a { border-bottom: 0; }
  .main-nav a.btn-primary { margin: 10px 0; }
  .main-nav ul a:not(.btn)::after { display: none; }
  .main-nav ul a.active { color: var(--accent-2); }
}
@media (max-width: 520px) {
  .phase-track, .why-grid, .product-grid, .brand-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .modal-body { padding: 10px 22px 28px; }
  .lead-form { padding: 26px 22px; }
  .feature-spec { padding: 26px 22px; }
  .mid-cta { padding: 32px 22px; }
  .product-card { padding: 26px 24px; min-height: 0; }
  .hero-cta .btn { flex: 1 1 100%; }
}
@media (max-width: 400px) {
  .feature-spec dl > div { flex-direction: column; gap: 3px; }
  .feature-spec dd { text-align: left; }
  .hero-onramp { gap: 8px; }
  .onramp-chip { flex: 1 1 auto; text-align: center; }
}

/* ---------- 404 / not found ---------- */
.notfound { min-height: calc(100vh - 200px); display: flex; align-items: center; }
.notfound-inner { max-width: 620px; }
.notfound .code { font-family: "Inter Tight", sans-serif; font-size: clamp(4.5rem, 14vw, 8rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; color: var(--accent-2); }
.notfound h1 { font-family: "Inter Tight", sans-serif; font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 700; margin: 14px 0 12px; }
.notfound p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; max-width: 500px; margin: 0 0 28px; }
.notfound p strong { color: var(--accent-2); font-weight: 700; }
.notfound-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}
