/* Wave 1 — Dedica craft tokens + sticky nav + hero split + citation sim */
/* Fonts: Display Newsreader · UI Inter · Mono JetBrains Mono */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-500-normal.woff2) format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-600-normal.woff2) format("woff2");
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-700-normal.woff2) format("woff2");
}
@font-face {
  font-family: Newsreader;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/newsreader-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: Newsreader;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/newsreader-latin-600-normal.woff2) format("woff2");
}
@font-face {
  font-family: Newsreader;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/newsreader-latin-700-normal.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-400-normal.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-500-normal.woff2) format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/assets/fonts/jetbrains-mono-latin-700-normal.woff2) format("woff2");
}

:root {
  /* Zinc canvas (Dedica/Cal) — Inter UI; Newsreader display; JetBrains Mono metrics */
  --af-root: #09090b;
  --af-surface: #18181b;
  --af-surface-60: rgba(24, 24, 27, 0.6);
  --af-ink: #f4f4f5;
  --af-muted: rgba(161, 161, 170, 0.92);
  --af-accent: #34d399;
  --af-warn: #fbbf24;
  --af-danger: #fb7185;
  --af-hairline: rgba(39, 39, 42, 0.95);
  --af-sans: Inter, system-ui, sans-serif;
  --af-display: Newsreader, Georgia, serif;
  --af-mono: "JetBrains Mono", ui-monospace, monospace;
  --af-ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --af-radius-bento: 1rem;
}

html,
body,
.af-page {
  font-family: var(--af-sans);
}

.hero-bg,
.af-page.dark,
html.dark body.af-page {
  background-color: var(--af-root);
}

