/* GENERATED from frontend/src/index.css (head) + src/pages/HomePage.css by frontend/scripts/apexPages.tsx — do not edit. */
/* Design tokens (the app-first redesign, docs/plans/app-first-redesign-contract.md §4.1).
   Greys are neutral; the company look (lib/companyTheme.ts, from TenantContext)
   overrides the themeable ones inline on <html>. The OLD token names below are
   kept and mapped onto the new palette, so ~40k lines of CSS keep working. */
:root,
[data-theme="light"] {
  --font-sans: "Urbanist Variable", "Urbanist", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;

  /* --- the new palette --- */
  --color-ink: #1e2227;
  --color-ink-muted: #575d67;
  --color-page: #ebecef;
  /* The card surface. Opaque, so a menu or popover over content never shows
     what is under it; the sidebar and top bar use --surface-glass. */
  --color-surface-solid: #ffffff;
  --color-surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.8);
  --color-fill: #e3e5e9;
  --color-line: rgba(30, 34, 39, 0.09);
  --color-line-strong: rgba(30, 34, 39, 0.14);
  /* Links, meters, the focus ring, Running: ≥4.5:1 on every surface. */
  --color-brand: #296569;
  --color-brand-tint: #e0eded;
  /* "Needs you" and nothing else. */
  --color-accent: #ee9e33;
  --color-accent-light: #f8c25c;
  --color-accent-tint: #fcefd6;
  --color-accent-text: #7a4406;
  --color-on-accent: #1e2227;
  --wash-accent: linear-gradient(160deg, #fdf3df, #fbe3bc);
  --fill-accent: linear-gradient(180deg, var(--color-accent-light), var(--color-accent));
  --color-sky: #2c6ca8;
  --color-sky-tint: #e4eff9;
  --wash-sky: linear-gradient(160deg, #f1f7fc, #dceaf7);
  /* Main buttons: ink by default; a company may pick another colour. */
  --color-action: #1e2227;
  --color-action-hover: #3a414b;
  --color-on-action: #ffffff;
  /* The selected row, and today's bar in a chart. */
  --color-sel-bg: #1e2227;
  --color-sel-fg: #ffffff;
  /* Done and Failed: never themeable. */
  --status-done: #ddf1e3;
  --status-done-fg: #2b6b41;
  --status-failed: #fbe4e0;
  --status-failed-fg: #a63a2b;
  /* App tiles. */
  --app-sky: #dcebfa;
  --app-sky-fg: #2c6ca8;
  --app-sage: #dcede4;
  --app-sage-fg: #2f6b4c;
  --app-rose: #f8dee7;
  --app-rose-fg: #b03a5e;
  --app-slate: #e1e5ea;
  --app-slate-fg: #575d67;
  --chart-soft: #c9daec;
  --bar-muted: #c5cbd3;
  --glow-1: rgba(251, 227, 188, 0.55);
  --glow-2: rgba(220, 234, 247, 0.7);
  /* Shape. A company picks round, soft or crisp. */
  --radius-card: 22px;
  --radius-band: 24px;
  --radius-row: 14px;
  --radius-pill: 999px;
  --radius-input: 12px;
  /* Type and space. */
  /* One stacking scale: content < band < the overlap row < chrome < popovers < dialogs < toasts. */
  --z-content: 0;
  --z-band: 1;
  --z-overlap: 2;
  --z-chrome: 60;
  --z-popover: 1050;
  --z-dialog: 1100;
  --z-toast: 1200;
  --text-ui: 15px;
  --text-card-title: 19px;
  --text-page-title: 36px;
  --page-inset: clamp(16px, 2.5vw, 40px);
  --content-max: 2400px;
  --overlap: 80px;
  /* The one gap between a page's cards, vertically and horizontally. */
  --card-gap: 24px;
  --tap-min: 44px;

  /* --- today's names, mapped --- */
  --color-bg-base: var(--color-page);
  --color-bg: var(--color-page);
  --color-surface-base: var(--color-surface-solid);
  --color-surface-alt: #f3f4f6;
  --color-text: var(--color-ink);
  --color-text-secondary: var(--color-ink-muted);
  --color-text-muted: var(--color-ink-muted);
  --color-border: #dcdfe4;
  --color-border-soft: #e7e9ed;
  /* A text field, select or picker trigger (.form-input, .si-input, the
     lookup / date triggers): its fill and its edge — the edge ≥3:1 on the
     surfaces and the fill (WCAG 1.4.11). */
  --color-input-bg: #ffffff;
  --color-input-border: #7f8791;
  --color-hover: #eef0f3;
  --color-bg-hover: var(--color-hover);
  --color-avatar-bg: var(--color-sky-tint);
  --color-avatar-text: var(--color-sky);
  --color-nav-active: var(--color-sky-tint);
  --color-edge: #6b7280;
  --color-edge-strong: #374151;
  --color-primary: var(--color-brand);
  --color-primary-text: var(--color-brand);
  --color-primary-strong: var(--color-action);
  --color-primary-strong-hover: var(--color-action-hover);
  --color-on-primary: var(--color-on-action);
  --color-accent-strong: var(--color-accent);
  --color-accent-strong-hover: var(--color-accent-light);
  --color-widget-accent: var(--color-brand);
  --color-widget-accent-2: var(--color-accent);
  /* Status: one language everywhere (StatusChip, banners, timeline). */
  --color-success: #15803d;
  --color-success-bg: #ecfdf3;
  /* Text on a solid success / warning fill (done dots, attention chips). */
  --color-on-success: #ffffff;
  --color-on-warning: #000000;
  --color-danger: #b91c1c;
  --color-danger-bg: #fef2f2;
  /* The same tint, opaque: for anything that floats over content (a pill,
     a corner badge). Opaque already in light. */
  --color-danger-bg-opaque: var(--color-danger-bg);
  /* Solid fill behind white text (the token above is for text on surfaces). */
  --color-danger-solid: #dc2626;
  --color-error: #b91c1c;
  --color-info: #0369a1;
  --color-config: #b45309;
  /* Per-workflow icon hues (page icon tiles, run rows, designer nodes). */
  --hue-1: #4f46e5;
  /* Text in a hue reads on its own 12–16% tint: initials avatars, type badges,
     tiles (lib/onColorTokens.test.ts; was: hue-2 #0f766e, 4.37:1). */
  --hue-2: #0e6e66;
  --hue-3: #be185d;
  --hue-4: #92400e;
  --hue-5: #0369a1;
  /* The band behind each page title; the company look sets these inline
     (companyTheme: bandColors keeps white text ≥4.5:1 on band-1). */
  --color-band-1: #24486e;
  --color-band-2: #16314d;
  --color-band-glow: #93b4ff;
  --color-band-art: rgba(255, 255, 255, 0.08);
  /* Text on the band (bandColors keeps it ≥4.5:1 on band-1 / 2). */
  --color-on-band: #ffffff;
  /* Warning token family — chips, banners, validation messages.
     Defined explicitly so dark mode can re-theme them; without this,
     consumers fall through to hardcoded light-mode literals and the
     warning surfaces render as cream patches on dark canvases. */
  --color-warning: #f59e0b;
  --color-warning-bg: #fffbeb;
  --color-warning-bg-opaque: var(--color-warning-bg);
  --color-warning-text: #92400e;
  --color-warning-border: #fde68a;
  --radius: var(--radius-card);
  --radius-sm: var(--radius-input);
  --radius-lg: var(--radius-band);
  --shadow-xs: 0 1px 2px rgba(30, 34, 39, 0.06);
  --shadow: 0 1px 2px rgba(30, 34, 39, 0.04), 0 10px 28px rgba(30, 34, 39, 0.06);
  --shadow-lg: 0 16px 36px -14px rgba(30, 34, 39, 0.22), 0 2px 6px rgba(30, 34, 39, 0.06);
  /* Dims what lies under an overlaid panel: near-black in both themes. */
  --color-scrim: rgba(15, 17, 20, 0.45);
  --shadow-widget: 0 1px 2px rgba(30, 34, 39, 0.04), 0 10px 28px rgba(30, 34, 39, 0.06);
  --shadow-widget-hover: 0 16px 36px -14px rgba(30, 34, 39, 0.2), 0 2px 6px rgba(30, 34, 39, 0.05);
  --home-gradient: linear-gradient(135deg, #f1f7fc 0%, #fdf3df 100%);
  /* The top bar's height (a floating row of pills); panels that hang from it use it. */
  --header-height: 64px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --color-ink: #eceef1;
  --color-ink-muted: #a2a8b2;
  --color-page: #111316;
  --color-surface-solid: #1d2025;
  --color-surface: #1d2025;
  --surface-glass: rgba(29, 32, 37, 0.88);
  --color-fill: #2a2e35;
  --color-line: rgba(255, 255, 255, 0.07);
  --color-line-strong: rgba(255, 255, 255, 0.13);
  --color-brand: #6cbfc0;
  --color-brand-tint: #173638;
  --color-accent: #ee9e33;
  --color-accent-light: #f8c25c;
  --color-accent-tint: #3b2c12;
  --color-accent-text: #f4c46e;
  --color-on-accent: #1e2227;
  --wash-accent: linear-gradient(160deg, #33270f, #4a3412);
  --color-sky: #86b6e6;
  --color-sky-tint: #1a2b3c;
  --wash-sky: linear-gradient(160deg, #18232f, #1e3147);
  --color-action: #eceef1;
  --color-action-hover: #ffffff;
  --color-on-action: #15171a;
  --color-sel-bg: #e9ebee;
  --color-sel-fg: #15171a;
  --status-done: #173325;
  --status-done-fg: #8fd3a6;
  --status-failed: #3b1f1b;
  --status-failed-fg: #f2a08f;
  --app-sky: #1c2d40;
  --app-sky-fg: #86b6e6;
  --app-sage: #1a3127;
  --app-sage-fg: #8fcfae;
  --app-rose: #3a1f2b;
  --app-rose-fg: #ee9db6;
  --app-slate: #262b33;
  --app-slate-fg: #a2a8b2;
  --chart-soft: #2e4a66;
  --bar-muted: #3a4049;
  --glow-1: rgba(90, 64, 20, 0.28);
  --glow-2: rgba(28, 52, 82, 0.35);

  --color-surface-alt: #22262c;
  --color-border: #2f343b;
  --color-border-soft: #272b31;
  /* A field must show on the surface: --color-border is only ~1.3:1 on it.
     This edge is ≥3:1 on --color-surface, --color-surface-alt and the field's
     own fill (WCAG 1.4.11). */
  --color-input-bg: #23272d;
  --color-input-border: #727984;
  --color-hover: #262a31;
  --color-edge: #cbd5e1;
  --color-edge-strong: #f1f5f9;
  --color-on-success: #000000;
  --color-on-warning: #000000;
  --color-success: #4ade80;
  --color-success-bg: rgba(74, 222, 128, 0.12);
  --color-danger: #f87171;
  --color-danger-bg: rgba(248, 113, 113, 0.12);
  /* Opaque mixes of the translucent tints, for what floats over content. */
  --color-danger-bg-opaque: color-mix(in srgb, var(--color-danger) 12%, var(--color-surface));
  --color-danger-solid: #dc2626;
  --color-error: #f87171;
  --color-info: #7dd3fc;
  --color-config: #fbbf24;
  --hue-1: #a5b4fc;
  --hue-2: #5eead4;
  --hue-3: #f9a8d4;
  --hue-4: #fcd34d;
  --hue-5: #7dd3fc;
  --color-band-1: #1b3043;
  --color-band-2: #101c2a;
  --color-band-glow: #6d8fe0;
  --color-band-art: rgba(255, 255, 255, 0.08);
  --color-on-band: #ffffff;
  /* Warning tokens — dark variants: a translucent amber tint over the dark
     surface (instead of cream) and a brighter amber text colour. */
  --color-warning: #fbbf24;
  --color-warning-bg: rgba(251, 191, 36, 0.12);
  --color-warning-bg-opaque: color-mix(in srgb, var(--color-warning) 12%, var(--color-surface));
  --color-warning-text: #fcd34d;
  --color-warning-border: rgba(251, 191, 36, 0.35);
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 16px 36px -14px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
  --color-scrim: rgba(0, 0, 0, 0.6);
  --shadow-widget: 0 1px 2px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.28);
  --shadow-widget-hover: 0 16px 36px -14px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.4);
  --home-gradient: linear-gradient(135deg, #18232f 0%, #33270f 100%);
}

/* Phone: tighter insets, a smaller overlap and page title. */
@media (max-width: 640px) {
  :root,
  [data-theme="light"],
  [data-theme="dark"] {
    --page-inset: 10px;
    --overlap: 44px;
    --card-gap: 16px;
    --text-page-title: 26px;
  }
}

/* The company look's corners (companyTheme sets data-corners on <html>). */
:root[data-corners="soft"] {
  --radius-card: 16px;
  --radius-band: 18px;
  --radius-row: 10px;
  --radius-pill: 14px;
  --radius-input: 10px;
}
:root[data-corners="crisp"] {
  --radius-card: 6px;
  --radius-band: 8px;
  --radius-row: 4px;
  --radius-pill: 6px;
  --radius-input: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Scrollbar — theme-aware */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--color-text-muted);
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.resizing {
  user-select: none;
  cursor: col-resize;
}
/* While dragging a resizer, stop iframes (e.g. the docs viewer) from swallowing
   the pointer stream so the drag continues when the cursor passes over them. */
body.resizing iframe {
  pointer-events: none;
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  /* Default look = secondary tier, theme-aware. The original .btn had
     no background/color/border which inherited browser defaults and
     vanished in dark mode. Plain `<button class="btn">` (Cancel,
     Close, Remove, etc.) now picks up the surface/text/border tokens
     so it works in both themes. .btn-primary still overrides. */
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 650;
  /* An <a class="btn"> (e.g. the static vtaskly.com home) reads as a button too. */
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.btn:hover:not(:disabled) {
  background: var(--color-hover);
  border-color: var(--color-primary);
  color: var(--color-primary-text);
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--color-primary-strong);
  /* Text on the strong fill (black or white per tenant, TenantContext); the
     page title band, where the fill is white, sets it to the band colour. */
  color: var(--color-on-primary);
  border-color: var(--color-primary-strong);
}
/* The hover fill moves away from the text colour, so it never loses contrast
   (was: filter: brightness(1.1), which took white text on blue to ~4.4:1). */
.btn-primary:hover:not(:disabled) {
  background: var(--color-primary-strong-hover);
  color: var(--color-on-primary);
  border-color: var(--color-primary-strong-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--color-bg);
  border-color: var(--color-primary);
  color: var(--color-primary-text);
}

/* ============================================================================
   HomePage.css
   ----------------------------------------------------------------------------
   Two layouts share this stylesheet:
     1. `.landing`        — full marketing page (bare vtaskly.com apex).
     2. `.tenant-signin`  — compact sign-in card (tenant subdomains, preserves
                            the original auth-gate UX).

   All colors come from CSS custom properties defined in index.css so light /
   dark / tenant-branded modes all work without per-section overrides.
   ============================================================================ */

/* ---------- Shared root reset (kills the old centered flex layout) ---------- */
/* ----------------------------------------------------------------------------
   THEME-AWARE LANDING (follows the visitor's system light/dark preference)

   The marketing page REDEFINES the design tokens inside the .landing /
   .tenant-signin-page scope — every section below already consumes these
   custom properties, so the whole page re-themes from these blocks. The
   landing keeps its own brightened brand accents + atmospheric gradient
   glows (a step beyond the plain app tokens in index.css), but the base
   canvas now switches between a clean light surface and a luminous black
   one based on `data-theme` (set by ThemeProvider from the OS preference).

   Defaults below are the LIGHT palette so there's no dark flash before the
   ThemeProvider effect stamps `data-theme`; the dark block then overrides
   when `data-theme="dark"`. Nothing here escapes the landing: the
   authenticated app and tenant-branded modes still follow index.css tokens.
   ---------------------------------------------------------------------------- */
.landing,
.tenant-signin-page {
  color-scheme: light;

  /* Brand accents — the platform light-mode blue→violet. */
  --color-primary: #2563eb;
  --color-accent: #7c3aed;
  /* Words in the brand colour: these, not the tenant's (TenantContext's). */
  --color-primary-text: #2159d4;
  --color-accent-text: #7637e1;
  /* A primary fill that carries text, its hover and the text on it — never
     the tenant's (TenantContext sets them on the root for the tenant
     primary, which these pages don't use). */
  --color-primary-strong: #2563eb;
  --color-primary-strong-hover: #225bd8;
  --color-on-primary: #ffffff;
  /* The closing call-to-action band: deep enough for white text. */
  --cta-from: #1d4ed8;
  --cta-to: #6d28d9;

  /* Clean light canvas; white surfaces lift cards off the tinted base. */
  --color-bg-base: #f7f9fc;
  --color-bg: #f7f9fc;
  --color-surface-base: #ffffff;
  --color-surface: #ffffff;
  --color-surface-alt: #eef2f9;

  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  --color-hover: #f1f5f9;
  --color-edge: #64748b;
  --color-edge-strong: #334155;

  /* Warning family — light-mode tokens (mirrors index.css). */
  --color-warning: #f59e0b;
  --color-warning-bg: #fffbeb;
  --color-warning-text: #92400e;
  --color-warning-border: #fde68a;

  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.12), 0 8px 20px rgba(15, 23, 42, 0.08);
  --shadow-widget: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-widget-hover: 0 16px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.08);

  /* Soft brand wash — two faint accent glows bleeding from the top over a
     near-white base; the light-mode counterpart of the dark canvas glow. */
  --home-gradient:
    radial-gradient(78% 60% at 50% -8%,
      color-mix(in srgb, var(--color-accent) 10%, transparent) 0%, transparent 60%),
    radial-gradient(55% 45% at 88% 4%,
      color-mix(in srgb, var(--color-primary) 8%, transparent) 0%, transparent 55%),
    #f7f9fc;

  min-height: 100vh;
  width: 100%;
  background: var(--color-bg);
  color: var(--color-text);
}

/* ----------------------------------------------------------------------------
   DARK CANVAS (data-theme="dark") — luminous true-black aesthetic.

   `color-scheme: dark` makes native controls + scrollbars render dark so the
   page reads as a single intentional surface, not a black div with white UI.
   ---------------------------------------------------------------------------- */
[data-theme="dark"] .landing,
[data-theme="dark"] .tenant-signin-page {
  color-scheme: dark;

  /* Brand accents brightened so the blue→violet gradient GLOWS on black
     instead of muddying into it (the deep #2563eb reads almost invisible
     against a near-black canvas). */
  --color-primary: #6aa8ff;
  --color-accent: #b18cff;
  --color-primary-text: #6aa8ff;
  --color-accent-text: #b18cff;
  /* White on this light blue is 2.4:1; black reads at 8.5:1. The hover is
     lighter, away from the black text. */
  --color-primary-strong: #6aa8ff;
  --color-primary-strong-hover: #79b1ff;
  --color-on-primary: #000000;
  --cta-from: #1e3a8a;
  --cta-to: #4c1d95;

  /* True black canvas; charcoal surfaces lift cards off the void. */
  --color-bg-base: #000000;
  --color-bg: #000000;
  --color-surface-base: #0d0d11;
  --color-surface: #0d0d11;
  --color-surface-alt: #131319;

  --color-text: #f4f4f7;
  --color-text-muted: #9a9aa7;
  --color-border: #24242d;
  --color-hover: #1a1a21;
  --color-edge: #6b6b78;
  --color-edge-strong: #c3c3cf;

  /* Warning family — translucent amber over black (mirrors dark-mode tokens). */
  --color-warning: #fbbf24;
  --color-warning-bg: rgba(251, 191, 36, 0.12);
  --color-warning-text: #fcd34d;
  --color-warning-border: rgba(251, 191, 36, 0.35);

  /* Deeper, softer shadows — on pure black a shadow only reads when it's
     large and very dark, so cards float rather than smudge. */
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.75), 0 8px 20px rgba(0, 0, 0, 0.55);
  --shadow-widget: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-widget-hover: 0 16px 40px rgba(0, 0, 0, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);

  /* Black base with two faint accent glows bleeding from the top —
     atmosphere + depth, no "bluish". */
  --home-gradient:
    radial-gradient(78% 60% at 50% -8%,
      color-mix(in srgb, var(--color-accent) 16%, transparent) 0%, transparent 60%),
    radial-gradient(55% 45% at 88% 4%,
      color-mix(in srgb, var(--color-primary) 12%, transparent) 0%, transparent 55%),
    #000000;
}

