/* ============================================================
   RelayLink — design system
   1. Tokens        2. Base          3. Typography
   4. Brand mark    5. Header & nav  6. Buttons
   7. Hero          8. Package card  9. Provenance
   10. Sections     11. Steps       12. Boundaries
   13. Final CTA    14. Footer      15. Icons & utilities
   16. Reveal motion                17. Responsive
   18. Blog       19. Error pages   20. Docs
   21. The cost   22. Pricing       23. Founding list & forms
   ============================================================ */

/* ---------- 0. Fonts ---------- */

/* Self-hosted latin variable subsets (downloaded from Google Fonts once, served
   first-party). This removes the only third-party dependency the page had: no
   preconnects, no CDN, and the landing page's CSP allows only 'self'. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/source-serif-4-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/source-serif-4-italic-var-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Tokens ---------- */

:root {
  --rl-ink: #14213d;
  --rl-ink-soft: #3b4a67;
  --rl-ink-muted: #6a7690;
  --rl-navy: #1b2d4f;
  --rl-navy-deep: #101c34;
  --rl-navy-black: #0a1122;

  --rl-paper: #faf7f2;
  --rl-paper-warm: #f5efe5;
  --rl-paper-deep: #efe6d8;
  --rl-white: #ffffff;

  --rl-amber: #c98a2e;
  --rl-amber-deep: #9d6a1c;
  --rl-amber-soft: #eed9ab;
  --rl-amber-wash: #fbf3e4;

  --rl-verify: #2f6b52;
  --rl-verify-wash: #e7f0ea;

  --rl-line: #e5dccd;
  --rl-line-strong: #d2c6b1;

  --rl-radius: 14px;
  --rl-radius-sm: 9px;
  --rl-shadow: 0 16px 40px rgba(20, 33, 61, 0.07);
  --rl-shadow-lift: 0 26px 60px rgba(20, 33, 61, 0.14);

  --rl-font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --rl-font-body: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rl-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --rl-shell: 74rem;
}

/* ---------- 2. Base ---------- */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  font-size: 16px;
  scroll-behavior: smooth;
  /* Clears the sticky header when an in-page anchor is followed. */
  scroll-padding-top: 6rem;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--rl-ink);
  background: var(--rl-paper);
  font-family: var(--rl-font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
main {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

img,
svg {
  max-width: 100%;
  vertical-align: middle;
}

::selection {
  color: var(--rl-navy-deep);
  background: var(--rl-amber-soft);
}

a {
  color: inherit;
  text-decoration-color: rgba(20, 33, 61, 0.28);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-color: var(--rl-amber);
}

:focus-visible {
  outline: 2px solid var(--rl-amber-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

code {
  font-family: var(--rl-font-mono);
  font-size: 0.875em;
}

.rl-shell {
  width: 100%;
  max-width: var(--rl-shell);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.7rem 1.1rem;
  background: var(--rl-navy-deep);
  color: var(--rl-paper);
  border-radius: 0 0 var(--rl-radius-sm) 0;
  text-decoration: none;
}

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

/* ---------- 3. Typography ---------- */

h1,
h2,
h3 {
  font-family: var(--rl-font-display);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.14;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
}

h3 {
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.008em;
}

/* The one accent voice: italic serif in amber. Used sparingly, on the phrase that
   carries the sentence. */
h1 em,
h2 em {
  font-style: italic;
  color: var(--rl-amber-deep);
}

p {
  margin: 0;
  /* Progressive: better rag and no single-word last lines where supported. */
  text-wrap: pretty;
}

/* ---------- 4. Brand mark ---------- */

.brand-mark {
  width: 1.9rem;
  height: 1.9rem;
  flex: none;
  color: var(--rl-ink);
}

.brand-mark-node-far {
  fill: var(--rl-amber);
}

.site-brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--rl-font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-word-end {
  color: var(--rl-amber-deep);
}

/* ---------- 5. Header & nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--rl-line);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 4.5rem;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-right: auto;
  font-size: 0.95rem;
}

.site-nav-links a {
  text-decoration: none;
  color: var(--rl-ink-soft);
  padding: 0.25rem 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.site-nav-links a:hover {
  color: var(--rl-ink);
  border-bottom-color: var(--rl-amber);
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* The quieter half of the nav actions: a text link beside the primary CTA, styled like the
   section links rather than competing with the button next to it. */
.nav-signin {
  text-decoration: none;
  color: var(--rl-ink-soft);
  font-size: 0.92rem;
  padding: 0.25rem 0;
  border-bottom: 1.5px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.nav-signin:hover {
  color: var(--rl-ink);
  border-bottom-color: var(--rl-amber);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  background: var(--rl-navy-deep);
  color: var(--rl-paper);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nav-cta:hover {
  background: var(--rl-ink);
  transform: translateY(-1px);
}

.nav-cta .icon,
.button .icon {
  transition: transform 0.18s ease;
}

.nav-cta:hover .icon,
.button:hover .icon {
  transform: translateX(3px);
}

/* JavaScript-free disclosure menu for narrow viewports. */
.nav-disclosure {
  display: none;
  position: relative;
}

.nav-disclosure summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border: 1px solid var(--rl-line-strong);
  border-radius: var(--rl-radius-sm);
  cursor: pointer;
}

.nav-disclosure summary::-webkit-details-marker {
  display: none;
}

.nav-disclosure-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.6rem);
  display: grid;
  gap: 0.15rem;
  min-width: 15rem;
  padding: 0.6rem;
  background: var(--rl-white);
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-radius);
  box-shadow: var(--rl-shadow-lift);
}

.nav-disclosure-panel a {
  padding: 0.6rem 0.75rem;
  border-radius: var(--rl-radius-sm);
  text-decoration: none;
  color: var(--rl-ink-soft);
}

.nav-disclosure-panel a:hover {
  background: var(--rl-paper-warm);
  color: var(--rl-ink);
}

/* ---------- 6. Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease,
    border-color 0.16s ease, box-shadow 0.16s ease;
}

.button-primary {
  background: var(--rl-navy-deep);
  color: var(--rl-paper);
  box-shadow: 0 10px 24px rgba(16, 28, 52, 0.22);
}

.button-primary:hover {
  background: var(--rl-ink);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(16, 28, 52, 0.26);
}

.button-secondary {
  border-color: var(--rl-line-strong);
  color: var(--rl-ink);
  background: transparent;
}

.button-secondary:hover {
  border-color: var(--rl-ink);
  background: var(--rl-white);
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0) scale(0.985);
}

/* ---------- 7. Hero ---------- */

.hero-section {
  position: relative;
  padding: clamp(3.5rem, 7vw, 6.5rem) 0 clamp(3.5rem, 6vw, 5.5rem);
  background: linear-gradient(180deg, var(--rl-paper) 0%, var(--rl-paper-warm) 100%);
  border-bottom: 1px solid var(--rl-line);
  overflow: hidden;
}

/* The amber wash lives on a pseudo-element so it can drift — a barely-there
   ambient motion that keeps the fold feeling alive without demanding attention. */
.hero-section::before {
  content: "";
  position: absolute;
  inset: -25% -10%;
  background: radial-gradient(46rem 30rem at 72% 18%, var(--rl-amber-wash) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-section::before {
    animation: hero-drift 26s ease-in-out infinite alternate;
  }

  @keyframes hero-drift {
    from { transform: translate3d(-2.5%, -1.5%, 0) scale(1); }
    to { transform: translate3d(2.5%, 2%, 0) scale(1.06); }
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.hero-overline {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rl-amber-deep);
}

.hero-overline::before {
  content: "";
  width: 2.25rem;
  height: 1.5px;
  background: var(--rl-amber);
}

.hero-lede {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: 1.175rem;
  color: var(--rl-ink-soft);
}

.hero-lede em {
  font-style: italic;
  color: var(--rl-ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.15rem;
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  margin: 2.4rem 0 0;
  padding: 1.4rem 0 0;
  list-style: none;
  border-top: 1px solid var(--rl-line);
  font-size: 0.9rem;
  color: var(--rl-ink-muted);
}

.hero-proof-row li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-proof-row .icon {
  color: var(--rl-amber-deep);
}

/* ---------- 8. Package card ---------- */

.hero-visual {
  position: relative;
}

/* A second card peeking out behind the first: this is correspondence, so there is
   always another one on the thread. */
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 1.5rem -0.75rem -1.25rem 1.5rem;
  background: var(--rl-white);
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-radius);
  transform: rotate(1.6deg);
  opacity: 0.65;
}

.package-card {
  position: relative;
  background: var(--rl-white);
  border: 1px solid var(--rl-line-strong);
  border-radius: var(--rl-radius);
  box-shadow: var(--rl-shadow-lift);
  overflow: hidden;
}

.package-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.15rem;
  background: var(--rl-navy-deep);
  color: rgba(250, 247, 242, 0.92);
  font-size: 0.82rem;
}

.package-card-head strong {
  font-weight: 600;
  color: var(--rl-white);
}

.package-card-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--rl-amber);
  flex: none;
}