/* Cal.com-style floating pill nav */
.af-nav {
  position: sticky;
  top: 0.5rem;
  z-index: 50;
  margin-top: 0.5rem;
  padding: 0 1.5rem;
  pointer-events: none;
}
.af-nav__shell {
  pointer-events: auto;
  max-width: 82.5rem;
  margin: 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(63, 63, 70, 0.55);
  background: rgba(23, 23, 23, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px -24px rgba(0, 0, 0, 0.75);
}
.af-nav__inner {
  height: 4rem;
  padding: 0 0.75rem 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.af-nav__logo {
  height: 1.75rem;
  width: auto;
  display: block;
}
.af-nav__links {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(228, 228, 231, 0.88);
}
.af-nav__links a {
  white-space: nowrap;
}
.af-nav__links a:hover {
  color: #fff;
}
.af-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.af-nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: #f4f4f5;
  color: #09090b;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}
.af-nav__cta:hover {
  background: #fff;
}
.af-nav__menu {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(63, 63, 70, 0.7);
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.af-nav__menu span {
  display: block;
  width: 14px;
  height: 1.5px;
  margin: 0 auto;
  background: #e4e4e7;
  border-radius: 1px;
}
.af-nav.is-open .af-nav__shell {
  border-radius: 1.25rem;
}
.af-nav.is-open .af-nav__links {
  display: flex;
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  top: calc(0.5rem + 4.25rem);
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(63, 63, 70, 0.55);
  background: rgba(23, 23, 23, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.af-nav.is-open .af-nav__links a {
  padding: 0.75rem 0.9rem;
  border-radius: 0.65rem;
}
.af-nav.is-open .af-nav__links a:hover {
  background: rgba(39, 39, 42, 0.8);
}
@media (min-width: 900px) {
  .af-nav__links {
    display: flex;
  }
  .af-nav__menu {
    display: none;
  }
  .af-nav.is-open .af-nav__links {
    position: static;
    flex-direction: row;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }
  .af-nav.is-open .af-nav__links a {
    padding: 0;
  }
  .af-nav.is-open .af-nav__links a:hover {
    background: transparent;
  }
}

.af-nav,
.af-nav__links,
.af-nav__cta,
.af-btn-primary {
  font-family: var(--af-sans);
}

.af-hero-title,
.af-head,
.af-display,
.af-section-head {
  font-family: var(--af-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.af-hero-title {
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.035em;
}
.af-hero-title .af-hero-line2 {
  color: var(--af-accent);
}

.af-hero-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
  text-align: left;
}
@media (min-width: 1024px) {
  .af-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 2.5rem;
    align-items: center;
  }
}

/* Hero carousel (under URL form) — non-H1 products */
.af-hero-agents {
  margin-top: 1.35rem;
  max-width: 38rem;
  width: 100%;
}
.af-hero-agents__label {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--af-muted);
  white-space: nowrap;
}
.af-hero-agents__carousel {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  width: 100%;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.af-hero-agents__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  flex: 0 0 auto;
  width: max-content;
  gap: 1.5rem;
  padding-right: 1.5rem;
  animation: afHeroAgentsMarquee 48s linear infinite;
  will-change: transform;
}
.af-hero-agents__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  opacity: 0.82;
  white-space: nowrap;
  isolation: isolate;
}
.af-hero-agents__chip:hover {
  opacity: 1;
}
.af-hero-agents__logo {
  width: 1.35rem !important;
  height: 1.35rem !important;
  max-width: 1.35rem;
  border-radius: 0.3rem;
  object-fit: cover;
  flex: 0 0 1.35rem;
}
.af-hero-agents__name {
  font-size: 0.75rem;
  font-weight: 500;
  color: #a1a1aa;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.af-hero-agents__chip:hover .af-hero-agents__name {
  color: #e4e4e7;
}
@keyframes afHeroAgentsMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .af-hero-agents__carousel {
    mask-image: none;
    -webkit-mask-image: none;
    overflow-x: auto;
  }
  .af-hero-agents__track {
    animation: none;
  }
  .af-hero-agents__track[aria-hidden="true"] {
    display: none;
  }
}

/* H1: two intentional lines — name on L1, "answers…" on L2 (no orphan) */
.af-hero-title__line {
  display: block;
}
.af-agent-swap {
  display: inline-block;
  position: relative;
  vertical-align: bottom;
  overflow: hidden;
  margin: 0 0.04em 0 0.02em;
  line-height: inherit;
  color: inherit;
}
.af-agent-swap__item {
  display: block;
  white-space: nowrap;
  line-height: inherit;
  opacity: 0;
  transform: translateY(0.28em);
  transition:
    opacity 0.55s var(--af-ease-spring),
    transform 0.55s var(--af-ease-spring);
  pointer-events: none;
}
/* Inactive names are out of flow so they do not widen the slot */
.af-agent-swap__item:not([data-state="active"]) {
  position: absolute;
  left: 0;
  top: 0;
}
.af-agent-swap__item[data-state="active"] {
  position: relative;
  opacity: 1;
  transform: translateY(0);
}
.af-agent-swap__item[data-state="leaving"] {
  opacity: 0;
  transform: translateY(-0.42em);
}
.af-agent-swap__item--text {
  font-weight: 400;
}
.af-agent-swap__item img {
  display: inline-block;
  width: 0.52em;
  height: 0.52em;
  margin-right: 0.14em;
  vertical-align: 0.06em;
  border-radius: 0.16em;
  background: #18181b;
  object-fit: contain;
}
@media (prefers-reduced-motion: reduce) {
  .af-agent-swap__item {
    transition: none;
  }
  .af-agent-swap__item:not([data-state="active"]) {
    display: none;
  }
  .af-agent-swap__item[data-state="active"] {
    opacity: 1;
    transform: none;
  }
}

.af-score-preview {
  border-radius: 1.25rem;
  border: 1px solid var(--af-hairline);
  background: #18181b;
  padding: 1.15rem 1.25rem 1.25rem;
  box-shadow: none;
}
.af-score-preview__top {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}
.af-score-preview__url {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--af-mono);
  font-size: 0.75rem;
  color: var(--af-muted);
  border: 1px solid var(--af-hairline);
  border-radius: 0.65rem;
  padding: 0.3rem 0.35rem 0.3rem 0.7rem;
  background: #09090b;
  overflow: hidden;
  white-space: nowrap;
}
.af-score-preview__url-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.af-score-preview__caret {
  display: none;
  width: 1px;
  height: 0.85em;
  background: #a1a1aa;
  flex-shrink: 0;
  animation: afScoreCaret 0.9s steps(1) infinite;
}
.af-score-preview__url[data-typing="1"] .af-score-preview__caret {
  display: inline-block;
}
@keyframes afScoreCaret {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
.af-score-preview__badge {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 0.5rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(52, 211, 153, 0.28);
  background: rgba(52, 211, 153, 0.1);
  color: #34d399;
}
.af-score-preview__badge[data-state="checking"] {
  border-color: rgba(161, 161, 170, 0.35);
  background: rgba(39, 39, 42, 0.9);
  color: #a1a1aa;
}
.af-score-preview__badge[data-state="checking"]::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.35rem;
  border-radius: 999px;
  border: 1.5px solid rgba(161, 161, 170, 0.35);
  border-top-color: #e4e4e7;
  vertical-align: -0.05rem;
  animation: afCompareSpin 0.75s linear infinite;
}
.af-score-preview__label {
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--af-muted);
  margin-bottom: 1rem;
}
.af-score-preview__foot {
  margin: 0.85rem 0 0;
  font-size: 0.6875rem;
  color: var(--af-muted);
}
.af-score-ring-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}
.af-score-ring {
  --p: 0;
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 9999px;
  background: conic-gradient(var(--af-accent) calc(var(--p) * 1%), rgba(240, 241, 232, 0.1) 0);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.af-score-ring__inner {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 9999px;
  background: var(--af-surface);
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1;
}
.af-score-ring__num {
  font-family: var(--af-mono);
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--af-ink);
  line-height: 1;
}
.af-score-ring__den {
  margin-top: 0.12rem;
  font-family: var(--af-mono);
  font-size: 0.65rem;
  color: var(--af-muted);
}
.af-score-preview__meta {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  color: var(--af-ink);
}
.af-score-preview__meta span {
  color: var(--af-muted);
  display: block;
  font-size: 0.75rem;
  margin-top: 0.2rem;
}
.af-score-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.af-score-checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #71717a;
}
.af-score-checks__item {
  opacity: 0;
  transform: translateY(6px);
}
.af-score-checks__item.is-pass {
  color: #d4d4d8;
}
.af-score-checks__item.is-fail {
  color: #71717a;
}
.af-score-preview.is-demo-checked .af-score-checks__item,
.af-score-preview.is-live .af-score-checks__item {
  animation: afScoreCheckIn 0.45s var(--af-ease-spring) forwards;
  animation-delay: calc(0.08s + (var(--i, 0) * 0.12s));
}
.af-score-checks .mark {
  width: 1rem;
  height: 1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 999px;
  color: #52525b;
  background: rgba(39, 39, 42, 0.9);
  border: 1px solid rgba(63, 63, 70, 0.9);
}
.af-score-checks .mark::before {
  content: "·";
}
.af-score-checks__item.is-pass .mark {
  color: #34d399;
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.35);
}
.af-score-checks__item.is-pass .mark::before {
  content: "✓";
}
.af-score-checks__item.is-fail .mark {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.28);
}
.af-score-checks__item.is-fail .mark::before {
  content: "✕";
}
@keyframes afScoreCheckIn {
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .af-score-preview__badge[data-state="checking"]::before { animation: none; }
  .af-score-preview__caret { animation: none; opacity: 1; }
  .af-score-checks__item {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

.af-load-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.af-load-checks li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--af-muted);
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid var(--af-hairline);
  background: rgba(255, 255, 255, 0.02);
}
.af-load-checks li.is-active {
  color: var(--af-ink);
  border-color: rgba(52, 211, 153, 0.35);
}
.af-load-checks li.is-done {
  color: var(--af-accent);
}
.af-load-checks .bar {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 9999px;
  background: rgba(240, 241, 232, 0.18);
}
.af-load-checks li.is-active .bar {
  background: var(--af-accent);
  animation: af-pulse-dot 1s ease-in-out infinite;
}
.af-load-checks li.is-done .bar {
  background: var(--af-accent);
  animation: none;
}
@keyframes af-pulse-dot {
  50% {
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .af-load-checks li.is-active .bar {
    animation: none;
  }
}

.af-cite-sim {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .af-cite-sim {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}
.af-browser {
  border-radius: 1rem;
  border: 1px solid var(--af-hairline);
  background: var(--af-surface);
  overflow: hidden;
  min-height: 16rem;
}
.af-browser__chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--af-hairline);
  font-size: 0.7rem;
  color: var(--af-muted);
  font-family: var(--af-mono);
}
.af-browser__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 9999px;
  background: rgba(240, 241, 232, 0.2);
}
.af-browser__body {
  padding: 1rem;
}
.af-skel {
  height: 0.55rem;
  border-radius: 9999px;
  background: rgba(240, 241, 232, 0.08);
  margin-bottom: 0.55rem;
}
.af-skel--pulse {
  animation: af-skel 1.4s ease-in-out infinite;
}
@keyframes af-skel {
  50% {
    opacity: 0.45;
  }
}
@media (prefers-reduced-motion: reduce) {
  .af-skel--pulse {
    animation: none;
  }
}
.af-cite-answer {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--af-ink);
  margin-top: 0.75rem;
}
.af-cite-answer a {
  color: var(--af-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.af-cite-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--af-muted);
}
.af-cite-list li.is-on {
  color: var(--af-accent);
}
.af-price-rec {
  position: relative;
  border-color: rgba(52, 211, 153, 0.4) !important;
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.2);
}
.af-price-badge {
  position: absolute;
  top: -0.7rem;
  right: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background: var(--af-accent);
  color: #09090b;
}

