/*
  The resources pages: methodology, the bot, privacy, terms, integrations and
  the custom agent page. Each one opens on its own scene, built from the site's
  evidence vocabulary and the tokens in site.css:
    yellow  what the bot said        (--claim-bg)
    orange  what the store's site says (--rule-bg, on cream paper, --sheet)
    red     a proven error, and only that
    ruby    the trail that links a quote to its rule and its verdict
  Scenes play once, from the site's own reveal (site.js adds .is-in); loops run
  only while on screen (resources.js adds .rs-live). Reduced motion shows the
  finished frame: site.css makes every transition instant.
*/

:root {
  --rs-in: cubic-bezier(0.23, 1, 0.32, 1);
  --rs-move: cubic-bezier(0.77, 0, 0.175, 1);
  --rs-ok: #1b6b3a;
  --rs-ok-bg: rgba(46, 160, 67, 0.1);
  --rs-ok-line: rgba(46, 160, 67, 0.32);
}
[data-theme="dark"] { --rs-ok: #7ee2a0; --rs-ok-bg: rgba(46, 160, 67, 0.14); --rs-ok-line: rgba(126, 226, 160, 0.3); }

/* Highlights on these pages are drawn at once unless a scene draws them itself. */
main mark.claim::before, main mark.rule::before { transform: scaleX(1); }

/* ---------- Shared pieces ---------- */

.rs-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 0.02em; color: var(--accent-ink); margin-bottom: 16px; }
.rs-center { text-align: center; }
.rs-center .section-title { margin-inline: auto; }
.rs-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ruby); }

/* The verdict stamp: drawn once, in three states that cannot be confused. */
.rs-stamp {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 2px solid currentColor; border-radius: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.09em; line-height: 1.2; text-transform: uppercase; white-space: nowrap;
  transform: rotate(-5deg);
}
.rs-stamp.is-contra { color: var(--error); background: color-mix(in srgb, var(--panel) 86%, transparent); box-shadow: inset 0 0 0 1px currentColor; }
.rs-stamp.is-ok { color: var(--ink-2); border-width: 1.5px; transform: rotate(-2deg); }
.rs-stamp.is-ok::before { content: ""; width: 9px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(-45deg); }
.rs-stamp.is-none { color: var(--faint); border-style: dashed; border-width: 1.5px; transform: none; font-weight: 600; }

.rs-pill-err { display: inline-flex; padding: 3px 7px; border-radius: var(--r-xs); background: #d8351e; color: #fff; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* Thin ruby wires between two real elements; resources.js measures and draws them. */
.rs-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; }
.rs-wire { fill: none; stroke: var(--ruby); stroke-width: 1.25; stroke-linecap: round; opacity: 0.85; }
.rs-wire-end { fill: var(--ruby); }
.js [data-reveal] .rs-wire { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.7s var(--rs-in) var(--wd, 0s); }
.js [data-reveal] .rs-wire-end { opacity: 0; transition: opacity 0.3s var(--ease-ui) calc(var(--wd, 0s) + 0.5s); }
.js .is-in .rs-wire { stroke-dashoffset: 0; }
.js .is-in .rs-wire-end { opacity: 1; }

/* ======================================================================
   Methodology: one sentence taken apart, then the trail it leaves.
   ====================================================================== */

.rs-mhero { padding-bottom: clamp(56px, 7vw, 96px); }
.rs-mhero-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.rs-mhero .page-title { max-width: 9.212em; }
.rs-chapters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.rs-chapters a {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; border: 1px solid var(--line-strong);
  background: var(--bg); font-size: 14px; color: var(--ink-2); text-decoration: none; transition: border-color 0.2s var(--ease-ui), color 0.2s var(--ease-ui);
}
.rs-chapters span { display: grid; place-items: center; min-width: 26px; height: 22px; border-radius: 999px; background: var(--surface-2); font-family: var(--mono); font-size: 11px; color: var(--mute); }
@media (hover: hover) and (pointer: fine) { .rs-chapters a:hover { border-color: var(--ghost-border); color: var(--accent-ink); } }

/* The specimen. */
.rs-dissect {
  position: relative; isolation: isolate; margin: 0; padding: clamp(18px, 2.4vw, 28px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 30px; row-gap: 36px; align-items: start;
  border-radius: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--lift-2);
}
.rs-dissect > :not(.rs-wires) { position: relative; z-index: 1; }
.rs-dx-n { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; color: var(--mute); white-space: nowrap; }
.rs-dx-n i { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--ruby); font-style: normal; font-size: 10px; color: var(--accent-ink); flex: none; }
.rs-dx-chat { grid-column: 1 / -1; }
.rs-dx-who { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.rs-dx-who b { font-weight: 500; }
.rs-dx-who time { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.rs-dx-avatar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #2f4a3a; color: #e9e2d0; font-family: Georgia, "Times New Roman", serif; font-size: 12px; }
.rs-dx-bubble {
  position: relative; isolation: isolate; width: fit-content; max-width: 100%; margin-top: 10px; padding: 12px 16px;
  border-radius: 14px 14px 14px 4px; background: var(--surface); border: 1px solid var(--line); font-size: 17px; line-height: 1.45; color: var(--ink);
}
.rs-dx-fan { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rs-dx-tag { display: grid; gap: 8px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); min-width: 0; }
.rs-dx-tag b { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.rs-dx-quote { justify-self: start; padding: 1px 5px; border-radius: 4px; background: var(--claim-bg); box-shadow: inset 0 -2px 0 var(--claim-line); }
.rs-dx-tokens { display: flex; gap: 4px; }
.rs-dx-tokens em { font-style: normal; padding: 1px 6px; border-radius: 4px; border: 1px dashed var(--line-strong); }
.rs-dx-source { grid-column: 1 / 3; display: grid; gap: 10px; }
.rs-dx-stack { position: relative; padding-top: 24px; }
.rs-dx-old {
  position: absolute; top: 0; left: 14px; right: -4px; height: 64px; padding: 5px 10px; border-radius: 8px 8px 0 0;
  background: color-mix(in srgb, var(--sheet) 82%, #8a7350); color: var(--sheet-mute); font-family: var(--mono); font-size: 10.5px; transform: rotate(1.2deg); transform-origin: left bottom;
}
.rs-dx-old span { margin-right: 6px; font-weight: 500; color: var(--sheet-ink); }
.rs-dx-sheet { position: relative; isolation: isolate; padding: 14px 16px; border-radius: 8px; background: var(--sheet); color: var(--sheet-ink); box-shadow: var(--lift-2); }
.rs-dx-url { display: grid; gap: 2px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--sheet-line); font-family: var(--mono); font-size: 10.5px; color: var(--sheet-mute); overflow-wrap: anywhere; }
.rs-dx-v { color: var(--sheet-ink); }
.rs-dx-rule { font-size: 14.5px; line-height: 1.5; }
.rs-dx-rule mark { color: var(--sheet-ink); }
.rs-dx-rule mark.rule::before { background: rgba(255, 97, 24, 0.2); box-shadow: inset 0 -2px 0 var(--orange); }
.rs-dx-lines { display: grid; gap: 6px; margin-top: 10px; }
.rs-dx-lines i { height: 5px; border-radius: 3px; background: var(--sheet-line); }
.rs-dx-lines i + i { width: 64%; }
.rs-dx-end { grid-column: 3; display: grid; gap: 34px; justify-items: start; padding-top: 24px; }
.rs-dx-cmp, .rs-dx-verdict { display: grid; gap: 8px; justify-items: start; }
.rs-dx-cmp code { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.rs-dx-cmp code b { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--error); color: #fff; font-weight: 500; font-size: 14px; }
.rs-dx-verdict .rs-stamp { font-size: 13px; }

/* The sequence: the sentence, its parts, the rule in force, the comparison, the stamp. */
.js .rs-dissect[data-reveal] { opacity: 1; transform: none; }
.js .rs-dissect :is(.rs-dx-chat, .rs-dx-tag, .rs-dx-sheet, .rs-dx-old, .rs-dx-source > .rs-dx-n, .rs-dx-cmp, .rs-dx-verdict > .rs-dx-n) {
  opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--rs-in), transform 0.8s var(--rs-in); transition-delay: var(--t, 0s);
}
.js .rs-dissect .rs-dx-old { transform: translateY(12px) rotate(1.2deg); }
.js .rs-dissect mark::before { transform: scaleX(0); transition: transform 0.6s var(--rs-in) var(--t, 0s); }
.js .rs-dissect .rs-dx-cmp b { opacity: 0; transform: scale(1.5); transition: opacity 0.25s var(--ease-ui) 2.95s, transform 0.5s var(--rs-in) 2.95s; }
.js .rs-dissect .rs-stamp { opacity: 0; transform: rotate(-14deg) scale(1.4); transition: opacity 0.2s var(--ease-ui) 3.35s, transform 0.55s var(--rs-in) 3.35s; }
.rs-dx-chat { --t: 0.1s; }
.rs-dx-bubble mark { --t: 0.6s; }
.rs-dx-tag:nth-child(1) { --t: 1.15s; }
.rs-dx-tag:nth-child(2) { --t: 1.28s; }
.rs-dx-tag:nth-child(3) { --t: 1.41s; }
.rs-dx-source > .rs-dx-n { --t: 1.7s; }
.rs-dx-old { --t: 1.8s; }
.rs-dx-sheet { --t: 1.7s; }
.rs-dx-rule mark { --t: 2.2s; }
.rs-dx-cmp { --t: 2.65s; }
.rs-dx-verdict > .rs-dx-n { --t: 3.15s; }
.js .rs-dissect.is-in :is(.rs-dx-chat, .rs-dx-tag, .rs-dx-sheet, .rs-dx-source > .rs-dx-n, .rs-dx-cmp, .rs-dx-verdict > .rs-dx-n) { opacity: 1; transform: none; }
.js .rs-dissect.is-in .rs-dx-old { opacity: 1; transform: rotate(1.2deg); }
.js .rs-dissect.is-in mark::before { transform: scaleX(1); }
.js .rs-dissect.is-in .rs-dx-cmp b { opacity: 1; transform: none; }
.js .rs-dissect.is-in .rs-stamp { opacity: 1; transform: rotate(-5deg); }

/* ---------- The trail: seven steps down one spine ---------- */

.rs-trail { --gap: clamp(48px, 6vw, 80px); position: relative; display: grid; gap: var(--gap); counter-reset: rs-step; }
.rs-trail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.rs-tstep { counter-increment: rs-step; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 112px minmax(0, 1fr); align-items: start; }
.rs-tstep::before {
  content: counter(rs-step, decimal-leading-zero); position: absolute; left: 50%; top: 0; z-index: 1; translate: -50% 0;
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-strong);
  font-family: var(--mono); font-size: 13px; color: var(--ink); transition: border-color 0.5s var(--ease-ui), color 0.5s var(--ease-ui);
}
.rs-tstep:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; top: 52px; bottom: calc(4px - var(--gap)); width: 1px; translate: -0.5px 0; background: var(--ruby);
  transform-origin: top; transform: scaleY(0); transition: transform 1.2s var(--rs-in) 0.3s;
}
.rs-tstep.is-in::before { border-color: var(--ruby); color: var(--accent-ink); }
.rs-tstep.is-in::after { transform: none; }
.rs-tstep-text { grid-column: 1; grid-row: 1; justify-self: end; max-width: 29.172em; padding-top: 10px; }
.rs-tstep-text h3 { font-size: clamp(21px, 1rem + 0.5vw, 26px); font-weight: 300; letter-spacing: -0.015em; line-height: 1.2; }
.rs-tstep-text p { margin-top: 12px; color: var(--mute); font-size: 15.5px; }
.rs-tstep > .rs-art { grid-column: 3; grid-row: 1; justify-self: start; width: min(100%, 440px); }
.rs-tstep:nth-child(even) > .rs-tstep-text { grid-column: 3; justify-self: start; }
.rs-tstep:nth-child(even) > .rs-art { grid-column: 1; justify-self: end; }
.js .rs-tstep[data-reveal] { opacity: 1; transform: none; }
.js .rs-tstep[data-reveal] > * { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--rs-in), transform 0.9s var(--rs-in); }
.js .rs-tstep[data-reveal] > .rs-art { transition-delay: 0.15s; }
.js .rs-tstep[data-reveal].is-in > * { opacity: 1; transform: none; }

