/* ============================================================================
   scrollcraft.css: the taste floor
   ----------------------------------------------------------------------------
   Two layers, and the split matters:

     TOKENS   what you override per brand. Colour roles, the type ramp, the
              spacing scale, elevation, motion. A brand is ~12 values.
     DEVICES  what the engine drives. Do not restyle these to taste; they are
              the mechanism. Style your own markup instead.

   Nothing here draws a "component". There are no card, badge, or pill classes,
   because a stylesheet that ships those is how every page built on it ends up
   with the same shapes. You get a floor and a vocabulary; the composition is
   yours.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  /* --- colour roles. Override these six and the page is rebranded. -------- */
  --sc-canvas:      #08090b;   /* the page ground. Drift interpolates this.   */
  --sc-surface:     #101217;   /* anything raised off the ground             */
  --sc-ink:         #f4f2ef;   /* primary text                               */
  --sc-ink-soft:    #9a9ba1;   /* secondary text. Tinted, never flat gray.   */
  --sc-accent:      #d8ff3e;   /* ONE accent. It owns a region, not confetti. */
  --sc-accent-ink:  #08090b;   /* text that sits on the accent               */

  --sc-hairline:    color-mix(in oklab, var(--sc-ink) 12%, transparent);
  --sc-hairline-strong: color-mix(in oklab, var(--sc-ink) 22%, transparent);

  /* --- type. Two families max. Display carries voice, text carries prose. - */
  --sc-font-display: "Instrument Sans", "Geist", system-ui, sans-serif;
  --sc-font-text:    "Geist", system-ui, sans-serif;
  --sc-font-mono:    "Geist Mono", ui-monospace, monospace;

  /* Fluid ramp. Tracking tightens as size grows because a face set at 6rem
     with 0 tracking reads loose; this is optical correction, not decoration. */
  --sc-t-xs:   clamp(0.75rem, 0.72rem + 0.15vw, 0.82rem);
  --sc-t-sm:   clamp(0.875rem, 0.84rem + 0.18vw, 0.95rem);
  --sc-t-base: clamp(1rem, 0.96rem + 0.22vw, 1.125rem);
  --sc-t-lg:   clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --sc-t-xl:   clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem);
  --sc-t-2xl:  clamp(2.1rem, 1.6rem + 2.4vw, 3.4rem);
  --sc-t-3xl:  clamp(2.8rem, 1.9rem + 4.2vw, 5rem);
  --sc-t-4xl:  clamp(3.4rem, 1.9rem + 6.6vw, 7.5rem);

  --sc-track-tight:  -0.035em;
  --sc-track-snug:   -0.02em;
  --sc-track-normal: -0.005em;
  --sc-track-wide:    0.08em;

  --sc-leading-none: 0.94;
  --sc-leading-tight: 1.06;
  --sc-leading-body: 1.62;

  --sc-measure: 62ch;

  /* --- space. 4px base: the useful middle steps an 8-only scale misses. --- */
  --sc-1: 0.25rem;  --sc-2: 0.5rem;   --sc-3: 0.75rem;  --sc-4: 1rem;
  --sc-5: 1.5rem;   --sc-6: 2rem;     --sc-7: 3rem;     --sc-8: 4rem;
  --sc-9: 6rem;     --sc-10: 8rem;    --sc-11: 12rem;

  /* Section rhythm is fluid so a phone doesn't inherit desktop air. */
  --sc-section: clamp(4.5rem, 9vw, 11rem);
  --sc-gutter:  clamp(1.25rem, 5vw, 5.5rem);
  --sc-maxw:    82rem;

  /* --- radius. Pick one scale for the page and hold it. ------------------- */
  --sc-r-sm: 6px;  --sc-r-md: 12px;  --sc-r-lg: 20px;  --sc-r-pill: 999px;

  /* --- elevation. Every shadow has an offset AND a soft blur, and is tinted
         to the canvas hue. A zero-offset coloured halo is decoration, not
         depth, so there isn't one here. ---------------------------------- */
  --sc-shadow-color: 220 40% 2%;
  --sc-e1: 0 1px 2px hsl(var(--sc-shadow-color) / 0.28),
           0 2px 6px -1px hsl(var(--sc-shadow-color) / 0.20);
  --sc-e2: 0 2px 4px hsl(var(--sc-shadow-color) / 0.24),
           0 8px 18px -4px hsl(var(--sc-shadow-color) / 0.30);
  --sc-e3: 0 4px 8px hsl(var(--sc-shadow-color) / 0.22),
           0 18px 40px -8px hsl(var(--sc-shadow-color) / 0.38),
           0 48px 90px -24px hsl(var(--sc-shadow-color) / 0.30);

  /* Edge light: a 1px top highlight sells a raised surface better than any
     amount of blur, because real raised things catch light on their lip. */
  --sc-edge: inset 0 1px 0 color-mix(in oklab, var(--sc-ink) 10%, transparent);

  /* --- motion. Built-in CSS easings are too weak for UI. ------------------ */
  --sc-ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --sc-ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --sc-ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --sc-d-fast: 160ms;  --sc-d-base: 240ms;  --sc-d-slow: 420ms;

  --sc-z-stage: 1; --sc-z-copy: 20; --sc-z-chrome: 60;
}

