/* ENSURE — landing site shared styles */

:root {
  /* color — aligned with the platform (Ink + Off-white + Forest) */
  --ink: #0A0A0A;
  --ink-2: #171717;
  --ink-3: #262626;
  --paper: #FAFAFA;
  --snow: #FFFFFF;
  /* Neutral gray scale — was cool steel/blue, now true neutral.
     steel-50 must be visibly different from --paper or surface-2 cards
     vanish into the page background. */
  --steel-50: #F4F4F5;
  --steel-100: #EFEFEF;
  --steel-200: #E5E5E5;
  --steel-300: #D4D4D4;
  --steel-400: #A3A3A3;
  --steel-500: #6B6B6B;
  --steel-600: #3F3F3F;
  --steel-700: #262626;
  --steel-800: #171717;

  /* Brand colours */
  --brand-orange: #EA580C;   /* safety orange — the ENSURE dot, sacred */
  --brand-blue: #1F1F1F;     /* dark charcoal — primary actions, CTA band */
  --brand-blue-hover: #0A0A0A;

  --kpi-red: #DC2626;
  --kpi-amber: #D97706;
  --kpi-green: #059669;
  --kpi-blue: #2563EB;
  --kpi-purple: #7C3AED;

  /* surface — light theme defaults */
  --bg: var(--paper);
  --surface: var(--snow);
  --surface-2: var(--steel-50);
  --border: var(--steel-200);
  --border-strong: var(--steel-300);
  --text: var(--ink);
  --text-2: var(--steel-600);
  --text-3: var(--steel-500);

  /* density */
  --d: 1;
  --section-y: calc(120px * var(--d));
  --gap: calc(24px * var(--d));
  --pad: calc(24px * var(--d));

  /* type */
  --f-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  /* `--f-mono` now points at Geist Sans — we keep the variable name
     and all the `.mono` / `var(--f-mono)` call sites so existing
     letter-spacing, sizing and tabular-numerals rules continue to
     apply, but the glyphs themselves render in the proportional
     sans face. */
  --f-mono: var(--f-sans);
}

[data-theme="dark"] {
  --bg: var(--ink);
  --surface: #0F1828;
  --surface-2: #131D2E;
  --border: #1E2A3F;
  --border-strong: #2A3850;
  --text: #F1F5F9;
  --text-2: #94A3B8;
  --text-3: #64748B;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
  transition: background-color .25s, color .25s;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; border: 0; background: none; color: inherit; cursor: pointer; }

/* layout */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.section { padding: var(--section-y) 0; }
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-orange);
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; text-wrap: balance; }
h1 { font-size: clamp(48px, 7.5vw, 104px); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(36px, 4.5vw, 64px); letter-spacing: -0.028em; }
h3 { font-size: clamp(22px, 1.8vw, 28px); letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
.lede { font-size: clamp(18px, 1.3vw, 22px); color: var(--text-2); max-width: 60ch; line-height: 1.5; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: 'Fugaz One', cursive !important; font-size: 38px; font-weight: 400; letter-spacing: 0px; line-height: 1;
  display: inline-flex; align-items: baseline;
}
.logo .dot { color: var(--brand-orange); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 15px; color: var(--text-2); font-weight: 500;
  position: relative; padding: 6px 2px;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px;
  background: var(--brand-orange);
}
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 15px; font-weight: 600;
  transition: transform .15s ease, background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand-blue); color: #fff; }
.btn-primary:hover { background: var(--brand-blue-hover); }
.btn-ghost { color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-lg { padding: 16px 24px; font-size: 16px; border-radius: 10px; }
.btn-arrow { display: inline-flex; align-items: center; gap: 6px; }
.btn-arrow .arr { transition: transform .2s; }
.btn-arrow:hover .arr { transform: translateX(3px); }

/* cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: var(--pad);
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--border-strong); }

/* KPI tile */
.kpi {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--kpi-color, var(--kpi-blue));
}
.kpi-label {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 6px;
}
.kpi-value {
  font-size: 32px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--kpi-color, var(--text));
  font-variant-numeric: tabular-nums;
}
.kpi-sub { font-size: 13px; color: var(--text-2); margin-top: 4px; }

/* footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
  margin-top: var(--section-y);
}
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.foot-col h4 {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; font-weight: 500;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 8px; }
.foot-col a { font-size: 14px; color: var(--text-2); }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  border-top: 1px solid var(--border);
  margin-top: 56px; padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--text-3);
}

/* utility */
.row { display: flex; gap: var(--gap); }
.col { display: flex; flex-direction: column; gap: var(--gap); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.muted { color: var(--text-2); }
.mono { font-family: var(--f-mono); }
.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* badge / pill */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-2);
  font-family: var(--f-mono); letter-spacing: .05em;
}
.pill.dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-orange);
}

/* tag */
.tag {
  display: inline-block;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
  font-family: var(--f-mono); letter-spacing: .05em; text-transform: uppercase;
}
.tag-red    { background: color-mix(in oklab, var(--kpi-red)    15%, transparent); color: var(--kpi-red);    }
.tag-amber  { background: color-mix(in oklab, var(--kpi-amber)  15%, transparent); color: var(--kpi-amber);  }
.tag-green  { background: color-mix(in oklab, var(--kpi-green)  15%, transparent); color: var(--kpi-green);  }
.tag-blue   { background: color-mix(in oklab, var(--kpi-blue)   15%, transparent); color: var(--kpi-blue);   }
.tag-purple { background: color-mix(in oklab, var(--kpi-purple) 15%, transparent); color: var(--kpi-purple); }

