/* Breakra brand: ink #0D0C0A · off-white #F4EFE1 · white. Fonts: Geist, Geist Mono (OFL, self-hosted). */
@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #0d0c0a;
  --card: #14130f;
  --paper: #f4efe1;
  --white: #ffffff;
  --muted: rgba(244, 239, 225, 0.62);
  --faint: rgba(244, 239, 225, 0.38);
  --line: rgba(244, 239, 225, 0.14);
  --line-strong: rgba(244, 239, 225, 0.32);
  --sans: "Geist", "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ink);
  background-image:
    linear-gradient(var(--ink), transparent 60%),
    linear-gradient(to right, rgba(244, 239, 225, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 239, 225, 0.035) 1px, transparent 1px);
  background-size:
    100% 100%,
    40px 40px,
    40px 40px;
  color: var(--paper);
  font: 16px / 1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--paper);
  text-decoration-color: var(--faint);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--white);
  text-decoration-color: var(--paper);
}
:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 3px;
  border-radius: 4px;
}
code,
pre {
  font-family: var(--mono);
}
code {
  font-size: 0.92em;
}
.mono {
  font-family: var(--mono);
  font-size: 13px;
}
.muted {
  color: var(--muted);
}

.wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--paper);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 6px;
}
.skip:focus {
  left: 8px;
}

/* Header and footer */
.header,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.header {
  padding-top: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.header nav,
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.header nav a,
.footer nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 15px;
}
.header nav a:hover,
.footer nav a:hover {
  color: var(--white);
}
.wordmark {
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--paper);
}
.wordmark.small {
  font-size: 18px;
}

/* Hero */
.hero {
  padding-top: 72px;
  padding-bottom: 40px;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin: 0 0 28px;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 4px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 0 0 3px rgba(244, 239, 225, 0.15);
}
h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 20px;
  max-width: 14em;
}
.lede {
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--muted);
  max-width: 36em;
  margin: 0 0 32px;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.btn:hover {
  border-color: var(--paper);
  background: rgba(244, 239, 225, 0.06);
}
.btn-solid {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn-solid:hover {
  background: var(--white);
  color: var(--ink);
}

.endpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.endpoint code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 13px;
  color: var(--paper);
  scrollbar-width: thin;
}
.verb {
  font-weight: 700;
  margin-right: 6px;
}
.copy {
  flex: none;
  font: 600 13px var(--sans);
  color: var(--paper);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s;
}
.copy:hover {
  border-color: var(--paper);
  background: rgba(244, 239, 225, 0.06);
}
.copy[data-state="done"] {
  background: var(--paper);
  color: var(--ink);
}

/* Sections */
section {
  padding-top: 40px;
  padding-bottom: 40px;
}
.label {
  font: 600 12px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 20px;
}

.panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.panel {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  min-width: 0;
}
.panel figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font: 12px var(--mono);
}
.panel pre {
  margin: 0;
  padding: 16px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}
.k {
  color: var(--paper);
}
.s {
  color: var(--muted);
}
.v {
  color: var(--white);
  font-weight: 600;
}
.c {
  color: var(--faint);
}