/* What each step leaves behind. */
.rs-art { position: relative; isolation: isolate; padding: 16px 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--lift-1); font-size: 13.5px; color: var(--ink-2); }
.rs-art-cap { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--faint); }
.rs-art-cap span:first-child { color: var(--ink-2); }

.rs-roles { display: grid; gap: 4px; }
.rs-roles li { display: grid; grid-template-columns: 66px minmax(0, 1fr) 84px; gap: 10px; align-items: center; padding: 5px 0; }
.rs-roles span { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.rs-roles i { height: 8px; width: var(--w); border-radius: 4px; background: var(--surface-2); }
.rs-roles em { justify-self: end; font-style: normal; font-size: 11px; color: var(--faint); }
.rs-roles .is-bot span { color: var(--ink); }
.rs-roles .is-bot i { background: var(--claim-bg); box-shadow: inset 0 -2px 0 var(--claim-line); }
.rs-roles .is-bot em { color: var(--ink); font-weight: 500; }
.rs-roles .is-unsure i { background: transparent; border: 1px dashed var(--line-strong); }

.rs-art-bubble { position: relative; isolation: isolate; padding: 10px 13px; border-radius: 12px 12px 12px 4px; background: var(--surface); font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.rs-pins { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rs-pins span { display: inline-flex; flex-direction: column; gap: 2px; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--mute); }
.rs-pins b { font-weight: 500; font-size: 12px; color: var(--ink); }
.rs-art-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--mute); }
.js .rs-art-claim mark::before { transform: scaleX(0); transition: transform 0.6s var(--rs-in) 0.5s; }
.js .rs-art-claim mark + mark::before, .js .rs-art-claim mark:last-of-type::before { transition-delay: 0.75s; }
.js .is-in .rs-art-claim mark::before { transform: scaleX(1); }

