/* ============================================================
   Shield Index — Platform CSS — Soft Glass v1
   Canonical spec: docs/superpowers/specs/2026-05-11-soft-glass-design-system.md

   Sidebar shell, topbar, marketing pages, settings layouts,
   billing UI, plan comparison cards — all on a pale-blue
   gradient surface with frosted-glass cards.
   ============================================================ */

/* ─── Surface — white background with subtle blue accent washes
        sprinkled behind key sections, not on the whole body. ───── */
html, body {
  min-height: 100dvh;
}
body {
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Glass utility classes ──────────────────────────── */
.glass-vibrant {
  background: var(--glass-vibrant-bg);
  -webkit-backdrop-filter: var(--glass-vibrant-blur);
          backdrop-filter: var(--glass-vibrant-blur);
  border: var(--glass-vibrant-border);
  box-shadow: var(--glass-vibrant-highlight), var(--glass-vibrant-shadow);
}
.glass-regular {
  background: var(--glass-regular-bg);
  -webkit-backdrop-filter: var(--glass-regular-blur);
          backdrop-filter: var(--glass-regular-blur);
  border: var(--glass-regular-border);
  box-shadow: var(--glass-regular-highlight), var(--glass-regular-shadow);
}
.glass-thin {
  background: var(--glass-thin-bg);
  -webkit-backdrop-filter: var(--glass-thin-blur);
          backdrop-filter: var(--glass-thin-blur);
  border: var(--glass-thin-border);
  box-shadow: var(--glass-thin-highlight), var(--glass-thin-shadow);
}

/* Fallback for browsers without backdrop-filter — boost opacity */
@supports not (backdrop-filter: blur(1px)) {
  .glass-vibrant { background: rgba(255,255,255,0.92); }
  .glass-regular { background: rgba(255,255,255,0.88); }
  .glass-thin    { background: rgba(255,255,255,0.78); }
}

/* Reset h1/h2/h3 to use the modular scale defined in the spec */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  color: var(--ink-strong);
  margin: 0;
  font-style: normal;
  letter-spacing: -0.02em;
}
h1 { font-size: var(--text-3xl); font-weight: 700; line-height: 1.15; }
h2 { font-size: var(--text-2xl); font-weight: 600; line-height: 1.25; }
h3 { font-size: var(--text-lg);  font-weight: 600; line-height: 1.4;  }
h4 { font-size: var(--text-base); font-weight: 600; line-height: 1.45; }

/* Subtle shield watermark for hero areas (added per-page via .has-shield-watermark) */
.has-shield-watermark { position: relative; overflow: hidden; }
.has-shield-watermark::before {
  content: '';
  position: absolute;
  right: -80px;
  top: -80px;
  width: 480px;
  height: 480px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230F4FE0' opacity='0.06'%3E%3Cpath d='M12 2L4 5v6c0 5 3.5 9.5 8 11 4.5-1.5 8-6 8-11V5l-8-3z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}
.has-shield-watermark > * { position: relative; z-index: 1; }

/* ─── App-mode body override ─────────────────────────────
   When `body.app-mode` is present (authenticated + workspace),
   show the new sidebar + topbar via fixed positioning and pad
   the existing #app so its views slot below/right. Old topbar
   and footer are suppressed. Auth view escapes the shell. */
body.app-mode .topbar { display: none !important; }
body.app-mode .footer { display: none !important; }

body.app-mode {
  background: var(--surface);
}

body.app-mode #app {
  max-width: none;
  padding: 0;
  padding-left: var(--sidebar-w);
  padding-top: var(--topbar-h);
  margin: 0;
  min-height: 100dvh;
}

body.app-mode .app-sidebar {
  display: flex;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-w);
  z-index: var(--z-sticky);
}
body.app-mode .app-topbar {
  display: flex;
  position: fixed;
  left: var(--sidebar-w);
  right: 0;
  top: 0;
  height: var(--topbar-h);
  z-index: var(--z-sticky);
}

body.app-mode .view {
  padding: var(--space-8) var(--space-8) var(--space-12);
  max-width: var(--max-content);
  margin: 0 auto;
}

/* When auth view is active, we hide the shell to keep auth full-bleed.
   The class `is-auth-only` is added to body via app.js. */
body.is-auth-only .app-sidebar,
body.is-auth-only .app-topbar { display: none !important; }
body.is-auth-only #app {
  padding-left: 0;
  padding-top: 0;
}

@media (max-width: 1024px) {
  body.app-mode #app {
    padding-left: 0;
  }
  body.app-mode .app-topbar { left: 0; }
}

/* By default (no app-mode class), the new shell parts are hidden */
.app-sidebar, .app-topbar { display: none; }
.app-sidebar-scrim { display: none; }
body.app-mode .app-sidebar-scrim { display: block; }

/* ─── Reset additions (platform-scoped) ─────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Visible focus ring on every interactive element */
:where(a, button, input, select, textarea, [role="button"], [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-md);
}

/* ============================================================
   PART 1 — APP SHELL (sidebar + topbar + content grid)
   ============================================================ */

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  grid-template-rows: var(--topbar-h) 1fr;
  grid-template-areas:
    "sidebar topbar"
    "sidebar content";
  min-height: 100dvh;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

/* ─── Sidebar ───────────────────────────────────────────── */
.app-sidebar {
  grid-area: sidebar;
  background: var(--glass-vibrant-bg);
  -webkit-backdrop-filter: var(--glass-vibrant-blur);
          backdrop-filter: var(--glass-vibrant-blur);
  border-right: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.4);
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  gap: var(--space-2);
  position: sticky;
  top: 0;
  height: 100dvh;
  z-index: var(--z-sticky);
}

.app-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-2);
  margin-bottom: var(--space-5);
}

.app-sidebar-brand img {
  height: 80px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.app-sidebar-brand-name {
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-strong);
}

.app-sidebar-section {
  margin-top: var(--space-4);
}

.app-sidebar-section:first-of-type {
  margin-top: 0;
}

.app-sidebar-label {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  padding: var(--space-2) var(--space-3);
  margin-bottom: var(--space-1);
}

.app-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-sidebar-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-3);
  min-height: var(--row-h); /* Priority 2: 44px touch target */
  border-radius: var(--radius-md);
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: background var(--motion-fast) var(--ease-out),
              color var(--motion-fast) var(--ease-out);
  cursor: pointer;
  background: transparent;
  border: 0;
  text-align: left;
  width: 100%;
  font-family: inherit;
}

.app-sidebar-link:hover {
  background: var(--surface-inset);
  color: var(--ink);
}

.app-sidebar-link:active {
  transform: scale(0.985); /* §7 scale-feedback */
}

.app-sidebar-link.is-active {
  background: var(--brand-soft);
  color: var(--brand-hover);
  font-weight: 600;
}

.app-sidebar-link .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-sidebar-link .badge {
  margin-left: auto;
  background: var(--brand);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  min-width: 18px;
  text-align: center;
  line-height: 1.4;
}

.app-sidebar-link.placeholder {
  opacity: 0.55;
  cursor: default;
}

.app-sidebar-link.placeholder:hover {
  background: transparent;
  color: var(--ink-muted);
}

.app-sidebar-link.placeholder .tag {
  margin-left: auto;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-weight: 600;
}

.app-sidebar-footer {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-sidebar-poweredby {
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  color: var(--ink-soft);
  text-align: center;
  font-family: var(--font-body);
  font-style: normal;
  letter-spacing: 0.04em;
}

/* ─── Topbar ────────────────────────────────────────────── */
.app-topbar {
  grid-area: topbar;
  background: var(--glass-thin-bg);
  -webkit-backdrop-filter: var(--glass-thin-blur);
          backdrop-filter: var(--glass-thin-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: 0 var(--space-5);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}

.app-topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 14px;
  color: var(--ink-muted);
  font-weight: 500;
}

.app-topbar-breadcrumb .sep {
  color: var(--border-strong);
}

.app-topbar-breadcrumb .here {
  color: var(--ink);
  font-weight: 600;
}

.app-topbar-search {
  flex: 1;
  max-width: 480px;
  position: relative;
  margin-left: auto;
}

.app-topbar-search input {
  width: 100%;
  height: 36px;
  padding: 0 var(--space-3) 0 36px;
  background: var(--surface-muted);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color var(--motion-fast) var(--ease-out),
              background var(--motion-fast) var(--ease-out);
}

.app-topbar-search input::placeholder {
  color: var(--ink-soft);
}

.app-topbar-search input:hover {
  background: var(--surface-inset);
}

.app-topbar-search input:focus {
  background: var(--surface-card);
  border-color: var(--border-strong);
  outline: none;
}

.app-topbar-search svg {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--ink-soft);
  fill: none;
  stroke-width: 2;
  pointer-events: none;
}

.app-topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.app-topbar-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ink-muted);
  transition: background var(--motion-fast) var(--ease-out),
              color var(--motion-fast) var(--ease-out);
  position: relative;
}

.app-topbar-icon-btn:hover {
  background: var(--surface-inset);
  color: var(--ink);
}

.app-topbar-icon-btn:active { transform: scale(0.96); }

.app-topbar-icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.app-topbar-icon-btn .dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: var(--brand);
  border-radius: 50%;
  border: 2px solid var(--surface-card);
}

.app-topbar-user {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 4px var(--space-2) 4px 4px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: background var(--motion-fast) var(--ease-out),
              border-color var(--motion-fast) var(--ease-out);
  font-family: inherit;
}

.app-topbar-user:hover {
  background: var(--surface-inset);
  border-color: var(--border);
}

.app-topbar-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-hover);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
}

.app-topbar-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

/* ─── Content area ──────────────────────────────────────── */
.app-content {
  grid-area: content;
  overflow-y: auto;
  padding: var(--space-8) var(--space-8) var(--space-12);
}

.app-content-inner {
  max-width: var(--max-content);
  margin: 0 auto;
}

.page-header {
  margin-bottom: var(--space-8);
}

.page-eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.page-title {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 var(--space-2) 0;
  line-height: 1.15;
}

.page-subtitle {
  font-size: 15px;
  color: var(--ink-muted);
  margin: 0;
  max-width: 65ch;
}