/* ============================================================================
   COMPACT TENANT-SUBDOMAIN SIGN-IN CARD
   ============================================================================ */

.tenant-signin-page {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--home-gradient);
}

.tenant-signin-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px 32px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.tenant-signin-card .logo-mark {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.tenant-signin-card .tenant-logo {
  max-height: 56px;
  max-width: 180px;
  object-fit: contain;
}

.tenant-signin-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.tenant-signin-card .signin-sub {
  color: var(--color-text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.tenant-signin-card .signin-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.tenant-signin-card .signin-footer {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 16px;
}

.tenant-signin-card .signin-branding {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-decoration: none;
}
.tenant-signin-card .signin-branding:hover {
  color: var(--color-primary-text);
}
.tenant-signin-card .signin-legal {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
  font-size: 0.75rem;
}
.tenant-signin-card .signin-legal a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.tenant-signin-card .signin-legal a:hover {
  color: var(--color-primary-text);
}

/* ============================================================================
   LANDING — STICKY NAV
   ============================================================================ */

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: color-mix(in srgb, var(--color-bg) 80%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--color-border) 60%, transparent);
}

.landing-nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  /* Painted with the brand gradient (the .grad rule below). */
  text-decoration: none;
  letter-spacing: -0.02em;
  line-height: 1;
}