.package-card-verified {
  margin-left: auto;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.62);
}

.package-card-body {
  padding: 1.25rem 1.35rem 1.35rem;
  display: grid;
  gap: 1.05rem;
}

.package-thread {
  font-family: var(--rl-font-display);
  font-size: 1.05rem;
  color: var(--rl-ink);
}

.package-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rl-ink-muted);
}

.package-field {
  font-size: 0.92rem;
  color: var(--rl-ink-soft);
}

.package-field-note {
  padding: 0.85rem 1rem;
  background: var(--rl-amber-wash);
  border-left: 3px solid var(--rl-amber);
  border-radius: 0 var(--rl-radius-sm) var(--rl-radius-sm) 0;
}

.package-note-text {
  font-family: var(--rl-font-display);
  font-size: 1.05rem;
  color: var(--rl-ink);
}

.package-field-ask {
  padding: 0.85rem 1rem;
  background: var(--rl-paper-warm);
  border-radius: var(--rl-radius-sm);
}

.package-chip {
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  background: var(--rl-white);
  border: 1px solid var(--rl-line-strong);
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  color: var(--rl-ink-muted);
}

.package-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.package-list li::marker {
  color: var(--rl-line-strong);
}

.package-card-foot {
  padding: 0.85rem 1.35rem;
  border-top: 1px dashed var(--rl-line);
  background: var(--rl-paper);
  font-size: 0.78rem;
  font-style: italic;
  color: var(--rl-ink-muted);
}

/* On load, the package composes itself — thread, note, ask, TL;DR, assumptions
   land one by one, then the provenance labels stamp on. The same story the page
   tells, told in 2 seconds of motion. Static (fully visible) under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .package-card-body > * {
    animation: pkg-in 0.5s ease both;
  }

  .package-card-body > *:nth-child(1) { animation-delay: 0.25s; }
  .package-card-body > *:nth-child(2) { animation-delay: 0.55s; }
  .package-card-body > *:nth-child(3) { animation-delay: 0.85s; }
  .package-card-body > *:nth-child(4) { animation-delay: 1.15s; }
  .package-card-body > *:nth-child(5) { animation-delay: 1.45s; }

  .package-card-foot {
    animation: pkg-in 0.5s ease 1.7s both;
  }

  .package-card .provenance-tag {
    animation: chip-in 0.4s ease 1.95s both;
  }

  @keyframes pkg-in {
    from { opacity: 0; transform: translateY(6px); }
  }

  @keyframes chip-in {
    from { opacity: 0; transform: scale(0.7); }
  }
}

/* ---------- 9. Provenance ---------- */

