@layer theme, base, components, utilities;

:root {
  --page: #fafafa;
  --panel: #ffffff;
  --sunken: #f4f4f5;
  --line: #e4e4e7;
  --line-soft: #f0f0f2;
  --strong: #09090b;
  --body: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --good: #15803d;
  --good-soft: #dcfce7;
  --bad: #b91c1c;
  --bad-soft: #fee2e2;
  --added: rgba(22, 163, 74, 0.1);
  --removed: rgba(220, 38, 38, 0.08);
  --code-key: #7c3aed;
  --code-string: #15803d;
  --code-tag: #0369a1;
  --code-comment: #a1a1aa;
  --sans-font:
    "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    sans-serif;
  --mono-font: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-end: max(16px, env(safe-area-inset-right, 0px));
  --top-safe: env(safe-area-inset-top, 0px);
  --box-edge: rgba(10, 132, 255, 0.6);
  --box-edge-solid: #0a84ff;
  --box-content-layer: linear-gradient(
    rgba(10, 132, 255, 0.07),
    rgba(10, 132, 255, 0.07)
  );
  --box-padding-layer: repeating-linear-gradient(
    45deg,
    rgba(22, 163, 74, 0.28) 0 1px,
    transparent 1px 5px
  );
  --box-color-layer: linear-gradient(transparent, transparent);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #09090b;
    --panel: #111113;
    --sunken: #18181b;
    --line: #27272a;
    --line-soft: #1c1c1f;
    --strong: #fafafa;
    --body: #d4d4d8;
    --muted: #a1a1aa;
    --faint: #71717a;
    --good: #4ade80;
    --good-soft: rgba(74, 222, 128, 0.12);
    --bad: #f87171;
    --bad-soft: rgba(248, 113, 113, 0.12);
    --added: rgba(74, 222, 128, 0.1);
    --removed: rgba(248, 113, 113, 0.1);
    --code-key: #c4b5fd;
    --code-string: #86efac;
    --code-tag: #7dd3fc;
    --code-comment: #71717a;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --page: #09090b;
  --panel: #111113;
  --sunken: #18181b;
  --line: #27272a;
  --line-soft: #1c1c1f;
  --strong: #fafafa;
  --body: #d4d4d8;
  --muted: #a1a1aa;
  --faint: #71717a;
  --good: #4ade80;
  --good-soft: rgba(74, 222, 128, 0.12);
  --bad: #f87171;
  --bad-soft: rgba(248, 113, 113, 0.12);
  --added: rgba(74, 222, 128, 0.1);
  --removed: rgba(248, 113, 113, 0.1);
  --code-key: #c4b5fd;
  --code-string: #86efac;
  --code-tag: #7dd3fc;
  --code-comment: #71717a;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--page);
  color: var(--body);
  font-family: var(--sans-font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
code,
pre,
kbd,
.mono {
  font-family: var(--mono-font);
}
h1,
h2,
h3,
h4 {
  color: var(--strong);
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
}
p {
  margin: 0;
}

.view {
  display: none;
}
:root[data-view="landing"] .landing-view {
  display: block;
}
:root[data-view="docs"] .docs-view {
  display: block;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter-end);
}

.eyebrow {
  font-family: var(--mono-font);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.button-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--strong);
  background: transparent;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button-link:hover {
  background: var(--sunken);
  border-color: var(--faint);
}
.button-link.is-solid {
  background: var(--strong);
  color: var(--page);
  border-color: var(--strong);
}
.button-link.is-solid:hover {
  opacity: 0.9;
}

/* ---------- Top bar ---------- */

.top-bar {
  position: sticky;
  top: var(--top-safe);
  z-index: 20;
  background: color-mix(in srgb, var(--page) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.top-bar-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 60px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--strong);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-mark {
  width: 22px;
  height: 22px;
  flex: none;
}
.brand-crumb {
  color: var(--faint);
  font-weight: 400;
}
.top-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.top-links a {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--muted);
  transition:
    color 0.15s,
    background 0.15s;
}
.top-links a:hover {
  color: var(--strong);
  background: var(--sunken);
}
.top-links .github-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--strong);
  border: 1px solid var(--line);
  margin-left: 6px;
}
.top-links .github-link svg {
  width: 16px;
  height: 16px;
}
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: 4px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--strong);
  cursor: pointer;
  transition:
    color 0.15s,
    background 0.15s;
}
.theme-toggle:hover {
  background: var(--sunken);
}
.top-links .theme-toggle svg {
  grid-area: 1 / 1;
  width: 16px;
  height: 16px;
}
.theme-toggle .theme-icon-sun {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .theme-icon-sun {
  display: block;
}
:root[data-theme="dark"] .theme-toggle .theme-icon-moon {
  display: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .theme-icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .theme-toggle .theme-icon-moon {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -240px 0 auto 0;
  height: 640px;
  background: radial-gradient(
    ellipse 60% 50% at 50% 0%,
    rgba(161, 161, 170, 0.16),
    transparent 70%
  );
  pointer-events: none;
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(
    ellipse 70% 60% at 50% 0%,
    #000 30%,
    transparent 75%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 50% 0%,
    #000 30%,
    transparent 75%
  );
  pointer-events: none;
  opacity: 0.7;
}
.hero-inner {
  position: relative;
  text-align: center;
}
hgroup > * {
  font-size: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  font-weight: inherit;
}
hgroup > .dim {
  color: var(--faint);
}
.hero hgroup {
  margin: 0 auto;
  max-width: 980px;
  font-size: clamp(42px, 7.4vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.hero-lede {
  margin: 24px auto 0;
  max-width: 640px;
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--muted);
}
.hero-lede strong {
  color: var(--strong);
  font-weight: 500;
}

.audience-switch {
  min-width: 0;
  margin-inline: 0;
  position: relative;
  display: inline-flex;
  margin-top: 40px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}
.audience-switch button {
  border: 0;
  background: transparent;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: color 0.2s;
}
.audience-switch button[aria-pressed="true"] {
  color: var(--page);
}
.switch-thumb {
  position: absolute;
  left: 0;
  width: var(--thumb-width, 0);
  transform: translateX(var(--thumb-x, 0));
  pointer-events: none;
}
.audience-switch .switch-thumb {
  top: 3px;
  bottom: 3px;
  border-radius: 999px;
  background: var(--strong);
}
.segmented .switch-thumb {
  top: 2px;
  bottom: 2px;
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--line);
}

.command-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px auto 0;
  max-width: 560px;
  height: 52px;
  padding: 0 6px 0 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  font-family: var(--mono-font);
  font-size: 14px;
  color: var(--strong);
  text-align: left;
}
.command-pill .prompt {
  color: var(--faint);
}
.command-pill code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.command-pill code::-webkit-scrollbar {
  display: none;
}
.copy-button {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sunken);
  color: var(--muted);
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;
}
.copy-button:hover {
  color: var(--strong);
  border-color: var(--faint);
}
.copy-button svg {
  width: 16px;
  height: 16px;
}
.copy-button .check-icon {
  display: none;
}
.copy-button.is-copied .check-icon {
  display: block;
  color: var(--good);
}
.copy-button.is-copied .copy-icon {
  display: none;
}
.command-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--faint);
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ---------- Terminal ---------- */

