/* ============================================================
   Focus EHR — marketing site styles
   Locked to the in-app design system (Geist / Instrument Serif /
   JetBrains Mono · sage brand · warm off-white surfaces).
   ============================================================ */

:root {
  --brand:        oklch(0.38 0.05 155);
  --brand-hover:  oklch(0.33 0.055 155);
  --brand-soft:   oklch(0.94 0.025 155);
  --brand-softer: oklch(0.97 0.015 155);
  --brand-ink:    oklch(0.22 0.03 155);
  --brand-deep:   oklch(0.24 0.04 155);

  --bg:            oklch(0.985 0.004 85);
  --bg-warm:       oklch(0.97 0.008 85);
  --surface:       oklch(1 0 0);
  --surface-sunk:  oklch(0.975 0.004 85);
  --line:          oklch(0.92 0.005 85);
  --line-strong:   oklch(0.86 0.006 85);
  --ink-1: oklch(0.22 0.01 85);
  --ink-2: oklch(0.42 0.01 85);
  --ink-3: oklch(0.58 0.008 85);
  --ink-4: oklch(0.72 0.006 85);

  --tone-sage:     oklch(0.92 0.04 155); --tone-sage-ink:   oklch(0.36 0.06 155);
  --tone-sky:      oklch(0.92 0.04 235); --tone-sky-ink:    oklch(0.36 0.06 235);
  --tone-amber:    oklch(0.92 0.04 75);  --tone-amber-ink:  oklch(0.36 0.06 75);
  --tone-rose:     oklch(0.92 0.04 20);  --tone-rose-ink:   oklch(0.36 0.06 20);
  --tone-violet:   oklch(0.92 0.04 300); --tone-violet-ink: oklch(0.36 0.06 300);

  --ok:    oklch(0.55 0.11 155);
  --ok-bg: oklch(0.94 0.04 155);
  --warn:  oklch(0.7 0.13 75);
  --alert: oklch(0.6 0.16 30);

  --radius:    10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.04), 0 1px 1px oklch(0 0 0 / 0.03);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.06), 0 1px 2px oklch(0 0 0 / 0.04);
  --shadow-lg: 0 16px 40px oklch(0 0 0 / 0.10), 0 2px 6px oklch(0 0 0 / 0.05);

  --max:  1200px;
  --maxw: 1280px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  color: var(--ink-1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -0.005em;
  line-height: 1.5;
  text-wrap: pretty;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.serif { font-family: 'Instrument Serif', Georgia, serif; }

/* =====================  NAV  ===================== */
.nav {
  position: sticky; top: 0; z-index: 60;
  height: var(--nav-h);
  background: oklch(0.985 0.004 85 / 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  height: 100%;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none;
  color: var(--ink-1);
}
.brand-logo {
  height: 22px;
  width: auto;
  display: block;
}
.brand-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 3px 7px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  line-height: 1;
  position: relative;
  top: 0px;
}
.footer .brand-logo { height: 26px; }
.footer .brand-tag { color: var(--ink-2); }

.nav-links { display: flex; gap: 4px; align-items: center; flex: 1; }
.nav-link {
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 5px;
  transition: all 120ms;
}
.nav-link:hover { color: var(--ink-1); background: var(--surface-sunk); }
.nav-link.current { color: var(--brand-ink); }
.nav-link.current::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: -22px;
  height: 2px; background: var(--brand); border-radius: 2px;
}
.nav-link .caret { font-size: 9px; color: var(--ink-4); margin-left: 2px; }

.nav-mega-wrap { position: relative; }
.nav-mega {
  display: none;
  position: absolute; top: calc(100% + 14px); left: -8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 12px;
  min-width: 540px;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.nav-mega-wrap:hover .nav-mega,
.nav-mega-wrap:focus-within .nav-mega { display: grid; }
.nav-mega a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  align-items: flex-start;
  transition: background 120ms;
}
.nav-mega a:hover { background: var(--brand-softer); }
.nav-mega .glyph {
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
}
.nav-mega .t { font-size: 13.5px; font-weight: 550; color: var(--ink-1); }
.nav-mega .d { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.4; }

