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

@font-face {
  font-family: "Inter";
  src: url("/assets/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/assets/outfit-latin-300-normal.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-bg: #f8fbfc;
  --color-surface: #fff;
  --color-footer: color-mix(in srgb, var(--color-bg) 96%, var(--color-fg));
  --color-code-block: #0e1111;

  --syn-bg: #232136;
  --syn-fg: #e0def4;
  --syn-muted: #6e6a86;
  --syn-keyword: #c4a7e7;
  --syn-function: #9ccfd8;
  --syn-string: #f6c177;
  --syn-number: #eb6f92;
  --syn-param: #ea9a97;
  --syn-operator: #3e8fb0;
  --color-border: #d8e6e8;
  --color-fg: #0e1111;
  --color-accent: #d11e6e;
  --color-accent-soft: #a31555;
  --color-info: #0ea8b8;
  --color-info-soft: #0c7d8c; /* AA-safe teal for link text on the light canvas (matches webapp primary) */
  --color-success: #11a36a;
  --color-warn: #ff7a1a;
  --color-purple: #8e2c9e;
  --color-github: #6e5494;
  --color-periwinkle: #5078c0;

  --color-text-soft: #3b4544;
  --color-soft: #596463;
  --color-muted: #65706f;

  --fam-node: #5fa04e;
  --fam-bun: #e3a857;
  --fam-python: #3776ab;
  --fam-go: #00add8;
  --fam-ruby: #cc342d;
  --fam-rust: #b7410e;
  --fam-php: #777bb4;
  --fam-html: #e34f26;
  --fam-shell: var(--color-muted);

  --font-sans: "Inter", -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif;
  --font-display: "Tokay", "Inter", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;

  --radius: 3px;
  --container-gutter: clamp(2rem, 4vw, 3rem);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

header.site { flex-shrink: 0; }

main {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  /* main is the scroll container; on short pages (404, contact) the flex
     column stretches the content wrapper so the footer sits at the bottom
     of the viewport instead of floating mid-screen. */
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--color-fg) 22%, transparent) transparent;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0 0 1rem;
  line-height: 1.15;
}
h2 { letter-spacing: -0.02em; }

h1 { font-size: 2.5rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1rem; color: var(--color-soft); }

a {
  color: var(--color-info-soft);
  text-decoration: none;
}
a:hover { color: var(--color-fg); }

:focus-visible {
  outline: 2px solid var(--color-info);
  outline-offset: 2px;
  border-radius: inherit;
}

ul, ol { color: var(--color-soft); line-height: 1.8; padding-left: 1.25rem; }
li { margin-bottom: 0.25rem; }

code, pre {
  font-family: var(--font-mono);
  font-size: 0.9em;
}
pre {
  background: var(--color-code-block);
  color: #f8fff4;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.5;
}
:not(pre) > code {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 0.1em 0.4em;
  border-radius: var(--radius);
  color: var(--color-fg);
}

header.site {
  padding: 0 1.5rem;
  border-bottom: 2px solid transparent;
  border-image: linear-gradient(90deg, #ab0071, #da617f, #f89c50) 1;
}
footer.site {
  background: var(--color-footer);
  border-top: 1px solid color-mix(in srgb, var(--color-fg) 8%, transparent);
  padding: 48px 0;
  color: var(--color-soft);
}

header.site nav {
  min-height: 64px;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

header.site nav a { white-space: nowrap; }

.footer-cols {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.8fr 1.3fr auto;
  gap: 2rem;
  margin-bottom: 32px;
}
.footer-cols > * { min-width: 0; }
.footer-cols nav { display: block; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin: 0; }
.footer-cols li + li a { margin-top: 8px; }
.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.57;
  color: var(--color-fg);
  margin: 0 0 16px;
  letter-spacing: 0;
}
.footer-cols a {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--color-text-soft);
  padding: 6px 8px;
  margin: 0;
  border-radius: var(--radius);
  text-decoration: none;
}
.footer-cols a:hover { color: var(--color-fg); }

.footer-meta {
  padding-top: 32px;
  border-top: 1px solid color-mix(in srgb, var(--color-fg) 10%, transparent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--color-text-soft);
}
.footer-meta nav { display: flex; gap: 1.5rem; }
.footer-meta a {
  color: var(--color-text-soft);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  line-height: 1.75;
}
.footer-meta a:hover { color: var(--color-fg); }

header.site .brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  line-height: 1;
}
header.site .brand img {
  height: 40px;
  width: auto;
  display: block;
}

header.site a.button-brand {
  padding: 6px 20px;
  font-size: 0.8125rem;
}

.main-content { padding: 4.5rem 0; }
/* Grow the page's content block so the footer lands at the viewport
   bottom on short pages. */
main > .main-content,
main > .docs-layout { flex: 1 0 auto; width: 100%; }
main > footer.site { flex-shrink: 0; }
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-gutter);
  /* add left padding to account for scrollbar asymmetry */
  padding-left: calc(var(--container-gutter) + 100vw - 100%);
}
.container-narrow { max-width: 720px; }
.container-md { max-width: 898px; }

.hero {
  text-align: center;
  padding: 0 0 4rem;
  position: relative;
  isolation: isolate;
}
.hero h1 {
  font-size: clamp(3rem, 7.5vw, 6rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--color-fg);
  margin: 0 0 1.5rem;
}
.hero-sm h1 { font-size: 4rem; line-height: 1.1; letter-spacing: -0.02em; }