/* AgentPayloadBento — static Micro-UI (docs/design/AgentPayloadBento.tsx) */
.af-bento-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 1024px) {
  .af-bento-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.af-bento-card {
  border-radius: 1rem;
  border: 1px solid rgba(39, 39, 42, 0.95);
  background: rgba(24, 24, 27, 0.6);
  padding: 1rem 1.15rem 1.2rem;
}
@media (min-width: 640px) {
  .af-bento-card {
    padding: 1.15rem 1.25rem 1.35rem;
  }
}
.af-bento-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 0.375rem;
  border: 1px solid #3f3f46;
  background: #18181b;
  padding: 0.15rem 0.4rem;
  font-family: var(--af-mono);
  font-size: 0.625rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d4d4d8;
}
.af-bento-latency {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 0.375rem;
  border: 1px solid #3f3f46;
  background: #09090b;
  padding: 0.15rem 0.5rem;
  font-family: var(--af-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: #e4e4e7;
}
.af-bento-latency__dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: #10b981;
}
.af-bento-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.15rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #34d399;
}
.af-bento-split {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .af-bento-split {
    grid-template-columns: 1fr 1fr;
  }
}
.af-bento-panel {
  display: flex;
  flex-direction: column;
  border-radius: 0.75rem;
  border: 1px solid #27272a;
  background: rgba(24, 24, 27, 0.85);
  padding: 0.75rem;
  min-height: 100%;
}
.af-bento-panel--ok {
  border-color: rgba(16, 185, 129, 0.2);
}
.af-bento-pre {
  flex: 1;
  min-height: 9.5rem;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #09090b;
  padding: 0.75rem;
  font-family: var(--af-mono);
  font-size: 0.625rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.af-bento-pre--noise {
  color: rgba(251, 113, 133, 0.9);
}
.af-bento-pre--clean {
  color: rgba(110, 231, 183, 0.9);
}
.af-bento-tabs {
  display: inline-flex;
  border-radius: 9999px;
  border: 1px solid #3f3f46;
  background: #09090b;
  padding: 0.125rem;
}
.af-bento-tabs button {
  border-radius: 9999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #71717a;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.af-bento-tabs button[aria-selected="true"] {
  background: #f4f4f5;
  color: #09090b;
}
.af-bento-people-card {
  border-radius: 0.75rem;
  border: 1px solid #27272a;
  background: rgba(24, 24, 27, 0.85);
  padding: 1rem;
}
.af-bento-people-card__mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: #27272a;
}
.af-bento-skel {
  height: 0.5rem;
  border-radius: 9999px;
  background: #27272a;
  margin-bottom: 0.75rem;
}
.af-bento-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #f4f4f5;
  color: #09090b;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 1.25rem;
  border: 0;
  cursor: pointer;
}
.af-bento-cta:hover {
  background: #fff;
}
.af-bento-agent-block {
  border-radius: 0.75rem;
  border: 1px solid #27272a;
  background: #09090b;
  padding: 0.75rem;
}
.af-bento-dim {
  opacity: 0.4;
  filter: grayscale(1);
}
@media (min-width: 640px) {
  .af-bento-dim {
    opacity: 1;
    filter: none;
  }
}
.af-bento-dim.is-active {
  opacity: 1;
  filter: none;
}