.nav-cta { display: flex; gap: 8px; align-items: center; }

/* =====================  BUTTONS  ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 550;
  color: var(--ink-1);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all 140ms ease;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.btn:hover { background: var(--surface-sunk); border-color: var(--line-strong); }
.btn.primary {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.18), 0 1px 2px oklch(from var(--brand) l c h / 0.35);
}
.btn.primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.2), 0 6px 18px oklch(from var(--brand) l c h / 0.3);
}
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { color: var(--ink-1); background: var(--surface-sunk); }
.btn.lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn .arrow { transition: transform 140ms; }
.btn:hover .arrow { transform: translateX(2px); }

/* =====================  TYPOGRAPHY  ===================== */
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: ""; width: 16px; height: 1px; background: var(--brand); display: inline-block;
}
.eyebrow.center::before { display: none; }

h1.display, h2.display {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ink-1);
}
h1.display em, h2.display em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--brand);
}

h2.section {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
}
h2.section em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
  letter-spacing: -0.01em;
}

h3.card-title {
  font-family: 'Geist', sans-serif;
  font-weight: 550;
  font-size: 17px;
  letter-spacing: -0.012em;
  margin: 0;
}

.lede {
  font-size: 18px;
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 60ch;
}
.muted { color: var(--ink-3); }

/* =====================  LAYOUT PRIMITIVES  ===================== */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 980px; margin: 0 auto; padding: 0 28px; }

section { padding: 96px 0; }
section.tight { padding: 72px 0; }
section.compact { padding: 48px 0; }

.divider-row {
  display: flex; align-items: center; gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.divider-row::before, .divider-row::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad { padding: 28px; }

/* Pills / chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  letter-spacing: 0.04em;
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.chip.brand { background: var(--brand-soft); color: var(--brand-ink); border-color: transparent; }
.chip.brand .dot { background: var(--brand); }

/* =====================  HERO  ===================== */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, oklch(0.94 0.03 155 / 0.6), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  text-align: center;
  justify-items: center;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
}
.hero-pill .badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hero-trust {
  display: flex; gap: 18px; flex-wrap: wrap; justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust span::before {
  content: "✓"; color: var(--brand); font-family: 'Geist', sans-serif; font-weight: 600;
}

/* App preview frame inside hero */
.hero-frame {
  margin-top: 8px;
  width: 100%;
  max-width: 1080px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.frame-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-sunk);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-3);
}
.frame-bar .dots { display: flex; gap: 5px; margin-right: 6px; }
.frame-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.frame-bar .dots i:nth-child(1) { background: oklch(0.78 0.13 30); }
.frame-bar .dots i:nth-child(2) { background: oklch(0.85 0.12 90); }
.frame-bar .dots i:nth-child(3) { background: oklch(0.78 0.13 155); }
.frame-bar .url { flex: 1; text-align: center; padding: 4px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; max-width: 320px; }

/* =====================  LOGO STRIP  ===================== */
.logo-strip {
  padding: 36px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.logo-strip .lbl {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  margin-bottom: 22px;
}
.logo-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  align-items: center;
}
.logo {
  height: 32px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--ink-3);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  opacity: 0.85;
  transition: opacity 140ms;
}
.logo:hover { opacity: 1; color: var(--ink-2); }
.logo .gly {
  width: 22px; height: 22px;
  border: 1.5px solid currentColor;
  border-radius: 6px;
  display: grid; place-items: center;
  font-size: 12px;
  font-family: 'Instrument Serif', serif; font-style: italic;
}