.terminal {
  position: relative;
  margin: 72px auto 0;
  max-width: 960px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    0 40px 120px -40px rgba(161, 161, 170, 0.18);
  text-align: left;
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.terminal-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}
.terminal-bar span {
  margin-left: 8px;
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--faint);
}
.terminal-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}
.terminal pre {
  margin: 0;
  padding: 20px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--body);
  overflow-x: auto;
}
.terminal pre + .terminal-side {
  border-left: 1px solid var(--line);
}
.terminal-side {
  padding: 20px;
  display: grid;
  gap: 14px;
  align-content: start;
}
.terminal-side .eyebrow {
  margin-bottom: 2px;
}
.outcome-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: baseline;
}
.outcome-row b {
  font-family: var(--mono-font);
  font-size: 12px;
  font-weight: 500;
  color: var(--strong);
}
.outcome-row span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}
.json-key {
  color: var(--code-key);
}
.json-string {
  color: var(--code-string);
}
.json-number {
  color: var(--code-tag);
}
.json-dim {
  color: var(--faint);
}

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

.section {
  padding: 112px 0;
  border-top: 1px solid var(--line-soft);
}
.section-head {
  max-width: 720px;
}
.section-head hgroup {
  margin-top: 14px;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.section-head > p {
  margin-top: 16px;
  font-size: 17px;
  color: var(--muted);
}
.section-head.is-centered {
  margin: 0 auto;
  text-align: center;
}

/* ---------- Benchmark ---------- */

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--line);
  gap: 1px;
}
.stat-cell {
  background: var(--page);
  padding: 28px 24px;
}
.stat-number {
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.05em;
  color: var(--strong);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  margin-top: 10px;
  font-size: 15px;
  color: var(--strong);
  font-weight: 500;
}
.stat-compare {
  margin-top: 18px;
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--faint);
}
.stat-compare s {
  text-decoration: none;
  color: var(--muted);
}
.stat-compare em {
  font-style: normal;
  color: var(--strong);
}
.bench-notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
}
.bench-notes p strong {
  color: var(--strong);
  font-weight: 500;
}