.note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 18px 0 24px;
  font-size: 14px;
}
.pill {
  font: 700 11px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--paper);
}
.pill-solid {
  background: var(--paper);
  color: var(--ink);
}
.pill-dim {
  border-color: var(--line-strong);
  color: var(--muted);
}
.try code {
  font-size: 12.5px;
}
.hint {
  font-size: 14px;
  margin: 12px 0 0;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.steps li {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(20, 19, 15, 0.6);
}
.num {
  font: 600 12px var(--mono);
  color: var(--faint);
}
.steps h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 10px 0 6px;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.details {
  margin: 0;
  border-top: 1px solid var(--line);
}
.details div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.details dt {
  font: 600 13px var(--mono);
  color: var(--faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-top: 2px;
}
.details dd {
  margin: 0;
}

.footer {
  padding-top: 40px;
  padding-bottom: 40px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.built-by {
  margin: 0 auto;
  padding-top: 20px;
  padding-bottom: 32px;
  border-top: 1px solid var(--line);
  text-align: left;
  color: var(--muted);
  font-size: 14px;
}
.wrap.built-by a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.wrap.built-by a:hover {
  color: var(--white);
}

@media (max-width: 760px) {
  .panels,
  .steps {
    grid-template-columns: 1fr;
  }
  .panel pre {
    white-space: pre;
    word-break: normal;
    font-size: 12px;
  }
  .hero {
    padding-top: 48px;
  }
  .details div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn,
  .copy {
    transition: none;
  }
}

/* ---------- Website v2 (part 1): header, menus, sections, footer, light theme ---------- */
:root[data-theme="light"] {
  --ink: #f4efe1;
  --card: #fbf8f0;
  --paper: #0d0c0a;
  --white: #000000;
  --muted: rgba(13, 12, 10, 0.66);
  --faint: rgba(13, 12, 10, 0.4);
  --line: rgba(13, 12, 10, 0.14);
  --line-strong: rgba(13, 12, 10, 0.32);
  color-scheme: light;
}
:root[data-theme="light"] body {
  background-image:
    linear-gradient(var(--ink), transparent 60%),
    linear-gradient(to right, rgba(13, 12, 10, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 12, 10, 0.04) 1px, transparent 1px);
}
.wrap-wide {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
section.wrap {
  margin-top: 32px;
}
.panel figcaption {
  flex-wrap: wrap;
}
section.hero {
  margin-top: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-link,
.menu > summary {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
}
.nav-link:hover,
.menu > summary:hover,
.menu[open] > summary {
  color: var(--paper);
  background: var(--line);
}
.menu {
  position: relative;
}
.menu > summary {
  list-style: none;
}
.menu > summary::-webkit-details-marker,
.mobile-nav > summary::-webkit-details-marker,
.faq summary::-webkit-details-marker {
  display: none;
}
.menu > summary::after {
  content: " ▾";
  font-size: 11px;
}
.menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 380px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}
.menu-right .menu-panel {
  left: auto;
  right: 0;
}
.mi {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
}
.mi:hover {
  background: var(--line);
}
.mi-icon {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--paper);
}
.mi-text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}
.mi-title {
  font-size: 14px;
  font-weight: 550;
  color: var(--paper);
}
.mi-desc {
  font-size: 13px;
  color: var(--muted);
}
.tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: 6px;
  color: var(--muted);
  font-weight: 400;
}
.btn-sm {
  padding: 7px 14px;
  font-size: 14px;
}
.theme {
  background: none;
  border: 1px solid var(--line);
  color: var(--paper);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 16px;
}
.theme:hover {
  border-color: var(--line-strong);
}
.mobile-nav {
  display: none;
}
.mobile-nav > summary {
  list-style: none;
  cursor: pointer;
  font-size: 20px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.mobile-panel {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow-y: auto;
  padding: 8px 16px 32px;
  background: var(--ink);
  border-top: 1px solid var(--line);
}
.mobile-h {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin: 20px 10px 4px;
}

/* Hero */
.copies {
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin: 28px 0 24px;
}
.copybox {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 16px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  min-width: 0;
}
.copybox code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
}
.copybox .p {
  color: var(--faint);
}
.cb-label {
  flex: none;
  font-size: 13px;
  color: var(--muted);
}
.works {
  font-size: 14px;
}

/* Demo */
.demo {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
}
.demo-tabs {
  display: flex;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.demo-tabs button {
  flex: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font: 14px var(--sans);
  padding: 12px 16px;
  cursor: pointer;
}
.demo-tabs button:hover {
  color: var(--paper);
}
.demo-tabs button[aria-selected="true"] {
  color: var(--paper);
  border-bottom-color: var(--paper);
}
.demo-pane {
  padding: 20px;
}
.demo-change {
  margin-bottom: 14px;
}
.demo-k {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin-right: 10px;
}
.demo-out {
  font-family: var(--mono);
  font-size: 13.5px;
  border-left: 2px solid var(--line-strong);
  padding-left: 16px;
}
.demo-out ul {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}
.demo-out li {
  margin: 10px 0;
}
.demo-verdict,
.demo-id {
  margin: 0;
}
.fix {
  color: var(--muted);
}
.verdict,
.sev {
  font-family: var(--mono);
  font-size: 12px;
  border-radius: 4px;
  padding: 1px 7px;
  border: 1px solid var(--line-strong);
}
.verdict-block,
.sev-breaking {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.verdict-review,
.sev-potentially_breaking,
.sev-unknown {
  border-style: dashed;
}
.verdict-safe,
.sev-safe {
  color: var(--muted);
}

/* Cards and grids */
.cols-2,
.cols-3,
.cols-4 {
  display: grid;
  gap: 16px;
}
.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.cols-4 {
  grid-template-columns: repeat(2, 1fr);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.card p {
  margin: 0 0 8px;
}
.card-dim {
  opacity: 0.8;
}
.card-k {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
}
.card-t {
  font-weight: 600;
}
.flow {
  margin: 10px 0 0;
  padding-left: 20px;
}
.flow li {
  margin: 6px 0;
}
.flow .bad,
.flow .good {
  font-weight: 600;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.card .stat {
  font-family: var(--mono);
  font-size: 30px;
  margin: 0;
}
.facts,
.listed {
  font-size: 14px;
}
.card .listed {
  margin-top: 12px;
}
.panels.one {
  grid-template-columns: 1fr;
  margin-top: 20px;
}
.break {
  word-break: break-all;
}
.amount {
  font-family: var(--mono);
  font-size: 26px;
}
.amount .muted {
  font-size: 14px;
}

/* FAQ */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 550;
}
.faq summary::before {
  content: "+ ";
  font-family: var(--mono);
  color: var(--faint);
}
.faq details[open] summary::before {
  content: "− ";
}
.faq p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Footer */
.site-footer {
  margin-top: 112px;
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 24px;
}
.footer-grid nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-grid nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}
.footer-grid nav a:hover {
  color: var(--paper);
}
.fh {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  margin: 0 0 4px;
}
.footer-brand p {
  margin: 8px 0 0;
  font-size: 14px;
}
.footer-listed {
  margin-top: 36px;
  font-size: 14px;
}
.footer-listed a {
  color: var(--muted);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.footer-bottom p {
  margin: 0;
}
.footer-bottom a {
  color: var(--muted);
}

@media (min-width: 900px) {
  .cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 860px) {
  .nav,
  .header-actions .gh,
  .header-actions .btn-sm {
    display: none;
  }
  .header-row {
    justify-content: space-between;
  }
  .mobile-nav {
    display: block;
  }
  .cols-2,
  .cols-3,
  .stats {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .wrap-wide {
    padding: 0 16px;
  }
  .cols-4 {
    grid-template-columns: 1fr;
  }
  .copybox {
    flex-wrap: wrap;
  }
  .copybox code {
    white-space: normal;
  }
  .cb-label {
    width: 100%;
  }
  section.wrap {
    margin-top: 16px;
  }
}

/* ---------- Website v2 (part 2): inner pages ---------- */
.page-hero {
  padding-top: 64px;
  padding-bottom: 8px;
}
.page-hero h1 {
  margin: 0 0 16px;
}
.small {
  font-size: 14px;
}
.list {
  padding-left: 20px;
  margin: 0;
}
.list li {
  margin: 10px 0;
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  margin-bottom: 12px;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table-wrap th,
.table-wrap td {
  text-align: left;
  vertical-align: top;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.table-wrap thead th {
  font: 600 12px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.table-wrap tbody tr:last-child > * {
  border-bottom: 0;
}
.table-wrap tbody th {
  font-weight: 550;
}
.compare td {
  width: 38%;
}
section.wrap > .stats {
  margin-bottom: 32px;
}
@media (max-width: 520px) {
  .table-wrap table {
    min-width: 640px;
  }
  .table-wrap .compare {
    min-width: 0;
  }
}
.wrap.wide {
  max-width: 1200px;
}

/* ---------- Website v2 (part 2b): logo, brand kit, blog ---------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--paper);
}
.logo {
  display: block;
  height: 22px;
  width: auto;
}
.footer-brand .logo {
  height: 26px;
}
.brand-tile {
  display: grid;
  place-items: center;
  min-height: 180px;
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.brand-tile img {
  width: 80%;
  max-width: 360px;
  height: auto;
}
.brand-tile .brand-mark {
  width: 30%;
  max-width: 110px;
}
.brand-dark {
  background: #0d0c0a;
}
.brand-light {
  background: #f4efe1;
}
section.wrap .cols-2 + .table-wrap {
  margin-top: 16px;
}
.swatch .sw {
  display: block;
  height: 72px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  margin-bottom: 10px;
}
.swatch p {
  margin: 0;
}
.sw-ink {
  background: #0d0c0a;
}
.sw-paper {
  background: #f4efe1;
}
.sw-white {
  background: #ffffff;
}
.copybox-text {
  align-items: flex-start;
  max-width: none;
}
.copybox-text span {
  flex: 1;
  font-size: 15px;
}
.posts {
  margin-top: 40px;
}
.post {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.post h3 {
  margin: 4px 0 8px;
  font-size: 22px;
  line-height: 1.3;
}
.post p {
  margin: 0 0 8px;
}
.price .list {
  margin: 4px 0 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Positioning subline under the homepage headline (D-043) */
.subline {
  margin: 18px 0 0;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 550;
  letter-spacing: -0.02em;
  color: var(--paper);
}
.hero .subline + .lede {
  margin-top: 18px;
}

/* ---------- Motion and works-with (D-044) ----------
   CSS-only where possible; JS adds html.js (boot.js) so hidden-until-revealed states never apply without JS.
   Everything below is disabled under prefers-reduced-motion. */
@keyframes rise-in {
  from {
    transform: translateY(105%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes lift-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pop-in {
  0% {
    transform: scale(0.7);
  }
  60% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

/* Hero intro: masked headline lines, then the rest in sequence */
#title .ln {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
#title .ln > span {
  display: inline-block;
  animation: rise-in 0.9s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}
#title .ln:nth-child(2) > span {
  animation-delay: 0.12s;
}
.hero .meta,
.hero .subline,
.hero .lede,
.hero .copies,
.hero .ctas,
.hero .works {
  animation: lift-in 0.7s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}
.hero .meta {
  animation-delay: 0s;
}
.hero .subline {
  animation-delay: 0.35s;
}
.hero .lede {
  animation-delay: 0.45s;
}
.hero .copies {
  animation-delay: 0.55s;
}
.hero .ctas {
  animation-delay: 0.65s;
}
.hero .works {
  animation-delay: 0.8s;
}

/* Works-with marquee */
.works {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 100%;
}
.works-label {
  flex: none;
  margin: 0;
  font: 600 12px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.marquee {
  display: flex;
  overflow: hidden;
  min-width: 0;
  flex: 1;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  flex: none;
  gap: 34px;
  margin: 0;
  padding: 6px 17px;
  list-style: none;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track li {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  font-size: 15px;
  color: var(--muted);
}
.marquee-track img {
  display: block;
  height: 18px;
  width: auto;
  opacity: 0.9;
}
.marquee-track img.wordmark-x402 {
  height: 12px;
}
.marquee-track img.mono {
  filter: grayscale(1) contrast(1.3) brightness(1.4);
  border-radius: 4px;
}
:root[data-theme="light"] .marquee-track img:not(.mono) {
  filter: invert(1);
}

/* Tabs (Get started, For AI agents) */
.tabbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.tabbar button {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  color: var(--muted);
  font: 500 15px var(--sans);
  padding: 10px 14px;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.tabbar button:hover {
  color: var(--paper);
}
.tabbar button[aria-selected="true"] {
  color: var(--paper);
  border-bottom-color: var(--paper);
}
.tabpane:not([hidden]) {
  animation: lift-in 0.35s ease both;
}
.tabpane .panel {
  margin: 0;
}

/* Demo: autoplay progress, verdict pop, findings in sequence */
.demo-tabs {
  position: relative;
}
.demo-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--paper);
  opacity: 0.5;
}
.demo-pane:not([hidden]) .verdict {
  display: inline-block;
  animation: pop-in 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) both 0.1s;
}
.demo-pane:not([hidden]) .demo-out li {
  animation: lift-in 0.4s ease both;
}
.demo-pane:not([hidden]) .demo-out li:nth-child(1) {
  animation-delay: 0.25s;
}
.demo-pane:not([hidden]) .demo-out li:nth-child(2) {
  animation-delay: 0.4s;
}

/* Scroll reveals (JS adds .in); children of grids stagger */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}
.js .cols-2[data-reveal],
.js .cols-3[data-reveal],
.js .cols-4[data-reveal] {
  opacity: 1;
  transform: none;
}
.js .cols-2[data-reveal] > *,
.js .cols-3[data-reveal] > *,
.js .cols-4[data-reveal] > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.9, 0.25, 1),
    border-color 0.2s;
}
.js [data-reveal].in > * {
  opacity: 1;
  transform: none;
}
.js [data-reveal].in > :nth-child(2) {
  transition-delay: 0.08s;
}
.js [data-reveal].in > :nth-child(3) {
  transition-delay: 0.16s;
}
.js [data-reveal].in > :nth-child(4) {
  transition-delay: 0.24s;
}
/* Before/after steps land one by one */
.js .cols-2[data-reveal].in .flow li {
  animation: lift-in 0.45s ease both;
}
.js .cols-2[data-reveal].in .flow li:nth-child(2) {
  animation-delay: 0.25s;
}
.js .cols-2[data-reveal].in .flow li:nth-child(3) {
  animation-delay: 0.5s;
}
.js .cols-2[data-reveal].in .flow li:nth-child(4) {
  animation-delay: 0.8s;
}

/* Cards lift on hover */
.card {
  transition:
    transform 0.25s ease,
    border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

/* FAQ answers open smoothly */
.faq details[open] p {
  animation: lift-in 0.3s ease both;
}

@media (max-width: 520px) {
  .works {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .marquee {
    width: 100%;
  }
  .tabbar button {
    padding: 9px 10px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
  }
  .marquee-track {
    animation: none;
  }
  .marquee-track[aria-hidden="true"] {
    display: none;
  }
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .marquee-track {
    flex-wrap: wrap;
    gap: 14px 28px;
  }
  .js [data-reveal],
  .js [data-reveal] > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Products and Orric (D-045) ---------- */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 3px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font: 600 12px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper);
}
.sdot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--paper);
  background: var(--paper);
}
.status-preview .sdot {
  background: linear-gradient(90deg, var(--paper) 50%, transparent 50%);
}
.product .card-t {
  font-size: 22px;
  margin: 0;
}
.product-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.mascot-sm {
  width: 34px;
  height: 34px;
  flex: none;
}
.mascot-sm path,
.mascot-sm circle,
.mascot path,
.mascot circle {
  transition: fill 0.2s;
}
:root[data-theme="light"] .mascot [fill="#F4EFE1"],
:root[data-theme="light"] .mascot-sm [fill="#F4EFE1"] {
  fill: #0d0c0a;
}
:root[data-theme="light"] .mascot [fill="#0D0C0A"],
:root[data-theme="light"] .mascot-sm [fill="#0D0C0A"] {
  fill: #f4efe1;
}
.orric-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.orric-hero .lede {
  max-width: 640px;
}
.mascot {
  width: 128px;
  height: 128px;
  margin-bottom: 22px;
  animation: lift-in 0.8s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}
.mascot .eye {
  transform-box: fill-box;
  transform-origin: center;
  animation: blink 0.32s ease-in-out 1.3s 1 both;
}
@keyframes blink {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.1);
  }
}
.orric-hero .status {
  animation: lift-in 0.6s ease both 0.2s;
}
.orric-hero h1 {
  animation: lift-in 0.7s cubic-bezier(0.2, 0.9, 0.25, 1) both 0.3s;
}
.orric-hero .subline {
  animation: lift-in 0.7s ease both 0.42s;
}
.orric-hero .lede {
  animation: lift-in 0.7s ease both 0.52s;
}
.statement {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  max-width: 820px;
  margin: 0;
}
.steps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.steps-list li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.steps-list .num {
  color: var(--faint);
}
.steps-list p {
  margin: 0 0 6px;
}
.relation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}
.rel-node {
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
}
.rel-node p {
  margin: 0 0 6px;
}
.rel-arrow {
  font-size: 34px;
  color: var(--muted);
}
.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
}
@media (max-width: 860px) {
  .steps-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .steps-list {
    grid-template-columns: 1fr;
  }
  .relation {
    grid-template-columns: 1fr;
  }
  .rel-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mascot,
  .mascot .eye {
    animation: none;
  }
}

/* ---------- Status page (D-046) ---------- */
.status.inline {
  margin: 0 0 0 10px;
  vertical-align: middle;
  font-size: 11px;
  padding: 1px 9px;
}
.status-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
}
.status-banner .btn {
  margin-left: auto;
  background: transparent;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}
.status-banner .btn:disabled {
  opacity: 0.5;
  cursor: progress;
}
.st-list:empty {
  display: none;
}
.st-overall {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-weight: 650;
  font-size: 20px;
}
.status-banner p.small {
  margin: 0;
  flex-basis: 100%;
  order: 3;
}
.status-banner[data-state="partial"] .sdot,
.status-banner[data-state="down"] .sdot,
.st-row[data-state="down"] .sdot {
  background: #ff3b30;
  border-color: #ff3b30;
}
.status-banner[data-state="stale"] .sdot,
.st-row[data-state="slow"] .sdot {
  background: linear-gradient(90deg, var(--paper) 50%, transparent 50%);
}
.st-list {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
}
.st-row {
  display: grid;
  grid-template-columns: 1fr 140px 80px 170px;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.st-row:last-child {
  border-bottom: 0;
}
.st-row p {
  margin: 0;
}
.st-name {
  font-weight: 600;
}
.st-word {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.st-ms,
.st-up {
  text-align: right;
}
.bar-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 14px;
  margin: 8px 0;
}
.bar-row p {
  margin: 0;
}
.cells {
  display: grid;
  grid-template-columns: repeat(90, 1fr);
  gap: 2px;
  height: 22px;
}
.cell {
  border-radius: 2px;
  background: var(--line);
}
.cell.ok {
  background: var(--paper);
}
.cell.partial {
  background: var(--muted);
}
.cell.down {
  background: #ff3b30;
}
.st-recent {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
}
.st-recent li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}
.status-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.status-link .sdot {
  width: 7px;
  height: 7px;
}
@media (max-width: 860px) {
  .st-row {
    grid-template-columns: 1fr auto;
  }
  .st-ms,
  .st-up {
    text-align: left;
  }
  .bar-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