.provenance-tag {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: var(--rl-paper-deep);
  border: 1px solid var(--rl-line-strong);
  font-family: var(--rl-font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rl-ink-soft);
  white-space: nowrap;
}

.provenance-tag-verbatim {
  background: var(--rl-verify-wash);
  border-color: rgba(47, 107, 82, 0.35);
  color: var(--rl-verify);
}

.provenance-tag-ai {
  background: var(--rl-white);
  color: var(--rl-ink-muted);
  font-style: italic;
}

/* ---------- 10. Sections & cards ---------- */

.section {
  padding: clamp(3.5rem, 6.5vw, 6rem) 0;
}

.section-tint {
  background: var(--rl-paper-warm);
  border-top: 1px solid var(--rl-line);
  border-bottom: 1px solid var(--rl-line);
}

.section-deep {
  background: var(--rl-navy-deep);
  color: rgba(250, 247, 242, 0.82);
}

.section-deep h2,
.section-deep h3 {
  color: var(--rl-paper);
}

.section-deep .section-kicker {
  color: var(--rl-amber-soft);
}

.section-deep .section-intro {
  color: rgba(250, 247, 242, 0.72);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: clamp(2.25rem, 4vw, 3.25rem);
}

.section-kicker {
  margin-bottom: 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rl-amber-deep);
}

.section-intro {
  margin-top: 1.1rem;
  font-size: 1.1rem;
  color: var(--rl-ink-soft);
}

.section-copy-lg {
  margin-top: 1.1rem;
  font-size: 1.1rem;
  color: var(--rl-ink-soft);
}

.section-closer {
  max-width: 48rem;
  margin: clamp(2.25rem, 4vw, 3rem) auto 0;
  padding-top: 2rem;
  border-top: 1px solid var(--rl-line);
  text-align: center;
  font-size: 1.1rem;
  color: var(--rl-ink-soft);
}

.section-aside {
  margin-top: 1.35rem;
  font-size: 0.95rem;
  color: var(--rl-ink-muted);
}

.section-aside em {
  color: var(--rl-ink);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr));
  gap: 1.35rem;
}

.feature-card {
  padding: 1.75rem;
  background: var(--rl-white);
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-radius);
  box-shadow: var(--rl-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--rl-shadow-lift);
}

.feature-card h3 {
  margin: 1.15rem 0 0.6rem;
}

.feature-card p {
  font-size: 0.98rem;
  color: var(--rl-ink-soft);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: var(--rl-radius-sm);
  background: var(--rl-amber-wash);
  border: 1px solid var(--rl-amber-soft);
  color: var(--rl-amber-deep);
}

.icon-tile-dark {
  margin-bottom: 1.25rem;
  background: rgba(250, 247, 242, 0.08);
  border-color: rgba(250, 247, 242, 0.18);
  color: var(--rl-amber-soft);
}

/* ---------- 11. Steps ---------- */

.step-list {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
  padding: 1.6rem 1.75rem;
  background: var(--rl-white);
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-radius);
}

.step-marker {
  display: grid;
  place-items: center;
  gap: 0.3rem;
  width: 3.5rem;
  padding: 0.7rem 0;
  border-right: 1px dashed var(--rl-line);
  color: var(--rl-amber-deep);
}

.step-number {
  font-family: var(--rl-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--rl-ink-muted);
}

.step-list h3 {
  margin-bottom: 0.4rem;
}

.step-list p {
  color: var(--rl-ink-soft);
  font-size: 0.99rem;
}

/* Story beats inside the steps: the hero card's exchange, quoted. Serif italic so the
   spoken lines read as a different voice than the explanatory copy above them. */
.step-list .step-example {
  margin-top: 0.65rem;
  font-family: var(--rl-font-display);
  font-size: 1.02rem;
  font-style: italic;
  color: var(--rl-ink-muted);
}

/* ---------- 11b. Use cases ---------- */

/* Eight relationships in one hairline grid rather than eight cards: at this count, card
   chrome eight times over is noise, and a single ruled table reads as one idea with eight
   instances — which is what the section's heading says. 1px gaps over the line colour
   draw the rules without doubling borders where cells meet. */
.usecase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--rl-line);
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-radius);
  overflow: hidden;
  box-shadow: var(--rl-shadow);
}

@media (min-width: 40rem) {
  .usecase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .usecase-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.usecase-cell {
  padding: 1.6rem 1.5rem 1.75rem;
  background: var(--rl-white);
  transition: background 0.18s ease;
}

.usecase-cell:hover {
  background: var(--rl-paper);
}

/* The solo cell is first and tinted: one person across their own assistants is a
   first-class use, not a footnote to the pairs. */
.usecase-cell-solo,
.usecase-cell-solo:hover {
  background: var(--rl-amber-wash);
}

.usecase-tag {
  margin-bottom: 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rl-amber-deep);
}

.usecase-quote {
  margin: 0 0 0.65rem;
  font-style: italic;
  font-weight: 500;
  font-size: 1.12rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: var(--rl-ink);
}

.usecase-cell p:last-child {
  font-size: 0.93rem;
  color: var(--rl-ink-soft);
}

/* ---------- 11c. Chat demo ---------- */

/* A self-playing conversation, in CSS alone — this page ships no JavaScript.
   Every message shares one 24s looping timeline; each keyframe block below just
   moves the entry point. Opacity-only, so the layout never reflows mid-loop. */
.chat-demo {
  max-width: 40rem;
  margin-inline: auto;
  background: var(--rl-white);
  border: 1px solid var(--rl-line-strong);
  border-radius: var(--rl-radius);
  box-shadow: var(--rl-shadow-lift);
  overflow: hidden;
}

