/* Shared styles for every page of forgeqa.io. Fonts are self-hosted and all CSS lives
   in files because the gateway CSP is default-src 'self' (no inline styles). */
@font-face {
  font-family: "DM Sans";
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/font-1.woff2) format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-weight: 400 800;
  font-display: swap;
  src: url(/fonts/font-17.woff2) format("woff2");
}
@font-face {
  font-family: "IBM Plex Mono";
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/font-6.woff2) format("woff2");
}

:root,
.dark {
  --ink: #0b0f0d;
  --lime: #c3f573;
  --bg: var(--ink);
  --raised: #121815;
  --raised-2: #18201b;
  --line: #26302a;
  --text: #eef2ea;
  --text-2: #b9c4bb;
  --muted: #8d9a91;
  --label: var(--lime);
  --seg-off: #2a352e;
  --red: #ff8a7a;
  --amber: #ffd66b;
  --display: "Manrope", "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: dark;
}
.paper {
  --bg: #f3f1ea;
  --raised: #fbfaf6;
  --raised-2: #f0eee6;
  --line: #d6d2c4;
  --text: #101613;
  --text-2: #3a463f;
  --muted: #4f5c54;
  --label: #3d6b12;
  color-scheme: light;
}
.dark {
  color: var(--text);
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 1.0625rem/1.6 "DM Sans", system-ui, sans-serif;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  font-family: var(--display);
  margin: 0;
  text-wrap: balance;
}
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
figure {
  margin: 0;
}
code,
.mono {
  font-family: var(--mono);
}
code {
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}
.paper :focus-visible,
.closing :focus-visible,
.featured :focus-visible {
  outline-color: var(--ink);
}
.paper .dark :focus-visible {
  outline-color: var(--lime);
}
.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 14px;
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}
.wrap {
  --gutter: 16px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: var(--gutter);
}
@media (min-width: 768px) {
  .wrap {
    --gutter: 32px;
  }
}
.text-link {
  color: var(--label);
  font-weight: 600;
  text-underline-offset: 3px;
}
.text-link:hover {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 700 1rem/1 var(--display);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s,
    color 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.btn:active {
  transform: translateY(1px);
}
.btn span {
  transition: transform 0.2s;
}
.btn:hover span {
  transform: translateX(3px);
}
.btn-primary {
  background: var(--lime);
  color: var(--ink);
}
.btn-primary:hover {
  background: #d4ff8c;
}
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--text);
}
.btn-sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 0.9375rem;
}
.btn-dark {
  background: var(--ink);
  color: var(--lime);
}
.btn-dark:hover {
  background: #26302a;
}
.btn-line {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-line:hover {
  background: rgb(11 15 13 / 8%);
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.fine {
  margin-top: 16px;
  font: 400 0.8125rem/1.5 var(--mono);
  color: var(--muted);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(11 15 13 / 96%);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  min-height: 44px;
}
.brand img {
  height: 30px;
  width: auto;
}
.nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}
.nav a,
.login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text-2);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
}
.nav a:hover,
.login:hover,
.nav a[aria-current] {
  color: var(--text);
}
.nav a[aria-current] {
  box-shadow: inset 0 -2px 0 var(--lime);
  border-radius: 0;
}
.nav .nav-login {
  display: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.menu-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.menu-toggle svg {
  width: 22px;
  height: 22px;
}
.menu-toggle .icon-close,
.menu-toggle[aria-expanded="true"] .icon-open {
  display: none;
}
.menu-toggle[aria-expanded="true"] .icon-close {
  display: block;
}
@media (max-width: 1023px) {
  .menu-toggle {
    display: grid;
    order: 3;
  }
  .header-actions {
    order: 2;
    margin-left: auto;
  }
  .header-actions .login {
    display: none;
  }
  .nav {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    margin: 0 0 12px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  /* Collapsed from the first paint when scripts run (no layout shift once site.js loads);
     without JS the menu stays open and the toggle is hidden. The :not([hidden]) rule covers
     browsers without the scripting media feature. */
  .menu-toggle:not([hidden])[aria-expanded="false"] + .nav {
    display: none;
  }
  @media (scripting: enabled) {
    .menu-toggle[aria-expanded="false"] + .nav {
      display: none;
    }
  }
  @media (scripting: none) {
    .menu-toggle {
      display: none;
    }
  }
  .nav a {
    font-size: 1.0625rem;
  }
  .nav a[aria-current] {
    box-shadow: inset 2px 0 0 var(--lime);
  }
  .nav .nav-login {
    display: inline-flex;
  }
}
@media (max-width: 374px) {
  .brand img {
    height: 26px;
  }
  .bar {
    gap: 8px 10px;
  }
  .btn-sm {
    padding: 0 12px;
  }
}

/* Heroes */
.hero,
.page-hero {
  overflow: hidden;
  background:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px) 0 0 / 56px 56px;
}
.hero {
  padding: 48px 0 0;
}
.page-hero {
  padding: 56px 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
h1 {
  font-size: clamp(2.6rem, 1.3rem + 5.6vw, 5.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.page-hero h1 {
  max-width: 16ch;
  font-size: clamp(2.4rem, 1.2rem + 4.4vw, 4.6rem);
}
h1 em,
.head h2 em,
.show-copy h2 em {
  display: block;
  font-style: normal;
  color: var(--lime);
}
.paper .head h2 em,
.paper .show-copy h2 em {
  color: var(--label);
}
.lede {
  margin-top: 24px;
  max-width: 38rem;
  font-size: 1.1875rem;
  color: var(--text-2);
}
@media (min-width: 1024px) {
  .hero {
    padding-top: 88px;
  }
  .page-hero {
    padding: 96px 0 88px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
  }
}
.engines-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin-top: 56px;
  padding-block: 20px;
  border-top: 1px solid var(--line);
  font: 500 0.8125rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.engines-strip li {
  padding-right: 18px;
  margin-right: 18px;
  border-right: 1px solid var(--line);
}
.engines-strip li:last-child {
  border: 0;
}

/* Jump links (features page) */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-2);
  font: 500 0.8125rem/1 var(--mono);
  text-decoration: none;
}
.jump a:hover {
  border-color: var(--lime);
  color: var(--text);
}
.jump .hot {
  border-color: var(--lime);
  color: var(--lime);
}

/* Sections */
.band {
  padding-block: 72px;
  border-top: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
}
@media (min-width: 1024px) {
  .band {
    padding-block: 112px;
  }
  .band.tight {
    padding-block: 80px;
  }
}
.head {
  max-width: 48rem;
  margin-bottom: 48px;
}
.head h2 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
}
.head p {
  margin-top: 18px;
  font-size: 1.125rem;
  color: var(--text-2);
}
.head .cta-row {
  margin-top: 24px;
}
.section-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 40px;
}