.rs-srcs { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-srcs li { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); font-size: 12.5px; color: var(--mute); }
.rs-srcs .is-on { border-color: var(--rule-line); background: var(--rule-bg); color: var(--ink); }
.rs-vtrack { position: relative; height: 34px; margin-top: 40px; }
.rs-vseg { position: absolute; top: 0; bottom: 0; left: var(--a); width: calc(var(--b) - var(--a) - 3px); display: flex; align-items: center; padding-left: 10px; border-radius: 6px; background: var(--surface-2); font-family: var(--mono); font-size: 11.5px; color: var(--mute); }
.rs-vseg.is-on { background: var(--rule-bg); box-shadow: inset 0 0 0 1px var(--rule-line); color: var(--ink); }
.rs-vpin { position: absolute; left: var(--at); bottom: 100%; padding-bottom: 6px; translate: -50% 0; font-family: var(--mono); font-size: 11px; color: var(--accent-ink); white-space: nowrap; }
.rs-vpin::after { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 40px; translate: -1px -6px; background: var(--ruby); border-radius: 2px; }
.rs-vdates { position: relative; height: 18px; margin-top: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.rs-vdates span { position: absolute; left: 0; }
.rs-vdates span:nth-child(2) { left: 38%; }
.rs-vdates span:nth-child(3) { left: auto; right: 0; }
.js .rs-art-src .rs-vpin { opacity: 0; transform: translateY(-8px); transition: opacity 0.4s var(--ease-ui) 0.7s, transform 0.7s var(--rs-in) 0.7s; }
.js .is-in .rs-art-src .rs-vpin { opacity: 1; transform: none; }

.rs-art-code { padding: 16px 18px; background: #0b1a2b; border-color: transparent; color: #dbe6f3; font-family: var(--mono); font-size: 12.5px; }
.rs-art-code p { display: flex; align-items: baseline; gap: 6px; padding: 4px 0; white-space: nowrap; }
.rs-art-code .k { color: #ff8fb1; }
.rs-art-code i { flex: 1; min-width: 12px; border-bottom: 1px dotted rgba(255, 255, 255, 0.22); }
.rs-art-code b { font-weight: 500; color: #ffffff; }
.rs-art-code .is-bad { color: #ffb4a6; }
.rs-code-run { margin-top: 8px; padding-top: 10px !important; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 11px; color: #8fa3ba; }
.rs-code-run b { margin-right: 10px; }

.rs-art-bins { display: grid; justify-items: center; gap: 14px; padding-top: 20px; }
.rs-token { position: relative; isolation: isolate; padding: 4px 10px; border-radius: 6px; background: var(--claim-bg); box-shadow: inset 0 -2px 0 var(--claim-line); font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.rs-bins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.rs-bins span { display: grid; align-content: center; gap: 4px; min-height: 64px; padding: 10px; border-radius: 10px; border: 1px solid var(--line-strong); text-align: center; font-size: 12.5px; color: var(--ink-2); }
.rs-bins small { font-size: 10.5px; color: var(--error-ink); }
.rs-bins .is-on { border-color: var(--error-line); background: var(--error-bg); color: var(--error-ink); font-weight: 500; }
.rs-bins .is-none { border-style: dashed; color: var(--faint); }
.js .rs-art-bins .rs-token { transform: translateY(-14px); opacity: 0; transition: opacity 0.4s var(--ease-ui) 0.3s, transform 0.9s var(--rs-move) 0.3s; }
.js .is-in .rs-art-bins .rs-token { transform: translateY(0); opacity: 1; }
.js .rs-art-bins .rs-bins .is-on { transition: background-color 0.4s var(--ease-ui) 1s, border-color 0.4s var(--ease-ui) 1s; background-color: transparent; border-color: var(--line-strong); }
.js .is-in .rs-art-bins .rs-bins .is-on { background-color: var(--error-bg); border-color: var(--error-line); }

.rs-art-record { background: var(--sheet); color: var(--sheet-ink); border-color: var(--sheet-line); }
.rs-record-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--sheet-line); font-weight: 500; font-size: 13px; }
.rs-art-record dl { display: grid; margin-top: 4px; }
.rs-art-record dl div { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--sheet-line); }
.rs-art-record dt { font-family: var(--mono); font-size: 10.5px; color: var(--sheet-mute); padding-top: 2px; }
.rs-art-record dd { position: relative; isolation: isolate; font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.rs-art-record mark { color: var(--sheet-ink); white-space: normal; }
.rs-art-record mark.claim::before { background: rgba(255, 213, 82, 0.6); box-shadow: inset 0 -2px 0 var(--yellow-deep); }
.rs-art-record mark.rule::before { background: rgba(255, 97, 24, 0.18); box-shadow: inset 0 -2px 0 var(--orange); }
.rs-record-fix { margin-top: 10px; padding: 8px 10px; border-radius: 8px; border: 1px dashed color-mix(in srgb, var(--sheet-mute) 50%, transparent); font-size: 12.5px; }
.rs-record-fix b { display: block; margin-bottom: 2px; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #b51145; }

.rs-alert { display: flex; gap: 10px; padding: 12px; border-radius: 10px; background: #ffffff; color: #1d1c1d; box-shadow: 0 10px 24px rgba(0, 30, 60, 0.14); border: 1px solid #ebebeb; }
.rs-alert-ico { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 7px; background: var(--stripe-ink); }
.rs-alert-ico .logo-mark { width: 16px; height: 16px; }
.rs-alert-ico .logo-source { fill: #ffffff; }
.rs-alert p { position: relative; isolation: isolate; font-size: 12.5px; line-height: 1.5; color: #454245; }
.rs-alert mark { color: #1d1c1d; }
.rs-alert mark.claim::before { background: rgba(255, 213, 82, 0.55); box-shadow: inset 0 -2px 0 var(--yellow-deep); }
.rs-alert mark.rule::before { background: rgba(255, 97, 24, 0.16); box-shadow: inset 0 -2px 0 var(--orange); }
.rs-alert-top { display: flex; gap: 8px; align-items: baseline; margin-bottom: 2px; }
.rs-alert-top b { color: #1d1c1d; }
.rs-alert-top time { font-size: 11px; color: #8a8a8a; }
.rs-review { display: inline-flex; gap: 2px; margin-top: 14px; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.rs-review span { padding: 5px 12px; border-radius: 999px; font-size: 12.5px; color: var(--mute); }
.rs-review .is-on { background: var(--ink); color: var(--bg); }
.js .rs-art-alert .rs-alert { opacity: 0; transform: translateY(10px) scale(0.98); transition: opacity 0.4s var(--ease-ui) 0.35s, transform 0.7s var(--rs-in) 0.35s; }
.js .is-in .rs-art-alert .rs-alert { opacity: 1; transform: none; }

/* ---------- Three outcomes, as rows of one ledger ---------- */

.rs-ledger { --cols: minmax(0, 0.9fr) minmax(0, 1.1fr) 44px minmax(0, 1.1fr) minmax(0, 0.9fr); display: grid; gap: 12px; }
.rs-ledger-head { display: grid; grid-template-columns: var(--cols); gap: 20px; padding: 0 24px; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.rs-out {
  position: relative; isolation: isolate; display: grid; grid-template-columns: var(--cols); gap: 20px; align-items: center;
  padding: 22px 24px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--lift-1);
}
.rs-out h3 { font-size: 21px; font-weight: 400; letter-spacing: -0.01em; line-height: 1.2; }
.rs-out-name p { margin-top: 6px; color: var(--mute); font-size: 14px; }
.rs-out-said, .rs-out-src { position: relative; isolation: isolate; padding: 12px 14px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.rs-out-said span, .rs-out-src span { display: block; margin-bottom: 4px; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.rs-out-said { border-radius: 12px 12px 12px 4px; background: var(--surface-2); }
.rs-out-src { border-radius: 6px; background: var(--sheet); color: var(--sheet-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.rs-out-src span { color: var(--sheet-mute); }
.rs-out-src mark { color: var(--sheet-ink); }
.rs-out-src mark.rule::before { background: rgba(255, 97, 24, 0.2); box-shadow: inset 0 -2px 0 var(--orange); }
.rs-out-op { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--ink-2); font-size: 20px; line-height: 1; color: var(--ink); justify-self: center; }
.rs-out-end { display: grid; gap: 10px; justify-items: start; }
.rs-out-then { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.rs-out.is-contradicted { border-color: var(--error-line); background: linear-gradient(90deg, var(--error-bg), transparent 55%), var(--panel); }
.rs-out.is-contradicted::before { content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--error); }
.rs-out.is-contradicted .rs-out-op { background: var(--error); border-color: var(--error); color: #fff; }
.rs-out.is-contradicted .rs-out-then { color: var(--error-ink); font-weight: 500; }
.rs-out.is-insufficient { box-shadow: none; border-style: dashed; border-color: var(--line-strong); background: transparent; }
.rs-out.is-insufficient .rs-out-src { background: transparent; color: var(--mute); box-shadow: none; border: 1.5px dashed var(--line-strong); font-style: italic; }
.rs-out.is-insufficient .rs-out-op { border-style: dashed; border-color: var(--faint); color: var(--faint); }
.js .rs-out .rs-stamp { opacity: 0; transition: opacity 0.2s var(--ease-ui) 0.45s, transform 0.5s var(--rs-in) 0.45s; }
.js .rs-out.is-contradicted .rs-stamp { transform: rotate(-12deg) scale(1.35); }
.js .rs-out.is-in .rs-stamp { opacity: 1; transform: rotate(-5deg); }
.js .rs-out.is-in .rs-stamp.is-ok { transform: rotate(-2deg); }
.js .rs-out.is-in .rs-stamp.is-none { transform: none; }

/* ---------- What keeps a finding fair ---------- */

.rs-bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.rs-tile { grid-column: span 5; display: flex; flex-direction: column; gap: 0; padding: clamp(22px, 2.6vw, 32px); border-radius: 14px; border: 1px solid var(--line); background: var(--bg); scroll-margin-top: 96px; }
.rs-tile.rs-t-wide { grid-column: span 7; }
.rs-tile h2 { font-size: clamp(21px, 1rem + 0.5vw, 25px); font-weight: 400; letter-spacing: -0.015em; line-height: 1.2; }
.rs-tile p, .rs-tile .facts li { color: var(--ink-2); font-size: 15px; }
.rs-tile h2 + p { margin-top: 10px; }
.rs-tile > * + * { margin-top: 24px; }
.rs-tile > h2 + * { margin-top: 12px; }
.rs-tile > :is(.rs-chain, .rs-never, .rs-struck) { margin-top: auto; padding-top: 24px; }
.rs-tile a { color: var(--ink); text-decoration-color: var(--ruby); text-underline-offset: 3px; }
.rs-tile .facts { margin-top: 0; gap: 12px; }
.rs-t-limits { background: var(--surface); }

.rs-vbar { position: relative; padding-top: 34px; }
.rs-vbar-row { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 4px; }
.rs-vbar-row span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 8px; background: var(--surface-2); font-family: var(--mono); font-size: 12px; color: var(--mute); }
.rs-vbar-row small { font-size: 10.5px; color: var(--faint); }
.rs-vbar-row .is-cited { background: var(--rule-bg); box-shadow: inset 0 0 0 1.5px var(--rule-line); color: var(--ink); }
.rs-vbar-row .is-later { background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, transparent 6px 10px); box-shadow: inset 0 0 0 1px var(--line); }
.rs-vbar-pin { position: absolute; top: 0; left: var(--at); translate: -50% 0; font-style: normal; display: grid; justify-items: center; }
.rs-vbar-pin b { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--accent-ink); white-space: nowrap; }
.rs-vbar-pin::after { content: ""; width: 2px; height: 30px; margin-top: 3px; border-radius: 2px; background: var(--ruby); }
.rs-tile .rs-vbar-note { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.rs-vbar-note span:first-child { color: var(--ink-2); }

.rs-chain { display: grid; gap: 0; margin-top: auto; }
.rs-chain li { position: relative; isolation: isolate; padding: 6px 0 6px 22px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); overflow-wrap: anywhere; }
.rs-chain li::before { content: ""; position: absolute; left: 3px; top: 12px; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ruby); background: var(--bg); z-index: 1; }
.rs-chain li:not(:last-child)::after { content: ""; position: absolute; left: 6.5px; top: 18px; bottom: -12px; width: 1px; background: var(--ruby); }
.rs-chain mark { color: var(--ink); }

.rs-never { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.rs-never li { padding: 4px 10px; border-radius: 999px; border: 1px dashed var(--error-line); font-family: var(--mono); font-size: 12px; color: var(--mute); text-decoration: line-through; text-decoration-color: var(--error); }

.rs-dispute { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.rs-dispute-card { display: grid; gap: 8px; padding: 14px; border-radius: 10px; background: var(--sheet); border: 1px solid var(--sheet-line); color: var(--sheet-ink); }
.rs-dispute-card p { display: flex; align-items: center; gap: 8px; margin: 0; }
.rs-dispute-card svg { width: 15px; height: 15px; margin-left: auto; fill: none; stroke: var(--sheet-ink); stroke-width: 1.4; stroke-linecap: round; }
.rs-dispute-card small { font-family: var(--mono); font-size: 10.5px; color: var(--sheet-mute); }
.rs-dispute-card i { height: 6px; width: var(--w, 100%); border-radius: 3px; background: var(--sheet-line); }
.rs-dispute-notes { display: grid; gap: 6px; }
.rs-dispute-notes li { display: grid; gap: 1px; padding: 7px 10px; border-radius: 0 8px 8px 0; border-left: 2px solid var(--ruby); background: var(--surface); font-size: 12.5px; color: var(--mute); }
.rs-dispute-notes b { font-weight: 500; color: var(--ink); font-size: 13px; }

.rs-struck { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: auto; }
.rs-struck li { font-size: clamp(26px, 1.2rem + 1vw, 34px); font-weight: 300; letter-spacing: -0.02em; color: var(--faint); text-decoration: line-through; text-decoration-color: var(--ruby); text-decoration-thickness: 2px; }

/* ---------- The method's own disclaimer, said large ---------- */

.rs-pull-sec { padding-block: clamp(72px, 9vw, 128px); border-top: 1px solid var(--line); background: var(--bg); }
.rs-pull { max-width: 19.74em; margin-inline: auto; text-align: center; font-size: clamp(25px, 1rem + 1.9vw, 42px); font-weight: 300; line-height: 1.2; letter-spacing: -0.022em; color: var(--mute); text-wrap: balance; }
.rs-pull b { display: block; margin-bottom: 10px; font-weight: 400; color: var(--ink); }
.rs-pull::before { content: ""; display: block; width: 48px; height: 2px; margin: 0 auto 32px; border-radius: 2px; background: var(--ruby); }

/* ---------- Methodology on smaller screens ---------- */

@media (max-width: 1023px) {
  .rs-mhero-grid { grid-template-columns: minmax(0, 1fr); }
  .rs-dissect { max-width: 640px; }
  .rs-trail::before { left: 23px; }
  .rs-tstep { grid-template-columns: 48px minmax(0, 1fr); column-gap: 20px; row-gap: 20px; }
  .rs-tstep::before { left: 0; translate: none; }
  .rs-tstep:not(:last-child)::after { left: 23.5px; translate: none; }
  .rs-tstep > .rs-tstep-text, .rs-tstep:nth-child(even) > .rs-tstep-text { grid-column: 2; grid-row: 1; justify-self: start; max-width: 39.78em; }
  .rs-tstep > .rs-art, .rs-tstep:nth-child(even) > .rs-art { grid-column: 2; grid-row: 2; justify-self: start; width: min(100%, 480px); }
  .rs-ledger-head { display: none; }
  .rs-out { grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); row-gap: 14px; }
  .rs-out-name, .rs-out-end { grid-column: 1 / -1; }
  .rs-out-end { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px; }
  .rs-tile, .rs-tile.rs-t-wide { grid-column: span 6; }
}
@media (max-width: 767px) {
  .rs-dissect { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 30px; }
  .rs-dx-bubble { font-size: 15.5px; }
  .rs-dx-fan { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.2fr) minmax(0, 0.95fr); gap: 8px; }
  .rs-dx-tag { padding: 9px 8px; }
  .rs-dx-tag b { font-size: 11px; }
  .rs-hide-sm { display: none; }
  .rs-dx-n { font-size: 10px; white-space: normal; }
  .rs-dx-source { grid-column: 1 / -1; }
  .rs-dx-end { grid-column: 1 / -1; grid-template-columns: auto auto; justify-content: space-between; align-items: end; padding-top: 0; }
  .rs-out { grid-template-columns: minmax(0, 1fr); }
  .rs-out-op { width: 32px; height: 32px; font-size: 16px; margin-block: -6px; }
  .rs-out-end { grid-template-columns: minmax(0, 1fr); }
  .rs-tile, .rs-tile.rs-t-wide { grid-column: 1 / -1; }
  .rs-dispute { grid-template-columns: minmax(0, 1fr); }
  .rs-roles li { grid-template-columns: 58px minmax(0, 1fr) 72px; }
  .rs-art-code { font-size: 11.5px; padding: 14px; }
}

/* ======================================================================
   The bot: a reader at work. robots.txt first, then one page per beat.
   ====================================================================== */

.rs-bhero { padding-bottom: clamp(56px, 7vw, 96px); }
.rs-bhero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.rs-bhero .ua code { background: var(--panel); }
.rs-bhero-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 15px; }
.rs-bhero-links a { color: var(--accent-ink); text-decoration: none; font-weight: 500; }
.rs-bhero-links a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); }

.rs-reader {
  position: relative; isolation: isolate; margin: 0; padding: clamp(16px, 2.2vw, 24px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr); gap: 16px;
  border-radius: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--lift-2);
}
.js .rs-reader[data-reveal] { opacity: 1; transform: none; }
.rs-rd-robots { position: relative; overflow: hidden; padding: 12px 14px 14px; border-radius: 8px; background: var(--sheet); color: var(--sheet-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.rs-rd-file { display: flex; align-items: center; gap: 8px; padding-bottom: 9px; margin-bottom: 8px; border-bottom: 1px solid var(--sheet-line); font-family: var(--mono); font-size: 11px; color: var(--sheet-mute); }
.rs-rd-file b { margin-left: auto; padding: 2px 7px; border-radius: 999px; background: var(--stripe-ink); color: #fff; font-family: var(--font); font-size: 10px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
.rs-rd-dot { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--orange); }
.rs-rd-robots pre { margin: 0; font-size: 12.5px; line-height: 1.85; white-space: normal; }
.rs-rl { position: relative; isolation: isolate; display: block; white-space: pre; color: var(--sheet-mute); }
.rs-rl.is-no { color: var(--sheet-ink); }
.rs-rl.is-no::before { content: ""; position: absolute; inset: 1px -6px; z-index: -1; border-radius: 3px; background: rgba(255, 97, 24, 0.18); box-shadow: inset 2px 0 0 var(--orange); transform-origin: left; }
.rs-rd-scan { position: absolute; left: 8px; right: 8px; top: 40px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--orange), transparent); opacity: 0; }

.rs-rd-clock { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.rs-metro { width: 64px; height: auto; overflow: visible; }
.rs-metro-body { fill: var(--surface-2); stroke: var(--line-strong); stroke-width: 1.5; }
.rs-metro-face { stroke: var(--line-strong); stroke-width: 1.5; }
.rs-metro-arm { transform-box: view-box; transform-origin: 60px 118px; transition: transform 0.85s var(--rs-move); }
.rs-metro-arm path { stroke: var(--ruby); stroke-width: 3; stroke-linecap: round; }
.rs-metro-arm rect { fill: var(--ruby); }
.rs-metro-pin { fill: var(--ink); }
.rs-reader[data-side="l"] .rs-metro-arm { transform: rotate(-24deg); }
.rs-reader[data-side="r"] .rs-metro-arm { transform: rotate(24deg); }
.rs-rd-pace p { font-size: 12.5px; line-height: 1.3; color: var(--mute); }
.rs-rd-pace b { display: block; font-size: 28px; font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink); }
.rs-rd-bar { display: block; height: 3px; margin-top: 10px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.rs-rd-bar i { display: block; height: 100%; border-radius: 3px; background: var(--ruby); transform-origin: left; transform: scaleX(1); }
.rs-rd-pace small { display: block; margin-top: 8px; font-size: 10.5px; line-height: 1.3; color: var(--faint); }
/* Standing still, the figure shows the real times, so it no longer says it is sped up. */
@media (prefers-reduced-motion: reduce) { .rs-rd-pace small { display: none; } }

.rs-rd-log { grid-column: 1 / -1; padding: 4px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-family: var(--mono); font-size: 12.5px; }
.rs-rd-log li { position: relative; display: grid; grid-template-columns: 52px 40px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; padding: 7px 14px; border-top: 1px solid var(--line); color: var(--ink-2); }
.rs-rd-log li:first-child { border-top: 0; }
.rs-rd-log .t { text-align: right; color: var(--faint); font-variant-numeric: tabular-nums; }
.rs-rd-log .m { font-size: 11px; color: var(--mute); }
.rs-rd-log .p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.rs-rd-log .s { font-size: 11px; color: var(--rs-ok); }
.rs-rd-log .is-skip .m, .rs-rd-log .is-skip .s { color: var(--error-ink); }
.rs-rd-log .is-skip .p { color: var(--mute); text-decoration: line-through; text-decoration-color: var(--error); }
.rs-rd-log li::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 1px; background: var(--ruby); transform-origin: left; transform: scaleX(0); opacity: 0; }
.rs-rd-log li.is-hit::after { animation: rs-request 0.7s var(--rs-in) both; }
@keyframes rs-request { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

.rs-rd-never { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rs-rd-never li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 8px; border-radius: 8px; border: 1px dashed var(--error-line); background: var(--error-bg); font-family: var(--mono); font-size: 12px; color: var(--mute); text-decoration: line-through; text-decoration-color: var(--error); }
.rs-rd-never li::before { content: ""; width: 11px; height: 11px; flex: none; border-radius: 50%; border: 1.5px solid var(--error); background: linear-gradient(45deg, transparent 44%, var(--error) 44% 56%, transparent 56%); }
.rs-rd-never .rs-rd-never-label { padding: 0; border: 0; background: none; font-family: var(--font); font-size: 12.5px; color: var(--faint); text-decoration: none; }
.rs-rd-never .rs-rd-never-label::before { display: none; }

/* The first frame: the robots file is read, its three rules lit; then the beat takes over. */
.js .rs-reader .rs-rl { opacity: 0; transform: translateY(5px); transition: opacity 0.4s var(--rs-in), transform 0.6s var(--rs-in); }
.js .rs-reader .rs-rl.is-no::before { transform: scaleX(0); transition: transform 0.6s var(--rs-in); }
.js .rs-reader .rs-rl:nth-child(2), .js .rs-reader .rs-rl:nth-child(2)::before { transition-delay: 0.25s; }
.js .rs-reader .rs-rl:nth-child(3), .js .rs-reader .rs-rl:nth-child(3)::before { transition-delay: 0.35s; }
.js .rs-reader .rs-rl:nth-child(4), .js .rs-reader .rs-rl:nth-child(4)::before { transition-delay: 0.45s; }
.js .rs-reader .rs-rl:nth-child(5) { transition-delay: 0.55s; }
.js .rs-reader.is-in .rs-rl { opacity: 1; transform: none; }
.js .rs-reader.is-in .rs-rl.is-no::before { transform: scaleX(1); }
.js .rs-reader.is-in .rs-rd-scan { animation: rs-scan 1.1s var(--ease-ui) 0.2s both; }
@keyframes rs-scan { 0% { opacity: 0; transform: translateY(0); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(110px); } }
.js .rs-reader :is(.rs-rd-clock, .rs-rd-never li) { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--rs-in), transform 0.7s var(--rs-in); }
.js .rs-reader .rs-rd-clock { transition-delay: 0.5s; }
.js .rs-reader .rs-rd-never li { transition-delay: calc(0.9s + var(--i, 0) * 0.08s); }
.rs-rd-never li:nth-child(2) { --i: 1; }
.rs-rd-never li:nth-child(3) { --i: 2; }
.rs-rd-never li:nth-child(4) { --i: 3; }
.js .rs-reader.is-in :is(.rs-rd-clock, .rs-rd-never li) { opacity: 1; transform: none; }
/* While the script plays the beat, a row shows only once its request is made. */
.rs-reader.is-driven .rs-rd-log li { transition: opacity 0.35s var(--rs-in), transform 0.5s var(--rs-in); }
.rs-reader.is-driven .rs-rd-log li:not(.is-on) { opacity: 0; transform: translateY(6px); }

/* ---------- Sections ---------- */

.rs-bsec code, .rs-pace code { white-space: nowrap; font-size: 0.88em; padding: 2px 6px; border-radius: var(--r-xs); background: var(--surface-2); color: var(--ink); }
.rs-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.rs-split.is-flip { align-items: start; }
.rs-split.is-flip > .rs-split-text { order: 2; }
.rs-split-text > p:not(.rs-kicker) { margin-top: 16px; max-width: 37.128em; color: var(--ink-2); font-size: 16.5px; }
.rs-split-text .section-title + p { margin-top: 20px; }
.rs-split-text a { color: var(--ink); text-decoration-color: var(--ruby); text-underline-offset: 3px; }
.rs-rules { margin-top: 22px; gap: 10px; }
.rs-rules li { color: var(--ink-2); }

.rs-fan { position: relative; height: 320px; }
.rs-fan-sheet {
  position: absolute; left: 50%; top: 24px; width: 188px; height: 240px; display: flex; flex-direction: column; gap: 8px; padding: 16px;
  border-radius: 8px; background: var(--sheet); color: var(--sheet-ink); border: 1px solid var(--sheet-line); box-shadow: var(--lift-2);
  transform: translate(calc(-50% + var(--k) * 78px), var(--y)) rotate(var(--r)); transform-origin: 50% 120%;
}
.rs-fan-sheet b { margin-bottom: 6px; font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-weight: 400; line-height: 1.2; }
.rs-fan-sheet i { height: 5px; border-radius: 3px; background: var(--sheet-line); }
.rs-fan-sheet i:nth-of-type(2) { width: 84%; }
.rs-fan-sheet i:nth-of-type(3) { width: 62%; }
.rs-fan-sheet em { font-style: normal; font-size: 13px; color: var(--sheet-ink); }
.rs-fan-sheet span { display: flex; align-items: center; gap: 6px; margin-top: auto; font-family: var(--mono); font-size: 10.5px; color: var(--sheet-mute); }
.rs-fan-sheet span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.rs-fan-sheet:nth-child(1) { z-index: 1; }
.rs-fan-sheet:nth-child(2) { z-index: 2; }
.rs-fan-sheet:nth-child(3) { z-index: 5; }
.rs-fan-sheet:nth-child(4) { z-index: 2; }
.rs-fan-sheet:nth-child(5) { z-index: 1; }
.js .rs-fan[data-reveal] { opacity: 1; transform: none; }
.js .rs-fan .rs-fan-sheet { transform: translate(-50%, 30px) rotate(0deg); opacity: 0; transition: transform 1.1s var(--rs-in), opacity 0.5s var(--rs-in); transition-delay: calc((var(--k) + 2) * 0.06s); }
.js .rs-fan.is-in .rs-fan-sheet { transform: translate(calc(-50% + var(--k) * 78px), var(--y)) rotate(var(--r)); opacity: 1; }

.rs-center-lede { margin-inline: auto; text-align: center; }
.rs-tree { position: relative; display: grid; justify-items: center; }
.rs-tree-root { position: relative; display: inline-flex; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--inv-bg); color: var(--inv-ink); font-family: var(--mono); font-size: 13px; }
.rs-tree-root .m { color: var(--inv-mute); }
.rs-tree-root::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 28px; background: var(--line-strong); transform-origin: top; }
.rs-tree-branches { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; margin-top: 28px; padding-top: 28px; }
.rs-tree-branches::before { content: ""; position: absolute; top: 0; left: calc(100% / 6); right: calc(100% / 6); height: 1px; background: var(--line-strong); }
.rs-tree-branches li { position: relative; display: grid; align-content: start; gap: 12px; padding: 22px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--lift-1); }
.rs-tree-branches li::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 29px; background: var(--line-strong); transform-origin: top; }
.rs-tree-branches p { color: var(--ink-2); font-size: 15px; }
.rs-tree-branches strong { color: var(--ink); font-weight: 500; }
.rs-tree-out { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.rs-tree-out::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.is-read .rs-tree-out { color: var(--rs-ok); background: var(--rs-ok-bg); box-shadow: inset 0 0 0 1px var(--rs-ok-line); }
.is-none .rs-tree-out { color: var(--mute); background: var(--surface-2); }
.is-stop .rs-tree-out { color: var(--error-ink); background: var(--error-bg); box-shadow: inset 0 0 0 1px var(--error-line); }
.rs-tree-branches .is-read { box-shadow: inset 0 3px 0 var(--rs-ok-line), var(--lift-1); }
.rs-tree-branches .is-stop { box-shadow: inset 0 3px 0 var(--error-line), var(--lift-1); }
.rs-tree-branches .is-none { border-style: dashed; box-shadow: none; }
.js .rs-tree[data-reveal] { opacity: 1; transform: none; }
.js .rs-tree .rs-tree-root { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--rs-in), transform 0.7s var(--rs-in); }
.js .rs-tree .rs-tree-root::after, .js .rs-tree .rs-tree-branches li::before { transform: scaleY(0); transition: transform 0.4s var(--rs-in) 0.3s; }
.js .rs-tree .rs-tree-branches::before { transform: scaleX(0); transition: transform 0.6s var(--rs-in) 0.55s; }
.js .rs-tree .rs-tree-branches li::before { transition-delay: 0.95s; }
.js .rs-tree .rs-tree-branches li { opacity: 0; transform: translateY(14px); transition: opacity 0.6s var(--rs-in), transform 0.8s var(--rs-in); transition-delay: calc(1.05s + var(--i, 0) * 0.1s); }
.rs-tree-branches li:nth-child(2) { --i: 1; }
.rs-tree-branches li:nth-child(3) { --i: 2; }
.js .rs-tree.is-in .rs-tree-root, .js .rs-tree.is-in .rs-tree-branches li { opacity: 1; transform: none; }
.js .rs-tree.is-in .rs-tree-root::after, .js .rs-tree.is-in .rs-tree-branches li::before, .js .rs-tree.is-in .rs-tree-branches::before { transform: none; }

/* Pace: a dark band with the numbers, and a ruler the reader steps along. */
.rs-pace { padding-block: var(--section); background: var(--band-dark-bg); color: var(--ink); overflow-x: clip; }
.rs-pace-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: end; }
.rs-pace .rs-kicker { color: var(--yellow); }
.rs-pace-text { margin-top: 18px; max-width: 29.172em; font-size: 17px; color: var(--ink-2); }
.rs-pace-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.rs-pace-stats div { padding: 22px 18px 0 0; }
.rs-pace-stats div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.rs-pace-stats dt { font-size: clamp(38px, 1.6rem + 2vw, 60px); font-weight: 300; letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.rs-pace-stats dd { margin-top: 10px; font-size: 14px; line-height: 1.4; color: var(--mute); }
.rs-ruler { position: relative; height: 64px; margin-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--line-strong); }
.rs-ruler i { position: absolute; top: 0; left: calc(var(--n) * 10%); width: 1px; height: 14px; background: var(--line-strong); }
.rs-ruler i span { position: absolute; top: 22px; left: 0; translate: -50% 0; font-family: var(--mono); font-size: 11px; font-style: normal; color: var(--mute); white-space: nowrap; }
.rs-ruler i:first-child span { translate: 0 0; }
.rs-ruler i:last-of-type span { translate: -100% 0; }
.rs-ruler-head { position: absolute; left: 0; right: 0; top: -6px; height: 11px; pointer-events: none; }
.rs-ruler-head em { position: absolute; left: -5.5px; top: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--ruby); box-shadow: 0 0 0 4px rgba(234, 34, 97, 0.25); }
@media (prefers-reduced-motion: no-preference) {
  .rs-ruler-head { animation: rs-beat 13.2s infinite; animation-play-state: paused; }
  .rs-ruler.rs-live .rs-ruler-head { animation-play-state: running; }
}
@keyframes rs-beat {
  0% { transform: translateX(0); opacity: 0; animation-timing-function: var(--rs-move); }
  2% { opacity: 1; }
  8.3% { transform: translateX(10%); animation-timing-function: var(--rs-move); }
  16.6% { transform: translateX(20%); animation-timing-function: var(--rs-move); }
  25% { transform: translateX(30%); animation-timing-function: var(--rs-move); }
  33.3% { transform: translateX(40%); animation-timing-function: var(--rs-move); }
  41.6% { transform: translateX(50%); animation-timing-function: var(--rs-move); }
  50% { transform: translateX(60%); animation-timing-function: var(--rs-move); }
  58.3% { transform: translateX(70%); animation-timing-function: var(--rs-move); }
  66.6% { transform: translateX(80%); animation-timing-function: var(--rs-move); }
  75% { transform: translateX(90%); animation-timing-function: var(--rs-move); }
  83.3%, 96% { transform: translateX(100%); opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* A chatbot test, seen from the store's own chat window. */
.rs-test { position: sticky; top: 112px; display: grid; gap: 14px; }
.rs-test-chat { --st-ink: #1f2a24; --st-mute: #6b746e; --st-line: #e7e3da; --st-bg: #fbfaf7; --st-brand: #2f4a3a; border-radius: 16px; overflow: hidden; background: var(--st-bg); border: 1px solid var(--line); box-shadow: var(--lift-2); color: var(--st-ink); }
.rs-test-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--st-brand); color: #fff; }
.rs-test-top b { font-size: 13.5px; font-weight: 500; }
.rs-test-top small { margin-left: auto; font-size: 11.5px; opacity: 0.8; }
.rs-test-logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #e9e2d0; color: var(--st-brand); font-family: Georgia, serif; font-size: 14px; }
.rs-test-body { display: grid; gap: 8px; padding: 16px; }
.rs-test-meta { justify-self: center; margin-top: 4px; font-family: var(--mono); font-size: 10.5px; color: var(--st-mute); }
.rs-test-q { justify-self: end; max-width: 80%; padding: 9px 12px; border-radius: 14px 14px 4px 14px; background: var(--stripe-ink); color: #fff; font-size: 13.5px; line-height: 1.45; }
.rs-test-q::before { content: "AlalveraBot"; display: block; margin-bottom: 2px; font-family: var(--mono); font-size: 10px; color: #a3b3c6; }
.rs-test-a { justify-self: start; max-width: 84%; padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: #fff; border: 1px solid var(--st-line); font-size: 13.5px; line-height: 1.45; }
.rs-test-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.rs-test-typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--st-mute); }
@media (prefers-reduced-motion: no-preference) {
  .rs-test.rs-live .rs-test-typing i { animation: dot 1.1s var(--ease-ui) infinite; }
  .rs-test.rs-live .rs-test-typing i:nth-child(2) { animation-delay: 0.15s; }
  .rs-test.rs-live .rs-test-typing i:nth-child(3) { animation-delay: 0.3s; }
}
.rs-test-stops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rs-test-stops li { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--error-line); background: var(--error-bg); font-size: 12px; color: var(--error-ink); }
.rs-test-stops b { font-size: 13px; font-weight: 500; color: var(--ink); }
.js .rs-test[data-reveal] .rs-test-body > * { opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--rs-in), transform 0.6s var(--rs-in); transition-delay: var(--t, 0s); }
.rs-test-body > :nth-child(2) { --t: 0.25s; }
.rs-test-body > :nth-child(3) { --t: 0.7s; }
.rs-test-body > :nth-child(4) { --t: 1.1s; }
.rs-test-body > :nth-child(5) { --t: 1.35s; }
.rs-test-body > :nth-child(6) { --t: 1.7s; }
.js .rs-test.is-in .rs-test-body > * { opacity: 1; transform: none; }

/* Two ways out, side by side. */
.rs-exit-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: stretch; }
.rs-exit { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); border-radius: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--lift-1); }
.rs-exit h2 { font-size: clamp(22px, 1rem + 0.6vw, 28px); font-weight: 300; letter-spacing: -0.015em; scroll-margin-top: 110px; }
.rs-exit > p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }
.rs-exit .code { margin-top: auto; padding: 18px 20px; border: 0; border-radius: 10px; background: #0b1a2b; color: #dbe6f3; font-size: 15px; line-height: 1.75; }
.rs-exit .code code { padding: 0; background: none; color: inherit; font-size: inherit; }
.rs-exit .optout { margin-top: 20px; padding: 0; border: 0; background: none; }
.rs-exit-or { align-self: center; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--bg); font-size: 13px; color: var(--mute); }
.rs-contact { display: grid; justify-items: center; gap: 12px; text-align: center; }
.rs-contact p { color: var(--ink-2); }
.rs-contact a { color: var(--ink); text-decoration-color: var(--ruby); text-underline-offset: 3px; }