.chat-demo-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.15rem;
  background: var(--rl-navy-deep);
  color: rgba(250, 247, 242, 0.92);
  font-size: 0.82rem;
}

.chat-demo-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--rl-amber);
  flex: none;
}

.chat-demo-body {
  display: grid;
  gap: 0.8rem;
  padding: 1.5rem 1.5rem 1.75rem;
}

.chat-msg {
  max-width: 85%;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.chat-msg-user {
  justify-self: end;
  background: var(--rl-navy-deep);
  color: var(--rl-paper);
  border-bottom-right-radius: 4px;
}

.chat-msg-ai {
  justify-self: start;
  background: var(--rl-paper-warm);
  border: 1px solid var(--rl-line);
  border-bottom-left-radius: 4px;
  color: var(--rl-ink-soft);
}

.chat-divider {
  justify-self: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rl-ink-muted);
}

/* Typing indicator and message share one grid cell: the dots appear where the
   message will land, then the message takes the same spot — no reflow. */
.chat-slot {
  display: grid;
}

.chat-slot > * {
  grid-area: 1 / 1;
  justify-self: start;
}

/* Hidden by default: reduced-motion readers get the finished conversation with
   no dots; the animation block below fades these in only where motion is welcome. */
.chat-typing {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--rl-paper-warm);
  border: 1px solid var(--rl-line);
  border-radius: 14px 14px 14px 4px;
  opacity: 0;
}

.chat-typing span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--rl-ink-muted);
}

/* The inline preview the assistant shows before anything sends — a miniature of
   the hero's package card, inside the chat bubble. */
.chat-attachment {
  margin-top: 0.65rem;
  padding: 0.65rem 0.8rem;
  background: var(--rl-white);
  border: 1px solid var(--rl-line);
  border-radius: 10px;
}

.chat-attachment-title {
  font-family: var(--rl-font-display);
  font-size: 0.92rem;
  color: var(--rl-ink);
  margin-bottom: 0.4rem;
}

.chat-attachment-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--rl-ink-soft);
}

.chat-attachment-muted {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--rl-ink-muted);
}

.chat-attachment-follow {
  margin-top: 0.6rem;
}