/* ─── Responsive: collapse sidebar under 1024px ─────────── */
@media (max-width: 1024px) {
  .app-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "topbar"
      "content";
  }
  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 280px;
    height: 100dvh;
    transform: translateX(-100%);
    transition: transform var(--motion-base) var(--ease-out);
    z-index: var(--z-modal);
    box-shadow: var(--shadow-lg);
  }
  .app-sidebar.is-open {
    transform: translateX(0);
  }
  .app-sidebar-scrim {
    position: fixed;
    inset: 0;
    background: rgba(40, 30, 20, 0.45);
    z-index: calc(var(--z-modal) - 1);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--motion-base) var(--ease-out);
  }
  .app-sidebar-scrim.is-open {
    opacity: 1;
    pointer-events: auto;
  }
  .app-content { padding: var(--space-5) var(--space-4) var(--space-10); }
}

.app-mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

@media (max-width: 1024px) {
  .app-mobile-menu-btn { display: inline-flex; }
}

/* ============================================================
   PART 2 — MARKETING SITE
   ============================================================ */

.mkt-body {
  background: #FFFFFF;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  /* Marketing-scope contrast fix: the global --ink-soft (#7B96B8) sits
     at ~2.7-3:1 on these surfaces, below the 4.5:1 minimum for the
     10-11px meta text (hashes, capture credits, day labels) it styles
     here. Darkened one step on marketing pages only; the app keeps the
     global token. */
  --ink-soft: #4E6E97;
}

/* The mount wrapper is what actually sticks — it's a direct child of
   <body>, so the body's height gives sticky room to operate. The
   <header> inside stays statically positioned within the wrapper. */
#mkt-header-mount {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  display: block;
}

.mkt-header {
  background: var(--glass-thin-bg);
  backdrop-filter: var(--glass-thin-blur);
  -webkit-backdrop-filter: var(--glass-thin-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

/* Subtle hairline shadow that appears once the page has scrolled.
   Triggered by a class applied via JS when scrollY > 8. */
#mkt-header-mount.is-stuck .mkt-header {
  box-shadow: 0 1px 0 rgba(37, 99, 235, 0.08), 0 8px 24px rgba(40, 70, 130, 0.05);
}

.mkt-header-inner {
  max-width: var(--max-marketing);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-height: 0;
}

.mkt-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--ink);
}

.mkt-brand img { height: 80px; width: auto; display: block; }
.mkt-brand-name {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.mkt-nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  margin-left: var(--space-6);
}

.mkt-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  padding: var(--space-2) 0;
  transition: color var(--motion-fast) var(--ease-out);
}

.mkt-nav a:hover { color: var(--ink); }
.mkt-nav a.is-active { color: var(--brand); }

.mkt-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Mobile header: shrink logo, hide secondary nav and Sign-in link.
   Footer still exposes Features/Pricing/Help and Sign-in for mobile users. */
@media (max-width: 720px) {
  .mkt-header-inner {
    padding: 4px var(--space-4);
    gap: var(--space-3);
  }
  .mkt-brand img { height: 56px; }
  .mkt-nav { display: none; }
  .mkt-header-actions { gap: var(--space-2); }
  .mkt-header-actions .btn-ghost { display: none; }
  .mkt-header-actions .btn { padding: 8px 14px; font-size: 13px; min-height: 36px; }
}

/* Mobile demo row: stack so the email-text gets a full-width second line
   instead of being truncated by ellipsis. Bumps the severity pill slightly
   so it doesn't look thin/cheap at small sizes. */
@media (max-width: 720px) {
  .mkt-hero-demo-row {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "pill   time   chev"
      "text   text   text";
    column-gap: var(--space-2);
    row-gap: 6px;
    padding: 10px 0;
  }
  .mkt-hero-demo-row > .mkt-hero-demo-pill { grid-area: pill; font-size: 11px; padding: 4px 10px; }
  .mkt-hero-demo-row > .mkt-hero-demo-text { grid-area: text; -webkit-line-clamp: 3; font-size: 13px; }
  .mkt-hero-demo-row > .mkt-hero-demo-time { grid-area: time; margin-left: auto; }
  .mkt-hero-demo-row > .mkt-hero-demo-chev { grid-area: chev; }
  .mkt-footer-inner { grid-template-columns: 1fr 1fr; row-gap: var(--space-5); }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 18px;
  min-height: 40px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background var(--motion-fast) var(--ease-out),
              border-color var(--motion-fast) var(--ease-out),
              color var(--motion-fast) var(--ease-out),
              transform var(--motion-fast) var(--ease-out);
  white-space: nowrap;
}

.btn:active { transform: scale(0.975); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 4px 12px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.4) inset, 0 8px 18px rgba(37, 99, 235, 0.32);
}

.btn-secondary {
  background: var(--glass-regular-bg);
  -webkit-backdrop-filter: var(--glass-regular-blur);
          backdrop-filter: var(--glass-regular-blur);
  color: var(--ink-strong);
  border-color: var(--brand);
  box-shadow: var(--glass-regular-highlight);
}
.btn-secondary:hover {
  background: var(--glass-vibrant-bg);
  border-color: var(--brand-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover { background: var(--surface-inset); }

.btn-danger {
  background: transparent;
  color: var(--sev-critical-text);
  border-color: var(--sev-critical-bar);
}
.btn-danger:hover { background: var(--sev-critical-fill); }

.btn-lg {
  padding: 14px 24px;
  min-height: 48px;
  font-size: 15px;
  border-radius: var(--radius-xl);
}

.btn-sm {
  padding: 6px 12px;
  min-height: 32px;
  font-size: 13px;
}

/* ─── Marketing hero ────────────────────────────────────── */
.mkt-section {
  padding: var(--space-12) var(--space-6);
}

.mkt-section-inner {
  max-width: var(--max-marketing);
  margin: 0 auto;
}

.mkt-hero {
  padding-top: 32px;
  padding-bottom: 64px;
}

.mkt-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (max-width: 900px) {
  .mkt-hero { padding-top: 24px; padding-bottom: 48px; }
  .mkt-hero-grid { grid-template-columns: 1fr; gap: var(--space-6); }
}

.mkt-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brand-accent);
  margin-bottom: var(--space-4);
  background: var(--brand-soft);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.mkt-h1 {
  font-family: var(--font-body);
  font-style: normal;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink-strong);
  margin: 0 0 var(--space-4) 0;
  text-wrap: balance;
}

.mkt-h1 em {
  font-style: normal;
  color: var(--brand-accent);
  font-weight: 700;
}

.mkt-lede {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0 0 var(--space-8) 0;
  max-width: 56ch;
}

.mkt-hero-cta {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  flex-wrap: wrap;
}

.mkt-trust {
  margin-top: var(--space-6);
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}

.mkt-trust-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.mkt-trust-item svg {
  width: 14px;
  height: 14px;
  stroke: var(--sev-low-text);
  fill: none;
  stroke-width: 2.5;
}

/* Demo card on the right side of the hero */
/* Hero demo card — sharp, shiny spotlight that follows the cursor.
   Inner spotlight is a tight bright pinpoint (white-hot core → royal
   blue → transparent at ~80px). The border lights up only where the
   cursor is, then falls off rapidly — like reflective metal. */
.mkt-hero-demo {
  --x: 0;
  --y: 0;
  --xp: 0.5;
  --spot-inner: 130px;
  --spot-border: 80px;

  position: relative;
  background: #E8F0FE;
  border: 1px solid rgba(37, 99, 235, 0.10);
  border-radius: 16px;
  padding: var(--space-4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 12px 32px rgba(37, 99, 235, 0.08),
    0 2px 6px rgba(11, 36, 71, 0.04);

  /* Interior: a sharp shiny spot — white-hot core, blue rim, fast falloff */
  background-image: radial-gradient(
    var(--spot-inner) var(--spot-inner) at
    calc(var(--x) * 1px) calc(var(--y) * 1px),
    rgba(255, 255, 255, 0.95) 0%,
    rgba(127, 175, 255, 0.55) 18%,
    rgba(37, 99, 235, 0.22) 38%,
    transparent 60%
  );
  background-attachment: fixed;
  background-blend-mode: screen;
  isolation: isolate;
}

/* Border glow — only the rim lights up, only where the cursor is.
   mask-composite:exclude keeps the painted ring, drops the interior. */
.mkt-hero-demo::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 20px;
  padding: 2px;
  background: radial-gradient(
    var(--spot-border) var(--spot-border) at
    calc(var(--x) * 1px) calc(var(--y) * 1px),
    #FFFFFF 0%,
    rgba(37, 99, 235, 1) 18%,
    rgba(15, 79, 224, 0.5) 40%,
    transparent 70%
  );
  background-attachment: fixed;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 0 6px rgba(37, 99, 235, 0.45));
}

/* Tight outer halo — bloom that sharpens to the cursor point */
.mkt-hero-demo::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 26px;
  background: radial-gradient(
    calc(var(--spot-border) * 1.4) calc(var(--spot-border) * 1.4) at
    calc(var(--x) * 1px) calc(var(--y) * 1px),
    rgba(37, 99, 235, 0.45) 0%,
    rgba(37, 99, 235, 0.15) 30%,
    transparent 60%
  );
  background-attachment: fixed;
  filter: blur(10px);
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
}
.mkt-hero-demo:hover::after,
.mkt-hero-demo:focus-within::after { opacity: 1; }

.mkt-hero-demo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(37, 99, 235, 0.12);
  margin-bottom: 0;
}
.mkt-hero-demo-title {
  font-size: 13px;
  color: var(--ink);
  font-weight: 600;
}
.mkt-hero-demo-count {
  font-size: 10px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

/* Each row is a button now — clickable, focusable, accessible. */
.mkt-hero-demo-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid rgba(37, 99, 235, 0.10);
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  color: var(--ink);
  border-radius: 0;
  transition: background var(--motion-fast) var(--ease-out);
}
.mkt-hero-demo-row:hover { background: rgba(37, 99, 235, 0.04); }
.mkt-hero-demo-row:focus-visible {
  outline: none;
  background: rgba(37, 99, 235, 0.06);
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.35);
  border-radius: var(--radius-sm);
}
.mkt-hero-demo-row.is-open {
  background: rgba(37, 99, 235, 0.04);
}
.mkt-hero-demo-row + .mkt-hero-demo-row { /* preserved border on subsequent rows */ }

.mkt-hero-demo-chev {
  width: 16px;
  height: 16px;
  color: var(--ink-soft);
  transition: transform 240ms var(--ease-out);
  flex-shrink: 0;
}
.mkt-hero-demo-row.is-open .mkt-hero-demo-chev { transform: rotate(180deg); color: var(--brand); }