.landing-nav-brand .brand-mark {
  width: 44px;
  height: 44px;
  display: block;
  flex-shrink: 0;
  /* Soft drop shadow lifts the multi-gradient SVG mark off the
     blurred-bg sticky nav so it reads as a logo, not decoration. */
  filter: drop-shadow(0 4px 10px color-mix(in srgb, var(--color-primary) 22%, transparent));
  transition: transform 200ms ease;
}

.landing-nav-brand:hover .brand-mark {
  transform: scale(1.04) rotate(-2deg);
}

.landing-nav-links {
  display: flex;
  gap: 28px;
}
.landing-nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.15s ease;
}
.landing-nav-links a:hover {
  color: var(--color-text);
}

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

.landing-nav-cta .btn {
  padding: 8px 16px;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .landing-nav {
    padding: 12px 16px;
  }
  .landing-nav-links {
    display: none;
  }
  .landing-nav-cta .btn-secondary {
    display: none;
  }
}

/* Skip-link for keyboard a11y */
.landing-skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--color-primary-strong);
  color: var(--color-on-primary);
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 100;
}
.landing-skip-link:focus {
  left: 16px;
}

/* ============================================================================
   LANDING — HERO
   ============================================================================ */

.landing-hero {
  position: relative;
  padding: 80px 32px 60px;
  background: var(--home-gradient);
  overflow: hidden;
}