/* Tweaks panel */
.tw-trigger {
  position: fixed; right: 16px; bottom: 16px; z-index: 100;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.tw-trigger.on { display: flex; }
.tw-panel {
  position: fixed; right: 16px; bottom: 70px; z-index: 100;
  width: 280px; padding: 16px;
  background: var(--surface); border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(0,0,0,.18);
  display: none; flex-direction: column; gap: 14px;
}
.tw-panel.on { display: flex; }
.tw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tw-label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.tw-seg {
  display: flex; gap: 0; padding: 2px;
  background: var(--surface-2); border-radius: 8px;
  border: 1px solid var(--border);
}
.tw-seg button { font-size: 12px; padding: 6px 10px; border-radius: 6px; color: var(--text-2); }
.tw-seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.tw-title { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }

/* responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: clamp(40px, 11vw, 72px); }
}

/* ── Phone-specific tuning (≤640px) — Cognitive Fluency on small screens.
   Goal: cut the dead space between sections (120px+120px per section ate
   nearly a full viewport on a 375px phone) so users reach the conversion
   sections without scroll fatigue. Tightens typography for thumb-scan
   without changing copy. */
@media (max-width: 640px) {
  :root { --section-y: calc(64px * var(--d)); }
  .wrap { padding: 0 20px; }

  h1 { font-size: clamp(30px, 9vw, 42px); letter-spacing: -0.025em; line-height: 1.08; }
  h2 { font-size: clamp(26px, 7vw, 34px); letter-spacing: -0.018em; line-height: 1.12; }
  h3 { font-size: 20px; letter-spacing: -0.01em; }
  .lede { font-size: 16px; line-height: 1.55; max-width: 40ch; }
  .eyebrow { font-size: 10px; letter-spacing: .12em; }

  /* Hero — bring the CTA above the fold on a 667px-tall phone */
  .hero { padding: 56px 0 32px; }
  .hero-badge { padding: 6px 12px; font-size: 11.5px; }
  .hero-centered .lede { max-width: 38ch; }
  .hero-centered h1 { max-width: 14ch; }
  .btn-lg { padding: 12px 18px; font-size: 14.5px; }
  .hero-ctas { gap: 8px; }

  /* The under-hero trust strip is 4 dot-separated items — at 11px it wraps
     cleanly to 2 lines instead of 4 cramped ones. */
  .hero p[style*="font-family:var(--f-mono)"] { font-size: 11px; line-height: 1.6; }

  /* Section content: reduce horizontal padding inside large cards */
  .cta-section { padding: 36px 22px; }
  .cta-section h2 { font-size: clamp(28px, 7.5vw, 36px); }
  .belt { padding: 28px 22px; }

  /* Module / step cards — tighten padding, keep readable */
  .module-card { padding: 22px 20px; }
  .step-card   { padding: 22px 20px; }

  /* Footer — single column with breathing room, smaller headings */
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-col h4 { font-size: 13px; letter-spacing: .04em; }
  .foot-col ul li { font-size: 14px; }
  .footer { padding-top: 48px; }

  /* Product hero (used across all /product/*.html) */
  .prod-hero { padding: 36px 0 24px; }
  .prod-hero h1 { font-size: clamp(28px, 8vw, 38px); max-width: 16ch; }
  .prod-hero .lede { font-size: 16px; max-width: 40ch; }
  .prod-section { padding: 40px 0; }
  .prod-section h2 { font-size: clamp(24px, 7vw, 32px); }
  .feature-row { gap: 22px; }
}

/* ═══════════════════════════════════════════════════════════════
   MEGA-NAV — top-level dropdowns with grouped link panels
   ═══════════════════════════════════════════════════════════════ */

/* The flex container — align children to the same vertical centre so the
   button-based mega items don't sit on a slightly different baseline than
   the flat <a> items. */
.mega-nav .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

/* All top-level items (flat <a>s + .mega-item buttons inside .mega-wrap)
   share one set of typography rules. Critically, we reset the button's
   user-agent font/padding so a <button> and an <a> render identically. */
.mega-nav .nav-links > a,
.mega-nav .nav-links > .mega-wrap > .mega-item {
  font: inherit;            /* clear button user-agent font shorthand */
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 2px;
  margin: 0;
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
}
.mega-nav .nav-links > a:hover,
.mega-nav .nav-links > .mega-wrap > .mega-item:hover,
.mega-nav .nav-links > .mega-wrap > .mega-item[aria-expanded="true"] { color: var(--text); }
.mega-nav .nav-links > .mega-wrap > .mega-item .caret {
  display: inline-block;
  transition: transform .2s ease;
  font-size: 10px;
  opacity: .6;
}
.mega-nav .nav-links > .mega-wrap > .mega-item[aria-expanded="true"] .caret { transform: rotate(180deg); }

/* Wrapper makes the dropdown anchor to the nav item */
.mega-wrap { position: relative; }

/* The panel */
.mega-panel {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 560px; max-width: min(920px, 92vw);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 14px rgba(0,0,0,0.06);
  padding: 18px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 60;
}
.mega-wrap.open > .mega-panel,
.mega-wrap[data-open="true"] > .mega-panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Two-column or three-column grid inside a panel */
.mega-grid { display: grid; gap: 18px; }
.mega-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.mega-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }

.mega-group-title {
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 8px;
}

.mega-link {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px; border-radius: 10px; text-decoration: none;
  transition: background .15s ease;
}
.mega-link:hover { background: var(--surface-2); }
.mega-link .mega-ico {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  color: var(--brand-blue);
}
.mega-link .mega-ico svg { width: 16px; height: 16px; }
.mega-link .mega-title {
  font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.3;
  display: flex; align-items: center; gap: 6px;
}
.mega-link .mega-desc {
  font-size: 12.5px; color: var(--text-3); line-height: 1.4; margin-top: 2px;
}
.mega-badge-new {
  display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: .08em;
  padding: 1px 6px; border-radius: 4px;
  background: color-mix(in oklab, var(--brand-blue) 14%, transparent);
  color: var(--brand-blue); text-transform: uppercase;
}
.mega-footer-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 12px; padding: 8px 10px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--brand-blue);
  text-decoration: none; transition: background .15s;
}
.mega-footer-link:hover { background: color-mix(in oklab, var(--brand-blue) 8%, transparent); }

/* Mobile hamburger + drawer — hidden by default everywhere; the media
   query below re-shows them on small viewports. Without this default,
   the drawer's <details> + CTA buttons render inline under the desktop
   nav. */
.nav-burger,
.nav-mobile { display: none; }
.nav-burger {
  background: none; border: 1px solid var(--border-strong);
  width: 38px; height: 38px; border-radius: 8px;
  align-items: center; justify-content: center; cursor: pointer;
  color: var(--text);
}
.nav-burger:hover { background: var(--surface-2); }
.nav-burger svg { width: 18px; height: 18px; }

@media (max-width: 960px) {
  /* Reveal the burger, hide the inline links + CTAs */
  .mega-nav .nav-burger { display: inline-flex; }
  .mega-nav .nav-links,
  .mega-nav .nav-cta { display: none; }

  /* Mobile menu drawer.
     z-index pushed to 200 so it dominates the tweaks panel (100), mega-panel
     (60) and any carousel that creates its own stacking context via
     will-change / mask-image. isolation:isolate makes the drawer its own
     stacking root so child content can't escape. */
  html.nav-open, body.nav-open { overflow: hidden; touch-action: none; }
  .nav-mobile {
    position: fixed; inset: 68px 0 0 0; z-index: 200;
    background: var(--bg); overflow-y: auto;
    padding: 16px 20px 80px;
    display: none;
    isolation: isolate;
    -webkit-overflow-scrolling: touch;
  }
  body.nav-open .nav-mobile { display: block; }
  /* Belt-and-suspenders: even if a fixed-position child of the page (e.g. a
     floating chat widget) tries to render above the drawer, hide it while
     the drawer is open. */
  body.nav-open .module-carousel-arrow,
  body.nav-open .tw-trigger,
  body.nav-open .tw-panel { display: none !important; }
  .nav-mobile details { border-bottom: 1px solid var(--border); padding: 4px 0; }
  .nav-mobile details > summary {
    list-style: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 4px; font-size: 16px; font-weight: 600; color: var(--text);
  }
  .nav-mobile details > summary::-webkit-details-marker { display: none; }
  .nav-mobile details > summary::after {
    content: "+"; font-weight: 400; font-size: 22px; line-height: 1; color: var(--text-3);
    transition: transform .2s ease;
  }
  .nav-mobile details[open] > summary::after { content: "−"; }
  .nav-mobile .mob-group { padding: 4px 4px 16px; display: grid; gap: 4px; }
  .nav-mobile .mob-group a {
    display: flex; flex-direction: column; gap: 2px;
    padding: 10px 8px; border-radius: 8px; text-decoration: none;
  }
  .nav-mobile .mob-group a:hover { background: var(--surface-2); }
  .nav-mobile .mob-group .mob-t { font-size: 14.5px; font-weight: 600; color: var(--text); }
  .nav-mobile .mob-group .mob-d { font-size: 12.5px; color: var(--text-3); line-height: 1.4; }
  .nav-mobile .mob-flat { display: block; padding: 14px 4px; font-size: 16px; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); text-decoration: none; }
  .nav-mobile .mob-cta { display: grid; gap: 10px; margin-top: 18px; }
}

/* Mobile sticky "Book a demo" pill — slides up only after the visitor scrolls
   past the hero. One CTA, no chrome bar — Hick's Law + EAST (Timely).
   Toggled by JS adding `.is-visible` once scrollY > 400px. */