.mkt-hero-demo-pill {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
  border-width: 1px;
  border-style: solid;
}

.mkt-hero-demo-pill.critical { background: var(--sev-critical-fill); color: var(--sev-critical-text); border-color: var(--sev-critical-stroke); }
.mkt-hero-demo-pill.high     { background: var(--sev-high-fill); color: var(--sev-high-text); border-color: var(--sev-high-stroke); }
.mkt-hero-demo-pill.medium   { background: var(--sev-medium-fill); color: var(--sev-medium-text); border-color: var(--sev-medium-stroke); }
.mkt-hero-demo-pill.low      { background: var(--sev-low-fill);  color: var(--sev-low-text);  border-color: var(--sev-low-stroke);  }

.mkt-hero-demo-text {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.7;
  /* Two-line max — bigger line-height keeps highlight chips from visually
     clipping into the line above when text wraps. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mkt-hero-demo-time {
  font-size: 11px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.mkt-hero-demo-pill {
  font-size: 10px;
  padding: 3px 8px;
}

/* Highlighted phrases inside email text — Shield's classifier
   shows which sentences triggered each signal. Stronger fills + a
   clear border so they pop on the pale-blue card background. */
.mkt-hero-demo-text mark.signal {
  background: transparent;
  display: inline-block;
  padding: 2px 7px;
  margin: 1px 1px;
  border-radius: 6px;
  font-weight: 600;
  color: inherit;
  position: relative;
  white-space: normal;
  border: 1px solid;
  line-height: 1.3;
  vertical-align: baseline;
  transition: background 200ms var(--ease-out);
}
.mkt-hero-demo-text mark.signal.critical {
  background: var(--sev-critical-fill);
  color: var(--sev-critical-text);
  border-color: var(--sev-critical-stroke);
}
.mkt-hero-demo-text mark.signal.high {
  background: var(--sev-high-fill);
  color: var(--sev-high-text);
  border-color: var(--sev-high-stroke);
}
.mkt-hero-demo-text mark.signal.medium {
  background: var(--sev-medium-fill);
  color: var(--sev-medium-text);
  border-color: var(--sev-medium-stroke);
}
.mkt-hero-demo-text mark.signal.low {
  background: var(--sev-low-fill);
  color: var(--sev-low-text);
  border-color: var(--sev-low-stroke);
}

/* ── Email preview inside the row expander ─────────────
   A faithful mock-up of the inbound email Shield classified.
   Highlights are hoverable — each one carries a trigger label
   and a one-line "why" tip that surfaces above the phrase. */
.email-preview {
  background: #FFFFFF;
  border: 1px solid rgba(37, 99, 235, 0.10);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  position: relative;
}
.email-preview-header {
  border-bottom: 1px solid rgba(37, 99, 235, 0.08);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.email-preview-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.email-preview-from {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-strong);
}
.email-preview-time {
  font-size: 10.5px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  white-space: nowrap;
}
.email-preview-meta {
  font-size: 10.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.email-preview-subject {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-top: 6px;
  line-height: 1.35;
}

.email-preview-body {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink);
}
.email-preview-body p { margin: 0 0 8px; }
.email-preview-body p:last-child { margin-bottom: 0; }
.email-preview-body p:empty { height: 6px; margin: 0; }

/* Highlighted phrases inside the email — slightly stronger than the
   row-preview marks because they need to be readable in dense text. */
.email-preview-body mark.signal {
  position: relative;
  padding: 1px 5px;
  margin: 0 1px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid;
  cursor: help;
  transition: background 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.email-preview-body mark.signal.critical { background: var(--sev-critical-fill); color: var(--sev-critical-text); border-color: var(--sev-critical-stroke); }
.email-preview-body mark.signal.high     { background: var(--sev-high-fill);     color: var(--sev-high-text);     border-color: var(--sev-high-stroke); }
.email-preview-body mark.signal.medium   { background: var(--sev-medium-fill);   color: var(--sev-medium-text);   border-color: var(--sev-medium-stroke); }
.email-preview-body mark.signal.low      { background: var(--sev-low-fill);      color: var(--sev-low-text);      border-color: var(--sev-low-stroke); }
.email-preview-body mark.signal:hover,
.email-preview-body mark.signal:focus-visible {
  filter: brightness(0.96);
  outline: none;
}

/* Signal tooltip — singleton at <body> level so it escapes any
   overflow:hidden ancestor. Styled to match the page: white surface
   with a subtle brand-blue accent stripe on the left, royal-blue
   label, navy body text, premium drop shadow. */
.signal-tip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  pointer-events: none;
  background: linear-gradient(180deg, #FFFFFF 0%, #F7FAFF 100%);
  color: var(--ink-strong);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  max-width: min(300px, calc(100vw - 16px));
  min-width: min(220px, calc(100vw - 16px));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 0 1px rgba(37, 99, 235, 0.18),
    0 16px 36px rgba(37, 99, 235, 0.18),
    0 4px 12px rgba(11, 36, 71, 0.06);
  opacity: 0;
  transform: translate(-50%, calc(-100% - 12px)) scale(0.96);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
  text-align: left;
  overflow: hidden;
}
.signal-tip.is-visible {
  opacity: 1;
  transform: translate(-50%, calc(-100% - 12px)) scale(1);
}
.signal-tip-label {
  display: block;
  font-weight: 700;
  color: var(--brand-accent);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.signal-tip-text {
  display: block;
  color: var(--ink-strong);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
}
/* Triangle arrow pointing down to the hovered element */
.signal-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border: 7px solid transparent;
  border-top-color: #FFFFFF;
  filter: drop-shadow(0 2px 1.5px rgba(37, 99, 235, 0.22));
}
/* Flipped variant — tip sits below the mark when it would clip above */
.signal-tip.is-below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #FFFFFF;
  filter: drop-shadow(0 -2px 1.5px rgba(37, 99, 235, 0.22));
}

.email-preview-foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(37, 99, 235, 0.08);
}
.email-preview-foot-label {
  font-size: 10px;
  color: var(--ink-soft);
  font-style: italic;
}

/* Expandable explainer panel beneath each row.
   Always in the DOM. Class-based state avoids the display:none jump
   that the `hidden` attribute would cause. */
.mkt-hero-demo-explain {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  background: rgba(37, 99, 235, 0.04);
  border-radius: var(--radius-md);
  padding: 0 var(--space-3);
  margin: 0;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0), 0 0 0 rgba(37, 99, 235, 0);
  transition:
    max-height 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 260ms cubic-bezier(0.2, 0.8, 0.2, 1) 60ms,
    padding 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    margin 360ms cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 200ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mkt-hero-demo-explain.is-open {
  max-height: 600px;
  opacity: 1;
  padding: var(--space-4) var(--space-3);
  margin: 4px 0 var(--space-3) 0;
  border-color: rgba(37, 99, 235, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 0 24px rgba(37, 99, 235, 0.08);
}

.explain-triggers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--space-3);
}
.trigger-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid;
  background: var(--surface-card);
  letter-spacing: 0;
}
.trigger-tag.critical { color: var(--sev-critical-text); border-color: var(--sev-critical-stroke); background: var(--sev-critical-fill); }
.trigger-tag.high     { color: var(--sev-high-text);     border-color: var(--sev-high-stroke);     background: var(--sev-high-fill); }
.trigger-tag.medium   { color: var(--sev-medium-text);   border-color: var(--sev-medium-stroke);   background: var(--sev-medium-fill); }
.trigger-tag.low      { color: var(--sev-low-text);      border-color: var(--sev-low-stroke);      background: var(--sev-low-fill); }

.explain-why {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 var(--space-3) 0;
}
.explain-why em { font-style: italic; color: var(--ink-strong); }
.explain-why strong { color: var(--ink-strong); font-weight: 600; }

.explain-action {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3);
  background: var(--surface-card);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(37, 99, 235, 0.12);
}
.action-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
}
.explain-action > div { display: flex; flex-direction: column; gap: 2px; }
.action-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
}
.action-text {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}

/* ── Play action button + animated playing panel ─────── */
.play-action {
  margin-top: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--brand);
  color: white;
  border: 0;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.30);
  transition: transform 160ms var(--ease-out), background 160ms var(--ease-out);
}
.play-action:hover { background: var(--brand-hover); transform: translateY(-1px); }
.play-action:active { transform: scale(0.97); }
.play-action svg { width: 12px; height: 12px; }

.mkt-hero-demo-explain .explain-content {
  transition: opacity 220ms var(--ease-out);
}
.mkt-hero-demo-explain.is-playing .explain-content { display: none; }
.mkt-hero-demo-explain.is-playing .explain-playing { display: flex; }

.explain-playing {
  display: none;
  flex-direction: column;
  gap: var(--space-3);
  animation: playingIn 360ms var(--ease-out);
}
@keyframes playingIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.playing-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(37, 99, 235, 0.10);
}
.play-back {
  width: 28px; height: 28px;
  border: 1px solid rgba(37, 99, 235, 0.20);
  background: #E8F0FE;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  flex-shrink: 0;
}
.play-back:hover { background: var(--brand-soft); border-color: var(--brand); }
.play-back svg { width: 14px; height: 14px; }
.playing-title {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-strong);
}
.playing-sub {
  margin: 0;
  font-size: 11px;
  color: var(--ink-soft);
}
.playing-status {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.playing-status[data-state="done"] { color: var(--sev-low-text); }

.playing-doc {
  background: #F8FAFD;
  border: 1px solid rgba(37, 99, 235, 0.10);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--ink);
}
.doc-field {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 8px;
  align-items: baseline;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.06);
}
.doc-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.doc-body {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--ink);
  min-height: 96px;
}
.doc-body .typed-body {
  white-space: pre-wrap;
}

/* Typing cursor — visible only while typing this field */
.typed.is-typing::after {
  content: "▍";
  color: var(--brand);
  margin-left: 1px;
  animation: typedBlink 800ms steps(2) infinite;
}
@keyframes typedBlink {
  from { opacity: 1; }
  to   { opacity: 0; }
}