@media (max-width: 1023px) {
  .rs-bhero-grid, .rs-split, .rs-pace-grid { grid-template-columns: minmax(0, 1fr); }
  .rs-reader { max-width: 640px; }
  .rs-split.is-flip > .rs-split-text { order: 0; }
  .rs-test { position: static; max-width: 560px; }
  .rs-tree-branches { grid-template-columns: minmax(0, 1fr); padding-top: 0; margin-top: 0; gap: 12px; }
  .rs-tree-branches::before, .rs-tree-branches li::before { display: none; }
  .rs-tree-root { margin-bottom: 28px; }
  .rs-exit-grid { grid-template-columns: minmax(0, 1fr); }
  .rs-exit-or { justify-self: center; }
}
@media (max-width: 767px) {
  .rs-reader { grid-template-columns: minmax(0, 1fr); }
  .rs-rd-log { font-size: 11.5px; }
  .rs-rd-log li { grid-template-columns: 44px 34px minmax(0, 1fr) auto; padding: 7px 10px; gap: 6px; }
  .rs-fan { height: 280px; }
  .rs-fan-sheet { width: 136px; height: 200px; padding: 12px; }
  .rs-fan-sheet b { font-size: 14px; }
  .rs-fan-sheet, .js .rs-fan.is-in .rs-fan-sheet { transform: translate(calc(-50% + var(--k) * 38px), var(--y)) rotate(var(--r)); }
  .rs-pace-stats { grid-template-columns: minmax(0, 1fr); }
  .rs-pace-stats div, .rs-pace-stats div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .rs-ruler i:nth-of-type(even) span { display: none; }
  .rs-test-stops { grid-template-columns: minmax(0, 1fr); }
}

