/* SPDX-License-Identifier: LicenseRef-OpenRows-Commercial */
/* openrows.io (#138): the Ledger tokens of docs/design/DESIGN.md, light and dark. The home page's
   scroll story (#141) is in story.css; its script is progressive enhancement. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/inter-latin-wght.3100e775e8.woff2) format("woff2-variations");
  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;
}

:root {
  --bg-app: #faf7f5;
  --bg-sidebar: #f4f0ec;
  --bg-surface: #ffffff;
  --bg-header: #f8f5f2;
  --bg-hover: #f2edea;
  --bg-selected: #e2f0e9;
  --border: #e8e2dd;
  --border-strong: #d7cfc9;
  --text: #1c1719;
  --text-2: #6e6468;
  --text-3: #716769;
  --brand: #e22651;
  --brand-hover: #c91143;
  --brand-fg: #ffffff;
  --brand-text: #c91143;
  --brand-tint: #fdecef;
  --accent: #0e6b4c;
  --accent-hover: #0f583f;
  --glow: rgba(226, 38, 81, 0.1);
  --shadow-1: 0 1px 2px rgba(26, 28, 31, 0.06);
  --shadow-3: 0 24px 48px rgba(26, 28, 31, 0.16), 0 2px 6px rgba(26, 28, 31, 0.08);
  --chip-green-bg: #e3f3ea;
  --chip-green: #1c6b48;
  --chip-amber-bg: #fcf0da;
  --chip-amber: #8a5a0b;
  --chip-blue-bg: #e5ecfb;
  --chip-blue: #2a4fa0;
  --chip-violet-bg: #eee9fa;
  --chip-violet: #55399f;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-app: #17131a;
    --bg-sidebar: #1b161e;
    --bg-surface: #211b24;
    --bg-header: #261f29;
    --bg-hover: #2b242e;
    --bg-selected: rgba(101, 182, 147, 0.16);
    --border: #362e39;
    --border-strong: #483f4b;
    --text: #eee8ea;
    --text-2: #a89ea5;
    --text-3: #968c93;
    --brand-text: #ff6b7d;
    --brand-tint: rgba(226, 38, 81, 0.16);
    --accent: #65b693;
    --accent-hover: #9ed0b8;
    --glow: rgba(226, 38, 81, 0.14);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-3: 0 24px 48px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.4);
    --chip-green-bg: rgba(47, 158, 110, 0.18);
    --chip-green: #7fd8ae;
    --chip-amber-bg: rgba(217, 144, 26, 0.18);
    --chip-amber: #f2c46d;
    --chip-blue-bg: rgba(59, 111, 216, 0.18);
    --chip-blue: #93b2f2;
    --chip-violet-bg: rgba(122, 90, 208, 0.18);
    --chip-violet: #bca8f0;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-app);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11";
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--accent-hover);
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
h3 {
  font-size: 17px;
  font-weight: 600;
}
p {
  margin: 0 0 16px;
}

.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap.narrow {
  max-width: 760px;
}
.muted,
.fine {
  color: var(--text-2);
}
.fine {
  font-size: 14px;
}
.center {
  text-align: center;
}
.caps {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  background: var(--bg-surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-app);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.brand:hover {
  color: var(--text);
}
.mark {
  color: var(--brand);
  flex: none;
}
.wordmark {
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.01em;
}
.site-header nav {
  margin-left: auto;
}
.nav {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}
.nav a:hover {
  background: var(--bg-hover);
}
.nav a[aria-current="page"] {
  color: var(--brand-text);
  background: var(--brand-tint);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
}
@media (prefers-reduced-motion: no-preference) {
  .button {
    transition:
      background-color 120ms cubic-bezier(0.2, 0, 0, 1),
      border-color 120ms cubic-bezier(0.2, 0, 0, 1);
  }
}
.button.small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 15px;
}
.button.primary {
  background: var(--brand);
  color: var(--brand-fg);
}
.button.primary:hover {
  background: var(--brand-hover);
  color: var(--brand-fg);
}
.button.secondary {
  background: var(--bg-surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.button.secondary:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.text-link {
  margin-left: 12px;
  font-weight: 500;
}

.lede {
  font-size: clamp(18px, 2.2vw, 22px);
  color: var(--text-2);
  max-width: 34ch;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 16px;
}

/* Sections */
.section {
  padding: 72px 0;
}
.section.tight {
  padding: 32px 0;
}
.section.alt {
  background: var(--bg-sidebar);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.page-head {
  padding-bottom: 16px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 650;
}
.section-lede {
  color: var(--text-2);
  font-size: 18px;
  max-width: 60ch;
  margin-bottom: 32px;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow-1);
}
.card p {
  color: var(--text-2);
}
.card p:last-child {
  margin-bottom: 0;
}
.price-line {
  font-size: 15px;
}
.price-line strong {
  color: var(--text);
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.checks li {
  position: relative;
  padding-left: 26px;
  margin: 8px 0;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 7px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* Plans */
.plan {
  display: flex;
  flex-direction: column;
}
.plan .checks {
  flex: 1;
}
.plan.featured {
  border-top: 3px solid var(--accent);
}
.price {
  margin: 4px 0 20px;
}
.price .amount {
  display: block;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}
.price .amount.soon {
  font-size: 26px;
  line-height: 1.6;
}
.price .per {
  color: var(--text-2);
  font-size: 14px;
}
.price .annual {
  display: block;
  margin-top: 2px;
  color: var(--text-2);
  font-size: 14px;
}
.price .annual strong {
  color: var(--accent);
  font-weight: 600;
}
.limits {
  margin: 0 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-surface);
  overflow: hidden;
}
.limits div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}
.limits div:last-child {
  border-bottom: 0;
}
.limits dt {
  color: var(--text-2);
}
.limits dd {
  margin: 0;
  font-weight: 600;
  font-feature-settings: "tnum";
}

