/* Seneca root landing page.
 *
 * Loaded as a plain <link> from index.html so the prerendered markup is styled
 * on first paint, before the app bundle boots.
 *
 * Design system: the SAME tokens as consulting.senecaapp.ai — warm neutrals
 * (hue 72) with a single amber accent (hue 65), Geist + Geist Mono, mono
 * uppercase meta labels, hairline-bordered blocks, a sticky numbered section
 * label column, and ink buttons that fill amber on hover. A visitor moving
 * between the two pages should see no seam.
 *
 * LIGHT ONLY. The landing never renders dark: `enhance.ts` pins the core theme
 * to light while landing mode is on (and restores the user's preference when
 * it turns off), and every surface here is painted explicitly so the page
 * holds even before the app's stylesheet loads.
 *
 * Landing mode is driven by html[data-seneca-landing]:
 *   pending -> markup visible (first paint / crawlers)
 *   on      -> public root landing
 *   off     -> authenticated app; landing chrome collapses, #root goes full-screen
 */

.seneca-landing {
  /* Tokens lifted from consulting.senecaapp.ai. */
  --paper: oklch(0.995 0.0015 72);
  --paper-deep: oklch(0.965 0.003 72);
  --ink: oklch(0.18 0.004 72);
  --ink-mid: oklch(0.32 0.005 72);
  --ink-soft: oklch(0.52 0.008 72);
  --red: oklch(0.52 0.13 65); /* accent, text-safe on light */
  --red-hot: oklch(0.62 0.14 65); /* accent, fills / interaction */
  --hair: oklch(0.915 0.004 72);
  --hair-mid: oklch(0.88 0.004 72);

  --s-2xs: 4px;
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 32px;
  --s-2xl: 48px;
  --s-3xl: 64px;
  --s-4xl: 96px;
  --r: 12px;
  --r-sm: 7px;

  /* The topbar is sticky but still in flow, so the hero's "fill the first
   * screen" maths has to subtract it. Pinning the bar to this exact height
   * (rather than letting padding decide) is what makes the constant true by
   * construction instead of by measurement. */
  --sl-topbar-h: 72px;
  /* The workspace shell is rendered slightly smaller than 1:1 so a real
   * three-column workspace fits the framed stage at laptop heights. */
  --sl-stage-scale: 0.9;

  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Monaco, monospace;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --text-meta: 0.75rem;
  --text-body: 1.0625rem;
  --text-lead: 1.3125rem;
}

/* ------------------------------------------------------------------ modes */

html[data-seneca-landing]:not([data-seneca-landing="off"]),
html[data-seneca-landing]:not([data-seneca-landing="off"]) body {
  height: auto;
  min-height: 100%;
  overflow: visible;
  scroll-behavior: smooth;
  color-scheme: light;
}

html[data-seneca-landing]:not([data-seneca-landing="off"]) body {
  background: oklch(0.995 0.0015 72);
  color: oklch(0.18 0.004 72);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* App mode: landing wrappers leave layout, #root is the app. */
html[data-seneca-landing="off"] .seneca-landing,
html[data-seneca-landing="off"] .seneca-landing > main,
html[data-seneca-landing="off"] .sl-hero,
html[data-seneca-landing="off"] .sl-stage-wrap,
html[data-seneca-landing="off"] .sl-stage {
  display: contents;
}

html[data-seneca-landing="off"] .sl-topbar,
html[data-seneca-landing="off"] .sl-skip,
html[data-seneca-landing="off"] .sl-footer,
html[data-seneca-landing="off"] .sl-section,
html[data-seneca-landing="off"] .sl-hero > .sl-wrap:not(.sl-stage-wrap),
/* The stage's own decoration must go too. `.sl-stage` becomes `display:
 * contents` in app mode, which promotes its children into the app's layout —
 * so without these the hero's "sample workspace, read-only" caption and its
 * pre-paint fallback stay pinned over the REAL, signed-in workspace. */
html[data-seneca-landing="off"] .sl-stage-note,
html[data-seneca-landing="off"] .sl-stage-fallback,
html[data-seneca-landing="off"] .sl-annos {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  html[data-seneca-landing] {
    scroll-behavior: auto;
  }
}

/* --------------------------------------------------------------- scaffold */

.seneca-landing {
  position: relative;
  isolation: isolate;
  min-height: 100%;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: var(--text-body);
  line-height: 1.65;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Keep every public page on the same type system even when it is rendered as
 * static HTML without Core's application stylesheet. */
.seneca-landing :where(h1, h2, h3, h4, p, li, blockquote, button, input, textarea) {
  font-family: inherit;
}

.seneca-landing *,
.seneca-landing *::before,
.seneca-landing *::after {
  box-sizing: border-box;
}

.seneca-landing ::selection {
  background: var(--red-hot);
  color: var(--paper);
}

.sl-wrap {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 56px);
}

.seneca-landing a {
  color: inherit;
  text-decoration: none;
  transition: color 140ms ease;
}

.seneca-landing :focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

.sl-meta {
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.sl-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 120;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: var(--text-meta);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.sl-skip:focus-visible {
  left: 0;
}

/* ----------------------------------------------------------------- topbar */

.sl-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--sl-topbar-h);
  border-bottom: 1px solid var(--hair-mid);
  background: color-mix(in oklab, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.sl-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 56px);
  /* Height comes from `--sl-topbar-h`; centring replaces block padding. */
  height: 100%;
}

.sl-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.sl-wordmark-suffix {
  position: relative;
  margin-left: 2px;
  color: var(--red);
  font-family: "Caveat", cursive;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  transform: rotate(-3deg) translateY(-1px);
}

.sl-wordmark-suffix::before {
  content: "/";
  margin-right: 4px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 400;
}

.sl-sq {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 2px;
  background: var(--red-hot);
}

.sl-nav {
  display: flex;
  align-items: center;
  gap: var(--s-lg);
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.sl-nav::-webkit-scrollbar {
  display: none;
}

.sl-nav-link {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  white-space: nowrap;
}

.sl-nav-link:hover,
.sl-nav-link[aria-current="true"] {
  color: var(--ink);
}

.sl-nav-external {
  color: var(--red);
}

.seneca-landing .sl-signin {
  display: inline-block;
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--paper);
  padding: 11px 20px;
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 1px 3px color-mix(in oklab, var(--ink) 12%, transparent);
  transition: background 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.seneca-landing .sl-signin:hover {
  background: var(--red-hot);
  border-color: var(--red-hot);
  transform: translateY(-1px);
}

/* ------------------------------------------------------------------- hero */

/* The hero owns the first screen exactly.
 *
 * Previously the copy block and the stage were sized independently, so at
 * 1440x900 the stage's bottom edge landed ~176px below the fold: the workspace
 * read as an arbitrarily cropped slab rather than a composed object. Now the
 * hero is a flex column exactly one screen tall and the stage takes whatever
 * height is left over, so the frame ALWAYS closes above the fold at any
 * viewport — the composition adapts instead of overflowing.
 *
 * `svh` (not `vh`) so mobile browser chrome does not push the frame off. */
.sl-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  /* `height`, not `min-height`: a flex container only makes its children shrink
   * when its own height is DEFINITE. With `min-height` the hero stayed
   * auto-height, the stage kept its content height, and the frame overflowed
   * the fold — which was the original bug in a subtler form.
   * The floor keeps the workspace legible on short windows; below it the page
   * scrolls, which is honest, rather than crushing the stage. */
  height: calc(100svh - var(--sl-topbar-h));
  min-height: 620px;
  padding-block: clamp(24px, 3.2vw, 44px) clamp(16px, 2vw, 24px);
}