@media (prefers-reduced-motion: no-preference) {
  .chat-c1 { animation: chat-c1 24s infinite; }
  .chat-c2 { animation: chat-c2 24s infinite; }
  .chat-c3 { animation: chat-c3 24s infinite; }
  .chat-c4 { animation: chat-c4 24s infinite; }
  .chat-c5 { animation: chat-c5 24s infinite; }
  .chat-c6 { animation: chat-c6 24s infinite; }
  .chat-c7 { animation: chat-c7 24s infinite; }
  .chat-t2 { animation: chat-t2 24s infinite; }
  .chat-t4 { animation: chat-t4 24s infinite; }
  .chat-t7 { animation: chat-t7 24s infinite; }

  .chat-typing span {
    animation: chat-dot 1.2s ease-in-out infinite;
  }

  .chat-typing span:nth-child(2) { animation-delay: 0.15s; }
  .chat-typing span:nth-child(3) { animation-delay: 0.3s; }

  @keyframes chat-dot {
    0%, 60%, 100% { transform: none; opacity: 0.45; }
    30% { transform: translateY(-4px); opacity: 1; }
  }

  /* One 24s timeline. Messages enter at their moment and hold; typing bubbles
     occupy the gap before each assistant reply; everything fades at 93-97% and
     the loop restarts. */
  @keyframes chat-c1 { 0%, 2% { opacity: 0; transform: translateY(8px); } 4%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
  @keyframes chat-t2 { 0%, 5% { opacity: 0; } 6.5%, 11% { opacity: 1; } 12.5%, 100% { opacity: 0; } }
  @keyframes chat-c2 { 0%, 11% { opacity: 0; transform: translateY(8px); } 13%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
  @keyframes chat-c3 { 0%, 26% { opacity: 0; transform: translateY(8px); } 28%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
  @keyframes chat-t4 { 0%, 29% { opacity: 0; } 30.5%, 34% { opacity: 1; } 35.5%, 100% { opacity: 0; } }
  @keyframes chat-c4 { 0%, 34% { opacity: 0; transform: translateY(8px); } 36%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
  @keyframes chat-c5 { 0%, 45% { opacity: 0; transform: translateY(8px); } 47%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
  @keyframes chat-c6 { 0%, 52% { opacity: 0; transform: translateY(8px); } 54%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
  @keyframes chat-t7 { 0%, 55% { opacity: 0; } 56.5%, 61% { opacity: 1; } 62.5%, 100% { opacity: 0; } }
  @keyframes chat-c7 { 0%, 61% { opacity: 0; transform: translateY(8px); } 63%, 93% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: none; } }
}

/* ---------- 12. Boundaries ---------- */

/* Fixed 2x2 rather than auto-fit: there are exactly four of these, and at desktop
   widths auto-fit produced three across with a single orphan on the second row. */
.boundary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

@media (min-width: 48rem) {
  .boundary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.boundary-card {
  padding: 1.6rem 1.65rem;
  background: rgba(250, 247, 242, 0.05);
  border: 1px solid rgba(250, 247, 242, 0.14);
  border-radius: var(--rl-radius);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.boundary-card:hover {
  border-color: rgba(250, 247, 242, 0.32);
  transform: translateY(-2px);
}

.boundary-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.boundary-card p {
  font-size: 0.96rem;
  color: rgba(250, 247, 242, 0.72);
}

/* ---------- 13. Final CTA ---------- */

.final-cta {
  background:
    radial-gradient(48rem 26rem at 12% 0%, var(--rl-amber-wash) 0%, transparent 60%),
    var(--rl-paper);
  border-top: 1px solid var(--rl-line);
}

.final-cta-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.connect-code {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.85rem;
  padding: 1.15rem 1.35rem;
  background: var(--rl-navy-deep);
  border-radius: var(--rl-radius);
  box-shadow: var(--rl-shadow);
}

.connect-code-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
}

.connect-code-key {
  min-width: 5.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.55);
}

.connect-code code {
  color: var(--rl-amber-soft);
  font-size: 0.95rem;
}

.tool-list-label {
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rl-ink-muted);
}

.tool-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-radius);
  overflow: hidden;
  background: var(--rl-white);
}

.tool-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.8rem 1.15rem;
  border-bottom: 1px solid var(--rl-line);
}

.tool-list li:last-child {
  border-bottom: 0;
}

.tool-list code {
  color: var(--rl-amber-deep);
  font-size: 0.9rem;
}

.tool-list span {
  margin-left: auto;
  font-size: 0.88rem;
  color: var(--rl-ink-muted);
}

/* ---------- 14. Footer ---------- */

.site-footer {
  padding: clamp(3rem, 5vw, 4.5rem) 0 2rem;
  background: var(--rl-navy-black);
  color: rgba(250, 247, 242, 0.7);
  font-size: 0.94rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
}

.site-footer .brand-mark {
  color: var(--rl-paper);
}

.site-footer .footer-brand {
  color: var(--rl-paper);
}

.site-footer .brand-word-end {
  color: var(--rl-amber-soft);
}

.footer-mission {
  margin-top: 1rem;
  max-width: 24rem;
  color: rgba(250, 247, 242, 0.6);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col h2 {
  margin-bottom: 0.35rem;
  font-family: var(--rl-font-body);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.45);
}

.footer-col a {
  text-decoration: none;
  color: rgba(250, 247, 242, 0.75);
}

.footer-col a:hover {
  color: var(--rl-amber-soft);
}

.footer-note p {
  color: rgba(250, 247, 242, 0.6);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(250, 247, 242, 0.12);
  font-size: 0.85rem;
  color: rgba(250, 247, 242, 0.5);
}

.footer-status code {
  color: var(--rl-amber-soft);
}

/* ---------- 15. Icons & utilities ---------- */

.icon-sprite {
  display: none;
}

.icon {
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  pointer-events: none;
}

.icon-sm {
  width: 1.05rem;
  height: 1.05rem;
}

/* ---------- 16. Reveal motion ---------- */

/* Visible by default. The animation below is layered on only where the browser
   supports scroll-driven timelines, so this needs no JavaScript and degrades to a
   plain, fully-readable page everywhere else. */
.reveal {
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      opacity: 0;
      transform: translateY(16px);
      animation: rl-reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 24%;
    }

    @keyframes rl-reveal {
      to {
        opacity: 1;
        transform: none;
      }
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 17. Responsive ---------- */

@media (max-width: 62rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Copy first, then the example. The package card is the most explanatory element on
     the page, but only once you have read the sentence that frames it. */
  .hero-visual {
    max-width: 34rem;
    margin-inline: auto;
  }

  .hero-visual::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 52rem) {
  .site-nav-links,
  .site-nav-actions {
    display: none;
  }

  .nav-disclosure {
    display: block;
    margin-left: auto;
  }

  .hero-lede {
    font-size: 1.08rem;
  }

  .step-list li {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .step-marker {
    flex-direction: row;
    width: auto;
    padding: 0;
    border-right: 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: flex-start;
  }
}

@media (max-width: 34rem) {
  .rl-shell {
    padding: 0 1.15rem;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .package-card-verified {
    display: none;
  }

  /* Phone-width chat: the 85% bubble cap leaves messages too narrow to read
     comfortably — let them span the window. */
  .chat-msg {
    max-width: 100%;
  }
}

/* ---------- 18. Blog ---------- */

.blog-page {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
}

.blog-header {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.blog-header h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
}

.blog-lede {
  margin-top: 1rem;
  font-size: 1.12rem;
  color: var(--rl-ink-soft);
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}

.blog-pill {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--rl-line-strong);
  border-radius: 999px;
  background: var(--rl-white);
  font-size: 0.86rem;
  color: var(--rl-ink-soft);
  text-decoration: none;
}

.blog-pill:hover {
  border-color: var(--rl-amber);
  color: var(--rl-amber-deep);
}

.blog-pill-active {
  border-color: var(--rl-navy);
  background: var(--rl-navy);
  color: var(--rl-paper);
}

.blog-pill-clear {
  border-style: dashed;
}

.blog-featured {
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--rl-amber-wash);
  border: 1px solid var(--rl-amber-soft);
  border-radius: var(--rl-radius);
  box-shadow: var(--rl-shadow);
}

.blog-featured-flag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rl-amber-deep);
}

.blog-featured-title {
  margin-top: 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.blog-featured-title a,
.blog-card-title a {
  text-decoration: none;
}

.blog-featured-title a:hover,
.blog-card-title a:hover {
  color: var(--rl-amber-deep);
}

.blog-featured-summary {
  margin-top: 0.75rem;
  max-width: 42rem;
  color: var(--rl-ink-soft);
}

.blog-list {
  display: grid;
  gap: 0;
}

.blog-card {
  padding: 1.6rem 0;
  border-top: 1px solid var(--rl-line);
}

.blog-card:last-child {
  border-bottom: 1px solid var(--rl-line);
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--rl-ink-muted);
}

.blog-card-category {
  font-weight: 600;
  color: var(--rl-amber-deep);
  text-decoration: none;
}

.blog-card-title {
  margin-top: 0.45rem;
  font-size: 1.45rem;
}

.blog-card-summary {
  margin-top: 0.5rem;
  max-width: 44rem;
  color: var(--rl-ink-soft);
}

.blog-empty {
  padding: 3rem 0;
  color: var(--rl-ink-muted);
}