/* Legal pages */
.prose h1 {
  font-size: clamp(32px, 5vw, 44px);
}
.prose .meta {
  color: var(--text-2);
  font-size: 14px;
  margin-bottom: 32px;
}
.prose h2 {
  font-size: 21px;
  font-weight: 650;
  margin: 40px 0 10px;
}
.prose ul {
  padding-left: 22px;
}
.prose li {
  margin: 6px 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 15px;
  display: block;
  overflow-x: auto;
}
.prose th,
.prose td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 8px 12px 8px 0;
  vertical-align: top;
}

/* Tables */
.table-scroll {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-surface);
  margin-bottom: 16px;
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-feature-settings: "tnum";
}
.compare th,
.compare td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.compare thead th {
  background: var(--bg-header);
  font-weight: 600;
}
.compare tbody th {
  font-weight: 500;
  color: var(--text-2);
  min-width: 180px;
}
.compare tr:last-child > * {
  border-bottom: 0;
}
.template-sample {
  font-size: 14px;
}
.template-sample th,
.template-sample td {
  padding: 8px 12px;
  white-space: nowrap;
}
.template-sample th .fine {
  display: block;
  font-weight: 400;
  margin: 0;
}
.plans-table td {
  min-width: 110px;
}
.plans-table tbody + tbody tr:last-child > * {
  border-bottom: 0;
}
.plans-table tbody:first-of-type tr:last-child > * {
  border-bottom: 1px solid var(--border);
}
.plans-table .group th,
.plans-table .group td {
  background: var(--bg-header);
  color: var(--text);
  font-weight: 600;
}
.yes {
  color: var(--accent);
  font-weight: 700;
}
.no {
  color: var(--text-3);
}
.tag {
  display: inline-block;
  font-size: 12px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bg-hover);
  color: var(--text-2);
  margin-left: 4px;
}