/* Lists */
.trio,
.index {
  display: grid;
  gap: 0 40px;
}
.trio li,
.index li {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.trio h3,
.index h3 {
  font-size: 1.3rem;
}
.trio h3 a,
.index h3 a {
  text-decoration: none;
}
.trio h3 a:hover,
.index h3 a:hover {
  color: var(--label);
}
.trio p,
.index p {
  margin-top: 8px;
  color: var(--text-2);
}
.trio .text-link,
.index .text-link {
  display: inline-block;
  margin-top: 12px;
}
.trio.big h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.035em;
}
@media (min-width: 640px) {
  .index {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 900px) {
  .trio {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1024px) {
  .index {
    grid-template-columns: repeat(3, 1fr);
  }
  .split .index {
    grid-template-columns: 1fr 1fr;
  }
}
.ticks {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}
.ticks li,
.plan li {
  position: relative;
  padding-left: 24px;
}
.ticks li {
  color: var(--text-2);
}
.ticks li::before,
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--label);
  border-bottom: 2px solid var(--label);
  transform: rotate(-45deg);
}
.ticks strong {
  color: var(--text);
}
.ticks.cross li::before {
  width: 12px;
  height: 2px;
  top: 0.75em;
  border: 0;
  background: var(--muted);
  transform: none;
}

/* Feature showcases */
.show {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}
.show + .show,
.show + .index,
.index + .show {
  margin-top: 72px;
}
.show-copy h2,
.show-copy h3 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.show-copy > p {
  margin-top: 14px;
  max-width: 32rem;
  color: var(--text-2);
}
.show-copy .text-link {
  display: inline-block;
  margin-top: 18px;
}
@media (min-width: 960px) {
  .show {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 64px;
  }
  .show.flip .show-copy {
    order: 2;
  }
  .show + .show,
  .show + .index,
  .index + .show {
    margin-top: 112px;
  }
}
.panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--raised);
  color: var(--text);
}
.callout {
  padding: 24px;
  border: 1px solid var(--label);
  border-radius: 16px;
  background: rgb(195 245 115 / 6%);
}
.callout h2,
.callout h3 {
  font-size: 1.4rem;
}
.callout p {
  margin-top: 8px;
  color: var(--text-2);
}
.callout .cta-row {
  margin-top: 20px;
}
.stack {
  display: grid;
  gap: 16px;
}

/* Run console (home hero) */
.console {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--raised);
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 70%);
  font-size: 0.875rem;
  overflow: hidden;
}
.console-bar,
.mock-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.8125rem;
}
.console-bar .mono,
.mock-bar .mono {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status {
  display: grid;
  flex: none;
  font: 700 0.75rem/1 var(--mono);
  letter-spacing: 0.06em;
}
.status > span {
  grid-area: 1 / 1;
  padding: 6px 9px;
  border-radius: 6px;
  text-align: center;
}
.s-run {
  background: #3a3216;
  color: var(--amber);
  opacity: 0;
  animation: s-run 8s infinite;
}
.s-pass {
  background: var(--lime);
  color: var(--ink);
  animation: s-pass 8s infinite;
}
.lanes {
  display: grid;
  gap: 14px;
  padding: 20px 18px 14px;
}
.lane {
  display: grid;
  grid-template-columns: 8.4rem minmax(0, 1fr) 2.6rem;
  align-items: center;
  gap: 12px;
}
.eng {
  font: 500 0.8125rem/1 var(--mono);
  color: var(--text);
}
.t {
  font: 400 0.75rem/1 var(--mono);
  color: var(--muted);
  text-align: right;
}
.track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.track i {
  --d: calc(var(--i, 0) * var(--k, 0.4s) + var(--l, 0s));
  height: 10px;
  border-radius: 3px;
  background: var(--lime);
  animation: seg 8s var(--d) infinite both;
}
.track i:nth-child(2) { --i: 1; }
.track i:nth-child(3) { --i: 2; }
.track i:nth-child(4) { --i: 3; }
.track i:nth-child(5) { --i: 4; }
.lane:nth-child(1) { --k: 0.38s; }
.lane:nth-child(2) { --k: 0.5s; --l: 0.15s; }
.lane:nth-child(3) { --k: 0.45s; --l: 0.3s; }
.lane:nth-child(4) { --k: 0.4s; --l: 0.1s; }
.lane:nth-child(5) { --k: 0.43s; --l: 0.2s; }
.steps-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 0 18px 16px;
  font-size: 0.75rem;
  color: var(--muted);
  counter-reset: st;
}
.steps-legend span::before {
  counter-increment: st;
  content: counter(st) " ";
  color: var(--lime);
}
.console-scan {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font: 400 0.75rem/1.4 var(--mono);
  color: var(--text-2);
}
.console-scan b {
  font-weight: 400;
  color: var(--lime);
}
.netlog {
  height: 8.4em;
  padding: 10px 18px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: #0e1311;
  font-size: 0.75rem;
  line-height: 1.75;
  mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent);
}
.netlog ul {
  animation: scroll 14s linear infinite;
}
.netlog li {
  display: grid;
  grid-template-columns: 3.2ch minmax(0, 1fr) auto;
  gap: 12px;
  color: var(--text-2);
  white-space: nowrap;
}
.netlog b {
  color: var(--lime);
  font-weight: 400;
}
.netlog li:nth-child(6n + 4) b {
  color: var(--amber);
}
.netlog em {
  font-style: normal;
  color: var(--muted);
}

