/* ============================================================
   Revvalo — The Agentic-first CRM
   REFINED LIGHT — Premium global revenue command system.
   Clean. Airy. Authoritative. Zero clutter.
   ============================================================ */

/* Fonts are loaded via <link> tags in the document head (non-blocking, with
   preconnect) rather than @import here, which avoids a render-blocking,
   serialized stylesheet fetch and improves first paint. */

:root {
  /* Pure refined light foundation */
  --bg: #ffffff;
  --bg-elev: #f8fafc;
  --bg-elev-2: #f1f5f9;
  --bg-elev-3: #e2e8f0;

  /* Text — deep, confident, executive */
  --text: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;

  /* Signature palette — sophisticated teal + indigo intelligence */
  --accent: #0f766e;
  --accent-deep: #115e59;
  --accent-2: #14b8a6;
  --accent-indigo: #4f46e5;
  --accent-amber: #d97706;
  --accent-emerald: #059669;
  --accent-violet: #7c3aed;

  /* Typography */
  --font-sans: "Satoshi", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* Layout */
  --container: 1180px;
  --container-wide: 1280px;

  /* Radius — crisp, modern */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Depth — elegant soft shadows for light */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 30px 70px -25px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 0 1px rgba(15, 118, 110, 0.12);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-premium: cubic-bezier(0.21, 0.92, 0.2, 1);

  --nav-height: 72px;
}

/* ---------- Reset & Base — crisp light ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11", "tnum";
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
button:focus-visible,
a:focus-visible,
.nav__link:focus-visible,
.megamenu__item:focus-visible,
.deal:focus-visible,
.mock-row:focus-visible,
.mock-node:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}
::selection { background: var(--accent); color: white; }

h1, h2, h3, h4 {
  margin: 0 0 0.35em;
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 1.05;
  color: var(--text);
}
h1 { font-size: clamp(2.5rem, 5.2vw, 4.3rem); font-weight: 800; letter-spacing: -0.055em; }
h2 { font-size: clamp(1.95rem, 3.6vw, 3.1rem); letter-spacing: -0.048em; }
h3 { font-size: clamp(1.18rem, 1.7vw, 1.52rem); letter-spacing: -0.028em; }
h4 { font-size: 1rem; letter-spacing: -0.018em; color: var(--text-muted); }
p { margin: 0 0 1em; color: var(--text-muted); }
. mono, .ops-text, .metric, .command-text { font-family: var(--font-mono); font-feature-settings: "tnum"; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 820px; }

/* ---------- Promo Bar — minimal, crisp ---------- */
.promo {
  background: #f8fafc;
  color: var(--text-subtle);
  font-size: 12.5px;
  padding: 7px 24px;
  text-align: center;
  letter-spacing: -0.003em;
  border-bottom: 1px solid #e2e8f0;
}
.promo a { color: var(--accent); font-weight: 600; }
.promo a:hover { color: var(--accent-deep); }
.promo .pill {
  display: inline-block;
  padding: 1px 9px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(15, 118, 110, 0.08);
  color: var(--accent);
  border-radius: 999px;
  margin-right: 9px;
  text-transform: uppercase;
  border: 1px solid rgba(15, 118, 110, 0.18);
}