/* =====================  FEATURE GRID  ===================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature {
  background: var(--surface);
  padding: 28px 26px;
  display: flex; flex-direction: column;
  gap: 12px;
  min-height: 220px;
  transition: background 160ms;
  cursor: pointer;
}
.feature:hover { background: var(--brand-softer); }
.feature .glyph {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid; place-items: center;
  font-size: 18px;
}
.feature h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.012em;
}
.feature p {
  font-size: 13.5px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.55;
  flex: 1;
}
.feature .more {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-flex; align-items: center; gap: 4px;
}

/* =====================  SPLIT (text + visual)  ===================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.split-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.split-list li::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--brand-soft);
  position: relative;
  background-image: linear-gradient(45deg, transparent 38%, var(--brand) 38% 50%, transparent 50%),
                    linear-gradient(-45deg, transparent 50%, var(--brand) 50% 62%, transparent 62%);
  margin-top: 3px;
}
.split-list li strong { color: var(--ink-1); font-weight: 600; }

/* SOAP demo card (used in hero secondary + AI Scribe page) */
.soap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-md);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
  position: relative;
  overflow: hidden;
}
.soap::after {
  content: "";
  position: absolute; top: 0; right: 0;
  width: 140px; height: 140px;
  background: radial-gradient(circle at top right, var(--brand-softer), transparent 70%);
  pointer-events: none;
}
.soap .head {
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 12px;
  margin-bottom: 14px;
}
.soap .head .av {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--tone-sky);
  color: var(--tone-sky-ink);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 600;
}
.soap .head .meta { flex: 1; }
.soap .head .title { font-weight: 600; color: var(--ink-1); font-size: 14px; }
.soap .head .sub { font-size: 11.5px; color: var(--ink-3); font-family: 'JetBrains Mono', monospace; }
.soap .head .pulse {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  color: var(--brand);
  font-family: 'JetBrains Mono', monospace;
}
.soap .head .pulse i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{ opacity:.4; transform:scale(.85);} 50%{opacity:1; transform:scale(1.15);} }
.soap .row { margin-bottom: 10px; }
.soap .row b { color: var(--brand-ink); font-weight: 600; margin-right: 6px; }
.soap .icd { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; padding: 1px 6px; border-radius: 4px; background: var(--brand-soft); color: var(--brand-ink); }
.soap .actions { display: flex; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }

/* =====================  STATS  ===================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat { background: var(--surface); padding: 32px 28px; }
.stat .big {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink-1);
  font-style: italic;
}
.stat .big .unit { font-style: normal; font-family: 'Geist', sans-serif; font-size: 28px; color: var(--brand); margin-left: 2px; }
.stat .lbl { font-size: 13px; color: var(--ink-3); margin-top: 8px; line-height: 1.4; }

/* =====================  TESTIMONIALS  ===================== */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-sm); }
.quote .q-mark {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  color: var(--brand);
  font-size: 56px;
  line-height: 0.6;
  height: 18px;
}
.quote p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-1); }
.quote .who { display: flex; gap: 12px; align-items: center; padding-top: 16px; border-top: 1px dashed var(--line); }
.quote .who .av { width: 36px; height: 36px; border-radius: 50%; background: var(--tone-sage); color: var(--tone-sage-ink); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.quote .who .name { font-size: 13px; font-weight: 600; }
.quote .who .role { font-size: 11.5px; color: var(--ink-3); font-family: 'JetBrains Mono', monospace; }

/* =====================  CTA  ===================== */
.cta-band {
  background: var(--brand);
  color: white;
  border-radius: var(--radius-xl);
  padding: 56px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 90% -10%, oklch(0.55 0.08 155 / 0.6), transparent 50%),
    radial-gradient(circle at 0% 110%, oklch(0.3 0.06 155 / 0.5), transparent 50%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: white;
  max-width: 28ch;
}
.cta-band h2 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: oklch(0.92 0.04 155);
}
.cta-band p { color: oklch(0.92 0.025 155); margin: 0 0 24px; font-size: 16px; max-width: 56ch; }
.cta-band .btn { background: white; color: var(--brand-ink); border-color: white; }
.cta-band .btn.ghost { background: transparent; color: white; border-color: oklch(1 0 0 / 0.3); }
.cta-band .btn.ghost:hover { background: oklch(1 0 0 / 0.1); }

