/* Sperax Trading Desk: warm editorial theme. Light only. */

@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
  src: url('fonts/DMSans.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/Inter.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url('fonts/JetBrainsMono.woff2') format('woff2');
}

:root {
  --paper: #f1eeea;
  --ink: #242320;
  --ink-2: #3b3934;
  --muted: #68635d;
  --faint: #8d877f;
  --line: #dcd7cf;
  --line-soft: #e6e1da;
  --lime: #a6f43b;
  --lime-hover: #b6f75e;
  --green: #2f5a16;
  --green-2: #3a6b1a;
  --panel: #e7e3dd;
  --beige: #e5dfd3;
  --green-tint: #e6ebdc;
  --green-line: #d5dec6;
  --card: #f8f7f4;
  --card-2: #faf9f6;
  --dark: #262724;
  --lavender: #dcd6f7;
  --red: #a4361f;
  --shadow: 0 1px 2px rgb(36 35 32 / 6%), 0 8px 24px -12px rgb(36 35 32 / 18%);
  --shadow-lift: 0 2px 4px rgb(36 35 32 / 6%), 0 18px 40px -18px rgb(36 35 32 / 30%);
  --radius: 6px;
  --gutter: 56px;
  --sans: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Helvetica Neue', Helvetica, Inter, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
video,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

p a {
  color: var(--green);
}

p a:hover {
  color: var(--ink);
}

code,
pre {
  font-family: var(--mono);
  font-size: 0.86em;
}

p code {
  padding: 1px 5px;
  border-radius: 3px;
  background: rgb(36 35 32 / 6%);
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  color: var(--ink);
}

h1 {
  font-size: clamp(40px, 6vw, 58px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.h2-sm {
  font-size: clamp(30px, 3.4vw, 36px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

h3 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

::selection {
  background: var(--lime);
  color: var(--ink);
}

.ic {
  flex: none;
}

.dot {
  color: var(--lime);
  -webkit-text-stroke: 0.6px var(--green);
}

.wrap {
  width: 100%;
  max-width: 1328px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: 112px 0;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.4;
  text-transform: uppercase;
}

.tiny {
  color: var(--faint);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.5;
  text-transform: uppercase;
}

.lead {
  max-width: 34em;
  margin-top: 26px;
  color: var(--muted);
  font-size: 18px;
  line-height: 27px;
}

.lead-sm {
  max-width: 30em;
  margin-top: 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.muted {
  color: var(--muted);
}

.skip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  min-height: 46px;
  padding: 0 19px 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.btn .ic {
  width: 15px;
  height: 15px;
  transition: transform 0.15s ease;
}

.btn:hover .ic {
  transform: translate(2px, -2px);
}

.btn:active {
  transform: translateY(1px);
}

.btn-sm {
  min-height: 40px;
  gap: 20px;
  padding: 0 15px 0 16px;
}

.btn-lime {
  background: var(--lime);
  color: var(--ink);
}

.btn-lime:hover {
  background: var(--lime-hover);
}

.btn-ink {
  background: var(--ink);
  color: #fff;
}

.btn-ink:hover {
  background: #3a3934;
}

.btn-white {
  background: var(--card-2);
  color: var(--ink);
}

.btn-white:hover {
  background: #fff;
}

.btn-ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-outline-light {
  border-color: rgb(255 255 255 / 28%);
  background: transparent;
  color: #fff;
}

.btn-outline-light:hover {
  border-color: #fff;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* Header */

.nav {
  padding-block: 28px 22px;
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  position: relative;
  font-size: 13px;
  text-decoration: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 1px;
  background: currentcolor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-inner > .btn {
  justify-self: end;
}

/* Hero */

.hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 64px 64px 168px;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    radial-gradient(90% 120% at 100% 0%, rgb(166 244 59 / 18%) 0%, transparent 55%),
    radial-gradient(70% 90% at 0% 100%, rgb(58 107 26 / 55%) 0%, transparent 60%),
    linear-gradient(160deg, #233f12 0%, #1a2b10 55%, #161f10 100%);
  color: #fff;
}

.hero-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 7%) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(115deg, transparent 30%, #000 100%);
  pointer-events: none;
}

.hero-copy,
.hero-media {
  position: relative;
  z-index: 1;
}

.hero-intro {
  margin-bottom: 22px;
  font-size: 15px;
  font-weight: 500;
}

.hero-intro a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
}

.hero-intro a::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 4px rgb(166 244 59 / 22%);
}

.hero-intro a:hover {
  text-decoration: underline;
}

.hero h1 {
  max-width: 10.5em;
  color: #fff;
}

.hero .dot {
  -webkit-text-stroke: 0;
}

.hero .lead {
  color: rgb(255 255 255 / 82%);
}

.hero-media video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  background: #10180b;
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 70%), 0 0 0 1px rgb(255 255 255 / 10%);
  object-fit: cover;
}

.hero-media .tiny {
  margin-top: 12px;
  color: rgb(255 255 255 / 60%);
}

.fcards {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: -112px 58px 0;
}

.fcard > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 18px 18px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.fcard > a:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-3px);
}

.fcard-head {
  display: flex;
  gap: 12px;
  align-items: center;
}

.fcard-head > div {
  min-width: 0;
}

.fcard-head h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.fcard-head code {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fcard-desc {
  flex: 1;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.kv {
  display: grid;
  gap: 6px;
  margin-top: 22px;
}

.kv strong {
  font-size: 12.5px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.fcard-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.view {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.view .ic {
  width: 11px;
  height: 11px;
}

.tile {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 3px;
}

.tile .ic {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.tile-1 {
  background: var(--lime);
  color: var(--ink);
}

.tile-2 {
  background: var(--green);
  color: var(--lime);
}

.tile-3 {
  background: var(--ink);
  color: #fff;
}

.tile-4 {
  background: var(--lavender);
  color: #3c2f86;
}

/* Section heads */

.split-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 330px);
  gap: 48px;
  align-items: end;
  padding-inline: 45px;
}

.split-aside p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.split-aside .btn {
  margin-top: 22px;
}

/* Flow */

.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr) 52px minmax(0, 1fr);
  align-items: stretch;
  margin-top: 34px;
  padding: 40px;
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  background: var(--green-tint);
}

.step {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 22px 19px 20px;
  border-radius: var(--radius);
  background: var(--card-2);
  box-shadow: var(--shadow);
}

.step-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 12px;
  font-weight: 500;
}

.step-head .num {
  color: var(--faint);
  font-size: 10px;
}

.flow-arrow {
  display: grid;
  place-items: center;
  color: var(--faint);
}

.step-ask {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.step-ask q {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.fields {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
}

.fields div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 11px;
  border-radius: 2px;
  background: #eeece8;
  font-size: 12px;
}

.fields dt {
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  align-self: center;
}

.fields dd {
  margin: 0;
  text-align: right;
}

.step-link,
.step-row a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  font-size: 11px;
  text-decoration: none;
}

.step-link {
  margin-top: auto;
  padding-top: 18px;
}

.step-link:hover,
.step-row a:hover {
  text-decoration: underline;
}

.step-link .ic,
.step-row .ic {
  width: 11px;
  height: 11px;
}

.step-band {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 16px 16px 14px;
  border-radius: 2px;
  background: var(--lime);
  color: var(--ink);
}

.step-band > .ic {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
}

.step-band-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-right: 30px;
}