/* ---------- Navigation — light elegant frosted ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid #e2e8f0;
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.nav.is-scrolled { border-bottom-color: #cbd5e1; }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; }
.nav__brand img { height: 26px; width: auto; }

.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 7px 13px;
  border-radius: 8px;
  transition: all 0.2s var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.nav__link:hover { color: var(--text); background: #f1f5f9; }
.nav__link svg { width: 11px; height: 11px; opacity: 0.55; transition: transform 0.25s var(--ease-out); }
.nav__item:hover .nav__link svg { transform: rotate(180deg); }

.nav__item { position: relative; }

.megamenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 7px);
  width: 760px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.22s var(--ease-out);
  z-index: 100;
}
.nav__item:hover .megamenu,
.nav__item:focus-within .megamenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 3px);
}
.megamenu__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.megamenu__item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 10px 11px;
  border-radius: 9px;
  transition: background 0.18s var(--ease-out), border-color 0.18s;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid transparent;
}
.megamenu__item:hover { 
  background: #f8fafc; 
  border-color: #e2e8f0; 
  transform: translateX(1px);
}
.megamenu__item:focus-visible {
  box-shadow: 0 0 0 2px rgba(15,118,110,0.35);
  outline: none;
}
.megamenu__icon {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: #f1f5f9;
  color: var(--accent);
  border-radius: 7px;
  flex-shrink: 0;
  font-size: 15px;
  border: 1px solid #e2e8f0;
}
.megamenu__title { font-size: 13.5px; font-weight: 600; color: var(--text); margin-bottom: 1px; letter-spacing: -0.008em; }
.megamenu__desc { font-size: 11.5px; color: var(--text-subtle); line-height: 1.35; }

.nav__cta { display: flex; align-items: center; gap: 10px; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  position: relative;
  color: var(--text);
}
.nav__toggle span {
  position: absolute; left: 9px; right: 9px; height: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.nav__toggle span:nth-child(1) { top: 14px; }
.nav__toggle span:nth-child(2) { top: 19px; }
.nav__toggle span:nth-child(3) { top: 24px; }
.nav.is-open .nav__toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 1024px) { .megamenu { display: none; } }
@media (max-width: 900px) {
  .nav__toggle { display: block; }
  .nav__links, .nav__cta .btn--text { display: none; }
  .nav.is-open .nav__links, .nav.is-open .nav__cta .btn--text { display: flex; }
  .nav.is-open .nav__links { position: absolute; top: var(--nav-height); left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; padding: 10px 0 20px; border-bottom: 1px solid #e2e8f0; }
  .nav.is-open .nav__link { padding: 14px 24px; font-size: 16px; border-radius: 0; width: 100%; }
}

/* ---------- Buttons — refined, confident ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  letter-spacing: -0.008em; border-radius: var(--radius);
  border: 1px solid transparent; background: transparent;
  color: var(--text); transition: all 0.2s var(--ease-out);
  white-space: nowrap; cursor: pointer; text-decoration: none;
}
/* Single brand accent for all primary actions (teal) — one confident CTA color */
.btn--primary,
.btn--cyan {
  background: var(--accent);
  color: white;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(15,23,42,0.12), inset 0 1px 0 rgba(255,255,255,0.22);
}
.btn--primary:hover,
.btn--cyan:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -12px rgba(15, 118, 110, 0.4);
}
.btn--secondary {
  border-color: #cbd5e1;
  color: var(--text);
  background: #fff;
}
.btn--secondary:hover { border-color: var(--accent); color: var(--accent); background: #f8fafc; }
.btn--ghost { color: var(--text-muted); }
.btn--ghost:hover { background: #f1f5f9; color: var(--text); }
.btn--lg { padding: 13px 28px; font-size: 15px; }
.btn__arrow { display: inline-block; transition: transform 0.22s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(2px); }

/* ---------- Reveal + Motion ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(14px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
[data-reveal-stagger].is-visible > * { opacity: 1; transform: none; }
[data-reveal-stagger].is-visible > *:nth-child(1) { transition-delay: 35ms; }
[data-reveal-stagger].is-visible > *:nth-child(2) { transition-delay: 95ms; }
[data-reveal-stagger].is-visible > *:nth-child(3) { transition-delay: 155ms; }
[data-reveal-stagger].is-visible > *:nth-child(4) { transition-delay: 215ms; }

.live-metric { transition: all 0.3s var(--ease-out); }

/* ---------- Cards / Surfaces — light premium ---------- */
.glass, .glass-strong {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow);
}
.glass-strong { box-shadow: var(--shadow-lg); }

.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: transform 0.18s var(--ease-out), border-color 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}
.card:hover { transform: translateY(-2px); border-color: #cbd5e1; box-shadow: var(--shadow-lg); }

.ledger {
  background-image:
    linear-gradient(rgba(15,23,42,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.012) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* PR1: Executive credibility module — minimal reuse of glass-strong + ledger + btn; calm executive */
.exec-cred h2 { margin-bottom: 1rem; }
.cred-bullet {
  position: relative;
  padding-left: 1.35em;
  line-height: 1.55;
}
.cred-bullet:before {
  content: '→';
  position: absolute;
  left: 0;
  color: #0f766e;
  font-weight: 700;
}

/* ---------- Agent Cards — clean, modern, light ---------- */
.agent-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s var(--ease-out), border-color 0.18s;
}
.agent-card:hover { 
  border-color: #cbd5e1; 
  transform: translateY(-1px); 
  box-shadow: 0 10px 30px -15px rgba(15,118,110,0.12);
}
.agent-card:hover .agent-icon {
  transform: scale(1.04) rotate(1deg);
  transition: transform 180ms var(--ease-spring);
}
.agent-card::after {
  content: '';
  position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0.7;
}
.agent-status {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.025em;
  padding: 1px 8px; border-radius: 999px;
  background: rgba(5, 150, 105, 0.08); color: var(--accent-emerald);
}
.agent-status .dot { width: 4.5px; height: 4.5px; border-radius: 50%; background: currentColor; animation: pulse 2.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.agent-badge {
  display: inline-block;
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.065em;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(79, 70, 229, 0.08); color: var(--accent-indigo);
  border: 1px solid rgba(79, 70, 229, 0.18);
}

/* ---------- Pipeline — clean light tactical ---------- */
.pipeline {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  background: #f8fafc; border-radius: var(--radius-lg); padding: 14px;
  border: 1px solid #e2e8f0;
}
.pipeline-col { background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 10px; min-height: 242px; }
.pipeline-col h5 { font-size: 10.5px; font-weight: 700; color: var(--accent); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.deal {
  background: #f8fafc; border: 1px solid #cbd5e1; border-radius: 7px;
  padding: 9px 11px; margin-bottom: 6px; font-size: 12.5px; cursor: grab;
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s, border-color 0.18s;
  color: var(--text);
}
.deal:hover { 
  transform: translateY(-1px); 
  border-color: var(--accent); 
  box-shadow: var(--shadow-sm); 
  background: #f1f5f9;
}
.deal:active { transform: scale(0.985); }
.pipeline-col {
  transition: background 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.pipeline-col.drag-over {
  background: #f0fdfa;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent) inset;
}
.deal .value { font-weight: 700; color: var(--accent); font-size: 12.5px; font-family: var(--font-mono); }
.deal .meta { font-size: 10.5px; color: var(--text-subtle); margin-top: 2px; }
.deal.ai { border-left: 3px solid var(--accent); }

/* ---------- Command Bar — signature clean interaction ---------- */
.command-bar {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-xl);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 11px;
  box-shadow: var(--shadow);
}
.command-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 14.5px; font-family: var(--font-sans);
}
.command-input::placeholder { color: #94a3b8; }
.command-result { margin-top: 12px; }

/* ---------- Pricing — elegant cards ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.pricing-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl); padding: 24px 22px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.pricing-card.featured { border-color: var(--accent); position: relative; }
.pricing-card.featured::before {
  content: "MOST POPULAR"; position: absolute; top: -10px; left: 22px;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.09em;
  background: var(--accent); color: white; padding: 1px 9px; border-radius: 999px;
}
.pricing-name { font-weight: 700; font-size: 13.5px; color: var(--accent); letter-spacing: 0.015em; }
.pricing-price { font-size: 38px; font-weight: 800; letter-spacing: -0.032em; margin: 8px 0; font-feature-settings: "tnum"; }
.pricing-price span { font-size: 14px; font-weight: 500; color: var(--text-subtle); }
.pricing-features { list-style: none; padding: 0; margin: 14px 0 18px; flex: 1; }
.pricing-features li { padding: 5px 0; font-size: 13.5px; color: var(--text-muted); display: flex; gap: 7px; align-items: flex-start; }
.pricing-features li::before { content: "→"; color: var(--accent); font-weight: 700; font-family: var(--font-mono); }

/* ---------- FAQ — minimal ---------- */
.faq-item { border-bottom: 1px solid #e2e8f0; }
.faq-question {
  width: 100%; text-align: left; padding: 15px 0; font-size: 14.5px; font-weight: 600;
  color: var(--text); display: flex; justify-content: space-between; align-items: center;
}
.faq-question:hover { color: var(--accent); }
.faq-icon { transition: transform 0.2s var(--ease-out); color: var(--text-subtle); }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.32s var(--ease-out); color: var(--text-muted); padding-bottom: 3px; font-size: 14px; }
.faq-item.open .faq-answer { max-height: 180px; }

/* ---------- Footer — quiet authority ---------- */
.footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 46px 0 22px; font-size: 13.5px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p { color: var(--text-subtle); max-width: 240px; }
.footer-col h4 { font-size: 10.5px; font-weight: 700; color: var(--text-subtle); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.055em; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { margin-top: 38px; padding-top: 18px; border-top: 1px solid #e2e8f0; color: #94a3b8; font-size: 12px; }

/* ---------- Section rhythm — generous breathing ---------- */
.section { padding: 4.6rem 0; }
.section-heading { margin-bottom: 0.4rem; }
.section-sub { max-width: 580px; color: var(--text-subtle); font-size: 0.98rem; }

/* ---------- Stats & mini dashboards ---------- */
.stat { text-align: center; }
.stat-number { font-size: 28px; font-weight: 800; color: var(--text); letter-spacing: -0.028em; font-feature-settings: "tnum"; }
.stat-label { font-size: 11.5px; color: var(--text-subtle); margin-top: 1px; }

.mini-dash {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius); padding: 13px;
  box-shadow: var(--shadow-sm);
}
.mini-dash-title { font-size: 10.5px; font-weight: 600; color: var(--text-subtle); margin-bottom: 7px; letter-spacing: 0.035em; }

/* ---------- Workflow rail (playbooks) — light ---------- */
.workflow-rail {
  display: flex; align-items: center; gap: 0; overflow-x: auto; padding: 10px 0;
}
.wf-step {
  display: flex; flex-direction: column; align-items: center; min-width: 84px;
}
.wf-step .node {
  width: 50px; height: 50px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; border: 2px solid #cbd5e1; background: #fff;
  color: var(--accent);
}
.wf-step .label { font-size: 10px; margin-top: 6px; color: var(--text-subtle); font-weight: 600; letter-spacing: 0.015em; }
.wf-connector {
  flex: 1; height: 2px; background: linear-gradient(to right, rgba(15,118,110,0.28), rgba(20,184,166,0.2));
  min-width: 22px; position: relative;
}
.wf-connector::after {
  content: ''; position: absolute; right: -1px; top: 50%; transform: translateY(-50%);
  border: 4.5px solid transparent; border-left-color: rgba(15,118,110,0.38);
}

/* ---------- Comparison table — clean light ---------- */
.compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; }
.compare-table th, .compare-table td { padding: 13px 15px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.compare-table th { font-size: 10.5px; font-weight: 700; color: var(--text-subtle); text-transform: uppercase; letter-spacing: 0.055em; background: #f8fafc; }
.compare-table .highlight { background: rgba(15,118,110,0.06); color: var(--accent); font-weight: 700; }

/* ---------- Logo wall — quiet, credible social proof ---------- */
.logo-wall {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 38px;
}
.logo-wall .logo-mark {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: #94a3b8;
  opacity: 0.9;
  transition: color 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
  white-space: nowrap;
}
.logo-wall .logo-mark:hover { color: var(--text-muted); opacity: 1; }
.logo-eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-subtle);
}

/* ---------- Trust badges (compliance + rating) ---------- */
.trust-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.trust-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--text-muted);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 5px 11px;
}
.trust-badge .icon { width: 14px; height: 14px; color: var(--accent); }
.rating-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--text);
}
.rating-stars { color: #d97706; letter-spacing: 1px; font-size: 13px; }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  background: rgba(255,255,255,0.96); backdrop-filter: blur(14px);
  border-top: 1px solid #e2e8f0;
  padding: 9px 14px; display: none;
}
@media (max-width: 640px) { .sticky-cta { display: block; } }