/* Recorder demo */
.shop {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--raised);
  container-type: inline-size;
}
.shop-win {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f2ec;
  color: #101613;
  font-size: 2.6cqw;
}
.shop-win::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 11%;
  border-bottom: 1px solid #ddd8ca;
  background: #ebe8df;
}
.shop-win > * {
  position: absolute;
}
.rec {
  left: 3%;
  top: 3.4%;
  font-size: 0.7em;
  font-weight: 700;
  color: #b42318;
}
.rec::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  margin-right: 0.4em;
  border-radius: 50%;
  background: #d92d20;
  animation: blink 1.2s steps(2, jump-none) infinite;
}
.url {
  left: 14%;
  top: 2.6%;
  width: 56%;
  padding: 0.25em 0.9em;
  border-radius: 99px;
  background: #fbfaf6;
  font-size: 0.66em;
  color: #4f5c54;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart {
  right: 3%;
  top: 3%;
  font-size: 0.7em;
  font-weight: 700;
}
.cart b {
  display: inline-block;
  min-width: 1.6em;
  margin-left: 0.3em;
  border-radius: 99px;
  background: #101613;
  color: var(--lime);
  text-align: center;
  animation: cart 9s infinite both;
}
.pic {
  left: 5%;
  top: 17%;
  width: 40%;
  height: 76%;
  border-radius: 0.5em;
  background:
    radial-gradient(circle at 50% 38%, #b9a98a 0 18%, transparent 19%),
    repeating-linear-gradient(115deg, #d8ccb4 0 6px, #cfc2a7 6px 12px);
}
.ttl {
  left: 51%;
  top: 17%;
  font: 800 1.35em/1.1 var(--display);
  letter-spacing: -0.03em;
}
.prc {
  left: 51%;
  top: 30%;
  font-size: 1em;
  color: #3a463f;
}
.chip {
  top: 46%;
  width: 9%;
  height: 12%;
  display: grid;
  place-items: center;
  border: 1.5px solid #101613;
  border-radius: 0.4em;
  font-size: 0.85em;
  font-weight: 700;
}
.c1 {
  left: 51%;
}
.c2 {
  left: 62%;
  background: #101613;
  color: #fff;
  animation: chip 9s infinite both;
}
.c3 {
  left: 73%;
}
.buy {
  left: 51%;
  top: 66%;
  width: 40%;
  height: 14%;
  display: grid;
  place-items: center;
  border-radius: 0.5em;
  background: #101613;
  color: var(--lime);
  font-size: 0.9em;
  font-weight: 700;
  animation: buy 9s infinite;
}
.cursor {
  left: 73%;
  top: 75%;
  width: 6%;
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 35%));
  animation: cursor 9s infinite both;
}
.rec-steps {
  margin-top: 12px;
  font-size: 0.8125rem;
}
.rec-steps li {
  display: grid;
  grid-template-columns: 2em minmax(0, 1fr);
  padding: 7px 4px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rec-steps li span {
  color: var(--lime);
}
.rec-steps .r2 {
  animation: r2 9s infinite both;
}
.rec-steps .r3 {
  animation: r3 9s infinite both;
}
.rec-steps .r4 {
  animation: r4 9s infinite both;
}
.buddy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--lime);
  border-radius: 10px;
  font-size: 0.8125rem;
  color: var(--text);
  animation: buddy 9s infinite both;
}
.buddy .tag {
  margin: 0;
}

/* Shared bits inside mocks */
.tag {
  display: inline-block;
  margin-right: 0.7em;
  font: 500 0.6875rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lime);
}
.pill {
  flex: none;
  padding: 6px 9px;
  border-radius: 6px;
  font: 700 0.75rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--lime);
  color: var(--ink);
}
.fake-btn {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 700 0.8125rem/1 var(--display);
  color: var(--text);
}
.fake-btn.primary {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
}
.sev {
  flex: none;
  display: inline-block;
  min-width: 4.6rem;
  padding: 5px 7px;
  border-radius: 5px;
  font: 700 0.6875rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}
.sev-high {
  background: #3b1714;
  color: var(--red);
}
.sev-medium {
  background: #3a3216;
  color: var(--amber);
}
.sev-low {
  background: #1b2833;
  color: #9cc8ff;
}
.sev-heal {
  background: rgb(195 245 115 / 14%);
  color: var(--lime);
}
.mock-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

/* AI writing demo */
.ai {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--raised);
}
.prompt {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raised-2);
  color: var(--text);
}
.draft {
  margin: 14px 0;
  font-size: 0.8125rem;
  counter-reset: d;
}
.draft li {
  --d: 0.2s;
  display: grid;
  grid-template-columns: 2em minmax(0, 1fr);
  padding: 8px 6px;
  border-bottom: 1px dashed var(--line);
  color: var(--text-2);
  overflow-wrap: anywhere;
  animation: appear 0.45s var(--d) both;
}
.draft li::before {
  counter-increment: d;
  content: counter(d);
  color: var(--muted);
}
.draft li:nth-child(2) { --d: 0.5s; }
.draft li:nth-child(3) { --d: 0.8s; }
.draft li:nth-child(5) { --d: 1.1s; }
.draft li:nth-child(6) { --d: 1.4s; }
.draft .added {
  --d: 3.1s;
  border-radius: 6px;
  background: rgb(195 245 115 / 12%);
  color: var(--lime);
}
.refine {
  animation: appear 0.45s 2.3s both;
}

/* ForgeAI review demo */
.progress {
  height: 6px;
  margin-top: 16px;
  border-radius: 99px;
  background: var(--seg-off);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--lime);
  transform-origin: left;
  animation: grow 2.2s ease-out both;
}
.small-mono {
  margin-top: 8px;
  font: 400 0.75rem/1.5 var(--mono);
  color: var(--muted);
}
.diff {
  margin-top: 16px;
  font: 400 0.8125rem/1.5 var(--mono);
}
.diff li {
  --d: 2.4s;
  display: grid;
  grid-template-columns: minmax(0, 9.5em) minmax(0, 1fr);
  gap: 10px;
  padding: 8px 8px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  overflow-wrap: anywhere;
  animation: appear 0.4s var(--d) both;
}
.diff .k {
  color: var(--muted);
}
.diff .add {
  background: rgb(195 245 115 / 10%);
  color: var(--lime);
}
.diff .chg {
  background: rgb(255 214 107 / 10%);
  color: var(--amber);
}
.diff li:nth-child(2) { --d: 2.6s; }
.diff li:nth-child(3) { --d: 2.8s; }
.diff li:nth-child(4) { --d: 3s; }
.review-note {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--text-2);
  animation: appear 0.4s 3.3s both;
}