/* FAQ */
.faq-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child {
  border-bottom: 0;
}
.faq-item p {
  color: var(--text-2);
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr);
}
.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-grid li {
  margin: 6px 0;
}
.footer-grid nav a {
  color: var(--text);
  text-decoration: none;
}
.footer-grid nav a:hover {
  text-decoration: underline;
}
.footer-grid p {
  margin-top: 12px;
  max-width: 30ch;
}
.footer-base {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.site-footer .footer-base a {
  color: inherit;
}

@media (min-width: 720px) {
  .cards.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cards.three,
  .cards.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}
@media (min-width: 1000px) {
  .cards.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cards.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 719px) {
  .header-row {
    gap: 8px 16px;
    padding-top: 10px;
    padding-bottom: 6px;
  }
  .site-header nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }
  .site-header .button {
    margin-left: auto;
  }
  .nav a {
    padding: 6px 10px;
  }
  .section {
    padding: 48px 0;
  }
  .wrap {
    padding: 0 16px;
  }
  .compare {
    min-width: 600px;
  }
}

/* SPDX-License-Identifier: LicenseRef-OpenRows-Commercial */
/* The home page's scroll story (#141, the approved prototype of 2026-10-28). The base rules are
   the static layout: no script, reduced motion and small screens read the chapters top to bottom.
   html.story-pinned (assets/story.js, wide screens with motion allowed) pins the stage and stacks
   the chapters; GSAP moves only transforms and opacity. */
:root {
  --petal-leaf: #1e8c66;
  --story-term-bg: #221c1f;
  --story-term-fg: #f3ecee;
  --story-term-ok: #8fd0ae;
  --story-term-key: #f28ca4;
  --story-term-dim: #a3959a;
  --frame-shadow:
    0 1px 0 rgba(0, 0, 0, 0.04), 0 24px 60px -18px rgba(90, 40, 55, 0.28),
    0 8px 20px -10px rgba(90, 40, 55, 0.18);
  --leaf-tint: rgba(30, 140, 102, 0.1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --story-term-bg: #120e14;
    --frame-shadow:
      0 1px 0 rgba(0, 0, 0, 0.3), 0 24px 60px -18px rgba(0, 0, 0, 0.7),
      0 8px 20px -10px rgba(0, 0, 0, 0.5);
    --leaf-tint: rgba(101, 182, 147, 0.12);
  }
}

.petal-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.story {
  position: relative;
  overflow-x: clip;
  background:
    radial-gradient(60vw 50vh at 85% 8%, var(--glow), transparent 70%),
    radial-gradient(50vw 40vh at 0% 30%, var(--leaf-tint), transparent 70%);
}
.stage {
  position: relative;
}
.story-progress {
  display: none;
}
.petals {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.petal {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}
.petal-in,
.petal svg {
  display: block;
  width: 100%;
  height: 100%;
}
.petal svg {
  overflow: visible;
}
@media (prefers-reduced-motion: no-preference) {
  .petal svg {
    animation: petal-sway var(--d, 6s) ease-in-out var(--dl, 0s) infinite alternate;
  }
}
@keyframes petal-sway {
  from {
    transform: rotate(-9deg) translateY(-3px);
  }
  to {
    transform: rotate(9deg) translateY(4px);
  }
}

/* Chapters: the static layout */
.ch {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}
.ch > * {
  min-width: 0;
}
.ch-hero {
  padding-top: 64px;
}
.ch .copy {
  max-width: 560px;
}
.ch h1 {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin: 0;
}
.ch h1 .line {
  display: block;
}
.ch h2 {
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.06;
  margin: 0 0 18px;
}
.ch .copy p {
  color: var(--text-2);
  font-size: 18px;
}
.ch .lede {
  font-size: clamp(19px, 1.6vw, 23px);
  margin: 24px 0 0;
  max-width: 30ch;
}
.ch .actions {
  margin: 28px 0 16px;
}
.ch .fine {
  font-size: 14px;
}
.scroll-hint {
  display: none;
}
.ch .copy .eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.eyebrow span {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0;
}

.view-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 22px 0 0;
}
.view-chips li {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
}
.view-chips b {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--bg-selected);
  opacity: 0;
}
.view-chips li:first-child b {
  opacity: 1;
}