/* ---------- Modal — clean light ---------- */
.modal {
  position: fixed; inset: 0; background: rgba(15,23,42,0.82);
  display: none; align-items: center; justify-content: center; z-index: 200;
  padding: 20px;
}
.modal.open { display: flex; }
.modal-content {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  padding: 28px 26px;
  width: 100%; max-width: 500px;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.modal-close {
  position: absolute; top: 12px; right: 16px;
  font-size: 24px; line-height: 1; color: var(--text-subtle);
}
.modal-close:hover { color: var(--text); }

/* Form inputs — light clean */
.label { font-size: 10.5px; font-weight: 600; color: var(--text-subtle); margin-bottom: 4px; letter-spacing: 0.03em; }
.input, .select, textarea.input {
  width: 100%; background: #fff; border: 1px solid #cbd5e1;
  color: var(--text); padding: 10px 13px; border-radius: var(--radius);
  font-size: 14.5px; transition: border-color 0.18s; font-family: inherit;
}
.input:focus, .select:focus, textarea.input:focus { border-color: var(--accent); outline: none; }
select.select { appearance: none; }

/* ---------- Live / data elements ---------- */
.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 2.5px rgba(5,150,105,0.15);
  animation: pulse 2s infinite;
}
.live-dot.strong {
  box-shadow: 0 0 0 3px rgba(5,150,105,0.22), 0 0 0 6px rgba(5,150,105,0.08);
  animation: pulse 1.6s infinite;
}
.signal-item {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #e2e8f0;
  color: var(--text-muted);
}
.signal-item:last-child { border-bottom: none; }