.main-content:not(.main-content-loose) > section { padding: 0; margin-bottom: 6rem; }
.main-content:not(.main-content-loose) > section:last-child { margin-bottom: 0; }
.main-content-loose > .hero + section { padding-top: 3rem; }

@media (prefers-reduced-motion: no-preference) {
  main { animation: pageFadeIn 0.15s ease-out; }
}
@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body.no-page-fade main { animation: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero-stagger > .container > * {
    opacity: 0;
    animation: heroFadeUp 0.8s ease-out forwards;
  }
  .hero-stagger > .container > *:nth-child(1) { animation-delay: 0s; }
  .hero-stagger > .container > *:nth-child(2) { animation-delay: 0.1s; }
  .hero-stagger > .container > *:nth-child(3) { animation-delay: 0.2s; }
  .hero-stagger > .container > *:nth-child(4) { animation-delay: 0.3s; }
  .hero-stagger > .container > *:nth-child(5) { animation-delay: 0.4s; }
  .hero-stagger > .container > *:nth-child(6) { animation-delay: 0.5s; }
  .hero-stagger > .container > *:nth-child(7) { animation-delay: 0.6s; }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.actions-tight { margin-top: 1.5rem; }
.actions-loose { margin-top: 3.5rem; }
.cta-note {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-muted);
}
.agent-note {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-soft);
}
.hero-stagger .agent-note {
  position: absolute;
  right: var(--container-gutter);
  bottom: 1.25rem;
  left: var(--container-gutter);
  max-width: 680px;
  margin: 0 auto;
}
.docs-body .agent-note { margin: 0 0 1.75rem; }
.hero-guide .agent-note,
.hero-pricing .agent-note { margin-top: 1.5rem; }

.lede {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1.45;
  color: var(--color-fg);
  max-width: 600px;
  margin: 0 auto 0.25rem;
}
.lede-soft {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.45;
  color: var(--color-muted);
  max-width: 600px;
  margin: 0 auto;
}

.deploy-demo {
  --c-code: var(--color-accent);
  --c-build: var(--color-info);
  --c-live: var(--color-success);
  position: relative;
  max-width: 680px;
  margin: 4rem auto 0;
  isolation: isolate;
}
.deploy-track {
  position: relative;
}
.deploy-track::before {
  content: '';
  position: absolute;
  top: 5.5px;
  left: 16.66%;
  right: 16.66%;
  height: 3px;
  border-radius: 1px;
  background: color-mix(in srgb, var(--color-fg) 10%, transparent);
}

.deploy-progress {
  position: absolute;
  top: 5.5px;
  height: 3px;
  width: 0;
  border-radius: 1px;
  opacity: 0.55;
  overflow: hidden;
  transition: width 0.5s ease, opacity 1s ease;
}
.deploy-progress-1 {
  left: 16.66%;
  background: linear-gradient(90deg, var(--c-code), var(--c-build));
}
.deploy-progress-2 {
  left: 50%;
  background: linear-gradient(90deg, var(--c-build), var(--c-live));
}

.deploy-demo[data-step="2"] .deploy-progress-1,
.deploy-demo[data-step="3"] .deploy-progress-1,
.deploy-demo[data-step="4"] .deploy-progress-1,
.deploy-demo[data-step="5"] .deploy-progress-1 { width: 33.34%; }
.deploy-demo[data-step="4"] .deploy-progress-2,
.deploy-demo[data-step="5"] .deploy-progress-2 { width: 33.34%; }
.deploy-demo[data-step="5"] .deploy-progress {
  opacity: 0.7;
  animation: deployWave 6s ease-in-out infinite;
}

.deploy-progress::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  opacity: 0;
}
.deploy-demo[data-step="2"] .deploy-progress-1::after,
.deploy-demo[data-step="3"] .deploy-progress-1::after,
.deploy-demo[data-step="4"] .deploy-progress-2::after {
  opacity: 1;
  animation: deployFlow 1.5s ease-in-out infinite;
}
.deploy-phases {
  display: flex;
  position: relative;
}
.deploy-phase {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.deploy-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--phase-color) 25%, transparent);
  background: transparent;
  color: var(--phase-color);
  transition: all 0.5s ease;
}
.deploy-phase.is-active .deploy-node,
.deploy-phase.is-complete .deploy-node,
.deploy-phase.is-live .deploy-node {
  background: var(--phase-color);
  border: 1.5px solid var(--phase-color);
}
.deploy-phase.is-live .deploy-node {
  background: var(--c-live);
  border-color: var(--c-live);
  color: var(--c-live);
  animation: deployBreath 4s ease-in-out infinite;
}
.deploy-phase.is-active .deploy-node {
  animation: deployPulse 2s ease-in-out infinite;
}
.deploy-label {
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-align: center;
  color: color-mix(in srgb, var(--color-fg) 28%, transparent);
  transition: color 0.5s ease;
}
.deploy-phase.is-active .deploy-label,
.deploy-phase.is-complete .deploy-label { color: var(--color-fg); }
.deploy-phase.is-live .deploy-label { color: var(--c-live); }
.deploy-sub {
  font-size: 0.8rem;
  line-height: 1.3;
  text-align: center;
  color: color-mix(in srgb, var(--color-fg) 22%, transparent);
  transition: color 0.5s ease;
}
.deploy-phase.is-active .deploy-sub,
.deploy-phase.is-complete .deploy-sub { color: color-mix(in srgb, var(--color-fg) 48%, transparent); }
.deploy-phase.is-live .deploy-sub { color: var(--color-success); }
.deploy-url {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.live-host { color: var(--color-fg); }
.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--c-live);
  flex-shrink: 0;
}
.deploy-demo[data-step="4"] .live-dot,
.deploy-demo[data-step="5"] .live-dot { animation: livePulse 1.8s ease-out infinite; }
.live-ok {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--c-live);
  background: color-mix(in srgb, var(--c-live) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--c-live) 32%, transparent);
  border-radius: var(--radius);
  padding: 2px 7px;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-live) 55%, transparent); }
  70%  { box-shadow: 0 0 0 11px color-mix(in srgb, var(--c-live) 0%, transparent); }
  100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c-live) 0%, transparent); }
}
.deploy-demo[data-step="4"] .deploy-url,
.deploy-demo[data-step="5"] .deploy-url {
  opacity: 1;
  transform: translateY(0);
}