/* ======================================================================
   Privacy and terms: calm documents, each with its own picture on top.
   The legal text itself is never touched; only its setting changes.
   ====================================================================== */

.rs-lhero { padding-bottom: clamp(40px, 5vw, 72px); }
.rs-lhero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.rs-lhero .draft-note { max-width: 34.476em; }

/* Reading rhythm, shared: a measure of about 68 characters and room between sections. */
.page-privacy .legal, .page-terms .legal { padding-top: clamp(24px, 3vw, 40px); }
.page-privacy .legal-body, .page-terms .legal-body { max-width: 47.736em; }
.page-privacy .legal-body .doc-section, .page-terms .legal-body .doc-section { padding-block: 40px; scroll-margin-top: 96px; }
.page-privacy .legal-body .doc-section p, .page-terms .legal-body .doc-section p { max-width: 45.084em; font-size: 16.5px; line-height: 1.7; }
.page-privacy .legal-body .facts li, .page-terms .legal-body .facts li { line-height: 1.65; }
.page-privacy .legal-body .doc-section h2, .page-terms .legal-body .doc-section h2 { font-size: clamp(23px, 1rem + 0.8vw, 28px); font-weight: 300; letter-spacing: -0.018em; }
.page-privacy .legal-body .doc-section h2 + *, .page-terms .legal-body .doc-section h2 + * { margin-top: 16px; }
.legal-table td { line-height: 1.55; }
.legal-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--surface) 55%, transparent); }