.landing-hero::before {
  /* Faint radial accent in the corner — adds depth without imagery */
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--color-accent) 18%, transparent) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* ------------------------------------------------------------------------
   Parallax blobs — two soft, blurred gradient discs that drift opposite
   each other as the page scrolls. Containment: .landing-hero is
   position:relative + overflow:hidden so the blobs cannot leak into the
   adjacent section. will-change:transform keeps them on the compositor.
   ------------------------------------------------------------------------ */
.landing-hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
  pointer-events: none;
}

.hero-blob-back {
  /* Large, primary-tinted disc behind the headline column. */
  top: -120px;
  left: -120px;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--color-primary) 38%, transparent) 0%,
    transparent 65%
  );
}

.hero-blob-front {
  /* Smaller accent-tinted disc lower-right, floats opposite scroll. */
  bottom: -160px;
  right: 8%;
  width: 360px;
  height: 360px;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--color-accent) 42%, transparent) 0%,
    transparent 65%
  );
}

/* Users who opt out of motion get a static hero — no parallax, no blob
   transforms. The useParallaxRef hook also bails on scroll listeners
   when the same media query matches, so the elements settle at the
   declared CSS position. (Product clips likewise stay on their poster —
   playVisibleVideos never starts them.) */
@media (prefers-reduced-motion: reduce) {
  .hero-blob {
    will-change: auto;
    transform: none !important;
  }
}