.playing-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out);
  pointer-events: none;
}
.explain-playing.tools-in .playing-tools {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.play-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #E8F0FE;
  border: 1px solid rgba(37, 99, 235, 0.20);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-strong);
  cursor: pointer;
  font-family: inherit;
  transition: background 140ms var(--ease-out), border-color 140ms var(--ease-out), transform 140ms var(--ease-out);
}
.play-tool svg { width: 14px; height: 14px; color: var(--brand); }
.play-tool:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
}
.play-tool:active { transform: scale(0.97); }
.play-tool.is-primary {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.play-tool.is-primary svg { color: white; }
.play-tool.is-primary:hover { background: var(--brand-hover); }

.playing-attach {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 300ms var(--ease-out) 120ms, transform 300ms var(--ease-out) 120ms;
}
.explain-playing.attach-in .playing-attach {
  opacity: 1;
  transform: translateY(0);
}
.playing-attach-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin: 0 0 6px 0;
}
.attach-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.attach-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #E8F0FE;
  border: 1px dashed rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 140ms var(--ease-out), border-color 140ms var(--ease-out), transform 140ms var(--ease-out);
}
.attach-ico {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.attach-ico svg { width: 16px; height: 16px; }
.attach-tile:hover {
  background: var(--brand-soft);
  border-style: solid;
  border-color: var(--brand);
  transform: translateY(-1px);
}
.attach-tile.is-attached {
  border-style: solid;
  border-color: var(--sev-low-stroke);
  background: var(--sev-low-fill);
  color: var(--sev-low-text);
}
.attach-tile.is-attached .attach-ico {
  background: var(--sev-low-stroke);
  color: var(--sev-low-text);
}

/* ── Send-success state with animated tick + mini timeline ── */
.playing-sent {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-4) var(--space-3);
  gap: var(--space-2);
}
.explain-playing.is-sent .playing-doc,
.explain-playing.is-sent .playing-tools,
.explain-playing.is-sent .playing-attach { display: none; }
.explain-playing.is-sent .playing-sent { display: flex; }

.sent-check {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  margin: 4px auto 8px;
}
.sent-check-ring {
  fill: none;
  stroke: var(--brand);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: sentRing 520ms cubic-bezier(0.2, 0.8, 0.2, 1) 60ms forwards;
}
.sent-check-path {
  fill: none;
  stroke: var(--brand);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: sentTick 420ms cubic-bezier(0.2, 0.8, 0.2, 1) 480ms forwards;
}
@keyframes sentRing {
  to { stroke-dashoffset: 0; }
}
@keyframes sentTick {
  to { stroke-dashoffset: 0; }
}

.sent-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink-strong);
  margin: 4px 0 0;
  opacity: 0;
  transform: translateY(8px);
  animation: sentFadeUp 480ms var(--ease-out) 760ms forwards;
}
.sent-meta {
  font-size: 13px;
  color: var(--ink);
  margin: 4px 0 0;
  opacity: 0;
  transform: translateY(8px);
  animation: sentFadeUp 480ms var(--ease-out) 840ms forwards;
}
.sent-meta strong { color: var(--ink-strong); font-weight: 600; }
.sent-sub {
  font-size: 11px;
  color: var(--ink-soft);
  margin: 0;
  opacity: 0;
  transform: translateY(8px);
  animation: sentFadeUp 480ms var(--ease-out) 920ms forwards;
}
@keyframes sentFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* "Reports added" panel — two cards, the second one is clearly NEW.
   Reads like a project log entry just appeared.  */
.sent-timeline {
  width: 100%;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(37, 99, 235, 0.12);
  opacity: 0;
  animation: sentFadeUp 480ms var(--ease-out) 1100ms forwards;
  text-align: left;
}
.sent-timeline-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin: 0 0 var(--space-3);
}
.sent-timeline-label::after {
  content: "+1 just now";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand);
  background: rgba(37, 99, 235, 0.10);
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: none;
}

.mini-tl {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Each entry is a proper card — not just a text row */
.mini-tl-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #FFFFFF;
  border: 1px solid rgba(37, 99, 235, 0.10);
  border-radius: 10px;
  position: relative;
}

/* The existing entry — quiet, muted */
.mini-tl-row:not(.mini-tl-new) {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(11, 36, 71, 0.08);
}
.mini-tl-row:not(.mini-tl-new) .mini-tl-title,
.mini-tl-row:not(.mini-tl-new) .mini-tl-meta {
  color: var(--ink-muted);
}

.mini-tl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--ink-soft);
  flex-shrink: 0;
}
.mini-tl-dot-existing { background: #FFFFFF; }

/* The NEW entry — strong brand border, pulsing glow, slide-in */
.mini-tl-new {
  background: #FFFFFF;
  border: 2px solid var(--brand);
  box-shadow:
    0 0 0 4px rgba(37, 99, 235, 0.10),
    0 8px 20px rgba(37, 99, 235, 0.20);
  animation: newCardIn 540ms cubic-bezier(0.2, 1.2, 0.4, 1) 1320ms both,
             newCardPulse 2.4s ease-in-out 2200ms infinite;
}
@keyframes newCardIn {
  0%   { opacity: 0; transform: translateY(20px) scale(0.96); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.0), 0 8px 20px rgba(37, 99, 235, 0.0); }
  60%  { box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.16), 0 16px 32px rgba(37, 99, 235, 0.28); }
  100% { opacity: 1; transform: translateY(0) scale(1); box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10), 0 8px 20px rgba(37, 99, 235, 0.20); }
}
@keyframes newCardPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10), 0 8px 20px rgba(37, 99, 235, 0.20); }
  50%      { box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.16), 0 12px 26px rgba(37, 99, 235, 0.26); }
}

.mini-tl-new .mini-tl-dot {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.20);
}
.mini-tl-dot-new[data-sev="critical"] { background: var(--sev-critical-text); border-color: var(--sev-critical-text); box-shadow: 0 0 0 3px var(--sev-critical-fill); }
.mini-tl-dot-new[data-sev="high"]     { background: var(--sev-high-text);     border-color: var(--sev-high-text);     box-shadow: 0 0 0 3px var(--sev-high-fill); }
.mini-tl-dot-new[data-sev="medium"]   { background: var(--sev-medium-text);   border-color: var(--sev-medium-text);   box-shadow: 0 0 0 3px var(--sev-medium-fill); }

.mini-tl-body { min-width: 0; }
.mini-tl-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-strong);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}
.mini-tl-meta {
  font-size: 11px;
  color: var(--ink-muted);
  margin: 2px 0 0;
  font-family: var(--font-mono);
}
.mini-tl-new-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--brand);
  color: white;
  padding: 3px 7px;
  border-radius: 999px;
  line-height: 1;
  flex-shrink: 0;
}

/* "Added" stamp on the right of the new card */
.mini-tl-new::after {
  content: "✓ added";
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand);
  margin-left: 4px;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .mini-tl-new { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sent-check-ring,
  .sent-check-path,
  .sent-title, .sent-meta, .sent-sub, .sent-timeline,
  .mini-tl-dot-new {
    animation: none;
  }
  .sent-check-ring { stroke-dashoffset: 0; }
  .sent-check-path { stroke-dashoffset: 0; }
  .sent-title, .sent-meta, .sent-sub, .sent-timeline { opacity: 1; transform: none; }
}

.mkt-hero-demo-foot {
  margin-top: var(--space-2);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(37, 99, 235, 0.10);
  font-size: 10.5px;
  color: var(--ink-soft);
}
.mkt-hero-demo-foot strong {
  color: var(--brand);
  font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  .mkt-hero-demo-explain,
  .mkt-hero-demo-chev,
  .mkt-hero-demo-row,
  .mkt-hero-demo-text mark.signal { transition: none; }
}

/* ─── Marketing sections ────────────────────────────────── */
.section-label {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--brand);
  margin-bottom: var(--space-4);
}

.mkt-h2 {
  font-family: var(--font-body);
  font-style: normal;
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--ink-strong);
  margin: 0 0 var(--space-4) 0;
  max-width: 28ch;
  text-wrap: balance;
}

.mkt-section-lede {
  font-size: 17px;
  color: var(--ink-muted);
  max-width: 65ch;
  margin: 0 0 var(--space-10) 0;
}

.mkt-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 900px) {
  .mkt-features-grid { grid-template-columns: 1fr; }
}

.mkt-feature {
  background: var(--glass-regular-bg);
  -webkit-backdrop-filter: var(--glass-regular-blur);
          backdrop-filter: var(--glass-regular-blur);
  border: var(--glass-regular-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--glass-regular-highlight), var(--glass-regular-shadow);
  transition: transform var(--motion-base) var(--ease-out),
              box-shadow var(--motion-base) var(--ease-out);
}

.mkt-feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-regular-highlight), 0 12px 28px rgba(40, 70, 130, 0.14);
}

.mkt-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--glass-vibrant-bg);
  -webkit-backdrop-filter: var(--glass-vibrant-blur);
          backdrop-filter: var(--glass-vibrant-blur);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
}

.mkt-feature-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--brand-accent);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mkt-feature h3 {
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 var(--space-2) 0;
  letter-spacing: -0.015em;
  color: var(--ink-strong);
}

.mkt-feature p {
  font-size: var(--text-base);
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 0;
}

/* ─── Pricing cards ─────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.plan-card {
  background: var(--glass-regular-bg);
  -webkit-backdrop-filter: var(--glass-regular-blur);
          backdrop-filter: var(--glass-regular-blur);
  border: var(--glass-regular-border);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--glass-regular-highlight), var(--glass-regular-shadow);
  transition: transform var(--motion-base) var(--ease-out),
              box-shadow var(--motion-base) var(--ease-out);
}

.plan-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-regular-highlight), 0 12px 28px rgba(40, 70, 130, 0.14);
}

.plan-card.is-recommended {
  background: var(--glass-vibrant-bg);
  -webkit-backdrop-filter: var(--glass-vibrant-blur);
          backdrop-filter: var(--glass-vibrant-blur);
  border: 2px solid var(--brand);
  box-shadow: var(--glass-vibrant-highlight), 0 0 0 4px rgba(37, 99, 235, 0.12), var(--glass-vibrant-shadow);
}

.plan-card-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: 999px;
}

.plan-name {
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--ink-strong);
  margin: 0 0 var(--space-2) 0;
}

.plan-tagline {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 var(--space-6) 0;
}

.plan-price {
  display: baseline;
  margin: 0 0 var(--space-6) 0;
}

.plan-price-amount {
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-5xl);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--ink-strong);
  line-height: 1;
}

.plan-price-unit {
  font-size: 14px;
  color: var(--ink-soft);
  margin-left: 6px;
}

.plan-features {
  list-style: none;
  margin: 0 0 var(--space-8) 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.plan-features li {
  display: flex;
  gap: var(--space-3);
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.plan-features li::before {
  content: "";
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background: var(--brand-soft);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23B25445' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  margin-top: 2px;
}

.plan-features li.gap::before {
  background: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23B2A07C' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M4 8h8'/%3E%3C/svg%3E");
}

.plan-cta { width: 100%; }

/* ─── Comparison table (pricing detail page) ────────────── */
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-8);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cmp-table th,
.cmp-table td {
  padding: var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.cmp-table tr:last-child td { border-bottom: 0; }
.cmp-table th {
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-muted);
}
.cmp-table td.center { text-align: center; }
.cmp-table .yes { color: var(--sev-low-text); font-weight: 600; }
.cmp-table .no { color: var(--ink-soft); }
.cmp-table .plan-h {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 18px;
  font-weight: 500;
}