/* Screenshots */
.shot {
  position: relative;
}
.frame {
  margin: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--frame-shadow);
  overflow: hidden;
}
.frame img {
  display: block;
  width: 100%;
  height: auto;
}
.chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-header);
}
.chrome i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}
.chrome b {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Overlays: below the screenshot in the static layout, over its corner from 900 px */
.ov {
  position: relative;
  z-index: 2;
  margin-top: 14px;
}
.ov-side {
  width: 78%;
  margin-left: auto;
}
.ov-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ov-flow .step {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--petal-leaf);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 14px 30px -14px rgba(90, 40, 55, 0.3);
}
.ov-flow .step em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-right: 10px;
}
.ov-flow small {
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg-selected);
  padding: 2px 8px;
  border-radius: 999px;
}
.ov-import {
  max-width: 300px;
  margin-left: auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 18px 40px -16px rgba(90, 40, 55, 0.3);
}
.ov-import .t {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 14px;
}
.ov-import ul {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  font-size: 13px;
  color: var(--text-2);
}
.ov-import li {
  position: relative;
  padding: 2px 0 2px 22px;
}
.ov-import li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}
.ov-import .bar {
  height: 6px;
  border-radius: 3px;
  background: var(--bg-hover);
  overflow: hidden;
}
.ov-import .bar i {
  display: block;
  height: 100%;
  background: var(--petal-leaf);
  transform-origin: 0 50%;
}
.ov-code,
.term {
  background: var(--story-term-bg);
  color: var(--story-term-fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ov-code {
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 24px 50px -18px rgba(40, 20, 28, 0.55);
  font-size: 12.5px;
  line-height: 1.7;
  overflow: hidden;
}
.ov-code code,
.term code {
  display: block;
  white-space: pre;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ov-code .c {
  color: var(--story-term-dim);
}
.ov-code .k {
  color: var(--story-term-key);
}
.ov-code .s,
.ov-code .p,
.term .p,
.term .ok {
  color: var(--story-term-ok);
}

.shot-duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}
.panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--frame-shadow);
}
.panel-a {
  border-top: 3px solid var(--petal-leaf);
}
.panel-b {
  border-top: 3px solid var(--brand);
}
.panel h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 12px;
}
.pf {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-2);
}
.term {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.8;
}
.cloud {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cloud li {
  position: relative;
  padding: 8px 0 8px 26px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 15px;
}
.cloud li:last-child {
  border-bottom: 0;
}
.cloud li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50% 0;
  background: var(--petal-leaf);
  transform: rotate(45deg);
}

/* The final chapter */
.ch-final {
  justify-items: center;
  text-align: center;
}
.final-cta {
  max-width: 560px;
}
.final-logo {
  display: block;
  margin: 0 auto 16px;
  color: var(--brand);
}
.final-cta h2 {
  font-size: clamp(38px, 5vw, 68px);
}
.final-cta p {
  color: var(--text-2);
  font-size: 19px;
  margin: 12px 0 24px;
}
.final-cta .actions {
  justify-content: center;
}
.tiers {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 380px;
  text-align: left;
}
.tiers-h {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.tier {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border-strong);
  border-radius: 12px;
  padding: 14px 18px;
  box-shadow: 0 14px 34px -20px rgba(90, 40, 55, 0.35);
}
.tier-pro {
  border-top-color: var(--brand);
}
.tier h3 {
  font-size: 15px;
  letter-spacing: 0;
  color: var(--text-2);
  margin: 0;
}
.tier .tier-price {
  margin: 2px 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}
.tier .tier-price.soon {
  font-size: 20px;
}
.tier-price small {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0;
}
.tier p:last-child {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-2);
}
.tiers-link {
  font-weight: 600;
  font-size: 15px;
}