.step-band code {
  font-size: 12px;
  font-weight: 600;
}

.step-band code:not(:last-child)::after {
  content: ' →';
  font-family: var(--sans);
  font-weight: 400;
}

.step-band .tiny {
  color: var(--green);
}

.step-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  margin-top: 18px;
  font-size: 11px;
}

.chain {
  display: grid;
  margin-top: 18px;
}

.chain li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.chain .num {
  flex: none;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
}

.chain div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.chain strong {
  font-size: 13px;
  font-weight: 600;
}

.chain div span {
  color: var(--muted);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

.step-note {
  margin-top: auto;
  padding-top: 18px;
  color: var(--faint);
  font-size: 10.5px;
}

.checks {
  display: grid;
}

.checks li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  font-weight: 500;
}

.checks li:first-child {
  padding-top: 0;
}

.checks .ic {
  width: 18px;
  height: 18px;
  color: var(--green);
  stroke-width: 2;
}

.numbered {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.numbered li {
  display: flex;
  gap: 12px;
}

.numbered .num {
  padding-top: 5px;
  color: var(--faint);
  font-size: 10px;
}

.numbered h3 {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.numbered p {
  max-width: 28em;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.try {
  margin-top: 72px;
}

.prompt-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.prompt-list li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card-2);
}

.prompt-list q {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tool-name {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 10.5px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.tool-name:hover {
  border-color: var(--green);
  color: var(--green);
}

/* Panels */

.panel {
  padding: 76px 80px;
  border-radius: var(--radius);
}

.panel-tint {
  background: var(--panel);
}

.panel-green {
  border: 1px solid var(--green-line);
  background: var(--green-tint);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}

.tool-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 32px;
  margin-top: 34px;
}

.tool-list a {
  display: grid;
  gap: 6px;
  text-decoration: none;
}

.tl-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.tl-title .ic {
  width: 12px;
  height: 12px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.tool-list a:hover .tl-title .ic {
  opacity: 1;
}

.tool-list a:hover .tl-title {
  color: var(--green);
}

.tl-desc {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.tool-list code {
  color: var(--faint);
  font-size: 10.5px;
}

.card {
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.catalog {
  position: sticky;
  top: 32px;
  align-self: start;
}

.catalog .card {
  padding: 28px 28px 30px;
}

.catalog .code pre {
  padding: 16px 76px 16px 16px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.card-head .eyebrow {
  margin: 0;
  font-size: 10px;
}

.pill {
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  text-decoration: none;
}

.pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.card-id {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.card-id img {
  border-radius: 3px;
}

.card-id div {
  display: grid;
  flex: 1;
  min-width: 0;
}

.card-id strong {
  font-size: 15px;
}

.card-id div span {
  color: var(--muted);
  font-size: 11px;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  font-size: 11px;
}

.live .ic {
  width: 11px;
  height: 11px;
}

.bar {
  display: flex;
  gap: 4px;
  height: 13px;
  margin-top: 30px;
}

.bar span {
  min-width: 12px;
  border-radius: 1px;
}

.seg-1 {
  background: var(--green);
}

.seg-2 {
  background: var(--lime);
}

.seg-3 {
  background: var(--ink);
}

.legend {
  display: grid;
  margin: 18px 0 26px;
}

.legend li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
}

.legend strong {
  margin-left: auto;
  font-weight: 600;
}

.swatch {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.catalog .tiny {
  margin-bottom: 8px;
}

/* Code blocks */

.code {
  position: relative;
  border-radius: 4px;
  background: var(--dark);
  color: #e9e6df;
}

.code pre {
  margin: 0;
  padding: 46px 16px 16px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.6;
}

.copy {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 6px 10px;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 3px;
  background: var(--dark);
  color: #e9e6df;
  font-family: var(--sans);
  font-size: 11px;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.copy:hover {
  border-color: rgb(255 255 255 / 45%);
  background: #33342f;
}

.copy[data-state='done'] {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}

.copy[data-state='error'] {
  border-color: #e9866f;
  color: #f5b7a8;
}

/* Safety */

#safety .btn {
  margin-top: 28px;
}

.bold-list {
  display: grid;
  gap: 14px;
  margin-top: 36px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.bold-list strong {
  color: var(--ink);
  font-weight: 600;
}

.frame {
  padding: 32px;
  border-radius: var(--radius);
}

.frame-beige {
  background: linear-gradient(180deg, #e8e4da 0%, var(--beige) 100%);
}

.card-flush {
  overflow: hidden;
}

.band {
  position: relative;
  display: grid;
  gap: 40px;
  padding: 34px 30px 26px;
  background: var(--lime);
}

.band-word {
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}

.band > .ic {
  position: absolute;
  top: 36px;
  right: 30px;
  width: 30px;
  height: 30px;
  stroke-width: 1.8;
}

.band .tiny {
  color: var(--green);
}

.card-body {
  padding: 28px 24px 26px;
}

.card-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.card-title span {
  color: var(--muted);
  font-size: 11px;
}

.card-body > p:not(.eyebrow) {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 20px 0 30px;
}

.pills li {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 10.5px;
}

.card-body .eyebrow {
  margin-bottom: 4px;
  font-size: 9.5px;
}

.ann li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.ann li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.ann code {
  color: var(--green);
  overflow-wrap: anywhere;
}

.ann span {
  color: var(--muted);
  white-space: nowrap;
}

/* Behind the answer */

[aria-labelledby='behind'] > .wrap {
  padding-inline: calc(var(--gutter) + 40px);
}

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.tcard-media {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 18px 20px 16px;
  border-radius: 3px;
}

.tcard-media > .card {
  flex: 1;
  padding: 24px 24px 20px;
  border: 4px solid rgb(255 255 255 / 55%);
}

.tcard-media > .tiny {
  margin-top: 14px;
}

.tint-green {
  background: var(--green-tint);
}

.tint-beige {
  background: var(--beige);
}

.tint-lime {
  background: var(--lime);
}

.tint-lime > .tiny {
  color: var(--green);
}

.tcard > h3 {
  margin-top: 24px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.tcard > p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13.5px;
}

.tcard-num {
  margin: 16px 0 12px;
  font-size: 24px;
}

.mini li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  text-decoration: none;
}

.mini li a:hover {
  color: var(--green);
}

.mini .ic {
  width: 11px;
  height: 11px;
}

.mini-desc {
  margin-top: 10px;
}

.mini-desc li a {
  display: grid;
  gap: 2px;
}

.mini-desc strong {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.mini-desc span,
.skill-list span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.skill-list {
  margin-top: 10px;
}

.skill-list a {
  display: grid;
  gap: 3px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
}

.skill-list a:hover strong {
  color: var(--green);
}

.skill-list strong {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

/* Feeds */

.feed-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0 32px;
  margin-top: 40px;
  padding-inline: 45px;
}

.feed-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  text-decoration: none;
}

.feed-list .ic {
  width: 12px;
  height: 12px;
  color: var(--faint);
  transition:
    color 0.15s ease,
    transform 0.15s ease;
}

.feed-list a:hover {
  color: var(--green);
}

.feed-list a:hover .ic {
  color: var(--green);
  transform: translate(2px, -2px);
}

/* Install */

.install-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
  margin-top: 40px;
}

.icard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  padding: 24px 22px 22px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.icard h3 {
  font-size: 18px;
}

.icard > p {
  color: var(--muted);
  font-size: 13.5px;
}

.icard .checks {
  margin-top: 4px;
}

.icard .checks li:last-child {
  border-bottom: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.icard .code + .actions {
  margin-top: 0;
}

/* About */

.panel-green .lead-sm {
  max-width: 34em;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 28px;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.links a:hover {
  text-decoration: underline;
}

.links .ic {
  width: 12px;
  height: 12px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.facts li {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 150px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--card-2);
  box-shadow: var(--shadow);
}

.facts li:first-child {
  justify-content: center;
  align-items: flex-start;
  background: var(--lime);
}

.facts img {
  width: 56px;
  height: 56px;
  border-radius: 4px;
}

.facts strong {
  font-family: var(--display);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.facts span {
  color: var(--muted);
  font-size: 12.5px;
}

/* FAQ */

.faq-section .faq-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 48px;
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

.faq-split > h2 {
  padding-left: 55px;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}

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

.faq summary:hover {
  color: var(--green);
}

.plus {
  position: relative;
  flex: none;
  width: 11px;
  height: 11px;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.plus::before,
.plus::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 0;
  width: 11px;
  height: 1px;
  background: currentcolor;
}

.plus::after {
  transform: rotate(90deg);
}

.faq details[open] .plus {
  transform: rotate(45deg);
}

.faq details p {
  max-width: 40em;
  padding: 0 40px 24px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* CTA band */

.section-cta {
  padding-block: 80px 0;
}

.cta-band {
  padding: 84px 85px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(34px, 4vw, 48px);
}

.cta-band .dot {
  -webkit-text-stroke: 0;
}

.cta-band p {
  margin-top: 24px;
  color: rgb(255 255 255 / 86%);
  font-size: 16px;
}

.cta-band .cta {
  margin-top: 18px;
}

/* Footer */

.footer {
  padding-block: 56px 48px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.footer-brand p {
  max-width: 24em;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.footer nav {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer nav .tiny {
  margin-bottom: 4px;
}

.footer nav a {
  width: fit-content;
  color: var(--ink-2);
  font-size: 13px;
  text-decoration: none;
}

.footer nav a:hover {
  color: var(--green);
  text-decoration: underline;
}

.fine {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 11.5px;
  line-height: 1.6;
}

/* Tool reference page */

.page-head {
  padding-block: 56px 0;
}

.page-head .wrap > * {
  max-width: 820px;
}

.ref {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.ref-section {
  padding-top: 72px;
}

.ref-nav {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 4px 4px 4px 0;
}

.ref-nav .tiny {
  margin: 0 0 8px;
}

.ref-nav .toc + .tiny {
  margin-top: 26px;
}

.toc {
  display: grid;
  gap: 1px;
}

.toc a {
  display: block;
  padding: 5px 0 5px 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.35;
  text-decoration: none;
}

.toc a:hover {
  border-left-color: var(--green);
  color: var(--ink);
}

.ref-body > .h2-sm {
  margin-bottom: 20px;
}

.ref-body > .tool + .h2-sm {
  margin-top: 72px;
}

.tool {
  margin-bottom: 14px;
  padding: 28px 28px 26px;
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  scroll-margin-top: 24px;
}

.tool:target {
  box-shadow: 0 0 0 2px var(--lime), var(--shadow-lift);
}

.tool header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 6px 16px;
}

.tool h3 a {
  text-decoration: none;
}

.tool h3 a:hover {
  color: var(--green);
}

.id {
  color: var(--muted);
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  font-size: 10.5px;
}

.tag-safe {
  border-color: var(--green-line);
  background: var(--green-tint);
  color: var(--green);
}

.tool > p {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.65;
}

.tool > p.muted {
  color: var(--muted);
  font-size: 13px;
}

.table {
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--card-2);
}

.table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table td:first-child {
  white-space: nowrap;
}

.table td:last-child {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.req {
  margin-left: 4px;
  color: var(--red);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.none {
  color: var(--muted);
}

p.none {
  margin-top: 16px;
  font-size: 13px;
}

/* 404 */

.notfound {
  padding-block: 120px 40px;
}

.notfound .wrap > * {
  max-width: 760px;
}

/* Responsive */

@media (max-width: 1180px) {
  .fcards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-inline: 32px;
  }

  .flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 28px;
  }

  .flow-arrow {
    padding: 10px 0;
    transform: rotate(90deg);
  }

  .panel {
    padding: 56px;
  }

  .split {
    gap: 48px;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  :root {
    --gutter: 32px;
  }

  .nav-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero-panel {
    grid-template-columns: minmax(0, 1fr);
    padding: 48px 40px 152px;
  }

  .split,
  .split-head,
  .faq-section .faq-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .catalog {
    position: static;
  }

  .split-head,
  .feed-list,
  .faq-split > h2 {
    padding-inline: 0;
  }

  [aria-labelledby='behind'] > .wrap {
    padding-inline: var(--gutter);
  }

  .split-head {
    gap: 20px;
  }

  .trio,
  .numbered {
    grid-template-columns: minmax(0, 1fr);
  }

  .trio {
    gap: 48px;
  }

  .ref {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .ref-nav {
    position: static;
    max-height: none;
    padding: 20px;
    border-radius: var(--radius);
    background: var(--panel);
  }

  .ref-nav .toc {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  body {
    font-size: 14.5px;
  }

  .section {
    padding-top: 80px;
  }

  .nav {
    padding-block: 18px 16px;
  }

  .brand span {
    font-size: 15px;
  }

  .nav-inner > .btn {
    gap: 12px;
  }

  .hero-panel {
    padding: 36px 22px 32px;
  }

  .fcards {
    grid-template-columns: minmax(0, 1fr);
    margin: 14px 0 0;
  }

  .lead {
    font-size: 16.5px;
    line-height: 1.55;
  }

  .cta .btn {
    flex: 1 1 100%;
  }

  .flow {
    padding: 16px;
  }

  .panel,
  .frame {
    padding: 36px 20px;
  }

  .frame {
    padding: 14px;
  }

  .tool-list,
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts li {
    min-height: 0;
  }

  .install-grid,
  .prompt-list,
  .feed-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .cta-band {
    padding: 48px 24px;
  }

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

  .tool {
    padding: 20px 16px;
  }

  .table {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .table table,
  .table tbody {
    display: block;
  }

  .table thead {
    display: none;
  }

  .table tr {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .table td {
    padding: 0;
    border: 0;
  }

  .table td:nth-child(n + 3) {
    flex-basis: 100%;
  }

  .table td.none {
    display: none;
  }

  .table td[data-label]::before {
    content: attr(data-label) ': ';
    color: var(--faint);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