@keyframes deployPulse {
  0%        { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 35%, transparent); }
  70%, 100% { box-shadow: 0 0 0 6px transparent; }
}
@keyframes deployBreath {
  0%, 100% { box-shadow: 0 0 2px 0 color-mix(in srgb, currentColor 45%, transparent); }
  50%      { box-shadow: 0 0 6px 0 color-mix(in srgb, currentColor 55%, transparent); }
}
@keyframes deployFlow {
  0%   { background-position: -50% 0; }
  100% { background-position: 150% 0; }
}
@keyframes deployWave {
  0%   { opacity: 0.45; }
  30%  { opacity: 0.7; }
  60%  { opacity: 0.55; }
  100% { opacity: 0.45; }
}

@media (prefers-reduced-motion: reduce) {
  .deploy-demo,
  .deploy-demo[data-step="4"] .deploy-url,
  .deploy-demo[data-step="5"] .deploy-url,
  .deploy-progress,
  .deploy-node,
  .deploy-demo[data-step="4"] .live-dot,
  .deploy-demo[data-step="5"] .live-dot { animation: none !important; transition: none !important; }
  .deploy-demo[data-step="4"] .deploy-url,
  .deploy-demo[data-step="5"] .deploy-url { opacity: 1; transform: none; }
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid transparent;
}
.chip-accent {
  background: color-mix(in srgb, var(--color-accent) 12%, transparent);
  border-color: color-mix(in srgb, var(--color-accent) 30%, transparent);
  color: var(--color-accent);
}

section { padding: 6rem 0; margin: 0; }
section > h2 { margin-bottom: 1.5rem; }
section > p { margin-bottom: 1.5rem; max-width: 720px; }

.button-ghost {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
}
.button-ghost:hover, .button-ghost.active {
  color: var(--color-fg);
}

.doc-step { margin-bottom: 2.75rem; }
.doc-step:last-child { margin-bottom: 0; }
.doc-step .eyebrow { margin: 0 0 0.5rem; }
.doc-step-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-fg);
  margin: 0 0 0.6rem;
}
.doc-step-desc {
  max-width: 46rem;
  color: var(--color-text-soft);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  margin: 0;
}

.muted { color: var(--color-muted); }
.text-accent { color: var(--color-accent); }
.text-info { color: var(--color-info); }

.icon { width: 24px; height: 24px; fill: currentColor; flex-shrink: 0; }
.icon-xl { width: 36px; height: 36px; }

.section-title {
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: center;
  margin: 0 auto 4rem;
}
.section-title:has(+ .section-sub) { margin-bottom: 1rem; }
.section-title-sm { font-size: 3rem; }
.section-title-xs { font-size: 2.5rem; line-height: 1.175; }
.section-sub {
  text-align: center;
  color: var(--color-soft);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.5;
  max-width: 640px;
  margin: 0 auto 3rem;
}
.section-label {
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.66;
  color: var(--color-muted);
  margin: 0 0 1rem;
}
.section-bordered {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}
.feature {
  --feature-color: var(--color-fg);
  border-top: 2px solid var(--feature-color);
  padding-top: 1.1rem;
}
.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-fg);
  margin: 0 0 0.5rem;
}

.poster { padding: 4rem 0; }
.poster-accent { --poster-c: var(--color-accent); }
.poster-info { --poster-c: var(--color-info); }
.poster-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.25rem;
}
.poster-pop { color: var(--poster-c); }
.poster-lede {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-text-soft);
  max-width: 540px;
  margin: 0 0 2rem;
}
.poster-beats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 720px;
}
.poster-beat { border-top: 2px solid var(--poster-c); padding-top: 1.1rem; }
.poster-beat h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-fg);
  margin: 0 0 0.5rem;
}
.poster-beat p {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-soft);
  margin: 0;
}
.feature-desc {
  color: var(--color-soft);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.6;
  margin: 0;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
}
.tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 300;
  line-height: 1.43;
  color: var(--color-text-soft);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 4px 12px;
  cursor: default;
  --tag-color: var(--color-soft);
  transition: color 0.55s ease, border-color 0.55s ease;
}

.tag.eco-on {
  color: color-mix(in srgb, var(--tag-color) 72%, var(--color-fg));
  border-color: var(--tag-color);
  transition: none;
}