/* --------------------------------------------------------------- reset -- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sc-canvas);
  color: var(--sc-ink);
  font-family: var(--sc-font-text);
  font-size: var(--sc-t-base);
  line-height: var(--sc-leading-body);
  letter-spacing: var(--sc-track-normal);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-synthesis-weight: none;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ------------------------------------------------- the browser surfaces --
   The parts you did not draw still carry the design. Selection, caret, focus
   ring, scrollbar and tabular numerals all ship with defaults that belong to no
   design system. Theming them is the cheapest signal that a page was built
   rather than assembled, and it is the step that gets skipped most reliably. */
::selection { background: var(--sc-accent); color: var(--sc-accent-ink); }
:root { caret-color: var(--sc-accent); accent-color: var(--sc-accent); }
:focus-visible {
  outline: 2px solid var(--sc-accent);
  outline-offset: 3px;
  border-radius: var(--sc-r-sm);
}
:where(a) { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
@supports (scrollbar-color: auto) {
  html { scrollbar-color: color-mix(in oklab, var(--sc-ink) 26%, transparent) transparent; scrollbar-width: thin; }
}
:where(table, .sc-nums, [data-sc-count]) { font-variant-numeric: tabular-nums; }

/* ----------------------------------------------------------- typography -- */
.sc-display {
  font-family: var(--sc-font-display);
  font-weight: 500;
  line-height: var(--sc-leading-none);
  letter-spacing: var(--sc-track-tight);
  text-wrap: balance;
  margin: 0;
}
.sc-display--xl { font-size: var(--sc-t-4xl); }
.sc-display--lg { font-size: var(--sc-t-3xl); }
.sc-display--md { font-size: var(--sc-t-2xl); letter-spacing: var(--sc-track-snug); }
.sc-lede {
  font-size: var(--sc-t-lg);
  line-height: 1.44;
  letter-spacing: var(--sc-track-snug);
  color: var(--sc-ink);
  max-width: 46ch;
  text-wrap: pretty;
  margin: 0;
}
.sc-body { max-width: var(--sc-measure); color: var(--sc-ink-soft); text-wrap: pretty; margin: 0; }
.sc-label {
  font-family: var(--sc-font-mono);
  font-size: var(--sc-t-xs);
  letter-spacing: var(--sc-track-wide);
  text-transform: uppercase;
  color: var(--sc-ink-soft);
}

/* ---------------------------------------------------------------- layout -- */
.sc-wrap { width: 100%; max-width: var(--sc-maxw); margin-inline: auto; padding-inline: var(--sc-gutter); }
.sc-section { padding-block: var(--sc-section); }
/* More space above a heading than below it: the gap belongs to the boundary,
   not to the pair. */
.sc-stack > * + * { margin-top: var(--sc-4); }
.sc-stack > :is(h1,h2,h3) { margin-top: var(--sc-7); }
.sc-stack > :is(h1,h2,h3):first-child { margin-top: 0; }
.sc-rule { height: 1px; border: 0; background: var(--sc-hairline); margin: 0; }

/* =============================================================== DEVICES ==
   Driven by the engine. Restyle your own markup, not these.                */

.sc-act--pinned { position: relative; }
.sc-stage {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: clip;
  z-index: var(--sc-z-stage);
}

/* scrub / sequence media */
.sc-stage :is(video[data-sc-scrub], canvas[data-sc-sequence], .sc-stage__poster) {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
video[data-sc-scrub] { opacity: 0; transition: opacity 380ms var(--sc-ease-out); }
.sc-has-clip video[data-sc-scrub] { opacity: 1; }
/* The poster is a live frame-holder, not a placeholder: it stays up until a
   real video frame has painted, which is what stops the blank-stage flash. */
.sc-stage__poster { z-index: 0; transition: opacity 380ms var(--sc-ease-out); }
.sc-has-clip .sc-stage__poster { opacity: 0; }

/* A scrim only where text sits. A full-frame darkening layer flattens the
   image everywhere to fix contrast in one corner. */
.sc-scrim {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(
    var(--sc-scrim-angle, 180deg),
    color-mix(in oklab, var(--sc-canvas) var(--sc-scrim-a, 78%), transparent) 0%,
    color-mix(in oklab, var(--sc-canvas) 30%, transparent) 42%,
    transparent 68%);
}
/* Point the scrim at the copy. A scrim gradient that darkens the top while the
   copy sits at the bottom fixes contrast nowhere and flattens the image
   everywhere, which is the most common way text-over-video goes wrong. */
.sc-scrim--bottom { --sc-scrim-angle: 0deg; }
.sc-scrim--left   { --sc-scrim-angle: 90deg; }
.sc-scrim--right  { --sc-scrim-angle: 270deg; }

/* Corner scrims, for copy anchored to a corner. An edge gradient has to darken
   a whole band across the frame to cover one corner; a corner gradient puts the
   density where the text is and leaves the rest of the image alone. Pair with
   .sc-copy--lead / .sc-copy--trail. */
.sc-scrim--lead {
  background: linear-gradient(to top right,
    color-mix(in oklab, var(--sc-canvas) 94%, transparent) 0%,
    color-mix(in oklab, var(--sc-canvas) 72%, transparent) 30%,
    color-mix(in oklab, var(--sc-canvas) 30%, transparent) 52%,
    transparent 72%);
}
.sc-scrim--trail {
  background: linear-gradient(to top left,
    color-mix(in oklab, var(--sc-canvas) 94%, transparent) 0%,
    color-mix(in oklab, var(--sc-canvas) 72%, transparent) 30%,
    color-mix(in oklab, var(--sc-canvas) 30%, transparent) 52%,
    transparent 72%);
}
/* A band across the bottom, for copy that spans the full width of the frame.
   That is what both corner anchors become below 860px, and it is also the right
   shape whenever the copy block is wider than a corner. */
.sc-scrim--band {
  background: linear-gradient(to top,
    color-mix(in oklab, var(--sc-canvas) 94%, transparent) 0%,
    color-mix(in oklab, var(--sc-canvas) 74%, transparent) 22%,
    color-mix(in oklab, var(--sc-canvas) 30%, transparent) 42%,
    transparent 58%);
}
.sc-scrim--vignette {
  background: radial-gradient(120% 90% at 50% 45%, transparent 40%,
              color-mix(in oklab, var(--sc-canvas) 70%, transparent) 100%);
}

/* copy over a stage.
   max-width is in rem, never ch. A `ch` on this container resolves against the
   CONTAINER's font-size (body size), not the display size of the heading inside
   it, so `max-width: 20ch` here silently produces a ~180px column and wraps a
   hero headline to six lines. Set a ch measure on the text element itself. */
.sc-copy {
  position: absolute; z-index: var(--sc-z-copy);
  inset-inline: var(--sc-gutter);
  max-width: min(46rem, 76vw);
  will-change: opacity, transform;
}
.sc-copy--lead   { left: var(--sc-gutter); bottom: clamp(3rem, 12vh, 9rem); }
/* inset-inline FIRST. It is the shorthand for left+right, so declaring it after
   `left: 50%` resets left to auto and the block drifts off the left edge. */
.sc-copy--center { inset-inline: auto; left: 50%; top: 50%; translate: -50% -50%; text-align: center; }
.sc-copy--trail  { inset-inline: auto; right: var(--sc-gutter); bottom: clamp(3rem, 12vh, 9rem); text-align: right; }

/* cue defaults: the engine writes opacity/transform inline, these are the
   pre-paint state so nothing flashes before the first read() */
[data-sc-cue] { opacity: 0; will-change: opacity, transform; }
.sc-ready [data-sc-cue] { transition: none; }

/* kinetic split */
.sc-split { display: inline-block; overflow: hidden; vertical-align: top; }
/* Descenders live below the baseline; a line mask clipped to the line box eats
   the tails off g, y, p, j. The padding buys them room back. */
.sc-split--line { display: block; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.sc-split__i { display: inline-block; will-change: transform, opacity; }
.sc-is-split { opacity: 1 !important; }

/* horizontal rail */
[data-sc-pan] { display: flex; will-change: transform; }

/* reveal + parallax */
[data-sc-reveal] { will-change: clip-path; }
[data-sc-parallax] { will-change: transform; }

/* flow reveal (fires once) */
[data-sc-in], [data-sc-stagger] > * {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 620ms var(--sc-ease-out), transform 620ms var(--sc-ease-out);
}
[data-sc-in].sc-in, [data-sc-stagger] > .sc-in { opacity: 1; transform: none; }

/* pointer devices */
[data-sc-tilt] { transform-style: preserve-3d; will-change: transform; }
[data-sc-magnet] { will-change: transform; }
/* isolation always; position only if nothing more specific already set it.
   Written with :where() (zero specificity) on purpose: a plain `position:
   relative` here has the same weight as `.sc-stage` and, being later in the
   file, silently wins. A stage carrying both attributes then stops being
   sticky and the whole act scrolls away instead of pinning. */
[data-sc-spotlight] { isolation: isolate; }
:where([data-sc-spotlight]) { position: relative; }
[data-sc-spotlight]::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: radial-gradient(
    28rem 28rem at calc(var(--sc-mx, 0.5) * 100%) calc(var(--sc-my, 0.5) * 100%),
    color-mix(in oklab, var(--sc-accent) 16%, transparent), transparent 70%);
  opacity: 0; transition: opacity var(--sc-d-slow) var(--sc-ease-out);
}
[data-sc-spotlight]:hover::after { opacity: 1; }

/* =========================================================== WORLDFLIGHT ==
   One fixed stage for the whole page. The only thing in document flow is the
   spacer, and it is empty. If you find yourself adding a section here, you want
   act mode instead: the moment a real block scrolls past the fixed stage, the
   page has a seam again and the whole point is gone.                        */

[data-sc-mode="worldflight"] { position: relative; }

.sc-world {
  position: fixed; inset: 0;
  overflow: clip;
  z-index: var(--sc-z-stage);
  background: var(--sc-canvas);
}

/* Every leg is mounted for the life of the page and stacked in the same box.
   The engine owns opacity, visibility and z-index here; do not set them. */
.sc-world__seg {
  position: absolute; inset: 0;
  opacity: 0;
  will-change: opacity;
}
.sc-world__seg > :is(video, img, canvas) {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
/* The poster is the frame-holder AND the first camera move: the engine pushes
   it in slowly until a real decoded frame is available to replace it. */
.sc-world__poster {
  z-index: 0;
  transform-origin: 50% 50%;
  transition: opacity 420ms var(--sc-ease-out);
}
.sc-world__seg > video { z-index: 1; }
.sc-world__seg.sc-has-clip .sc-world__poster { opacity: 0; }
/* The act stylesheet lights a clip through its ancestor act. A worldflight leg
   has no act, so match the class the engine also writes on the clip itself. */
video[data-sc-scrub].sc-has-clip { opacity: 1; }

/* The copy layer is fixed too, and inert by default: the engine hands
   pointer-events back to a block only while it is actually legible. */
.sc-world__copy {
  position: fixed; inset: 0;
  z-index: var(--sc-z-copy);
  pointer-events: none;
}
.sc-world__scrim { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
[data-sc-copy] {
  opacity: 0;
  pointer-events: none;
  will-change: opacity, transform;
}
.sc-ready [data-sc-copy] { transition: none; }

/* The track. Empty on purpose. */
.sc-world__spacer { pointer-events: none; }

/* scroll progress */
[data-sc-progress] {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: var(--sc-z-chrome);
  background: var(--sc-accent); transform-origin: 0 50%; transform: scaleX(0);
  will-change: transform;
}

/* ----------------------------------------------------------- atmosphere --
   Depth is not only shadow. Grain keeps a flat dark ground from banding, and
   it is the difference between "a dark page" and "a lit room". */
.sc-grain { position: fixed; inset: 0; pointer-events: none; z-index: 3; opacity: 0.045; }
.sc-grain::before {
  content: ""; position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}

/* -------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  /* Fewer and gentler, not zero. Opacity still carries the reveal so the page
     is comprehensible; every position change is dropped. */
  [data-sc-in], [data-sc-stagger] > * { transform: none; transition-duration: 220ms; }
  [data-sc-parallax], [data-sc-pan], .sc-split__i { transform: none !important; }
  /* A wipe is a position change too. Show reveal content settled. */
  [data-sc-reveal] { clip-path: none !important; }
  /* A rail's transform IS its navigation, not decoration. Zeroing it the way
     parallax and kinetic type are zeroed parks the act on its first screenful
     and makes everything past the fold unreachable: a device degrading into
     missing content. Hand the travel back to the reader as an ordinary scroll
     region instead, so the same items are all still gettable without motion.
     A build that would rather re-lay the rail out as a grid can still do that;
     this is the floor, not the ceiling. */
  [data-sc-act="pan"] .sc-stage,
  [data-sc-act="pan"] [data-sc-stage] {
    overflow-x: auto; overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
  }
  [data-sc-pan] > * { scroll-snap-align: center; }
  [data-sc-spotlight]::after { display: none; }
  /* A worldflight keeps its whole story here. No clip is ever fetched, so the
     posters are the film, and they cross-dissolve through exactly the same
     seams at exactly the same scroll positions. The push-in and the copy drift
     are the only things that go. */
  .sc-world__poster, [data-sc-copy] { transform: none !important; }
}

/* --------------------------------------------------------------- mobile -- */
@media (max-width: 860px) {
  .sc-copy { inset-inline: var(--sc-gutter); max-width: none; }
  .sc-copy--trail { text-align: left; }
  .sc-stage { height: 100svh; }
  /* .sc-copy--trail re-anchors to the left and spans the full width here, so a
     bottom-RIGHT corner gradient darkens the one corner the copy just left and
     guarantees a contrast failure over any bright clip. Point the density at
     the copy: the same band .sc-scrim--band paints. */
  .sc-scrim--trail {
    background: linear-gradient(to top,
      color-mix(in oklab, var(--sc-canvas) 94%, transparent) 0%,
      color-mix(in oklab, var(--sc-canvas) 74%, transparent) 22%,
      color-mix(in oklab, var(--sc-canvas) 30%, transparent) 42%,
      transparent 58%);
  }
}

/* ============================================================================
   StealthPaid landing: page theme and page-specific styling.
   Engine content above this line is untouched (see BRIEF.md, signature move).
   ========================================================================== */

:root {
  /* six colour roles, per taste.md. Canvas/surface match the app's own
     .theme-dark tokens (web/src/index.css) so the peak act is not just
     "inspired by" the pay page, it is built on the same values. */
  --sc-canvas:      #020308;
  --sc-surface:     #0a0b10;
  --sc-ink:         #f2f3f6;
  --sc-ink-soft:    #9aa0ab;
  --sc-accent:      #3a6ffb;   /* the merchant app's own flag blue, used once */
  --sc-accent-ink:  #ffffff;

  --sc-font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --sc-font-text:    "Inter", system-ui, sans-serif;
  --sc-font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* the pay page's exact dark tokens, reused verbatim inside the peak act */
  --px-canvas: #020308;
  --px-surface: #0a0b10;
  --px-ink: rgba(255, 255, 255, 0.88);
  --px-ink-soft: rgba(255, 255, 255, 0.68);
  --px-ink-mute: rgba(255, 255, 255, 0.36);
  --px-line: rgba(255, 255, 255, 0.1);
  --px-cta-bg: #ffffff;
  --px-cta-ink: #090a0e;
  --px-input-bg: rgba(255, 255, 255, 0.07);
}

::selection { background: var(--sc-accent); color: #fff; }

/* ---------------------------------------------------------------- header -- */
.site-bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--sc-z-chrome);
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(1.1rem, 4vw, 2.4rem);
  background: var(--sc-canvas);
  border-bottom: 1px solid var(--sc-hairline);
}
.site-bar__mark { display: flex; align-items: center; gap: 10px; color: var(--sc-ink); }
.site-bar__mark img { width: 26px; height: 26px; }
.site-bar__word { font-family: var(--sc-font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.site-bar__word b { font-weight: 700; }
.site-bar__word span { opacity: 0.7; font-weight: 500; }
.site-bar__nav { display: flex; align-items: center; gap: 20px; }
.site-bar__doc {
  font-size: 13px; font-weight: 600; color: var(--sc-ink-soft);
  padding: 6px 2px;
}
.site-bar__doc:hover { color: var(--sc-ink); }
.pill-cta {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: var(--sc-r-pill);
  background: var(--sc-ink); color: var(--sc-canvas);
  padding: 9px 18px; font-weight: 600; font-size: 13px; line-height: 1;
  transition: opacity var(--sc-d-fast) var(--sc-ease-out), transform var(--sc-d-fast) var(--sc-ease-out);
}
.pill-cta:hover { opacity: 0.86; }
.pill-cta:active { transform: scale(0.97); }

/* ------------------------------------------------------- settlement ledger --
   The signature move. Full width, bottom edge, present the whole page.
   Decorative (aria-hidden): the same content exists as real markup inside
   each act, so nothing here is exclusive to a mouse-driven reader. */
.settle-ledger {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  padding: 9px clamp(1.1rem, 4vw, 2.4rem);
  background: color-mix(in oklab, var(--sc-canvas) 92%, transparent);
  border-top: 1px solid var(--sc-hairline);
  font-family: var(--sc-font-mono); font-size: 11.5px; letter-spacing: 0.01em;
  color: var(--sc-ink-soft);
  backdrop-filter: none;
}
.settle-ledger__dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--sc-accent);
  flex: none;
}
.settle-ledger__label {
  text-transform: uppercase; letter-spacing: 0.1em; font-size: 10px;
  color: color-mix(in oklab, var(--sc-ink-soft) 70%, transparent);
  flex: none;
}
.settle-ledger__line {
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  color: var(--sc-ink);
}
@media (max-width: 640px) {
  .settle-ledger { font-size: 10.5px; padding-inline: 1rem; }
  .settle-ledger__label { display: none; }
}

/* ------------------------------------------------------------------ hero -- */
.hero-stage { display: flex; align-items: center; justify-content: center; padding: 0 1.25rem; }
.hero-objects { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-objects img {
  position: absolute; width: clamp(64px, 9vw, 128px); opacity: 0.5;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.55));
}
.hero-objects img:nth-child(1) { top: 14%; left: 8%; }
.hero-objects img:nth-child(2) { bottom: 10%; right: 9%; width: clamp(56px, 7vw, 100px); }
.hero-copy { position: relative; z-index: 1; max-width: 44rem; text-align: left; }
.hero-copy .sc-body { margin-top: var(--sc-4); max-width: 42ch; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--sc-font-mono); font-size: 13px; color: var(--sc-ink-soft);
  border: 1px solid var(--sc-hairline-strong); border-radius: var(--sc-r-pill);
  padding: 8px 16px; margin-top: var(--sc-6);
  background: color-mix(in oklab, var(--sc-ink) 5%, transparent);
}
.hero-chip::before { content: "pay.stealthpaid.com/"; opacity: 0.55; }
.hero-chip b { color: var(--sc-ink); font-weight: 600; }
.hero-actions { margin-top: var(--sc-6); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: #08090b; border-radius: var(--sc-r-pill);
  padding: 13px 24px; font-weight: 600; font-size: 14.5px;
  box-shadow: var(--sc-e2);
  transition: transform var(--sc-d-fast) var(--sc-ease-out), box-shadow var(--sc-d-fast) var(--sc-ease-out);
}
.cta-primary:hover { box-shadow: var(--sc-e3); }
.cta-primary:active { transform: scale(0.97); }
.cta-ghost { font-size: 14px; font-weight: 600; color: var(--sc-ink-soft); }
.cta-ghost:hover { color: var(--sc-ink); }

