/* ============================================================================
   MASTER STYLESHEET
   ----------------------------------------------------------------------------
   Theme variables are injected from PHP config — see /includes/head.php
   This file contains:
     · Reset & base
     · Typography
     · Buttons
     · Layout primitives
     · Navigation (desktop + mobile)
     · Hero
     · Marquee
     · Section header
     · Features grid
     · Steps
     · Use cases
     · Comparison table
     · Metrics (animated counters)
     · Pricing
     · FAQ
     · Final CTA
     · Footer
     · Floating contact pill (Calendly + email)
     · Scroll-reveal animations
     · Mobile breakpoints
     · Accessibility helpers
     · Reduced-motion preference
   ============================================================================ */

:root {
  /* Theme variables get overridden by inline <style> from PHP — these are fallbacks */
  --bg: #ffffff;
  --bg-alt: #f7f7f6;
  --ink: #0a0a0a;
  --ink-soft: #1a1a1a;
  --muted: #6b6b6b;
  --muted-2: #a3a3a3;
  --line: #e8e8e6;
  --line-strong: #d4d4d2;
  --accent: #0a0a0a;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.06);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.06);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ----- RESET ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* Subtle fixed grain — premium feel */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ----- ACCESSIBILITY ----- */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  border-radius: 6px;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Visually hidden (for screen readers only) */
.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;
}

/* ----- LAYOUT ----- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ----- TYPOGRAPHY ----- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--ink);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

h1, h2, h3, h4 {
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink);
}
h1 { font-size: clamp(48px, 8.5vw, 112px); font-weight: 800; letter-spacing: -0.045em; }
h2 { font-size: clamp(36px, 5.5vw, 68px); font-weight: 700; letter-spacing: -0.04em; }
h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.02em; }
h4 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }

p { color: var(--ink-soft); }
.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--muted);
  line-height: 1.55;
  max-width: 640px;
  font-weight: 400;
}

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 999px;
  transition: all 0.3s var(--ease-out);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  min-height: 44px; /* tap target */
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn .arrow { transition: transform 0.3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================================================
   01 NAV
   ============================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.3s var(--ease-out);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.7);
}
.nav.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.logo-mark {
  width: 28px; height: 28px;
  background: var(--ink);
  border-radius: 8px;
  display: grid; place-items: center;
  position: relative;
  flex-shrink: 0;
}
.logo-mark::before {
  content: '';
  width: 12px; height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(-45deg);
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-cta .btn { padding: 10px 20px; font-size: 14px; min-height: 0; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: all 0.3s var(--ease-out);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px var(--gutter) 24px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--line);
}
.nav-mobile a {
  padding: 14px 0;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.nav-mobile a:last-child { border-bottom: none; margin-top: 12px; }
.nav-mobile .btn { justify-content: center; }

@media (max-width: 820px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile[hidden=""] { display: none; }
  .nav-mobile { display: flex; }
}

/* ============================================================================
   02 HERO
   ============================================================================ */
.hero { padding: 160px 0 100px; position: relative; overflow: hidden; }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--line-strong) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 100% 80% at center, black 50%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at center, black 50%, transparent 95%);
  opacity: 0.85;
  pointer-events: none;
}
/* Decorative side markers — fill the wide-screen empty zones with intent */
.hero::after {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background-image: linear-gradient(90deg, var(--line-strong) 50%, transparent 50%);
  background-size: 8px 1px;
  mask-image: linear-gradient(90deg, transparent, black 5%, black 20%, transparent 35%, transparent 65%, black 80%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 5%, black 20%, transparent 35%, transparent 65%, black 80%, black 95%, transparent);
  opacity: 0.4;
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }

/* Side decorations — visible only on wide screens, makes the empty side zones intentional */
.hero-inner::before,
.hero-inner::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 80px;
  height: 80px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.6;
}
.hero-inner::before {
  left: -120px;
  transform: translateY(-50%);
  background:
    radial-gradient(circle at center, var(--ink) 4px, transparent 5px),
    radial-gradient(circle, var(--line-strong) 1px, transparent 1px);
  background-size: 100% 100%, 12px 12px;
}
.hero-inner::after {
  right: -120px;
  transform: translateY(-50%);
  background:
    radial-gradient(circle, var(--line-strong) 1px, transparent 1px);
  background-size: 12px 12px;
}
@media (max-width: 1400px) {
  .hero-inner::before, .hero-inner::after { display: none; }
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  margin-bottom: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  overflow: hidden;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}
.badge {
  flex: 1 1 180px;
  padding: 14px 22px;
  text-align: left;
  border-right: 1px solid var(--line);
  transition: background 0.3s var(--ease-out);
}
.badge:last-child { border-right: none; }
.badge:hover { background: var(--bg-alt); }
.badge strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.badge span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 400;
}

.hero h1 { margin: 24px auto 24px; max-width: 14ch; }
.hero .lead { margin: 0 auto 40px; }
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 32px 0;
}
.stat { text-align: center; border-right: 1px solid var(--line); padding: 0 16px; }
.stat:last-child { border-right: none; }
.stat-value { font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -0.04em; color: var(--ink); line-height: 1; }
.stat-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 8px; }