/* ---------- Subtle utilities & spacing ---------- */
.text-emerald { color: var(--accent-emerald); }
.text-accent-cyan { color: var(--accent-2); }
.text-slate-300 { color: var(--text-muted); }
.text-slate-400 { color: var(--text-subtle); }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }

.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4 { gap: 1rem; }
.gap-3 { gap: .75rem; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-9 { margin-bottom: 2.25rem; }
.mb-10 { margin-bottom: 2.5rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.rounded-full { border-radius: 999px; }
.inline-flex { display: inline-flex; }
.tracking-tight { letter-spacing: -0.022em; }
.tracking-widest { letter-spacing: 0.065em; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11.5px; }
.text-xl { font-size: 1.2rem; }
.text-2xl { font-size: 1.45rem; }
.text-4xl { font-size: 2.1rem; }
.leading-\[1\.02\] { line-height: 1.02; }

@media (max-width: 640px) {
  h1 { font-size: 2.45rem; }
  .section { padding: 3.5rem 0; }
}

/* ============================================================
   PREMIUM VISUAL EXTENSIONS — executive light aesthetic
   Extends existing glass, card, ledger, reveal primitives.
   All new visuals use refined teal/indigo, generous space.
   ============================================================ */
.premium-visual {
  border-radius: var(--radius-xl);
  border: 1px solid var(--bg-elev-3);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: #fff;
}

/* Live high-fidelity product screen mocks (browser-rendered, not screenshots) */
.hf-mock {
  background: #fff;
  color: var(--text);
  font-size: 12px;
  line-height: 1.4;
  border: 1px solid var(--bg-elev-3);
}
.hf-mock .mock-header {
  padding: 8px 12px;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--bg-elev-3);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.hf-mock .mock-body {
  padding: 12px;
}
.hf-mock .mock-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--bg-elev-2);
}
.hf-mock .mock-row:last-child { border-bottom: none; }
.hf-mock .mock-pill {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(15,118,110,0.08);
  color: var(--accent);
  border: 1px solid rgba(15,118,110,0.2);
  white-space: nowrap;
}
.hf-mock .mock-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent);
}
.hf-mock .mock-graph {
  height: 48px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  margin-top: 8px;
}
.hf-mock .mock-bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent), #14b8a6);
  border-radius: 2px;
  transition: height 200ms ease;
}
.hf-mock .mock-stakeholder {
  position: relative;
  min-height: 110px;
  margin: 8px 0 4px;
  padding-bottom: 4px;
  overflow: hidden;
}
.hf-mock .mock-node {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.hf-mock .mock-node:hover { transform: scale(1.08); box-shadow: var(--shadow); }
.hf-mock .mock-edge {
  position: absolute;
  height: 1.5px;
  background: rgba(15,118,110,0.35);
  transform-origin: left center;
}

/* Apple-quality refinements for hf-mocks: precise executive typography, soft depth, fluid micro-states, production fidelity */
.hf-mock {
  box-shadow: 0 1px 3px rgba(15,23,42,0.06), 0 10px 30px -15px rgba(15,23,42,0.08);
  font-feature-settings: "tnum", "ss01";
  position: relative;
}
.hf-mock::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(rgba(15,23,42,0.035) 0.6px, transparent 0.6px);
  background-size: 3px 3px;
  pointer-events: none;
  opacity: 0.6;
  mix-blend-mode: multiply;
  border-radius: inherit;
}
.hf-mock .mock-header {
  font-size: 9.5px;
  letter-spacing: 0.075em;
  padding: 9px 14px;
  background: #f8fafc;
}
.hf-mock .mock-body {
  padding: 14px 14px 12px;
  font-size: 12.5px;
  line-height: 1.45;
}
.hf-mock .mock-row {
  padding: 7px 0;
  transition: background 140ms var(--ease-out), transform 140ms var(--ease-out);
  border-radius: 4px;
}
.hf-mock .mock-row:hover {
  background: #f8fafc;
  transform: translateX(1px);
  box-shadow: 0 1px 0 rgba(15,118,110,0.06);
}
.hf-mock .mock-row:active {
  transform: translateX(0) scale(0.995);
  transition: transform 60ms var(--ease-out);
}
.hf-mock button {
  position: relative;
  overflow: hidden;
}
.hf-mock button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: translateX(-100%);
  transition: transform 420ms var(--ease-premium);
  pointer-events: none;
}
.hf-mock button:hover::after {
  transform: translateX(300%);
}
.hf-mock .mock-pill {
  font-size: 9px;
  padding: 1px 7px;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.hf-mock .mock-value {
  font-size: 12.5px;
  letter-spacing: -0.01em;
}
.hf-mock button {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  transition: all 120ms var(--ease-out);
}
.hf-mock button:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.hf-mock .mock-detail {
  font-size: 10px;
  color: var(--text-subtle);
  margin-top: 4px;
  padding-left: 2px;
}

/* ============================================================
   HERO FLOW — editorial premium explainer (initHeroFlow in JS)
   Direction: refined light, glass depth, teal intelligence accent
   ============================================================ */
.hero-flow {
  position: relative;
  width: 100%;
  --hf-stage-color: var(--accent);
}

/* Canvas — inset stage with atmosphere */
.hero-flow__canvas {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(165deg, #ffffff 0%, #f8fafc 48%, #f1f5f9 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 18px 48px -28px rgba(15, 118, 110, 0.14);
}
.hero-flow__ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 18% 85%, rgba(15, 118, 110, 0.09), transparent 58%),
    radial-gradient(ellipse 55% 45% at 88% 18%, rgba(79, 70, 229, 0.07), transparent 52%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(20, 184, 166, 0.04), transparent 60%);
}
.hero-flow__ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(rgba(15, 23, 42, 0.055) 0.6px, transparent 0.6px);
  background-size: 14px 14px;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
}
.hero-flow__svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-height: 300px;
  overflow: visible;
}

