@font-face {
  font-family: Plex;
  src: url("/assets/fonts/plex-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: PlexMono;
  src: url("/assets/fonts/plex-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  --bg: #0b0f14;
  --surface: #11161d;
  --raised: #161d26;
  --ink: #e6edf3;
  --muted: #a2afbe;
  --line: #35434e;
  --soft: #202b35;
  --mint: #00e5b5;
  --sans: Plex, Arial, sans-serif;
  --mono: PlexMono, monospace;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 5px;
}
a:hover {
  color: var(--mint);
}
button {
  color: inherit;
}
p,
h1,
h2,
h3,
figure {
  margin: 0;
}
svg {
  display: block;
}
code,
pre {
  font-family: var(--mono);
}
::selection {
  color: var(--bg);
  background: var(--mint);
}
[hidden] {
  display: none !important;
}
.shell {
  width: calc(100% - 96px);
  max-width: 1040px;
  margin-inline: auto;
}
.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  background: var(--mint);
  color: var(--bg);
  padding: 12px 18px;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
  border: 0;
}
.mono {
  font-family: var(--mono);
}
.mint {
  color: var(--mint);
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  border: 1px solid var(--mint);
  border-radius: 3px;
  background: var(--mint);
  padding: 11px 20px;
  color: #061a13;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition:
    background 0.18s,
    color 0.18s;
}
.button:hover {
  background: #7bf4da;
  color: #061a13;
}
.button.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}
.button.secondary:hover {
  border-color: var(--mint);
  color: var(--mint);
}
.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.install {
  display: grid;
  grid-template-columns: 49px 1fr auto;
  border: 1px solid #658480;
  margin: 14px 0 18px;
  min-height: 48px;
  align-items: stretch;
}
.install .prompt {
  font: 23px var(--mono);
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--ink);
}
.install code {
  align-self: center;
  padding: 10px 24px;
  font-size: 15px;
  letter-spacing: 0.4px;
  color: var(--mint);
}
.copy-button {
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--muted);
  padding: 9px 16px;
  font: 10px var(--mono);
  min-width: 82px;
}
.copy-button:hover,
.copy-button.is-copied {
  color: var(--mint);
}
.copy-button svg {
  width: 15px;
  height: 15px;
}
.code-workbench {
  background: #0d141b;
  border: 1px solid var(--line);
  border-radius: 3px;
  min-width: 0;
}
.code-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 0;
}
.code-tab {
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid transparent;
  background: transparent;
  padding: 14px 21px;
  font: 12px var(--mono);
  color: var(--muted);
  min-height: 45px;
}
.code-tab[aria-selected="true"] {
  border-bottom-color: var(--mint);
  color: var(--ink);
  background: var(--surface);
}
.code-tab:focus-visible {
  outline-offset: -4px;
}
.code-version {
  margin-left: auto;
  padding-right: 17px;
  font: 10px var(--mono);
  color: var(--muted);
}
.code-panel {
  position: relative;
}
.code-panel .copy-button {
  position: absolute;
  right: 8px;
  top: 8px;
  background: #0d141b;
  border: 1px solid var(--soft);
  border-radius: 3px;
  min-width: 70px;
  padding: 7px 9px;
}
.code-panel pre {
  margin: 0;
  padding: 25px 22px 22px;
  overflow: auto;
  font-size: 11px;
  line-height: 1.8;
  white-space: pre;
  tab-size: 2;
  max-width: 100%;
}
.code-panel pre code {
  font: inherit;
}
.syntax-comment {
  color: #8498a9;
}
.syntax-string {
  color: var(--mint);
}
.syntax-keyword {
  color: #c6d2e1;
}
.code-panel .code-caption {
  border-top: 1px solid var(--soft);
  padding: 12px 24px;
  font: 10px/1.7 var(--mono);
  color: var(--muted);
}
.faq {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr;
  gap: 48px;
}
.faq h2 {
  font-size: 37px;
  line-height: 1.12;
  letter-spacing: -1.4px;
  font-weight: 500;
  margin-top: 15px;
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.faq details:first-child {
  border-top: 1px solid var(--line);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-size: 15px;
  padding-right: 28px;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary:after {
  content: "+";
  position: absolute;
  right: 0;
  font: 18px var(--mono);
  color: var(--mint);
}
.faq details[open] summary:after {
  content: "−";
}
.faq details p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  margin: 16px 0 3px;
  max-width: 620px;
}
.faq details a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Documentation uses the same field-guide rhythm and identity. */
.docs-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 40px;
  padding: 34px 0 44px;
}
.docs-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
}
.docs-sidebar a {
  display: block;
  font: 12px var(--mono);
  padding: 9px 0;
  color: var(--muted);
}
.docs-sidebar a:hover {
  color: var(--mint);
}
.docs-content {
  max-width: 930px;
  min-width: 0;
}
.docs-intro {
  padding: 0 0 36px;
  border-bottom: 1px solid var(--line);
}
.docs-intro h1 {
  font-size: 50px;
  line-height: 1.05;
  letter-spacing: -2.5px;
  font-weight: 600;
  margin: 15px 0 21px;
}
.docs-intro p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 680px;
}
.docs-section {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.docs-section h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.7px;
  margin: 0 0 18px;
}
.docs-section h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 22px 0 11px;
}
.docs-section p,
.docs-section li {
  font-size: 14px;
  line-height: 1.9;
  color: var(--muted);
}
.docs-section p + p {
  margin-top: 12px;
}
.docs-section ul,
.docs-section ol {
  padding-left: 22px;
}
.docs-section a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.docs-section p code,
.docs-section li code {
  font-size: 11px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.docs-section .code-workbench {
  margin: 22px 0;
}
.docs-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  margin: 20px 0;
}
.docs-table td,
.docs-table th {
  border-top: 1px solid var(--line);
  padding: 14px 12px;
  text-align: left;
  vertical-align: top;
}
.docs-table th {
  font: 10px var(--mono);
  text-transform: uppercase;
  color: var(--muted);
}
.docs-table td {
  color: var(--muted);
  line-height: 1.7;
}
.docs-table td:first-child {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.docs-callout {
  border-left: 2px solid var(--mint);
  background: #0e1b1a;
  padding: 17px 20px;
  margin: 22px 0;
  font-size: 13px;
  color: #cadbd6;
  line-height: 1.8;
}
.docs-callout strong {
  font-weight: 600;
}
.docs-section .install {
  margin: 20px 0;
}
.docs-section .install code {
  font-size: 14px;
}
@media (max-width: 1250px) {
  .shell {
    width: calc(100% - 96px);
  }
  .docs-layout {
    gap: 40px;
    grid-template-columns: 180px minmax(0, 1fr);
  }
  .code-panel pre {
    font-size: 10px;
  }
}
@media (max-width: 1000px) {
  .faq {
    gap: 35px;
  }
  .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 24px;
  }
  .docs-sidebar a {
    padding: 4px 0;
    font-size: 11px;
  }
  .docs-intro h1 {
    font-size: 48px;
  }
}
@media (max-width: 740px) {
  .shell {
    width: calc(100% - 36px);
  }
  .install {
    grid-template-columns: 31px 1fr auto;
    min-height: 45px;
    margin: 18px 0 24px;
  }
  .install code {
    font-size: 12px;
    letter-spacing: 0;
    padding: 11px 10px;
  }
  .install .prompt {
    font-size: 18px;
  }
  .copy-button {
    min-width: 54px;
    padding: 9px 10px;
    font-size: 9px;
    gap: 6px;
  }
  .copy-button svg {
    width: 12px;
    height: 12px;
  }
  .code-tab {
    font-size: 10px;
    padding: 13px 14px;
  }
  .code-version {
    font-size: 9px;
    padding-right: 10px;
  }
  .code-panel pre {
    font-size: 10px;
    padding: 42px 17px 19px;
  }
  .code-panel .code-caption {
    font-size: 9px;
    padding: 11px 17px;
  }
  .faq {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .faq h2 {
    font-size: 30px;
  }
  .faq details p {
    font-size: 13px;
  }
  .faq summary {
    font-size: 14px;
  }
  .docs-layout {
    padding-top: 27px;
    gap: 27px;
  }
  .docs-sidebar {
    gap: 8px 17px;
    padding-bottom: 20px;
  }
  .docs-intro {
    padding-bottom: 27px;
  }
  .docs-intro h1 {
    font-size: 43px;
    letter-spacing: -1.8px;
    margin-top: 12px;
  }
  .docs-intro p {
    font-size: 15px;
  }
  .docs-section {
    padding: 28px 0;
  }
  .docs-section h2 {
    font-size: 25px;
  }
  .docs-section p,
  .docs-section li {
    font-size: 13px;
  }
  .docs-table td,
  .docs-table th {
    padding: 12px 7px;
  }
  .docs-table td {
    font-size: 12px;
  }
  .docs-table td:first-child {
    font-size: 10px;
  }
  .docs-callout {
    padding: 14px 16px;
    font-size: 12px;
  }
  .docs-section .install code {
    font-size: 11px;
  }
  .docs-section .install {
    margin-bottom: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

/* Homepage and shared navigation */
.home,
.home-header,
.beam-footer {
  --bg: #080f12;
  --surface: #0e181c;
  --raised: #142126;
  --ink: #f0f3ed;
  --muted: #a9bab9;
  --line: #2b3d42;
  --soft: #1c2b30;
  --mint: #78f1cb;
  --serif: Georgia, "Times New Roman", serif;
  --ease-out: cubic-bezier(.2, .65, .28, 1);
}

.home-shell {
  width: min(1200px, calc(100% - 112px));
  margin-inline: auto;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(8 15 18 / 94%);
  backdrop-filter: blur(14px);
}

.beam-footer {
  background: var(--bg);
  color: var(--ink);
}

.home-header-inner,
.beam-footer > .home-shell {
  max-width: 1104px;
}

.home-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: 64px;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
}

.home-header .brand,
.beam-footer .brand {
  width: fit-content;
  min-height: 44px;
}

.home-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}

.home-nav a,
.home-source,
.home-social,
.home-start {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  white-space: nowrap;
}

.home-nav a {
  color: var(--muted);
  font: italic 16px/1.25 var(--serif);
  transition: color 180ms;
}

.home-nav a:hover,
.home-source:hover,
.home-social:hover {
  color: var(--mint);
}

.home-header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  margin-left: auto;
}