/* Copy beside the clip; the clip column is the wider one. The clips are
   cropped to the part of the screen that matters, so they stay readable at
   this size. */
.landing-hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
}

/* Grid children default to min-width: auto — let the copy column shrink. */
.landing-hero-copy,
.landing-hero-visual {
  min-width: 0;
}

.landing-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary-text);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}

.landing-hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.landing-hero-sub {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 540px;
  line-height: 1.55;
  margin-bottom: 28px;
}

.landing-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.landing-hero-actions .btn {
  padding: 14px 24px;
  font-size: 1rem;
}

.landing-hero-trust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.landing-hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.landing-hero-trust svg {
  width: 16px;
  height: 16px;
  color: var(--color-primary-text);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .landing-hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .landing-hero {
    padding: 56px 20px 48px;
  }
}

/* ============================================================================
   LANDING — SECTION SHELL + SHARED PIECES
   Every colour is a theme token, so light and dark both work; motion is
   progressive (scroll reveals use scroll-driven CSS, no script — the static
   vtaskly.com page has none) and stops for reduced-motion visitors.
   ============================================================================ */

.landing-section {
  padding: 104px 32px;
}
.landing-section.alt {
  position: relative;
  isolation: isolate;
  background: var(--color-surface-alt);
}
.landing-section-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.landing-section-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--color-primary-text);
  font-weight: 700;
  margin-bottom: 10px;
}
.landing-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.landing-section-lead {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 720px;
  line-height: 1.6;
}

/* SectionHead: eyebrow + heading + optional one-line lead. */
.section-head {
  max-width: 880px;
  margin-bottom: 44px;
}
.section-cta {
  margin-top: 36px;
}

@media (max-width: 768px) {
  .landing-section { padding: 64px 20px; }
}

/* Anchor targets clear the sticky nav. */
.landing [id] {
  scroll-margin-top: 84px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Brand gradient text: section key phrases (.grad), the hero's, and the
   wordmark in the nav and footer. */
.grad,
.landing-nav-brand,
.landing-footer .footer-brand {
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Faint dot grid: behind the hero clip, and through each alternate section. */
.landing-hero::after,
.landing-section.alt::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(
    color-mix(in srgb, var(--color-text) var(--dot-ink, 14%), transparent) 1px, transparent 1.4px);
  background-size: var(--dot-size, 24px) var(--dot-size, 24px);
  -webkit-mask-image: var(--dot-mask);
  mask-image: var(--dot-mask);
  opacity: var(--dot-opacity, 0.5);
}
.landing-hero::after {
  z-index: 0;
  --dot-ink: 16%;
  --dot-opacity: 0.6;
  --dot-mask: radial-gradient(60% 70% at 72% 45%, #000 20%, transparent 75%);
}
.landing-section.alt::before {
  z-index: -1;
  --dot-ink: 12%;
  --dot-size: 26px;
  --dot-opacity: 0.45;
  --dot-mask: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.landing-hero-inner {
  z-index: 1;
}

/* The card shell (industry panel, pricing, trust). */
.landing-card {
  padding: 22px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
}
.landing-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.landing-card p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
}
.card-row {
  display: grid;
  gap: 20px;
}
.card-row-3 { grid-template-columns: repeat(3, 1fr); }
.card-row-4 { grid-template-columns: repeat(4, 1fr); }
/* Cards in a row lift with a brand-coloured ring on hover. */
.card-row .landing-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-row .landing-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--color-primary) 55%, transparent),
    0 18px 40px color-mix(in srgb, var(--color-primary) 16%, transparent);
}
@media (max-width: 1024px) {
  .card-row-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .card-row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .card-row-4 { grid-template-columns: 1fr; }
}