.sl-hero::before {
  content: "";
  position: absolute;
  inset: 18px clamp(18px, 4vw, 48px) auto auto;
  width: min(420px, 42vw);
  height: min(420px, 42vw);
  border-radius: 999px;
  background: radial-gradient(
    circle,
    color-mix(in oklab, var(--red-hot) 22%, transparent) 0%,
    color-mix(in oklab, var(--red-hot) 8%, transparent) 42%,
    transparent 72%
  );
  filter: blur(10px);
  opacity: 0.85;
  pointer-events: none;
  z-index: -1;
}

.sl-h1 {
  margin: 0 auto var(--s-sm);
  font-family: var(--sans);
  max-width: 100%;
  text-align: center;
  font-weight: 760;
  font-stretch: 118%;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.sl-h1 .sl-stop {
  color: var(--red-hot);
}

.sl-h1 span.sl-h1-line {
  display: block;
  max-width: 62ch;
  margin: 0.5em auto 0;
  color: var(--ink-soft);
  font-size: 0.5em;
  font-stretch: normal;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0;
}

.sl-h1 span.sl-h1-closure {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 0.55em;
  font-stretch: normal;
}

.sl-tag {
  padding: 5px 12px 4px;
  border: 1px solid color-mix(in oklab, var(--red-hot) 34%, transparent);
  border-radius: 999px;
  background: color-mix(in oklab, var(--red-hot) 6%, transparent);
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.34em;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.sl-hero-actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  width: min(100%, 520px);
  margin: 14px auto 0;
}

.sl-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 17px;
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.seneca-landing .sl-hero-cta-primary {
  color: var(--paper);
}

.seneca-landing .sl-hero-cta-primary:hover {
  border-color: var(--red-hot);
  background: var(--red-hot);
  color: var(--ink);
  transform: translateY(-1px);
}

.sl-hero-cli {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 40px;
  align-items: stretch;
  min-width: 0;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid var(--hair-mid);
  border-radius: var(--r-sm);
  background: color-mix(in oklab, var(--ink) 2.5%, var(--paper));
  box-shadow: 0 1px 2px color-mix(in oklab, var(--ink) 5%, transparent);
}

.sl-hero-cli-prompt {
  display: inline-flex;
  align-items: center;
  padding-left: 13px;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.sl-hero-cli code {
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 0 10px 0 8px;
  overflow-x: auto;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.71875rem;
  line-height: 1;
  white-space: nowrap;
  scrollbar-width: none;
  user-select: all;
}

.sl-hero-cli code::-webkit-scrollbar {
  display: none;
}

.sl-hero-cli-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--hair-mid);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.sl-hero-cli-copy span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sl-hero-cli-copy:hover,
.sl-hero-cli-copy:focus-visible,
.sl-hero-cli-copy[data-copy-state="copied"] {
  background: color-mix(in oklab, var(--red-hot) 10%, var(--paper));
  color: var(--red);
  outline: none;
}

.sl-hero-cli-copy svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
}

.sl-lead {
  margin: 0;
  max-width: 52ch;
  color: var(--ink-mid);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 460;
}

/* The live composer surface. #root mounts inside this frame. */
/* The stage breaks out of the 1180px prose column. Round 5 puts three real
 * columns in it (left pane · chat · workbench), which do not fit in a
 * text-width frame without squeezing the composer below usable width. */
/* Takes the hero's leftover height, so the frame closes above the fold. */
.sl-stage-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: clamp(16px, 2.2vw, 28px);
  max-width: 1200px;
  /* Matches the frame's gutter to the page edge on both sides. */
  padding-inline: clamp(16px, 3vw, 40px);
}

/* A deliberately framed "app window", not a slab bleeding off the fold: it has
 * its own hairline border, rounded corners and — the point of this round — a
 * visible BOTTOM edge in the initial view. */
.sl-stage {
  position: relative;
  flex: 1 1 auto;
  /* Below this the workspace stops being legible; the page may scroll instead. */
  min-height: 420px;
  overflow: hidden;
  border: 1px solid color-mix(in oklab, var(--red-hot) 18%, var(--hair-mid));
  border-radius: var(--r);
  background: var(--paper-deep);
  box-shadow:
    0 1px 2px oklch(0.18 0.004 72 / 0.05),
    0 10px 24px -10px oklch(0.18 0.004 72 / 0.12),
    0 32px 72px -28px oklch(0.18 0.004 72 / 0.18);
}

.sl-stage-note {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 5;
  padding: 5px 8px;
  border: 1px solid var(--hair-mid);
  border-radius: 5px;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.625rem;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  pointer-events: none;
}

/* First-paint workspace. Core resolves the anonymous session asynchronously;
 * this populated static layer prevents the framed hero from flashing as a
 * grey empty box. The real 0.1.95 shell replaces it once the populated demo
 * panel confirms that Dockview finished mounting. */
.sl-stage-fallback {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 40%;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
  pointer-events: none;
}

.sl-stage[data-seneca-stage-ready] .sl-stage-fallback,
html[data-seneca-landing="off"] .sl-stage-fallback {
  display: none;
}

.sl-stage #root {
  position: relative;
  z-index: 1;
}

.sl-fallback-nav,
.sl-fallback-chat,
.sl-fallback-file {
  min-width: 0;
  border-right: 1px solid var(--hair);
}

.sl-fallback-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 10px 14px;
}

.sl-fallback-nav strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sl-fallback-mark {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 5px;
  background: var(--ink);
  color: var(--paper);
}

.sl-fallback-nav span,
.sl-fallback-nav small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sl-fallback-nav span b {
  float: right;
  color: var(--ink-soft);
  font-weight: 500;
}

.sl-fallback-nav em {
  margin-top: 4px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.14em;
}

.sl-fallback-nav .is-active {
  border-radius: 6px;
  background: var(--paper-deep);
  padding: 8px;
  font-weight: 600;
}

.sl-fallback-nav small {
  padding-left: 22px;
  color: var(--ink-mid);
}