/* ─── FAQ ───────────────────────────────────────────────── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.faq-item {
  background: var(--glass-regular-bg);
  -webkit-backdrop-filter: var(--glass-regular-blur);
          backdrop-filter: var(--glass-regular-blur);
  border: var(--glass-regular-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--glass-regular-highlight);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 300;
  color: var(--ink-soft);
  flex-shrink: 0;
  transition: transform var(--motion-fast) var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: var(--space-4) 0 0 0;
  color: var(--ink-muted);
  line-height: 1.6;
  font-size: 15px;
}

/* ─── Footer ────────────────────────────────────────────── */
.mkt-footer {
  background: var(--glass-thin-bg);
  -webkit-backdrop-filter: var(--glass-thin-blur);
          backdrop-filter: var(--glass-thin-blur);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  padding: var(--space-9) var(--space-6) var(--space-8);
  margin-top: var(--space-9);
}

.mkt-footer-inner {
  max-width: var(--max-marketing);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-8);
}

@media (max-width: 800px) {
  .mkt-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .mkt-footer { padding-left: var(--space-4); padding-right: var(--space-4); }
  .mkt-footer-inner { gap: var(--space-4); }
}

.mkt-footer h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin: 0 0 var(--space-4) 0;
}

.mkt-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mkt-footer a {
  font-size: 14px;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color var(--motion-fast) var(--ease-out);
}

.mkt-footer a:hover { color: var(--ink); }

.mkt-footer-blurb {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
  margin: var(--space-3) 0 var(--space-5) 0;
  max-width: 32ch;
}

.mkt-footer-legal {
  max-width: var(--max-marketing);
  margin: var(--space-10) auto 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ============================================================
   PART 3 — SETTINGS LAYOUT
   ============================================================ */
.settings-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-8);
  align-items: start;
}

@media (max-width: 800px) {
  .settings-shell { grid-template-columns: 1fr; gap: var(--space-5); }
}

.settings-nav {
  background: var(--glass-regular-bg);
  -webkit-backdrop-filter: var(--glass-regular-blur);
          backdrop-filter: var(--glass-regular-blur);
  border: var(--glass-regular-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  position: sticky;
  top: calc(var(--topbar-h) + var(--space-5));
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: var(--glass-regular-highlight);
}

.settings-nav a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-3);
  min-height: var(--row-h);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: background var(--motion-fast) var(--ease-out),
              color var(--motion-fast) var(--ease-out);
}

.settings-nav a:hover { background: var(--surface-muted); color: var(--ink); }
.settings-nav a.is-active { background: var(--brand-soft); color: var(--brand-hover); font-weight: 600; }
.settings-nav a svg { width: 16px; height: 16px; flex-shrink: 0; }

.settings-section {
  background: var(--glass-regular-bg);
  -webkit-backdrop-filter: var(--glass-regular-blur);
          backdrop-filter: var(--glass-regular-blur);
  border: var(--glass-regular-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-7);
  margin-bottom: var(--space-5);
  box-shadow: var(--glass-regular-highlight), var(--glass-regular-shadow);
}

.settings-section h2 {
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-xl);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-strong);
  margin: 0 0 var(--space-2) 0;
}

.settings-section .desc {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 var(--space-6) 0;
  max-width: 60ch;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--space-5);
}

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.field .help {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  height: 44px;
  padding: 0 14px;
  background: var(--glass-regular-bg);
  -webkit-backdrop-filter: var(--glass-regular-blur);
          backdrop-filter: var(--glass-regular-blur);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  font-family: inherit;
  color: var(--ink);
  transition: border-color var(--motion-fast) var(--ease-out),
              box-shadow var(--motion-fast) var(--ease-out);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-soft); }

.field textarea {
  height: auto;
  min-height: 96px;
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; }
}

/* Toggle switches for notification prefs */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--border);
  gap: var(--space-4);
}
.toggle-row:last-child { border-bottom: 0; }

.toggle-row .label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.toggle-row .label .desc {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border-strong);
  border-radius: 999px;
  transition: background var(--motion-fast) var(--ease-out);
}

.toggle-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform var(--motion-base) var(--ease-out);
  box-shadow: var(--shadow-sm);
}

.toggle input:checked + .toggle-slider {
  background: var(--brand);
}

.toggle input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle input:focus-visible + .toggle-slider {
  box-shadow: var(--focus-ring);
}

.settings-actions {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  justify-content: flex-end;
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.danger-zone {
  border-color: var(--sev-critical-bar);
}

.danger-zone h2 { color: var(--sev-critical-text); }

/* ============================================================
   PART 4 — BILLING UI
   ============================================================ */

.billing-summary {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

@media (max-width: 800px) {
  .billing-summary { grid-template-columns: 1fr; }
}

.billing-card {
  background: var(--glass-regular-bg);
  -webkit-backdrop-filter: var(--glass-regular-blur);
          backdrop-filter: var(--glass-regular-blur);
  border: var(--glass-regular-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  box-shadow: var(--glass-regular-highlight), var(--glass-regular-shadow);
}

.billing-card-eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.billing-current-plan {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.billing-current-plan .name {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.billing-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--sev-low-fill);
  color: var(--sev-low-text);
}

.billing-status::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--sev-low-text);
  border-radius: 50%;
}

.billing-status.past_due { background: var(--sev-critical-fill); color: var(--sev-critical-text); }
.billing-status.past_due::before { background: var(--sev-critical-text); }

.billing-status.trialing { background: var(--sev-info-fill); color: var(--sev-info-text); }
.billing-status.trialing::before { background: var(--sev-info-text); }

.billing-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}

.billing-meta dt {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.billing-meta dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.usage-bar {
  width: 100%;
  height: 8px;
  background: var(--surface-inset);
  border-radius: 999px;
  overflow: hidden;
  margin: var(--space-3) 0;
}

.usage-bar-fill {
  height: 100%;
  background: var(--brand);
  border-radius: 999px;
  transition: width var(--motion-slow) var(--ease-out);
}

.usage-bar-fill.warn { background: var(--sev-high-bar); }
.usage-bar-fill.crit { background: var(--sev-critical-bar); }

.invoice-table {
  width: 100%;
  border-collapse: collapse;
}

.invoice-table th,
.invoice-table td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.invoice-table th {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  font-weight: 600;
  background: var(--surface-muted);
}

.invoice-table tr:last-child td { border-bottom: 0; }

.invoice-amount { font-family: var(--font-mono); font-size: 13px; color: var(--ink); }

.invoice-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.invoice-status.paid { background: var(--sev-low-fill); color: var(--sev-low-text); }
.invoice-status.open { background: var(--sev-high-fill); color: var(--sev-high-text); }
.invoice-status.void { background: var(--surface-inset); color: var(--ink-soft); }

/* ============================================================
   PART 5 — HELP CENTRE (in-site)
   ============================================================ */
.help-hero {
  padding: 96px var(--space-6) var(--space-9);
  text-align: center;
  position: relative;
}
.help-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(255,255,255,0.4) 0%, transparent 70%);
  pointer-events: none;
}

.help-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 900px) { .help-cards { grid-template-columns: 1fr; } }

.help-card {
  background: var(--glass-regular-bg);
  -webkit-backdrop-filter: var(--glass-regular-blur);
          backdrop-filter: var(--glass-regular-blur);
  border: var(--glass-regular-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--glass-regular-highlight), var(--glass-regular-shadow);
  transition: transform var(--motion-base) var(--ease-out),
              box-shadow var(--motion-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.help-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--glass-regular-highlight), 0 12px 28px rgba(40, 70, 130, 0.14);
}
.help-card h3 {
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-lg);
  margin: 0;
  font-weight: 600;
  color: var(--ink-strong);
  letter-spacing: -0.01em;
}
.help-card p { font-size: var(--text-sm); color: var(--ink-muted); margin: 0; line-height: 1.5; }

.help-article {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-10) var(--space-6);
}

.help-article h1 {
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.022em;
  margin: 0 0 var(--space-4) 0;
  color: var(--ink-strong);
}

.help-article h2 {
  font-family: var(--font-body);
  font-style: normal;
  font-size: var(--text-2xl);
  margin: var(--space-7) 0 var(--space-3) 0;
  font-weight: 600;
  color: var(--ink-strong);
  letter-spacing: -0.015em;
}

.help-article p,
.help-article li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  max-width: 65ch;
}

.help-article code {
  background: var(--surface-inset);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
}

.help-article pre {
  background: var(--ink);
  color: #f0e6d2;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
}

.help-article .step {
  background: var(--glass-regular-bg);
  -webkit-backdrop-filter: var(--glass-regular-blur);
          backdrop-filter: var(--glass-regular-blur);
  border: var(--glass-regular-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin: var(--space-4) 0;
  display: flex;
  gap: var(--space-4);
  box-shadow: var(--glass-regular-highlight);
}

.help-article .step-num {
  width: 28px;
  height: 28px;
  background: var(--brand-soft);
  color: var(--brand-hover);
  font-weight: 700;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   PART 6 — ONBOARDING WIZARD
   ============================================================ */
.wizard {
  max-width: 640px;
  margin: 64px auto;
  padding: 0 var(--space-6);
}

.wizard-progress {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.wizard-step {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 999px;
  transition: background var(--motion-base) var(--ease-out);
}
.wizard-step.is-done,
.wizard-step.is-current { background: var(--brand); }

.wizard-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
}

.wizard-eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--brand);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.wizard h2 {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-2) 0;
}

.wizard p { color: var(--ink-muted); margin: 0 0 var(--space-6) 0; }

.wizard-tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-4);
}

@media (max-width: 700px) { .wizard-tiers { grid-template-columns: 1fr; } }