.split {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  gap: 3.5rem;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
}
.split-tokay {
  border-left: 1px solid var(--color-border);
  padding-left: 3.5rem;
}
.split-head { margin-bottom: 1.5rem; }
.split-label {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.split-sub {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--color-muted);
}
.split-label-you { color: var(--color-accent); }
.split-label-tokay { color: var(--color-info); }
.split-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.split-list li {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-fg);
  line-height: 1.3;
  margin-bottom: 1.3rem;
}
.split-list li::before {
  content: "/";
  color: var(--slash-c, var(--color-accent));
  font-weight: 700;
  margin-right: 0.6rem;
}
.split-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.split-item {
  font-size: 0.9375rem;
  color: var(--color-text-soft);
  line-height: 1.4;
}
.split-item::before {
  content: "/";
  color: var(--color-info);
  font-weight: 700;
  margin-right: 0.5rem;
}

.tech-langs {
  --shimmer: 1.8;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem 0;
  padding-top: 1.5rem;
  margin-bottom: 3rem;
}
.lang-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.25rem;
  cursor: default;
}

.lang-icon {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lang-color);
}
.lang-icon svg {
  width: var(--lang-size, 48px);
  height: var(--lang-size, 48px);
  fill: currentColor;
}
.lang-name {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--lang-color);
}

.tech-group { margin-bottom: 3rem; }

.tech-langs.cascade-ready .lang-item { filter: grayscale(1); }
.tech-langs.in .lang-item { animation: iconColorize 0.9s cubic-bezier(0.32, 0, 0.67, 0) both; }
.tech-langs.in .lang-icon svg,
.tech-langs.in .lang-name { animation: iconOvershoot 0.2s ease-in-out calc(0.9s + var(--i, 0) * 90ms) both; }
@keyframes iconColorize {
  from { filter: grayscale(1); }
  to   { filter: grayscale(0); }
}

@keyframes iconOvershoot {
  0%   { filter: brightness(1)            saturate(1); }
  50%  { filter: brightness(calc(1 + (var(--ob, 1.15) - 1) * var(--ob-boost, 1) * var(--shimmer, 1))) saturate(1.12); }
  100% { filter: brightness(1)            saturate(1); }
}

.cta-mega {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.04em;
  color: var(--color-fg);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.25s, transform 0.25s, filter 0.25s;
}
.cta-mega:hover {
  opacity: 1;
  transform: scale(1.02);
  background: linear-gradient(90deg, var(--color-accent) 0%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 0, 128, 0.3));
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  color: var(--color-soft);
  transition: color 0.15s;
}
.icon-link:hover { color: var(--color-info-soft); }

.section-cta {
  text-align: center;
  position: relative;
  isolation: isolate;
}
.section-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--color-accent) 5%, transparent) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.section-cta h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin: 0 auto 1.5rem;
}
.section-cta p {
  color: var(--color-soft);
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.5;
  font-weight: 400;
}

.main-content-loose .section-cta { padding: 2rem 0 2.5rem; }
.main-content-loose .section-cta h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.25rem);
  margin: 0 auto 2.5rem;
  text-wrap: balance;
}

.section-final {
  text-align: center;
  border-top: 1px solid var(--color-border);
  padding: 5rem 0;
}
.section-final h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 2.6vw, 1.8rem);
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.235;
  color: var(--color-fg);
  margin: 0 0 1.5rem;
}
.section-final .cta-mega { margin-bottom: 3rem; }
.section-final .chip { margin-bottom: 1.5rem; }
.section-final .icon-link-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.docs-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: clamp(2rem, 3vw, 2.5rem);
  max-width: 1180px;
}
.docs-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100vh;
  overflow-y: auto;
  padding: 5rem 0 14rem;
  /* Scrolls internally (sticky + taller than the viewport) but without
     scrollbar chrome; wheel/trackpad still work. */
  scrollbar-width: none;
}
.docs-sidebar::-webkit-scrollbar { display: none; }
.docs-nav-toggle { display: none; }
.docs-nav-heading {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 1.75rem 0 0.6rem;
}
.docs-nav > .docs-nav-heading:first-child { margin-top: 0; }
.docs-nav-list { list-style: none; margin: 0; padding: 0; }
.docs-nav-list a {
  display: block;
  padding: 0.32rem 0 0.32rem 0.95rem;
  border-left: 2px solid transparent;
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.4;
  color: var(--color-text-soft);
  text-decoration: none;
}
.docs-nav-list a:hover { color: var(--color-fg); border-left-color: var(--color-border); }
.docs-nav-list a.is-current,
.docs-nav-list a.is-current:visited,
.docs-nav-list a.is-current:hover {
  color: var(--color-accent-soft);
  border-left-color: var(--color-accent);
}

.docs-body { max-width: 768px; min-width: 0; padding: 5rem 0 14rem; }

.docs-body > section { padding: 0; margin-bottom: 2.25rem; scroll-margin-top: 2rem; }
.docs-body > section:last-child { margin-bottom: 0; }
.docs-body .eyebrow { margin-bottom: 0.5rem; }

.docs-title {
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-fg);
  margin: 0 0 0.75rem;
}
.docs-lede {
  font-size: 1.2rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-soft);
  margin: 0 0 1.75rem;
  max-width: 600px;
}
.page-updated {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-muted);
  margin: 0;
}
.docs-body .page-updated { margin: -1rem 0 1.75rem; }
.flagship-body > section { margin-bottom: 5rem; }
.flagship-body > section:last-child { margin-bottom: 0; }
.flagship-links { text-align: center; }