/* =====================  FOOTER  ===================== */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer h5 { font-family: 'JetBrains Mono', monospace; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-3); font-weight: 500; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 13.5px; color: var(--ink-2); }
.footer ul a:hover { color: var(--ink-1); }
.footer-blurb { color: var(--ink-3); font-size: 13px; line-height: 1.55; margin: 14px 0 16px; max-width: 32ch; }
.footer-cert { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-cert .c {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--surface-sunk);
  border: 1px solid var(--line);
  color: var(--ink-2);
  letter-spacing: 0.06em;
}
.footer-bottom {
  margin-top: 48px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px;
  font-size: 12px; color: var(--ink-3);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}

/* =====================  SHARED PAGE HEADER  ===================== */
.page-hero { padding: 88px 0 56px; position: relative; overflow: hidden; }
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 0%, var(--brand-softer), transparent 70%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; }
.page-hero h1 {
  font-family: 'Geist', sans-serif;
  font-weight: 500;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 16px 0 14px;
  max-width: 22ch;
}
.page-hero h1 em {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--brand);
}

/* Responsiveness */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .logo-row { grid-template-columns: repeat(3, 1fr); }
  .cta-band { padding: 36px; }
  section { padding: 64px 0; }
}
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-row { grid-template-columns: repeat(2, 1fr); }
}


/* ===== Sub-page utilities (added in v2) ===== */