/* Vertical rhythm mirrors the live shell's empty state (heading ≈ +108 from
 * the frame top, composer ≈ +153, model row ≈ +215) so the annotations do not
 * jump when the real workspace replaces this first-paint layer. */
.sl-fallback-chat {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 96px 16px 22px;
}

.sl-fallback-chat h3 {
  text-align: center;
}

.sl-fallback-chat h3,
.sl-fallback-view h3 {
  margin: 0 0 16px;
  font-size: 24px;
  letter-spacing: -0.025em;
}

.sl-fallback-composer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--hair-mid);
  border-radius: 10px;
  padding: 13px;
  color: var(--ink-soft);
}

.sl-fallback-composer b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: var(--red-hot);
  color: var(--ink);
}

.sl-fallback-chat > small {
  margin: 14px 4px 22px;
  color: var(--ink-soft);
  font-size: 9px;
  text-align: center;
}

.sl-fallback-file {
  display: flex;
  flex-direction: column;
  border-right: 0;
}

.sl-fallback-tabs {
  display: flex;
  height: 42px;
  border-bottom: 1px solid var(--hair);
}

.sl-fallback-tabs span {
  padding: 13px 18px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.sl-fallback-tabs span:last-child {
  color: var(--ink);
}

.sl-fallback-view {
  padding: 10px 18px;
}

.sl-fallback-view > small {
  color: var(--ink-soft);
}

.sl-fallback-view h3 {
  margin-top: 12px;
}

.sl-fallback-view h4 {
  margin: 18px 0 6px;
  font-size: 17px;
}

.sl-fallback-view p {
  margin: 0;
  max-width: 62ch;
}

/* The shell renders at `1/scale` of the frame's box and is then scaled down to
 * fit it, which buys the workspace ~11% more logical room — enough for the left
 * pane, tabs and composer to all stay usable at 900px-tall laptops. Transforms
 * re-rasterise, so text stays crisp; the frame still clips at its own edge. */
html[data-seneca-landing]:not([data-seneca-landing="off"]) .sl-stage #root {
  width: calc(100% / var(--sl-stage-scale));
  height: calc(100% / var(--sl-stage-scale));
  overflow: hidden;
  transform: scale(var(--sl-stage-scale));
  transform-origin: top left;
}

/* Fit the core public shell (h-screen) into the frame and drop the chrome the
 * landing already provides (its floating auth card, top bar, left rail). */
html[data-seneca-landing]:not([data-seneca-landing="off"]) .sl-stage .public-chat-first-shell {
  height: 100%;
  min-height: 0;
}

/* Drop only the chrome the landing already provides: the shell's floating auth
 * card and its top bar (the landing header owns brand, nav and sign-in).
 * The app-left pane is NOT hidden any more — round 5 shows it open and
 * populated, because it is a large part of what "workspace, not chatbox"
 * means. */
html[data-seneca-landing]:not([data-seneca-landing="off"]) .sl-stage .public-chat-first-shell > aside,
html[data-seneca-landing]:not([data-seneca-landing="off"]) .sl-stage [data-boring-workspace-part="topbar"] {
  display: none !important;
}

/* The pane sets its width inline (user-resizable in the real app), so the hero
 * has to override to buy the composer back some room. */
html[data-seneca-landing]:not([data-seneca-landing="off"]) .sl-stage [data-boring-workspace-part="app-left-pane"] {
  width: 190px !important;
  min-width: 190px !important;
  max-width: 190px !important;
}

/* In the wide hero, chat is the primary surface. The open document proves
 * that an agent produces inspectable work, but it must not dominate the
 * composition. Keep this override off closed/mobile workbenches: forcing a
 * width there would turn the hidden overlay into a white clipping mask. */
@media (min-width: 1180px) {
  html[data-seneca-landing]:not([data-seneca-landing="off"]) .sl-stage [data-boring-workspace-part="workbench"] {
    width: 40% !important;
    min-width: 0 !important;
    max-width: 40% !important;
    flex-basis: 40% !important;
  }
}

/* The compact hero does not need the workbench's vertical tool rail. Removing
 * it gives the narrow document header its first 40px back, so tab names start
 * cleanly instead of clipping beneath the rail. */
html[data-seneca-landing]:not([data-seneca-landing="off"]) .sl-stage [data-boring-workspace-part="surface-sidebar"] {
  display: none !important;
}

/* The chat empty-state headline is sized for a full-width app pane. In the
 * hero the chat column is one of three, so cap it instead of letting it
 * overflow (its container clips rather than reflows). */
html[data-seneca-landing]:not([data-seneca-landing="off"]) .sl-stage [data-boring-workspace-part="chat-pane"] h3 {
  font-size: clamp(20px, 2vw, 28px) !important;
}

/* CodeMirror's syntax palette is tuned for the app's dark theme (all tokens at
 * ~0.75 lightness). The landing is pinned light, so those colours land pale on
 * paper. Darken them as a group rather than re-mapping generated token classes,
 * which are not stable across CodeMirror builds. */
html[data-seneca-landing]:not([data-seneca-landing="off"]) .sl-stage .cm-editor .cm-line span {
  filter: brightness(0.58) saturate(1.45);
}

/* Trailing count pills on the Automations / Tasks rows. */
.sl-left-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: color-mix(in oklab, currentColor 10%, transparent);
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1;
}


.sl-hero > .sl-wrap:last-child {
  display: flex;
  flex: 0 0 auto;
  justify-content: center;
}

.sl-scrollcue {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  font-weight: 680;
  letter-spacing: -0.01em;
}

/* Short viewports (laptops at 800px and below) cannot afford the full hero
 * rhythm AND a workspace big enough to read. The fixed costs above the stage
 * shrink so the stage keeps a usable height and the frame still closes — the
 * alternative is the stage hitting its min-height and shoving the scroll cue
 * over the frame, which is what "cropped" looked like at 1280x800. */
@media (max-height: 920px) {
  .sl-hero {
    padding-block: 20px 14px;
  }
}

.sl-scrollcue:hover {
  color: var(--ink);
}

.sl-scrollcue svg {
  width: 19px;
  height: 19px;
  color: var(--red-hot);
  animation: sl-bob 2.4s ease-in-out infinite;
}

@keyframes sl-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sl-scrollcue svg {
    animation: none;
  }
}

/* ---------------------------------------------------------- audience paths */

.sl-audiences {
  border-bottom: 1px solid var(--hair-mid);
  background: color-mix(in oklab, var(--paper-deep) 55%, var(--paper));
}

.sl-audiences-heading {
  padding-top: clamp(32px, 5vw, 56px);
}

.sl-audiences-heading h2 {
  max-width: 28ch;
  margin: var(--s-sm) 0 0;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.sl-audiences-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  padding-block: var(--s-xl) clamp(32px, 5vw, 64px);
}