.home-source {
  gap: 7px;
  padding-inline: 4px;
  color: var(--muted);
  font-size: 13px;
  transition: color 180ms;
}

.home-social {
  width: 44px;
  justify-content: center;
  border-radius: 4px;
}

.home-social:hover {
  background: var(--surface);
}

.home-start > span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding-inline: 13px;
  border-radius: 3px;
  background: var(--mint);
  color: var(--bg);
  font: 650 12px/1.25 var(--sans);
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: background 180ms;
}

.home-start:hover > span {
  background: var(--ink);
}

.home-menu,
.home-nav .home-nav-github {
  display: none;
}

.beam-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #091216;
}

.beam-hero-inner {
  position: relative;
  display: grid;
  grid-template-rows: 1fr;
  justify-items: center;
  align-items: center;
  min-height: clamp(580px, 90svh, 765px);
  padding-block: clamp(24px, 4svh, 36px);
}

.beam-hero-copy {
  max-width: 100%;
  text-align: center;
}

.beam-art {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 44%, #112927, transparent 74%),
    radial-gradient(circle, #294541 .65px, transparent .9px) 0 0 / 6px 6px;
  pointer-events: none;
}

.beam-art canvas {
  position: absolute;
  width: 100%;
  height: 100%;
}

.beam-art:after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(ellipse at 50% 47%, rgb(9 18 22 / 70%), transparent 62%),
    linear-gradient(0deg, var(--bg), transparent 22%, transparent 92%, var(--bg));
}