.docs-h2 {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-fg);
  margin: 0 0 0.75rem;
}
.docs-p {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-soft);
  margin: 0 0 1.25rem;
}
.docs-body .handle-list { margin-bottom: 1.75rem; }
.docs-body .service-type-grid { margin-bottom: 1.75rem; }
.docs-body ul,
.docs-body ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-text-soft);
}
.docs-body li { margin-bottom: 0.4rem; }
.docs-table-wrap { overflow-x: auto; margin: 0 0 1.25rem; }
.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--color-text-soft);
}
.docs-table th {
  font-weight: 600;
  color: var(--color-fg);
}
.docs-table th,
.docs-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.5rem 1.25rem 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.docs-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-info-soft);
  text-decoration: none;
}
.docs-guide-link svg { width: 16px; height: 16px; fill: currentColor; }
.docs-guide-link:hover { color: var(--color-fg); }

.route-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.path-pick .chip { margin-bottom: 0.5rem; }
.route-arrow {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: auto;
  align-self: center;
  color: var(--card-color);
  fill: currentColor;
  opacity: 0.55;
  transition: transform 0.2s, opacity 0.2s;
}
.path-pick:hover .route-arrow { opacity: 1; transform: translateX(2px); }

.path-pick {
  --card-color: var(--color-fg);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card-color) 4%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-color) 15%, transparent);
  text-decoration: none;
  text-align: left;
  transition: background-color 0.2s, border-color 0.2s;
}
.path-pick:hover {
  background: color-mix(in srgb, var(--card-color) 8%, transparent);
  border-color: color-mix(in srgb, var(--card-color) 35%, transparent);
}
.path-pick-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card-color) 10%, transparent);
  color: var(--card-color);
}
.path-pick-icon svg { width: 24px; height: 24px; fill: currentColor; }
.path-pick-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-fg);
  margin: 0;
}
.path-pick-sub {
  font-size: 0.875rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-muted);
  margin: 0;
}

.lifecycle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.25rem;
}
.lifecycle-step {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-fg);
}
.lifecycle-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--color-muted);
  fill: currentColor;
}

.num-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.num-steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.num-steps p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 1rem;
  line-height: 1.6875;
  font-weight: 300;
}
.num-steps strong {
  color: var(--color-fg);
  font-weight: 600;
}

.num-badge {
  flex-shrink: 0;
  width: 1.25rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6875;
  color: var(--card-color);
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.guide-card,
.warning-card,
.service-type-card,
.plan-card {
  --card-color: var(--color-fg);
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid color-mix(in srgb, var(--card-color) 12%, transparent);
}
.guide-card,
.service-type-card,
.plan-card {
  display: flex;
  flex-direction: column;
}
.guide-card {
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}
.guide-card:hover {
  background: color-mix(in srgb, var(--card-color) 4%, var(--color-surface));
  border-color: color-mix(in srgb, var(--card-color) 35%, transparent);
}
.guide-icon,
.service-type-icon,
.warning-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--card-color) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--card-color) 20%, transparent);
  color: var(--card-color);
}
.guide-icon svg,
.service-type-icon svg,
.warning-icon svg { width: 22px; height: 22px; fill: currentColor; }
.guide-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-fg);
  margin: 0.75rem 0 0;
}
.guide-desc {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--color-soft);
  margin: 0.75rem 0 0;
}

.guide-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  color: var(--card-color);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}
.guide-cta svg { width: 14px; height: 14px; fill: currentColor; }

.main-content > .hero.hero-pricing,
.main-content > .hero.hero-pricing ~ section:not(:last-child) {
  margin-bottom: 4rem;
}
.hero-pricing { text-align: center; }

.hero-pricing .price-hero {
  font-size: 7rem;
  font-weight: 600;
  line-height: 0.95;
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.price-sub {
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.167;
  color: var(--color-muted);
  margin: 0 0 1rem;
  font-family: var(--font-display);
  text-align: center;
}
.price-line {
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--color-fg);
  font-weight: 500;
  margin: 0;
  text-align: center;
}

.price-includes {
  max-width: 32rem;
  margin: 0 auto;
  text-align: left;
}

/* Workspace sizes. Every size runs the same platform, so the cards compare
   machines and nothing else. Small, the first paid size, carries the brand tint. */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.plan-card {
  border-color: color-mix(in srgb, var(--card-color) 28%, transparent);
}
.plan-name {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-fg);
}
.plan-price {
  margin: 0.75rem 0 0;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  color: var(--color-fg);
}
.plan-price-unit {
  margin-left: 0.25rem;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-muted);
}
.plan-cadence {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-muted);
}
.plan-specs {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.plan-spec {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.plan-spec-label {
  color: var(--color-muted);
  font-weight: 400;
}
.plan-spec-value {
  color: var(--color-fg);
  font-weight: 600;
}
.plan-foot {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-muted);
}
a.plan-foot-link,
a.plan-foot-link:visited {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--color-accent-soft);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a.plan-foot-link:hover {
  color: var(--color-accent-soft);
  border-bottom-color: currentColor;
}
.plan-foot-link svg { width: 14px; height: 14px; fill: currentColor; }

.plan-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: color-mix(in srgb, var(--color-fg) 3%, transparent);
}
.plan-more p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-soft);
}
/* Body copy under its eyebrow, set like the included list above it. */
.plan-fits {
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6875;
  color: var(--color-soft);
}