/* A gradient-filled number / check disc (steps, loop, comparison). */
.num-badge {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: var(--badge, 32px);
  height: var(--badge, 32px);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-on-primary);
  font-weight: 800;
  font-size: 0.9rem;
}

/* Small-caps label (industry panel, tools row). */
.kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

/* Icon tile + text (dashboards; the tile is shared with the trust cards). */
.point-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}
.point {
  display: flex;
  gap: 14px;
}
.point-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--color-primary) 12%, transparent);
  color: var(--color-primary-text);
}
.point-icon svg {
  width: 20px;
  height: 20px;
}
.landing-card .point-icon {
  margin-bottom: 14px;
}
.point h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.point p {
  color: var(--color-text-muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* Copy beside a capture (how it works, use cases, dashboards); .reverse puts
   the capture first. */
.split {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 48px;
  align-items: center;
}
.split.reverse {
  grid-template-columns: 1.25fr 0.75fr;
}
.split.reverse > :first-child {
  order: 2;
}
@media (max-width: 960px) {
  .split,
  .split.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .split.reverse > :first-child { order: 0; }
}

/* Scroll reveals: blocks rise into place as they enter the viewport. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .landing .reveal {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }
  }
}
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(32px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* ============================================================================
   LANDING — PRODUCT SHOTS (real captures of the app, public/landing/)
   A window frame around a still or a muted clip. Clips render
   preload="none"; playVisibleVideos sets the poster as one nears the
   viewport and plays it while on screen.
   ============================================================================ */

.product-shot {
  margin: 0;
  min-width: 0;
}

.product-shot-frame {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.product-shot-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border);
}
.product-shot-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-text-muted) 35%, transparent);
}

/* The link around a still (opens it full size), or the wrapper holding the
   <video> (see videoMarkup). */
.product-shot-media {
  display: block;
}
/* A clip pauses / plays on click or Enter / Space (playVisibleVideos). */
.product-shot-media video {
  cursor: pointer;
}
.product-shot-media video:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}
.product-shot-media img,
.product-shot-media video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  /* Never crop a capture: contain keeps the whole frame even if a file's
     shape drifts from 16:10. */
  object-fit: contain;
  background: var(--color-surface-alt);
}

/* One capture per theme (ShotMedia): light by default — also what a static
   visitor without JavaScript gets — dark when the page is dark. */
.product-shot-media.theme-dark {
  display: none;
}
[data-theme="dark"] .landing .product-shot-media.theme-light {
  display: none;
}
[data-theme="dark"] .landing .product-shot-media.theme-dark {
  display: block;
}

/* Hero: the clip's frame sits flat, with a still gradient edge and a soft
   glow behind it (no turning edge, tilt or floating cards: they looked
   gimmicky). The glow is a wide radial gradient, not a blur filter. */
.hero-stage {
  position: relative;
  isolation: isolate;
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: -12% -10%;
  z-index: -1;
  background:
    radial-gradient(50% 50% at 35% 45%,
      color-mix(in srgb, var(--color-primary) 30%, transparent), transparent 70%),
    radial-gradient(45% 45% at 70% 60%,
      color-mix(in srgb, var(--color-accent) 26%, transparent), transparent 70%);
}
.hero-stage .product-shot-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--color-primary) 70%, transparent),
    transparent 40%, transparent 60%,
    color-mix(in srgb, var(--color-accent) 70%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* ============================================================================
   LANDING — WHY VTASKLY (one comparison table; the vtaskly column lifted out)
   ============================================================================ */

.compare-wrap {
  overflow-x: auto;
}
.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.94rem;
}
.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.45;
}
.compare-table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  font-weight: 700;
}
.compare-table tbody th {
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}
.compare-table td {
  color: var(--color-text-muted);
}
.compare-table .compare-us {
  background: color-mix(in srgb, var(--color-primary) 9%, var(--color-surface));
  color: var(--color-text);
  font-weight: 600;
  border-left: 1px solid color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
  border-right: 1px solid color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
}
.compare-table thead .compare-us {
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
  color: var(--color-on-primary);
  border-color: transparent;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  border-radius: 12px 12px 0 0;
}
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table tbody tr:last-child .compare-us {
  border-bottom: 1px solid color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
  border-radius: 0 0 12px 12px;
}
.compare-check {
  --badge: 20px;
  margin-right: 8px;
  vertical-align: -4px;
}
.compare-check svg {
  width: 12px;
  height: 12px;
}

/* ============================================================================
   LANDING — INDUSTRIES (tabs without JavaScript)
   Per industry: a visually hidden radio, its <label> tab and its panel, as
   siblings in one wrapping flex row. Tabs come first (order 0); the panel
   after the checked radio shows full width below them (order 1).
   ============================================================================ */