/* Self-healing demo */
.heal-steps {
  font: 400 0.8125rem/1.5 var(--mono);
}
.heal-steps > li {
  display: grid;
  grid-template-columns: 2em minmax(0, 1fr);
  padding: 10px 4px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.heal-steps > li:first-child {
  border-top: 0;
}
.heal-steps > li > span {
  color: var(--lime);
}
.tries {
  grid-column: 2;
  display: grid;
  gap: 4px;
  margin-top: 8px;
}
.tries li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  animation: appear 0.4s var(--d, 0.4s) both;
}
.tries li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: var(--red);
}
.tries li:nth-child(2) { --d: 1s; }
.tries .ai {
  --d: 1.8s;
  color: var(--lime);
}
.tries .ai::before {
  content: "→";
  color: var(--lime);
}
.heal-flag {
  animation: appear 0.4s 2.4s both;
}
.heal-flag p {
  flex: 1 1 12rem;
  font-size: 0.875rem;
  color: var(--text-2);
}

/* Step settings and test setup demos */
.fields {
  margin: 14px 0 0;
}
.fields div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.fields dt {
  font-size: 0.875rem;
  color: var(--text-2);
}
.fields dd {
  margin: 0;
}
.input {
  display: inline-block;
  min-width: 4.5em;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--raised-2);
  font-size: 0.8125rem;
}
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.75rem;
}
.seg span {
  padding: 6px 9px;
  color: var(--muted);
}
.seg .on {
  background: var(--lime);
  color: var(--ink);
  font-weight: 700;
}
.switch {
  display: inline-block;
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 99px;
  background: var(--seg-off);
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--muted);
}
.switch.on {
  background: var(--lime);
}
.switch.on::after {
  left: 19px;
  background: var(--ink);
}
.kv {
  margin-top: 12px;
  font: 400 0.8125rem/1.5 var(--mono);
}
.kv li {
  display: grid;
  grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr);
  gap: 4px 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--text);
  overflow-wrap: anywhere;
}
.kv .k {
  color: var(--muted);
}
.kv em {
  grid-column: 2;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--lime);
}