/* --------------------------------------------------------------- tension -- */
.tension-wrap { max-width: 52rem; }
.tension-wrap .sc-rule { margin: var(--sc-6) 0; }
.tension-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sc-7); }
@media (max-width: 760px) { .tension-grid { grid-template-columns: 1fr; gap: var(--sc-5); } }
.tension-grid p { font-size: 15px; }

/* ------------------------------------------------------------------ loop -- */
.loop-rail { align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); padding: 0 6vw; }
.loop-lead { flex: none; width: min(60vw, 22rem); }
.loop-note { flex: none; width: min(70vw, 26rem); }
.loop-item {
  flex: none; width: clamp(13rem, 20vw, 16rem);
  display: flex; flex-direction: column; gap: var(--sc-3);
}
.loop-item__num {
  font-family: var(--sc-font-mono); font-size: 12px; color: var(--sc-ink-soft);
  letter-spacing: 0.06em;
}
.loop-item__icon {
  width: 52px; height: 52px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--sc-r-md); background: var(--sc-surface); border: 1px solid var(--sc-hairline);
}
.loop-item__icon img { width: 30px; height: 30px; }
.loop-item h3 { font-family: var(--sc-font-display); font-size: 19px; font-weight: 600; margin: 0; }
.loop-item p { font-size: 13.5px; color: var(--sc-ink-soft); margin: 0; line-height: 1.5; }
.loop-arrow { color: var(--sc-ink-soft); font-size: 20px; align-self: center; opacity: 0.5; }