/* Motion pass (prefers-reduced-motion safe) */
@keyframes afEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes afCrossfade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.af-motion-enter {
  animation: afEnter 0.55s ease both;
}
.af-motion-enter--delay {
  animation-delay: 0.08s;
}
.af-motion-enter--delay2 {
  animation-delay: 0.16s;
}
.af-score-ring {
  transition: --p 0.8s ease;
}
.af-bento-dim {
  transition: opacity 0.35s ease, filter 0.35s ease;
}
.af-standards {
  border-top: 1px solid var(--af-hairline);
  border-bottom: 1px solid var(--af-hairline);
  background: rgba(24, 24, 27, 0.45);
}
.af-standards__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  align-items: center;
  justify-content: center;
}
.af-standards__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--af-muted);
  font-weight: 600;
  width: 100%;
  text-align: center;
  margin: 0 0 0.15rem;
}
.af-standards__chip {
  font-family: var(--af-mono);
  font-size: 0.75rem;
  color: #a1a1aa;
  border: 1px solid rgba(39, 39, 42, 0.95);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  background: rgba(9, 9, 11, 0.55);
}
@media (prefers-reduced-motion: reduce) {
  .af-motion-enter,
  .af-motion-enter--delay,
  .af-motion-enter--delay2,
  .af-bento-dim,
  .af-score-ring,
  .af-ticker__inner,
  .af-agent-swap__item {
    animation: none !important;
    transition: none !important;
  }
}