.mob-sticky-cta { display: none; }
@media (max-width: 960px) {
  .mob-sticky-cta {
    display: block;
    position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 48;
    transform: translate(-50%, calc(100% + 24px));
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
    pointer-events: none;
  }
  .mob-sticky-cta.is-visible {
    transform: translate(-50%, 0);
    pointer-events: auto;
  }
  .mob-sticky-cta .msc-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 20px 11px 22px; border-radius: 999px;
    background: var(--text); color: var(--bg);
    font-size: 14.5px; font-weight: 600; text-decoration: none;
    box-shadow: 0 10px 28px -8px rgba(0,0,0,.32), 0 2px 6px rgba(0,0,0,.08);
    white-space: nowrap;
  }
  .mob-sticky-cta .msc-primary .arr {
    display: inline-block; transition: transform .15s;
  }
  .mob-sticky-cta .msc-primary:active .arr { transform: translateX(2px); }
  /* Secondary "Pricing" link removed — Hick's Law. Pricing reachable
     from drawer, hero, and section CTAs. */
  .mob-sticky-cta .msc-secondary { display: none; }
  /* Hide while drawer is open. */
  body.nav-open .mob-sticky-cta.is-visible {
    transform: translate(-50%, calc(100% + 24px));
    pointer-events: none;
  }
  /* No body padding-bottom needed — pill floats above content; the
     subtle shadow on the pill provides enough separation. */
}

/* ═══════════════════════════════════════════════════════════════
   PRODUCT / MODULE PAGE TEMPLATE
   Single-column hero + Supademo placeholder + feature blocks +
   cross-module trail + final CTA.
   ═══════════════════════════════════════════════════════════════ */

.prod-breadcrumb {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em;
  color: var(--text-3); margin-bottom: 18px; text-transform: uppercase;
}
.prod-breadcrumb a { color: var(--text-3); text-decoration: none; }
.prod-breadcrumb a:hover { color: var(--text); }
.prod-breadcrumb .sep { margin: 0 8px; opacity: .5; }

.prod-hero { padding: 56px 0 32px; }
.prod-hero h1 {
  font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -.02em;
  margin: 0 0 14px; max-width: 18ch;
}
.prod-hero .lede { max-width: 56ch; font-size: clamp(17px, 1.2vw, 20px); color: var(--text-2); margin-bottom: 20px; }
.prod-hero .hero-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.prod-hero .hero-pillstrip {
  display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-3);
}
.prod-hero .hero-pillstrip span { padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; }

/* Supademo placeholder slot — 16:9 ratio, dashed border until populated */
.demo-slot {
  position: relative;
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--surface-2) 0%, color-mix(in oklab, var(--surface-2) 70%, var(--bg)) 100%);
  border: 2px dashed var(--border-strong); border-radius: 16px;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 8px; margin: 32px 0; overflow: hidden;
}
.demo-slot .demo-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
}
.demo-slot .demo-title {
  font-size: 15px; font-weight: 600; color: var(--text-2);
}
.demo-slot .demo-meta {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
}
/* When a real Supademo iframe is dropped in, it replaces the slot content */
.demo-slot iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

.prod-section { padding: 56px 0; border-top: 1px solid var(--border); }
.prod-section h2 {
  font-size: clamp(28px, 3vw, 40px); line-height: 1.1; letter-spacing: -.01em;
  margin: 0 0 14px; max-width: 22ch;
}
.prod-section .section-eyebrow {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 10px;
}
.prod-section .section-lede { font-size: clamp(16px, 1.1vw, 18px); color: var(--text-2); max-width: 56ch; margin-bottom: 24px; }

.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center;
  padding: 36px 0; border-top: 1px solid var(--border);
}
.feature-row:first-of-type { border-top: none; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row .feat-text h3 {
  font-size: clamp(22px, 2vw, 28px); line-height: 1.2; margin: 0 0 10px;
}
.feature-row .feat-text p {
  font-size: 15px; color: var(--text-2); line-height: 1.55; margin: 0 0 12px;
}
.feature-row .feat-text ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.feature-row .feat-text li {
  font-size: 14px; color: var(--text-2); padding-left: 22px; position: relative;
}
.feature-row .feat-text li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--brand-blue); font-weight: 700;
}
.feature-row .feat-visual {
  /* No outer frame — each mockup card inside provides its own border,
     radius and shadow. Just centre the card within the column. */
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 800px) {
  .feature-row { grid-template-columns: 1fr; gap: 18px; }
  .feature-row.reverse { direction: ltr; }
}