/* Prose container — for legal & long-form pages */
.prose { max-width: 760px; margin: 0 auto; color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.prose h2 { font-family: 'Geist', sans-serif; font-weight: 550; font-size: 24px; letter-spacing: -0.012em; color: var(--ink-1); margin: 48px 0 14px; }
.prose h3 { font-family: 'Geist', sans-serif; font-weight: 550; font-size: 18px; letter-spacing: -0.005em; color: var(--ink-1); margin: 32px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 18px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink-1); font-weight: 600; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose .meta { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 32px; }

/* Two-column reference layout (TOC + content) */
.doc-grid { display: grid; grid-template-columns: 220px 1fr; gap: 64px; align-items: flex-start; }
.doc-toc { position: sticky; top: 100px; }
.doc-toc h5 { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.doc-toc ul { list-style: none; padding: 0; margin: 0; }
.doc-toc li { margin-bottom: 8px; }
.doc-toc a { font-size: 13px; color: var(--ink-2); text-decoration: none; line-height: 1.4; display: block; padding: 4px 0; border-left: 2px solid transparent; padding-left: 12px; transition: all 120ms; }
.doc-toc a:hover { color: var(--brand-ink); border-left-color: var(--brand-soft); }
.doc-toc a.active { color: var(--brand-ink); border-left-color: var(--brand); font-weight: 550; }
@media (max-width: 900px) { .doc-grid { grid-template-columns: 1fr; } .doc-toc { position: static; } }

/* Card grids for resource / job listings */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
@media (max-width: 860px) { .cards3 { grid-template-columns: 1fr; } .cards2 { grid-template-columns: 1fr; } }

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  transition: all 160ms;
  box-shadow: var(--shadow-sm);
}
.tile:hover { border-color: var(--brand-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tile .kind { font-family: 'JetBrains Mono', monospace; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 12px; }
.tile h3 { font-family: 'Geist', sans-serif; font-weight: 550; font-size: 18px; line-height: 1.3; letter-spacing: -0.012em; color: var(--ink-1); margin: 0 0 10px; }
.tile p { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; line-height: 1.55; flex: 1; }
.tile .foot { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-3); display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px dashed var(--line); }

/* Job listing row */
.job { display: grid; grid-template-columns: 1fr auto auto auto; gap: 22px; align-items: center; padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 10px; text-decoration: none; color: inherit; transition: all 160ms; }
.job:hover { background: var(--brand-softer); border-color: var(--brand-soft); transform: translateX(4px); }
.job h4 { margin: 0; font-size: 16px; font-weight: 550; color: var(--ink-1); letter-spacing: -0.01em; }
.job .meta-line { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }
.job .arr { color: var(--brand); font-size: 16px; }

/* Login form (centered card) */
.login-shell { min-height: calc(100vh - 73px); display: grid; place-items: center; padding: 48px 28px; background: var(--bg-warm); }
.login-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 36px 32px; box-shadow: var(--shadow-md); }
.login-card h1 { font-family: 'Geist', sans-serif; font-weight: 550; font-size: 24px; letter-spacing: -0.015em; margin: 0 0 6px; }
.login-card .sub { font-size: 13.5px; color: var(--ink-3); margin: 0 0 24px; }

/* Stat row for solution pages */
.outcome-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.outcome-row .o { background: var(--surface); padding: 28px 24px; }
.outcome-row .v { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 40px; line-height: 1; color: var(--ink-1); }
.outcome-row .v em { font-style: normal; color: var(--brand); font-family: 'Geist', sans-serif; font-size: 20px; font-weight: 500; }
.outcome-row .l { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 10px; }
@media (max-width: 860px) { .outcome-row { grid-template-columns: 1fr 1fr; } }

/* Integration logo grid */
.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.logo-cell { aspect-ratio: 2 / 1; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: grid; place-items: center; padding: 16px; text-align: center; transition: all 160ms; }
.logo-cell:hover { border-color: var(--brand-soft); background: var(--brand-softer); }
.logo-cell .nm { font-weight: 550; font-size: 14px; color: var(--ink-1); }
.logo-cell .cat { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
@media (max-width: 860px) { .logo-grid { grid-template-columns: repeat(3, 1fr); } }

/* 404 hero */
.error-hero { padding: 120px 0; text-align: center; }
.error-code { font-family: 'Instrument Serif', serif; font-style: italic; font-size: clamp(120px, 22vw, 240px); line-height: 0.9; color: var(--brand); letter-spacing: -0.04em; margin: 0; }
.error-msg { font-family: 'Geist', sans-serif; font-weight: 500; font-size: 28px; letter-spacing: -0.018em; margin: 12px 0 8px; }

/* Pages with subnav (feature/solution sub-pages) */
.subnav { background: var(--surface); border-bottom: 1px solid var(--line); }
.subnav-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; height: 56px; display: flex; align-items: center; gap: 6px; overflow-x: auto; }
.subnav a { font-size: 13px; padding: 7px 12px; border-radius: 999px; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: all 120ms; }
.subnav a:hover { color: var(--ink-1); background: var(--surface-sunk); }
.subnav a.current { background: var(--brand-deep); color: white; }


/* ===================================================================
   Responsive — mobile menu, breakpoints, layout fixes
   =================================================================== */

/* Hamburger button — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  cursor: pointer;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink-1);
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu panel */
.nav-mobile {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 50;
  padding: 20px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  border-top: 1px solid var(--line);
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a {
  display: block;
  padding: 12px 8px;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-1);
  border-radius: 8px;
  text-decoration: none;
}
.nav-mobile a:hover { background: var(--surface-sunk); }
.nav-mobile a.btn { font-weight: 550; padding: 0 22px; height: 48px; display: flex; align-items: center; width: 100%; box-sizing: border-box; }
.nav-mobile hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }

