/* ============================================================================
   Velens.cloud — marketing site
   ----------------------------------------------------------------------------
   Design direction: "precision instrument". Editorial-technical SaaS with an
   atmospheric navy hero. Readability first (audience skews 40-50): all page
   furniture (tags, notes, footer heads) is the system sans at clear
   sizes/weights; the system mono appears ONLY inside code samples and
   product-mock internals, where it's authentic product texture. Brand tokens
   come from the VeLens design system (lib/ui/tokens.css): brand #1a73e8,
   navy #0f2744, product radius/shadow language. No build step, no externals.
   ========================================================================== */

:root {
  /* ── Brand (from the product design system) ── */
  --brand:        #1a73e8;
  --brand-hover:  #1557b0;
  --brand-tint:   #e8f0fe;
  --brand-bright: #69a2f6;   /* brand accent legible on navy */
  --navy:         #0f2744;
  --navy-2:       #163a66;
  --navy-deep:    #0b1e38;

  /* ── Ink / surfaces ── */
  --ink:          #0b1524;
  --ink-2:        #3b4859;
  --muted:        #54626f;
  --subtle:       #8792a0;
  --line:         #e3e8ef;
  --line-strong:  #cdd6e0;
  --card-line:    #dde4ed;   /* card outlines need a touch more presence than dividers */
  --bg:           #ffffff;
  --bg-soft:      #f7f9fc;

  /* ── Semantic (mirrors --mc-*) ── */
  --success:      #2e7d32;
  --warn:         #b26a00;
  --danger:       #d93025;

  /* ── Type ── */
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --fs-display: clamp(2.6rem, 5.4vw, 4.1rem);
  --fs-h1:      clamp(2.1rem, 4vw, 3rem);
  --fs-h2:      clamp(1.55rem, 2.8vw, 2.1rem);
  --fs-h3:      1.18rem;
  --fs-lead:    clamp(1.02rem, 1.5vw, 1.16rem);
  --fs-body:    1rem;
  --fs-sm:      .875rem;
  --fs-xs:      .8rem;
  --fs-mono:    .72rem;   /* mono — code & product-mock internals only */
  --fs-label:   .78rem;   /* sans micro-labels (tags, notes, footer heads) */

  /* ── Radius (product scale) ── */
  --r-sm: 6px;  --r-md: 10px;  --r-lg: 14px;  --r-xl: 18px;  --r-pill: 999px;

  /* ── Shadows ── */
  --shadow-sm: 0 1px 2px rgba(11,21,36,.05);
  --shadow-md: 0 10px 30px -6px rgba(11,21,36,.10);
  --shadow-lg: 0 24px 70px -12px rgba(11,21,36,.18);
  --shadow-brand: 0 8px 24px -6px rgba(26,115,232,.4);

  /* ── Layout ── */
  --maxw: 1120px;
  --maxw-narrow: 760px;
  --nav-h: 64px;
  /* Vertical rhythm. Two stacked .sections put this gap between them twice, so
     it reads roughly double on screen — keep it modest. */
  --section-y: 72px;
  --ease: cubic-bezier(.2, 0, 0, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); }
::selection { background: var(--brand-tint); color: var(--brand-hover); }

h1, h2, h3, h4 { line-height: 1.08; letter-spacing: -.03em; color: var(--ink); margin: 0 0 .5em; font-weight: 680; text-wrap: balance; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -.015em; font-weight: 640; }
p  { margin: 0 0 1rem; color: var(--ink-2); }

/* ── Layout primitives ── */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
/* Headings that exist for document outline / screen readers only. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.container--narrow { max-width: var(--maxw-narrow); }
.section { padding: var(--section-y) 0; }
.section--soft {
  background:
    radial-gradient(55% 70% at 88% 0%, rgba(26,115,232,.05), transparent 55%),
    linear-gradient(180deg, #f6f9fd, #eff4fb);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.center { text-align: center; }

/* Micro-label — "01 · WHY VELENS". Clear sans, bold: readable at a glance.
   (Mono is reserved for code and product-mock internals.) */
.lead { font-size: var(--fs-lead); color: var(--muted); line-height: 1.65; }

.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { max-width: 22ch; }
.section-head .lead { margin-bottom: 0; }
/* Centered variant: heading runs full width on one line, copy centered under it. */
.section-head--center { max-width: none; text-align: center; }
.section-head--center h1,
.section-head--center h2 { max-width: none; }
/* .hero h1 caps its own width later in the file, so this needs the extra weight. */
.hero .section-head--center h1 { max-width: none; margin-left: auto; margin-right: auto; }
.section-head--center .lead { max-width: 62ch; margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: var(--r-md);
  font-size: .95rem; font-weight: 600;
  font-family: var(--sans);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease),
              box-shadow .16s var(--ease), transform .16s var(--ease), color .16s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex-shrink: 0; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-hover); color: #fff; box-shadow: 0 10px 28px -6px rgba(26,115,232,.5); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--subtle); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-lg { padding: 14px 26px; font-size: 1.02rem; border-radius: 12px; }