.wizard-tier {
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  cursor: pointer;
  transition: border-color var(--motion-fast) var(--ease-out),
              background var(--motion-fast) var(--ease-out);
  background: var(--surface-card);
  font-family: inherit;
  text-align: left;
  color: inherit;
}

.wizard-tier:hover { border-color: var(--ink-soft); }
.wizard-tier.is-selected { border-color: var(--brand); background: var(--brand-soft); }

.wizard-tier .name {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 18px;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}
.wizard-tier .price {
  font-size: 14px;
  color: var(--ink-muted);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

/* ============================================================
   PART 7 — IN-APP DROPDOWNS (notification inbox, user menu)
   ============================================================ */
.dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  min-width: 320px;
  max-width: 380px;
  z-index: var(--z-dropdown);
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  pointer-events: none;
  transition: opacity var(--motion-fast) var(--ease-out),
              transform var(--motion-fast) var(--ease-out);
  transform-origin: top right;
}

.dropdown.is-open .dropdown-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dropdown-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.dropdown-body {
  max-height: 420px;
  overflow-y: auto;
}

.dropdown-empty {
  padding: var(--space-8) var(--space-5);
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
}

.notif-item {
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  cursor: pointer;
  transition: background var(--motion-fast) var(--ease-out);
}

.notif-item:hover { background: var(--surface-muted); }
.notif-item:last-child { border-bottom: 0; }

.notif-item.is-unread { background: var(--brand-soft); }
.notif-item.is-unread:hover { background: var(--brand-soft); filter: brightness(0.98); }

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  flex-shrink: 0;
  margin-top: 6px;
  opacity: 0;
}

.notif-item.is-unread .notif-dot { opacity: 1; }

.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 14px; font-weight: 600; color: var(--ink); margin: 0 0 2px 0; }
.notif-meta {
  font-size: 12px;
  color: var(--ink-soft);
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

/* ============================================================
   PART 8 — PHASE-6 PLACEHOLDER VIEWS
   ============================================================ */
.placeholder-view {
  max-width: 640px;
  margin: 64px auto;
  text-align: center;
  padding: var(--space-8);
}

.placeholder-view-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--brand-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.placeholder-view-icon svg {
  width: 32px;
  height: 32px;
  stroke: var(--brand-hover);
  fill: none;
  stroke-width: 2;
}

.placeholder-view h2 {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 var(--space-3) 0;
}

.placeholder-view .coming {
  display: inline-block;
  background: var(--brand-soft);
  color: var(--brand-hover);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.placeholder-view p {
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 50ch;
  margin: 0 auto var(--space-6);
}

.placeholder-view-form {
  display: flex;
  gap: var(--space-2);
  max-width: 360px;
  margin: 0 auto;
}

.placeholder-view-form input {
  flex: 1;
  height: 44px;
  padding: 0 var(--space-4);
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
}

.placeholder-view-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

/* ============================================================
   PART 9 — UTILITY
   ============================================================ */
.divider { height: 1px; background: var(--border); margin: var(--space-6) 0; border: 0; }
.muted   { color: var(--ink-soft); }
.spacer-sm { height: var(--space-4); }
.spacer-md { height: var(--space-6); }
.spacer-lg { height: var(--space-10); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.hidden { display: none !important; }

/* ============================================================
   EVIDENCE TIMELINE — vertical card timeline with date column
   Each card carries a subtle blue glow that intensifies on hover.
   Stagger-emerges as the section enters the viewport.
   ============================================================ */
.evtl-section {
  padding: var(--space-9) var(--space-6);
  position: relative;
}
.evtl-section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.evtl-header {
  text-align: center;
  margin-bottom: var(--space-8);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.evtl-header .mkt-h2 {
  margin-left: auto;
  margin-right: auto;
  max-width: 20ch;
}
.evtl-header .mkt-section-lede {
  margin-left: auto;
  margin-right: auto;
  max-width: 60ch;
}

.evtl-section-inner {
  max-width: 1120px;
}

.evtl-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  position: relative;
}

/* Subtle vertical thread between the date column and the cards.
   Date col 48px + gap 32px → middle of gap at 64px (48 + 16). */
.evtl-list::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 64px;
  width: 2px;
  background: linear-gradient(
    180deg,
    rgba(37, 99, 235, 0.05) 0%,
    rgba(37, 99, 235, 0.20) 15%,
    rgba(37, 99, 235, 0.20) 85%,
    rgba(37, 99, 235, 0.05) 100%
  );
  border-radius: 1px;
  pointer-events: none;
}

.evtl-row {
  display: grid;
  grid-template-columns: 48px 320px 1fr;
  align-items: stretch;
  gap: var(--space-4) var(--space-6);
  position: relative;
}

.evtl-date {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink-muted);
  text-align: right;
  padding-top: 18px;
  letter-spacing: 0.02em;
}
.evtl-date .day {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ink-strong);
  letter-spacing: -0.015em;
  line-height: 1;
}
.evtl-date .day-lbl {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-soft);
  margin-top: 4px;
}

/* Compact summary card (left column) */
.evtl-summary {
  position: relative;
  background: #E8F0FE;
  border: 1px solid rgba(37, 99, 235, 0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 4px 14px rgba(37, 99, 235, 0.08),
    0 1px 3px rgba(11, 36, 71, 0.03);
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.evtl-summary:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 10px 24px rgba(37, 99, 235, 0.14),
    0 0 0 1px rgba(37, 99, 235, 0.18),
    0 0 32px rgba(37, 99, 235, 0.10);
}

/* Marker on the vertical thread.
   Math: date col 48 + gap 32 → summary starts at 80px.
   Thread centre at 64px → marker left = 64 − 6 = 58px.
   Relative to summary at 80px: 58 − 80 = −22px. */
.evtl-summary::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 22px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px solid var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
  z-index: 1;
}
.evtl-summary[data-sev="critical"]::before { border-color: var(--sev-critical-stroke); box-shadow: 0 0 0 4px rgba(241, 179, 168, 0.30); }
.evtl-summary[data-sev="high"]::before     { border-color: var(--sev-high-stroke);     box-shadow: 0 0 0 4px rgba(241, 197, 127, 0.30); }
.evtl-summary[data-sev="medium"]::before   { border-color: var(--sev-medium-stroke);   box-shadow: 0 0 0 4px rgba(159, 191, 238, 0.30); }
.evtl-summary[data-sev="low"]::before      { border-color: var(--sev-low-stroke);      box-shadow: 0 0 0 4px rgba(143, 207, 193, 0.30); }

.evtl-summary-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink-strong);
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.evtl-summary-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(37, 99, 235, 0.08);
  gap: var(--space-2);
  flex-wrap: wrap;
}
.evtl-summary-meta .by { font-weight: 500; color: var(--ink-muted); }
.evtl-summary-meta .hash { font-family: var(--font-mono); }

/* Source + excerpt — gives each timeline card a sense of WHO sent
   it and WHAT was actually said. Pulls the dispute story forward. */
.evtl-summary-from {
  font-size: 11px;
  color: var(--brand);
  font-weight: 600;
  margin-top: 2px;
  letter-spacing: 0.02em;
}
.evtl-summary-from .label {
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  margin-right: 4px;
}
.evtl-summary-excerpt {
  font-size: 13px;
  color: var(--ink);
  margin: 6px 0 0;
  line-height: 1.45;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 8px;
  font-style: italic;
}
.evtl-summary-excerpt::before { content: "\201C"; margin-right: 1px; }
.evtl-summary-excerpt::after  { content: "\201D"; margin-left: 1px; }

/* Explainer card (right column) — white to match the summary cards */
.evtl-explain {
  background: #E8F0FE;
  border: 1px solid rgba(37, 99, 235, 0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 4px 14px rgba(37, 99, 235, 0.07),
    0 1px 3px rgba(11, 36, 71, 0.03);
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}
.evtl-explain:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 10px 24px rgba(37, 99, 235, 0.14),
    0 0 0 1px rgba(37, 99, 235, 0.18),
    0 0 32px rgba(37, 99, 235, 0.10);
}

.evtl-explain .explain-triggers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.evtl-explain .explain-why {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.evtl-explain .explain-why strong { color: var(--ink-strong); font-weight: 600; }
.evtl-explain .explain-why em { font-style: italic; color: var(--ink-strong); }

/* Legacy .evtl-card class kept as alias if any pages still use it */
.evtl-card { display: none; }

.evtl-card-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}

.evtl-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid;
}
.evtl-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.evtl-pill.critical { background: var(--sev-critical-fill); color: var(--sev-critical-text); border-color: var(--sev-critical-stroke); }
.evtl-pill.high     { background: var(--sev-high-fill);     color: var(--sev-high-text);     border-color: var(--sev-high-stroke); }
.evtl-pill.medium   { background: var(--sev-medium-fill);   color: var(--sev-medium-text);   border-color: var(--sev-medium-stroke); }
.evtl-pill.low      { background: var(--sev-low-fill);      color: var(--sev-low-text);      border-color: var(--sev-low-stroke); }

.evtl-trigger {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0;
}

.evtl-card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink-strong);
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.evtl-card-body {
  font-size: var(--text-base);
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 0;
}

.evtl-card-meta {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid rgba(37, 99, 235, 0.10);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  gap: var(--space-2);
  flex-wrap: wrap;
}
.evtl-card-meta .by { font-weight: 500; color: var(--ink-muted); }
.evtl-card-meta .hash { font-family: var(--font-mono); font-size: 11px; }

/* Entrance choreography — OPT-IN via `.is-armed`, which JS adds only
   when IntersectionObserver exists and the user allows motion. Without
   it (no JS, reduced motion, print, scrapers) every row is fully
   visible: content is never gated behind an animation.
   IMPORTANT: don't use `display: contents` on rows — IntersectionObserver
   can't observe an element with no bounding box. */
.evtl-list.is-armed .evtl-row:not(.is-in) {
  opacity: 0;
}

/* Layered reveal: date settles first, the evidence card lands, the AI
   analysis follows a beat later, then the chain marker pops on the
   spine. `backwards` fill (not `both`) so finished animations release
   the transform and the existing hover lift keeps working. */