/* Shared primitives (static stack) */
.af-bento {
  border: 1px solid var(--af-hairline);
  border-radius: var(--af-radius-bento);
  background: var(--af-surface-60);
  padding: 1.25rem 1.35rem;
}
.af-section-head {
  font-family: var(--af-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--af-ink);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0;
}
.af-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  background: #f4f4f5;
  color: #09090b;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem 1.25rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s var(--af-ease-spring), background 0.15s ease;
}
.af-btn-primary:hover { background: #fff; }
.af-btn-primary:active { transform: scale(0.99); }
/* Hero submit: zinc primary + Bullmania-style shine sweep */
.af-hero-form-row .af-hero-cta.af-btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 0.75rem;
  background: #f4f4f5;
  color: #09090b;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  padding: 0.85rem 1.1rem;
  min-height: 3rem;
  height: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: transform 0.15s var(--af-ease-spring), background 0.15s ease, box-shadow 0.15s ease;
}
.af-hero-form-row .af-hero-cta.af-btn-primary > * {
  position: relative;
  z-index: 1;
}
.af-hero-form-row .af-hero-cta.af-btn-primary::after {
  content: "";
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: -70%;
  width: 46%;
  z-index: 0;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.35) 28%,
    rgba(255, 255, 255, 0.85) 50%,
    rgba(255, 255, 255, 0.35) 72%,
    rgba(255, 255, 255, 0)
  );
  animation: afHeroCtaShine 4s ease-in-out infinite;
}
.af-hero-form-row .af-hero-cta.af-btn-primary:hover {
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.af-hero-form-row .af-hero-cta.af-btn-primary:active {
  transform: scale(0.98);
}
@keyframes afHeroCtaShine {
  0%, 58% { transform: translateX(0); opacity: 0; }
  60% { opacity: 1; }
  78% { transform: translateX(400%); opacity: 1; }
  79%, 100% { transform: translateX(400%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .af-hero-form-row .af-hero-cta.af-btn-primary::after {
    animation: none;
    opacity: 0;
  }
}
.af-mono-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--af-mono);
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: #a1a1aa;
  border: 1px solid var(--af-hairline);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  background: rgba(9, 9, 11, 0.55);
}
.af-status-pass,
.af-status-warn,
.af-status-fail {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--af-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  border: 1px solid;
}
.af-status-pass {
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}
.af-status-warn {
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.2);
}
.af-status-fail {
  color: #fb7185;
  background: rgba(244, 63, 94, 0.1);
  border-color: rgba(244, 63, 94, 0.2);
}