.blog-pagination {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

.blog-pagination-status {
  font-size: 0.88rem;
  color: var(--rl-ink-muted);
}

/* Article page */

.blog-article-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15rem;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.blog-article-main {
  max-width: 46rem;
}

.blog-breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.86rem;
  color: var(--rl-ink-muted);
  margin-bottom: 1.25rem;
}

.blog-article-header h1 {
  font-size: clamp(2rem, 4vw, 2.9rem);
}

.blog-article-summary {
  margin-top: 0.85rem;
  font-size: 1.15rem;
  color: var(--rl-ink-soft);
}

.blog-article-header .blog-card-meta {
  margin-top: 1rem;
}

.blog-hero-img {
  margin-top: 1.75rem;
  border-radius: var(--rl-radius);
  box-shadow: var(--rl-shadow);
}

/* Rendered markdown body. Element selectors on purpose: the HTML comes out of the
   sanitizer with only id/class surviving, so styling must not depend on authors adding
   classes. */

.blog-article-content {
  margin-top: 1.9rem;
}

.blog-article-content h2 {
  margin: 2.2rem 0 0.8rem;
  font-size: 1.55rem;
}

.blog-article-content h3 {
  margin: 1.7rem 0 0.6rem;
}

.blog-article-content p {
  margin: 0 0 1rem;
}

.blog-article-content ul,
.blog-article-content ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.blog-article-content li {
  margin: 0.35rem 0;
}

.blog-article-content blockquote {
  margin: 1.25rem 0;
  padding: 0.35rem 0 0.35rem 1.1rem;
  border-left: 3px solid var(--rl-amber);
  color: var(--rl-ink-soft);
}

.blog-article-content pre {
  margin: 0 0 1.15rem;
  padding: 1rem 1.2rem;
  background: var(--rl-navy-deep);
  color: var(--rl-paper);
  border-radius: var(--rl-radius-sm);
  overflow-x: auto;
  font-size: 0.9rem;
  line-height: 1.55;
}

.blog-article-content pre code {
  font-size: inherit;
}

.blog-article-content img {
  border-radius: var(--rl-radius-sm);
}

.blog-article-content .table-responsive {
  margin: 0 0 1.15rem;
  overflow-x: auto;
}

.blog-article-content table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

.blog-article-content th,
.blog-article-content td {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--rl-line-strong);
  text-align: left;
  vertical-align: top;
}

.blog-article-content th {
  background: var(--rl-paper-warm);
}

.blog-article-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 2.25rem;
}

.blog-article-tags-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rl-ink-muted);
}

.blog-faq {
  margin-top: 2.75rem;
  padding: 1.5rem 1.75rem;
  background: var(--rl-white);
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-radius);
}

.blog-faq h2 {
  font-size: 1.35rem;
}

.blog-faq dl {
  margin: 1rem 0 0;
}

.blog-faq dt {
  margin-top: 1.1rem;
  font-weight: 600;
}

.blog-faq dd {
  margin: 0.35rem 0 0;
  color: var(--rl-ink-soft);
}

.blog-related {
  margin-top: 2.75rem;
}

.blog-related h2 {
  font-size: 1.35rem;
}

.blog-related ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.blog-related li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-top: 1px solid var(--rl-line);
}

.blog-related li span {
  font-size: 0.85rem;
  color: var(--rl-ink-muted);
}

.blog-sidebar {
  position: sticky;
  top: 6rem;
}

.blog-toc {
  padding-left: 1.1rem;
  border-left: 2px solid var(--rl-line-strong);
  font-size: 0.9rem;
}

.blog-toc-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rl-ink-muted);
}

.blog-toc ul {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
}

.blog-toc li {
  margin: 0.45rem 0;
}

.blog-toc-l3 {
  padding-left: 0.9rem;
}

.blog-toc a {
  color: var(--rl-ink-soft);
  text-decoration: none;
}

.blog-toc a:hover {
  color: var(--rl-amber-deep);
}

@media (max-width: 62rem) {
  .blog-article-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The TOC reads as a footer index once it can't sit alongside the text. */
  .blog-sidebar {
    position: static;
    order: 2;
  }
}

/* ---------- 19. Error pages ---------- */

/* Whoever lands here was going somewhere else, so the page says what happened in one
   line and offers the two ways onward. No illustration and no apology paragraph: a
   wrong URL is a small disappointment, and dressing it up spends the reader's time
   twice. */
.error-page {
  padding: clamp(5rem, 14vw, 10rem) 0;
}

.error-code {
  font-variant-numeric: tabular-nums;
}

.error-lede {
  max-width: 34rem;
  margin-top: 1.25rem;
  font-size: 1.1rem;
  color: var(--rl-ink-soft);
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

/* ---------- 20. Docs ---------- */

/* A reference page, so it reads like one: a single column, generous spacing between sections,
   and code set apart rather than decorated. Nothing here competes with the prose. */
.docs-page {
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 7rem);
}

.docs-shell {
  max-width: 52rem;
}

.docs-header {
  margin-bottom: 3rem;
}

.docs-lede {
  margin-top: 1.25rem;
  max-width: 40rem;
  font-size: 1.1rem;
  color: var(--rl-ink-soft);
}

.docs-page h2 {
  margin-top: 3.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rl-line);
}

.docs-facts {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--rl-paper-warm);
  border-radius: var(--rl-radius);
}

.docs-facts p {
  margin: 0.45rem 0;
}

.docs-key {
  display: inline-block;
  min-width: 7rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rl-ink-muted);
}

.docs-note {
  color: var(--rl-ink-soft);
}

/* Wraps rather than scrolls: the instructions are prose, and a reader should not have to drag a
   paragraph sideways to finish a sentence. */