/* ---------- Playground ---------- */

.playground {
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  overflow: hidden;
}
.playground-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
.field-label {
  font-family: var(--mono-font);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--faint);
}
.example-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.example-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  max-width: 260px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sunken);
  font-size: 13px;
  color: var(--strong);
  cursor: pointer;
}
.example-trigger:hover,
.example-trigger[aria-expanded="true"] {
  background: var(--panel);
}
#example-trigger-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chevron-icon {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--faint);
}
.example-trigger[aria-expanded="true"] .chevron-icon {
  transform: rotate(180deg);
}
.example-panel {
  position: fixed;
  z-index: 60;
  width: 300px;
  max-height: 340px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow:
    0 16px 40px -16px rgb(0 0 0 / 0.28),
    0 2px 6px rgb(0 0 0 / 0.06);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
}
.example-panel.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.example-group-label {
  padding: 10px 8px 4px;
  font-family: var(--mono-font);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--faint);
}
.example-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}
.example-option:hover,
.example-option.is-active {
  background: var(--sunken);
  color: var(--strong);
}
.example-option[aria-selected="true"] {
  color: var(--strong);
  font-weight: 500;
}
.example-option svg {
  width: 14px;
  height: 14px;
  flex: none;
  opacity: 0;
}
.example-option[aria-selected="true"] svg {
  opacity: 1;
}
.segmented {
  min-width: 0;
  margin: 0;
  position: relative;
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sunken);
}
.segmented button {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s;
}
.segmented button[aria-pressed="true"] {
  color: var(--strong);
}
.switch-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
}
.switch-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch-track {
  position: relative;
  width: 30px;
  height: 18px;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.15s;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted);
  transition:
    transform 0.15s,
    background 0.15s;
}
.switch-field input:checked + .switch-track {
  background: var(--strong);
}
.switch-field input:checked + .switch-track::after {
  transform: translateX(12px);
  background: var(--page);
}
.switch-field input:focus-visible + .switch-track {
  outline: 2px solid var(--faint);
  outline-offset: 2px;
}
.switch-field code {
  font-size: 12px;
  color: var(--strong);
}
.toolbar-end {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.run-status {
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
}
.run-status.is-busy::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--faint);
  animation: pulse 1s infinite;
  vertical-align: 1px;
}
@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

.theme-drawer {
  border-bottom: 1px solid var(--line);
}
.theme-drawer summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-drawer summary::-webkit-details-marker {
  display: none;
}
.theme-drawer summary::before {
  content: "+";
  font-family: var(--mono-font);
  color: var(--faint);
  width: 12px;
}
.theme-drawer[open] summary::before {
  content: "\2212";
}
.theme-drawer summary code {
  color: var(--strong);
  font-size: 12px;
}
.theme-drawer textarea {
  display: block;
  width: 100%;
  min-height: 84px;
  border: 0;
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  background: var(--sunken);
  font-family: var(--mono-font);
  font-size: 13px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
}

.code-panes {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.code-pane {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.code-pane + .code-pane {
  box-shadow: inset 1px 0 0 var(--line);
}
.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.pane-head .field-label {
  color: var(--muted);
}
.pane-head .pane-hint,
.stage-head .pane-hint {
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--faint);
}
.editor {
  position: relative;
  height: 460px;
  overflow: auto;
  background: var(--panel);
}
.editor textarea,
.editor pre {
  margin: 0;
  padding: 14px 16px;
  font-family: var(--mono-font);
  font-size: 12.5px;
  line-height: 1.65;
  tab-size: 2;
  white-space: pre;
  word-wrap: normal;
  border: 0;
  min-width: 100%;
  min-height: 100%;
}
.editor pre {
  pointer-events: none;
  color: var(--body);
}
.editor textarea {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  resize: none;
  outline: none;
  background: transparent;
  color: transparent;
  caret-color: var(--strong);
  overflow: hidden;
}
.editor textarea::selection {
  background: rgba(161, 161, 170, 0.3);
  color: transparent;
}
.output-code {
  height: 460px;
  overflow: auto;
}
.output-code pre {
  margin: 0;
  padding: 14px 0;
  font-size: 12.5px;
  line-height: 1.65;
  min-width: max-content;
}
.output-code .code-line {
  padding: 0 16px;
}

.result-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.count-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  line-height: 24px;
}
.count-chip b {
  font-family: var(--mono-font);
  font-weight: 500;
  color: var(--strong);
}
.result-strip .run-error {
  color: var(--bad);
  font-size: 13px;
}