.price-callout {
  --callout-color: var(--color-accent);
  margin: 2rem 0 0;
  padding: 2rem;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--callout-color) 5%, transparent);
  border: 1px solid color-mix(in srgb, var(--callout-color) 20%, transparent);
}
.price-callout p {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 400;
}
.price-callout p + p { margin-top: 1rem; }
.price-callout-honor {
  --callout-color: var(--color-warn);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: color-mix(in srgb, var(--callout-color) 3%, transparent);
  border: 1px solid color-mix(in srgb, var(--callout-color) 40%, transparent);
}
.honor-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--callout-color);
}
.honor-icon svg { width: 32px; height: 32px; fill: currentColor; }
.price-callout-honor .honor-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--callout-color);
  margin: 0 0 0.5rem;
}
.price-callout-honor p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-soft);
  font-weight: 300;
}
.honor-strong {
  color: var(--color-fg);
  font-weight: 300;
}
.price-line-final {
  margin-top: 2rem;
  text-align: center;
  color: var(--color-soft);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.7;
}
.price-ship {
  font-size: 1.8rem;
  font-weight: 600;
  font-family: var(--font-sans);
  color: var(--color-accent);
}

.price-cta-section { text-align: center; }
a.price-cta-button,
a.price-cta-button:visited,
a.price-cta-button:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 16px 40px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--color-bg);
  background: var(--color-fg);
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: filter 0.2s;
}
a.price-cta-button:hover {
  filter: brightness(1.08);
}
.price-cta-button svg { width: 18px; height: 18px; fill: currentColor; }
.price-cta-sub {
  margin: 4rem 0 0;
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-muted);
}

a.price-cta-mail,
a.price-cta-mail:visited {
  color: var(--color-info-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a.price-cta-mail:hover {
  color: var(--color-info-soft);
  border-bottom-color: var(--color-info-soft);
}

.hero-guide { text-align: center; }
.hero-guide .guide-hero-lede { margin-left: auto; margin-right: auto; }

.hero-guide .guide-hero-title {
  font-size: 3.5rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  color: var(--color-fg);
  font-family: var(--font-display);
}
.guide-hero-lede {
  font-size: 1.1875rem;
  font-weight: 300;
  line-height: 1.684;
  color: var(--color-muted);
  margin: 0 0 2rem;
  max-width: 620px;
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent-soft);
  margin: 0 0 1rem;
}

a.button-brand, a.button-brand:visited, a.button-brand:hover,
a.button-info,  a.button-info:visited,  a.button-info:hover,
a.button-plum,  a.button-plum:visited,  a.button-plum:hover,
a.button-mango, a.button-mango:visited, a.button-mango:hover,
a.button-live,  a.button-live:visited,  a.button-live:hover,
a.button-ink,   a.button-ink:visited,   a.button-ink:hover,
a.button-github, a.button-github:visited, a.button-github:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--btn-fg, var(--color-bg));
  background: var(--btn-bg);
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: filter 0.2s;
}
a.button-brand:hover, a.button-info:hover, a.button-plum:hover,
a.button-mango:hover, a.button-live:hover, a.button-ink:hover,
a.button-github:hover {
  filter: brightness(1.06);
}
.button-brand { --btn-bg: var(--color-accent); }
.button-info  { --btn-bg: var(--color-info); }
.button-plum  { --btn-bg: var(--color-purple); }
.button-mango { --btn-bg: var(--color-warn); --btn-fg: var(--color-fg); }
.button-live  { --btn-bg: var(--color-success); --btn-fg: var(--color-fg); }
.button-ink   { --btn-bg: var(--color-fg); }
.button-github { --btn-bg: var(--color-github); }
a.button-brand svg, a.button-info svg, a.button-plum svg,
a.button-mango svg, a.button-live svg, a.button-ink svg,
a.button-github svg, a.button-outline svg {
  width: 18px; height: 18px; fill: currentColor;
}

.service-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.service-type-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.471;
  color: var(--color-fg);
  margin: 0.75rem 0 0;
}
.service-type-desc {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6875;
  color: var(--color-soft);
  margin: 0.75rem 0 0;
}
.service-type-divider-label {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.533;
  color: var(--color-fg);
  margin: 1.5rem 0 0;
}
.service-type-after {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.733;
  color: var(--color-soft);
  margin: 0.5rem 0 0;
}

.rules-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rules-list li {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6875;
  color: var(--color-text-soft);
}
.rules-list strong:first-child {
  display: inline-block;
  min-width: 1.5rem;
  font-weight: 600;
  color: var(--color-fg);
}
.rule-tag {
  font-weight: 600;
  color: var(--color-fg);
}

.handle-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.handle-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.handle-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 4px;
  color: var(--color-accent);
}
.handle-icon svg { width: 20px; height: 20px; fill: currentColor; }
.handle-list p {
  margin: 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6875;
  color: var(--color-soft);
}
.handle-list strong {
  font-weight: 600;
  color: var(--color-fg);
  margin-right: 0.25rem;
}

.warning-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.warning-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.471;
  color: var(--color-fg);
  margin: 0.75rem 0 0;
}
.warning-desc {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.6875;
  color: var(--color-soft);
  margin: 0.75rem 0 0;
}

.guide-grid-3 { grid-template-columns: repeat(3, 1fr); }

.info-card-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.info-card-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.info-card-icon svg { width: 24px; height: 24px; fill: currentColor; }
.info-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-fg);
  margin: 0 0 0.25rem;
}
.info-card-sub {
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.533;
  color: var(--color-soft);
  margin: 0;
}

.ml-pill {
  display: inline-block;
  padding: 0 6px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.533;
  color: var(--color-accent);
  background: color-mix(in srgb, var(--color-accent) 10%, transparent);
}

.code-title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.6;
  color: var(--color-fg);
  margin: 0 0 1rem;
  font-family: var(--font-display);
}
.code-block {
  margin: 0 0 2rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--syn-bg);
  border: 1px solid color-mix(in srgb, var(--color-bg) 12%, transparent);
  max-width: 100%;
  overflow-x: auto;
}
.code-block code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--syn-fg);
  white-space: pre;
}