/* -------------------------------------------------------------- PEAK act -- */
.demo-stage { display: flex; align-items: center; justify-content: center; padding: 6vh 1.25rem; gap: clamp(2rem, 5vw, 5rem); flex-wrap: wrap; }
.demo-intro { flex: 1 1 20rem; max-width: 26rem; }
.demo-intro .sc-body { margin-top: var(--sc-4); }
.demo-status-line {
  margin-top: var(--sc-6); font-family: var(--sc-font-mono); font-size: 12.5px;
  color: var(--sc-ink-soft); display: flex; align-items: center; gap: 8px;
}
.demo-status-line b { color: var(--sc-ink); font-weight: 600; }

.demo-bezel {
  flex: none; width: min(92vw, 21rem);
  border-radius: 26px; padding: 8px;
  background: linear-gradient(160deg, #1c1e26, #08090c);
  box-shadow: var(--sc-e3), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.demo-screen {
  border-radius: 20px; overflow: hidden;
  background: var(--px-canvas); color: var(--px-ink);
  min-height: 30rem;
  display: flex; flex-direction: column;
  padding: 26px 22px 20px;
  font-family: var(--sc-font-text);
}
.demo-mark { text-align: center; font-family: var(--sc-font-display); font-weight: 700; font-size: 14px; letter-spacing: -0.01em; margin-bottom: 22px; }
.demo-mark img { width: 22px; height: 22px; display: block; margin: 0 auto 8px; }
.demo-card {
  background: color-mix(in oklab, var(--px-ink) 5%, transparent);
  border: 1px solid var(--px-line); border-radius: 16px;
  padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 14px;
}
.demo-badge {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: var(--sc-r-pill);
  background: color-mix(in oklab, var(--px-ink) 10%, transparent);
  color: var(--px-ink-soft);
  transition: background var(--sc-d-base) var(--sc-ease-out), color var(--sc-d-base) var(--sc-ease-out);
}
.demo-badge[data-state="paid"], .demo-badge[data-state="sent"], .demo-badge[data-state="webhook"] {
  background: color-mix(in oklab, #34d399 22%, transparent); color: #bdf6dc;
}
.demo-amount { font-size: 32px; font-weight: 700; letter-spacing: -0.01em; }
.demo-amount span { font-size: 15px; font-weight: 500; color: var(--px-ink-soft); margin-left: 4px; }
.demo-to { font-size: 12.5px; color: var(--px-ink-soft); }
.demo-field { border: 1px solid var(--px-line); background: var(--px-input-bg); border-radius: 10px; padding: 12px 13px; font-size: 12.5px; color: var(--px-ink-mute); }
.demo-btn {
  border-radius: 10px; background: var(--px-cta-bg); color: var(--px-cta-ink);
  padding: 12px; text-align: center; font-weight: 600; font-size: 13.5px;
}
.demo-receipt { margin-top: 6px; border-top: 1px dashed var(--px-line); padding-top: 12px; display: flex; flex-direction: column; gap: 7px; min-height: 5.6em; }
.demo-receipt__row {
  display: flex; justify-content: space-between; gap: 10px;
  font-family: var(--sc-font-mono); font-size: 11.5px; color: var(--px-ink-mute);
  opacity: 0; transform: translateY(4px);
  transition: opacity var(--sc-d-base) var(--sc-ease-out), transform var(--sc-d-base) var(--sc-ease-out);
}
.demo-receipt__row.is-on { opacity: 1; transform: none; color: var(--px-ink-soft); }
.demo-receipt__row b { color: var(--px-ink); font-weight: 600; }
@media (prefers-reduced-motion: reduce) {
  .demo-receipt__row { transition: none; }
}

/* -------------------------------------------------------------- substance -- */
.substance-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .substance-grid { grid-template-columns: 1fr; } }
.dash-bezel {
  border-radius: 16px; overflow: hidden; box-shadow: var(--sc-e3);
  border: 1px solid var(--sc-hairline-strong);
  background: #f6f7f8; color: #16181d;
}
.dash-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eceef1; }
.dash-bar span { width: 9px; height: 9px; border-radius: 999px; background: #d9dae0; }
.dash-body { display: grid; grid-template-columns: 8rem 1fr; min-height: 15rem; }
.dash-side { background: #0a0b10; padding: 16px 10px; display: flex; flex-direction: column; gap: 4px; }
.dash-side span { font-size: 12px; color: rgba(255,255,255,0.55); padding: 7px 10px; border-radius: 8px; }
.dash-side span.is-on { background: rgba(255,255,255,0.08); color: #fff; font-weight: 600; }
.dash-main { padding: 16px 18px; }
.dash-main .dash-label { margin: 0 0 12px; font-size: 13px; font-weight: 700; }
.dash-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-bottom: 1px solid #e7e7ea; font-size: 12.5px; }
.dash-row:last-child { border-bottom: none; }
.dash-status { font-size: 10.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.dash-status.paid { background: #e1f8ee; color: #0f7a4d; }
.dash-status.pending { background: #eaf0ff; color: #2553cf; }

.substance-copy .fee-line {
  margin-top: var(--sc-5); font-family: var(--sc-font-mono); font-size: 15px;
  color: var(--sc-ink); border-left: 1px solid var(--sc-hairline-strong); padding-left: 14px;
}
.substance-copy .sc-body { margin-top: var(--sc-4); }
.woo-row {
  margin-top: var(--sc-7); display: flex; align-items: center; gap: 16px;
  padding-top: var(--sc-6); border-top: 1px solid var(--sc-hairline);
}
.woo-row img { width: 40px; height: 40px; flex: none; }
.woo-row h3 { font-family: var(--sc-font-display); font-size: 16px; margin: 0 0 4px; font-weight: 600; }
.woo-row p { margin: 0; font-size: 13.5px; color: var(--sc-ink-soft); }
.woo-row a { font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.icon-row { display: flex; gap: clamp(1.4rem, 4vw, 2.6rem); flex-wrap: wrap; margin-top: var(--sc-8); }
.icon-row__item { flex: 1 1 12rem; display: flex; gap: 12px; }
.icon-row__item img { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.icon-row__item h3 { font-size: 14px; margin: 0 0 3px; font-weight: 600; }
.icon-row__item p { font-size: 12.5px; color: var(--sc-ink-soft); margin: 0; line-height: 1.5; }

/* -------------------------------------------------------------- explainer --
   Deliberately plain. No pin, no clip, no per-frame drive: data-sc-in fades
   the whole block in once on entry and then gets out of the way. The rhythm
   change from the acts around it is intentional. */
.explainer-wrap { max-width: 46rem; }
.explainer-wrap > .sc-display { margin-top: var(--sc-2); }
.explainer-block { margin-top: var(--sc-8); padding-top: var(--sc-7); border-top: 1px solid var(--sc-hairline); }
.explainer-block:first-of-type { margin-top: var(--sc-7); }
.explainer-h {
  font-family: var(--sc-font-display); font-weight: 600; font-size: 18px;
  margin: 0 0 var(--sc-4);
}

.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sc-4); }
.how-steps li { display: flex; align-items: flex-start; gap: 14px; }
.how-steps p { margin: 0; font-size: 14.5px; color: var(--sc-ink-soft); line-height: 1.55; }
.how-steps__num {
  flex: none; width: 26px; height: 26px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--sc-font-mono); font-size: 12px; color: var(--sc-ink);
  border: 1px solid var(--sc-hairline-strong); margin-top: 1px;
}
.how-steps--tight { gap: var(--sc-3); }

.fee-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fee-table tr { border-bottom: 1px solid var(--sc-hairline); }
.fee-table tr:last-child { border-bottom: none; }
.fee-table th, .fee-table td { text-align: left; padding: 11px 0; font-weight: 400; vertical-align: top; }
.fee-table th {
  width: 40%; color: var(--sc-ink-soft); font-family: var(--sc-font-mono);
  font-size: 12.5px; letter-spacing: 0.01em; padding-right: var(--sc-4);
}
.fee-table td { color: var(--sc-ink); }
@media (max-width: 560px) {
  .fee-table, .fee-table tbody, .fee-table tr, .fee-table th, .fee-table td { display: block; width: auto; }
  .fee-table tr { padding: 10px 0; }
  .fee-table th { padding: 0 0 4px; }
  .fee-table td { padding: 0; }
}

.timing-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sc-3); }
.timing-list li {
  position: relative; padding-left: 20px; font-size: 14.5px; color: var(--sc-ink-soft); line-height: 1.55;
}
.timing-list li::before {
  content: ""; position: absolute; left: 0; top: 0.55em; width: 6px; height: 6px;
  border-radius: 999px; background: var(--sc-accent);
}

.explainer-actions { margin-top: var(--sc-6); display: flex; gap: var(--sc-6); flex-wrap: wrap; }
.cta-ghost-line {
  font-size: 13.5px; font-weight: 600; color: var(--sc-ink);
  text-decoration: underline; text-underline-offset: 0.22em;
}
.cta-ghost-line:hover { color: var(--sc-accent); }

.faq-list { display: grid; gap: 1px; background: var(--sc-hairline); border: 1px solid var(--sc-hairline); border-radius: var(--sc-r-md); overflow: hidden; }
.faq-list details { background: var(--sc-canvas); }
.faq-list summary {
  cursor: pointer; list-style: none; padding: 14px 18px; font-size: 14.5px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; flex: none; color: var(--sc-ink-soft); font-weight: 400; font-size: 18px; line-height: 1;
}
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list summary:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: -2px; }
.faq-list details p { margin: 0; padding: 0 18px 16px; font-size: 13.5px; color: var(--sc-ink-soft); line-height: 1.6; }

.explainer-note {
  margin-top: var(--sc-8); padding-top: var(--sc-6); border-top: 1px solid var(--sc-hairline);
  font-size: 13.5px; color: var(--sc-ink-soft); max-width: 56ch;
}

/* ------------------------------------------------------------------ close -- */
.close-inner { text-align: center; max-width: 34rem; margin: 0 auto; padding: 0 1.25rem; }
.close-inner h2 { text-wrap: balance; }
.typed-link {
  margin: var(--sc-6) auto 0; display: inline-flex; align-items: center;
  font-family: var(--sc-font-mono); font-size: 15px; color: var(--sc-ink-soft);
  border: 1px solid var(--sc-hairline-strong); border-radius: var(--sc-r-pill);
  padding: 10px 18px; background: color-mix(in oklab, var(--sc-ink) 5%, transparent);
}
.typed-link__prefix { opacity: 0.55; }
.typed-link__value { color: var(--sc-ink); }
.typed-link__caret { display: inline-block; width: 7px; height: 1em; margin-left: 2px; background: var(--sc-accent); animation: sc-caret 1s steps(1) infinite; vertical-align: -0.15em; }
@keyframes sc-caret { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .typed-link__caret { animation: none; } }
.close-actions { margin-top: var(--sc-7); }
.close-foot {
  margin-top: var(--sc-9); padding-top: var(--sc-5); border-top: 1px solid var(--sc-hairline);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 12px; color: var(--sc-ink-soft); flex-wrap: wrap;
}

/* --------------------------------------------------------------- mobile -- */
@media (max-width: 640px) {
  .demo-bezel { width: 100%; }
}

/* --------------------------------------------------------------- a11y -- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100%; left: 12px; z-index: 100;
  background: #fff; color: #08090b; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; font-size: 13px;
  transition: top var(--sc-d-fast) var(--sc-ease-out);
}
.skip-link:focus { top: 12px; }

/* ---- audience: hero eyebrow and the category row in the explainer -----------
   The front door named no audience at all, which is the one thing a merchant in a
   declined category needs to see first. The eyebrow says who it is for above the
   headline; the category row says it concretely further down. */
.hero-eyebrow { margin: 0 0 var(--sc-3); }

.cat-row {
  list-style: none; margin: var(--sc-4) 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.cat-row li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px 7px 10px; border-radius: var(--sc-r-pill);
  border: 1px solid var(--sc-hairline-strong);
  background: color-mix(in oklab, var(--sc-ink) 5%, transparent);
  font-size: 13px; font-weight: 500; color: var(--sc-ink-soft);
}
.cat-row .ico { width: 1.15em; height: 1.15em; color: var(--sc-ink); }

/* ---- icon sprite base ------------------------------------------------------
   Lives here, not in enterprise.css, because every page loads landing.css while
   only the enterprise pages load enterprise.css. When this rule sat there, the
   docs sidebar icons had no sizing at all and fell back to the SVG default of
   300x150, rendering enormous. An icon with no width is not a small mistake, so
   the rule belongs on the stylesheet nothing can skip.

   em-sized so it tracks its neighbouring text; currentColor so one sprite works
   on the near-black ground, on the light customer surface, and in both themes. */
.ico {
  width: 1.35em; height: 1.35em; display: block; flex: 0 0 auto;
  fill: none; stroke: currentColor;
  stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
}