.stay-list {
  border-top: 1px solid var(--line);
}
.stay-list:empty {
  display: none;
}
.stay-line {
  display: grid;
  grid-template-columns: 64px minmax(120px, 220px) 1fr;
  gap: 16px;
  padding: 10px 16px;
  font-size: 13px;
  align-items: baseline;
}
.stay-line + .stay-line {
  border-top: 1px solid var(--line-soft);
}
.stay-line code {
  font-size: 12px;
  color: var(--strong);
}
.stay-line .stay-at {
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--faint);
}
.stay-line .stay-why {
  color: var(--muted);
}
.stay-line .stay-why code {
  color: var(--body);
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 5px;
  margin-right: 6px;
}

.stage-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.stage-pair > div + div {
  box-shadow: inset 1px 0 0 var(--line);
}
.stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.verdict-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.verdict-bar .diff-note {
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--faint);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.verdict {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.verdict::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.verdict.is-same {
  color: var(--good);
  background: var(--good-soft);
}
.verdict.is-different {
  color: var(--bad);
  background: var(--bad-soft);
}
.verdict.is-waiting {
  color: var(--muted);
  background: var(--sunken);
}

/* ---------- Code lines ---------- */

.code-line {
  display: block;
  white-space: pre;
  min-height: 1.65em;
}
.code-line.is-added {
  background: var(--added);
  box-shadow: inset 2px 0 0 var(--good);
}
.code-line.is-removed {
  background: var(--removed);
  box-shadow: inset 2px 0 0 var(--bad);
}
.token.comment {
  color: var(--code-comment);
}
.token.string,
.token.attr-value {
  color: var(--code-string);
}
.token.keyword {
  color: var(--code-key);
}
.token.tag,
.token.class-name {
  color: var(--code-tag);
}
.token.attr-name,
.token.property {
  color: var(--strong);
}
.token.number,
.token.boolean {
  color: var(--code-tag);
}
.token.punctuation,
.token.operator {
  color: var(--faint);
}

/* ---------- Stage (the rendered React Native tree) ---------- */

.stage {
  position: relative;
  min-height: 160px;
  padding: 20px;
  background: #ffffff;
  color: #000000;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow: hidden;
}
.stage-checker {
  background-image: radial-gradient(#e4e4e7 1px, transparent 1px);
  background-size: 12px 12px;
}
.stage-empty,
.stage-failed {
  font-family: var(--sans-font);
  font-size: 13px;
  color: #71717a;
}
.stage-failed {
  color: #b91c1c;
}

@layer base {
  .rn-node {
    display: flex;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
    min-width: 0;
    flex-shrink: 0;
    border: 0 solid;
  }
  .rn-Text,
  .rn-Animated\.Text {
    display: block;
    font-size: 14px;
    color: #000000;
  }
  .rn-ScrollView {
    overflow: auto;
  }
  .rn-placeholder {
    display: block;
    min-width: 16px;
    min-height: 16px;
  }
  .rn-placeholder::after {
    content: attr(data-tag);
    position: absolute;
    top: 2px;
    left: 2px;
    max-width: calc(100% - 4px);
    overflow: hidden;
    padding: 1px 4px;
    border-radius: 3px;
    background: var(--box-edge-solid);
    color: #ffffff;
    font-family: ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 10px;
    font-style: normal;
    font-weight: 500;
    line-height: 12px;
    letter-spacing: 0;
    word-spacing: 0;
    text-align: left;
    text-transform: none;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
  }
  .case-lane .stage [data-path] {
    outline: 1px dashed var(--box-edge);
    outline-offset: -1px;
    background-image:
      var(--box-content-layer), var(--box-padding-layer), var(--box-color-layer);
    background-clip: content-box, padding-box, border-box;
  }
}

.box-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.box-legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  background-color: #ffffff;
  box-shadow: 0 0 0 1px var(--line);
}
.legend-swatch.is-edge {
  outline: 1px dashed var(--box-edge);
  outline-offset: -1px;
}
.legend-swatch.is-padding {
  background-image: var(--box-padding-layer);
}
.legend-swatch.is-content {
  background-image: var(--box-content-layer);
}

/* ---------- Proof steps ---------- */

.proof-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 56px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.proof-step {
  background: var(--page);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.proof-step h3 {
  font-size: 20px;
  letter-spacing: -0.02em;
}
.proof-step p {
  font-size: 14px;
  color: var(--muted);
}
.proof-sample {
  margin-top: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  font-family: var(--mono-font);
  font-size: 12px;
  line-height: 1.7;
  color: var(--body);
  white-space: pre;
  overflow-x: auto;
}
.proof-sample .is-good {
  color: var(--good);
}

/* ---------- Stay reasons ---------- */

.reason-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 48px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.reason-cell {
  background: var(--page);
  padding: 22px 24px;
}
.reason-cell .icon-tile {
  display: grid;
  margin-bottom: 16px;
}
.icon-tile {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  color: var(--strong);
}
.icon-tile svg {
  width: 22px;
  height: 22px;
  overflow: visible;
}
.icon-tile.is-small {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.icon-tile.is-small svg {
  width: 18px;
  height: 18px;
}
.icon-tile .is-filled {
  fill: currentColor;
  fill-opacity: 0.16;
}
.icon-tile .is-panel-filled {
  fill: var(--panel);
}
.icon-tile .draw-line {
  stroke-dasharray: 1;
}
.icon-tile .fork-end.is-left {
  fill: currentColor;
}
.icon-tile .march-dash {
  stroke-dasharray: 2 2.5;
}
.icon-tile .press-ripple {
  opacity: 0;
}
.gauge-needle {
  transform-box: view-box;
  transform-origin: 12px 16px;
  transform: rotate(-20deg);
}
.scheme-half {
  transform-box: view-box;
  transform-origin: 12px 12px;
}
.press-ripple {
  transform-box: view-box;
  transform-origin: 7px 4px;
}
.reason-cell code {
  font-size: 12.5px;
  color: var(--strong);
}
.reason-cell p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Edge-case teaser ---------- */

.teaser {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.teaser .hero-actions {
  justify-content: flex-start;
}
.teaser-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.teaser-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--page);
  font-size: 14px;
  color: var(--strong);
  transition: background 0.15s;
}
.teaser-row:hover {
  background: var(--panel);
}
.teaser-name {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.teaser-count {
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--faint);
  white-space: nowrap;
}

/* ---------- FAQ ---------- */

.faq-list {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.faq-list details {
  border-bottom: 1px solid var(--line);
}
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-size: 17px;
  font-weight: 500;
  color: var(--strong);
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-list summary .chevron-icon {
  width: 16px;
  height: 16px;
}
.faq-list details.is-open .chevron-icon {
  transform: rotate(180deg);
}
.faq-list details p {
  overflow: hidden;
  padding: 0 0 22px;
  max-width: 760px;
  color: var(--muted);
  font-size: 15px;
}
.faq-list details p code {
  font-size: 13px;
  color: var(--strong);
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 40px 0 calc(40px + env(safe-area-inset-bottom, 0px));
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--faint);
}
.footer-inner nav {
  display: flex;
  gap: 20px;
}
.footer-inner a:hover {
  color: var(--strong);
}
.footer-github {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-github svg {
  width: 15px;
  height: 15px;
}

/* ---------- Docs view (edge cases) ---------- */

.docs-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) 208px;
  gap: 48px;
  align-items: start;
  padding-top: 32px;
  padding-bottom: 96px;
}
.docs-side {
  position: sticky;
  top: calc(var(--top-safe) + 76px);
  max-height: calc(100vh - 100px);
  overflow: auto;
  padding-bottom: 24px;
}
.docs-side summary {
  display: none;
}
.docs-search {
  width: 100%;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  font-size: 13px;
  outline: none;
}
.docs-search:focus {
  border-color: var(--faint);
}
.side-group {
  margin-top: 20px;
}
.side-group-title {
  display: flex;
  justify-content: space-between;
  padding: 0 8px;
  font-family: var(--mono-font);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--faint);
}
.side-links {
  margin-top: 6px;
  display: grid;
  gap: 1px;
}
.side-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.side-links a:hover {
  color: var(--strong);
  background: var(--sunken);
}
.side-links a.is-current {
  color: var(--strong);
  background: var(--sunken);
  font-weight: 500;
}
.side-links a i {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
}
.side-links a i.is-same {
  background: var(--good);
}
.side-links a i.is-different {
  background: var(--bad);
}