.beam-hero h1 {
  margin-bottom: 26px;
  font-size: clamp(56px, 7.6vw, 108px);
  font-weight: 630;
  line-height: .98;
  letter-spacing: -.072em;
}

.beam-hero h1 em,
.beam-section h2 em,
.beam-cta h2 em {
  color: var(--mint);
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.065em;
}

@supports (background-clip: text) {
  .has-js .beam-hero h1 em {
    background: linear-gradient(112deg, var(--mint) 24%, var(--ink) 50%, var(--mint) 76%);
    background-clip: text;
    background-size: 250% 100%;
    color: transparent;
    animation: beam-shimmer 8s linear infinite;
  }
}

@keyframes beam-shimmer {
  from { background-position: 100% 50%; }
  to { background-position: 0 50%; }
}

.beam-intro {
  max-width: 510px;
  margin-inline: auto;
  color: var(--muted);
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.55;
  text-wrap: balance;
}

.beam-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 33px;
}

.beam-button {
  display: inline-flex;
  min-height: 50px;
  justify-content: center;
  align-items: center;
  gap: 28px;
  padding: 10px 17px;
  border: 1px solid var(--mint);
  border-radius: 5px;
  background: var(--mint);
  color: var(--bg);
  font-size: 14px;
  font-weight: 650;
  transition: background 170ms, color 170ms, border-color 170ms;
}