.docs-pre {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--rl-paper-warm);
  border-left: 3px solid var(--rl-amber);
  border-radius: var(--rl-radius-sm);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--rl-ink-soft);
}

.docs-tool {
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--rl-line);
}

.docs-tool h3 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.docs-tag,
.docs-optional {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--rl-verify);
}

.docs-optional {
  margin-left: 0.5rem;
  color: var(--rl-ink-muted);
}

.docs-params,
.docs-provenance {
  margin: 0.9rem 0 0;
}

.docs-params dt,
.docs-provenance dt {
  margin-top: 0.7rem;
  font-weight: 500;
}

.docs-params dd,
.docs-provenance dd {
  margin: 0.2rem 0 0;
  color: var(--rl-ink-soft);
}

.docs-provenance dt code {
  white-space: normal;
}

.docs-links {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.docs-links li {
  margin: 0.45rem 0;
  color: var(--rl-ink-soft);
}

/* The worked example is a rendered artefact, not prose: monospace, and it scrolls rather than
   wraps, because the renderer's rules and box drawing carry meaning that reflow destroys. */
.docs-example {
  white-space: pre;
  overflow-x: auto;
  font-size: 0.8rem;
  line-height: 1.55;
  border-left-color: var(--rl-verify);
}

.docs-refusals dt {
  margin-top: 1.1rem;
}

.docs-refusals dt code {
  white-space: normal;
  color: var(--rl-amber-deep);
}

.docs-refusals dd {
  margin: 0.35rem 0 0;
  color: var(--rl-ink-soft);
}

/* ---------- 21. The cost ---------- */

/* The status quo drawn as a doubled tax. Two ordered lists side by side — yours, theirs —
   so the symmetry does the arguing; the copy underneath only has to name what gets lost. */
.tax-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

@media (min-width: 48rem) {
  .tax-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.tax-card {
  padding: 1.6rem 1.65rem;
  background: var(--rl-white);
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-radius);
}

.tax-card h3 {
  margin-bottom: 1.1rem;
  font-family: var(--rl-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rl-amber-deep);
}

.tax-card ol {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tax;
}

.tax-card li {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  counter-increment: tax;
  font-size: 0.96rem;
  line-height: 1.5;
  color: var(--rl-ink-soft);
}

.tax-card li::before {
  content: counter(tax);
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--rl-line-strong);
  border-radius: 50%;
  font-family: var(--rl-font-mono);
  font-size: 0.7rem;
  color: var(--rl-ink-muted);
}

/* The "or wait for a meeting" step: dashed, because it is the option that does nothing. */
.tax-card .tax-wait::before {
  border-style: dashed;
}

.cost-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: center;
  margin-top: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 62rem) {
  .cost-lower {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.tax-lost {
  padding-left: 1.15rem;
  border-left: 3px solid var(--rl-amber);
  font-family: var(--rl-font-display);
  font-size: 1.28rem;
  line-height: 1.45;
  color: var(--rl-ink);
}

.tax-fix {
  margin-top: 1.35rem;
  font-size: 1.02rem;
  color: var(--rl-ink-soft);
}

.tax-fix strong {
  font-weight: 600;
  color: var(--rl-ink);
}

/* What each approach loads into the other side's assistant. Dark, like the package
   head and the chat demo's title bar, so it reads as an instrument rather than prose. */
.token-panel {
  padding: 1.5rem 1.6rem 1.6rem;
  background: var(--rl-navy-deep);
  color: rgba(250, 247, 242, 0.85);
  border-radius: var(--rl-radius);
  box-shadow: var(--rl-shadow-lift);
}

.token-panel-head {
  margin-bottom: 1.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rl-amber-soft);
}

.token-row + .token-row {
  margin-top: 1.1rem;
}

.token-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  font-size: 0.94rem;
}

.token-label strong {
  font-weight: 600;
  color: var(--rl-white);
}

.token-num {
  font-family: var(--rl-font-mono);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: rgba(250, 247, 242, 0.6);
}

.token-bar {
  height: 10px;
  margin-top: 0.5rem;
  border-radius: 999px;
  background: rgba(250, 247, 242, 0.12);
  overflow: hidden;
}

.token-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.token-bar-old span {
  width: 100%;
  background: repeating-linear-gradient(
    -45deg,
    var(--rl-amber-deep) 0 6px,
    var(--rl-amber) 6px 12px
  );
}

.token-bar-new span {
  width: 3.5%;
  min-width: 8px;
  background: #7fcaa4;
}

.token-note {
  margin-top: 1.2rem;
  font-size: 0.84rem;
  line-height: 1.55;
  color: rgba(250, 247, 242, 0.62);
}