.sl-audience-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: var(--s-lg) var(--s-xl);
  border-left: 1px solid var(--hair-mid);
  background: var(--paper);
  transition: background 160ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.sl-audience-card:hover {
  background: color-mix(in oklab, var(--red-hot) 5%, var(--paper));
  transform: translateY(-2px);
}

.sl-audience-card h3 {
  max-width: 24ch;
  margin: var(--s-sm) 0 var(--s-xs);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.sl-audience-card p {
  max-width: 44ch;
  margin: 0 0 var(--s-lg);
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.55;
}

.sl-audience-card strong {
  margin-top: auto;
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .sl-audiences-inner {
    grid-template-columns: 1fr;
  }

  .sl-audiences-heading h2 {
    max-width: 20ch;
  }

  .sl-audience-card {
    padding: var(--s-lg) 0;
    border-top: 1px solid var(--hair-mid);
    border-left: 0;
    background: transparent;
  }
}

/* --------------------------------------------------------------- sections */

.sl-section {
  border-top: 1px solid var(--hair-mid);
  padding-block: clamp(56px, 8vw, 100px);
  scroll-margin-top: calc(var(--sl-topbar-h) + 16px);
}

.sl-sec {
  display: grid;
  gap: var(--s-xl);
}

@media (min-width: 900px) {
  .sl-h1 span.sl-h1-line {
    white-space: nowrap;
  }

  .sl-sec {
    grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
    gap: clamp(32px, 5vw, 80px);
  }

  .sl-sec-label {
    position: sticky;
    top: calc(var(--s-lg) + 56px);
    align-self: start;
  }
}

.sl-sec-label .sl-num {
  display: block;
  margin-bottom: var(--s-xs);
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sl-h2 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 700;
  font-stretch: 115%;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.sl-h3 {
  margin: 0;
  font-family: var(--mono);
  font-size: var(--text-meta);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sl-sec-body > .sl-lead {
  max-width: 62ch;
  margin-bottom: var(--s-xl);
}

.sl-note {
  margin: var(--s-xl) 0 0;
  max-width: 52ch;
  padding: var(--s-md);
  border: 1px solid color-mix(in oklab, var(--red-hot) 32%, var(--hair-mid));
  background: color-mix(in oklab, var(--red-hot) 5%, var(--paper));
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* ------------------------------------------------------------------ cards */

.sl-cards {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--hair-mid);
}

.sl-card {
  padding: var(--s-lg);
  transition: background 140ms ease;
}

.sl-card + .sl-card {
  border-top: 1px solid var(--hair);
}

/* Four cards read as 2x2; three read as a row. Neither leaves an empty cell. */
@media (min-width: 760px) {
  .sl-cards-n4 {
    grid-template-columns: 1fr 1fr;
  }

  .sl-cards-n4 .sl-card:nth-child(-n + 2) {
    border-top: 0;
  }

  .sl-cards-n4 .sl-card:nth-child(odd) {
    border-right: 1px solid var(--hair);
  }
}

@media (min-width: 900px) {
  .sl-cards-n3:not(.sl-cards-pillars) {
    grid-template-columns: repeat(3, 1fr);
  }

  .sl-cards-n3:not(.sl-cards-pillars) .sl-card {
    border-top: 0;
  }

  .sl-cards-n3:not(.sl-cards-pillars) .sl-card + .sl-card {
    border-left: 1px solid var(--hair);
  }
}

.sl-card:hover {
  background: color-mix(in oklab, var(--paper-deep) 60%, transparent);
}

.sl-card-meta {
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.sl-card h3 {
  margin: var(--s-xs) 0 var(--s-2xs);
  font-size: 1.0625rem;
  font-weight: 640;
  letter-spacing: -0.005em;
}

.sl-card p {
  margin: 0;
  max-width: 58ch;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* Three-up pillar rows (Vision, Infrastructure) read as a table, like the
   consulting "weeks" list: a mono label column and a text column. */
.sl-cards-pillars {
  border: 0;
  border-top: 1px solid var(--hair-mid);
  grid-template-columns: 1fr;
}

.sl-cards-pillars .sl-card,
.sl-cards-pillars .sl-card + .sl-card {
  border-top: 0;
  border-right: 0;
}

.sl-cards-pillars .sl-card {
  display: grid;
  grid-template-columns: minmax(84px, 120px) 1fr;
  gap: var(--s-lg);
  padding-block: var(--s-xl);
  padding-inline: 0;
  border-bottom: 1px solid var(--hair);
}

@media (min-width: 760px) {
  .sl-cards-pillars .sl-card:nth-child(odd) {
    border-right: 0;
  }
}

.sl-cards-pillars .sl-card:hover {
  background: transparent;
}

.sl-cards-pillars .sl-card-meta {
  padding-top: 3px;
  color: var(--ink-soft);
}

.sl-cards-pillars .sl-card h3 {
  margin: 0 0 var(--s-2xs);
}

.sl-section-cta {
  display: inline-flex;
  align-items: center;
  margin-top: var(--s-xl);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--red-hot);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 160ms ease, border-color 160ms ease;
}

.sl-section-cta:hover {
  color: var(--red);
  border-color: var(--red);
}

/* ------------------------------------------------------------- enterprise */

.sl-enterprise-panel {
  border: 1px solid var(--hair-mid);
  padding: var(--s-lg);
}

.sl-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.sl-checklist li {
  display: flex;
  gap: 12px;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.sl-checklist li::before {
  content: "✓";
  flex: none;
  font-family: var(--mono);
  color: var(--red);
}

.sl-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-lg);
  margin-top: var(--s-xl);
}

.seneca-landing .sl-btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  padding: 16px 28px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  box-shadow: 0 1px 3px color-mix(in oklab, var(--ink) 12%, transparent);
  transition: background 180ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease;
}

.seneca-landing .sl-btn:hover {
  background: var(--red-hot);
  border-color: var(--red-hot);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px color-mix(in oklab, var(--red-hot) 22%, transparent);
}

.seneca-landing .sl-btn-alt {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--ink-soft);
  padding-inline: 0;
  font-family: var(--sans);
  font-size: 0.9375rem;
  letter-spacing: 0;
  text-transform: none;
}

.seneca-landing .sl-btn-alt:hover {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--ink);
  transform: none;
}

/* ----------------------------------------------------------------- footer */

.sl-footer {
  border-top: 1px solid var(--hair-mid);
  padding-block: var(--s-xl);
}

.sl-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
}

.sl-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-lg);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

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

.sl-footer-note {
  width: 100%;
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.04em;
}

/* ----------------------------------------------------------- reveal + rwd */

@media (max-width: 1179px) {
  /* Below the three-column breakpoint, the shell intentionally leads with
   * chat. Do not label panes that are not on screen. */
  .sl-anno-left,
  .sl-anno-right {
    display: none;
  }
}