.beam-button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
}

.beam-button.beam-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.beam-button.beam-secondary:hover {
  border-color: var(--mint);
  color: var(--mint);
}

.beam-motion-paused .beam-hero h1 em,
.beam-motion-paused .beam-cta h2 em {
  animation-play-state: paused;
}

html:has(.beam-motion-paused) {
  scroll-behavior: auto;
}

.has-js .beam-motion-paused .beam-hero-copy > * {
  animation: none;
}

.beam-chapters .home-shell {
  max-width: 1104px;
}

.beam-section {
  padding-block: clamp(66px, 8.5vw, 112px);
}

.beam-heading {
  margin-bottom: clamp(22px, 4vw, 43px);
}

.beam-heading h2 {
  color: var(--ink);
  font-size: clamp(34px, 4.15vw, 57px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -.057em;
  text-wrap: balance;
}

.beam-heading > p {
  max-width: 630px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.beam-comparison {
  background: radial-gradient(ellipse at 26% 32%, #0f2020, transparent 62%);
}

.beam-comparison .home-shell {
  display: grid;
  grid-template-columns: minmax(255px, .76fr) minmax(0, 1.7fr);
  align-items: start;
  gap: clamp(24px, 3vw, 38px);
}

.beam-comparison-heading {
  margin: 0;
  padding-top: 27px;
}

.beam-comparison-heading h2 {
  max-width: 9ch;
  font-size: clamp(40px, 5.05vw, 68px);
  letter-spacing: -.061em;
}

.beam-comparison-heading h2 em {
  display: block;
}

.beam-comparison-heading > p {
  max-width: 26ch;
  font-size: clamp(15px, 1.5vw, 17px);
}

.beam-flow {
  min-width: 0;
}

.beam-receipt-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  min-height: 96px;
  margin-bottom: 18px;
}

.beam-receipt-intro h3 {
  font-size: clamp(23px, 2.45vw, 33px);
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -.045em;
}

.beam-receipt-intro [data-flow-detail] p {
  margin-top: 10px;
  max-width: 54ch;
  color: var(--muted);
  font-size: 15px;
}

.beam-receipt-mode {
  margin-top: 5px;
  color: var(--muted);
  font: 11px/1.5 var(--mono);
}

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

.beam-receipt {
  min-width: 0;
  padding: 14px 17px 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: background 260ms, border-color 260ms;
}

.beam-flow[data-step="4"] .beam-receipt-recovered {
  border-color: #3a645b;
  background: #0e1c1d;
}

.beam-receipt-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 5px 9px;
  min-height: 23px;
  margin-bottom: 12px;
}

.beam-receipt-header h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 550;
}