/* SVG layers */
.hero-flow .hf-bg { pointer-events: none; }
.hero-flow .hf-track-base { fill: none; stroke-linecap: round; }
.hero-flow .hf-edge-accent {
  fill: none;
  stroke-linecap: round;
  filter: url(#hfEdgeGlow);
  transition: stroke-dashoffset 900ms var(--ease-premium);
}
.hero-flow .hf-edge-shimmer {
  fill: none;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 320ms ease;
}
.hero-flow .hf-edge-wrap.is-active .hf-edge-shimmer { opacity: 0.85; animation: hfShimmer 1.4s ease-in-out infinite; }
@keyframes hfShimmer {
  0%, 100% { stroke-dashoffset: 0; opacity: 0.35; }
  50% { stroke-dashoffset: -24; opacity: 0.95; }
}

/* Nodes */
.hero-flow .hf-node { cursor: default; }
.hero-flow .hf-spotlight {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.55);
  transition: opacity 520ms var(--ease-out), transform 520ms var(--ease-out);
}
.hero-flow .hf-node.is-active .hf-spotlight { opacity: 0.22; transform: scale(1); }
.hero-flow .hf-node.is-done .hf-spotlight { opacity: 0.1; transform: scale(0.92); }

.hero-flow .hf-node-core {
  transition: transform 560ms var(--ease-spring), filter 420ms ease;
  transform: scale(0.78);
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.06));
}
.hero-flow .hf-node-plate {
  transition: opacity 420ms ease, stroke 420ms ease;
  opacity: 0.55;
}
.hero-flow .hf-node-fill {
  transition: opacity 480ms ease;
  opacity: 0.12;
}
.hero-flow .hf-node-icon {
  transition: opacity 420ms ease, transform 420ms var(--ease-spring);
  opacity: 0.35;
  transform: scale(0.88);
}
.hero-flow .hf-label {
  transition: fill 420ms ease, opacity 420ms ease;
  fill: #94a3b8;
  opacity: 0.65;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  font-family: var(--font-sans);
}