.docs-main h1 {
  font-size: clamp(32px, 4vw, 44px);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-top: 10px;
}
.docs-intro {
  margin-top: 14px;
  font-size: 16px;
  color: var(--muted);
  max-width: 680px;
}
.tally {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 28px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.tally div {
  background: var(--panel);
  padding: 14px 16px;
}
.tally b {
  display: block;
  font-size: 24px;
  font-weight: 600;
  color: var(--strong);
  letter-spacing: -0.03em;
}
.tally span {
  font-size: 12px;
  color: var(--muted);
}
.theme-note {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  font-size: 13px;
  color: var(--muted);
}
.theme-note code {
  font-size: 12px;
  color: var(--strong);
}

.case-group {
  margin-top: 56px;
  scroll-margin-top: 80px;
}
.case-group > h2 {
  font-size: 24px;
  letter-spacing: -0.025em;
}
.case-group > p {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}
.case-card {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
  scroll-margin-top: 80px;
}
.case-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.case-head h3 {
  font-size: 15px;
  letter-spacing: -0.01em;
}
.case-head p {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}
.case-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}
.case-chips:empty {
  display: none;
}
.case-chip {
  font-family: var(--mono-font);
  font-size: 11px;
  height: 22px;
  line-height: 20px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: var(--sunken);
}
.case-chip.is-stay {
  border-style: dashed;
  border-color: var(--faint);
  color: var(--body);
  background: var(--panel);
}
.case-lanes {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.case-lane {
  min-width: 0;
}
.case-lane + .case-lane {
  box-shadow: inset 1px 0 0 var(--line);
}
.case-lane .stage {
  min-height: 120px;
  border-bottom: 1px solid var(--line);
}
.case-lane .code-scroll {
  overflow: auto;
  max-height: 360px;
}
.case-lane pre {
  margin: 0;
  padding: 12px 0;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.case-lane .code-line {
  padding: 0 14px 0 calc(14px + 2ch);
  text-indent: -2ch;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.case-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--faint);
}
.case-foot .diff-note {
  font-family: var(--mono-font);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.case-foot .try-link {
  margin-left: auto;
  flex: none;
  color: var(--muted);
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 8px;
  background: transparent;
  cursor: pointer;
}
.case-foot .try-link:hover {
  color: var(--strong);
}

.docs-toc {
  position: sticky;
  top: calc(var(--top-safe) + 76px);
  font-size: 13px;
}
.docs-toc .eyebrow {
  font-size: 11px;
}
.docs-toc nav {
  margin-top: 10px;
  display: grid;
  gap: 2px;
  border-left: 1px solid var(--line);
}
.docs-toc nav a {
  padding: 3px 0 3px 12px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: var(--muted);
}
.docs-toc nav a:hover {
  color: var(--strong);
}
.docs-toc nav a.is-current {
  color: var(--strong);
  border-left-color: var(--strong);
}
.toc-tally {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  color: var(--muted);
}
.toc-tally b {
  color: var(--strong);
  font-weight: 500;
  font-family: var(--mono-font);
  font-size: 12px;
}
.case-hidden {
  display: none;
}

/* ---------- Small screens ---------- */

@media (max-width: 1100px) {
  .docs-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
  }
  .docs-toc {
    display: none;
  }
}

@media (max-width: 900px) {
  .terminal-split {
    grid-template-columns: 1fr;
  }
  .terminal pre + .terminal-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .stat-row {
    grid-template-columns: 1fr 1fr;
  }
  .bench-notes {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .proof-steps,
  .reason-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .teaser {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .code-panes,
  .stage-pair,
  .case-lanes {
    grid-template-columns: 1fr;
  }
  .code-pane + .code-pane,
  .stage-pair > div + div,
  .case-lane + .case-lane {
    box-shadow: inset 0 1px 0 var(--line);
  }
  .editor,
  .output-code {
    height: 340px;
  }
}

@media (max-width: 760px) {
  .top-links a:not(.github-link):not(.keep-on-phone) {
    display: none;
  }
  .top-bar-inner {
    gap: 12px;
  }
  .brand-crumb,
  .github-word {
    display: none;
  }
  .top-links .github-link {
    padding: 6px 8px;
    margin-left: 2px;
  }
  .hero {
    padding: 56px 0 48px;
  }
  .section {
    padding: 72px 0;
  }
  .terminal {
    margin-top: 48px;
  }
  .stat-cell {
    padding: 20px 16px;
  }
  .stay-line {
    grid-template-columns: 52px 1fr;
    gap: 4px 12px;
  }
  .stay-line .stay-why {
    grid-column: 1 / -1;
  }
  .toolbar-end {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-top: 16px;
  }
  .docs-side {
    position: static;
    max-height: none;
    overflow: visible;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--panel);
    padding: 0;
  }
  .docs-side summary {
    display: flex;
    justify-content: space-between;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--strong);
  }
  .docs-side summary::-webkit-details-marker {
    display: none;
  }
  .docs-side-body {
    padding: 0 14px 14px;
  }
  .docs-main {
    margin-top: 24px;
  }
  .tally {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 761px) {
  .docs-side > summary + .docs-side-body {
    display: block;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity 0.6s ease,
      transform 0.6s ease;
  }
  .reveal.is-shown {
    opacity: 1;
    transform: none;
  }

  .switch-thumb.is-ready {
    transition:
      transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
      width 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .chevron-icon {
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .example-trigger {
    transition: background 0.15s;
  }
  .example-panel {
    transition:
      opacity 0.18s ease,
      transform 0.18s ease,
      visibility 0.18s;
  }

  .is-shown .icon-tile .draw-line {
    animation: icon-draw 3.2s var(--icon-delay, 0s) infinite both;
  }
  .is-shown .icon-load .draw-line:nth-of-type(4) {
    animation-delay: calc(var(--icon-delay, 0s) + 0.25s);
  }
  .is-shown .icon-load .draw-line:nth-of-type(5) {
    animation-delay: calc(var(--icon-delay, 0s) + 0.5s);
  }
  .is-shown .icon-compare .draw-line {
    animation-delay: calc(var(--icon-delay, 0s) + 0.6s);
  }
  .is-shown .ask-arrow {
    animation: icon-nudge 1.6s var(--icon-delay, 0s) ease-in-out infinite;
  }
  .is-shown .ask-brace {
    animation: icon-pulse 1.6s var(--icon-delay, 0s) ease-in-out infinite;
  }
  .is-shown .compare-bar {
    animation: icon-slide-in 3.2s var(--icon-delay, 0s) ease-out infinite both;
  }
  .is-shown .gauge-needle {
    animation: icon-swing 2.8s var(--icon-delay, 0s) ease-in-out infinite;
  }
  .is-shown .push-arrow {
    animation: icon-push 1.8s var(--icon-delay, 0s) ease-in-out infinite;
  }
  .is-shown .fork-end {
    animation: icon-fill-blink 2s var(--icon-delay, 0s) steps(1) infinite;
  }
  .is-shown .fork-end.is-right {
    animation-delay: calc(var(--icon-delay, 0s) - 1s);
  }
  .is-shown .clash-left {
    animation: icon-clash-left 2s var(--icon-delay, 0s) ease-in infinite;
  }
  .is-shown .clash-right {
    animation: icon-clash-right 2s var(--icon-delay, 0s) ease-in infinite;
  }
  .is-shown .clash-spark {
    animation: icon-spark 2s var(--icon-delay, 0s) infinite;
  }
  .is-shown .order-top {
    animation: icon-swap-down 3.6s var(--icon-delay, 0s) ease-in-out infinite;
  }
  .is-shown .order-bottom {
    animation: icon-swap-up 3.6s var(--icon-delay, 0s) ease-in-out infinite;
  }
  .is-shown .wave-sway {
    animation: icon-sway 2.4s var(--icon-delay, 0s) ease-in-out infinite;
  }
  .is-shown .scheme-half {
    animation: icon-turn 4s var(--icon-delay, 0s) cubic-bezier(0.6, 0, 0.2, 1)
      infinite;
  }
  .is-shown .march-dash {
    animation: icon-march 1.2s linear infinite;
  }
  .is-shown .press-cursor {
    animation: icon-tap 1.8s var(--icon-delay, 0s) ease-out infinite;
  }
  .is-shown .press-ripple {
    animation: icon-ripple 1.8s var(--icon-delay, 0s) ease-out infinite;
  }
  .is-shown .block-drop {
    animation: icon-drop 2.4s var(--icon-delay, 0s)
      cubic-bezier(0.3, 1.4, 0.5, 1) infinite both;
  }
  .is-shown .layer-top {
    animation: icon-bob 2s var(--icon-delay, 0s) ease-in-out infinite;
  }
  .is-shown .slider-knob {
    animation: icon-slide-knob 2.4s var(--icon-delay, 0s) ease-in-out infinite
      alternate;
  }
  .is-shown .file-front {
    animation: icon-shuffle 2.4s var(--icon-delay, 0s) ease-in-out infinite;
  }

  @keyframes icon-draw {
    0% {
      stroke-dashoffset: 1;
      opacity: 1;
    }
    40%,
    85% {
      stroke-dashoffset: 0;
      opacity: 1;
    }
    100% {
      stroke-dashoffset: 0;
      opacity: 0;
    }
  }
  @keyframes icon-nudge {
    0%,
    100% {
      transform: translateX(-1.5px);
    }
    50% {
      transform: translateX(1.5px);
    }
  }
  @keyframes icon-pulse {
    0%,
    100% {
      opacity: 0.35;
    }
    50% {
      opacity: 1;
    }
  }
  @keyframes icon-slide-in {
    0% {
      transform: translateX(-4px);
      opacity: 0;
    }
    30%,
    85% {
      transform: none;
      opacity: 1;
    }
    100% {
      transform: none;
      opacity: 0;
    }
  }
  @keyframes icon-swing {
    0%,
    100% {
      transform: rotate(-75deg);
    }
    50% {
      transform: rotate(15deg);
    }
  }
  @keyframes icon-push {
    0%,
    100% {
      transform: translateX(-3px);
    }
    50% {
      transform: translateX(1px);
    }
  }
  @keyframes icon-fill-blink {
    0% {
      fill: currentColor;
    }
    50% {
      fill: transparent;
    }
  }
  @keyframes icon-clash-left {
    0%,
    100% {
      transform: translateX(-1px);
    }
    45% {
      transform: translateX(1.5px);
    }
    60% {
      transform: translateX(-0.5px);
    }
  }
  @keyframes icon-clash-right {
    0%,
    100% {
      transform: translateX(1px);
    }
    45% {
      transform: translateX(-1.5px);
    }
    60% {
      transform: translateX(0.5px);
    }
  }
  @keyframes icon-spark {
    0%,
    38%,
    75%,
    100% {
      opacity: 0;
    }
    48% {
      opacity: 1;
    }
  }
  @keyframes icon-swap-down {
    0%,
    15%,
    100% {
      transform: none;
    }
    35% {
      transform: translate(3px, 5px);
    }
    55%,
    70% {
      transform: translateY(10px);
    }
    85% {
      transform: translate(3px, 5px);
    }
  }
  @keyframes icon-swap-up {
    0%,
    15%,
    100% {
      transform: none;
    }
    35% {
      transform: translate(-3px, -5px);
    }
    55%,
    70% {
      transform: translateY(-10px);
    }
    85% {
      transform: translate(-3px, -5px);
    }
  }
  @keyframes icon-sway {
    0%,
    100% {
      transform: translateX(-1.5px);
    }
    50% {
      transform: translateX(1.5px);
    }
  }
  @keyframes icon-turn {
    0%,
    30% {
      transform: rotate(0deg);
    }
    50%,
    80% {
      transform: rotate(180deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  @keyframes icon-march {
    to {
      stroke-dashoffset: -9;
    }
  }
  @keyframes icon-tap {
    0% {
      transform: translate(2px, 2px);
    }
    20% {
      transform: none;
    }
    32% {
      transform: translate(1px, 1px);
    }
    100% {
      transform: translate(2px, 2px);
    }
  }
  @keyframes icon-ripple {
    0%,
    18% {
      opacity: 0;
      transform: scale(0.3);
    }
    22% {
      opacity: 0.9;
      transform: scale(0.3);
    }
    65%,
    100% {
      opacity: 0;
      transform: scale(1.8);
    }
  }
  @keyframes icon-drop {
    0% {
      transform: translateY(-5px);
      opacity: 0;
    }
    30%,
    85% {
      transform: none;
      opacity: 1;
    }
    100% {
      transform: none;
      opacity: 0;
    }
  }
  @keyframes icon-bob {
    0%,
    100% {
      transform: none;
    }
    50% {
      transform: translateY(-1.5px);
    }
  }
  @keyframes icon-slide-knob {
    from {
      transform: none;
    }
    to {
      transform: translateX(6px);
    }
  }
  @keyframes icon-shuffle {
    0%,
    100% {
      transform: none;
    }
    50% {
      transform: translate(1px, -1px);
    }
  }
}