.industry-switch {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.industry-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.industry-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.industry-tab:hover {
  color: var(--color-text);
  border-color: color-mix(in srgb, var(--color-primary) 40%, var(--color-border));
}
.industry-radio:checked + .industry-tab {
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
  border-color: transparent;
  color: var(--color-on-primary);
}
.industry-radio:focus-visible + .industry-tab {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}
.industry-tab-icon {
  display: inline-grid;
  place-items: center;
}
.industry-tab-icon svg {
  width: 18px;
  height: 18px;
}

.industry-panel {
  order: 1;
  flex-basis: 100%;
  display: none;
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  grid-template-columns: 1fr 1.25fr;
  grid-template-areas:
    "head contrast"
    "start contrast";
  gap: 18px 40px;
  padding: 32px;
  border-radius: 18px;
  box-shadow: var(--shadow-widget);
}
.industry-radio:checked + .industry-tab + .industry-panel {
  display: grid;
}
/* A brand hairline along the top (a pseudo element: border-image would
   square off the rounded corners). */
.industry-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.industry-panel-head {
  grid-area: head;
}
/* Outranks the card's muted paragraph colour. */
.landing-card .industry-who {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary-text);
  margin-bottom: 8px;
}
.industry-panel-head h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.industry-contrast {
  grid-area: contrast;
  display: grid;
  gap: 14px;
  align-content: center;
}
.contrast-before,
.contrast-after {
  padding: 18px 20px;
  border-radius: 14px;
}
.contrast-before {
  background: var(--color-surface-alt);
  border: 1px dashed var(--color-border);
}
.contrast-after {
  background: color-mix(in srgb, var(--color-primary) 9%, var(--color-surface));
  border: 1px solid color-mix(in srgb, var(--color-primary) 35%, var(--color-border));
}
.contrast-after .kicker {
  color: var(--color-primary-text);
}
.landing-card .contrast-before p {
  font-size: 0.98rem;
  line-height: 1.55;
}
.landing-card .contrast-after p {
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--color-text);
  font-weight: 500;
}

.industry-start {
  grid-area: start;
  align-self: end;
}
.industry-start ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.industry-start a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-primary-text);
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
  transition: background 0.15s ease;
}
.industry-start a:hover {
  background: color-mix(in srgb, var(--color-primary) 18%, transparent);
}

.industry-footnote {
  margin-top: 24px;
  color: var(--color-text-muted);
}
.industry-footnote a {
  color: var(--color-primary-text);
  font-weight: 600;
}

@media (max-width: 860px) {
  .industry-panel {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "contrast"
      "start";
    padding: 22px;
  }
}

/* ============================================================================
   LANDING — HOW IT WORKS (numbered delivery steps beside the Go Live clip)
   ============================================================================ */

.how-steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
/* One gradient line joins the numbered steps. */
.how-steps::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 16px;
  bottom: 16px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-primary), var(--color-accent));
  opacity: 0.45;
}
.how-steps li {
  display: flex;
  gap: 16px;
}
.how-step-num {
  position: relative;
  box-shadow: 0 0 0 6px var(--color-bg),
    0 6px 18px color-mix(in srgb, var(--color-primary) 35%, transparent);
}
.how-steps h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 4px 0;
}
.how-steps p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ============================================================================
   LANDING — SEE IT IN ACTION (alternating copy / capture rows)
   ============================================================================ */

.use-case-list {
  display: flex;
  flex-direction: column;
  gap: 72px;
}
.use-case-copy h3 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}
.use-case-copy p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .use-case-list { gap: 56px; }
}

/* ============================================================================
   LANDING — PEOPLE IN CONTROL (the learning loop, one quiet row)
   ============================================================================ */

.control-band {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--color-primary) 5%, var(--color-bg)) 0%,
    var(--color-bg) 100%
  );
}

.loop-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.loop-row li {
  padding-top: 18px;
  border-top: 2px solid var(--color-border);
}
.loop-row li:first-child {
  border-top-color: var(--color-primary);
}
.loop-num {
  --badge: 28px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}
.loop-row h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.loop-row p {
  color: var(--color-text-muted);
  font-size: 0.94rem;
}

@media (max-width: 900px) {
  .loop-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .loop-row { grid-template-columns: 1fr; }
}

/* ============================================================================
   LANDING — TRUST (residency + the tools it works with; cards are .card-row)
   ============================================================================ */

.residency-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-weight: 600;
}
.residency-line svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary-text);
  flex-shrink: 0;
}

.tools-row {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}
.tools-row .kicker {
  margin-bottom: 18px;
}
.tools-data-use {
  max-width: 760px;
  margin: 22px auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-text-muted, inherit);
}
.tools-data-use a {
  color: var(--color-primary-text);
}
/* A slow, seamless marquee: two copies of the list slide left together. */
.tools-marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.tools-list {
  list-style: none;
  margin: 0;
  padding: 0 28px 0 0;
  display: flex;
  flex-shrink: 0;
  gap: 14px 28px;
  animation: marquee 45s linear infinite;
}
.tools-marquee:hover .tools-list {
  animation-play-state: paused;
}
.tools-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text-muted);
}
/* Brand glyphs carry their own colours; monochrome ones (OpenAI, the inbox
   glyph) take the text colour. */
.tools-list .chip-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--color-text);
}
.tools-list .chip-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
@keyframes marquee {
  to { transform: translateX(-100%); }
}

/* ============================================================================
   LANDING — CLOSING CTA (a bold gradient band, deep in both themes)
   ============================================================================ */

.closing-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding: 104px 32px;
  color: #fff;
  background: linear-gradient(120deg, var(--cta-from), var(--cta-to));
}
/* Two soft light sources drifting slowly across the band. */
.closing-glow {
  position: absolute;
  inset: -10%;
  z-index: -1;
  background:
    radial-gradient(30% 45% at 25% 40%, rgba(255, 255, 255, 0.18), transparent 70%),
    radial-gradient(25% 40% at 75% 60%, rgba(255, 255, 255, 0.12), transparent 70%);
  animation: glow-drift 18s ease-in-out infinite alternate;
}
@keyframes glow-drift {
  to { transform: translate(6%, -4%); }
}
.closing-cta h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.closing-cta p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto 30px;
  font-size: 1.08rem;
}
.closing-cta .cta-actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.closing-cta .btn {
  padding: 14px 26px;
  font-size: 1rem;
}
/* On the band: a white primary and a white-outline secondary, in both themes
   (the dark-theme button polish below is more specific, hence the doubled
   selectors). */