/* Evidence demo */
.trace {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--raised);
}
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.75rem;
}
.tabs span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}
.tabs .on {
  border-color: var(--lime);
  color: var(--lime);
}
.film {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin: 16px 0;
}
.film i {
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  background:
    linear-gradient(#d6d2c4 0 0) 12% 14% / 60% 7% no-repeat,
    linear-gradient(#e6e3da 0 0) 12% 32% / 76% 18% no-repeat,
    linear-gradient(#e6e3da 0 0) 12% 58% / 76% 8% no-repeat,
    linear-gradient(#101613 0 0) 12% 78% / 44% 9% no-repeat,
    #f4f2ec;
}
.film i:last-of-type {
  background:
    linear-gradient(#d6d2c4 0 0) 12% 14% / 60% 7% no-repeat,
    radial-gradient(circle, #c3f573 0 30%, transparent 32%) 50% 50% / 50% 38% no-repeat,
    #f4f2ec;
}
.playhead {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: 100%;
  width: 2px;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgb(195 245 115 / 20%);
  animation: playhead 6s linear infinite;
}
.fall {
  display: grid;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-2);
}
.fall li {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.fall span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fall b {
  height: 8px;
  border-radius: 2px;
  background: var(--lime);
  transform-origin: left;
  animation: grow 0.6s var(--d, 0s) both;
}
.fall li:nth-child(1) b { width: 22%; }
.fall li:nth-child(2) b { margin-left: 20%; width: 14%; --d: 0.15s; opacity: 0.75; }
.fall li:nth-child(3) b { margin-left: 22%; width: 30%; --d: 0.3s; opacity: 0.75; }
.fall li:nth-child(4) b { margin-left: 55%; width: 34%; --d: 0.45s; background: var(--amber); }
.fall li:nth-child(5) b { margin-left: 88%; width: 10%; --d: 0.6s; opacity: 0.75; }

/* Security scan demo */
.scan {
  overflow: hidden;
  padding: 0;
  box-shadow: 0 30px 80px -30px rgb(0 0 0 / 55%);
}
.scan-sum {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px 4px;
  font-size: 0.8125rem;
  color: var(--text-2);
}
.scan-sum b {
  font-weight: 400;
  color: var(--red);
}
.findings li {
  --d: 0.3s;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  animation: appear 0.45s var(--d) both;
}
.findings li:first-child {
  border-top: 0;
}
.findings li:nth-child(2) { --d: 0.9s; }
.findings li:nth-child(3) { --d: 1.5s; }
.findings li:nth-child(4) { --d: 2.1s; }
.findings strong {
  display: block;
  font: 700 0.9375rem/1.3 var(--display);
}
.findings .mono {
  display: block;
  margin-top: 4px;
  font-size: 0.75rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.inventory {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: #0e1311;
  font-size: 0.75rem;
  color: var(--muted);
}
.inventory b {
  font-weight: 400;
  color: var(--amber);
}

/* Assistant demo */
.chat {
  display: grid;
  gap: 12px;
}
.msg {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.9375rem;
  animation: appear 0.45s var(--d, 0.2s) both;
}
.msg.user {
  justify-self: end;
  border-bottom-right-radius: 4px;
  background: var(--lime);
  color: var(--ink);
}
.msg.bot {
  --d: 1s;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
  background: var(--raised-2);
  color: var(--text-2);
}
.msg ol {
  margin-top: 8px;
  padding-left: 1.2em;
  list-style: decimal;
}
.chat .mock-row {
  margin-top: 0;
  animation: appear 0.45s 1.8s both;
}

/* Code */
.code {
  margin: 20px 0 0;
  padding: 16px 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0e1311;
  color: var(--text);
  font: 400 0.8125rem/1.7 var(--mono);
  white-space: pre;
}
.code .c {
  color: var(--muted);
}
.code .s {
  color: var(--lime);
}
.paper .code {
  border-color: #26302a;
}

/* Architecture flow (technology page) */
.flow {
  display: grid;
  gap: 12px;
}
.flow > li {
  position: relative;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raised);
}
.flow > li + li::before {
  content: "";
  position: absolute;
  left: 28px;
  top: -13px;
  width: 2px;
  height: 12px;
  background: var(--lime);
}
.flow strong {
  display: block;
  font: 800 1.125rem/1.3 var(--display);
  letter-spacing: -0.02em;
}
.flow span {
  display: block;
  margin-top: 4px;
  font-size: 0.9375rem;
  color: var(--text-2);
}
.flow .guard {
  border-color: var(--lime);
}
.flow .blocked {
  margin-top: 10px;
  font: 400 0.75rem/1.5 var(--mono);
  color: var(--red);
}
@media (min-width: 1024px) {
  .flow {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .flow > li + li::before {
    left: -13px;
    top: 28px;
    width: 12px;
    height: 2px;
  }
}

/* Tables */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raised);
  -webkit-overflow-scrolling: touch;
}
.compare {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.compare.duo {
  min-width: 0;
}
.compare th,
.compare td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.compare tbody tr:last-child > * {
  border-bottom: 0;
}
.compare thead th {
  font: 800 1.0625rem/1.2 var(--display);
  letter-spacing: -0.02em;
  vertical-align: bottom;
}
.compare thead small {
  display: block;
  font: 400 0.75rem/1.4 var(--mono);
  letter-spacing: 0;
  color: var(--muted);
}
.compare tbody th {
  font-weight: 600;
  color: var(--text);
}
.compare th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 11rem;
  background: var(--raised);
  box-shadow: 1px 0 0 var(--line);
}
.compare.duo th:first-child {
  position: static;
  width: 30%;
}
.compare .us {
  background: #eaf3d6;
  color: #101613;
  font-weight: 600;
}
.compare thead .us {
  background: var(--ink);
  color: var(--lime);
}
.compare .no {
  color: var(--muted);
}
.compare .us.no {
  color: #4f5c54;
}
.compare .group th {
  position: static;
  width: auto;
  box-shadow: none;
  padding-top: 22px;
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-hint {
  display: none;
  margin-bottom: 10px;
  font: 400 0.8125rem/1.4 var(--mono);
  color: var(--muted);
}
@media (max-width: 767px) {
  .scroll-hint {
    display: block;
  }
  .compare {
    min-width: 680px;
    font-size: 0.875rem;
  }
  .compare th:first-child {
    width: 8.5rem;
  }
  .compare th,
  .compare td {
    padding: 12px;
  }
  .compare.duo th,
  .compare.duo td {
    padding: 10px;
  }
}
.note {
  margin-top: 18px;
  max-width: 52rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.note a {
  color: inherit;
}

/* Pricing */
.trial {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 16px;
  padding: 18px 22px;
  border: 1px dashed var(--line);
  border-radius: 16px;
}
.trial p {
  color: var(--text-2);
}
.trial strong {
  color: var(--text);
}
.plans {
  display: grid;
  gap: 16px;
}
.plan {
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--raised);
  transition: border-color 0.2s;
}
.plan:hover {
  border-color: #3d4a42;
}
.plan h3 {
  font-size: 1.4rem;
}
.for {
  margin-top: 4px;
  color: var(--muted);
}
.price {
  margin: 20px 0;
  font: 800 3.4rem/1 var(--display);
  letter-spacing: -0.05em;
}
.price small {
  font: 500 1rem/1 "DM Sans", sans-serif;
  letter-spacing: 0;
  color: var(--muted);
}
.plan ul {
  display: grid;
  align-content: start;
  gap: 8px;
  flex: 1;
}
.plan li::before {
  border-color: var(--lime);
}
.plan .head-li {
  margin-top: 10px;
  padding-left: 0;
  font: 500 0.75rem/1.5 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan .head-li::before {
  display: none;
}
.limits {
  margin: 20px 0;
  font-size: 0.875rem;
  color: var(--text-2);
}
.plan .btn {
  width: 100%;
  margin-top: 24px;
}
.plan .limits + .btn {
  margin-top: 0;
}
.featured {
  border-color: var(--lime);
  background: var(--lime);
  color: var(--ink);
  --text-2: #26302a;
  --muted: #3a463f;
}
.featured:hover {
  border-color: var(--lime);
}
.featured li::before {
  border-color: var(--ink);
}
.featured .btn-primary {
  background: var(--ink);
  color: var(--lime);
}
.featured .btn-primary:hover {
  background: #26302a;
}
.badge {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--lime);
  font: 500 0.75rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (min-width: 960px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
  }
  .featured {
    transform: translateY(-12px);
  }
}
.addons {
  display: grid;
  gap: 0 24px;
}
.addons li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--text-2);
  font-size: 0.9375rem;
}
.addons strong {
  display: block;
  font: 800 1.35rem/1.3 var(--display);
  letter-spacing: -0.03em;
  color: var(--text);
}
@media (min-width: 560px) {
  .addons {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 960px) {
  .addons {
    grid-template-columns: repeat(4, 1fr);
  }
}
.example {
  display: grid;
  gap: 12px;
}
.example li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}
.example b {
  font: 800 1.25rem/1 var(--display);
  color: var(--text);
  white-space: nowrap;
}

/* Two-column text sections */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px 64px;
}
.split .head {
  margin-bottom: 0;
}
.split .head h2,
.faq-grid .head h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.9rem);
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    align-items: start;
  }
  .split .head {
    position: sticky;
    top: 110px;
  }
}
.prose {
  max-width: 42rem;
  color: var(--text-2);
}
.prose > * + * {
  margin-top: 16px;
}
.prose h2 {
  margin-top: 40px;
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}
.prose h3 {
  margin-top: 28px;
  font-size: 1.2rem;
  color: var(--text);
}
.prose strong {
  color: var(--text);
}
.prose a {
  color: var(--label);
  text-underline-offset: 3px;
}
.prose ul {
  padding-left: 1.2em;
  list-style: disc;
}
.prose li + li {
  margin-top: 6px;
}
.prose .big {
  font: 700 clamp(1.35rem, 1.1rem + 1vw, 1.8rem) / 1.3 var(--display);
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Legal pages */
.legal {
  padding-block: 56px 88px;
}
.legal h1 {
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem);
  margin-bottom: 8px;
}
.legal .draft {
  padding: 14px 18px;
  border: 1px solid #6b5a22;
  border-radius: 12px;
  background: #2a2412;
  color: var(--amber);
}
.todo {
  padding: 0 4px;
  border-radius: 4px;
  background: #2a2412;
  color: var(--amber);
  font: 400 0.92em var(--mono);
}