@media (max-width: 860px) {
  .sl-nav {
    display: none;
  }

  /* Product and captions become a vertical figure. In a row the captions
   * steal almost the entire frame width. */
  .sl-stage-wrap {
    flex-direction: column;
    flex: none;
    min-height: 0;
    padding-inline: clamp(24px, 5vw, 56px);
  }

  .sl-stage {
    flex: none;
    width: 100%;
    height: clamp(500px, 68vh, 580px);
    min-height: 0;
    order: 1;
  }

  .sl-annos {
    order: 2;
  }
}

@media (max-width: 560px) {
  .seneca-landing {
    --sl-topbar-h: 64px;
    --sl-stage-scale: 0.82;
  }

  .sl-wrap,
  .sl-bar,
  .sl-stage-wrap {
    padding-inline: 20px;
  }

  .sl-hero {
    height: auto;
    min-height: 0;
    padding-block: 24px 32px;
  }

  .sl-h1 {
    max-width: 100%;
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.05;
  }

  .sl-hero-actions {
    grid-template-columns: 104px minmax(0, 1fr);
    width: 100%;
    max-width: 350px;
  }

  .sl-hero-cta {
    padding-inline: 8px;
    font-size: 0.75rem;
  }

  .sl-hero-cli-prompt {
    padding-left: 9px;
    font-size: 0.6875rem;
  }

  .sl-hero-cli code {
    padding-inline: 6px;
    font-size: 0.59rem;
  }

  .sl-hero-cli-copy {
    min-width: 36px;
    padding: 0;
  }

  .sl-lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .sl-stage-wrap {
    margin-top: 24px;
  }

  .sl-stage {
    height: 500px;
    border-radius: 10px;
  }

  .sl-stage-note {
    top: 84px;
    right: 8px;
    bottom: auto;
    max-width: calc(100% - 16px);
    font-size: 0.5625rem;
  }

  .sl-stage-fallback {
    grid-template-columns: 1fr;
  }

  .sl-fallback-nav,
  .sl-fallback-file {
    display: none;
  }

  .sl-fallback-chat {
    padding: 20px 12px;
  }

  .sl-fallback-chat h3 {
    font-size: 18px;
    text-align: center;
  }

  html[data-seneca-landing]:not([data-seneca-landing="off"]) .sl-stage [data-boring-workspace-part="app-left-pane"] {
    display: none !important;
  }

  .sl-annos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 16px;
  }

  .sl-anno-label {
    font-size: 0.625rem;
    line-height: 1.4;
  }

  .sl-scrollcue {
    display: none;
  }

}

/* ------------------------------------------------------- stage annotations */

/* Caption row under the frame, in the page's mono meta voice. One caption per
 * shell pane, aligned to its column — the alignment does the pointing, so no
 * leader line ever crosses product UI. */
.sl-annos {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-xs) var(--s-lg);
  margin: 0;
  padding: var(--s-sm) 0 0;
  list-style: none;
  order: 2;
}

.sl-anno {
  min-width: 0;
}

.sl-anno-label {
  position: relative;
  display: block;
  padding-left: 14px;
  opacity: 1;
  transform: none;
}

.sl-anno-title {
  display: block;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.012em;
}

.sl-anno-detail {
  display: block;
  margin-top: 4px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.025em;
}

.sl-anno-label::before {
  content: "";
  position: absolute;
  top: 0.38em;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--red-hot);
}

/* Each caption carries its own measured-drawing registration mark. Alignment
 * to the shell's three columns does the pointing; no rule crosses product UI. */
.sl-anno-leader {
  display: block;
  width: 40px;
  height: 1px;
  margin-top: 8px;
  background: color-mix(in oklab, var(--red-hot) 68%, transparent);
}

.sl-anno-leader::after {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  margin-top: -2px;
  margin-left: auto;
  border-radius: 999px;
  background: var(--red-hot);
  opacity: 1;
  transform: none;
}

@media (min-width: 760px) {
  .sl-annos {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    width: 100%;
    padding-top: 14px;
  }
}

/* Leader routes: measured at runtime (enhance.ts), drawn only on windows wide
 * enough for the routes' frame-edge rails to clear the page margin. */
.sl-anno-routes {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.sl-anno-routes[data-sl-routes-ready] {
  display: none;
}

.sl-anno-routes path {
  fill: none;
  stroke: color-mix(in oklab, var(--red-hot) 72%, transparent);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.sl-anno-routes circle {
  fill: var(--red-hot);
}

.sl-anno-routes circle[data-sl-point-off] {
  display: none;
}

@media (min-width: 1380px) {
  .sl-anno-routes[data-sl-routes-ready] {
    display: block;
  }

  /* Captions float in the gutters, centred on their in-frame target so the
   * leader is a single straight horizontal rule. Hidden until measured. */
  .sl-annos {
    display: block;
    height: 0;
    padding: 0;
  }

  .sl-anno {
    position: absolute;
    z-index: 7;
    width: 130px;
    opacity: 0;
  }

  .sl-annos[data-sl-placed] .sl-anno {
    opacity: 1;
  }

  .sl-anno-left {
    text-align: right;
  }

  .sl-anno-left .sl-anno-label {
    padding-right: 14px;
    padding-left: 0;
  }

  .sl-anno-left .sl-anno-label::before {
    right: 0;
    left: auto;
  }

  /* The model caption sits ABOVE the frame; give the band under the hero
   * kicker enough height that the caption and its drop line breathe. */
  .sl-stage-wrap {
    margin-top: 72px;
  }

  .sl-anno-model {
    width: max-content;
    max-width: 260px;
  }

  .sl-anno-model .sl-anno-detail {
    display: none;
  }

  .sl-anno-leader {
    display: none;
  }
}

/* ------------------------------------------------------- hero choreography */

/* One orchestrated load: headline settles, the frame lifts in, then the
 * leaders rule themselves toward their targets and the registration dots
 * land. Entrances only — nothing loops, nothing moves after settling. */
@media (prefers-reduced-motion: no-preference) {
  html[data-seneca-landing]:not([data-seneca-landing="off"]) .sl-h1 {
    animation: sl-rise 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  html[data-seneca-landing]:not([data-seneca-landing="off"]) .sl-stage-wrap {
    animation: sl-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s backwards;
  }

  html[data-seneca-landing]:not([data-seneca-landing="off"]) .sl-scrollcue {
    animation: sl-fade 0.5s ease-out 0.85s backwards;
  }
}

@keyframes sl-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sl-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --------------------------------------------------- agent landing pages */

/* One public hostname per agent (macro.senecaapp.ai -> MacroAnalyst). These
 * pages reuse the root page's chrome, type scale and section rhythm — an agent
 * page is the same site, not a microsite. Only two things differ, and both are
 * below: the hero is copy rather than the live product shell, and the app
 * mount waits offstage until the visitor actually enters the app. */

/* Auth actions in the top bar. An agent hostname signs people up and in on its
 * own origin, so both actions sit here: sign-up as the pill, sign-in as a text
 * link beside it. */
.sl-bar-actions {
  display: flex;
  align-items: center;
  gap: var(--s-md);
  flex: none;
}

.seneca-landing .sl-signin-alt {
  font-size: 0.9375rem;
  color: var(--ink-mid);
  white-space: nowrap;
}

.seneca-landing .sl-signin-alt:hover {
  color: var(--ink);
}

/* Unlike the root hero, this one is not a frame that has to close above the
 * fold — it is prose. Height is whatever the copy needs. */
.sl-agent-hero {
  height: auto;
  min-height: 0;
  padding-block: clamp(48px, 8vw, 104px) clamp(32px, 5vw, 64px);
}

.sl-agent-hero > .sl-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-lg);
}

/* The root hero is centred around its product frame; this one is a left
 * column of prose, so the headline aligns with the copy under it instead of
 * floating centred above a left-aligned block. */
.sl-agent-hero .sl-h1,
.sl-agent-hero .sl-h1 span.sl-h1-line {
  margin-inline: 0;
  max-width: 22ch;
  text-align: left;
}

.sl-agent-hero .sl-h1 span.sl-h1-line {
  max-width: 46ch;
}

.sl-agent-hero .sl-lead {
  max-width: 58ch;
}

/* The honest status line, stated in the hero rather than discovered later. */
.sl-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  max-width: 62ch;
  padding: 16px 20px;
  border: 1px solid var(--hair);
  border-left: 2px solid var(--red-hot);
  border-radius: var(--r-sm);
  background: color-mix(in oklab, var(--red-hot) 4%, transparent);
}