@media (min-width: 900px) {
  .ch {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 4.5vw;
    padding: 72px 5vw 112px;
  }
  .ch-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    min-height: calc(100vh - 69px);
  }
  .ov {
    position: absolute;
    margin: 0;
  }
  .ov-side {
    right: -4%;
    bottom: -14%;
    width: 50%;
    box-shadow: 0 24px 50px -18px rgba(40, 20, 28, 0.45);
  }
  .ov-flow {
    left: -7%;
    bottom: -12%;
  }
  .ov-flow .step {
    min-width: 260px;
  }
  .ov-flow .step:nth-child(2) {
    margin-left: 28px;
  }
  .ov-flow .step:nth-child(3) {
    margin-left: 56px;
  }
  .ov-import {
    right: -4%;
    bottom: -14%;
    width: 290px;
  }
  .ov-code {
    left: -8%;
    bottom: -14%;
  }
  html:not(.story-pinned) .tilt {
    transform: perspective(1600px) rotateY(-11deg) rotateX(4deg);
    transform-origin: 20% 50%;
  }
  .shot-duo {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 22px;
  }
  .ch-final {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
}

/* Pinned (story.js, wide screens with motion allowed) */
.story-pinned .stage {
  height: 100vh;
  overflow: hidden;
}
/* The small viewport height: mobile browsers' toolbars never cover the pinned stage. */
@supports (height: 100svh) {
  .petals,
  .story-pinned .stage {
    height: 100svh;
  }
}
.story-pinned .petals {
  height: 100%;
}
.story-pinned .story-progress {
  display: block;
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 3;
}
.story-pinned .story-progress i {
  display: block;
  height: 100%;
  background: var(--petal-leaf);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.story-pinned .ch {
  position: absolute;
  inset: 0;
  max-width: none;
  min-height: 0;
  padding: 40px 6vw 40px;
}
.story-pinned .ch {
  pointer-events: none;
}
.story-pinned .ch:not(.ch-hero) {
  opacity: 0;
}
.story-pinned .ch.is-current {
  pointer-events: auto;
}
.story-pinned .scroll-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-2);
}
.story-pinned .scroll-hint span {
  position: relative;
  width: 22px;
  height: 34px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
}
.story-pinned .scroll-hint span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 7px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--petal-leaf);
  animation: story-wheel 1.6s ease-in-out infinite;
}
@keyframes story-wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}
.story-pinned .frame,
.story-pinned .ov,
.story-pinned .panel,
.story-pinned .tier {
  will-change: transform, opacity;
}
@media (max-height: 760px) {
  .story-pinned .ch h2 {
    font-size: clamp(28px, 3.2vw, 44px);
  }
  .story-pinned .ch .copy p {
    font-size: 16px;
  }
  .story-pinned .tier p:last-child {
    display: none;
  }
}