/* ---------- Privacy: what we keep, on one small timeline ---------- */

.rs-keep { margin: 0; padding: clamp(18px, 2.4vw, 26px); border-radius: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--lift-2); }
.rs-keep-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rs-keep-head b { font-size: 16px; font-weight: 500; color: var(--ink); }
.rs-keep-head a { font-size: 13.5px; color: var(--accent-ink); text-decoration: none; }
.rs-keep-head a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-1px) rotate(-45deg); }
.rs-keep-chart { position: relative; padding-top: 6px; }
.rs-keep-scale { position: relative; height: 34px; margin: 0 4px; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.rs-keep-scale span { position: absolute; top: 12px; left: var(--at); translate: -50% 0; white-space: nowrap; }
.rs-keep-scale span:first-child { translate: 0 0; }
.rs-keep-scale span:last-child { translate: -100% 0; }
/* Faint verticals at each mark of the scale, behind the bars. */
.rs-keep-rows { position: relative; display: grid; gap: 12px; margin: 0 4px; padding-top: 4px; background: linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 1px 100% no-repeat, linear-gradient(90deg, var(--line) 1px, transparent 1px) 24% 0 / 1px 100% no-repeat, linear-gradient(90deg, var(--line) 1px, transparent 1px) 52% 0 / 1px 100% no-repeat, linear-gradient(90deg, var(--line) 1px, transparent 1px) 79% 0 / 1px 100% no-repeat; }
.rs-keep-rows li { display: grid; gap: 5px; }
.rs-keep-rows b { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.rs-keep-rows span { display: flex; align-items: center; gap: 8px; }
.rs-keep-rows i { flex: none; width: var(--to); height: 8px; border-radius: 4px; transform-origin: left; }
.rs-keep-rows em { font-style: normal; font-size: 11.5px; color: var(--mute); white-space: nowrap; }
.rs-keep-rows .is-draft i { background: var(--look-bg); box-shadow: inset 0 0 0 1px var(--look-line); background-image: repeating-linear-gradient(90deg, var(--look-line) 0 6px, transparent 6px 10px); background-size: 100% 2px; background-position: 0 50%; background-repeat: no-repeat; }
.rs-keep-rows .is-draft em { color: var(--look-ink); }
.rs-keep-rows .is-always span { display: grid; }
.rs-keep-rows .is-always i { position: relative; width: calc(100% - 6px); background: var(--ink); }
.rs-keep-rows .is-always i::after { content: ""; position: absolute; right: -6px; top: -3px; border: 7px solid transparent; border-left-color: var(--ink); border-right: 0; }
.rs-keep-rows .is-always em { color: var(--ink); font-weight: 500; }
.rs-keep-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.rs-keep-draft, .rs-keep-set { width: 18px; height: 8px; border-radius: 4px; }
.rs-keep-draft { background: var(--look-bg); box-shadow: inset 0 0 0 1px var(--look-line); }
.rs-keep-set { margin-left: 10px; background: var(--ink); }
.js .rs-keep[data-reveal] .rs-keep-rows i { transform: scaleX(0); transition: transform 1s var(--rs-in); transition-delay: calc(0.35s + var(--i, 0) * 0.12s); }
.js .rs-keep[data-reveal] .rs-keep-rows em { opacity: 0; transition: opacity 0.5s var(--ease-ui); transition-delay: calc(0.9s + var(--i, 0) * 0.12s); }
.rs-keep-rows li:nth-child(2) { --i: 1; }
.rs-keep-rows li:nth-child(3) { --i: 2; }
.rs-keep-rows li:nth-child(4) { --i: 3; }
.rs-keep-rows li:nth-child(5) { --i: 4; }
.js .rs-keep.is-in .rs-keep-rows i { transform: none; }
.js .rs-keep.is-in .rs-keep-rows em { opacity: 1; }

/* Privacy contents: a rail that fills as you read. */
.rs-toc-rail { --p: 0; }
.rs-toc-rail ol, .rs-toc-index ol { position: relative; }
.rs-toc-rail ol { border-left: 0; padding-left: 0; }
.rs-toc-progress { position: absolute; left: 0; top: 34px; bottom: 0; width: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.rs-toc-progress i { position: absolute; inset: 0; background: var(--ruby); transform-origin: top; transform: scaleY(var(--p)); }
.rs-toc-rail a { border-left: 0; padding-left: 18px; position: relative; }
.rs-toc-rail a::before { content: ""; position: absolute; left: -3.5px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--line-strong); transition: border-color 0.2s var(--ease-ui), background-color 0.2s var(--ease-ui); }
.rs-toc-rail a[aria-current="true"] { color: var(--ink); }
.rs-toc-rail a[aria-current="true"]::before { border-color: var(--ruby); background: var(--ruby); }

/* The summary box, set apart as the one part to read first. */
.page-privacy .glance { position: relative; padding: 26px 28px 24px; border-radius: 14px; background: var(--surface); border-color: var(--line); }
.page-privacy .glance::before { content: ""; position: absolute; right: 22px; top: 22px; width: 26px; height: 30px; background: var(--accent-bg); clip-path: path("M13 0 0 5v9c0 8 5.6 13.8 13 16 7.4-2.2 13-8 13-16V5Z"); }
.page-privacy .glance h2 { font-size: 20px; font-weight: 500; }
.page-privacy .glance .facts li::before { width: 9px; height: 5px; top: 0.55em; left: 2px; border-radius: 0; background: none; border-left: 2px solid var(--ruby); border-bottom: 2px solid var(--ruby); transform: rotate(-45deg); }

/* ---------- Terms: the agreement at a glance ---------- */

.rs-keyterms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.rs-keyterms a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); font-size: 13.5px; color: var(--ink-2); text-decoration: none; transition: border-color 0.2s var(--ease-ui), color 0.2s var(--ease-ui); }
.rs-keyterms span { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--surface-2); font-family: var(--mono); font-size: 11px; color: var(--mute); }
.rs-keyterms span::before { content: "§"; margin-right: 2px; }
@media (hover: hover) and (pointer: fine) { .rs-keyterms a:hover { border-color: var(--ghost-border); color: var(--accent-ink); } }

.rs-agree { margin: 0; display: grid; justify-items: center; gap: 18px; }
.rs-agree-stack { position: relative; width: min(100%, 440px); height: 390px; }
.rs-doc { position: absolute; display: flex; flex-direction: column; gap: 8px; width: 250px; height: 300px; padding: 20px; border-radius: 8px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--lift-2); color: var(--ink); }
.rs-doc b { font-size: 15px; font-weight: 500; white-space: nowrap; }
.rs-doc small { margin-top: -6px; margin-bottom: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--faint); }
.rs-doc i { height: 5px; border-radius: 3px; background: var(--surface-2); }
.rs-doc i:nth-of-type(even) { width: 78%; }
.rs-doc-privacy { left: 0; top: 0; transform: rotate(-3deg); }
.rs-doc-dpa { left: 26px; top: 38px; transform: rotate(-1.5deg); }
.rs-doc-terms { left: 52px; top: 76px; transform: rotate(0.5deg); }
.rs-doc-order { right: 0; top: 112px; width: 220px; height: auto; background: var(--sheet); color: var(--sheet-ink); border-color: var(--sheet-line); transform: rotate(4deg); }
.rs-doc-order dl { display: grid; gap: 8px; margin-top: 6px; }
.rs-doc-order dl div { display: grid; gap: 4px; }
.rs-doc-order dt { font-family: var(--mono); font-size: 10.5px; color: var(--sheet-mute); }
.rs-doc-order dd { height: 22px; border-radius: 4px; border: 1px dashed color-mix(in srgb, var(--sheet-mute) 40%, transparent); }
.rs-agree-wins { align-self: flex-start; margin-top: 8px; padding: 5px 9px; border-radius: 6px; border: 1.5px solid var(--ruby); color: var(--ruby); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(-4deg); }
.rs-clip { position: absolute; left: 196px; top: -22px; width: 22px; height: auto; fill: none; stroke: var(--mute); stroke-width: 2.4; stroke-linecap: round; z-index: 5; }
.rs-agree-cap { max-width: 26.52em; text-align: center; font-size: 13.5px; color: var(--mute); }
.js .rs-agree[data-reveal] { opacity: 1; transform: none; }
.js .rs-agree .rs-doc, .js .rs-agree .rs-clip, .js .rs-agree .rs-agree-cap { opacity: 0; transition: opacity 0.5s var(--rs-in), transform 1s var(--rs-in); transition-delay: var(--t, 0s); }
.js .rs-agree .rs-doc-privacy { transform: translateY(18px) rotate(0deg); --t: 0.1s; }
.js .rs-agree .rs-doc-dpa { transform: translateY(18px) rotate(0deg); --t: 0.22s; }
.js .rs-agree .rs-doc-terms { transform: translateY(18px) rotate(0deg); --t: 0.34s; }
.js .rs-agree .rs-doc-order { transform: translate(24px, 18px) rotate(10deg); --t: 0.6s; }
.js .rs-agree .rs-clip { transform: translateY(-10px); --t: 1s; }
.js .rs-agree .rs-agree-cap { --t: 1.1s; }
.js .rs-agree .rs-agree-wins { opacity: 0; transform: rotate(-12deg) scale(1.35); transition: opacity 0.2s var(--ease-ui) 1.35s, transform 0.5s var(--rs-in) 1.35s; }
.js .rs-agree.is-in :is(.rs-doc, .rs-clip, .rs-agree-cap) { opacity: 1; }
.js .rs-agree.is-in .rs-doc-privacy { transform: rotate(-3deg); }
.js .rs-agree.is-in .rs-doc-dpa { transform: rotate(-1.5deg); }
.js .rs-agree.is-in .rs-doc-terms { transform: rotate(0.5deg); }
.js .rs-agree.is-in .rs-doc-order { transform: rotate(4deg); }
.js .rs-agree.is-in .rs-clip { transform: none; }
.js .rs-agree.is-in .rs-agree-wins { opacity: 1; transform: rotate(-4deg); }