.sl-status-label {
  font-family: var(--mono);
  font-size: var(--text-meta);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red);
}

.sl-status-detail {
  color: var(--ink-mid);
  font-size: 1rem;
  line-height: 1.6;
}

.sl-agent-hero .sl-scrollcue {
  margin-top: var(--s-md);
}

/* The hero wrap already spaces its children; the root page's extra top margin
 * on the action row doubles up here, and on a phone (where the two CTAs stack)
 * it left the secondary link floating away from the primary button. */
.sl-agent-hero .sl-actions {
  margin-top: 0;
  gap: var(--s-md) var(--s-lg);
}

/* The app mount.
 *
 * The root page puts #root inside its hero stage, because there the running
 * shell IS the hero. An agent page has no stage, so #root would otherwise
 * paint the whole app over the copy the moment it mounts. It stays hidden for
 * as long as the page is in landing mode, and takes over as normal once
 * enhance.ts switches to app mode (sign-in, or an authenticated session on
 * this hostname). */
.seneca-agent-landing .sl-app-mount {
  display: none;
}

html[data-seneca-landing="off"] .seneca-agent-landing .sl-app-mount {
  display: contents;
}

/* --------------------------------------------------------- creator page */

.sl-creator-page .sl-creator-hero {
  height: auto;
  min-height: 0;
  padding-block: clamp(72px, 10vw, 132px);
}

.sl-creator-hero > .sl-wrap {
  width: 100%;
}

.sl-creator-page .sl-creator-hero > .sl-creator-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}

.sl-creator-hero-copy {
  min-width: 0;
}

.sl-creator-hero .sl-h1,
.sl-creator-hero .sl-h1-line {
  max-width: 920px;
  margin-inline: 0;
  text-align: left;
  white-space: normal !important;
}

.sl-creator-hero .sl-h1 {
  margin-top: var(--s-md);
  font-family: var(--sans);
  font-size: clamp(2.5rem, 4.4vw, 4.2rem);
  line-height: 0.98;
}

.sl-creator-hero .sl-h1-line {
  max-width: 58ch;
  margin-top: 1.2rem;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.55;
}

.sl-creator-hero .sl-actions {
  margin-top: var(--s-xl);
}

.sl-creator-carousel {
  min-width: 0;
}

.sl-creator-carousel-stage {
  position: relative;
  min-height: 390px;
}

.sl-creator-demo {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid color-mix(in oklab, var(--red-hot) 30%, var(--hair-mid));
  border-radius: var(--r);
  background: color-mix(in oklab, var(--paper) 96%, transparent);
  box-shadow: 0 18px 50px -28px color-mix(in oklab, var(--ink) 30%, transparent);
  opacity: 0;
  transform: translateX(12px);
}

.sl-creator-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-md);
}

.sl-creator-demo-head > span:last-child,
.sl-creator-demo-input > span,
.sl-creator-demo-output > span {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sl-creator-demo-archive {
  margin: 8px 0 var(--s-xl);
  color: var(--ink-soft);
  font-size: 0.875rem;
}

.sl-creator-demo-input,
.sl-creator-demo-output {
  display: grid;
  gap: 10px;
  padding: var(--s-lg);
  border: 1px solid var(--hair-mid);
  border-radius: var(--r-sm);
  background: var(--paper);
}

.sl-creator-demo-input strong {
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.sl-creator-demo-output {
  margin-top: var(--s-md);
  border-color: color-mix(in oklab, var(--red-hot) 42%, var(--hair-mid));
  background: color-mix(in oklab, var(--red-hot) 6%, var(--paper));
}

.sl-creator-demo-output > span {
  color: var(--red);
}

.sl-creator-demo-output p {
  margin: 0;
  color: var(--ink-mid);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.sl-creator-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: var(--s-md);
}

.sl-creator-carousel-dots i {
  width: 18px;
  height: 2px;
  background: var(--hair-mid);
}

@media (prefers-reduced-motion: no-preference) {
  .sl-creator-demo {
    animation: sl-creator-slide 25s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-delay: calc(var(--slide) * 5s);
  }

  .sl-creator-carousel-dots i {
    animation: sl-creator-dot 25s linear infinite;
    animation-delay: calc(var(--slide) * 5s);
  }
}

@keyframes sl-creator-slide {
  0%, 17% { opacity: 1; transform: translateX(0); }
  20%, 100% { opacity: 0; transform: translateX(-12px); }
}

@keyframes sl-creator-dot {
  0%, 17% { background: var(--red-hot); }
  20%, 100% { background: var(--hair-mid); }
}

@media (prefers-reduced-motion: reduce) {
  .sl-creator-demo:first-child {
    opacity: 1;
    transform: none;
  }
}

.sl-creator-pitch {
  margin-bottom: var(--s-xl);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid color-mix(in oklab, var(--red-hot) 32%, var(--hair-mid));
  border-radius: var(--r);
  background: color-mix(in oklab, var(--red-hot) 5%, var(--paper));
}

.sl-creator-pitch blockquote {
  max-width: 34ch;
  margin: var(--s-md) 0 0;
  font-size: clamp(1.35rem, 3vw, 2.25rem);
  font-weight: 680;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.sl-creator-steps {
  display: grid;
  border: 1px solid var(--hair-mid);
}

.sl-creator-step {
  padding: var(--s-lg);
}

.sl-creator-step + .sl-creator-step {
  border-top: 1px solid var(--hair);
}

.sl-creator-step h3 {
  margin: var(--s-xs) 0 var(--s-2xs);
  font-size: 1.0625rem;
}

.sl-creator-step p {
  max-width: 55ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.sl-creator-workflow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--s-lg);
  margin-bottom: var(--s-xl);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--hair-mid);
  border-radius: var(--r);
}

.sl-creator-workflow > div {
  display: grid;
  gap: var(--s-sm);
}

.sl-creator-workflow > span {
  color: var(--red);
  font-size: 1.5rem;
}

.sl-creator-pricing {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: var(--s-xl);
  border: 1px solid var(--hair-mid);
}

.sl-creator-price-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: var(--s-lg);
}