.landing .closing-cta .btn-primary,
[data-theme="dark"] .landing .closing-cta .btn-primary {
  background: #fff;
  color: #1e1b4b;
  border-color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.landing .closing-cta .btn-primary:hover,
[data-theme="dark"] .landing .closing-cta .btn-primary:hover {
  background: #fff;
  filter: none;
  transform: translateY(-1px);
}
.landing .closing-cta .btn-secondary,
[data-theme="dark"] .landing .closing-cta .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.landing .closing-cta .btn-secondary:hover,
[data-theme="dark"] .landing .closing-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* Nothing moves for reduced-motion visitors; the tools show as one wrapped
   list. */
@media (prefers-reduced-motion: reduce) {
  .closing-glow { animation: none; }
  .card-row .landing-card:hover { transform: none; }
  .tools-marquee { -webkit-mask-image: none; mask-image: none; }
  .tools-list {
    animation: none;
    flex-wrap: wrap;
    flex-shrink: 1;
  }
  .tools-list[aria-hidden] { display: none; }
}

/* ============================================================================
   LANDING — FOOTER
   ============================================================================ */

.landing-footer {
  padding: 40px 32px 28px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}
.landing-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.landing-footer .footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  /* The nav's gradient wordmark again (the .grad rule), so the brand
     bookends the page. */
  letter-spacing: -0.02em;
  line-height: 1;
}
.landing-footer .footer-brand .brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px color-mix(in srgb, var(--color-primary) 20%, transparent));
}
.landing-footer .footer-meta {
  display: flex;
  gap: 24px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}
.landing-footer .footer-meta a {
  color: var(--color-text-muted);
  text-decoration: none;
}
.landing-footer .footer-meta a:hover {
  color: var(--color-primary-text);
}
@media (max-width: 640px) {
  .landing-footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================================
   BLACK-CANVAS POLISH (dark mode only)
   ----------------------------------------------------------------------------
   Scoped enhancements that only make sense on the black theme: glowing
   gradient CTAs, softer luminous hero orbs, and a hairline of brand light
   along the top of the page. Gated behind `[data-theme="dark"]` so the light
   landing falls back to the clean shared .btn / token rules in index.css —
   e.g. the dark-text gradient CTA below would be unreadable on light, where a
   solid blue button with white text is correct. Nothing here touches the
   authenticated app or tenant-branded modes.
   ============================================================================ */

/* Primary CTA — solid blue reads flat on black, so promote it to the brand
   gradient with an outward glow. Tinted halo grows on hover for a tactile
   "lift" without moving layout. */
[data-theme="dark"] .landing .btn-primary,
[data-theme="dark"] .tenant-signin-page .btn-primary {
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
  border-color: transparent;
  color: #0a0a0f;
  font-weight: 700;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--color-accent) 32%, transparent);
  transition: box-shadow 0.2s ease, transform 0.2s ease, filter 0.2s ease;
}
[data-theme="dark"] .landing .btn-primary:hover,
[data-theme="dark"] .tenant-signin-page .btn-primary:hover {
  /* The gradient is re-declared here on purpose: index.css's
     `.btn-primary:hover` sets a SOLID `--color-primary-strong-hover`, so
     without this the button would snap back to a flat colour on hover. This
     selector's higher specificity wins. */
  background: linear-gradient(120deg, var(--color-primary), var(--color-accent));
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow: 0 12px 38px color-mix(in srgb, var(--color-accent) 44%, transparent);
}

/* Secondary CTA — ghost button with a frosted hairline that warms on hover. */
[data-theme="dark"] .landing .btn-secondary,
[data-theme="dark"] .tenant-signin-page .btn-secondary {
  background: color-mix(in srgb, var(--color-surface) 60%, transparent);
  border-color: var(--color-border);
  color: var(--color-text);
  transition: border-color 0.2s ease, background 0.2s ease;
}
[data-theme="dark"] .landing .btn-secondary:hover,
[data-theme="dark"] .tenant-signin-page .btn-secondary:hover {
  border-color: color-mix(in srgb, var(--color-primary) 55%, var(--color-border));
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
}

/* Hero orbs — on black these become luminous light sources. Dial opacity
   down and lean on additive blending so they read as soft glows, not blobs.
   (On the light canvas the base .hero-blob opacity + normal blending already
   read as soft tints, so this is dark-only.) */
[data-theme="dark"] .landing .hero-blob {
  opacity: 0.42;
  mix-blend-mode: screen;
}

/* Sticky nav — thin gradient hairline of brand light along the bottom edge
   instead of a flat border, so the nav dissolves into the black hero. */
[data-theme="dark"] .landing .landing-nav {
  border-bottom-color: transparent;
  box-shadow: 0 1px 0 0 color-mix(in srgb, var(--color-primary) 22%, transparent);
}

/* Panels and cards — a faint inner top-light gives each
   surface a sense of being lit from above rather than a flat charcoal rect.
   White-tinted, so dark-only — on light it would only wash the card grey. */
[data-theme="dark"] .landing .landing-card {
  background:
    linear-gradient(180deg,
      color-mix(in srgb, #ffffff 3%, transparent) 0%, transparent 40%),
    var(--color-surface);
}

/* Icon tiles glow with the accent gradient on a dark surface. */
[data-theme="dark"] .landing .point-icon {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--color-primary) 22%, transparent),
    color-mix(in srgb, var(--color-accent) 22%, transparent));
  color: var(--color-text);
}

@media (prefers-reduced-motion: reduce) {
  [data-theme="dark"] .landing .btn-primary,
  [data-theme="dark"] .tenant-signin-page .btn-primary {
    transition: none;
  }
  /* Also neutralise the hover lift so reduced-motion users get a purely
     colour/shadow hover response, no positional movement. */
  [data-theme="dark"] .landing .btn-primary:hover,
  [data-theme="dark"] .tenant-signin-page .btn-primary:hover {
    transform: none;
  }
}