/* Terms contents: an index, numbered like the sections, that says where you are. */
.rs-toc-index p { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rs-toc-count { font-family: var(--mono); font-size: 11.5px; font-weight: 400; color: var(--faint); }
.rs-toc-index ol { position: relative; border-left: 0; gap: 1px; }
.rs-toc-index a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; padding: 5px 10px 5px 6px; margin-left: 0; border-left: 0; border-radius: 6px; }
.rs-toc-index a span { font-family: var(--mono); font-size: 11.5px; color: var(--faint); text-align: right; padding-top: 1px; }
.rs-toc-index a[aria-current="true"] { background: var(--accent-bg); color: var(--ink); }
.rs-toc-index a[aria-current="true"] span { color: var(--accent-ink); }

/* Section numbers hang in the margin, like a contract's. */
.page-terms .legal { gap: clamp(32px, 6vw, 104px); }
.page-terms .legal-body .doc-section h2 { position: relative; }
.rs-sec-n { position: absolute; right: calc(100% + 18px); top: 0.12em; font-family: var(--mono); font-size: 15px; font-weight: 400; letter-spacing: 0; color: var(--faint); }
.page-terms .legal-body .doc-section:target h2 .rs-sec-n, .page-terms .legal-body .doc-section h2:hover .rs-sec-n { color: var(--accent-ink); }
.page-terms .legal-table td:first-child { width: 30%; font-weight: 500; }
.page-terms #words .table-wrap { border-radius: 10px; }
.page-terms #fees .facts { padding: 18px 20px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.page-terms .legal-body .doc-section strong { font-weight: 500; color: var(--ink); }

/* ---------- Both, on smaller screens: the contents become a strip that stays in reach ---------- */

@media (max-width: 1023px) {
  .rs-lhero-grid { grid-template-columns: minmax(0, 1fr); }
  .rs-keep, .rs-agree { max-width: 560px; }
  .rs-agree { justify-self: center; }
  .page-privacy .legal, .page-terms .legal { grid-template-columns: minmax(0, 1fr); }
  .page-privacy .legal-toc, .page-terms .legal-toc {
    min-width: 0; position: sticky; top: 64px; z-index: 5; display: block; margin-inline: -16px; padding: 10px 16px; border-radius: 0; border: 0;
    border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 98%, transparent);
  }
  .page-privacy .legal-toc p, .page-terms .legal-toc p, .rs-toc-progress { display: none; }
  .page-privacy .legal-toc ol, .page-terms .legal-toc ol { display: flex; gap: 6px; padding: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .page-privacy .legal-toc ol::-webkit-scrollbar, .page-terms .legal-toc ol::-webkit-scrollbar { display: none; }
  .page-privacy .legal-toc li, .page-terms .legal-toc li { flex: none; }
  .page-privacy .legal-toc a, .page-terms .legal-toc a { display: inline-flex; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; font-size: 13.5px; }
  .page-privacy .legal-toc a::before { display: none; }
  .page-privacy .legal-toc a[aria-current="true"], .page-terms .legal-toc a[aria-current="true"] { border-color: var(--ghost-border); background: var(--accent-bg); color: var(--ink); }
  .rs-toc-index a span { text-align: left; }
  .rs-sec-n { position: static; margin-right: 4px; font-size: 0.7em; vertical-align: 0.12em; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .page-privacy .legal-toc, .page-terms .legal-toc { top: 72px; margin-inline: 0; }
}
@media (max-width: 767px) {
  .rs-agree-stack { height: 350px; }
  .rs-doc { width: 210px; height: 240px; padding: 16px; }
  .rs-doc-dpa { left: 18px; top: 34px; }
  .rs-doc-terms { left: 36px; top: 68px; }
  .rs-doc-order { width: 180px; top: 104px; }
  .rs-clip { left: 160px; }
  .rs-doc b { font-size: 13.5px; }
  .rs-keep-scale { font-size: 9.5px; }
  .rs-keep-scale span:first-child { display: none; }
  .page-privacy .legal-body .doc-section, .page-terms .legal-body .doc-section { padding-block: 32px; }
  .page-privacy .legal-body .doc-section p, .page-terms .legal-body .doc-section p { font-size: 16px; }
}

/* ======================================================================
   Integrations: a hub. Conversations on one side, the truth on the other,
   Alalvera between them. A wire is solid only where something is read today.
   ====================================================================== */

.rs-ihero { padding-bottom: clamp(56px, 7vw, 96px); }
.rs-ihero-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 clamp(32px, 5vw, 72px); align-items: start; }
.rs-ihero-head > .eyebrow { grid-column: 1; grid-row: 1; justify-self: start; }
.rs-ihero-head > h1 { grid-column: 1; grid-row: 2 / span 2; }
.rs-ihero-head > .lede { grid-column: 2; grid-row: 2; }
.rs-ihero-head > .status-key { grid-column: 2; grid-row: 3; }
/* In the catalogue, each group keeps its name in view beside its cards. */
@media (min-width: 768px) { .page-integrations .catalog-head > div:first-child { position: sticky; top: 104px; align-self: start; } }
.rs-hub {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr) 200px minmax(0, 0.8fr); column-gap: clamp(56px, 7vw, 112px); align-items: center;
  margin-top: clamp(40px, 5vw, 64px); padding: clamp(20px, 3vw, 36px); border-radius: 20px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--lift-2);
}
.js .rs-hub[data-reveal] { opacity: 1; transform: none; }
.rs-hub > :not(.rs-hub-wires) { position: relative; z-index: 1; }
/* Its own layer: the moving pulses repaint only the wires, not the whole card with its shadow (168 dropped frames
   in one scroll on a 2013 integrated GPU, 10 with the layer). */
.rs-hub-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 0; will-change: transform; }
.rs-hub-wire { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 3 5; stroke-linecap: round; }
.rs-hub-wire.is-live { stroke: var(--ruby); stroke-dasharray: none; opacity: 0.55; }
.rs-hub-pulse { fill: none; stroke: var(--ruby); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 0.07 1; stroke-dashoffset: 0.07; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .rs-hub.rs-live .rs-hub-pulse { opacity: 1; animation: rs-flow 2.8s linear infinite; animation-delay: var(--pd, 0s); }
  .rs-hub.rs-live .rs-hub-ring { animation: rs-spin 48s linear infinite; }
}
@keyframes rs-flow { from { stroke-dashoffset: 0.07; } to { stroke-dashoffset: -1; } }
@keyframes rs-spin { to { transform: rotate(1turn); } }
.js .rs-hub .rs-hub-wires { opacity: 0; transition: opacity 0.8s var(--ease-ui) 0.7s; }
.js .rs-hub.is-in .rs-hub-wires { opacity: 1; }

.rs-hub-side { display: grid; gap: 10px; }
.rs-hub-tag { display: grid; gap: 2px; margin-bottom: 4px; font-size: 12.5px; color: var(--mute); }
.rs-hub-tag b { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; color: var(--ink); }
.rs-hub-tag b::before { content: ""; width: 18px; height: 6px; border-radius: 3px; }
.rs-hub-said .rs-hub-tag b::before { background: var(--claim-bg); box-shadow: inset 0 -2px 0 var(--claim-line); }
.rs-hub-true .rs-hub-tag b::before { background: var(--rule-bg); box-shadow: inset 0 -2px 0 var(--rule-line); }
.rs-hub-group { padding: 12px; border-radius: 12px; border: 1px dashed var(--line-strong); background: var(--bg); transition: border-color 0.3s var(--ease-ui); }
.rs-hub-group.is-live { border-style: solid; border-color: color-mix(in srgb, var(--ruby) 45%, var(--line)); }
.rs-hub-group > p { margin-bottom: 8px; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.rs-hub-group ul { display: flex; flex-wrap: wrap; gap: 6px; }
.rs-hub-group li { display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px 4px 4px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--ink); }
.rs-hub-group li[data-status="coming_soon"] { color: var(--mute); }
.rs-hub-mark { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 6px; background: var(--surface-2); font-size: 11px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.rs-hub-mark svg { width: 13px; height: 13px; fill: none; stroke: var(--accent-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.rs-hub-mark.has-logo { padding: 2px; background: #fff; }
.rs-hub-mark .site-brand { width: 16px; height: 16px; object-fit: contain; border-radius: 3px; }
.rs-hub-st { width: 8px; height: 8px; flex: none; border-radius: 50%; border: 1.5px solid var(--faint); }
.rs-hub-group li[data-status="available"] .rs-hub-st { border-color: #2ea043; background: #2ea043; }
.rs-hub-group li[data-status="not_supported"] .rs-hub-st { border-color: var(--faint); }
.rs-hub-group li[data-status="in_progress"] .rs-hub-st { border-color: var(--orange); }
.rs-hub-group li[data-status="beta"] .rs-hub-st { border-color: var(--yellow-deep); background: var(--yellow-deep); }
.rs-hub-group li[data-status="unsupported"] .rs-hub-st { border-color: var(--error); background: var(--error); }
.rs-hub-group li[data-status="part"] .rs-hub-st { border-color: var(--orange); background: var(--orange); }
.js .rs-hub .rs-hub-group { opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--rs-in), transform 0.8s var(--rs-in), border-color 0.3s var(--ease-ui); transition-delay: var(--t, 0s), var(--t, 0s), 0s; }
.rs-hub-said .rs-hub-group:nth-of-type(1) { --t: 0.15s; }
.rs-hub-said .rs-hub-group:nth-of-type(2) { --t: 0.25s; }
.rs-hub-said .rs-hub-group:nth-of-type(3) { --t: 0.35s; }
.rs-hub-true .rs-hub-group:nth-of-type(1) { --t: 0.3s; }
.rs-hub-true .rs-hub-group:nth-of-type(2) { --t: 0.4s; }
.js .rs-hub.is-in .rs-hub-group { opacity: 1; transform: none; }

.rs-hub-core { display: grid; justify-items: center; gap: 0; }
.rs-hub-node { position: relative; display: grid; place-items: center; align-content: center; gap: 8px; width: 132px; height: 132px; border-radius: 50%; background: var(--inv-bg); color: var(--inv-ink); box-shadow: var(--lift-2); }
.rs-hub-node .logo-mark { width: 34px; height: 34px; }
/* The node is the colour of ink, so the check's short arm takes the node's own text colour or it would not be seen. */
.rs-hub-node .logo-source { fill: var(--inv-ink); }
.rs-hub-node b { font-size: 14px; font-weight: 500; }
.rs-hub-ring { position: absolute; inset: -11px; border-radius: 50%; border: 1px dashed var(--line-strong); }
.rs-hub-out { display: grid; justify-items: center; gap: 8px; max-width: 14.586em; text-align: center; font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.rs-hub-out::before { content: ""; width: 1px; height: 30px; background: var(--ruby); }
.js .rs-hub .rs-hub-node { opacity: 0; transform: scale(0.9); transition: opacity 0.5s var(--rs-in), transform 0.9s var(--rs-in); }
.js .rs-hub .rs-hub-out { opacity: 0; transform: translateY(-8px); transition: opacity 0.5s var(--rs-in) 1.1s, transform 0.8s var(--rs-in) 1.1s; }
.js .rs-hub.is-in .rs-hub-node, .js .rs-hub.is-in .rs-hub-out { opacity: 1; transform: none; }
.rs-hub-key { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; font-size: 12.5px; color: var(--mute); }
.rs-hub-k-live, .rs-hub-k-soon { width: 24px; height: 0; border-top: 2px solid var(--ruby); }
.rs-hub-k-soon { margin-left: 12px; border-top: 2px dashed var(--line-strong); }

/* The catalogue: a strip of its four groups, then the cards as they were. */
.rs-catnav { display: flex; gap: 8px; margin-bottom: clamp(16px, 2vw, 24px); overflow-x: auto; scrollbar-width: none; }
.rs-catnav::-webkit-scrollbar { display: none; }
.rs-catnav a { flex: none; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); font-size: 14px; color: var(--ink-2); text-decoration: none; transition: border-color 0.2s var(--ease-ui), color 0.2s var(--ease-ui); }
@media (hover: hover) and (pointer: fine) { .rs-catnav a:hover { border-color: var(--ghost-border); color: var(--accent-ink); } }

/* Where the truth comes from: what every audit reads, and what a store connection would add. */
.rs-truth { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rs-truth-card { display: flex; flex-direction: column; gap: 12px; padding: clamp(18px, 2.4vw, 26px); border-radius: 16px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--lift-1); }
.rs-truth-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; font-size: 19px; font-weight: 400; letter-spacing: -0.01em; }
.rs-truth-card .facts { margin-top: 2px; }
.rs-truth-card .facts li { color: var(--ink-2); font-size: 15px; }
.rs-truth-mock { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.rs-truth-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; background: var(--surface-2); font-family: var(--mono); font-size: 10.5px; color: var(--mute); }
.rs-truth-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.rs-truth-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-truth-sheet { position: relative; isolation: isolate; display: grid; gap: 6px; min-height: 172px; padding: 16px 18px; background: var(--sheet); color: var(--sheet-ink); font-size: 13.5px; line-height: 1.5; }
.rs-truth-sheet b { margin-bottom: 4px; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 400; }
.rs-truth-sheet mark { color: var(--sheet-ink); }
.rs-truth-sheet mark.rule::before { background: rgba(255, 97, 24, 0.2); box-shadow: inset 0 -2px 0 var(--orange); }
.rs-truth-price { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--sheet-line); }
.rs-truth-price span:last-child { color: var(--sheet-mute); }
.rs-truth-panel { display: grid; grid-template-columns: 96px minmax(0, 1fr); min-height: 172px; }
.rs-truth-nav { display: grid; align-content: start; gap: 2px; padding: 10px 8px; border-right: 1px solid var(--line); font-size: 12px; color: var(--mute); }
.rs-truth-nav li { padding: 5px 8px; border-radius: 6px; }
.rs-truth-nav .is-on { background: var(--surface-2); color: var(--ink); }
.rs-truth-rows { position: relative; display: grid; align-content: start; gap: 4px; padding: 10px 14px; }
.rs-truth-rows p { display: grid; gap: 1px; padding: 6px 0; border-bottom: 1px solid var(--line); opacity: 0.45; }
.rs-truth-rows b { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink); }
.rs-truth-rows span { font-size: 11.5px; color: var(--mute); }
.rs-truth-lock { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-strong); box-shadow: var(--lift-1); font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.rs-truth-lock svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; }
.rs-truth-card.is-soon .rs-truth-mock { border-style: dashed; }
.rs-truth-pull { position: relative; max-width: 32.9em; margin-top: clamp(40px, 5vw, 56px); padding-left: 22px; font-size: clamp(19px, 1rem + 0.7vw, 24px); font-weight: 300; line-height: 1.4; letter-spacing: -0.01em; color: var(--mute); }
.rs-truth-pull::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; border-radius: 3px; background: var(--ruby); }
.rs-truth-pull b { display: block; margin-bottom: 4px; font-weight: 400; color: var(--ink); }