.sl-creator-price-card + .sl-creator-price-card {
  border-left: 1px solid var(--hair-mid);
}

.sl-creator-price-card-hot {
  background: color-mix(in oklab, var(--red-hot) 5%, var(--paper));
}

.sl-creator-price-card h3 {
  min-height: 2.6em;
  margin: var(--s-xs) 0 var(--s-md);
  font-size: 1rem;
  line-height: 1.3;
}

.sl-creator-price {
  display: block;
  margin-bottom: var(--s-md);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.sl-creator-price small {
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sl-creator-price-card p {
  margin: 0 0 var(--s-lg);
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.55;
}

.sl-creator-price-example {
  margin-top: auto;
  padding-top: var(--s-md);
  border-top: 1px solid var(--hair);
  color: var(--red);
  font-family: var(--mono);
  font-size: 0.625rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sl-creator-mcp-modes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: var(--s-lg);
  border: 1px solid var(--hair-mid);
  border-radius: var(--r);
  overflow: hidden;
}

.sl-creator-mcp-modes article {
  padding: var(--s-lg);
}

.sl-creator-mcp-modes article + article {
  border-left: 1px solid var(--hair-mid);
}

.sl-creator-mcp-modes article.is-primary {
  background: color-mix(in oklab, var(--red-hot) 6%, var(--paper));
}

.sl-creator-mcp-modes h3 {
  margin: var(--s-sm) 0;
  font-size: 1.05rem;
  line-height: 1.35;
}

.sl-creator-mcp-modes p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.55;
}

.sl-creator-mcp-modes code {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78em;
}

.sl-creator-meter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: var(--s-lg);
  border-block: 1px solid var(--hair-mid);
}

.sl-creator-meter > div {
  display: grid;
  gap: var(--s-sm);
  padding: var(--s-lg) var(--s-md);
}

.sl-creator-meter > div + div {
  border-left: 1px solid var(--hair-mid);
}

.sl-creator-meter strong {
  font-size: 0.875rem;
  line-height: 1.45;
}

.sl-creator-examples {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
  margin-bottom: var(--s-xl);
}

.sl-creator-examples span {
  padding: 9px 13px;
  border: 1px solid var(--hair-mid);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.sl-creator-fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--hair-mid);
}

.sl-creator-fit-grid > div {
  padding: var(--s-lg);
}

.sl-creator-fit-grid > div + div {
  border-left: 1px solid var(--hair-mid);
}

.sl-creator-fit-grid h3 {
  margin: 0 0 var(--s-md);
  font-size: 1rem;
}

.sl-checklist-muted li::before {
  content: "—";
  color: var(--ink-soft);
}

@media (min-width: 760px) {
  .sl-creator-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sl-creator-step:nth-child(even) {
    border-left: 1px solid var(--hair);
  }

  .sl-creator-step:nth-child(2) {
    border-top: 0;
  }
}

@media (max-width: 980px) and (min-width: 641px) {
  .sl-creator-pricing {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sl-creator-price-card:nth-child(3) {
    border-top: 1px solid var(--hair-mid);
    border-left: 0;
  }

  .sl-creator-price-card:nth-child(4) {
    border-top: 1px solid var(--hair-mid);
  }
}

@media (max-width: 860px) {
  .sl-creator-page .sl-creator-hero > .sl-creator-hero-grid {
    grid-template-columns: 1fr;
  }

  .sl-creator-carousel-stage {
    min-height: 365px;
  }
}

@media (max-width: 640px) {
  .sl-creator-hero .sl-h1 {
    font-size: clamp(2.2rem, 12vw, 3.4rem);
  }

  .sl-creator-workflow,
  .sl-creator-fit-grid,
  .sl-creator-pricing,
  .sl-creator-mcp-modes,
  .sl-creator-meter {
    grid-template-columns: 1fr;
  }

  .sl-creator-price-card + .sl-creator-price-card,
  .sl-creator-mcp-modes article + article,
  .sl-creator-meter > div + div {
    border-top: 1px solid var(--hair-mid);
    border-left: 0;
  }

  .sl-creator-price-card h3 {
    min-height: 0;
  }

  .sl-creator-workflow > span {
    transform: rotate(90deg);
    justify-self: start;
  }

  .sl-creator-fit-grid > div + div {
    border-top: 1px solid var(--hair-mid);
    border-left: 0;
  }
}

/* ------------------------------------------------ landing v3 refinements */

/* These refinements belong to the root story. Agent hostnames retain their
 * deliberately simpler landing treatment. */
[data-seneca-landing-root]:not([data-seneca-agent]) .sl-nav-link {
  position: relative;
  padding-block: 6px;
}

[data-seneca-landing-root]:not([data-seneca-agent]) .sl-nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: 1px;
  background: var(--red-hot);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-seneca-landing-root]:not([data-seneca-agent]) .sl-nav-link:hover::after,
[data-seneca-landing-root]:not([data-seneca-agent]) .sl-nav-link[aria-current="true"]::after {
  transform: scaleX(1);
}

.sl-nav-socials {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sl-nav-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  transition: background 140ms ease, color 140ms ease;
}

.sl-nav-icon:hover {
  background: var(--paper-deep);
  color: var(--ink);
}