/* FAQ */
.faq-grid + .faq-grid {
  margin-top: 72px;
}
@media (min-width: 960px) {
  .faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 64px;
    align-items: start;
  }
  .faq-grid .head {
    position: sticky;
    top: 110px;
  }
}
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 16px 0;
  font: 700 1.125rem/1.35 var(--display);
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font: 400 1.25rem/1 var(--mono);
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq summary:hover {
  color: var(--label);
}
.faq .answer {
  max-width: 42rem;
  padding-bottom: 20px;
  color: var(--text-2);
}
.faq .answer > * + * {
  margin-top: 10px;
}
.faq .answer a {
  color: var(--label);
}
.faq .answer ul {
  padding-left: 1.2em;
  list-style: disc;
}

/* Link cards (compare teasers) */
.cards {
  display: grid;
  gap: 12px;
}
.cards a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raised);
  text-decoration: none;
  transition: border-color 0.2s;
}
.cards a:hover {
  border-color: var(--label);
}
.cards strong {
  font: 800 1.25rem/1.2 var(--display);
  letter-spacing: -0.02em;
  color: var(--text);
}
.cards span {
  color: var(--text-2);
  font-size: 0.9375rem;
}
.cards em {
  margin-top: auto;
  padding-top: 8px;
  font: 500 0.8125rem/1 var(--mono);
  font-style: normal;
  color: var(--label);
}
@media (min-width: 640px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Closing */
.closing {
  padding-block: 88px;
  background: var(--lime);
  color: var(--ink);
}
.closing h2 {
  max-width: 14ch;
  font-size: clamp(2.5rem, 1.2rem + 5.6vw, 5.6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.closing p {
  margin-top: 20px;
  font-size: 1.1875rem;
}

/* Footer */
.site-footer {
  padding-top: 56px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 24px;
}
.foot-brand {
  grid-column: 1 / -1;
}
.foot-brand p {
  max-width: 22rem;
  margin-top: 12px;
}
.foot-brand .btn {
  margin-top: 20px;
}
.foot-h {
  margin-bottom: 8px;
  font: 500 0.75rem/1.4 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--text);
}
.site-footer .btn-primary {
  color: var(--ink);
}
.foot-base {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 24px;
  margin-top: 48px;
  padding-block: 16px 24px;
  font-size: 0.875rem;
}
.foot-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line);
}
.foot-base nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}
@media (min-width: 900px) {
  .foot-grid {
    grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 1fr));
  }
  .foot-brand {
    grid-column: auto;
  }
}

/* Reveal on scroll (only when site.js runs) */
.js .reveal {
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal:not(.in) {
  opacity: 0;
  transform: translateY(24px);
}
.trio .reveal:nth-child(2),
.index .reveal:nth-child(3n + 2),
.plans .reveal:nth-child(2),
.cards .reveal:nth-child(2) {
  transition-delay: 0.08s;
}
.trio .reveal:nth-child(3),
.index .reveal:nth-child(3n),
.plans .reveal:nth-child(3),
.cards .reveal:nth-child(3) {
  transition-delay: 0.16s;
}
.cards .reveal:nth-child(4) {
  transition-delay: 0.24s;
}
/* Demos wait until they are on screen. */
.js .anim:not(.live),
.js .anim:not(.live) *,
.js .anim:not(.live) *::before {
  animation-play-state: paused;
}

/* Keyframes. Every element's resting style is its finished state, so with motion off the demos still read. */
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
@keyframes seg {
  0%,
  4% {
    background: var(--seg-off);
  }
  9%,
  82% {
    background: var(--lime);
  }
  92%,
  100% {
    background: var(--seg-off);
  }
}
@keyframes s-run {
  0%,
  42% {
    opacity: 1;
  }
  45%,
  86% {
    opacity: 0;
  }
  90%,
  100% {
    opacity: 1;
  }
}
@keyframes s-pass {
  0%,
  42% {
    opacity: 0;
  }
  45%,
  86% {
    opacity: 1;
  }
  90%,
  100% {
    opacity: 0;
  }
}
@keyframes scroll {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}
@keyframes cursor {
  0% {
    left: 28%;
    top: 90%;
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  18% {
    left: 66%;
    top: 51%;
    transform: scale(1);
  }
  21% {
    transform: scale(0.8);
  }
  24% {
    left: 66%;
    top: 51%;
    transform: scale(1);
  }
  42% {
    left: 73%;
    top: 75%;
    transform: scale(1);
  }
  45% {
    transform: scale(0.8);
  }
  48%,
  88% {
    left: 73%;
    top: 75%;
    transform: scale(1);
    opacity: 1;
  }
  96%,
  100% {
    left: 73%;
    top: 75%;
    opacity: 0;
  }
}
@keyframes chip {
  0%,
  20% {
    background: transparent;
    color: #101613;
  }
  22%,
  94% {
    background: #101613;
    color: #fff;
  }
  100% {
    background: transparent;
    color: #101613;
  }
}
@keyframes buy {
  0%,
  44%,
  48%,
  100% {
    transform: none;
  }
  46% {
    transform: scale(0.95);
  }
}
@keyframes cart {
  0%,
  47% {
    transform: scale(0);
  }
  51% {
    transform: scale(1.3);
  }
  55%,
  94% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes r2 {
  0%,
  21% {
    opacity: 0;
    transform: translateX(-8px);
  }
  25%,
  94% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}
@keyframes r3 {
  0%,
  45% {
    opacity: 0;
    transform: translateX(-8px);
  }
  49%,
  94% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}
@keyframes r4 {
  0%,
  66% {
    opacity: 0;
    transform: translateX(-8px);
  }
  70%,
  94% {
    opacity: 1;
    transform: none;
  }
  100% {
    opacity: 0;
  }
}
@keyframes buddy {
  0%,
  53% {
    opacity: 0;
  }
  57%,
  94% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
@keyframes grow {
  from {
    transform: scaleX(0);
  }
}
@keyframes playhead {
  from {
    left: 0;
  }
  to {
    left: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal:not(.in) {
    opacity: 1;
    transform: none;
  }
  .s-run {
    opacity: 0;
  }
}

/* ---- security scan page (2026-11) ---- */
.scan-tabs {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}
.scan-note {
  font-size: 0.875rem;
  color: var(--muted);
}
.scan-ai {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--text-2);
}
.scan-ai strong {
  color: var(--text);
}
.tech {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--raised);
}
.tech > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  position: relative;
  padding: 22px 72px 22px 24px;
  border-radius: 16px;
  font: 800 clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem)/1.15 var(--display);
  letter-spacing: -0.03em;
  cursor: pointer;
  list-style: none;
}
.tech > summary::-webkit-details-marker {
  display: none;
}
.tech > summary span {
  font: 400 0.9375rem/1.4 var(--display);
  letter-spacing: 0;
  color: var(--muted);
}
.tech > summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font: 400 1.375rem/1 var(--mono);
  color: var(--lime);
  transition: transform 0.2s;
}
.tech[open] > summary::after {
  transform: rotate(45deg);
}
.tech > summary:hover {
  background: var(--raised-2);
}
.tech > summary:hover::after {
  border-color: var(--lime);
}
.tech > summary:focus-visible {
  outline-offset: -2px;
  border-radius: 16px;
}
.tech[open] > summary {
  border-bottom: 1px solid var(--line);
  border-radius: 16px 16px 0 0;
}
.tech-body {
  padding: 24px;
  color: var(--text-2);
}
.tech-body > p:first-child {
  max-width: 42rem;
}
.tech-body .index {
  margin-top: 16px;
}
.tech-grid {
  display: grid;
  gap: 28px;
  margin-top: 32px;
}
.tech-grid h3 {
  font-size: 1.3rem;
  color: var(--text);
}
.tech-grid p {
  margin-top: 8px;
}
.tech-grid p + h3 {
  margin-top: 24px;
}
.tech-grid .panel {
  align-self: start;
  background: var(--bg);
}
@media (min-width: 960px) {
  .tech-body {
    padding: 32px;
  }
  .tech-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
}
.tech-body h3 {
  color: var(--text);
}