.code-block .token.comment { color: var(--syn-muted); font-style: italic; }
.code-block .token.punctuation { color: var(--syn-muted); }
.code-block .token.keyword { color: var(--syn-keyword); }
.code-block .token.function,
.code-block .token.builtin,
.code-block .token.class-name { color: var(--syn-function); }
.code-block .token.string,
.code-block .token.char,
.code-block .token.regex { color: var(--syn-string); }
.code-block .token.number,
.code-block .token.boolean,
.code-block .token.constant { color: var(--syn-number); }
.code-block .token.parameter { color: var(--syn-param); }
.code-block .token.operator { color: var(--syn-operator); }
.code-block .token.decorator,
.code-block .token.annotation { color: var(--syn-string); }
.code-closing {
  margin: 1rem 0 0;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--color-soft);
  text-align: center;
}

a.button-outline,
a.button-outline:visited,
a.button-outline:hover {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--color-fg);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--color-fg) 30%, transparent);
  transition: background-color 0.2s, border-color 0.2s;
}
a.button-outline:hover {
  background: color-mix(in srgb, var(--color-fg) 7%, transparent);
  border-color: color-mix(in srgb, var(--color-fg) 55%, transparent);
}
a.button-outline.button-outline-sm,
a.button-outline.button-outline-sm:visited,
a.button-outline.button-outline-sm:hover {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.6;
  border-color: color-mix(in srgb, var(--color-fg) 22%, transparent);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.legal-body {
  color: var(--color-text-soft);
}
.legal-body .container {
  font-size: 1rem;
  line-height: 1.7;
}
.legal-body h2 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-fg);
  margin: 2.5rem 0 0.75rem;
  font-family: var(--font-display);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p {
  margin: 0 0 1rem;
  color: var(--color-text-soft);
}
.legal-body ul,
.legal-body ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--color-text-soft);
}
.legal-body li { margin-bottom: 0.25rem; }
a.legal-link,
a.legal-link:visited {
  color: var(--color-info-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
a.legal-link:hover {
  color: var(--color-info-soft);
  border-bottom-color: var(--color-info-soft);
}

@media (max-width: 900px) {
  .main-content { padding: 4rem 0; }
  section,
  .section-bordered,
  .section-final { padding: 4rem 0; }
  .main-content-loose .section-cta { padding: 1.5rem 0 2rem; }
  .main-content-loose > .hero + section { padding-top: 2rem; }

  .section-title { font-size: 2.5rem; }
  .section-title.section-title-sm { font-size: 2rem; }
  .section-cta h2 { font-size: 1.8rem; }
  .hero h1,
  .hero-sm h1,
  .hero-guide .guide-hero-title { font-size: 2.5rem; }
  .hero-pricing .price-hero { font-size: 5rem; }

  .actions { flex-direction: column; align-items: center; }
  .actions > a { width: 280px; max-width: 100%; box-sizing: border-box; }

  .features-grid,
  .route-grid,
  .guide-grid,
  .guide-grid-3,
  .service-type-grid,
  .warning-grid,
  .plan-grid,
  .poster-beats { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .split-tokay { border-left: 0; padding-left: 0; border-top: 1px solid var(--color-border); padding-top: 2.5rem; }

  .docs-layout { grid-template-columns: 1fr; gap: 0; max-width: 768px; }
  .docs-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .docs-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    cursor: pointer;
    padding: 1.25rem 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--color-fg);
  }
  .docs-nav-toggle::-webkit-details-marker { display: none; }
  .docs-nav-toggle::after { content: "\25be"; transition: transform 0.2s; }
  .docs-nav-wrap[open] .docs-nav-toggle::after { transform: rotate(180deg); }
  .docs-nav-wrap[open] .docs-nav { padding-bottom: 1.25rem; }
  .docs-body { padding: 2rem 0 4rem; }
}

@media (max-width: 768px) { .nav-secondary { display: none; } }

@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 1rem 0 2rem; }
  .hero-pricing .price-hero { font-size: 4rem; }
  .actions > a { width: 100%; }
  .split-items { grid-template-columns: 1fr; }
  footer.site { padding: 32px 0; }
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1rem;
    margin-bottom: 1.5rem;
  }
  .footer-guides { grid-column: 1 / -1; }
  .footer-status {
    grid-column: 2;
    grid-row: 2;
  }
  .footer-guides ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }
  .footer-heading { margin-bottom: 0.5rem; }
  .footer-cols a {
    padding: 3px 0;
    line-height: 1.45;
  }
  .footer-cols li + li a { margin-top: 0; }
  .footer-meta {
    padding-top: 1.25rem;
    gap: 0.75rem;
    font-size: 0.8125rem;
  }
  .footer-meta nav {
    gap: 1rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 500px) { header.site { padding: 0 0.75rem; } }

@media (max-width: 460px) { .nav-tertiary { display: none; } }

@media (max-width: 400px) { .nav-quaternary { display: none; } }

/* Examples */

.example-preview-banner {
  margin: 0 0 1.75rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid color-mix(in srgb, var(--color-warn) 40%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--color-warn) 10%, transparent);
  color: var(--color-fg);
  font-size: 0.9375rem;
  font-weight: 600;
}