.hero-flow .hf-node.is-done .hf-node-core { transform: scale(0.94); }
.hero-flow .hf-node.is-done .hf-node-plate { opacity: 0.92; }
.hero-flow .hf-node.is-done .hf-node-fill { opacity: 0.88; }
.hero-flow .hf-node.is-done .hf-node-icon { opacity: 1; transform: scale(1); }
.hero-flow .hf-node.is-done .hf-label { opacity: 1; fill: #64748b; }

.hero-flow .hf-node.is-active .hf-node-core {
  transform: scale(1.14);
  filter: drop-shadow(0 8px 22px rgba(15, 23, 42, 0.12)) drop-shadow(0 0 18px color-mix(in srgb, var(--hf-node-color, #0f766e) 28%, transparent));
}
.hero-flow .hf-node.is-active .hf-node-plate { opacity: 1; }
.hero-flow .hf-node.is-active .hf-node-fill { opacity: 1; }
.hero-flow .hf-node.is-active .hf-node-icon { opacity: 1; transform: scale(1); }
.hero-flow .hf-node.is-active .hf-label { opacity: 1; fill: #0f172a; }

.hero-flow .hf-pulse {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.5);
}
.hero-flow .hf-node.is-active .hf-pulse { animation: hfPulse 2.2s var(--ease-out) infinite; }
@keyframes hfPulse {
  0%   { opacity: 0.5; transform: scale(0.55); }
  65%  { opacity: 0;   transform: scale(1.65); }
  100% { opacity: 0;   transform: scale(1.65); }
}

/* Result chips */
.hero-flow .hf-chip {
  opacity: 0;
  transform: translateY(10px) scale(0.92);
  transition: opacity 440ms var(--ease-out), transform 440ms var(--ease-spring);
  filter: drop-shadow(0 6px 16px rgba(15, 23, 42, 0.08));
}
.hero-flow .hf-chip.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* YOU command card + tether */
.hero-flow .hf-you-card { filter: drop-shadow(0 10px 28px rgba(15, 118, 110, 0.12)); }
.hero-flow .hf-you-live { animation: hfLive 2.4s ease-in-out infinite; }
@keyframes hfLive {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.hero-flow .hf-command-line {
  fill: none;
  stroke-dasharray: 4 7;
  animation: hfMarch 1.1s linear infinite;
}
@keyframes hfMarch { to { stroke-dashoffset: -22; } }

/* Lead token + comet trail */
.hero-flow .hf-token { transition: opacity 380ms ease; }
.hero-flow .hf-token-body { transition: fill 420ms ease, stroke 420ms ease; }
.hero-flow .hf-token-glow { transition: opacity 420ms ease; }
.hero-flow .hf-comet {
  opacity: 0;
  transition: opacity 280ms ease;
}
.hero-flow .hf-token.is-moving .hf-comet { opacity: 0.7; animation: hfComet 680ms var(--ease-out) forwards; }
@keyframes hfComet {
  0% { opacity: 0.65; transform: translateX(0) scale(1); }
  100% { opacity: 0; transform: translateX(-28px) scale(0.4); }
}

/* Narration panel */
.hero-flow__narration {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}
.hero-flow__progress {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 4px;
}
.hero-flow__progress-track {
  height: 3px;
  border-radius: 999px;
  background: #e8eef4;
  overflow: hidden;
}
.hero-flow__progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--hf-stage-color), color-mix(in srgb, var(--hf-stage-color) 65%, #14b8a6));
  transition: width 720ms var(--ease-premium), background 420ms ease;
  box-shadow: 0 0 12px color-mix(in srgb, var(--hf-stage-color) 35%, transparent);
}
.hero-flow__dots {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 0 2px;
}
.hero-flow__dots i {
  flex: 1;
  max-width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
  transition: background 380ms ease, box-shadow 380ms ease, transform 380ms var(--ease-spring);
}
.hero-flow__dots i.is-on {
  background: var(--hf-stage-color, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hf-stage-color, var(--accent)) 18%, transparent);
  transform: scaleY(1.35);
}

.hero-flow__card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    inset 3px 0 0 var(--hf-stage-color),
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 12px 32px -20px rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow 420ms ease, border-color 420ms ease;
}
.hero-flow__badge {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hf-stage-color);
  background: color-mix(in srgb, var(--hf-stage-color) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--hf-stage-color) 22%, transparent);
  padding: 5px 8px;
  border-radius: 8px;
  line-height: 1;
  transition: color 420ms ease, background 420ms ease, border-color 420ms ease;
}
.hero-flow__card-body {
  flex: 1;
  min-width: 0;
  transition: opacity 260ms ease, transform 260ms var(--ease-out);
}
.hero-flow__card.is-swap .hero-flow__card-body {
  opacity: 0;
  transform: translateY(6px);
}
.hero-flow__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}
.hero-flow__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--hf-stage-color);
  letter-spacing: -0.02em;
  line-height: 1;
  transition: color 420ms ease;
}
.hero-flow__title {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.hero-flow__desc {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.45;
}

.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;
}

@media (max-width: 640px) {
  .hero-flow__svg { max-height: 240px; }
  .hero-flow__card { padding: 14px 15px; gap: 12px; }
  .hero-flow__title { font-size: 15px; }
  .hero-flow__desc { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-flow .hf-node-core,
  .hero-flow .hf-node-plate,
  .hero-flow .hf-node-fill,
  .hero-flow .hf-node-icon,
  .hero-flow .hf-label,
  .hero-flow .hf-chip,
  .hero-flow .hf-edge-accent,
  .hero-flow .hf-spotlight,
  .hero-flow__progress-fill,
  .hero-flow__card-body,
  .hero-flow__dots i { transition: none !important; }
  .hero-flow .hf-pulse,
  .hero-flow .hf-command-line,
  .hero-flow .hf-edge-shimmer,
  .hero-flow .hf-you-live,
  .hero-flow .hf-comet { animation: none !important; }
}

/* Compact flow diagrams (feature mocks + workflow section) */
.flow-diagram--compact .hero-flow__canvas { min-height: 188px; }
.flow-diagram--compact .hero-flow__svg { max-height: 210px; }
.flow-diagram--compact .hero-flow__card { padding: 12px 14px; gap: 10px; }
.flow-diagram--compact .hero-flow__title { font-size: 14px; }
.flow-diagram--compact .hero-flow__desc { font-size: 12px; }
.flow-diagram--compact .hero-flow__num { font-size: 11px; }
.hf-mock .flow-diagram { margin: 0; }
.hf-mock .flow-diagram .hero-flow__canvas { border-radius: 10px; }
.mock-stakeholder { min-height: 132px; }
.stakeholder-graph__svg .sg-node { cursor: pointer; }
.stakeholder-graph__svg .sg-node:focus { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 
  IMAGE POLICY (full spec: assets/images/README.md):
  - Type 1: Clean photos of PEOPLE ONLY — no text, no UIs, no charts, no logos, no screenshots, no watermarks.
  - Type 2: Browser-rendered hf-mock panels (real HTML/SVG). Caption these "INTERACTIVE PREVIEW" — never "identical to production".
  Never use static screenshots or AI-generated images containing text/UI (they render garbled). See README for art direction + checklist.
*/
.premium-visual {
  border-radius: var(--radius-xl);
  border: 1px solid var(--bg-elev-3);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: #fff;
}
.premium-visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 420ms var(--ease-premium);
}
.premium-visual:hover img { transform: scale(1.012); }
.visual-caption {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-subtle);
  padding: 9px 14px;
  background: var(--bg-elev);
  border-top: 1px solid var(--bg-elev-3);
  font-family: var(--font-mono);
}
.sim-label {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.085em;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.09);
  color: #b45309;
  border: 1px solid rgba(217, 119, 6, 0.22);
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}