.evtl-list.is-armed .evtl-row.is-in .evtl-date {
  animation: evtl-fade-in 420ms var(--ease-out) backwards;
  animation-delay: var(--evtl-delay, 0ms);
}
.evtl-list.is-armed .evtl-row.is-in .evtl-summary {
  animation: evtl-card-in 540ms var(--ease-out) backwards;
  animation-delay: var(--evtl-delay, 0ms);
}
.evtl-list.is-armed .evtl-row.is-in .evtl-explain {
  animation: evtl-card-in 540ms var(--ease-out) backwards;
  animation-delay: calc(var(--evtl-delay, 0ms) + 110ms);
}
.evtl-list.is-armed .evtl-row.is-in .evtl-summary::before {
  animation: evtl-marker-pop 480ms var(--ease-spring) backwards;
  animation-delay: calc(var(--evtl-delay, 0ms) + 220ms);
}

@keyframes evtl-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes evtl-card-in {
  from { opacity: 0; transform: translateY(22px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes evtl-marker-pop {
  from { opacity: 0; transform: scale(0.2); }
  to   { opacity: 1; transform: scale(1); }
}

/* Scroll-drawn thread — a bright brand line draws down the faint spine
   as the reader moves through the chain (JS feeds --evtl-progress).
   The evidence chain assembles as you read it. */
.evtl-list.is-armed::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 64px;
  width: 2px;
  border-radius: 1px;
  background: linear-gradient(
    180deg,
    rgba(37, 99, 235, 0.30) 0%,
    rgba(37, 99, 235, 0.75) 100%
  );
  transform-origin: top;
  transform: scaleY(var(--evtl-progress, 0));
  pointer-events: none;
  will-change: transform;
}

.evtl-foot {
  text-align: center;
  margin-top: var(--space-7);
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

/* Print: reveal every row regardless of how far the reader scrolled. */
@media print {
  .evtl-list.is-armed .evtl-row { opacity: 1 !important; }
  .evtl-list.is-armed .evtl-row .evtl-date,
  .evtl-list.is-armed .evtl-row .evtl-summary,
  .evtl-list.is-armed .evtl-row .evtl-explain,
  .evtl-list.is-armed .evtl-row .evtl-summary::before { animation: none !important; }
}

/* Belt and braces: JS never arms the list under reduced motion, but if
   the preference flips mid-session, kill every entrance immediately. */
@media (prefers-reduced-motion: reduce) {
  .evtl-list.is-armed .evtl-row { opacity: 1 !important; }
  .evtl-list.is-armed .evtl-row .evtl-date,
  .evtl-list.is-armed .evtl-row .evtl-summary,
  .evtl-list.is-armed .evtl-row .evtl-explain,
  .evtl-list.is-armed .evtl-row .evtl-summary::before { animation: none !important; }
  .evtl-list.is-armed::after { transform: scaleY(1); }
}

@media (max-width: 720px) {
  .evtl-row {
    grid-template-columns: 36px 1fr;
    gap: var(--space-5);
  }
  .evtl-row > .evtl-explain { grid-column: 2; }
  .evtl-list::before,
  .evtl-list.is-armed::after { left: 51px; }
  .evtl-summary::before { left: -14px; top: 22px; }
  .evtl-date .day { font-size: var(--text-lg); }
  .evtl-trigger { font-size: 10px; }
}

/* ============================================================
   EVIDENCE MAP — Timeline-Evidence visualisation
   ============================================================ */
.evmap-section {
  padding: var(--space-9) var(--space-6);
  position: relative;
}

.evmap-section-inner {
  max-width: var(--max-marketing);
  margin: 0 auto;
}

.evmap-frame {
  background: var(--glass-vibrant-bg);
  -webkit-backdrop-filter: var(--glass-vibrant-blur);
          backdrop-filter: var(--glass-vibrant-blur);
  border: var(--glass-vibrant-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-vibrant-highlight), var(--glass-vibrant-shadow);
  padding: var(--space-6);
  margin-top: var(--space-7);
  overflow: hidden;
  position: relative;
}

.evmap-frame-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.evmap-frame-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--ink-strong);
  letter-spacing: -0.01em;
  margin: 0;
}

.evmap-frame-sub {
  font-size: var(--text-sm);
  color: var(--ink-muted);
  margin: 0;
}

.evmap-legend {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

.evmap-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.evmap-legend i {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
.evmap-legend i.triggers    { background: rgba(199, 122, 28, 0.85); height: 3px; }
.evmap-legend i.references  { background: rgba(37, 99, 235, 0.7);  border-top: 1px dashed rgba(37,99,235,0.7); background: transparent; }
.evmap-legend i.contradicts { background: rgba(194, 74, 59, 0.85); height: 3px; }

.evmap {
  width: 100%;
  position: relative;
}

.evmap-svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: var(--font-body);
}

.evmap-band {
  transition: opacity 200ms var(--ease-out);
}
.evmap-band-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--ink-muted);
}
.evmap-band-label-critical { fill: var(--sev-critical-text); }
.evmap-band-label-high     { fill: var(--sev-high-text); }
.evmap-band-label-medium   { fill: var(--sev-medium-text); }
.evmap-band-label-low      { fill: var(--sev-low-text); }

.evmap-axis { pointer-events: none; transition: opacity 200ms var(--ease-out); }
.evmap-axis-line { stroke: rgba(11, 36, 71, 0.10); stroke-width: 1; stroke-dasharray: 2 4; }
.evmap-axis-label { font-size: 11px; font-weight: 500; fill: var(--ink-soft); }

.evmap-edge {
  transition: opacity 180ms var(--ease-out);
}
.evmap-edge.is-pulse {
  animation: evmap-pulse 1.6s ease-in-out infinite;
}
@keyframes evmap-pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

.evmap-node {
  cursor: pointer;
  transition: opacity 160ms var(--ease-out);
}
/* Hover scale via inner circle to avoid clobbering SVG transform attr */
.evmap-node:hover circle:nth-child(1) {
  r: 14;
  transition: r 160ms var(--ease-out);
}
.evmap-node:hover circle:nth-child(2) {
  r: 5.5;
  transition: r 160ms var(--ease-out);
}
.evmap-node:focus { outline: none; }
.evmap-node:focus-visible circle:first-child {
  filter: drop-shadow(0 0 0 3px rgba(37, 99, 235, 0.45));
}
.evmap-node-label {
  font-size: 10px;
  font-weight: 600;
  fill: var(--ink-strong);
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms var(--ease-out);
}
.evmap-node:hover .evmap-node-label { opacity: 1; }

.evmap-caption-text {
  font-size: 14px;
  font-weight: 700;
  fill: var(--sev-low-text);
  letter-spacing: -0.01em;
}

.evmap-tip {
  position: absolute;
  background: var(--glass-vibrant-bg);
  -webkit-backdrop-filter: var(--glass-vibrant-blur);
          backdrop-filter: var(--glass-vibrant-blur);
  border: var(--glass-vibrant-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-vibrant-highlight), 0 8px 24px rgba(40, 70, 130, 0.18);
  padding: 10px 12px;
  min-width: 220px;
  max-width: 280px;
  font-size: var(--text-sm);
  color: var(--ink);
  z-index: var(--z-dropdown);
  pointer-events: none;
  transform: translate(-50%, -100%);
}
.evmap-tip-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 4px;
  border: 1px solid;
}
.evmap-tip-critical { background: var(--sev-critical-fill); color: var(--sev-critical-text); border-color: var(--sev-critical-stroke); }
.evmap-tip-high     { background: var(--sev-high-fill);     color: var(--sev-high-text);     border-color: var(--sev-high-stroke); }
.evmap-tip-medium   { background: var(--sev-medium-fill);   color: var(--sev-medium-text);   border-color: var(--sev-medium-stroke); }
.evmap-tip-low      { background: var(--sev-low-fill);      color: var(--sev-low-text);      border-color: var(--sev-low-stroke); }
.evmap-tip-subject {
  font-weight: 600;
  color: var(--ink-strong);
  margin-bottom: 2px;
  line-height: 1.35;
}
.evmap-tip-meta { font-size: 12px; color: var(--ink-soft); }

.evmap-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--brand-accent);
  background: var(--brand-soft);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.18);
}

.evmap-foot {
  margin-top: var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

@media (max-width: 720px) {
  .evmap-svg { font-size: 9px; }
  .evmap-frame { padding: var(--space-4); }
}

/* ============================================================
   TOOLS SECTION — 8 in-app capabilities with hover-explainers
   ============================================================ */
.tools-section {
  padding: var(--space-9) var(--space-6);
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(37, 99, 235, 0.06), transparent 70%),
    #FFFFFF;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.tools-section-inner {
  max-width: var(--max-marketing);
  margin: 0 auto;
}
.tools-title {
  margin: 0 auto var(--space-3);
  max-width: 22ch;
}
.tools-lede {
  margin: 0 auto var(--space-8);
  max-width: 56ch;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
@media (max-width: 980px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tools-grid { grid-template-columns: 1fr; } }

.tool-card {
  --tx: 50%;
  --ty: 50%;
  position: relative;
  text-align: left;
  background: #FFFFFF;
  border: 1px solid rgba(37, 99, 235, 0.10);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 4px 14px rgba(37, 99, 235, 0.08),
    0 1px 3px rgba(11, 36, 71, 0.03);
  transition:
    transform 260ms var(--ease-out),
    box-shadow 260ms var(--ease-out),
    border-color 200ms var(--ease-out);
}

/* The premium glow — radial gradient that follows the cursor on hover,
   layered behind the content with z-index trickery. */
.tool-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    180px 180px at var(--tx) var(--ty),
    rgba(37, 99, 235, 0.22) 0%,
    rgba(37, 99, 235, 0.08) 30%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 280ms var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.tool-card > * { position: relative; z-index: 1; }

.tool-card:hover,
.tool-card:focus-visible {
  outline: none;
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.30);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 0 0 1px rgba(37, 99, 235, 0.20),
    0 16px 36px rgba(37, 99, 235, 0.20),
    0 0 50px rgba(37, 99, 235, 0.18);
}
.tool-card:hover::before,
.tool-card:focus-visible::before { opacity: 1; }

.tool-card:active { transform: translateY(-2px) scale(0.99); }