.example-facts {
  margin: 1.75rem 0 0;
  padding: 1rem 1.25rem;
  display: grid;
  gap: 0.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.example-fact { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; }
.example-facts dt {
  color: var(--color-muted);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.8;
}
.example-facts dd {
  margin: 0;
  color: var(--color-text-soft);
  font-size: 0.9375rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

pre.example-code {
  margin: 0;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  color: var(--color-fg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.8125rem;
  line-height: 1.6;
  overflow-x: auto;
}
.example-code .token.comment { color: var(--color-muted); font-style: italic; }
.example-code .token.punctuation,
.example-code .token.operator { color: var(--color-soft); }
.example-code .token.keyword { color: var(--color-purple); }
.example-code .token.function,
.example-code .token.builtin,
.example-code .token.class-name { color: var(--color-info-soft); }
.example-code .token.string,
.example-code .token.char,
.example-code .token.regex,
.example-code .token.decorator,
.example-code .token.annotation { color: var(--color-accent-soft); }
.example-code .token.number,
.example-code .token.boolean,
.example-code .token.constant { color: var(--color-periwinkle); }
.example-code .token.parameter { color: var(--color-text-soft); }
.example-code .token.tag {
  display: inline;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: var(--color-purple);
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  cursor: inherit;
}
.example-code .token.attr-name { color: var(--color-info-soft); }
.example-code .token.attr-value { color: var(--color-accent-soft); }
.example-code .token.doctype,
.example-code .token.prolog,
.example-code .token.cdata { color: var(--color-muted); }
.example-code .token.selector { color: var(--color-purple); }
.example-code .token.property { color: var(--color-info-soft); }
.example-code .token.atrule,
.example-code .token.important { color: var(--color-accent-soft); }
.example-code .token.url { color: var(--color-text-soft); }

.example-code,
.example-viewer,
.example-viewer-files {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--color-fg) 22%, transparent) transparent;
}

.example-file { margin: 0 0 1.5rem; }
.example-file-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.example-file-name {
  font-family: var(--font-mono);
  color: var(--color-fg);
  overflow-wrap: anywhere;
}
.example-file-raw {
  margin-left: auto;
  font-size: 0.8125rem;
  font-weight: 600;
}
.example-file-copy {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text-soft);
  cursor: pointer;
}
.example-file-copy:hover { color: var(--color-fg); border-color: var(--color-soft); }
.example-file-copy:active { transform: translateY(1px); }
.example-file-copy.is-copied { color: var(--color-success); border-color: var(--color-success); }
.example-file-empty { color: var(--color-muted); font-size: 0.875rem; margin: 0 0 0.5rem; }

html.js .example-viewer:not([data-enhanced]) {
  max-height: 70vh;
  overflow: auto;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
}

.example-viewer[data-enhanced] {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  height: min(34rem, 75vh);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  overflow: hidden;
}
.example-viewer[data-enhanced] .example-viewer-files {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.5rem;
  border-right: 1px solid var(--color-border);
  background: var(--color-bg);
  overflow-y: auto;
}
.example-viewer-files [role="group"],
.example-dir {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.example-viewer-files [role="group"][hidden] { display: none; }
.example-viewer-files [role="group"] { padding-left: 0.9rem; }
.example-dir-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.example-folder-icon {
  width: 14px;
  height: 14px;
  fill: var(--color-soft);
  flex-shrink: 0;
}
.example-caret { display: inline-block; width: 0.9rem; color: var(--color-muted); }
.example-caret::before { content: "\25B8"; display: inline-block; }
.example-dir-toggle[aria-expanded="true"] .example-caret::before { transform: rotate(90deg); }
@media (prefers-reduced-motion: no-preference) {
  .example-caret::before { transition: transform 0.12s; }
}
.example-dir-toggle,
.example-tab {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.5;
  padding: 0.4rem 0.6rem;
  border: 0;
  border-radius: var(--radius);
  background: none;
  color: var(--color-text-soft);
  cursor: pointer;
  overflow-wrap: anywhere;
}
.example-dir-toggle:hover,
.example-tab:hover { background: color-mix(in srgb, var(--color-fg) 5%, transparent); color: var(--color-fg); }
.example-tab[aria-selected="true"] {
  background: color-mix(in srgb, var(--color-info) 9%, transparent);
  color: var(--color-fg);
  font-weight: 600;
}
.example-viewer[data-enhanced] .example-viewer-panels { min-width: 0; min-height: 0; }
.example-viewer[data-enhanced] .example-file {
  margin: 0;
  padding: 1rem 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.example-viewer[data-enhanced] .example-file[hidden] { display: none; }
.example-viewer[data-enhanced] pre.example-code {
  border: 0;
  padding: 0;
  background: transparent;
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.example-viewer-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.example-src-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.example-src-actions { display: flex; align-items: center; gap: 0.5rem; }
.example-src-actions svg { width: 15px; height: 15px; fill: currentColor; }
.example-src-actions a.button-outline.button-outline-sm { padding: 5px 14px; }

.example-revision { font-size: 0.8125rem; color: var(--color-muted); margin: 0.75rem 0 0; }
.example-revision code { overflow-wrap: anywhere; }

.example-card-meta { margin: 0.5rem 0 0; font-size: 0.8125rem; color: var(--color-muted); }

.example-related-list li { margin-bottom: 0.6rem; }
.example-related-summary { color: var(--color-soft); }

@media (max-width: 900px) {
  .example-viewer[data-enhanced] {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .example-viewer[data-enhanced] .example-viewer-files {
    max-height: 11rem;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }
  .example-fact { grid-template-columns: 1fr; gap: 0; }
}
/* End examples */