/* On navy */
.btn-inverse { background: #fff; color: var(--navy); }
.btn-inverse:hover { background: var(--brand-tint); color: var(--navy); }
.btn-outline-inverse { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-outline-inverse:hover { border-color: #fff; color: #fff; }

/* ============================================================================
   NAV
   ========================================================================== */
/* The nav is navy on every page and at every scroll position — the only
   exception is the dark hero, where .nav--overlay makes it transparent so it
   melts into the hero art until the page scrolls. */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(15,39,68,.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; height: 100%;
  padding: 0 24px;
  display: flex; align-items: center; gap: 24px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.08rem; color: #fff; letter-spacing: -.02em; }
.nav-brand:hover { color: #fff; }
.nav-brand .mark { width: 28px; height: 28px; border-radius: 7px; overflow: hidden; flex-shrink: 0; }
.nav-brand .tag {
  font-family: var(--sans); font-size: .66rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  color: #a8c8f8; background: rgba(255,255,255,.14);
  padding: 3px 9px; border-radius: var(--r-pill);
}
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 6px; }
.nav-links a {
  padding: 7px 13px; border-radius: var(--r-sm);
  color: rgba(255,255,255,.78); font-weight: 500; font-size: .92rem;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-links a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-links a.active { color: #fff; }
.nav .btn-ghost { color: rgba(255,255,255,.88); }
.nav .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-cta { margin-left: auto; display: flex; align-items: center; }
/* Spacing lives on the inner button (inside the collapsing wrap) so a
   collapsed CTA leaves no phantom gap. */
.nav-cta .cta-wrap > .btn { margin-left: 10px; }
/* Scroll-linked CTA reveal: on pages with a hero CTA (data-nav-cta-sentinel),
   the nav's Add-to-Chrome stays hidden until the hero CTA scrolls away, then
   expands in next to Sign in. JS toggles .nav--cta-hidden; no-JS shows it. */
.nav-cta .cta-wrap {
  display: inline-flex; max-width: 240px; overflow: hidden;
  opacity: 1; transform: none;
  transition: max-width .5s var(--ease), opacity .28s var(--ease) .12s, transform .4s var(--ease) .08s;
}
.nav--cta-hidden .cta-wrap {
  max-width: 0; opacity: 0; transform: translateY(-10px);
  pointer-events: none;
  transition: max-width .45s var(--ease) .05s, opacity .2s var(--ease), transform .3s var(--ease);
}
/* Sign in and Open VeLens Cloud point at the same place, so only ever show
   one: Sign in holds the slot while the CTA is collapsed, and hands it over
   when the CTA expands in. */
.nav-signin {
  display: inline-flex; max-width: 0; overflow: hidden;
  opacity: 0; transform: translateY(-10px); pointer-events: none;
  transition: max-width .45s var(--ease) .05s, opacity .2s var(--ease), transform .3s var(--ease);
}
.nav--cta-hidden .nav-signin {
  max-width: 140px; opacity: 1; transform: none; pointer-events: auto;
  transition: max-width .5s var(--ease), opacity .28s var(--ease) .12s, transform .4s var(--ease) .08s;
}
/* Soft elevation once the page is scrolled */
.nav { transition: box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease); }
.nav.scrolled {
  background: rgba(15,39,68,.97);
  box-shadow: 0 8px 24px -14px rgba(11,21,36,.55);
}

/* Overlay nav — used on pages with a dark hero (.hero--dark). Transparent at
   the top so it reads as part of the hero; settles into the solid navy bar
   once scrolled. Colours already match, so only the surface changes. */
.nav--overlay:not(.scrolled) {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: #fff; border-radius: var(--r-sm); }
.nav-toggle:hover { background: rgba(255,255,255,.08); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  background: var(--navy); border-bottom: 1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow-md);
  padding: 10px 24px 18px;
}
.nav-drawer a { display: block; padding: 11px 4px; color: rgba(255,255,255,.88); font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.10); }
.nav-drawer a:last-child { border-bottom: 0; }
.nav.open .nav-drawer { display: block; }

/* ============================================================================
   HERO — asymmetric: copy left, product mock right
   ========================================================================== */
.hero {
  position: relative;
  padding: 84px 0 96px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
/* Dot-grid drafting texture + brand glow */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: radial-gradient(circle, var(--line-strong) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 72%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(46% 58% at 78% 18%, rgba(26,115,232,.09), transparent 65%),
    radial-gradient(38% 40% at 12% 4%, rgba(26,115,232,.05), transparent 60%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5.4fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}
/* Grid/flex children with nowrap content (mock URLs, code lines) must be
   allowed to shrink below min-content or the page overflows on mobile. */
.hero-grid > *, .split > * { min-width: 0; }
.hero h1 {
  font-size: var(--fs-display);
  letter-spacing: -.035em;
  max-width: 14ch;
  margin: 18px 0 0;
}
.hero h1 .accent { color: var(--brand); }
.hero .lead { max-width: 46ch; margin: 22px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note {
  margin-top: 22px;
  font-family: var(--sans); font-size: .88rem;
  color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 8px 20px;
}
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note .tick { color: var(--success); }

/* ── Dark atmospheric hero (home) ──
   Deep navy field with brand glows, faint white dot grid, and concentric
   rings — bookends the page with the navy footer/CTA band. Slides under the
   transparent overlay nav. */
.hero--dark {
  margin-top: calc(-1 * var(--nav-h));
  padding: calc(84px + var(--nav-h)) 0 104px;
  border-bottom: 0;
  background:
    radial-gradient(52% 62% at 78% 10%, rgba(26,115,232,.30), transparent 62%),
    radial-gradient(42% 52% at 4% 96%, rgba(26,115,232,.14), transparent 58%),
    linear-gradient(152deg, var(--navy-deep) 0%, var(--navy) 52%, #132f54 100%);
}
.hero--dark::before {
  background-image: radial-gradient(circle, rgba(255,255,255,.13) 1px, transparent 1px);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 78%);
}
.hero--dark::after { content: none; }
.hero .container { position: relative; z-index: 1; }
.hero-rings { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-rings i { position: absolute; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; }
.hero-rings i:nth-child(1) { width: 680px; height: 680px; right: -200px; top: -260px; }
.hero-rings i:nth-child(2) { width: 440px; height: 440px; right: -70px; top: -120px; border-color: rgba(255,255,255,.05); }
.hero-rings i:nth-child(3) { width: 560px; height: 560px; left: -260px; bottom: -300px; border-color: rgba(255,255,255,.05); }

.hero--dark h1 { color: #fff; }
.hero--dark h1 .accent { color: var(--brand-bright); }
.hero--dark .lead { color: rgba(255,255,255,.72); }
.hero--dark .hero-note { color: rgba(255,255,255,.6); }
.hero--dark .hero-note .tick { color: #5dd88a; }
/* ── Staggered load reveal (hero only) ── */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero .rise { animation: rise .7s var(--ease) both; }
.hero .rise:nth-child(1) { animation-delay: .05s; }
.hero .rise:nth-child(2) { animation-delay: .14s; }
.hero .rise:nth-child(3) { animation-delay: .23s; }
.hero .rise:nth-child(4) { animation-delay: .32s; }
.hero .rise:nth-child(5) { animation-delay: .41s; }
.hero-visual { animation: rise .8s var(--ease) .3s both; }

/* ============================================================================
   FEATURE SHOWCASE — rotating real product screenshots in the hero
   ========================================================================== */
.hero-visual { position: relative; }
.showcase-stage {
  position: relative;
  aspect-ratio: 700 / 582;   /* matches the cropped shots */
  border-radius: var(--r-lg);
}
.showcase-slide {
  position: absolute; inset: 0;
  opacity: 0; transform: scale(1.012);
  transition: opacity .65s var(--ease), transform .9s var(--ease);
  pointer-events: none;
}
.showcase-slide.active { opacity: 1; transform: none; pointer-events: auto; }
/* Screenshot slides only. A .showcase--mocks slide is markup, and its little
   logos are <img> too - without the :not() they would be stretched to fill the
   slide and given a screenshot's border and drop shadow. */
.showcase:not(.showcase--mocks) .showcase-slide img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 32px 90px -18px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.05);
}
.showcase-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.showcase--center .showcase-tabs { justify-content: center; }
.showcase-tab {
  font-family: var(--sans); font-size: .8rem; font-weight: 600;
  color: rgba(255,255,255,.66);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-pill);
  padding: 6px 14px; cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.showcase-tab:hover { background: rgba(255,255,255,.13); color: #fff; }
.showcase-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.showcase-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Hero showcase built from CSS mocks instead of screenshots. The stage sets the
   height (slides are absolutely positioned), so every mock fills it and the
   crossfade never jumps. */
.showcase--mocks .showcase-stage { aspect-ratio: 640 / 400; }
/* Narrow screens: the stage gets its height from the width, and the chat slide
   needs more of it than the ratio above allows. */
.showcase--mocks .showcase-slide > * { height: 100%; }
.hero--dark .showcase--mocks .mock-studio { min-height: 0; font-size: .78rem; }
/* Doubled class: .mock-studio is defined later in this file, so a single-class
   selector would lose to it and the sidebar column would survive. */
.mock-studio.mock-studio--solo { grid-template-columns: 1fr; }

/* Chat mock */
.mc-msg { border-radius: var(--r-md); padding: 9px 12px; margin-bottom: 8px; max-width: 88%; line-height: 1.5; }
.mc-msg.user { background: var(--brand); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.mc-msg.bot { background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.mc-tool {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px;
  font-family: var(--mono); font-size: .68rem; color: var(--muted);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px 10px;
}
.mc-tool .ok { color: var(--success); font-weight: 700; }

/* Command-palette mock */
.mc-search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: 10px 13px; color: var(--subtle); margin-bottom: 10px;
}
.mc-kbd {
  margin-left: auto; font-family: var(--mono); font-size: .66rem; color: var(--muted);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px;
}

/* Run-history table inside a chat answer */
.mc-runs { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; margin-top: 9px; }
.mc-run { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--line); font-size: .72rem; }
.mc-run:last-child { border-bottom: 0; }
.mc-run .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.mc-run .dot.bad { background: #d64545; }
.mc-run .dot.good { background: var(--success); }
.mc-run .when { font-family: var(--mono); font-size: .66rem; color: var(--muted); }
.mc-run .what { margin-left: auto; color: var(--ink); }

/* Extension mocks: a slice of a real SFMC page with a VeLens surface over it */
.mc-stage { position: relative; height: 100%; background: #eef2f7; border-radius: var(--r-md); padding: 12px; overflow: hidden; }
.mc-crumb { display: flex; align-items: center; gap: 7px; font-size: .68rem; font-weight: 650; color: var(--muted); margin-bottom: 11px; }
.mc-crumb .tag { background: #dde5ef; color: #5b6b7f; border-radius: 4px; padding: 1px 7px; font-size: .62rem; font-weight: 600; }
/* Marks the two extension slides so they read apart from the Cloud ones. */
.mc-badge {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 2px 9px 2px 5px; font-size: .62rem; font-weight: 650; color: var(--ink-2);
}
.mc-badge svg { display: block; }
.mc-lines i { display: block; height: 7px; border-radius: 4px; background: #dde5ef; margin-bottom: 7px; }
.mc-lines i.w85 { width: 85%; }
.mc-lines i.w60 { width: 60%; }
.mc-lines i.w40 { width: 40%; }

/* Command palette floating over the page */
.mc-pal {
  position: absolute; left: 12px; right: 12px; top: 58px;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mc-pal-input { display: flex; align-items: center; gap: 8px; padding: 11px 13px; border-bottom: 1px solid var(--line); color: var(--subtle); }
.mc-pal-row { display: flex; align-items: center; gap: 9px; padding: 8px 13px; }
.mc-pal-row.sel { background: var(--brand-tint); }
.mc-pal-row .t { color: var(--ink); }
.mc-pal-row .kind { margin-left: auto; font-size: .66rem; color: var(--subtle); }
.mc-ico { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font-size: .58rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.mc-ico.a { background: #5b8def; }
.mc-ico.d { background: #8b6fe0; }
.mc-ico.j { background: #2fa27a; }
.mc-ico.e { background: #e0803a; }

/* Email Health panel, docked right like the real one */
.mc-panel {
  position: absolute; right: 12px; top: 46px; width: 63%;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  box-shadow: var(--shadow-lg); padding: 12px 14px;
}
.mc-panel-head { display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }
.mc-panel-head img { width: 15px; height: 15px; border-radius: 4px; display: block; }
.mc-score { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.mc-ring { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: conic-gradient(var(--success) 0 75%, #e6ebf2 75%); }
.mc-ring span { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 700; font-size: .82rem; color: var(--ink); }
.mc-score .lab { font-size: .72rem; color: var(--muted); line-height: 1.45; }
.mc-check { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .74rem; color: var(--ink); }
.mc-check:last-child { border-bottom: 0; }
.mc-check .ic { width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .55rem; font-weight: 700; flex-shrink: 0; }
.mc-check .ic.ok { background: var(--success); }
.mc-check .ic.no { background: var(--warn); }

/* Narrow screens. This MUST stay below the .mc-* rules above: a media query adds
   no specificity, so placed earlier these declarations lose to the equal-specificity
   base rules and silently do nothing. */
@media (max-width: 760px) {
  .showcase--mocks .showcase-stage { aspect-ratio: 380 / 405; }
  /* The page breadcrumb is scene-setting only - drop the sub-app tag and let the
     panel go near-full-width rather than wrapping everything onto two lines. */
  .mc-crumb { white-space: nowrap; }
  .mc-crumb .tag { display: none; }
  .mc-badge { font-size: .58rem; padding: 2px 7px 2px 4px; }
  .mc-panel { width: calc(100% - 24px); top: 50px; }
  .mc-pal { top: 50px; }
}

/* Dot pagination instead of labelled tabs. Same buttons and same JS - only the
   presentation changes, so the tablist semantics and keyboard focus survive. */
.showcase-tabs--dots { gap: 9px; justify-content: center; margin-top: 20px; }
.showcase-tabs--dots .showcase-tab {
  width: 9px; height: 9px; padding: 0; border-radius: 50%;
  background: rgba(255,255,255,.3); border: 0;
}
.showcase-tabs--dots .showcase-tab:hover { background: rgba(255,255,255,.55); }
.showcase-tabs--dots .showcase-tab.active { background: #fff; }
.showcase--light .showcase-tabs--dots .showcase-tab { background: var(--line-strong); }
.showcase--light .showcase-tabs--dots .showcase-tab.active { background: var(--brand); }

/* Showcase on a light section (home "see it in action") */
.showcase--light:not(.showcase--mocks) .showcase-slide img {
  border-color: var(--card-line);
  box-shadow: var(--shadow-lg);
}
.showcase--light .showcase-tab {
  color: var(--ink-2); background: #fff; border-color: var(--line-strong);
}
.showcase--light .showcase-tab:hover { background: var(--bg-soft); color: var(--ink); }
.showcase--light .showcase-tab.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.showcase--light .showcase-tab:focus-visible { outline-color: var(--brand); }

/* ============================================================================
   STUDIO STRIP — honest replacement for a fake logo row
   ========================================================================== */
.strip {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.strip-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px 0;
  font-family: var(--sans); font-size: .82rem; font-weight: 500;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
}
.strip-label { color: var(--ink); font-weight: 700; margin-right: 26px; }
.strip-inner span:not(.strip-label):not(.sep) { white-space: nowrap; }
.strip .sep { margin: 0 14px; color: var(--line-strong); }

@media (max-width: 760px) {
  /* Wrapping around inline separators leaves dots stranded at line edges.
     On narrow screens drop the dots and let the gap do the separating. */
  .strip-inner { justify-content: center; text-align: center; gap: 8px 18px; }
  .strip-label { width: 100%; margin-right: 0; margin-bottom: 2px; }
  .strip .sep { display: none; }
}

/* ============================================================================
   NUMBERED VALUE CARDS
   ========================================================================== */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.value-card {
  position: relative;
  background: linear-gradient(180deg, #fff, #fcfdfe);
  border: 1px solid var(--card-line);
  border-radius: var(--r-lg);
  padding: 28px 26px 26px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.value-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
/* Icon and title on one line (home "Teams & control" cards). */
.value-card--inline .vc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.value-card--inline .vc-head .glyph { margin-bottom: 0; line-height: 0; }
.value-card--inline .vc-head h3 { margin: 0; }
.value-card .num {
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 600;
  color: var(--subtle); letter-spacing: .08em;
  display: block; margin-bottom: 30px;
}
.value-card .num::after { content: ""; display: block; width: 100%; height: 1px; background: var(--line); margin-top: 12px; }
.value-card .glyph { color: var(--brand); margin-bottom: 14px; }
.value-card .glyph svg { display: block; }
.value-card h3 { margin-bottom: 8px; }
.value-card p { color: var(--muted); margin: 0; font-size: .94rem; line-height: 1.6; }

/* ============================================================================
   ROLES — capability ledger
   ========================================================================== */
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--card-line); border-radius: var(--r-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.role-col { padding: 30px 28px 28px; border-right: 1px solid var(--line); }
.role-col:last-child { border-right: 0; }
.role-col .role-tag {
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); display: block; margin-bottom: 12px;
}
.role-col h3 { margin-bottom: 16px; }
.role-col ul { list-style: none; margin: 0; padding: 0; }
.role-col li {
  position: relative; padding: 9px 0 9px 22px;
  color: var(--ink-2); font-size: .93rem;
  border-top: 1px solid var(--line);
}
.role-col li::before {
  content: "→"; position: absolute; left: 0; top: 9px;
  color: var(--brand); font-size: .82rem;
}

/* ============================================================================
   FEATURE SPLITS
   ========================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--reverse .split-copy { order: 2; }
.split-copy h2 { max-width: 18ch; }
.split-copy .lead { margin-bottom: 22px; }
.split-points { list-style: none; margin: 0; padding: 0; }
.split-points li {
  position: relative; padding: 8px 0 8px 26px;
  color: var(--ink-2); font-size: .95rem;
}
.split-points li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg) translateY(-3px);
}

.sig.ok { background: var(--success); }
.sig.err { background: var(--danger); box-shadow: 0 0 0 4px rgba(217,48,37,.12); }
.sig.warn { background: var(--warn); }

/* ============================================================================
   SURFACE CARDS — the ecosystem grid (home + /surfaces index)
   ========================================================================== */
.surface-card {
  position: relative; display: block;
  background: linear-gradient(180deg, #fff, #fcfdfe);
  border: 1px solid var(--card-line); border-radius: var(--r-lg);
  padding: 24px 24px 22px;
  box-shadow: var(--shadow-sm);
  color: inherit;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
a.surface-card:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-3px); color: inherit; }
.surface-card .sc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.surface-card .glyph { color: var(--brand); }
.surface-card h3 { margin-bottom: 6px; }
.surface-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.surface-card .sc-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--brand); font-weight: 650; font-size: .9rem; }
.surface-card.soon { opacity: .78; }
.surface-card.soon:hover { transform: none; border-color: var(--card-line); box-shadow: var(--shadow-sm); }

/* Footer roadmap entries (non-links) */

/* ============================================================================
   PLATFORM — Studio mock + surface roadmap
   ========================================================================== */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 10px; border-radius: var(--r-pill);
}
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pill.live { background: #e6f4ea; color: #1b7d3a; }
.status-pill.soon { background: var(--brand-tint); color: #1a56db; }

/* CSS mock of VeLens Studio (web app) — navy sidebar + org-health cards */
.mock-studio {
  display: grid; grid-template-columns: 168px 1fr;
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  font-size: .78rem; min-height: 340px;
}
.ms-side { background: var(--navy); color: #cdd8e6; padding: 16px 12px; display: flex; flex-direction: column; gap: 3px; }
.ms-brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; font-size: .8rem; margin-bottom: 14px; padding: 0 6px; }
.ms-brand img { width: 18px; height: 18px; border-radius: 4px; display: block; }
.ms-item { padding: 7px 10px; border-radius: var(--r-sm); font-weight: 500; color: rgba(255,255,255,.75); }
.ms-item.active { background: var(--brand); color: #fff; }
.ms-main { padding: 18px 20px; background: var(--bg-soft); }
.ms-title { display: flex; justify-content: space-between; align-items: baseline; font-weight: 650; color: var(--ink); font-size: .92rem; margin-bottom: 14px; }
.ms-title .ms-date { font-size: .72rem; font-weight: 500; color: var(--subtle); }
.ms-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ms-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.ms-card .k { display: block; font-size: .7rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.ms-card b { display: block; font-size: 1.25rem; letter-spacing: -.02em; color: var(--ink); }
.ms-card i { display: block; font-style: normal; font-size: .7rem; margin-top: 3px; font-weight: 600; }
.ms-card i.ok { color: var(--success); }
.ms-card i.warn { color: var(--warn); }
.ms-ask {
  margin-top: 12px; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: 10px 14px; color: var(--subtle);
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.ms-ask .go { color: var(--brand); font-weight: 650; white-space: nowrap; }
/* Feature-toggle / team rows — the "govern both surfaces" mock. */
.ms-rows { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.ms-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 13px; border-bottom: 1px solid var(--line); color: var(--ink); }
.ms-row:last-child { border-bottom: 0; }
.ms-row .sub { color: var(--subtle); font-size: .72rem; }
.ms-tog { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.ms-tog.on { background: rgba(31,161,90,.12); color: var(--success); }
.ms-tog.off { background: var(--bg-soft); color: var(--subtle); border: 1px solid var(--line); }
.ms-role { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); border: 1px solid var(--line); }
.ms-role.owner { background: var(--brand-tint); color: var(--brand); border-color: transparent; }
.ms-sub-title { font-weight: 650; color: var(--ink); font-size: .82rem; margin: 14px 0 8px; }
/* Studio mock as the dark-hero visual */
.hero--dark .mock-studio {
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 32px 90px -18px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.05);
  min-height: 400px; font-size: .82rem;
}

/* ============================================================================
   HOW IT WORKS — 3 steps
   ========================================================================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.step { padding: 30px 28px 6px 0; margin-top: -1px; position: relative; }
.step .step-num {
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 700;
  letter-spacing: .08em;
  color: var(--brand); display: block; margin-bottom: 14px;
}
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 44px; height: 2px; background: var(--brand); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .94rem; margin: 0; padding-right: 18px; }
.step code {
  font-family: var(--mono); font-size: .8em;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px;
  color: var(--ink);
}

/* ============================================================================
   STATS BAND
   ========================================================================== */
.stat { padding: 30px 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--mono); font-size: 2rem; font-weight: 600;
  letter-spacing: -.04em; color: var(--ink); line-height: 1;
  display: block; margin-bottom: 10px;
}
.stat .num em { font-style: normal; color: var(--brand); }
.stat .label { font-size: var(--fs-sm); color: var(--muted); }

/* ============================================================================
   CTA BAND
   ========================================================================== */
.cta-band {
  position: relative;
  background: linear-gradient(130deg, var(--navy), var(--navy-2));
  color: #fff; border-radius: var(--r-xl);
  padding: 72px 56px;
  overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(90% 100% at 50% 0%, rgba(0,0,0,.7), transparent 72%);
  -webkit-mask-image: radial-gradient(90% 100% at 50% 0%, rgba(0,0,0,.7), transparent 72%);
}
.cta-band > * { position: relative; }
/* Centered: the band is full-width with no art on the right, so left-aligned
   copy reads as tucked into a corner. */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; max-width: 22ch; margin-left: auto; margin-right: auto; }
.cta-band p { color: rgba(255,255,255,.72); max-width: 52ch; margin: 0 auto 30px; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .hero-note { color: rgba(255,255,255,.45); justify-content: center; }

/* ============================================================================
   DOCS layout
   ========================================================================== */
.docs { display: grid; grid-template-columns: 236px 1fr; gap: 56px; align-items: start; }
/* Without this, a wide table's min-content width stretches the 1fr column past
   the viewport and every paragraph on the page wraps off-screen. */
.docs > * { min-width: 0; }
.docs-side { position: sticky; top: calc(var(--nav-h) + 28px); }
.docs-side .group { margin-bottom: 24px; }
.docs-side .group-title {
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em; color: var(--subtle); margin-bottom: 8px;
}
.docs-side a { display: block; padding: 6px 10px; border-radius: var(--r-sm); color: var(--ink-2); font-size: .91rem; border-left: 2px solid transparent; }
.docs-side a:hover { background: var(--bg-soft); color: var(--brand); }
.docs-side a.active { border-left-color: var(--brand); background: var(--brand-tint); color: var(--brand); font-weight: 600; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
/* Anchor targets must clear the sticky nav, or a #hash jump parks the heading
   underneath it and the reader can't tell where they landed. */
.prose [id] { scroll-margin-top: calc(var(--nav-h) + 24px); }
/* Brief tint on the heading you jumped to, so the landing spot is obvious. */
.prose [id]:target { animation: target-flash 1.6s var(--ease) forwards; }
@keyframes target-flash {
  0%, 45% { background: var(--brand-tint); box-shadow: -10px 0 0 var(--brand-tint), 10px 0 0 var(--brand-tint); }
  100%    { background: transparent; box-shadow: none; }
}
.prose h2 { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); }
.prose h2:first-of-type { border-top: 0; padding-top: 0; }
.prose h3 { margin-top: 28px; }
.prose code {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px;
  padding: 2px 6px; font-size: .84em; font-family: var(--mono);
}
.prose p { color: var(--ink-2); }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 22px; color: var(--ink-2); }
.prose li { margin-bottom: 8px; padding-left: 4px; }
.prose li::marker { color: var(--subtle); }
.prose table {
  width: 100%; border-collapse: collapse; margin: 8px 0 20px;
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  font-size: .92rem;
}
.prose thead { background: var(--bg-soft); }
.prose th {
  text-align: left; padding: 10px 14px; color: var(--ink);
  font-family: var(--mono); font-size: var(--fs-mono); font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}
.prose td { padding: 11px 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.prose tbody tr:last-child td { border-bottom: 0; }

/* ============================================================================
   BLOG
   ========================================================================== */
.post-card {
  display: flex; flex-direction: column; overflow: hidden; padding: 0;
  background: #fff; border: 1px solid var(--card-line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), transform .18s var(--ease);
}
.post-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-thumb {
  aspect-ratio: 16/9;
  background:
    radial-gradient(circle, var(--line-strong) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(135deg, var(--brand-tint), #fff);
  display: flex; align-items: center; justify-content: center;
  color: var(--subtle); font-family: var(--sans); font-size: var(--fs-label); font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.post-body { padding: 22px 24px 26px; }
.post-meta {
  font-family: var(--sans); font-size: var(--fs-label); font-weight: 600; color: var(--subtle);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px;
}
.post-body h3 { margin-bottom: 8px; }
.post-body p { font-size: .93rem; color: var(--muted); margin: 0; }

/* Upcoming-topic teaser: post-card without a hover-lift link, mono status meta */
.post-card.upcoming { cursor: default; }
.post-card.upcoming:hover { transform: none; box-shadow: none; border-color: var(--line); }
.post-meta .up { color: var(--brand); }

/* Newsletter capture (blog) */
.newsletter-form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.newsletter-input {
  padding: 12px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  min-width: 280px; font-size: 1rem; font-family: var(--sans);
  color: var(--ink); background: #fff;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.newsletter-input::placeholder { color: var(--subtle); }
.newsletter-input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }

/* ============================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--navy); color: #aebccd; padding: 68px 0 34px; }
.footer a { color: #aebccd; }
.footer a:hover { color: #fff; }
.footer-top {
  display: grid; grid-template-columns: 1.6fr repeat(2, 1fr); gap: 44px;
  padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 14px; letter-spacing: -.02em; }
.footer-brand .mark { width: 26px; height: 26px; border-radius: 6px; overflow: hidden; }
.footer p { color: #7e90a5; font-size: .9rem; max-width: 32ch; }
.footer-col h4 {
  color: #fff; font-family: var(--sans); font-size: var(--fs-label); font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; margin: 0 0 16px;
}
.footer-col a { display: block; font-size: .9rem; padding: 5px 0; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-family: var(--sans); font-size: .82rem; color: #7e90a5;
}
.footer-bottom .disclaimer { max-width: 62ch; }

/* ============================================================================
   SCROLL REVEAL (js adds .in)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero .rise, .hero-visual { animation: none; }
  .showcase-slide { transition: none; }
  .nav-cta .cta-wrap, .nav--cta-hidden .cta-wrap { transition: none; }
  .nav-signin, .nav--cta-hidden .nav-signin { transition: none; }
  html { scroll-behavior: auto; }
  .prose [id]:target { animation: none; }
}


/* ============================================================================
   FEATURES PAGE
   ----------------------------------------------------------------------------
   Page-specific components, all built on the existing tokens:
   .cap-note   one-line footnote under a feature block
   .shot       framed product screenshot beside a .split-copy column
   .flow       numbered rail for the agent loop
   .sec-panel  security claims as a checklist next to the standing copy
   ========================================================================== */
.cap-note {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
  margin-top: 18px; color: var(--muted); font-size: var(--fs-sm);
}


/* ── Screenshot lightbox ── */
.zoomable { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 40px 24px;
  background: rgba(11,21,36,.86);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
.lightbox.open { display: flex; animation: lb-in .18s var(--ease); }
.lightbox img {
  max-width: min(1200px, 96vw); max-height: 90vh;
  width: auto; height: auto; display: block;
  border-radius: var(--r-lg);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.7);
  cursor: zoom-out;
}
.lb-close {
  position: absolute; top: 18px; right: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  color: #fff; cursor: pointer;
  transition: background .18s var(--ease);
}
.lb-close:hover { background: rgba(255,255,255,.22); }
.lb-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lightbox.open { animation: none; } }

/* ── Feature split screenshots (features page) ── */
.shot { position: relative; }
.shot img {
  display: block; width: 100%; height: auto; border-radius: var(--r-lg);
  border: 1px solid var(--card-line); box-shadow: var(--shadow-lg);
}
.split--tight { gap: 56px; align-items: center; }
.split-copy .kbd {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px;
  font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: .04em;
  color: var(--ink-2); background: var(--bg-soft);
  border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: var(--r-sm); padding: 5px 9px;
}

/* ── Agent flow rail ── */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.flow::before {              /* rail stops at the last dot, not the page edge */
  content: ""; position: absolute; left: 0; right: calc(25% - 14px); top: 13px; height: 1px;
  background: var(--line-strong);
}
.flow-step { position: relative; padding: 0 26px 0 0; }
.flow-step .dot {
  position: relative; z-index: 1; width: 27px; height: 27px;
  border-radius: 50%; background: #fff; border: 1px solid var(--line-strong);
  color: var(--brand); font-size: var(--fs-xs); font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
}
.flow-step:first-child .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.flow-step h3 { margin-bottom: 8px; font-size: 1.05rem; }
.flow-step p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.6; }
.section--soft .flow-step .dot { background: var(--bg-soft); }
.section--soft .flow-step:first-child .dot { background: var(--brand); }

/* ── Security checklist ── */
.sec-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: start; }
.sec-panel {
  border: 1px solid var(--card-line); border-radius: var(--r-lg); background: #fff;
  box-shadow: var(--shadow-md); padding: 8px 26px; margin: 0;
}
.sec-panel li { list-style: none; padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.sec-panel li:last-child { border-bottom: 0; }
.sec-panel .tick { color: var(--success); flex-shrink: 0; margin-top: 2px; }
.sec-panel .tick svg { display: block; }
.sec-panel b { display: block; font-size: .98rem; margin-bottom: 3px; }
.sec-panel span { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.sec-copy p { color: var(--ink-2); }
.sec-copy .fine { color: var(--muted); font-size: .89rem; margin-bottom: 0; }

@media (max-width: 980px) {
  .flow { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .flow::before { content: none; }
  .sec-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 560px) {
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow-step { padding-right: 0; }
}


/* CSS mock of SFMC's app switcher with VeLens listed in it (surfaces page) */
.mock-appmenu {
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; font-size: .82rem;
}
.am-bar {
  background: #d9541f; color: #fff; display: flex; align-items: center; gap: 14px;
  padding: 11px 16px; font-weight: 600; font-size: .8rem;
}
.am-bar .grid-ico { display: grid; grid-template-columns: repeat(3, 4px); gap: 3px; }
.am-bar .grid-ico i { width: 4px; height: 4px; background: rgba(255,255,255,.9); border-radius: 1px; }
.am-bar .spacer { margin-left: auto; opacity: .75; font-weight: 500; }
.am-body { padding: 18px; background: var(--bg-soft); }
.am-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); padding: 8px; max-width: 320px;
}
.am-head {
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--subtle); padding: 8px 12px 6px;
}
.am-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: var(--r-sm); color: var(--ink-2);
}
.am-item .ico { width: 20px; height: 20px; border-radius: 5px; background: var(--line); flex-shrink: 0; }
.am-item.velens { background: var(--brand-tint); color: var(--ink); font-weight: 650; }
.am-item.velens .ico { background: transparent; }
.am-item.velens img { width: 20px; height: 20px; border-radius: 5px; display: block; }
.am-item .new {
  margin-left: auto; font-size: var(--fs-xs); font-weight: 700; color: var(--brand);
}


/* ============================================================================
   CONTACT FORM
   ----------------------------------------------------------------------------
   Markup is shaped for a Salesforce Web-to-Lead POST (field names match the
   standard Lead fields). Until the endpoint is wired the form is inert and the
   submit handler shows an inline note instead.
   ========================================================================== */
.form-card {
  background: #fff; border: 1px solid var(--card-line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-md); padding: 32px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 500; color: var(--subtle); }
.field input, .field textarea, .field select {
  font-family: var(--sans); font-size: var(--fs-body); color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-md);
  padding: 11px 13px; width: 100%;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint);
}
.field input::placeholder, .field textarea::placeholder { color: var(--subtle); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 24px; }
.form-actions .fine { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.form-note {
  margin: 18px 0 0; padding: 13px 16px; border-radius: var(--r-md);
  background: var(--brand-tint); color: #12467f; font-size: var(--fs-sm);
  border: 1px solid rgba(26,115,232,.22);
}
.form-note[hidden] { display: none; }
.form-note--ok { background: rgba(46,125,50,.09); color: #1e5b22; border-color: rgba(46,125,50,.28); }
.form-note--err { background: rgba(217,48,37,.08); color: #a3231b; border-color: rgba(217,48,37,.26); }
.form-note--err a { color: inherit; }
.contact-aside .contact-line { display: flex; gap: 13px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-aside .contact-line:last-child { border-bottom: 0; }
.contact-aside .glyph { color: var(--brand); flex-shrink: 0; margin-top: 2px; }
.contact-aside .glyph svg { display: block; }
.contact-aside b { display: block; font-size: .98rem; margin-bottom: 2px; }
.contact-aside span { color: var(--muted); font-size: .92rem; line-height: 1.55; }
@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px; }
}

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { max-width: 18ch; }
  .roles, .steps { grid-template-columns: 1fr; }
  .role-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .role-col:last-child { border-bottom: 0; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .step { padding-right: 0; }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split-copy { order: 0; }
  .docs { grid-template-columns: 1fr; }
  .docs-side { position: static; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  /* Narrow screens can't fit a 3-column table — let it scroll inside itself
     instead of widening the page. */
  .prose table { display: block; width: 100%; overflow-x: auto; }
}
@media (max-width: 560px) {
  .section { padding: 52px 0; }
  /* Number badge sits beside the title rather than on its own line. */
  .flow-step { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
  .flow-step .dot { margin-bottom: 0; }
  .flow-step h3 { margin: 0; }
  .flow-step p { grid-column: 2; margin-top: 6px; }
  .hero { padding: 56px 0 72px; }
  .cta-band { padding: 48px 26px; }
  .footer-top { grid-template-columns: 1fr; }
  /* "Open VeLens Cloud" at full width leaves no room beside the hamburger —
     expanding it on scroll shoved the toggle past the right edge. Shorten it
     to "Open Cloud" and tighten the gaps rather than dropping the CTA. */
  .nav-inner { gap: 12px; padding: 0 16px; }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .cta-long { display: none; }
  .nav-cta .btn-primary { padding: 8px 14px; font-size: .88rem; white-space: nowrap; }
  /* Mobile keeps the CTA up permanently: the scroll-linked reveal traded a
     stable bar for an animation nobody asked for on a 390px screen. */
  .nav-cta .cta-wrap, .nav--cta-hidden .cta-wrap {
    max-width: none; opacity: 1; transform: none; pointer-events: auto; transition: none;
  }
  .nav-brand .tag { display: none; }
  .nav-drawer .drawer-cta {
    margin-top: 12px; border-bottom: 0; text-align: center;
    background: var(--brand); color: #fff; font-weight: 600;
    border-radius: var(--r-sm); padding: 12px 4px;
  }
}