/* ============================================================
   UTILITY LAYER — implements the Tailwind-style utility classes
   used throughout index.html (grids, flex, spacing, color, type).
   The markup was authored with these utilities but they were never
   defined; this layer makes the intended layout render correctly.
   Breakpoints follow Tailwind: sm 640px, md 768px, lg 1024px.
   ============================================================ */

/* Display */
.grid { display: grid; }
.block { display: block; }
.hidden { display: none; }
.inline-block { display: inline-block; }
.overflow-x-auto { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* Grid columns (base) */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Flex */
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-wrap { flex-wrap: wrap; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

/* Gap */
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3\.5 { gap: 0.875rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-7 { gap: 1.75rem; }
.gap-8 { gap: 2rem; }
.gap-x-6 { column-gap: 1.5rem; }
.gap-x-10 { column-gap: 2.5rem; }
.gap-y-1\.5 { row-gap: 0.375rem; }
.gap-y-2 { row-gap: 0.5rem; }

/* Width / height */
.w-full { width: 100%; }
.w-4 { width: 1rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }

/* Margin */
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-12 { margin-top: 3rem; }
.mt-auto { margin-top: auto; }
.mb-0\.5 { margin-bottom: 0.125rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-1\.5 { margin-bottom: 0.375rem; }
.mb-2\.5 { margin-bottom: 0.625rem; }
.mb-7 { margin-bottom: 1.75rem; }

/* Padding */
.p-5 { padding: 1.25rem; }
.p-7 { padding: 1.75rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-px { padding-top: 1px; padding-bottom: 1px; }
.pt-1 { padding-top: 0.25rem; }
.pt-2\.5 { padding-top: 0.625rem; }

/* Stacked vertical spacing */
.space-y-0\.5 > * + * { margin-top: 0.125rem; }
.space-y-1\.5 > * + * { margin-top: 0.375rem; }
.space-y-px > * + * { margin-top: 1px; }

/* Text alignment */
.text-right { text-align: right; }
.text-balance { text-wrap: balance; }

/* Font size */
.text-lg { font-size: 1.0625rem; }
.text-3xl { font-size: clamp(1.65rem, 3vw, 2.1rem); }
.text-\[10px\] { font-size: 10px; }
.text-\[10\.5px\] { font-size: 10.5px; }

/* Font weight */
.font-bold { font-weight: 700; }

/* Line height */
.leading-\[1\.05\] { line-height: 1.05; }

/* Letter spacing (arbitrary) */
.tracking-\[1\.5px\] { letter-spacing: 1.5px; }
.tracking-\[2px\] { letter-spacing: 2px; }
.tracking-\[3px\] { letter-spacing: 3px; }
.tracking-\[-1\.3px\] { letter-spacing: -1.3px; }
.tracking-\[-1\.6px\] { letter-spacing: -1.6px; }
.tracking-wider { letter-spacing: 0.05em; }

/* Max width */
.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }

/* Text colors (arbitrary) */
.text-\[\#0f172a\] { color: #0f172a; }
.text-\[\#0f766e\] { color: #0f766e; }
.text-\[\#475569\] { color: #475569; }
.text-\[\#64748b\] { color: #64748b; }
.text-amber-600 { color: #b45309; }

/* Backgrounds */
.bg-white { background-color: #ffffff; }
.bg-\[\#f8fafc\] { background-color: #f8fafc; }
.bg-\[\#f1f5f9\] { background-color: #f1f5f9; }
.bg-amber-100 { background-color: #fef3c7; }

/* Borders */
.border { border: 1px solid #e2e8f0; }
.border-t { border-top: 1px solid #e2e8f0; }
.border-y { border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.border-\[\#e2e8f0\] { border-color: #e2e8f0; }
.border-amber-200 { border-color: #fde68a; }

/* Radius */
.rounded { border-radius: var(--radius-sm); }
.rounded-xl { border-radius: var(--radius-lg); }
.rounded-2xl { border-radius: 18px; }
.rounded-3xl { border-radius: var(--radius-xl); }

/* Opacity */
.opacity-50 { opacity: 0.5; }

/* Text transform */
.uppercase { text-transform: uppercase; }

/* ---------- Icon system — single monochrome line set (replaces emoji) ---------- */
.icon {
  width: 20px; height: 20px;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-lg { width: 22px; height: 22px; }
.agent-icon {
  width: 26px; height: 26px; color: var(--accent); opacity: 0.85;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.intel-icon {
  width: 38px; height: 38px; padding: 8px;
  color: var(--accent);
  background: rgba(15,118,110,0.07);
  border: 1px solid rgba(15,118,110,0.16);
  border-radius: 11px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
  margin-bottom: 0.375rem;
}
.megamenu__icon .icon { color: var(--accent); }
.channel-icon {
  width: 17px; height: 17px; color: var(--accent); margin-right: 2px;
  vertical-align: -3px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0;
}
.wf-step .node .icon { width: 22px; height: 22px; }

/* Responsive — sm (>=640px) */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

/* Responsive — md (>=768px) */
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:text-left { text-align: left; }
  .md\:text-\[2\.65rem\] { font-size: 2.65rem; }
  .md\:p-9 { padding: 2.25rem; }
}

/* Responsive — lg (>=1024px) */
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .lg\:col-span-5 { grid-column: span 5 / span 5; }
  .lg\:col-span-7 { grid-column: span 7 / span 7; }
}

/* Strong reduced-motion guard for all motion + rich visuals (extends existing JS check) */
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-reveal-stagger], [data-reveal-stagger] > *,
  .premium-visual, .premium-visual img,
  .card, .agent-card, .btn, .nav,
  svg animate, svg *, .deal, .faq-icon, .faq-answer, .live-metric,
  .nav__link svg, .btn__arrow, .wf-connector, .wf-step .node, .nav__toggle span,
  .hf-mock, .hf-mock *, .hf-mock .mock-row, .hf-mock .mock-node, .hf-mock button,
  .provenance-detail, .live-trace, .agent-badge-inline,
  .hf-mock .mock-row:hover, .mock-stakeholder *, .cta-note, [data-reveal] * {
    transition: none !important;
    transform: none !important;
    animation: none !important;
    /* opacity:1 omitted to preserve deliberate static stepped opacities on sdr [data-phase] Q-rows (9-phase visual cue); transitions still killed and advancePhase respects RM */
  }
  .agent-status .dot, .live-dot { animation: none !important; }
  .premium-visual:hover img { transform: none !important; }
  .hf-mock .mock-row { background: transparent !important; }
}

/* ============================================================
   APPLE-QUALITY EXECUTIVE POLISH — meticulous details across site
   - Refined type hierarchy + tracking for Satoshi
   - Micro interactions that feel deliberate (no gimmick)
   - Elevated surfaces, focus states, alignment
   - Scoped to existing primitives; no global leakage
   ============================================================ */

/* Executive typography micro-refinements */
h1, h2, h3 { letter-spacing: -0.045em; }
h1 { letter-spacing: -0.058em; }
.section-heading { letter-spacing: -0.045em; }
p, .text-base, .card p { line-height: 1.68; }

/* Card/ledger surfaces — softer Apple-like depth + precise hover */
.card, .ledger, .agent-card, .pricing-card {
  transition: transform 180ms var(--ease-out), border-color 180ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.card:hover, .ledger:hover, .agent-card:hover {
  transform: translateY(-1px);
  border-color: #cbd5e1;
  box-shadow: 0 14px 36px -18px rgba(15,23,42,0.11);
}
.ledger { background-size: 22px 22px; } /* tighter subtle grid for refined feel */

/* Premium focus states for accessibility + craft */
.btn:focus-visible, .nav__link:focus-visible, .hf-mock button:focus-visible,
input:focus-visible, .modal-close:focus-visible,
.hf-mock .mock-row:focus-visible {
  outline: 2px solid rgba(15,118,110,0.45);
  outline-offset: 2px;
}
.btn--primary:focus-visible, .btn--cyan:focus-visible {
  box-shadow: 0 0 0 3px rgba(15,118,110,0.18);
}

/* Elevated mock rows and provenance for "identical to production" fidelity */
.hf-mock .provenance {
  font-size: 10px;
  color: #64748b;
  padding: 4px 6px;
  background: #f1f5f9;
  border-radius: 4px;
  margin-top: 3px;
  cursor: default;
}
.hf-mock .live-trace {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--accent-emerald);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.hf-mock .agent-badge-inline {
  font-size: 9px;
  padding: 0 5px;
  border-radius: 3px;
  background: rgba(79,70,229,0.08);
  color: #4f46e5;
  border: 1px solid rgba(79,70,229,0.18);
}

/* Conversion CTAs — confident but refined, with risk reversal space */
.cta-group { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cta-note {
  font-size: 11px;
  color: var(--text-subtle);
  letter-spacing: -0.003em;
}

/* Stagger orchestration for Apple-like spatial reveals (used with data-reveal-stagger) */
[data-reveal-stagger].is-visible > *:nth-child(5) { transition-delay: 275ms; }
[data-reveal-stagger].is-visible > *:nth-child(6) { transition-delay: 335ms; }

/* Subtle premium framing for clean people photos only (never applied to mocks) */
figure.premium-visual img[alt*="professional" i],
figure.premium-visual img[alt*="executive" i],
figure.premium-visual img[alt*="team" i] {
  box-shadow: inset 0 0 0 1px rgba(15,23,42,0.04);
}

/* Consistent legal page minimal surfaces (no texture jpgs) */
.legal-surface {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  padding: 28px 26px;
}

/* Ensure all interactive elements in flow have touch/keyboard polish */
.hf-mock .mock-row, .deal, .wf-step { -webkit-tap-highlight-color: transparent; }

/* PR4: Targeted premium polish, a11y, spacing, mobile, RM, .exec-cred refine (reuse patterns, no new primitives) */
.exec-cred { padding: 28px 26px; }
@media (min-width: 768px) { .exec-cred { padding: 36px 40px; } }
.cred-bullet { margin-bottom: 2px; }

.section { padding-top: 4.8rem; padding-bottom: 4.8rem; }
@media (max-width: 640px) { .section { padding-top: 3.6rem; padding-bottom: 3.6rem; } }

.footer { padding-top: 48px; padding-bottom: 24px; }
.footer-col a { transition: color 120ms var(--ease-out); }

.hf-mock { border-radius: 12px; box-shadow: 0 10px 30px -18px rgba(15,23,42,0.10), 0 1px 0 #fff; }
.premium-visual { border-radius: 18px; }
.agent-card { padding: 24px 22px 22px; }
.command-bar { border-radius: 14px; }

.btn, .nav__link, .hf-mock .mock-row, .mock-node { transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out), border-color 140ms var(--ease-out), background 140ms var(--ease-out); }

@media (prefers-reduced-motion: reduce) {
  .exec-cred, .cred-bullet { transition: none !important; }
}

/* Caption + sim-label consistency + aria support */
.visual-caption .sim-label, .sim-label { letter-spacing: 0.08em; }
[data-cta] { cursor: pointer; }

/* Footer link consistency micro */
.footer-col li a[href^="http"], .footer-col li a[href^="#"] { /* no change needed */ }