.sl-nav-icon svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.sl-hero-sub {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.sl-proof {
  border-block: 1px solid var(--hair-mid);
  background: var(--paper-deep);
}

.sl-proof-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 28px;
  padding-block: 16px;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sl-proof-inner i {
  color: var(--red);
  font-style: normal;
}

.sl-sec-label > p {
  max-width: 34ch;
  margin: var(--s-md) 0 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.sl-sec-label .sl-h2::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  margin-top: 18px;
  background: var(--red-hot);
}

.sl-lead strong {
  color: var(--ink);
  font-weight: 640;
}

.sl-figure {
  position: relative;
  margin: 0 0 var(--s-xl);
  overflow: hidden;
  border: 1px solid var(--hair-mid);
  border-radius: 12px;
  background-color: var(--paper);
  background-image: radial-gradient(color-mix(in oklab, var(--ink) 7%, transparent) 1px, transparent 1px);
  background-position: -1px -1px;
  background-size: 22px 22px;
}

.sl-figure::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in oklab, var(--paper) 92%, transparent) 40%, color-mix(in oklab, var(--paper) 70%, transparent) 100%);
}

.sl-dg,
.sl-figcap {
  position: relative;
}

.sl-dg {
  display: block;
  width: 100%;
  height: auto;
}

.sl-dg-narrow {
  display: none;
}

.sl-figcap {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border-top: 1px solid var(--hair);
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.sl-dg text {
  fill: var(--ink);
  font-family: var(--sans);
}

.sl-dg-kicker,
.sl-dg-meta {
  fill: var(--red) !important;
  font-family: var(--mono) !important;
  letter-spacing: 0.08em;
}

.sl-dg-kicker { font-size: 10px; font-weight: 600; }
.sl-dg-meta { font-size: 9px; }
.sl-dg-title { font-size: 15px; font-weight: 650; }
.sl-dg-core { fill: var(--ink); font-size: 20px; font-weight: 720; letter-spacing: -0.02em; }
.sl-dg-on-dark { fill: var(--paper) !important; }
.sl-dg-on-dark.sl-dg-meta { opacity: 0.68; }

.sl-dg-box {
  fill: var(--paper);
  stroke: var(--hair-mid);
  stroke-width: 1;
}

.sl-dg-box-hot {
  fill: color-mix(in oklab, var(--red-hot) 7%, var(--paper));
  stroke: var(--red-hot);
  stroke-width: 1.25;
}

.sl-dg-orbit {
  fill: none;
  stroke: var(--hair);
  stroke-width: 1;
}

.sl-dg-divider,
.sl-dg-region {
  fill: none;
  stroke: var(--hair-mid);
  stroke-width: 1;
  stroke-dasharray: 2 8;
  stroke-linecap: round;
}

.sl-dg-line,
.sl-dg-lines {
  fill: none;
  stroke: var(--hair-mid);
  stroke-width: 1.25;
  stroke-linecap: round;
}

.sl-dg-foundation {
  fill: var(--ink);
}

.sl-dg-hotline {
  fill: none;
  stroke: var(--red-hot);
  stroke-width: 1;
}

.sl-dg-dot {
  fill: var(--red-hot) !important;
  stroke: none !important;
}

.sl-dg-agent > circle:first-of-type {
  fill: color-mix(in oklab, var(--red-hot) 10%, var(--paper));
  stroke: var(--red-hot);
  stroke-width: 1.25;
}

.sl-dg-agent > text {
  fill: var(--ink-mid);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.05em;
  text-anchor: middle;
}

.sl-dg-part > text:not(.sl-dg-meta) {
  font-size: 14px;
  font-weight: 620;
}

.sl-dg-workspace-agents rect {
  fill: var(--paper);
  stroke: var(--hair-mid);
}

.sl-dg-workspace-agents text {
  font-size: 13px;
  font-weight: 600;
}

.sl-ws-chip rect {
  fill: var(--paper);
  stroke: color-mix(in oklab, var(--red-hot) 26%, var(--hair-mid));
  transition: fill 140ms ease, stroke 140ms ease;
}

.sl-ws-chip text {
  fill: var(--ink-mid);
  font-family: var(--mono);
  font-size: 11px;
  pointer-events: none;
}

.sl-ws-chip:focus-visible rect,
.sl-ws-chip:hover rect {
  fill: color-mix(in oklab, var(--red-hot) 10%, var(--paper));
  stroke: var(--red-hot);
  stroke-width: 1.5;
}

.sl-ws-chip:focus-visible text,
.sl-ws-chip:hover text {
  fill: var(--red);
}

.sl-card.is-hot {
  background: color-mix(in oklab, var(--red-hot) 5%, var(--paper));
  box-shadow: inset 0 0 0 1px var(--red-hot);
}

.sl-card.is-hot .sl-card-meta {
  color: var(--red);
}

.sl-dg-arrow,
.sl-dg-arrow-tip {
  fill: none;
  stroke: var(--red-hot);
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sl-dg-flow-node .sl-dg-title { font-size: 16px; font-weight: 660; }

.sl-section-infrastructure {
  overflow: visible;
}

.sl-section-infrastructure .sl-cards {
  margin-top: 0;
}

.sl-section-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-md) var(--s-lg);
  margin-top: var(--s-xl);
}

.sl-section-actions .sl-section-cta {
  margin-top: 0;
}

.seneca-landing .sl-btn-quiet {
  display: inline-flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.seneca-landing .sl-btn-quiet:hover {
  color: var(--ink);
}

.sl-band {
  border-top: 1px solid var(--hair-mid);
  background: var(--ink);
  color: var(--paper);
}

.sl-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-lg);
  padding-block: clamp(40px, 5vw, 64px);
}

.sl-band h2 {
  max-width: 22ch;
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 720;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.sl-band p {
  max-width: 46ch;
  margin: 10px 0 0;
  color: color-mix(in oklab, var(--paper) 72%, var(--ink));
}

.sl-band-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-md);
}

.seneca-landing .sl-btn-invert {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.seneca-landing .sl-band .sl-btn-quiet {
  color: color-mix(in oklab, var(--paper) 70%, var(--ink));
}

.seneca-landing .sl-band .sl-btn-quiet:hover {
  color: var(--paper);
}

.sl-actions .sl-btn-quiet {
  min-height: 44px;
}

@media (prefers-reduced-motion: no-preference) {
  .sl-motion [data-sl-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .sl-motion [data-sl-reveal].is-visible {
    opacity: 1;
    transform: none;
  }

  .sl-motion [data-sl-reveal] .sl-dg-draw {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
  }

  .sl-motion [data-sl-reveal].is-visible .sl-dg-draw {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 560px) {
  .sl-proof-inner {
    justify-content: flex-start;
    gap: 8px 18px;
  }

  .sl-hero-sub {
    max-width: 42ch;
    margin-inline: auto;
    font-size: 0.625rem;
  }

  .sl-dg-wide {
    display: none;
  }

  .sl-dg-narrow {
    display: block;
  }

  .sl-figure-agent .sl-dg-part > text:not(.sl-dg-meta) {
    font-size: 13px;
  }

  .sl-dg-workspace-agents text {
    font-size: 11px;
  }

  .sl-band-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .sl-figcap {
    font-size: 0.5625rem;
  }
}