/* Hero AI ticker */
.af-ticker {
  display: inline-flex;
  vertical-align: baseline;
  height: 1.15em;
  overflow: hidden;
  color: #34d399;
}
.af-ticker__inner {
  display: flex;
  flex-direction: column;
  animation: afTicker 12s var(--af-ease-spring) infinite;
}
.af-ticker__inner span {
  height: 1.15em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
@keyframes afTicker {
  0%, 16% { transform: translateY(0); }
  20%, 36% { transform: translateY(-1.15em); }
  40%, 56% { transform: translateY(-2.3em); }
  60%, 76% { transform: translateY(-3.45em); }
  80%, 96% { transform: translateY(-4.6em); }
  100% { transform: translateY(0); }
}

/* Dual-state compare */
.af-compare {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 768px) {
  .af-compare { grid-template-columns: 1fr 1fr; gap: 1rem; }
}
.af-compare__col {
  border: 1px solid var(--af-hairline);
  border-radius: var(--af-radius-bento);
  background: var(--af-surface-60);
  padding: 1rem 1.1rem;
  min-height: 12rem;
}
.af-compare__label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--af-muted);
  font-weight: 700;
  margin: 0 0 0.65rem;
}
.af-compare__soup {
  font-family: var(--af-mono);
  font-size: 0.7rem;
  color: #71717a;
  line-height: 1.45;
  word-break: break-all;
}
.af-compare__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  font-family: var(--af-mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
  color: #a1a1aa;
}
.af-compare__steps li.is-ok { color: #34d399; }

/* Dual-lane race Micro-UI (cite readiness; CSS only) */
.af-compare__lane-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}
.af-compare__lane-head .af-compare__label {
  margin: 0;
}
.af-compare__spin {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  border: 2px solid rgba(52, 211, 153, 0.25);
  border-top-color: #34d399;
  flex-shrink: 0;
  animation: afCompareSpin 0.9s linear infinite;
}
.af-compare__spin--stall {
  border-color: rgba(251, 113, 133, 0.25);
  border-top-color: #fb7185;
  animation-duration: 2.8s;
  opacity: 0.7;
}
.af-compare__step {
  opacity: 0;
  transform: translateY(4px);
  animation: afCompareStep 0.45s var(--af-ease-spring) forwards;
  animation-delay: calc(0.35s + (var(--i, 0) * 0.35s));
}
@keyframes afCompareSpin {
  to { transform: rotate(360deg); }
}
@keyframes afCompareStep {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .af-compare__spin,
  .af-compare__spin--stall { animation: none; }
  .af-compare__step {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* Theme toggle (footer) */
.af-theme-toggle {
  appearance: none;
  border: 1px solid var(--af-hairline);
  background: transparent;
  color: var(--af-muted);
  font-size: 0.75rem;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
}
.af-theme-toggle:hover { color: var(--af-ink); }
html.af-theme-light body.af-page,
html.af-theme-light .hero-bg {
  --af-root: #faf9f6;
  --af-surface: #ffffff;
  --af-surface-60: #ffffff;
  --af-ink: #18181b;
  --af-muted: rgba(82, 82, 91, 0.92);
  --af-hairline: rgba(228, 228, 231, 0.95);
  background-color: var(--af-root);
  color: var(--af-ink);
}