/* "Connected trail" cross-module diagram */
.trail {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px; padding: 24px 0;
}
.trail .trail-step {
  background: var(--bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px; position: relative;
}
.trail .trail-step .trail-ref {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em;
  color: var(--text-3); text-transform: uppercase; margin-bottom: 6px;
}
.trail .trail-step .trail-t { font-size: 13.5px; font-weight: 600; color: var(--text); }
.trail .trail-step .trail-d { font-size: 12px; color: var(--text-3); margin-top: 4px; line-height: 1.4; }
.trail .trail-step + .trail-step::before {
  content: "→"; position: absolute; left: -16px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-size: 14px;
}
@media (max-width: 800px) {
  .trail .trail-step + .trail-step::before { content: "↓"; left: 50%; top: -14px; transform: translateX(-50%); }
}

.prod-cta {
  background: var(--ink); color: #fff;
  border-radius: 18px; padding: 48px 36px; text-align: center;
  margin: 56px 0;
}
.prod-cta h2 { color: #fff; margin: 0 0 12px; font-size: clamp(26px, 2.5vw, 36px); }
.prod-cta p { color: rgba(255,255,255,.7); margin: 0 0 24px; max-width: 50ch; margin-inline: auto; }
.prod-cta .btn { background: #fff; color: var(--ink); }
.prod-cta .btn:hover { background: rgba(255,255,255,.92); }
.prod-cta .btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.prod-cta .btn-ghost:hover { background: rgba(255,255,255,.08); }

/* ═══════════════════════════════════════════════════════════════
   MODULE CAROUSEL — auto-advancing horizontal slider for the
   homepage "Eighteen modules" section. Same .module-card markup
   inside; the carousel adds viewport / track / arrows / dots.
   ═══════════════════════════════════════════════════════════════ */

.module-carousel {
  --cards-visible: 4;
  --slide-gap: 16px;
  position: relative;
  margin-top: 32px;
}

@media (max-width: 1100px) { .module-carousel { --cards-visible: 3; } }
@media (max-width: 900px)  { .module-carousel { --cards-visible: 2; } }
@media (max-width: 600px)  { .module-carousel { --cards-visible: 1; } }

.module-carousel-viewport {
  overflow: hidden;
  border-radius: 14px;
  /* Tiny fade on the edges so it reads as "more to the sides" */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}

.module-carousel-track {
  display: flex;
  gap: var(--slide-gap);
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

/* Each .module-card inside the track sizes to (100% / cards-visible) minus the gap */
.module-carousel-track > .module-card {
  flex: 0 0 calc((100% - (var(--cards-visible) - 1) * var(--slide-gap)) / var(--cards-visible));
  /* Override anything the original .module-cards grid set */
  margin: 0;
}

/* Arrows */
.module-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background .15s, transform .15s, opacity .15s;
  box-shadow: 0 6px 16px rgba(0,0,0,0.10);
}
.module-carousel-arrow:hover { background: var(--surface-2); transform: translateY(-50%) scale(1.05); }
.module-carousel-arrow:disabled { opacity: .35; cursor: not-allowed; }
.module-carousel-prev { left: -8px; }
.module-carousel-next { right: -8px; }
.module-carousel-arrow svg { width: 18px; height: 18px; }

@media (max-width: 600px) {
  .module-carousel-arrow { width: 38px; height: 38px; }
  .module-carousel-prev { left: 0; }
  .module-carousel-next { right: 0; }
}

/* Dots */
.module-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 18px;
}
.module-carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: width .25s, background .25s;
}
.module-carousel-dots button[aria-current="true"] {
  width: 28px;
  border-radius: 4px;
  background: var(--ink);
}

/* Respect prefers-reduced-motion: no auto-advance, no transitions */
@media (prefers-reduced-motion: reduce) {
  .module-carousel-track { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO STAGE — desktop dashboard + 3D phone composition.
   Dashboard fills most of the width; phone floats on the right with
   perspective rotation and overlaps the dashboard edge.
   ═══════════════════════════════════════════════════════════════ */
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 1260px;
  margin: 56px auto 0;
  perspective: 1800px;          /* 3D perspective context for the phone */
  perspective-origin: 80% 40%;  /* the phone sits in the upper right area */
}
.hero-stage > .dash-preview {
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 1;
  box-shadow:
    0 30px 60px -20px rgba(15, 23, 42, 0.22),
    0 12px 28px -14px rgba(15, 23, 42, 0.14);
}

/* Phone frame ── iPhone-ish silhouette, 3D tilted, anchored to the
   bottom-right corner of the dashboard so it overlaps the tables
   (less critical content) without covering the metric tiles. */
.dash-phone {
  position: absolute;
  right: -16px;
  bottom: -52px;
  width: 212px;
  height: 432px;
  background: #0a0a0a;
  border-radius: 34px;
  padding: 8px;
  z-index: 5;
  transform-origin: bottom right;
  transform:
    rotateY(-13deg)
    rotateX(2deg)
    rotateZ(-2.5deg);
  box-shadow:
    /* main drop shadow, drifting toward the dashboard for the "floating
       above" effect */
    -22px 32px 56px -12px rgba(15, 23, 42, 0.40),
    -8px 14px 26px -8px rgba(15, 23, 42, 0.22),
    /* subtle inner rim highlight, like a real device bezel */
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.12);
  transition: transform .45s cubic-bezier(0.22, 1, 0.36, 1);
}
.dash-phone:hover {
  transform:
    rotateY(-7deg)
    rotateX(1deg)
    rotateZ(-1deg);
}
.dash-phone-notch {
  position: absolute;
  top: 11px; left: 50%; transform: translateX(-50%);
  width: 78px; height: 20px;
  background: #0a0a0a;
  border-radius: 12px;
  z-index: 6;
}
.dash-phone-screen {
  border-radius: 26px;
}
.dash-phone-notch {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 22px;
  background: #0a0a0a;
  border-radius: 13px;
  z-index: 6;
}
.dash-phone-screen {
  background: var(--bg);
  border-radius: 30px;
  width: 100%; height: 100%;
  overflow: hidden;
  position: relative;
  color: var(--text);
  font-family: var(--f-sans);
}

/* Status bar */
.dphone-status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 26px 4px;
  font-size: 12px; font-weight: 700;
  color: var(--text);
}
.dphone-status-icons {
  display: inline-flex; gap: 4px; align-items: center;
  color: var(--text);
}