.tool-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #FFFFFF;
  margin-bottom: var(--space-3);
  color: var(--brand);
  box-shadow:
    inset 0 0 0 1px rgba(37, 99, 235, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 4px 12px rgba(37, 99, 235, 0.10);
  transition: transform 240ms var(--ease-out),
              color 240ms var(--ease-out),
              box-shadow 240ms var(--ease-out);
}
.tool-card:hover .tool-card-icon,
.tool-card:focus-visible .tool-card-icon {
  color: var(--brand-accent);
  transform: scale(1.06) rotate(-2deg);
  box-shadow:
    inset 0 0 0 1px rgba(37, 99, 235, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 8px 22px rgba(37, 99, 235, 0.30),
    0 0 24px rgba(37, 99, 235, 0.25);
}
.tool-card-icon svg { width: 22px; height: 22px; }

.tool-card h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--ink-strong);
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}
.tool-card p {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.5;
}

.tools-foot {
  margin: var(--space-7) 0 0;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.tools-foot a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid rgba(37, 99, 235, 0.40);
}
.tools-foot a:hover { color: var(--brand-hover); border-bottom-color: var(--brand-hover); }

/* ============================================================
   FEATURES PAGE DEMO INTERACTIVITY
   Demo-page asides have these extra interactive classes —
   tooltip-able trigger pills, clickable clause cards, EOT toolbar
   ============================================================ */
.demo-trigger {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-mono);
  border: 1px solid;
  cursor: help;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.demo-trigger:hover, .demo-trigger:focus-visible {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
}
.demo-trigger-critical { background: var(--sev-critical-fill); color: var(--sev-critical-text); border-color: var(--sev-critical-stroke); }
.demo-trigger-high     { background: var(--sev-high-fill);     color: var(--sev-high-text);     border-color: var(--sev-high-stroke); }
.demo-trigger-medium   { background: var(--sev-medium-fill);   color: var(--sev-medium-text);   border-color: var(--sev-medium-stroke); }
.demo-trigger-low      { background: var(--sev-low-fill);      color: var(--sev-low-text);      border-color: var(--sev-low-stroke); }

/* Master-dashboard rows — click to expand */
.demo-row-expandable {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-family: inherit;
  color: inherit;
  transition: background 140ms var(--ease-out);
}
.demo-row-expandable:hover, .demo-row-expandable:focus-visible {
  background: rgba(37, 99, 235, 0.05);
  outline: none;
}
.demo-row-expandable .mkt-hero-demo-chev {
  width: 14px; height: 14px;
  color: var(--ink-soft);
  transition: transform 200ms var(--ease-out);
}
.demo-row-expandable.is-open .mkt-hero-demo-chev {
  transform: rotate(180deg);
  color: var(--brand);
}
.demo-row-expandable.is-open {
  background: rgba(37, 99, 235, 0.07);
}
.demo-row-expansion {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.5;
  padding: 10px 14px;
  margin: -4px 0 4px;
  background: rgba(37, 99, 235, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 8px;
}

/* Contract-finding clause cards — click to expand */
.clause-card {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label chev"
    "body  body";
  align-items: start;
  column-gap: 8px;
  row-gap: 4px;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-3);
  text-align: left;
  width: 100%;
  border: 1px solid transparent;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
.clause-card .clause-label { grid-area: label; }
.clause-card .clause-body  { grid-area: body; }
.clause-card .clause-chev  { grid-area: chev; }
.clause-card.clause-critical { background: var(--sev-critical-fill); border-color: var(--sev-critical-stroke); }
.clause-card.clause-high     { background: var(--sev-high-fill);     border-color: var(--sev-high-stroke); }
.clause-card.clause-medium   { background: var(--sev-medium-fill);   border-color: var(--sev-medium-stroke); }
.clause-card:hover, .clause-card:focus-visible {
  transform: translateY(-1px);
  outline: none;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.14);
}
.clause-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin: 0; white-space: nowrap; }
.clause-card.clause-critical .clause-label { color: var(--sev-critical-text); }
.clause-card.clause-high     .clause-label { color: var(--sev-high-text); }
.clause-card.clause-medium   .clause-label { color: var(--sev-medium-text); }
.clause-body { font-size: 13px; color: var(--ink); line-height: 1.5; }
.clause-chev {
  font-size: 22px;
  color: var(--ink-soft);
  line-height: 1;
  align-self: center;
  transition: transform 180ms var(--ease-out);
}
.clause-card.is-open .clause-chev { transform: rotate(90deg); color: var(--brand); }

/* EOT toolbar + send-success toast */
.eot-toolbar {
  margin-top: var(--space-3);
  display: flex;
  gap: var(--space-2);
  align-items: center;
}
.eot-toolbar .btn[disabled] { opacity: 1; }
.eot-toast {
  margin-top: var(--space-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--sev-low-fill);
  color: var(--sev-low-text);
  border: 1px solid var(--sev-low-stroke);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  animation: eotToastIn 320ms var(--ease-out);
}
@keyframes eotToastIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* EOT notice body, click-replay typer */
.eot-notice-body {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  padding: var(--space-3);
  background: var(--surface-inset);
  border-radius: var(--radius-md);
  line-height: 1.6;
  white-space: pre-wrap;
}
.eot-notice-body.is-typing::after {
  content: "▍";
  color: var(--brand);
  animation: typedBlink 800ms steps(2) infinite;
}

/* Dispute grade pill (Demo 5) — tooltipped */
.dispute-grade-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--sev-low-fill);
  color: var(--sev-low-text);
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--sev-low-stroke);
  cursor: help;
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.dispute-grade-pill:hover, .dispute-grade-pill:focus-visible {
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 8px 20px rgba(31, 138, 122, 0.30);
}

/* Skip link for keyboard users — Priority 1: skip-links */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 var(--radius-md) 0;
  font-size: 13px;
  font-weight: 600;
  z-index: var(--z-toast);
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* ─────────────────────────────────────────────────────────────
   Brand-blue 2px outline on EVERY light-blue card across the site.
   Placed at end of file so it wins specificity over individual
   card-class rules that set faint rgba borders. Comma-separated
   list of every pale-blue surface observed on the marketing site.
   ───────────────────────────────────────────────────────────── */
.mkt-hero-demo,
.evtl-summary,
.evtl-explain,
.mkt-feature,
.plan-card,
.play-tool,
.play-back,
.attach-tile,
.explain-action,
.email-preview,
.help-card,
.feature-card,
.wizard-tier,
.notif-item,
.cta-card,
.mkt-card,
.demo-card,
.mkt-pricing-card,
.signal-card,
.mkt-cta-box,
.mkt-quote,
[class*="explain-card"] {
  border: 2px solid var(--brand) !important;
}

/* ─────────────────────────────────────────────────────────────
   Hamburger button + mobile drawer menu
   ───────────────────────────────────────────────────────────── */
.mkt-hamburger {
  display: none;
  background: transparent;
  border: 2px solid var(--brand);
  border-radius: 8px;
  width: 40px;
  height: 36px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}
.mkt-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}
.mkt-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.mkt-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mkt-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mkt-mobile-menu {
  display: none;
  flex-direction: column;
  padding: var(--space-4) var(--space-5);
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(40, 70, 130, 0.10);
  gap: 2px;
}
.mkt-mobile-menu[hidden] { display: none !important; }
.mkt-mobile-menu a {
  display: block;
  padding: 14px 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.mkt-mobile-menu a:last-child { border-bottom: 0; }
.mkt-mobile-menu a.is-active { color: var(--brand); font-weight: 600; }
.mkt-mobile-menu-signin {
  margin-top: var(--space-3);
  text-align: center;
  background: var(--brand-soft);
  border: 2px solid var(--brand) !important;
  border-radius: var(--radius-lg);
  color: var(--brand) !important;
}

@media (max-width: 720px) {
  .mkt-hamburger { display: flex; }
  .mkt-mobile-menu { display: flex; }
  body.mkt-menu-open { overflow: hidden; }
}

/* ─────────────────────────────────────────────────────────────
   Mobile footer — single column, brand block compact, clean nav stack
   ───────────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .mkt-footer { padding: var(--space-6) var(--space-4) var(--space-5); margin-top: var(--space-6); }
  .mkt-footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5) var(--space-5);
  }
  .mkt-footer-inner > div:first-child {
    grid-column: 1 / -1;
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border);
  }
  .mkt-footer .mkt-brand img { height: 48px; }
  .mkt-footer .mkt-brand-name { display: none; } /* logo image already contains the name */
  .mkt-footer-blurb { font-size: 13px; margin: var(--space-2) 0; }
  .mkt-footer h4 { margin-bottom: var(--space-2); }
  .mkt-footer ul { margin: 0; }
  .mkt-footer ul li { margin-bottom: 6px; }
  .mkt-footer-legal { padding-top: var(--space-4); margin-top: var(--space-4); }
}

/* ── Waitlist dialog (marketing site) ──────────────────────────────────────
   Opened by any [data-waitlist-open] CTA; wired in public/site/site.js. */
.mkt-waitlist-dialog {
  border: none;
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 420px;
  width: calc(100% - 32px);
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 60px rgba(6, 24, 56, 0.28);
}
.mkt-waitlist-dialog::backdrop { background: rgba(6, 24, 56, 0.42); }
.mkt-waitlist-form { position: relative; padding: 28px 26px 24px; font-family: inherit; }
.mkt-waitlist-close {
  position: absolute; top: 12px; right: 14px;
  border: none; background: none; cursor: pointer;
  font-size: 24px; line-height: 1; color: var(--ink-soft);
}
.mkt-waitlist-close:hover { color: var(--ink); }
.mkt-waitlist-title { margin: 0 0 6px; font-size: 20px; color: var(--ink-strong); }
.mkt-waitlist-sub { margin: 0 0 18px; font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.mkt-waitlist-row { margin-bottom: 14px; }
.mkt-waitlist-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-muted); margin-bottom: 5px; }
.mkt-waitlist-opt { font-weight: 400; color: var(--ink-soft); }
.mkt-waitlist-input {
  width: 100%; box-sizing: border-box;
  padding: 10px 12px; font-size: 14px; font-family: inherit; color: var(--ink);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 120ms ease, background 120ms ease;
}
.mkt-waitlist-input::placeholder { color: var(--ink-soft); }
.mkt-waitlist-input:focus { outline: none; background: #fff; border-color: var(--border-strong); }
.mkt-waitlist-submit { width: 100%; margin-top: 6px; }
.mkt-waitlist-submit:disabled { opacity: 0.7; cursor: default; }
.mkt-waitlist-msg { margin: 12px 0 0; font-size: 13px; line-height: 1.45; min-height: 1em; }
.mkt-waitlist-msg.is-success { color: var(--success, #3B7A57); }
.mkt-waitlist-msg.is-error { color: var(--alarm, #B25445); }