/* The bars draw themselves as the panel scrolls into view — same scroll-driven timeline
   as .reveal, same guards, same fallback of simply being there. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .token-bar span {
      animation: token-grow 1s ease-out both;
      animation-timeline: view();
      animation-range: entry 10% entry 90%;
    }

    @keyframes token-grow {
      from {
        width: 0;
      }
    }
  }
}

/* ---------- 22. Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 56rem) {
  .pricing-grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }
}

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--rl-white);
  border: 1px solid var(--rl-line-strong);
  border-radius: var(--rl-radius);
  box-shadow: var(--rl-shadow);
  overflow: hidden;
}

.price-card-featured {
  border-color: var(--rl-navy-deep);
  box-shadow: var(--rl-shadow-lift);
}

.price-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1.5rem;
  background: var(--rl-navy-deep);
  color: var(--rl-paper);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price-band-lot {
  color: var(--rl-amber-soft);
}

.price-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.6rem;
}

.price-name {
  font-size: 1.5rem;
}

.price-for {
  margin-top: 0.3rem;
  font-size: 0.95rem;
  color: var(--rl-ink-muted);
}

.price-figure {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 1.2rem 0 0.3rem;
}

.price-amount {
  font-family: var(--rl-font-display);
  font-size: 3.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--rl-ink);
}

.price-per {
  font-size: 0.92rem;
  color: var(--rl-ink-muted);
}

.price-alt {
  font-size: 0.9rem;
  color: var(--rl-ink-soft);
}

.price-alt s {
  color: var(--rl-ink-muted);
}

.price-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.4rem 0 0;
  padding: 1.4rem 0 0;
  list-style: none;
  border-top: 1px solid var(--rl-line);
  font-size: 0.95rem;
  color: var(--rl-ink-soft);
}

.price-list li {
  display: grid;
  grid-template-columns: 1.1rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
}

.price-list .icon {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.22rem;
  color: var(--rl-verify);
}

.price-main .button {
  align-self: flex-start;
  margin-top: 1.6rem;
}

.price-foot {
  padding: 1rem 1.5rem;
  background: var(--rl-paper-warm);
  border-top: 1px solid var(--rl-line);
  font-size: 0.86rem;
  color: var(--rl-ink-muted);
}

.pricing-notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.pricing-note {
  padding: 1.3rem 1.45rem;
  background: var(--rl-paper-warm);
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-radius-sm);
  font-size: 0.94rem;
  color: var(--rl-ink-soft);
}

.pricing-note h3 {
  margin-bottom: 0.5rem;
  font-family: var(--rl-font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rl-amber-deep);
}

/* ---------- 23. Founding list & forms ---------- */

/* The one form on the marketing surface. Field styles are defined once, light, and
   re-coloured inside the dark band, so the same partial renders correctly on the status
   page (paper) and at the foot of the landing page (navy). */
.field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rl-ink-muted);
}

.field-optional {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--rl-ink-muted);
}

.field input,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--rl-white);
  color: var(--rl-ink);
  border: 1px solid var(--rl-line-strong);
  border-radius: var(--rl-radius-sm);
  font: inherit;
  font-size: 0.98rem;
  line-height: 1.3;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input::placeholder {
  color: var(--rl-ink-muted);
  opacity: 0.8;
}

.field input:hover,
.field select:hover {
  border-color: var(--rl-ink-muted);
}

.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--rl-amber);
  outline-offset: 2px;
  border-color: var(--rl-amber-deep);
}

/* The honeypot: off-canvas rather than display:none, since some form-fillers skip hidden
   inputs and the point is that a script fills it. */
.field-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.founding-form {
  position: relative;
  padding: 1.6rem;
  background: var(--rl-white);
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-radius);
}

.founding-row {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 40rem) {
  .founding-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .founding-row .button {
    width: auto;
  }
}

.founding-extra {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}

.founding-fine {
  margin-top: 1.1rem;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--rl-ink-muted);
}

/* The band itself: the page's darkest surface, so the form is the last thing the eye
   lands on before the technical footnote. */
.founding {
  background:
    radial-gradient(44rem 24rem at 90% 0%, rgba(201, 138, 46, 0.22) 0%, transparent 62%),
    var(--rl-navy-black);
  color: rgba(250, 247, 242, 0.82);
  border-top: 1px solid rgba(250, 247, 242, 0.08);
}

.founding h2 {
  color: var(--rl-paper);
}

.founding .section-kicker {
  color: var(--rl-amber-soft);
}

.founding .section-intro {
  color: rgba(250, 247, 242, 0.72);
}

.founding .section-intro strong {
  font-weight: 600;
  color: var(--rl-amber-soft);
}

.founding-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

@media (min-width: 62rem) {
  .founding-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.founding-facts {
  display: grid;
  gap: 0.85rem;
  margin: 2rem 0 0;
  padding: 1.5rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(250, 247, 242, 0.12);
  font-size: 0.95rem;
  color: rgba(250, 247, 242, 0.72);
}

.founding-facts li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}

.founding-facts .icon {
  margin-top: 0.2rem;
  color: var(--rl-amber-soft);
}

.founding .founding-form {
  background: rgba(250, 247, 242, 0.05);
  border-color: rgba(250, 247, 242, 0.14);
}

.founding .field label {
  color: rgba(250, 247, 242, 0.62);
}

.founding .field-optional {
  color: rgba(250, 247, 242, 0.45);
}

.founding .field input,
.founding .field select {
  background: var(--rl-paper);
  border-color: transparent;
}

.founding .founding-fine {
  color: rgba(250, 247, 242, 0.5);
}

/* Navy on navy-black would vanish; on this one surface the primary button is amber, the
   same accent the headline's italic already carries. */
.founding .button-primary {
  background: var(--rl-amber);
  color: var(--rl-navy-black);
  box-shadow: 0 10px 24px rgba(201, 138, 46, 0.28);
}

.founding .button-primary:hover {
  background: var(--rl-amber-soft);
  color: var(--rl-navy-black);
  box-shadow: 0 16px 32px rgba(201, 138, 46, 0.34);
}

/* Post-submit status page: the thank-you, or the form again with the problem named. */
.status-page {
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(4rem, 10vw, 7rem);
}

.status-inner {
  max-width: 46rem;
}

.status-lede {
  max-width: 36rem;
  margin-top: 1.25rem;
  font-size: 1.15rem;
  color: var(--rl-ink-soft);
}

.status-card {
  margin-top: 2rem;
  padding: 1.3rem 1.45rem;
  background: var(--rl-white);
  border: 1px solid var(--rl-line);
  border-radius: var(--rl-radius);
  font-size: 0.96rem;
  color: var(--rl-ink-soft);
}

.status-card-label {
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rl-amber-deep);
}

.status-page .founding-form {
  max-width: 34rem;
  margin-top: 2rem;
  box-shadow: var(--rl-shadow);
}

.status-page .error-actions {
  margin-top: 2rem;
}