@media (max-width: 1023px) {
  .rs-ihero-head { grid-template-columns: minmax(0, 1fr); }
  .rs-ihero-head > * { grid-column: 1 !important; grid-row: auto !important; }
  .rs-hub { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .rs-hub-core { display: contents; }
  .rs-hub-said { order: 1; }
  .rs-hub-node { order: 2; justify-self: center; }
  .rs-hub-true { order: 3; }
  .rs-hub-out { order: 4; justify-self: center; }
}
@media (max-width: 767px) {
  .rs-hub { padding: 16px; row-gap: 48px; }
  .rs-hub-node { width: 112px; height: 112px; }
  .rs-truth { grid-template-columns: minmax(0, 1fr); }
  .rs-catnav { margin-inline: -16px; padding-inline: 16px; }
}

/* ======================================================================
   Custom agent: a serious page. One calm diagram, drawn once, and the
   connection's states as a path with its exceptions beside it.
   ====================================================================== */

.rs-amap { display: grid; grid-template-columns: minmax(0, 0.85fr) 48px minmax(0, 1.3fr) 112px minmax(0, 0.85fr); align-items: center; margin-top: clamp(40px, 5vw, 64px); }
.js .rs-amap[data-reveal] { opacity: 1; transform: none; }
.rs-amap-box { padding: 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--lift-1); }
.rs-amap-box h3 { font-size: 15px; font-weight: 500; }
.rs-amap-box > p { margin-top: 4px; font-size: 13.5px; color: var(--mute); }
.rs-amap-box .chips { margin-top: 12px; }
.rs-amap-built { background: transparent; box-shadow: none; border-style: dashed; border-color: var(--line-strong); }
.rs-amap-app { padding: 24px; border-color: var(--line-strong); box-shadow: var(--lift-2); }
.rs-amap-models { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.rs-amap-models > span { padding-top: 4px; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.rs-amap-models .chips { margin-top: 0; }
.rs-amap-call { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 16px; padding: 10px 12px; border-radius: 8px; background: #0b1a2b; color: #dbe6f3; font-size: 12.5px; overflow-wrap: anywhere; }
.rs-amap-call span { color: #8fa3ba; }
.rs-amap-call span::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 8px; border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor; transform: translateY(-2px) rotate(-45deg); }
.rs-amap-us { background: var(--inv-bg); color: var(--inv-ink); border-color: transparent; }
.rs-amap-us h3 { color: var(--inv-ink); }
.rs-amap-us > p { color: var(--inv-mute); }
.rs-amap-us .chips li { background: color-mix(in srgb, var(--inv-ink) 8%, transparent); border-color: var(--inv-line); color: var(--inv-ink); }
.rs-amap-link { position: relative; height: 1px; background: var(--line-strong); transform-origin: left; }
.rs-amap-link::after { content: ""; position: absolute; right: -1px; top: -4px; border: 4.5px solid transparent; border-left: 6px solid var(--line-strong); border-right: 0; }
.rs-amap-link.is-sdk { background: var(--ruby); }
/* The SDK arrow leaves from the one call, at the foot of the application. */
@media (min-width: 1024px) { .rs-amap-link.is-sdk { align-self: end; margin-bottom: 43px; } .rs-amap-us { align-self: end; } }
.rs-amap-link.is-sdk::after { border-left-color: var(--ruby); }
.rs-amap-link small { position: absolute; left: 50%; bottom: 10px; translate: -50% 0; font-family: var(--mono); font-size: 11px; color: var(--accent-ink); white-space: nowrap; }
/* Drawn once: the application first, then what built it, then the one call that leaves it. */
.js .rs-amap .rs-amap-box { opacity: 0; transform: translateY(10px); transition: opacity 0.6s var(--rs-in), transform 0.9s var(--rs-in); transition-delay: var(--t, 0s); }
.js .rs-amap .rs-amap-link { transform: scaleX(0); transition: transform 0.7s var(--rs-in); transition-delay: var(--t, 0s); }
.js .rs-amap .rs-amap-link small { opacity: 0; transition: opacity 0.5s var(--ease-ui) 1.1s; }
.rs-amap-app { --t: 0.1s; }
.rs-amap-built { --t: 0.35s; }
.rs-amap-link { --t: 0.5s; }
.rs-amap-link.is-sdk { --t: 0.75s; }
.rs-amap-us { --t: 1s; }
.js .rs-amap.is-in .rs-amap-box { opacity: 1; transform: none; }
.js .rs-amap.is-in .rs-amap-link { transform: none; }
.js .rs-amap.is-in .rs-amap-link small { opacity: 1; }

/* The states: the usual path in order, the exceptions apart. */
.rs-states-label { margin-bottom: 14px; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.rs-states-label ~ .rs-states-label { margin-top: 40px; }
.rs-states-path { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.rs-states-path li { position: relative; padding: 32px 8px 0 0; }
.rs-states-path li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--faint); background: var(--bg); z-index: 1; }
.rs-states-path li:not(:last-child)::after { content: ""; position: absolute; left: 18px; right: -10px; top: 7px; height: 2px; border-radius: 2px; background: var(--line-strong); }
.rs-states-path .s-lock::before { border-color: var(--ruby); }
.rs-states-path .s-wait::before { border-color: var(--yellow-deep); }
.rs-states-path .s-ok::before { border-color: #2ea043; background: #2ea043; box-shadow: 0 0 0 4px rgba(46, 160, 67, 0.16); }
.rs-states-path b, .rs-states-off b { display: block; font-size: 15px; font-weight: 500; color: var(--ink); }
.rs-states-path span, .rs-states-off span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--mute); }
.rs-states-off { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.rs-states-off li { position: relative; padding: 14px 16px 14px 34px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.rs-states-off li::before { content: ""; position: absolute; left: 14px; top: 19px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--faint); }
.rs-states-off .s-bad { border-color: var(--error-line); }
.rs-states-off .s-bad::before { border-color: var(--error); background: var(--error); }

@media (max-width: 1023px) {
  .rs-amap { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .rs-amap-link { justify-self: start; width: 1px; height: 36px; margin-left: 28px; transform-origin: top; }
  .rs-amap-link::after { right: auto; left: -4px; top: auto; bottom: -1px; border: 4.5px solid transparent; border-top: 6px solid var(--line-strong); border-bottom: 0; }
  .rs-amap-link.is-sdk::after { border-left-color: transparent; border-top-color: var(--ruby); }
  .rs-amap-link small { left: 14px; bottom: auto; top: 50%; translate: 0 -50%; }
  .js .rs-amap .rs-amap-link { transform: scaleY(0); }
  .rs-states-path { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .rs-states-path li { padding: 0 0 22px 32px; }
  .rs-states-path li::before { top: 2px; }
  .rs-states-path li:not(:last-child)::after { left: 7px; right: auto; top: 20px; bottom: 2px; width: 2px; height: auto; }
}
@media (max-width: 767px) {
  .rs-states-off { grid-template-columns: minmax(0, 1fr); }
}