/* ============ Tablet breakpoint (≤960px) ============ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta-signin { display: none; }
  .nav-cta { gap: 6px; }
  .nav-inner { gap: 12px; padding: 0 20px; }

  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .split.reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
  .logo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta-band { padding: 36px 28px; }
  section { padding: 56px 0; }
  section.tight { padding: 48px 0; }

  /* Prevent any grid/card overflow */
  .split > *, .feature-deep > *, .soap, .vis, .card { min-width: 0; max-width: 100%; }

  /* Inline-style button rows should wrap so they don't overflow */
  div[style*="display:flex"][style*="gap:10px"]:not(.frame-bar):not(.nav-cta) { flex-wrap: wrap; }
  /* SOAP card actions should wrap on mobile */
  .soap .actions { flex-wrap: wrap; }

  /* Page heroes */
  .hero { padding: 56px 0 48px; }
  .page-hero { padding: 56px 0 36px; }

  /* Feature deep + demo + values + pillars + cert + plans */
  .feature-deep { grid-template-columns: 1fr !important; gap: 28px !important; padding: 40px 0 !important; }
  .feature-deep.flip > :first-child { order: 0 !important; }
  .demo-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
  .row2 { grid-template-columns: 1fr !important; }
  .values { grid-template-columns: 1fr !important; }
  .pillars { grid-template-columns: 1fr !important; }
  .cert-grid { grid-template-columns: 1fr 1fr !important; }
  .plans { grid-template-columns: 1fr !important; gap: 14px !important; }
  .plan.featured { transform: none !important; }
  .team { grid-template-columns: 1fr 1fr !important; }
  .doc-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .doc-toc { position: static !important; }
  .cards3, .cards2 { grid-template-columns: 1fr !important; }

  /* Solution row */
  .spec { grid-template-columns: 56px 1fr !important; padding: 20px !important; }
  .spec .arr { display: none !important; }

  /* Job listings */
  .job { grid-template-columns: 1fr !important; gap: 8px !important; padding: 16px 18px !important; }
  .job .arr { display: none !important; }

  /* Outcome row */
  .outcome-row { grid-template-columns: 1fr 1fr !important; }

  /* Logo grid */
  .logo-grid { grid-template-columns: repeat(3, 1fr) !important; }

  /* Hero frame — hide complex 3-col app preview, content overflows on mobile */
  .hero-frame { display: none; }

  /* Specialty grid in solutions */
  section [style*="grid-template-columns: repeat(4, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }

  /* Pricing compare table — wrap in scroll */
  .compare { overflow-x: auto; }
  .compare table { min-width: 560px; }

  /* Wrap container padding */
  .wrap, .wrap-narrow { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }

  /* Disable transform-on-hover translateX on mobile for spec */
  .spec:hover { transform: none !important; }
  .job:hover { transform: none !important; }
  .tile:hover { transform: none !important; }

  /* Typography tweaks */
  h1.display, h2.display { font-size: clamp(34px, 8vw, 48px) !important; }
  .lede { font-size: 16px !important; }

  /* Inline `style="display:flex"` content alignment in heroes */
  .page-hero h1 { font-size: clamp(34px, 8vw, 48px) !important; }

  /* Force inline-style 2-col grids to stack (request-demo, contact, etc.) */
  div[style*="grid-template-columns: 1.3fr 1fr"],
  div[style*="grid-template-columns: 1fr 460px"],
  div[style*="grid-template-columns: 1fr 460px"],
  form[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  /* Form inputs / selects must shrink with parent */
  form input, form select, form textarea {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  form { min-width: 0; }
  /* Inputs inside grid columns with grid-column:span 2 should not push */
  form label[style*="grid-column:span 2"],
  form button[style*="grid-column:span 2"] {
    grid-column: span 1 !important;
  }
  /* Cards with inline padding:36px → reduce on small screens */
  .card[style*="padding:36px"] { padding: 22px !important; }

  /* Login shell + card */
  .login-shell { padding: 32px 16px; min-height: calc(100vh - 64px); }
  .login-card { max-width: 100%; padding: 28px 22px; }
  .login-card form button[type="submit"] { width: 100%; justify-content: center; }
  /* SSO row should stack 3 cols nicely on small width */
  .login-card div[style*="display:flex"][style*="gap:8px"] .btn { padding: 0 8px; font-size: 12px; }
}

/* ============ Phone breakpoint (≤600px) ============ */
@media (max-width: 600px) {
  .feature-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .logo-row { grid-template-columns: repeat(2, 1fr); }
  .cert-grid { grid-template-columns: 1fr !important; }
  .team { grid-template-columns: 1fr !important; }
  .logo-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .outcome-row { grid-template-columns: 1fr !important; }

  /* Hide brand-tag on tiny screens to free up nav space */
  .brand-tag { display: none; }

  /* Footer bottom — stack */
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Hero pill — ensure it wraps */
  .hero-pill { font-size: 11.5px; padding: 5px 12px 5px 5px; }

  /* CTA band — tighter padding */
  .cta-band { padding: 28px 22px !important; }

  /* Tile padding tight */
  .tile { padding: 20px; }

  /* Specialty 4-col grid → 1col on phone */
  section [style*="grid-template-columns: repeat(4, 1fr)"] { grid-template-columns: 1fr !important; }

  /* Cards3 fallback already 1fr */

  /* Hero CTAs full width feels better */
  .hero-cta { flex-direction: column; width: 100%; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}


/* ===================================================================
   Homepage v3 — outcomes-driven sections
   =================================================================== */

/* Hero bullets row */
.hero-bullets {
  list-style: none;
  padding: 0;
  margin: -8px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  max-width: 880px;
}
.hero-bullets li {
  font-size: 14px;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
  line-height: 1.5;
}
.hero-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 600;
}

/* Problem list (the Real Problem section) */
.problem-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 28px;
}
.problem-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.problem-list li::before {
  content: "✕";
  color: oklch(0.55 0.16 25);
  font-weight: 700;
  font-size: 13px;
  margin-top: 4px;
}
@media (max-width: 720px) {
  .problem-list { grid-template-columns: 1fr; }
}

/* Billing dark band */
.billing-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) {
  .billing-grid { grid-template-columns: 1fr !important; gap: 36px !important; }
}
.billing-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.billing-list li {
  font-size: 15px;
  color: oklch(0.92 0.025 155);
  padding-left: 26px;
  position: relative;
  line-height: 1.55;
}
.billing-list li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: oklch(0.85 0.06 155);
  font-weight: 600;
}
.billing-list li strong { color: white; font-weight: 600; }