/* App header */
.dphone-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px 4px;
}
.dphone-logo {
  font-family: 'Fugaz One', cursive !important;
  font-size: 20px; font-weight: 400; line-height: 1;
  color: var(--text);
}
.dphone-logo .dot { color: var(--brand-orange); }
.dphone-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}

/* Tab pills under the header */
.dphone-tabs {
  display: flex; gap: 4px;
  padding: 8px 18px 4px;
  font-family: var(--f-mono); font-size: 10.5px;
  font-weight: 700; letter-spacing: .04em;
}
.dphone-tabs span {
  padding: 5px 10px;
  border-radius: 7px;
  color: var(--text-3);
}
.dphone-tabs span.active {
  background: var(--surface-2);
  color: var(--text);
}

/* KPI grid */
.dphone-kpis {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 8px 18px;
}
.dphone-kpis > div {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 10px;
}
.dphone-kpis .dl {
  font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3); font-weight: 700;
}
.dphone-kpis .dv {
  font-size: 19px; font-weight: 800; margin-top: 2px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  line-height: 1.05;
}

/* Lists (Recent / CAPAs) */
.dphone-list {
  padding: 6px 18px 2px;
}
.dphone-list-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3); font-weight: 700;
  margin: 6px 0 5px;
}
.dphone-list-head .dphone-list-meta { color: #DC2626; }
.dphone-row {
  display: flex; gap: 7px; align-items: center;
  padding: 7px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  margin-bottom: 4px;
  font-size: 11.5px;
}
.dphone-ref {
  font-family: var(--f-mono); font-size: 9.5px;
  color: var(--brand-blue);
  font-weight: 700; letter-spacing: .04em;
}
.dphone-t {
  flex: 1; font-weight: 500; color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dphone-sev {
  font-family: var(--f-mono); font-size: 9px; font-weight: 700;
  padding: 2px 6px; border-radius: 3px; letter-spacing: .04em;
}
.dphone-sev.med  { background: color-mix(in oklab, #D97706 16%, transparent); color: #92400e; }
.dphone-sev.high { background: color-mix(in oklab, #DC2626 16%, transparent); color: #991b1b; }
.dphone-sev.low  { background: color-mix(in oklab, #059669 16%, transparent); color: #166534; }
.dphone-date {
  font-family: var(--f-mono); font-size: 9.5px;
  color: var(--text-2); font-weight: 600;
}

/* Bottom tab bar — pinned to the bottom of the screen */
.dphone-tabbar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  display: flex; justify-content: space-around; align-items: center;
  padding: 8px 0 18px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.dphone-tabbar-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  color: var(--text-3);
}
.dphone-tabbar-item span {
  font-family: var(--f-mono); font-size: 8.5px;
  font-weight: 700; letter-spacing: .06em;
}
.dphone-tabbar-item.active { color: var(--brand-blue); }

/* ── Real-app dashboard chrome (sidebar + header + tiles) ──────── */
.dash-app {
  display: flex;
  background: var(--bg);
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
  overflow: hidden;
  text-align: left;
}
.dash-sidebar {
  flex: 0 0 184px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 18px 10px;
  display: flex; flex-direction: column;
  font-size: 12.5px;
}
.dash-side-logo {
  font-family: 'Fugaz One', cursive !important;
  font-size: 22px; font-weight: 400; line-height: 1;
  padding: 0 8px; margin-bottom: 16px;
  color: var(--text);
}
.dash-side-logo .dot { color: var(--brand-orange); }
.dash-side-user {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 14px;
}
.dash-side-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in oklab, #059669 25%, transparent);
  color: #166534;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
}
.dash-side-name { font-size: 12.5px; font-weight: 600; color: var(--text); }

.dash-side-section-title {
  font-family: var(--f-mono);
  font-size: 9px; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3); font-weight: 700;
  padding: 0 8px; margin: 10px 0 4px;
}
.dash-side-item {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 8px;
  border-radius: 7px;
  color: var(--text-2);
  font-size: 12.5px; font-weight: 500;
  text-decoration: none;
  margin-bottom: 1px;
}
.dash-side-item i { width: 14px; height: 14px; flex-shrink: 0; opacity: .7; }
.dash-side-item .dash-side-badge {
  margin-left: auto;
  background: var(--ink); color: #fff;
  font-size: 9.5px; font-weight: 700;
  padding: 1px 6px; border-radius: 8px;
  font-family: var(--f-mono);
  min-width: 18px; text-align: center;
}
.dash-side-item.active {
  background: var(--surface-2);
  color: var(--text);
}
.dash-side-item.active i { opacity: 1; }

/* Main app area */
.dash-main {
  flex: 1;
  min-width: 0;
  padding: 14px 18px 18px;
}
.dash-app-header {
  display: flex; align-items: center; gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.dash-app-header h3 {
  font-size: 16px; font-weight: 700;
  margin: 0; margin-right: 10px;
  color: var(--text);
}
.dash-search {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px; color: var(--text-3);
  overflow: hidden;
}
.dash-search i { width: 12px; height: 12px; }
.dash-search span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dash-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px; font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  cursor: default;
  white-space: nowrap;
}
.dash-pill i { width: 12px; height: 12px; }
.dash-pill.dark    { background: var(--ink); color: #fff; border-color: var(--ink); }
.dash-pill.primary { background: var(--brand-blue); color: #fff; border-color: var(--brand-blue); }

.dash-bell {
  position: relative;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.dash-bell i { width: 14px; height: 14px; }
.dash-bell-badge {
  position: absolute; top: -4px; right: -4px;
  background: #DC2626; color: #fff;
  font-size: 9px; padding: 1px 5px;
  border-radius: 7px; font-weight: 700;
  font-family: var(--f-mono);
}

/* Top metric tiles row (5 tiles) */
.dash-tiles {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  margin-bottom: 7px;
}
.dash-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
}
.dash-tile .lbl {
  font-family: var(--f-mono);
  font-size: 8.5px; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3); font-weight: 700;
}
.dash-tile .val {
  font-size: 21px; font-weight: 800;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--text);
}
.dash-tile .val.red   { color: #DC2626; }
.dash-tile .val.green { color: #059669; }
.dash-tile .val.amber { color: #D97706; }
.dash-tile .sub {
  font-size: 10.5px; color: var(--text-3);
  margin-top: 4px;
}
.dash-tile .bar {
  height: 2px; border-radius: 1px;
  background: var(--border);
  margin-top: 6px;
}
.dash-tile .bar.red   { background: #DC2626; }
.dash-tile .bar.ink   { background: var(--ink); }
.dash-tile .bar.green { background: #059669; }

/* KPI section heading */
.dash-kpi-header {
  display: flex; align-items: center; justify-content: space-between;
  margin: 16px 0 10px;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-kpi-header h4 {
  font-size: 15px; font-weight: 700;
  margin: 0;
  color: var(--text);
}
.pill-period {
  font-family: var(--f-mono);
  font-size: 10.5px; font-weight: 600;
  padding: 2px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  letter-spacing: .04em;
  color: var(--text-3);
}

.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  margin-bottom: 12px;
}

/* The existing .dash-kpi tile gets a top accent border to match
   the real app + smaller values for the denser 6-col layout. */
.dash-kpi {
  border-top: 2px solid var(--k-color, var(--border)) !important;
}
.hero-stage .dash-kpi { padding: 10px 12px; }
.hero-stage .dash-kpi .dl { font-size: 9px; }
.hero-stage .dash-kpi .dv { font-size: 20px; letter-spacing: -0.02em; }
.hero-stage .dash-kpi .ds { font-size: 10.5px; }

/* Compact table rows for the dashboard mockup */
.hero-stage .dash-table-row { padding: 8px 12px; font-size: 11.5px; }
.hero-stage .dash-table-row > span:first-child { font-size: 9.5px; }
.hero-stage .dash-table-head { padding: 8px 12px; font-size: 9px; }

.dash-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Responsive — stack on tablet, hide phone on mobile */
@media (max-width: 1080px) {
  .hero-stage { perspective: none; }
  .dash-phone {
    position: relative;
    right: auto; top: auto;
    margin: 24px auto 0;
    transform: rotate(0);
  }
  .dash-phone:hover { transform: rotate(0); }
}
@media (max-width: 880px) {
  .dash-sidebar { display: none; }
  .dash-tiles { grid-template-columns: repeat(2, 1fr); }
  .dash-kpi-row { grid-template-columns: repeat(3, 1fr); }
  .dash-tables { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dash-phone { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   LIVE DASHBOARD MOCKUP — kept for backwards-compat; the animation
   is no longer initialised but the classes remain in case future
   work re-enables it. (Cursor / modal styles removed below.)
   ═══════════════════════════════════════════════════════════════ */
.dash-row-enter {
  opacity: 0;
  transform: translateY(-10px) scale(.985);
  transition:
    opacity   .55s cubic-bezier(0.16, 1, 0.3, 1),
    transform .55s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 1.6s ease 0.45s;
}
.dash-row-enter.dash-row-enter-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.dash-row-leave-active {
  opacity: 0;
  transform: translateX(22px);
  transition: opacity .42s cubic-bezier(0.4, 0, 1, 1),
              transform .42s cubic-bezier(0.4, 0, 1, 1);
  pointer-events: none;
}
.dash-row-fresh {
  /* The "just appeared" tint that fades out via the transition above */
  background: color-mix(in oklab, #2563EB 7%, transparent) !important;
}
.dash-row-fresh.dash-row-fresh-fade {
  background: transparent !important;
}

.dash-pulse {
  position: relative;
  animation: dashPulse .9s ease-out;
}
@keyframes dashPulse {
  0%   { box-shadow: 0 0 0 0   color-mix(in oklab, var(--brand-blue) 45%, transparent); }
  100% { box-shadow: 0 0 0 14px color-mix(in oklab, var(--brand-blue)  0%, transparent); }
}

.dash-badge-flash {
  /* Brief outline ring when a badge swaps from one status to another */
  animation: dashBadgeFlash .8s ease-out;
}
@keyframes dashBadgeFlash {
  0%   { box-shadow: 0 0 0 0   color-mix(in oklab, var(--brand-blue) 55%, transparent); }
  100% { box-shadow: 0 0 0 8px color-mix(in oklab, var(--brand-blue)  0%, transparent); }
}

/* "LIVE" pip next to the dashboard URL — subtle pulsing dot */
.dash-live-pip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 700; color: #DC2626;
  margin-left: 12px;
}
.dash-live-pip::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: #DC2626;
  animation: livePip 1.4s ease-in-out infinite;
}
@keyframes livePip {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .35; transform: scale(.85); }
}

/* Virtual mouse cursor — visible from init, glides between event
   locations so the viewer's eye is led to what's about to change. */
.dash-cursor {
  position: absolute;
  top: 0; left: 0;
  width: 26px; height: 26px;
  pointer-events: none;
  z-index: 30;
  /* Slight overshoot easing → glides like a real cursor, not a robot */
  transition: transform .85s cubic-bezier(0.22, 1, 0.36, 1), opacity .25s ease;
  /* Parked just inside the top-left until the loop starts */
  transform: translate(40px, 40px);
  opacity: 1;
}
.dash-cursor-icon {
  display: block;
  width: 26px; height: 26px;
  transition: transform .18s ease-out;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.30));
}
.dash-cursor.clicked .dash-cursor-icon { transform: scale(0.78); }

.dash-cursor-ripple {
  position: absolute;
  top: 0; left: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2.5px solid var(--brand-blue);
  opacity: 0;
  pointer-events: none;
}
.dash-cursor.clicked .dash-cursor-ripple {
  animation: dashRipple .65s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes dashRipple {
  0%   { transform: scale(0.35); opacity: 0.75; }
  100% { transform: scale(2.7);  opacity: 0;    }
}

/* "Log Incident" form modal that overlays the dashboard mockup */
.dash-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .35s ease;
  z-index: 18;
  pointer-events: none;
  border-radius: inherit;
}
.dash-modal-backdrop.visible { opacity: 1; }

.dash-modal {
  position: absolute;
  top: 50%; left: 50%;
  width: calc(100% - 64px); max-width: 460px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 30px 70px rgba(0,0,0,0.28);
  z-index: 20;
  transform: translate(-50%, -42%) scale(.96);
  opacity: 0;
  transition: opacity .4s cubic-bezier(0.16, 1, 0.3, 1),
              transform .4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.dash-modal.visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}
.dash-modal-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}
.dash-modal-eyebrow {
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3); font-weight: 700;
}
.dash-modal-title {
  font-size: 16px; font-weight: 700; color: var(--text); margin-top: 1px;
}
.dash-modal-close {
  color: var(--text-3); font-size: 20px; line-height: 1;
  padding: 4px 8px; border-radius: 6px;
}
.dash-modal-body {
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.dash-form-field label {
  display: block;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--text-3); font-weight: 700;
  margin-bottom: 5px;
}
.dash-input {
  display: flex; align-items: center;
  padding: 9px 11px; min-height: 19px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13.5px; color: var(--text);
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.dash-form-field.focused .dash-input {
  background: var(--bg);
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-blue) 18%, transparent);
}
.dash-input-text { white-space: pre; }
.dash-caret {
  display: inline-block;
  width: 1.5px; height: 16px;
  background: var(--brand-blue);
  margin-left: 1px;
  opacity: 0;
  vertical-align: text-bottom;
}
.dash-form-field.focused .dash-caret {
  animation: dashCaret 1s steps(2) infinite;
}
@keyframes dashCaret {
  0%, 50%   { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
.dash-severity-buttons {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px;
}
.dash-sev-btn {
  padding: 8px 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 700; color: var(--text-2);
  cursor: pointer;
  transition: all .25s;
}
.dash-sev-btn.selected[data-sev="low"]  { background: color-mix(in oklab, #059669 18%, transparent); color: #166534; border-color: color-mix(in oklab, #059669 40%, transparent); }
.dash-sev-btn.selected[data-sev="med"]  { background: color-mix(in oklab, #D97706 18%, transparent); color: #92400e; border-color: color-mix(in oklab, #D97706 40%, transparent); }
.dash-sev-btn.selected[data-sev="high"] { background: color-mix(in oklab, #DC2626 18%, transparent); color: #991b1b; border-color: color-mix(in oklab, #DC2626 40%, transparent); }
.dash-submit-btn {
  width: 100%;
  padding: 11px;
  background: var(--ink);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 13.5px; font-weight: 700;
  margin-top: 4px;
  cursor: pointer;
  transition: transform .12s ease, background-color .2s;
}
.dash-submit-btn.clicked { transform: scale(0.97); }

@media (prefers-reduced-motion: reduce) {
  .dash-row-enter,
  .dash-pulse,
  .dash-badge-flash,
  .dash-live-pip::before,
  .dash-cursor,
  .dash-cursor-icon,
  .dash-cursor-ripple { animation: none; transition: none; }
  .dash-cursor { display: none; }
}