/* Hero stagger reveal */
.hero-reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: heroReveal 0.9s var(--ease-out) forwards;
}
.hero-reveal:nth-child(1) { animation-delay: 0.05s; }
.hero-reveal:nth-child(2) { animation-delay: 0.20s; }
.hero-reveal:nth-child(3) { animation-delay: 0.35s; }
.hero-reveal:nth-child(4) { animation-delay: 0.50s; }
.hero-reveal:nth-child(5) { animation-delay: 0.65s; }
.hero-reveal:nth-child(6) { animation-delay: 0.80s; }
@keyframes heroReveal { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 760px) {
  .badge { flex: 1 1 50%; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .badge:nth-child(2n) { border-right: none; }
  .badge:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 460px) {
  .badge { flex: 1 1 100%; border-right: none !important; border-bottom: 1px solid var(--line) !important; }
  .badge:last-child { border-bottom: none !important; }
}
@media (max-width: 640px) {
  .hero { padding: 130px 0 80px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
  .stat:nth-child(3), .stat:nth-child(4) { padding-top: 24px; }
}

/* Compact hero variant for inner pages */
.hero-compact { padding: 140px 0 60px; }
.hero-compact .badge-row { display: none; }
.hero-compact h1 { font-size: clamp(40px, 6vw, 76px); max-width: 18ch; }
.hero-compact .hero-ctas { margin-bottom: 0; }
.hero-compact .hero-stats { display: none; }

/* ============================================================================
   03 MARQUEE
   ============================================================================ */
.marquee { padding: 60px 0; border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee-label { text-align: center; margin-bottom: 28px; }
.marquee-track { display: flex; gap: 64px; animation: scroll 32s linear infinite; width: max-content; align-items: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee-item { font-size: 24px; font-weight: 700; color: var(--muted-2); white-space: nowrap; letter-spacing: -0.03em; transition: color 0.3s; }
.marquee-item:hover { color: var(--ink); }

/* ============================================================================
   SECTION SHARED
   ============================================================================ */
.section { padding: 120px 0; }
.section-head { text-align: center; margin-bottom: 72px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { max-width: 18ch; margin: 0 auto 16px; }
.section-head .lead { margin: 0 auto; }

@media (max-width: 760px) { .section { padding: 80px 0; } }

/* ============================================================================
   04 FEATURES
   ============================================================================ */
.features { background: var(--bg-alt); }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature {
  padding: 40px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease-out);
  position: relative;
}
.feature:nth-child(3n) { border-right: none; }
.feature:nth-last-child(-n+3) { border-bottom: none; }
.feature:hover { background: var(--bg-alt); }
.feature-icon {
  width: 44px; height: 44px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.4s var(--ease-out), background 0.3s, color 0.3s;
  font-size: 20px;
  font-weight: 700;
}
.feature:hover .feature-icon { transform: rotate(-6deg) scale(1.05); background: var(--ink); color: #fff; }
.feature h3 { margin-bottom: 12px; }
.feature p { color: var(--muted); font-size: 15px; }

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3n) { border-right: 1px solid var(--line); }
  .feature:nth-child(2n) { border-right: none; }
  .feature:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .feature:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature { border-right: none !important; border-bottom: 1px solid var(--line) !important; padding: 32px 24px; }
  .feature:last-child { border-bottom: none !important; }
}

/* ============================================================================
   05 STEPS
   ============================================================================ */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.steps::before {
  content: '';
  position: absolute;
  top: 32px; left: 12%; right: 12%;
  height: 1px;
  background-image: linear-gradient(90deg, var(--ink) 50%, transparent 50%);
  background-size: 12px 1px;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-number {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--ink);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: all 0.4s var(--ease-out);
  position: relative;
}
.step-number::before {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.4s var(--ease-out);
}
.step:hover .step-number { background: var(--ink); color: #fff; }
.step:hover .step-number::before { opacity: 1; inset: -10px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; gap: 40px; } .steps::before { display: none; } }

/* ============================================================================
   06 USE CASES
   ============================================================================ */
.use-cases { background: var(--bg-alt); }
.usecase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.usecase {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 32px;
  position: relative;
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
}
.usecase::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--ink);
  transition: width 0.5s var(--ease-out);
}
.usecase:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.usecase:hover::before { width: 100%; }
.usecase-tag {
  position: absolute;
  top: 24px; right: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 4px 10px;
  border-radius: 999px;
}
.usecase h3 { font-size: 22px; margin: 64px 0 12px; }
.usecase p { font-size: 14px; color: var(--muted); }
.usecase.featured { grid-column: span 2; background: var(--ink); color: #fff; border-color: var(--ink); }
.usecase.featured h3, .usecase.featured p { color: #fff; }
.usecase.featured p { color: var(--muted-2); }
.usecase.featured .usecase-tag { color: #fff; border-color: rgba(255,255,255,0.3); }
.usecase.featured::before { background: #fff; }
@media (max-width: 900px) { .usecase-grid { grid-template-columns: repeat(2, 1fr); } .usecase.featured { grid-column: span 2; } }
@media (max-width: 560px) { .usecase-grid { grid-template-columns: 1fr; } .usecase.featured { grid-column: span 1; } }

/* ============================================================================
   07 COMPARE
   ============================================================================ */
.compare-wrap { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg); }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td { text-align: left; padding: 18px 24px; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare-table th { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--bg-alt); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .col-self { background: var(--ink); color: #fff; font-weight: 600; }
.compare-table .col-self-head { background: var(--ink) !important; color: #fff; }
.check { font-weight: 600; }
.cross { color: var(--muted-2); }
@media (max-width: 600px) {
  .compare-table th, .compare-table td { padding: 14px 16px; font-size: 13px; }
}

/* ============================================================================
   08 METRICS
   ============================================================================ */
.metrics { background: var(--ink); color: #fff; }
.metrics .section-head h2 { color: #fff; }
.metrics .section-head .lead { color: var(--muted-2); }
.metrics .eyebrow { color: var(--muted-2); }
.metrics .eyebrow .dot { background: #fff; }
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.metric { background: var(--ink); padding: 48px 32px; text-align: center; transition: background 0.3s; }
.metric:hover { background: #161616; }
.metric-value { font-size: clamp(46px, 6vw, 76px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.metric-suffix { font-size: 0.55em; color: var(--muted-2); margin-left: 4px; font-weight: 600; }
.metric-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-top: 16px; }
@media (max-width: 800px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================================
   09 PRICING
   ============================================================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tier {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all 0.4s var(--ease-out);
  position: relative;
  display: flex;
  flex-direction: column;
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tier.featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: scale(1.02);
}
.tier.featured:hover { transform: scale(1.02) translateY(-4px); }
.tier.featured h3, .tier.featured .tier-price { color: #fff; }
.tier.featured .tier-features li { color: var(--muted-2); }
.tier.featured .tier-features li::before { background: #fff; }
.tier-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: #fff;
  color: var(--ink);
  padding: 4px 10px;
  border-radius: 999px;
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 600;
}
.tier h3 { font-size: 22px; margin-bottom: 8px; }
.tier-desc { color: var(--muted); font-size: 13px; margin-bottom: 24px; min-height: 36px; }
.tier.featured .tier-desc { color: var(--muted-2); }
.tier-price { font-size: 44px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 4px; }
.tier-price-sub { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.tier.featured .tier-price-sub { color: var(--muted-2); }
.tier-features { margin-bottom: 28px; flex: 1; }
.tier-features li { font-size: 13.5px; padding: 10px 0 10px 22px; position: relative; color: var(--ink-soft); border-bottom: 1px solid var(--line); }
.tier.featured .tier-features li { border-color: rgba(255,255,255,0.1); }
.tier-features li:last-child { border-bottom: none; }
.tier-features li::before { content: ''; position: absolute; left: 0; top: 17px; width: 12px; height: 1px; background: var(--ink); }
.tier .btn { width: 100%; justify-content: center; }
.tier.featured .btn-primary { background: #fff; color: var(--ink); }
@media (max-width: 1000px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } .tier.featured { transform: none; } .tier.featured:hover { transform: translateY(-4px); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   10 FAQ
   ============================================================================ */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 48px 24px 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  position: relative;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0; top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  font-weight: 300;
  transition: transform 0.3s var(--ease-out);
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--muted); }
.faq-body { padding: 0 48px 24px 0; color: var(--muted); font-size: 15px; line-height: 1.7; }

/* ============================================================================
   11 FINAL CTA
   ============================================================================ */
.final-cta {
  text-align: center;
  padding: 140px 0;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: attr(data-watermark);
  position: absolute;
  bottom: -50px; left: 50%;
  transform: translateX(-50%);
  font-size: clamp(120px, 22vw, 320px);
  font-weight: 800;
  color: var(--bg-alt);
  letter-spacing: -0.05em;
  z-index: 0;
  pointer-events: none;
  line-height: 0.85;
  white-space: nowrap;
}
.final-cta-inner { position: relative; z-index: 1; }
.final-cta h2 { max-width: 18ch; margin: 0 auto 24px; }
.final-cta .lead { margin: 0 auto 40px; }
.final-cta .hero-ctas { margin-bottom: 0; }

/* ============================================================================
   12 FOOTER
   ============================================================================ */
.footer { padding: 80px 0 40px; background: var(--ink); color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 64px; }
.footer-brand p { color: var(--muted-2); font-size: 14px; max-width: 320px; margin-top: 16px; line-height: 1.6; }
.footer-brand .logo { color: #fff; }
.footer-brand .logo-mark { background: #fff; }
.footer-brand .logo-mark::before { border-color: var(--ink); border-right-color: transparent; border-bottom-color: transparent; }
.footer-social { display: flex; gap: 16px; margin-top: 20px; }
.footer-social a { font-size: 13px; color: #fff; opacity: 0.7; transition: opacity 0.2s; padding: 6px 12px; border: 1px solid rgba(255,255,255,0.15); border-radius: 999px; }
.footer-social a:hover { opacity: 1; }
.footer-col h4 { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14px; color: #fff; opacity: 0.7; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--muted-2);
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ============================================================================
   FLOATING CONTACT PILL — bottom right, always visible
   ============================================================================ */
.floating-cta {
  position: fixed;
  right: 24px;
  bottom: calc(24px + var(--safe-bottom));
  z-index: 90;
  transition: transform 0.4s var(--ease-out), opacity 0.3s;
}
.floating-cta.is-hidden {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.fc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s var(--ease-out);
  min-height: 48px;
}
.fc-toggle:hover { transform: translateY(-2px); box-shadow: 0 32px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06); }
.fc-toggle .fc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-out);
}
.floating-cta.is-open .fc-toggle .fc-icon { transform: rotate(45deg); }
.floating-cta.is-open .fc-toggle .fc-icon svg path { d: path("M12 5v14M5 12h14"); }
.fc-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.floating-cta.is-open .fc-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.fc-option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 8px;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: var(--ink);
}
.fc-option:hover { background: var(--bg-alt); }
.fc-option-title { font-weight: 600; font-size: 14px; color: var(--ink); }
.fc-option-sub { font-size: 12px; color: var(--muted); }

@media (max-width: 600px) {
  .floating-cta { right: 16px; bottom: calc(16px + var(--safe-bottom)); }
  .fc-toggle .fc-label { display: none; }
  .fc-toggle { padding: 14px; width: 52px; height: 52px; justify-content: center; }
  .fc-panel { min-width: calc(100vw - 32px); right: 0; }
}

/* ============================================================================
   SCROLL REVEAL
   ============================================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.20s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.30s; }

/* ============================================================================
   CONTACT PAGE
   ============================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1000px;
  margin: 0 auto;
}
.contact-info h3 { font-size: 28px; margin-bottom: 16px; }
.contact-info p { color: var(--muted); margin-bottom: 24px; }
.contact-method {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-method:last-child { border-bottom: none; }
.contact-method-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-method strong { font-size: 17px; font-weight: 600; }
.contact-form {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  transition: border 0.2s;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-color: var(--ink);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 8px; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .contact-form { padding: 24px; }
}

/* ============================================================================
   404
   ============================================================================ */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
}
.error-page h1 { font-size: clamp(80px, 14vw, 200px); }
.error-page h2 { font-size: clamp(24px, 3vw, 32px); margin: 8px 0 24px; }

/* ============================================================================
   REDUCED MOTION
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-reveal { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
  .reveal-stagger > * { opacity: 1; transform: none; }
}

/* ============================================================================
   PRINT
   ============================================================================ */
@media print {
  .nav, .footer, .floating-cta, .marquee { display: none !important; }
  .hero { padding: 20px 0; }
  body { color: #000; background: #fff; }
}

/* ============================================================================
   MedLens — currency switch + per-document pricing
   ============================================================================ */
.currency-switch { display:flex; gap:4px; justify-content:center; margin:0 auto 36px; padding:4px; background:var(--bg-alt); border:1px solid var(--line); border-radius:999px; width:max-content; }
.currency-btn { border:0; background:transparent; font:inherit; font-size:13px; font-weight:600; color:var(--muted); padding:8px 18px; border-radius:999px; cursor:pointer; transition:background .2s ease, color .2s ease; letter-spacing:.02em; }
.currency-btn:hover { color:var(--ink); }
.currency-btn.is-active { background:var(--ink); color:#fff; }
.price-amount { display:none; }
.price-amount.is-active { display:inline; }
.tier-price-unit { font-size:13px; color:var(--muted); margin-top:2px; }
.tier.featured .tier-price-unit { color:var(--muted-2); }
.tier-save { display:inline-block; margin-top:10px; font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--accent); background:rgba(15,118,110,.10); padding:3px 9px; border-radius:999px; }
.tier.featured .tier-save { color:#fff; background:rgba(255,255,255,.16); }
.tier-price-sub { margin-top:14px; }
.pricing-grid-3 { grid-template-columns:repeat(3,1fr); max-width:980px; margin-inline:auto; }
@media (max-width:1000px){ .pricing-grid-3 { grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .pricing-grid-3 { grid-template-columns:1fr; } }

/* ============================================================================
   MedLens — compact hero, exec trust signals, customisation, data protection
   ============================================================================ */

/* Smaller hero headline (2 lines), tighter rhythm */
.hero { padding: 116px 0 60px; }
.hero h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.14; font-weight: 750; letter-spacing: -0.02em; max-width: 22ch; margin: 18px auto 18px; }
.hero .lead { font-size: clamp(15px, 1.25vw, 18px); max-width: 62ch; margin: 0 auto 30px; }
.hero-compact { padding: 116px 0 40px; }
.hero-compact h1 { font-size: clamp(28px, 4vw, 46px); max-width: 20ch; }
.section { padding: 84px 0; }
.section-head { margin-bottom: 52px; }

/* Trust strip */
.trustbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.trustbar-inner { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; align-items: center; padding: 16px var(--gutter); }
.trustbar-item { font-size: 12.5px; font-weight: 600; color: var(--ink); position: relative; padding-left: 20px; }
.trustbar-item::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--accent); font-weight: 800; }

/* Customisation cards */
.custom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.custom-card { border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: var(--bg); transition: transform .2s ease, box-shadow .2s ease; }
.custom-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.custom-card h3 { margin-bottom: 10px; }
.custom-card p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 900px) { .custom-grid { grid-template-columns: 1fr; } }

/* Pricing: per-page note + coverage line + currency-aware inline values */
.cur-val { display: none; }
.cur-val.is-active { display: inline; }
.pricing-note { text-align: center; max-width: 700px; margin: 28px auto 0; font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.pricing-note strong { color: var(--ink); font-weight: 700; }
.tier-covers { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.tier.featured .tier-covers { color: var(--muted-2); }

/* Data protection page */
.sec-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 980px; margin-inline: auto; }
.sec-card { border: 1px solid var(--line); border-radius: 16px; padding: 30px; background: var(--bg); }
.sec-card h3 { margin-bottom: 10px; }
.sec-card > p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.sec-card ul { margin-top: 14px; }
.sec-card li { font-size: 14px; color: var(--ink-soft); padding: 8px 0 8px 20px; position: relative; }
.sec-card li::before { content: ''; position: absolute; left: 0; top: 15px; width: 11px; height: 1px; background: var(--accent); }
@media (max-width: 760px) { .sec-two { grid-template-columns: 1fr; } }

/* Full-site compact view on mobile */
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .section-head { margin-bottom: 32px; }
  .hero { padding: 92px 0 40px; }
  .hero h1 { font-size: clamp(22px, 6.6vw, 30px); max-width: 24ch; margin: 14px auto 14px; }
  .hero .lead { font-size: 15px; margin-bottom: 24px; }
  .hero-compact { padding: 92px 0 26px; }
  .hero-stats { gap: 16px; }
  h2 { font-size: clamp(24px, 7vw, 30px); }
  .tier { padding: 24px; }
  .trustbar-inner { gap: 8px 16px; padding: 12px var(--gutter); }
  .trustbar-item { font-size: 11.5px; padding-left: 16px; }
  .custom-card, .sec-card { padding: 22px; }
  .faq-body { padding-right: 0; }
}

/* ============================================================================
   MedLens — accuracy / evaluation + disclaimer
   ============================================================================ */
.accuracy-wrap { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: center; max-width: 980px; margin: 0 auto; }
.accuracy-score { text-align: center; border: 1px solid var(--line); border-radius: 20px; padding: 34px 20px; background: var(--bg-alt); }
.accuracy-num { font-size: clamp(46px, 7vw, 66px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.accuracy-num-label { font-size: 13px; color: var(--muted); margin-top: 10px; }
.accuracy-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.accuracy-metric { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.am-name { display: block; font-weight: 700; font-size: 15px; color: var(--ink); }
.am-desc { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; line-height: 1.5; }
.accuracy-note { max-width: 820px; margin: 26px auto 0; text-align: center; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
@media (max-width: 760px) { .accuracy-wrap, .accuracy-metrics { grid-template-columns: 1fr; } }

.footer-disclaimer { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); color: var(--muted-2); font-size: 12px; line-height: 1.65; max-width: 920px; }

/* ============================================================================
   MedLens — review modes, context USP, accuracy tooltip, demo page
   ============================================================================ */

/* Review modes */
.modes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mode-card { position: relative; border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: var(--bg); transition: transform .2s ease, box-shadow .2s ease; }
.mode-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mode-num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 14px; }
.mode-card h3 { margin-bottom: 8px; }
.mode-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 900px) { .modes-grid { grid-template-columns: 1fr; } }

/* Context USP */
.context-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.context-card { border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 14px; padding: 24px; background: var(--bg-alt); }
.context-card h3 { font-size: 18px; margin-bottom: 8px; }
.context-card p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.context-audiences { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; justify-content: center; }
.ca-label { font-size: 13px; font-weight: 700; color: var(--ink); margin-right: 4px; }
.ca-chip { font-size: 13px; font-weight: 600; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; }
@media (max-width: 900px) { .context-grid { grid-template-columns: 1fr; } }

/* Accuracy / metric info tooltip */
.am-info { position: relative; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 6px; border-radius: 50%; border: 1px solid var(--muted); background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; font-style: italic; cursor: help; vertical-align: middle; }
.am-tip { position: absolute; bottom: 140%; left: 50%; transform: translateX(-50%); width: 240px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 400; font-style: normal; line-height: 1.5; padding: 10px 12px; border-radius: 10px; opacity: 0; pointer-events: none; transition: opacity .15s ease; z-index: 20; text-align: left; box-shadow: var(--shadow-md); }
.am-tip::after { content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-top-color: var(--ink); }
.am-info:hover .am-tip, .am-info:focus .am-tip, .am-info:focus-visible .am-tip { opacity: 1; }

/* ---------------- DEMO PAGE ---------------- */
.demo-notice { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: var(--bg-alt); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; padding: 18px 22px; margin: 8px 0 8px; }
.demo-notice div { font-size: 14px; color: var(--ink); line-height: 1.55; }
.demo-notice .btn { white-space: nowrap; }
.demo-section { padding: 56px 0; }
.demo-step { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 22px; }
.demo-stepnum { flex-shrink: 0; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--ink); color: #fff; font-weight: 700; }
.demo-h { font-size: clamp(22px, 3vw, 30px); }
.demo-sub { color: var(--muted); margin-top: 4px; font-size: 15px; }
.demo-panel { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--bg); box-shadow: var(--shadow-sm); }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.demo-field select, .demo-input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; color: var(--ink); background: var(--bg); }
.demo-field select:disabled, .demo-input[readonly] { opacity: 1; cursor: default; }
.demo-input { margin-top: 10px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px; }
.seg-btn { font-size: 13px; font-weight: 600; color: var(--muted); padding: 8px 16px; border-radius: 999px; }
.seg-btn.is-active { background: var(--ink); color: #fff; }
.demo-drop { border: 1.5px dashed var(--line); border-radius: 14px; padding: 26px; text-align: center; background: var(--bg-alt); }
.demo-drop.sm { padding: 20px; }
.demo-drop-title { font-weight: 700; color: var(--ink); }
.demo-drop-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.fmt-chips, .demo-twoup { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.demo-twoup { margin-top: 0; }
.demo-twoup .demo-drop { flex: 1; min-width: 180px; }
.fmt-chip { font-size: 12px; font-weight: 600; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
.mode-tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; width: max-content; margin-bottom: 18px; }
.mode-tab { font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 9px 18px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; }
.mode-tab.is-active { background: var(--ink); color: #fff; }
.mode-pane { display: none; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.mode-pane.is-active { display: block; }
.addon-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); background: rgba(15,118,110,.1); padding: 2px 8px; border-radius: 999px; margin-left: 6px; }
.lit-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.lit-input { flex: 1; min-width: 240px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; color: var(--ink); background: var(--bg); }
.lit-btn { white-space: nowrap; }
.lit-results { margin-top: 14px; display: grid; gap: 8px; }
.lit-ref { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; color: var(--ink); }
.lit-ref em { color: var(--muted); font-style: normal; }
.lit-add { font-size: 13px; font-weight: 700; color: var(--accent); white-space: nowrap; cursor: pointer; }
.run-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.metric-strip { display: flex; gap: 18px; flex-wrap: wrap; }
.metric-chip { font-size: 14px; color: var(--ink); }
.metric-chip strong { font-size: 18px; }
.matrix-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.matrix { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.matrix thead th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.matrix td { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); vertical-align: top; line-height: 1.5; }
.matrix tr:last-child td { border-bottom: none; }
.matrix .mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.matrix .fix { color: var(--accent); font-weight: 600; }
.sev { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; letter-spacing: .03em; }
.sev-high { color: #fff; background: #c0392b; }
.sev-med { color: #fff; background: #c07a1f; }
.sev-low { color: var(--ink); background: var(--line); }
.fb { white-space: nowrap; }
.fb-btn { width: 26px; height: 26px; border: 1px solid var(--line); background: var(--bg); border-radius: 7px; cursor: pointer; color: var(--muted); margin-left: 4px; font-size: 13px; }
.fb-btn:hover { border-color: var(--accent); color: var(--accent); }
.out-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.out-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.out-btn { padding: 10px 18px; }
.fb-note { font-size: 12.5px; color: var(--muted); margin-left: auto; }
.demo-disclaimer { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.6; }
@media (max-width: 640px) { .demo-section { padding: 40px 0; } .demo-panel { padding: 20px; } .fb-note { margin-left: 0; } }

/* ============================================================================
   MedLens — ROI calculator
   ============================================================================ */
.roi-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 16px; max-width: 980px; margin: 0 auto; align-items: start; }
.roi-inputs, .roi-results { border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: var(--bg); }
.roi-results { background: var(--bg-alt); }
.roi-inputs h3, .roi-results h3 { font-size: 16px; margin-bottom: 20px; }
.roi-field { margin-bottom: 18px; }
.roi-field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.roi-field input[type="number"] { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 15px; color: var(--ink); background: var(--bg); }
.roi-field input[type="range"] { width: 100%; accent-color: var(--accent); }
.roi-hint { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.roi-headline { text-align: center; padding: 8px 0 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.roi-big { font-size: clamp(36px, 6vw, 52px); font-weight: 800; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.roi-big.is-neg { color: var(--muted); }
.roi-big-label { font-size: 13px; color: var(--muted); margin-top: 8px; }
.roi-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.roi-card { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; text-align: center; }
.roi-card-val { display: block; font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.roi-card-lbl { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.roi-return { text-align: center; font-size: 14px; font-weight: 600; color: var(--ink); margin-top: 16px; min-height: 20px; }
.roi-ctas { display: flex; gap: 10px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.roi-disclaimer { max-width: 820px; margin: 26px auto 0; text-align: center; font-size: 12.5px; color: var(--muted); line-height: 1.65; }
.pricing-roi-link { text-align: center; margin-top: 12px; font-size: 14px; font-weight: 600; }
@media (max-width: 820px) { .roi-wrap { grid-template-columns: 1fr; } }

/* ============================================================================
   MedLens — interactive demo app shell
   ============================================================================ */
.app { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--bg); box-shadow: var(--shadow-md); margin-top: 8px; }

/* Login */
.app-login { min-height: 560px; display: grid; place-items: center; background: var(--bg-alt); padding: 40px 20px; }
.app-login-card { width: 100%; max-width: 380px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow-sm); }
.app-logo { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.app-logo.lg { font-size: 26px; }
.app-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #fff; background: var(--accent); padding: 3px 8px; border-radius: 999px; vertical-align: middle; margin-left: 4px; }
.app-login-sub { color: var(--muted); font-size: 14px; margin: 14px 0 20px; }
.app-login-card label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin: 12px 0 6px; }
.app-login-card input { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 14px; color: var(--ink); background: var(--bg); }
.app-w { width: 100%; justify-content: center; margin-top: 18px; }
.app-login-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }

/* Shell */
.app-shell { display: flex; min-height: 600px; }
.app-side { width: 232px; flex-shrink: 0; background: var(--ink); color: #fff; padding: 20px 16px; display: flex; flex-direction: column; }
.app-side .app-logo { color: #fff; margin-bottom: 22px; padding-left: 6px; }
.app-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.app-link { display: flex; align-items: center; gap: 10px; text-align: left; background: transparent; border: 0; color: rgba(255,255,255,0.75); padding: 11px 12px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .15s ease, color .15s ease; }
.app-link span { width: 18px; text-align: center; opacity: .85; }
.app-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.app-link.is-active { background: var(--accent); color: #fff; }
.app-logout { display: flex; align-items: center; gap: 10px; background: transparent; border: 0; color: rgba(255,255,255,0.6); padding: 11px 12px; border-radius: 10px; font: inherit; font-size: 14px; cursor: pointer; margin-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; }
.app-logout span { width: 18px; text-align: center; }
.app-logout:hover { color: #fff; }
.app-mainw { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.app-topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--line); }
.app-title { font-weight: 700; color: var(--ink); }
.app-user { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.app-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.app-body { padding: 24px; overflow-y: auto; max-height: 640px; }
.app-screen { display: none; }
.app-screen.is-active { display: block; }
.app-h { font-size: 22px; margin-bottom: 18px; }
.app-pill { font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); padding: 3px 10px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.app-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.app-stat { border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: center; background: var(--bg-alt); }
.app-stat-v { display: block; font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.app-stat-l { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.app-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px; margin-bottom: 14px; background: var(--bg); }
.app-card h3 { font-size: 16px; margin-bottom: 12px; }
.app-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-card-head h3 { margin-bottom: 0; }
.app-muted { color: var(--muted); font-size: 14px; line-height: 1.6; }
.app-recent, .app-list { list-style: none; }
.app-recent li, .app-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.app-recent li:last-child, .app-list li:last-child { border-bottom: none; }
.app-ok { color: var(--accent); font-weight: 700; font-size: 13px; }
.app-learning { color: var(--muted); font-size: 13px; }
.brand-row { display: flex; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.brand-row:last-child { border-bottom: none; }
.brand-lbl { width: 80px; font-weight: 600; font-size: 13px; color: var(--ink); }
.sw { width: 26px; height: 26px; border-radius: 6px; display: inline-block; }

@media (max-width: 820px) {
  .app-shell { flex-direction: column; }
  .app-side { width: auto; flex-direction: row; align-items: center; gap: 6px; overflow-x: auto; padding: 12px; }
  .app-side .app-logo { display: none; }
  .app-nav { flex-direction: row; flex: 1; gap: 4px; }
  .app-link { white-space: nowrap; padding: 9px 12px; }
  .app-link span { display: none; }
  .app-logout { margin-top: 0; border-top: 0; padding-top: 11px; padding-bottom: 11px; white-space: nowrap; }
  .app-logout span { display: none; }
  .app-body { max-height: none; padding: 18px; }
  .app-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================================
   MedLens — multi-page demo app shell (standalone pages)
   ============================================================================ */
.app-side a, .app-logo, .app-logout, .app-login-back a { text-decoration: none; }
.app-standalone { margin: 16px 0 28px; }
.app-standalone .app-shell { min-height: 72vh; }
.app-standalone .app-body { max-height: none; overflow: visible; }
.demo-bar { background: var(--ink); color: #fff; }
.demo-bar-in { display: flex; gap: 14px; justify-content: center; align-items: center; padding: 10px var(--gutter); font-size: 13px; flex-wrap: wrap; }
.demo-bar strong { color: #fff; }
.demo-bar a { color: #fff; text-decoration: underline; font-weight: 600; }
.app-login-page { min-height: 74vh; display: grid; place-items: center; padding: 44px 20px; }
.app-login-back { text-align: center; margin-top: 12px; font-size: 13px; }
.app-login-back a { color: var(--muted); }
.demo-foot { padding: 26px var(--gutter) 40px; }
.demo-foot .container { font-size: 12px; color: var(--muted); line-height: 1.6; text-align: center; max-width: 900px; }

/* ============================================================================
   MedLens DEMO — monochrome (B&W), full-screen relayout  [scoped to .app-page]
   ============================================================================ */
body.app-page{
  --ink:#161616; --accent:#161616; --bg:#ffffff; --bg-alt:#f4f4f5;
  --muted:#6b7280; --muted-2:#9ca3af; --line:#e4e4e7;
  background:#ffffff;
}

/* full-bleed shell */
.demo-bar-in{ display:flex; gap:14px; justify-content:space-between; align-items:center; padding:9px 32px; font-size:12.5px; flex-wrap:wrap; max-width:none; }
.app-fs{ display:flex; align-items:stretch; min-height:calc(100vh - 44px); width:100%; }
.app-side{ width:236px; flex-shrink:0; background:var(--ink); color:#fff; padding:22px 14px; display:flex; flex-direction:column; }
.app-side .app-badge{ background:#fff; color:var(--ink); }
.app-page .app-link.is-active{ background:#fff; color:var(--ink); }
.app-page .app-link.is-active span{ opacity:1; }
.app-mainw{ flex:1; min-width:0; display:flex; flex-direction:column; background:#fff; }
.app-topbar{ position:sticky; top:0; z-index:5; background:#fff; display:flex; align-items:center; justify-content:space-between; padding:16px 32px; border-bottom:1px solid var(--line); }
.app-body{ flex:1; padding:28px 32px; max-height:none; overflow:visible; }
.app-foot-note{ margin-top:26px; padding-top:16px; border-top:1px solid var(--line); font-size:12px; color:var(--muted); line-height:1.6; max-width:920px; }
.app-login-page{ min-height:calc(100vh - 44px); }

/* monochrome severity + tags */
.app-page .sev-high{ background:var(--ink); color:#fff; }
.app-page .sev-med{ background:var(--muted); color:#fff; }
.app-page .sev-low{ background:var(--line); color:var(--ink); }
.app-page .addon-tag{ color:var(--ink); background:#ededed; }

/* clickable affordances */
.app-page .seg-btn, .app-page .mode-tab, .app-page .lit-add, .app-page .fb-btn, .app-page .demo-drop, .app-recent a, .app-list a{ cursor:pointer; }
.fb-btn.fb-on{ background:var(--ink); color:#fff; border-color:var(--ink); }
.lit-add.added{ color:var(--muted); }
#run-btn:disabled{ opacity:.7; cursor:default; }

/* run -> results */
.run-pre{ display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.run-hint{ font-size:13px; color:var(--muted); }
.results-summary{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:18px; padding-bottom:16px; border-bottom:1px solid var(--line); }
.rs-count{ font-weight:800; font-size:18px; color:var(--ink); letter-spacing:-.02em; }
.rs-chip{ font-size:12px; font-weight:700; padding:4px 11px; border-radius:999px; }
.rs-metrics{ margin-left:auto; display:flex; gap:16px; align-items:center; }

/* dashboard */
.app-cta .app-card-head{ align-items:center; }
.app-cols{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.app-recent a, .app-list a{ display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; text-decoration:none; color:inherit; }
.app-recent a:hover{ color:var(--ink); }
.bar-row{ display:grid; grid-template-columns:64px 1fr 46px; align-items:center; gap:10px; margin:11px 0; font-size:13px; color:var(--ink); }
.bar-row .bar-num{ text-align:right; color:var(--muted); font-variant-numeric:tabular-nums; }
.bar-track{ background:var(--bg-alt); border-radius:999px; height:10px; overflow:hidden; }
.bar-fill{ display:block; height:100%; border-radius:999px; background:var(--ink); }

@media (max-width: 860px){
  .app-fs{ flex-direction:column; min-height:0; }
  .app-side{ width:auto; flex-direction:row; align-items:center; gap:6px; overflow-x:auto; padding:10px 12px; }
  .app-side .app-logo{ display:none; }
  .app-nav{ flex-direction:row; gap:4px; flex:1; }
  .app-link span{ display:none; }
  .app-link{ white-space:nowrap; padding:9px 12px; }
  .app-logout{ margin-top:0; border-top:0; padding:9px 12px; white-space:nowrap; }
  .app-logout span{ display:none; }
  .app-topbar{ padding:14px 18px; }
  .app-body{ padding:18px; }
  .app-cols{ grid-template-columns:1fr; }
  .app-stats{ grid-template-columns:repeat(2,1fr); }
  .demo-bar-in{ padding:9px 16px; }
  .rs-metrics{ margin-left:0; width:100%; }
}