.billing-stats {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bs {
  background: oklch(from var(--brand-deep) calc(l + 0.04) c h);
  border: 1px solid oklch(from var(--brand-deep) calc(l + 0.06) c h);
  padding: 22px 24px;
  border-radius: 14px;
}
.bs-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 48px;
  line-height: 1;
  color: white;
  letter-spacing: -0.02em;
}
.bs-unit {
  font-style: normal;
  font-family: 'Geist', sans-serif;
  font-size: 22px;
  color: oklch(0.85 0.06 155);
  margin-left: 4px;
}
.bs-lbl {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: oklch(0.85 0.04 155);
  text-transform: uppercase;
  margin-top: 10px;
}

/* Customer outcomes — case highlight */
.case-highlight {
  margin-top: 36px;
  padding: 32px 36px;
  background: var(--brand-softer);
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  align-items: flex-start;
}
.case-highlight .case-mark {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--brand);
  font-size: 56px;
  line-height: 0.6;
  height: 18px;
}
.case-highlight p {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink-1);
}
.case-highlight strong { color: var(--brand-ink); font-weight: 600; }

/* Implementation mini timeline */
.timeline-mini { display: flex; flex-direction: column; gap: 14px; }
.tm-step { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.tm-step:last-child { border-bottom: 0; padding-bottom: 0; }
.tm-day {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-weight: 600;
  padding-top: 2px;
}
.tm-body { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.tm-body strong { color: var(--ink-1); font-weight: 600; }