/* SPDX-License-Identifier: LicenseRef-OpenRows-Commercial */
/* The docs (#139), appended to site.css at build time (one stylesheet). */
.wrap.docs {
  max-width: 1280px;
}
.docs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-top: 32px;
  padding-bottom: 64px;
}
.docs-sidebar {
  font-size: 14px;
}
.docs-nav h2 {
  margin: 20px 0 6px;
}
.docs-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.docs-nav p {
  margin: 0;
}
.docs-nav a {
  display: block;
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
}
.docs-nav a:hover {
  background: var(--bg-hover);
  color: var(--text);
}
.docs-nav a[aria-current="page"] {
  background: var(--bg-selected);
  color: var(--accent);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--accent);
}
.docs-menu {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-surface);
  padding: 8px 12px;
}
.docs-menu summary {
  cursor: pointer;
  font-weight: 600;
}
.docs-nav-wide {
  display: none;
}
.docs-search {
  position: relative;
  margin-bottom: 12px;
}
.docs-search input {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 7px 32px 7px 10px;
}
.docs-search-key {
  position: absolute;
  right: 8px;
  top: 7px;
  font: inherit;
  font-size: 12px;
  color: var(--text-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 5px;
}
.docs-search-results {
  list-style: none;
  margin: 6px 0 0;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-surface);
  max-height: 60vh;
  overflow-y: auto;
}
.docs-search input:not(:placeholder-shown) + .docs-search-key {
  display: none;
}
.docs-search-results a {
  display: block;
  overflow-wrap: anywhere;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
}
.docs-search-results a:hover,
.docs-search-results a[aria-current="true"] {
  background: var(--bg-hover);
}
.docs-search-results strong,
.docs-search-results span {
  display: block;
}
.docs-search-results .snippet {
  font-size: 13px;
  color: var(--text-2);
}
.docs-search-results .empty {
  padding: 8px 10px;
}
.docs-main {
  min-width: 0;
}
.docs-article {
  font-size: 16px;
}
.docs-article h1 {
  font-size: clamp(30px, 4vw, 40px);
  margin-bottom: 16px;
}
.docs-article h2 {
  scroll-margin-top: 16px;
}
.docs-article h3 {
  margin: 28px 0 8px;
  scroll-margin-top: 16px;
}
.docs-crumb {
  margin-bottom: 8px;
}
.docs-crumb a {
  color: inherit;
}
.docs-article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0 4px;
  overflow-wrap: anywhere;
}
.docs-article pre {
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
}
.docs-article pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  overflow-wrap: normal;
}
.docs-article .table-scroll table {
  display: table;
  margin: 0;
  font-size: 14px;
}
.docs-article .table-scroll th,
.docs-article .table-scroll td {
  padding: 8px 12px;
}
.docs-article .table-scroll tr:last-child > td {
  border-bottom: 0;
}
.docs-article blockquote {
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-surface);
}
.docs-article blockquote p:last-child {
  margin: 0;
}
.docs-toc {
  display: none;
  font-size: 13px;
}
.docs-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.docs-toc li {
  margin: 0 0 6px;
}
.docs-toc a {
  color: var(--text-2);
  text-decoration: none;
}
.docs-toc a:hover {
  color: var(--text);
}
.docs-cards {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
}
.prose .docs-cards li {
  margin: 0;
}
.docs-cards a {
  display: block;
  height: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-surface);
  color: var(--text);
  text-decoration: none;
}
.docs-cards a:hover {
  border-color: var(--border-strong);
}
.docs-cards strong,
.docs-cards span {
  display: block;
}
.docs-cards span {
  font-size: 14px;
  margin-top: 4px;
}
.docs-edit {
  margin-top: 40px;
}
.docs-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.docs-pager a {
  text-decoration: none;
  font-weight: 600;
}
.docs-pager span {
  display: block;
  font-size: 13px;
  font-weight: 400;
}
.docs-pager .next {
  text-align: right;
  margin-left: auto;
}
.operation {
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 32px;
}
.docs-article .endpoint code {
  font-size: 14px;
}
.method {
  display: inline-block;
  min-width: 56px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  padding: 1px 6px;
  background: var(--chip-blue-bg);
  color: var(--chip-blue);
}
.method-post {
  background: var(--chip-green-bg);
  color: var(--chip-green);
}
.method-patch,
.method-put {
  background: var(--chip-amber-bg);
  color: var(--chip-amber);
}
.method-delete {
  background: var(--brand-tint);
  color: var(--brand-text);
}
.schema,
.responses {
  font-size: 14px;
}
.schema .schema {
  margin-top: 4px;
}
.schema-type {
  color: var(--text-2);
}
.req {
  font-size: 12px;
  color: var(--brand-text);
}

@media (min-width: 720px) {
  .docs-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .docs {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .docs-sidebar {
    position: sticky;
    top: 16px;
    align-self: start;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 2px;
  }
  .docs-menu {
    display: none;
  }
  .docs-nav-wide {
    display: block;
  }
}
@media (min-width: 1200px) {
  .docs {
    grid-template-columns: 220px minmax(0, 1fr) 200px;
  }
  .docs-toc {
    display: block;
    position: sticky;
    top: 16px;
    align-self: start;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }
}

/* The guides' screenshots (#167): full width of the text column, framed like a window. */
.prose img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 8px;
}