/* ---- features (2026-11) ---- */
.fx-pass {
  background: rgb(195 245 115 / 14%);
  color: var(--lime);
}
.fx-rows {
  margin-top: 6px;
  font-size: 0.875rem;
}
.fx-rows li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.fx-rows li:first-child {
  border-top: 0;
}
.fx-rows b {
  flex: 1 1 10rem;
  min-width: 0;
  font-weight: 600;
  color: var(--text);
  overflow-wrap: anywhere;
}
.fx-rows .mono {
  font-size: 0.75rem;
  color: var(--muted);
}
.fx-rows .fake-btn {
  min-height: 28px;
  padding: 0 10px;
  font-size: 0.75rem;
}
.trace + .fx-rows,
.tabs + .fx-rows {
  margin-top: 12px;
}
.fx-steps {
  margin-top: 4px;
}
.fx-steps li {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 2px 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.fx-steps li:first-child {
  border-top: 0;
}
.fx-steps .n {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 6px;
  background: var(--raised-2);
  font: 500 0.75rem/1 var(--mono);
  color: var(--lime);
}
.fx-steps b {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}
.fx-steps small {
  font: 400 0.75rem/1.5 var(--mono);
  color: var(--muted);
  overflow-wrap: anywhere;
}
.fx-steps small i {
  margin-right: 0.6em;
  font-style: normal;
  color: var(--text-2);
}
.fx-steps .stop {
  display: block;
  padding-left: 40px;
  font-size: 0.8125rem;
  color: var(--amber);
}
.fx-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.fx-stats p {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raised-2);
}
.fx-stats strong {
  font: 800 1.6rem/1 var(--display);
  letter-spacing: -0.03em;
  color: var(--text);
}
.fx-stats p:nth-child(2) strong {
  color: var(--lime);
}
.fx-stats span {
  font-size: 0.75rem;
  color: var(--muted);
}
.mock-row.fx-flush {
  margin-top: 0;
}
.fx-dev {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.fx-dev summary {
  padding: 12px 16px;
  font: 500 0.8125rem/1.4 var(--mono);
  color: var(--text-2);
  cursor: pointer;
}
.fx-dev summary:hover {
  color: var(--lime);
}
.fx-dev .code {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}

/* ---- homepage + ecommerce (2026-11) ---- */
.pill-fail {
  background: var(--red);
}
.film-fail i:last-of-type {
  background:
    linear-gradient(#d6d2c4 0 0) 12% 14% / 60% 7% no-repeat,
    radial-gradient(circle, #ff8a7a 0 30%, transparent 32%) 50% 50% / 50% 38% no-repeat,
    #f4f2ec;
}
.fail-note p {
  flex: 1 1 12rem;
  font-size: 0.875rem;
  color: var(--text-2);
}
.sec-tabs {
  padding: 12px 18px 4px;
}
.dash-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.dash-stats p {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--raised-2);
}
.dash-stats span {
  font: 500 0.6875rem/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.dash-stats b {
  font: 800 2rem/1 var(--display);
  letter-spacing: -0.03em;
}
.dash-stats .on b {
  color: var(--lime);
}
.dash-stats small {
  font-size: 0.75rem;
  color: var(--muted);
}
.dash-tests {
  margin-top: 14px;
}
.dash-tests li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 2px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.dots {
  display: flex;
  flex: none;
  gap: 6px;
}
.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
}
.dots .no {
  background: var(--red);
}
.dash-legend {
  padding: 8px 2px 0;
  border-top: 1px solid var(--line);
  font-size: 0.6875rem;
  text-align: right;
  color: var(--muted);
}
.trio p + p {
  margin-top: 10px;
}
.fx-who {
  flex: 1 1 10rem;
  display: grid;
  gap: 2px;
  min-width: 0;
}
.tries li.ai {
  padding: 0 0 0 18px;
  border: 0;
  border-radius: 0;
  font-size: inherit;
}

/* ---- pricing + compare tables (2026-11) ---- */
:root,
.dark {
  --row-line: #3b4a41;
  --row-hover: #1f2b24;
}
.paper {
  --row-line: #bdb7a5;
  --row-hover: #e6e2d4;
}
.compare th,
.compare td {
  border-bottom-color: var(--row-line);
}
.compare thead th {
  border-bottom: 2px solid var(--row-line);
}
/* The whole row lights up, the Professional/Forge QA column included; focus-within covers links in cells. */
.compare tbody tr:not(.group):hover > *,
.compare tbody tr:not(.group):focus-within > * {
  background: var(--row-hover);
}
.compare tbody tr:not(.group):hover > .us,
.compare tbody tr:not(.group):focus-within > .us {
  background: #d2e8a4;
}
.compare tbody tr:not(.group):hover > th:first-child,
.compare tbody tr:not(.group):focus-within > th:first-child {
  box-shadow: inset 3px 0 0 var(--label), 1px 0 0 var(--line);
}
.compare .group th {
  padding: 18px 16px 10px;
  border-top: 1px solid var(--row-line);
  background: var(--raised-2);
  font-weight: 600;
  color: var(--label);
}
/* Pricing: key rows, then the rest behind <details>; fixed layout keeps both tables' columns aligned. */
.compare.fixed {
  table-layout: fixed;
}
.compare.fixed th:first-child {
  width: 13rem;
}
.more-rows {
  min-width: 760px;
  border-top: 2px solid var(--row-line);
}
.more-rows > summary {
  position: sticky;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  font: 700 0.9375rem/1.3 var(--display);
  color: var(--label);
  cursor: pointer;
  list-style: none;
}
.more-rows > summary::-webkit-details-marker {
  display: none;
}
.more-rows > summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--row-line);
  border-radius: 50%;
  font: 400 1.1rem/1 var(--mono);
}
.more-rows[open] > summary::before {
  content: "\2212";
}
.more-rows > summary:hover {
  color: var(--text);
}
.more-rows > .compare {
  border-top: 1px solid var(--row-line);
}
@media (max-width: 767px) {
  .compare.fixed th:first-child {
    width: 9rem;
  }
  .more-rows {
    min-width: 680px;
  }
}
/* Footnotes for long, sourced table cells. */
.fn {
  padding: 0 2px;
  font-weight: 700;
  color: var(--label);
  text-decoration: none;
}
.compare .us .fn {
  color: #3d6b12;
}
.fn:hover {
  text-decoration: underline;
}
.footnotes {
  margin-top: 18px;
  max-width: 52rem;
  padding-left: 1.6em;
  list-style: decimal;
  font-size: 0.875rem;
  color: var(--muted);
}
.footnotes li + li {
  margin-top: 4px;
}
.footnotes li:target {
  color: var(--text);
}
/* Verdict cards above the compare tables. */
.verdicts {
  display: grid;
  gap: 12px;
}
.verdicts li {
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--label);
  border-radius: 14px;
  background: var(--raised);
}
.verdicts h3 {
  font: 800 1.2rem/1.25 var(--display);
  letter-spacing: -0.02em;
}
.verdicts p {
  margin-top: 8px;
  color: var(--text-2);
}
.verdicts .fit {
  border-top-color: var(--amber);
}
@media (min-width: 640px) {
  .verdicts {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .verdicts {
    grid-template-columns: repeat(3, 1fr);
  }
  .verdicts:has(> li:nth-child(5)) {
    grid-template-columns: repeat(4, 1fr);
  }
  .verdicts .fit {
    grid-column: 1 / -1;
  }
}
.dash .mock-row .mono {
  font-size: 0.8125rem;
  color: var(--text-2);
}
@media (min-width: 640px) {
  .verdicts .fit:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* ---- homepage + ecommerce (2026-11, cont.) ---- */
.heal .mock-row .mono {
  font-size: 0.8125rem;
  color: var(--text-2);
}
/* Section labels stay in view while the table scrolls sideways. */
.compare .group th > span {
  position: sticky;
  left: 16px;
  display: inline-block;
}

/* ---- language switch (2026-11) ---- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 6px;
}
.lang-switch:hover {
  color: var(--text);
}
.lang-switch:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

/* German compare pages (de/compare/index, reflect, ghost-inspector, bugbug, mabl):
   long German compounds kept the two-column tables wider than a phone screen. */
:lang(de) .compare.duo th,
:lang(de) .compare.duo td {
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: anywhere;
}

/* German: de/faq + de/pricing — long German section words ("Identitätsprüfung") must fit the narrow FAQ heading column */
:lang(de) .faq-grid .head h2 {
  font-size: clamp(1.9rem, 1rem + 1.6vw, 2.4rem);
}

/* German homepage (de/index): pass/fail badges in the browser mock-up share one width ("Bestanden" is longer than "Passed"). */
:lang(de) .panel.scan.anim:not(.dark) .sev {
  min-width: 5rem;
}

/* An inline link inside a tick list stays on its line (both languages); German features: the Security mock-up's two tabs fit one row on phones. */
.show-copy .ticks .text-link {
  display: inline;
  margin-top: 0;
}
@media (max-width: 480px) {
  :lang(de) #security .panel > .tabs {
    font-size: 0.6875rem;
  }
  :lang(de) #security .panel > .tabs span {
    padding-inline: 8px;
  }
}
/* Phones: brand, EN/DE switch, trial button and menu fit one row down to 340px (German included). */
@media (max-width: 480px) {
  .bar {
    column-gap: 10px;
  }
  .header-actions {
    gap: 2px;
  }
  .lang-switch {
    min-width: 34px;
    padding: 0 4px;
  }
}
@media (max-width: 400px) {
  .header-actions .btn-sm {
    padding: 0 10px;
    font-size: 0.875rem;
  }
}