.beam-receipt-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--mint);
  font: 10px/1.5 var(--mono);
}

.beam-receipt-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.beam-flow:not([data-step="4"]) [data-flow-recovery-status] {
  color: var(--muted);
}

.beam-receipt-body {
  min-height: calc(6 * 1.7em + 26px);
  padding: 13px 10px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--muted);
  font: 11px/1.7 var(--mono);
}

.beam-receipt-body pre {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font: inherit;
}

.beam-receipt-body b {
  color: var(--ink);
  font-weight: 400;
}

.beam-receipt-body em {
  color: var(--mint);
  font-style: normal;
}

.beam-receipt-match-slot {
  min-height: 44px;
  margin-top: 12px;
}

.beam-receipt-match {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
  border-radius: 5px;
  background: #132522;
  color: var(--mint);
  font: 12px/1.5 var(--mono);
  text-align: center;
}

.beam-receipt-match span {
  font-size: 15px;
}

.beam-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  margin-top: 24px;
}

.beam-steps button {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 4px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.beam-steps button span {
  font: 11px/1 var(--mono);
}

.beam-steps button:hover {
  background: var(--surface);
  color: var(--ink);
}

.beam-steps button[aria-pressed="true"] {
  background: var(--raised);
  color: var(--mint);
}

.beam-flow.is-playing [data-flow-detail],
.beam-flow.is-playing .beam-receipt-body > :not([hidden]),
.beam-flow.is-playing .beam-receipt-match {
  animation: beam-receipt-in 400ms var(--ease-out) both;
}

.beam-flow.is-playing .beam-receipt-recovered [data-flow-recovery] {
  animation-delay: 70ms;
}

.beam-flow.is-playing .beam-receipt-match {
  animation-delay: 120ms;
}

@keyframes beam-receipt-in {
  from { opacity: .45; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.beam-card-grid,
.beam-example {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.beam-card {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
  padding: clamp(20px, 2.8vw, 32px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.beam-card::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at 100% 0%, var(--card-glow), transparent 72%),
    radial-gradient(circle, #385950 .7px, transparent 1px) 0 0 / 6px 6px;
  mask-image: linear-gradient(135deg, transparent 34%, #000);
  opacity: .45;
  content: "";
  transition: opacity 300ms;
}

.beam-card:hover::before,
.beam-card:focus-within::before {
  opacity: .88;
}

.beam-card-merchant { --card-glow: #154032; }
.beam-card-buyer { --card-glow: #1d3441; }

.beam-card h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.beam-card p {
  max-width: 44ch;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.beam-card .beam-text-link {
  margin-top: 5px;
}

.beam-dev-grid {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 16px;
  margin-top: 16px;
}

.beam-dev-info {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  display: grid;
  align-content: center;
  gap: 25px;
  padding: clamp(20px, 3vw, 36px);
}

.beam-dev-info h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.beam-dev-info p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 15px;
}

.beam-install {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  column-gap: 8px;
  padding: 4px 9px 4px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--bg);
  color: var(--mint);
}

.beam-install code {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.beam-install button {
  min-height: 44px;
  padding-inline: 8px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
}

.beam-install button:hover,
.beam-install button.is-copied {
  color: var(--mint);
}

.beam-text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--mint);
  font-size: 14px;
}

.beam-text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.home .code-workbench {
  min-width: 0;
  border-radius: 10px;
}

.home .code-tab,
.home .code-panel .copy-button {
  min-height: 44px;
}

.home .code-panel pre {
  padding-top: 62px;
}

.beam-example-link {
  margin-top: 10px;
}

.beam-endpoint {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.beam-endpoint > p,
.beam-endpoint dl > div {
  padding: 13px 15px;
}

.beam-endpoint > p:first-child {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 13px;
  overflow-wrap: anywhere;
  border-bottom: 1px solid var(--line);
  background: var(--raised);
}

.beam-endpoint strong {
  color: var(--mint);
  font: 12px/1 var(--mono);
}

.beam-endpoint dl {
  margin: 0;
}

.beam-endpoint dl > div {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  justify-content: space-between;
  border-bottom: 1px solid var(--soft);
  font-size: 14px;
}

.beam-endpoint dt,
.beam-endpoint-note {
  color: var(--muted);
}

.beam-endpoint dd {
  margin: 0;
}

.beam-endpoint-note {
  font: 11px/1.5 var(--mono);
}

.beam-faq.faq {
  align-items: start;
  grid-template-columns: 1fr 1.3fr;
  padding-block: 0;
}

.beam-faq summary {
  min-height: 44px;
}

.beam-cta {
  background: radial-gradient(ellipse at center, #122922, transparent 70%);
  text-align: center;
}

.beam-cta h2 {
  max-width: 23ch;
  margin-inline: auto;
  font-size: clamp(36px, 5vw, 65px);
}

.beam-cta .beam-heading > p {
  margin-inline: auto;
}

.beam-cta .beam-actions {
  margin-top: 0;
}

@supports (background-clip: text) {
  .has-js .beam-cta .beam-entered h2 em {
    background: linear-gradient(112deg, var(--mint) 24%, var(--ink) 50%, var(--mint) 76%);
    background-clip: text;
    background-size: 250% 100%;
    color: transparent;
    animation-name: beam-shimmer;
    animation-duration: 8s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
  }
}

.beam-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 3fr);
  align-items: start;
  gap: 32px clamp(30px, 6vw, 80px);
  padding-block: clamp(36px, 5vw, 58px);
}

.beam-footer-brand p {
  max-width: 28ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.beam-footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 10px;
}

.beam-footer-links h2 {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
}

.beam-footer-links ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.beam-footer-links a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  transition: color 180ms;
}

.beam-footer-links a:hover {
  color: var(--mint);
}

.beam-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  padding-block: 18px;
  color: var(--muted);
  font: 11px/1.5 var(--mono);
}

.beam-footer-bottom small {
  font: inherit;
}

.has-js .beam-hero-copy > * {
  animation: beam-enter 700ms var(--ease-out) both;
}

.beam-hero-copy h1 { animation-delay: 80ms; }
.beam-hero-copy .beam-intro { animation-delay: 160ms; }
.beam-hero-copy .beam-actions { animation-delay: 235ms; }

.beam-reveal-ready:not(.beam-motion-paused) [data-reveal] {
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal="next"] {
  --reveal-delay: 90ms;
}

.beam-reveal-ready:not(.beam-motion-paused) [data-reveal]:not(.beam-entered, :focus-within) {
  opacity: .28;
  transform: translateY(14px);
}

.beam-reveal-ready:not(.beam-motion-paused) [data-reveal]:focus-within {
  transition: none;
}

@keyframes beam-enter {
  from { opacity: .2; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .home-shell {
    width: calc(100% - 64px);
  }

  .beam-comparison .home-shell {
    grid-template-columns: 1fr;
  }

  .beam-comparison-heading {
    padding-top: 0;
  }

  .beam-comparison-heading h2,
  .beam-comparison-heading > p {
    max-width: none;
  }

  .beam-comparison-heading h2 em {
    display: inline;
  }

  .beam-faq {
    gap: 18px 28px;
  }

  .beam-dev-grid {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  }
}

@media (max-width: 850px) {
  html:not(.has-js) .home-header {
    position: static;
  }

  .home-header-inner {
    display: flex;
    position: relative;
    min-height: 62px;
    flex-wrap: wrap;
    gap: 0 8px;
  }

  .has-js .home-header-inner {
    flex-wrap: nowrap;
  }

  .home-header-actions {
    gap: 4px;
  }

  .home-source {
    display: none;
  }

  .home-nav .home-nav-github {
    display: inline-flex;
    gap: 7px;
  }

  .has-js .home-menu {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--muted);
    transition: color 180ms, background 180ms;
  }

  .home-menu:hover,
  .home-menu[aria-expanded="true"] {
    color: var(--mint);
    background: var(--surface);
  }

  .home-menu-icon {
    position: relative;
    width: 16px;
    height: 16px;
  }

  .home-menu-icon::before,
  .home-menu-icon::after {
    position: absolute;
    inset: calc(50% - .5px) 0 auto;
    height: 1px;
    background: currentColor;
    content: "";
    transition: transform 180ms var(--ease-out);
  }

  .home-menu-icon::before { transform: translateY(-3px); }
  .home-menu-icon::after { transform: translateY(3px); }
  .home-menu[aria-expanded="true"] .home-menu-icon::before { transform: rotate(45deg); }
  .home-menu[aria-expanded="true"] .home-menu-icon::after { transform: rotate(-45deg); }

  .home-nav {
    order: 1;
    flex: 0 0 100%;
    flex-wrap: wrap;
    gap: 0 16px;
  }

  .has-js .home-nav {
    position: absolute;
    inset: calc(100% + 1px) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 6px 6px;
    background: var(--surface);
    box-shadow: 0 12px 24px rgb(0 0 0 / 28%);
  }

  .has-js .home-nav.is-open {
    display: flex;
    animation: home-menu-enter 160ms var(--ease-out) both;
  }

  .has-js .home-nav a {
    padding-inline: 9px;
  }

  .has-js .home-nav a:focus-visible {
    outline-offset: -3px;
  }
}

@media (max-width: 670px) {
  .home-shell {
    width: calc(100% - 36px);
  }

  .beam-comparison-heading h2 {
    font-size: clamp(34px, 9.8vw, 48px);
  }

  .beam-hero-inner {
    min-height: 0;
    padding-block: 78px 26px;
  }

  .beam-hero h1 {
    font-size: clamp(38px, 9.8vw, 66px);
    margin-bottom: 19px;
  }

  .beam-art {
    opacity: .8;
  }

  .beam-actions {
    margin-top: 24px;
  }

  .beam-button {
    gap: 12px;
    padding-inline: 12px;
  }

  .beam-intro {
    max-width: 31ch;
  }

  .beam-card-grid,
  .beam-example,
  .beam-faq.faq,
  .beam-dev-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .beam-receipt-intro {
    flex-direction: column;
    gap: 8px;
    min-height: 112px;
  }

  .beam-receipt-mode {
    margin-top: 0;
  }

  .beam-receipt {
    padding: 10px 8px;
  }

  .beam-receipt-header {
    min-height: 45px;
    align-content: start;
  }

  .beam-receipt-body {
    min-height: calc(6 * 1.7em + 16px);
    padding: 8px 4px;
    font-size: 10px;
  }

  .beam-steps button {
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    line-height: 1.2;
  }

  .beam-footer-main {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .beam-footer-links {
    padding-top: 0;
  }

  .beam-footer-links a {
    min-height: 44px;
  }
}

@media (max-width: 430px) {
  .beam-footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 385px) {
  .home-header .brand img {
    width: 108px;
    height: auto;
  }
}

@media (max-width: 360px) {
  .home-header-inner {
    column-gap: 4px;
  }

  .home-header .brand img {
    width: 90px;
  }

  .home-header-actions {
    gap: 2px;
  }

  .home-start > span {
    padding-inline: 9px;
    font-size: 11px;
  }
}

@keyframes home-menu-enter {
  from { opacity: .4; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .has-js .beam-hero h1 em { background: none; color: var(--mint); }
  .has-js .beam-cta .beam-entered h2 em { background: none; color: var(--mint); }
}
