/* Intelysis landing: black and white, with a single ASCII texture in the hero. */

:root {
  --color-fd-background: #ffffff;
  --color-fd-foreground: #0a0a0a;
  --color-fd-card: #ffffff;
  --color-fd-card-foreground: #0a0a0a;
  --color-fd-popover: #ffffff;
  --color-fd-popover-foreground: #0a0a0a;
  --color-fd-primary: #0a0a0a;
  --color-fd-primary-foreground: #ffffff;
  --color-fd-secondary: #f5f5f5;
  --color-fd-secondary-foreground: #0a0a0a;
  --color-fd-muted: #f5f5f5;
  --color-fd-muted-foreground: #525252;
  --color-fd-accent: #f5f5f5;
  --color-fd-accent-foreground: #0a0a0a;
  --color-fd-border: #e5e5e5;
  --color-fd-ring: #0a0a0a;
}

html.dark {
  --color-fd-background: #0a0a0a;
  --color-fd-foreground: #f5f5f5;
  --color-fd-card: #141414;
  --color-fd-card-foreground: #f5f5f5;
  --color-fd-popover: #141414;
  --color-fd-popover-foreground: #f5f5f5;
  --color-fd-primary: #f5f5f5;
  --color-fd-primary-foreground: #0a0a0a;
  --color-fd-secondary: #1c1c1c;
  --color-fd-secondary-foreground: #f5f5f5;
  --color-fd-muted: #1c1c1c;
  --color-fd-muted-foreground: #a3a3a3;
  --color-fd-accent: #1c1c1c;
  --color-fd-accent-foreground: #f5f5f5;
  --color-fd-border: #2a2a2a;
  --color-fd-ring: #ffffff;
}

html,
body {
  background: var(--color-fd-background);
  color: var(--color-fd-foreground);
}

body {
  transition: background-color 220ms ease, color 220ms ease;
}

/* ---------------------------------------------------------------- header */
header {
  background: color-mix(in srgb, var(--color-fd-background) 94%, transparent);
  border-bottom-color: var(--color-fd-border) !important;
}

header a[data-slot="navigation-menu-link"]:hover,
header button:hover {
  color: var(--color-fd-foreground);
}

header a[data-slot="navigation-menu-link"],
header button[data-slot="navigation-menu-trigger"],
header a[href="/login"] {
  color: #404040 !important;
}

html.dark header a[data-slot="navigation-menu-link"],
html.dark header button[data-slot="navigation-menu-trigger"],
html.dark header a[href="/login"] {
  color: #d4d4d4 !important;
}

header a[href="/signup"] {
  background: var(--color-fd-primary) !important;
  color: var(--color-fd-primary-foreground) !important;
  border-color: transparent !important;
}

header a[href="/signup"]:hover {
  background: #262626 !important;
}

html.dark header a[href="/signup"]:hover {
  background: #ffffff !important;
}

/* ------------------------------------------------------------------ hero */
#hero {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-bottom: 1px solid var(--color-fd-border);
}

html.dark #hero {
  background: #0a0a0a;
}

.hero-ascii {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  opacity: 0.55;
  filter: grayscale(1);
}

html.dark .hero-ascii {
  opacity: 0.38;
  filter: grayscale(1) invert(1);
}

#hero > div {
  position: relative;
  z-index: 1;
}

#hero h1 {
  color: #0a0a0a;
}

html.dark #hero h1 {
  color: #f5f5f5;
}

#hero h1 .accent {
  color: inherit;
}

.hero-badge {
  background: #ffffff !important;
  border-color: #d4d4d4 !important;
  color: #404040 !important;
}

html.dark .hero-badge {
  background: #141414 !important;
  border-color: #333333 !important;
  color: #d4d4d4 !important;
}

#hero a[href="/signup"] {
  background: #0a0a0a !important;
  color: #ffffff !important;
  border-color: transparent !important;
}

#hero a[href="/signup"]:hover {
  background: #262626 !important;
}

html.dark #hero a[href="/signup"] {
  background: #f5f5f5 !important;
  color: #0a0a0a !important;
}

#hero a[href="#proof"] {
  background: #ffffff !important;
  border-color: #d4d4d4 !important;
  color: #0a0a0a !important;
}

#hero a[href="#proof"]:hover {
  background: #f5f5f5 !important;
}

html.dark #hero a[href="#proof"] {
  background: #141414 !important;
  border-color: #333333 !important;
  color: #f5f5f5 !important;
}

#hero article {
  border-color: #d4d4d4 !important;
  box-shadow: 0 28px 80px -36px rgba(0, 0, 0, 0.28);
}

html.dark #hero article {
  border-color: #333333 !important;
  box-shadow: 0 28px 80px -36px rgba(0, 0, 0, 0.8);
}

#hero article > div:first-child {
  background: #f5f5f5 !important;
  border-color: #e5e5e5 !important;
}

html.dark #hero article > div:first-child {
  background: #1c1c1c !important;
  border-color: #2a2a2a !important;
}

#hero article > div:first-child span[class*="bg-orange-500"] {
  background: #0a0a0a !important;
}

#hero img {
  filter: grayscale(1);
}

html.dark #hero article > div:first-child span[class*="bg-orange-500"] {
  background: #f5f5f5 !important;
}

/* The reference mockup ships small status colours. Keep the page monochrome
   without flattening the hierarchy: desaturate artwork rather than recolor it. */
#hero article img,
#hero article svg,
#features svg,
#features img,
#proof svg,
#pricing svg {
  filter: grayscale(1);
}

/* The trace rows read as a short list. They enter once, then stay put. */
@media (prefers-reduced-motion: no-preference) {
  .hero-trace > .flex {
    animation: hero-row-in 520ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero-trace > .flex:nth-child(2) {
    animation-delay: 80ms;
  }

  .hero-trace > .flex:nth-child(3) {
    animation-delay: 160ms;
  }
}

@keyframes hero-row-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ------------------------------------------------------------ logo strip */
section[aria-label="Trusted by"] {
  background: #fafafa;
}

html.dark section[aria-label="Trusted by"] {
  background: #0a0a0a;
}

/* --------------------------------------------------------------- content */
#features h2,
#proof h2,
#pricing h2,
#faq h2 {
  color: #0a0a0a;
}

html.dark #features h2,
html.dark #proof h2,
html.dark #pricing h2,
html.dark #faq h2 {
  color: #f5f5f5;
}

/* -------------------------------------------------------------- quote band */
.quote-band {
  background: #0a0a0a;
  color: #ffffff;
  border-top: 1px solid #262626;
  border-bottom: 1px solid #262626;
}

.quote-band blockquote p {
  color: #ffffff;
}

.quote-band blockquote footer p:first-child {
  color: #ffffff !important;
}

.quote-band blockquote footer p:last-child {
  color: #a3a3a3 !important;
}

blockquote p {
  color: #0a0a0a;
}

/* ---------------------------------------------------------------- metrics */
#proof {
  background: #fafafa;
}

html.dark #proof {
  background: #141414;
}

/* --------------------------------------------------------------- pricing */
#pricing {
  background: #fafafa;
}

html.dark #pricing {
  background: #0a0a0a;
}

#pricing .border-blue-500 {
  border-color: #0a0a0a !important;
}

html.dark #pricing .border-blue-500 {
  border-color: #f5f5f5 !important;
}

#pricing .bg-blue-500 {
  background-color: #0a0a0a !important;
  color: #ffffff !important;
}

#pricing .bg-blue-50 {
  background-color: #0a0a0a !important;
  color: #ffffff !important;
  border-color: #0a0a0a !important;
}

html.dark #pricing .bg-blue-50 {
  background-color: #f5f5f5 !important;
  color: #0a0a0a !important;
  border-color: #f5f5f5 !important;
}

html.dark #pricing .bg-blue-500 {
  background-color: #f5f5f5 !important;
  color: #0a0a0a !important;
}

#pricing .text-blue-600,
#pricing .text-blue-400 {
  color: #0a0a0a !important;
}

html.dark #pricing .text-blue-600,
html.dark #pricing .text-blue-400 {
  color: #f5f5f5 !important;
}

#pricing .bg-blue-50.text-blue-600 {
  color: #ffffff !important;
}

html.dark #pricing .bg-blue-50.text-blue-600 {
  color: #0a0a0a !important;
}

#pricing a[data-slot="button"]:hover {
  border-color: #0a0a0a !important;
}

/* ------------------------------------------------------------------ faq */
#faq {
  background: var(--color-fd-background);
}

/* --------------------------------------------------------------- footer */
footer {
  background: #0a0a0a !important;
  color: #f5f5f5;
}

footer a:hover {
  color: #ffffff !important;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #333333;
  background: transparent;
  color: #f5f5f5;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.theme-toggle:hover {
  background: #1c1c1c;
  border-color: #525252;
}

.theme-toggle svg {
  display: block;
}

.theme-toggle .theme-moon {
  display: none;
}

html.dark .theme-toggle .theme-sun {
  display: none;
}

html.dark .theme-toggle .theme-moon {
  display: block;
}

@media (max-width: 767px) {
  .theme-toggle {
    font-size: 11px;
    padding: 6px 10px;
  }
}

/* ------------------------------------------------------- navigation menus */
.nav-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 70;
  min-width: 220px;
  padding: 6px;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms cubic-bezier(0.16, 1, 0.3, 1), visibility 160ms;
}

html.dark .nav-submenu {
  border-color: #2a2a2a;
  background: #141414;
  box-shadow: 0 18px 50px -24px rgba(0, 0, 0, 0.9);
}

.nav-submenu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-submenu a {
  display: block;
  padding: 9px 10px;
  border-radius: 7px;
  color: #404040;
  font-size: 12.5px;
  text-decoration: none;
  transition: background-color 140ms ease, color 140ms ease;
}

.nav-submenu a:hover,
.nav-submenu a:focus-visible {
  background: #f5f5f5;
  color: #0a0a0a;
  outline: none;
}

html.dark .nav-submenu a {
  color: #d4d4d4;
}

html.dark .nav-submenu a:hover,
html.dark .nav-submenu a:focus-visible {
  background: #1c1c1c;
  color: #ffffff;
}

/* ----------------------------------------------- illustrations & reveals */
html.motion-ok .reveal-init {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 620ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 620ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

html.motion-ok .reveal-init.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html.motion-ok .feature-float {
  animation: feature-float 7s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

@keyframes feature-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

#proof.proof-inview svg {
  animation: chart-rise 850ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes chart-rise {
  from {
    opacity: 0.25;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#faq [role="region"] {
  will-change: height;
}

@media (prefers-reduced-motion: reduce) {
  html.motion-ok .reveal-init,
  html.motion-ok .feature-float,
  #proof.proof-inview svg {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* One real dashboard, not a stack of mock panels. */
#hero .hero-dashboard {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d4d4d4;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 28px 80px -36px rgba(0, 0, 0, 0.28);
  filter: grayscale(1) contrast(1.02);
  animation: hero-dashboard-in 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

html.dark #hero .hero-dashboard {
  border-color: #333333;
  box-shadow: 0 28px 80px -36px rgba(0, 0, 0, 0.8);
}

@keyframes hero-dashboard-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  #hero .hero-dashboard { animation: none; }
}

/* Keep every accent monochrome. The source template used blue/green for
   "popular" and "new" pills; black and white is the brand rule here. */
main [class*="bg-blue-"],
main [class*="bg-green-"],
main [class*="bg-emerald-"],
main [class*="bg-teal-"],
main [class*="bg-orange-"] {
  background-color: #0a0a0a !important;
  color: #ffffff !important;
}

main [class*="text-blue-"],
main [class*="text-green-"],
main [class*="text-emerald-"],
main [class*="text-teal-"],
main [class*="text-orange-"] {
  color: #0a0a0a !important;
}

main [class*="border-blue-"],
main [class*="border-green-"],
main [class*="border-emerald-"],
main [class*="border-teal-"] {
  border-color: #0a0a0a !important;
}

html.dark main [class*="bg-blue-"],
html.dark main [class*="bg-green-"],
html.dark main [class*="bg-emerald-"],
html.dark main [class*="bg-teal-"],
html.dark main [class*="bg-orange-"] {
  background-color: #f5f5f5 !important;
  color: #0a0a0a !important;
}

html.dark main [class*="text-blue-"],
html.dark main [class*="text-green-"],
html.dark main [class*="text-emerald-"],
html.dark main [class*="text-teal-"],
html.dark main [class*="text-orange-"] {
  color: #f5f5f5 !important;
}

html.dark main [class*="border-blue-"],
html.dark main [class*="border-green-"],
html.dark main [class*="border-emerald-"],
html.dark main [class*="border-teal-"] {
  border-color: #f5f5f5 !important;
}

footer [class*="bg-blue-"],
footer [class*="bg-green-"],
footer [class*="bg-emerald-"] {
  background-color: #ffffff !important;
  color: #0a0a0a !important;
}

footer [class*="text-blue-"],
footer [class*="text-green-"],
footer [class*="text-emerald-"] {
  color: #ffffff !important;
}

/* Put the switch where it is actually findable: the top-right of the footer. */
footer .theme-toggle {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 2;
}

@media (max-width: 640px) {
  footer .theme-toggle {
    top: 16px;
    right: 16px;
  }
}

/* Hide the native scrollbar; Lenis still scrolls the document. */
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Lenis requires the document to keep its natural height. */
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

/* Plan ticks are monochrome in both themes. */
#pricing svg {
  filter: none !important;
  color: #0a0a0a !important;
}
#pricing [class*='text-emerald-'],
#pricing [class*='text-green-'],
#pricing [class*='text-teal-'] {
  color: #0a0a0a !important;
}
#pricing svg.lucide-minus {
  opacity: 0.38;
}
html.dark #pricing svg,
html.dark #pricing [class*='text-emerald-'],
html.dark #pricing [class*='text-green-'],
html.dark #pricing [class*='text-teal-'] {
  color: #f5f5f5 !important;
}

/* Logo strip: ten real wordmarks on interactive pixel cards. */
.logo-strip-frame-wrap {
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px;
}
.logo-strip-frame {
  display: block;
  width: 100%;
  height: 192px;
  border: 0;
  background: #ffffff;
}
html.dark .logo-strip-frame-wrap {
  border-color: #262626;
}
@media (max-width: 700px) {
  .logo-strip-frame {
    height: 400px;
  }
}

/* Illustrations breathe even after the entrance reveal. */
#features .relative.grid > div .rounded-2xl,
#features .grid.divide-y > div .rounded-xl {
  animation: illustration-breathe 7.5s ease-in-out infinite;
  transform-origin: 50% 70%;
}
html.motion-ok #features .relative.grid > div:nth-child(2) .rounded-2xl,
html.motion-ok #features .grid.divide-y > div:nth-child(2) .rounded-xl {
  animation-delay: -2.4s;
}
html.motion-ok #features .relative.grid > div:nth-child(3) .rounded-2xl,
html.motion-ok #features .grid.divide-y > div:nth-child(3) .rounded-xl {
  animation-delay: -4.8s;
}
@keyframes illustration-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.004); }
}

/* FAQ transition is explicit so the measured height never snaps. */
#faq [role='region'] {
  overflow: hidden;
  transition:
    height 380ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 280ms ease;
}
#faq [aria-expanded='true'] > svg {
  transform: rotate(45deg);
}
#faq [aria-expanded] > svg {
  transition: transform 240ms ease;
}

/* A slow scan across each feature illustration, so the cards read as live UI. */
#features .relative.grid > div .rounded-2xl,
#features .grid.divide-y > div .rounded-xl {
  position: relative;
  overflow: hidden;
}
#features .relative.grid > div .rounded-2xl::after,
#features .grid.divide-y > div .rounded-xl::after {
  content: "";
  position: absolute;
  top: -30%;
  bottom: -30%;
  left: -35%;
  z-index: 3;
  width: 22%;
  background: rgba(10, 10, 10, 0.055);
  transform: skewX(-14deg);
  animation: illustration-scan 7s ease-in-out infinite;
  pointer-events: none;
}
html.dark #features .relative.grid > div .rounded-2xl::after,
html.dark #features .grid.divide-y > div .rounded-xl::after {
  background: rgba(255, 255, 255, 0.07);
}
@keyframes illustration-scan {
  0%, 12% { transform: translateX(0) skewX(-14deg); opacity: 0; }
  20% { opacity: 1; }
  62% { transform: translateX(620%) skewX(-14deg); opacity: 1; }
  75%, 100% { transform: translateX(620%) skewX(-14deg); opacity: 0; }
}

/* Native fallback if the smooth-scroll runtime is slow or blocked. */
html { scroll-behavior: smooth; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

/* Guaranteed entrance motion, independent of IntersectionObserver. */
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
#hero .hero-badge { animation: hero-enter 650ms cubic-bezier(0.16, 1, 0.3, 1) 80ms both; }
#hero h1 { animation: hero-enter 760ms cubic-bezier(0.16, 1, 0.3, 1) 150ms both; }
#hero h1 + p { animation: hero-enter 760ms cubic-bezier(0.16, 1, 0.3, 1) 230ms both; }
#hero .mt-8 { animation: hero-enter 760ms cubic-bezier(0.16, 1, 0.3, 1) 310ms both; }

/* Make the comparison icons unmistakable in light mode. */
#pricing svg.lucide-check {
  width: 16px !important;
  height: 16px !important;
  opacity: 1 !important;
  color: #0a0a0a !important;
  stroke: #0a0a0a !important;
}
#pricing svg.lucide-check path { stroke: #0a0a0a !important; stroke-width: 2.2 !important; }
html.dark #pricing svg.lucide-check {
  color: #ffffff !important;
  stroke: #ffffff !important;
}
html.dark #pricing svg.lucide-check path { stroke: #ffffff !important; }
html.dark #pricing span[style*="Most popular"] {
  background: #ffffff !important;
  color: #0a0a0a !important;
  border-color: #ffffff !important;
}
#pricing svg.lucide-minus path { stroke: #a3a3a3 !important; }

/* Phone layout: the desktop dashboard screenshot is unreadable at 390px. */
.hero-mobile-dash { display: none; }

@media (max-width: 767px) {
  #hero {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  #hero h1 {
    font-size: 2.15rem;
    line-height: 1.04;
    letter-spacing: -0.035em;
  }
  .hero-badge {
    max-width: 92%;
    padding-right: 10px;
    font-size: 10.5px;
    line-height: 1.3;
    text-align: left;
  }
  .hero-dashboard { display: none !important; }
  .hero-ascii { opacity: 0.5; }
  .hero-mobile-dash {
    display: block;
    width: 100%;
    margin: 1.6rem auto 0;
    padding: 14px;
    border: 1px solid #262626;
    border-radius: 12px;
    background: #0b0b0b;
    color: #f5f5f5;
    text-align: left;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  }
  .hmd-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 11px;
    border-bottom: 1px solid #242424;
  }
  .hmd-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.02em;
  }
  .hmd-brand img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
  .hmd-live {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #a3a3a3;
    font-size: 8px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .hmd-live i { width: 5px; height: 5px; border-radius: 50%; background: #f5f5f5; }
  .hmd-hello { margin-top: 13px; font-size: 18px; font-weight: 600; letter-spacing: -0.03em; }
  .hmd-sub { margin: 3px 0 0; color: #8a8a8a; font-size: 9px; line-height: 1.45; }
  .hmd-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    margin-top: 12px;
  }
  .hmd-grid > div {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #292929;
    border-radius: 8px;
    background: #111;
  }
  .hmd-grid span { display: block; color: #8a8a8a; font-size: 8px; }
  .hmd-grid b { display: block; margin-top: 3px; font-size: 17px; font-weight: 600; letter-spacing: -0.03em; }
  .hmd-grid small { display: block; margin-top: 2px; color: #6f6f6f; font-size: 7.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hmd-chart {
    margin-top: 8px;
    padding: 9px 10px 5px;
    border: 1px solid #292929;
    border-radius: 8px;
    background: #111;
  }
  .hmd-chart > span { color: #a3a3a3; font-size: 8px; }
  .hmd-chart svg { display: block; width: 100%; height: 44px; margin-top: 2px; }
  .hmd-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 2px;
    border-bottom: 1px solid #1e1e1e;
    color: #c9c9c9;
    font-size: 9px;
  }
  .hmd-row:last-child { border-bottom: 0; padding-bottom: 0; }
  .hmd-row b { color: #f5f5f5; font-weight: 500; white-space: nowrap; }
}

/* Individual illustration elements get their own motion, not one card wobble. */
@keyframes art-avatar {
  0%, 100% { transform: translateY(0); opacity: 0.92; }
  50% { transform: translateY(-2px); opacity: 1; }
}
@keyframes art-tile {
  0%, 100% { transform: translateY(0); border-color: rgba(10, 10, 10, 0.18); }
  50% { transform: translateY(-3px); border-color: #0a0a0a; }
}
@keyframes art-row {
  0%, 100% { opacity: 0.55; transform: translateX(0); }
  35% { opacity: 1; transform: translateX(2px); }
}
@keyframes art-badge {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.05); }
}
@keyframes art-key {
  0%, 100% { box-shadow: 0 0 0 0 rgba(10, 10, 10, 0); }
  50% { box-shadow: 0 0 0 2px rgba(10, 10, 10, 0.1); }
}
.anim-avatar { animation: art-avatar 4.4s ease-in-out infinite; }
.anim-tile { animation: art-tile 4s ease-in-out infinite; }
.anim-row { animation: art-row 4.8s ease-in-out infinite; }
.anim-badge { display: inline-block; animation: art-badge 3.4s ease-in-out infinite; }
.anim-key { animation: art-key 3.8s ease-in-out infinite; }

/* No single card-level loop: the motion lives on the elements inside each illustration. */
#features .relative.grid > div .rounded-2xl,
#features .grid.divide-y > div .rounded-xl {
  animation: none !important;
}
#features .relative.grid > div .rounded-2xl::after,
#features .grid.divide-y > div .rounded-xl::after {
  animation: none !important;
  opacity: 0 !important;
}

/* ------------------------------------------------ audit fixes (Nov 2026) */
/* The marquee is evidence, not a customer wall. Do not let real brand marks
   or people's names imply an endorsement. */
.result-mark {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  color: #737373;
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.16em;
}
html.dark .result-mark { color: #a3a3a3; }

/* Fade the marquee edges so partially visible cards read as intentional flow. */
#testimonials .group.relative.flex.overflow-hidden::before,
#testimonials .group.relative.flex.overflow-hidden::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 72px;
  pointer-events: none;
}
#testimonials .group.relative.flex.overflow-hidden::before {
  left: 0;
  background: linear-gradient(to right, var(--color-fd-background), transparent);
}
#testimonials .group.relative.flex.overflow-hidden::after {
  right: 0;
  background: linear-gradient(to left, var(--color-fd-background), transparent);
}

/* Plan ticks were black on black after the monochrome pass. Keep a real check
   mark: white glyph on black disc, and the inverse in night mode. */
#pricing span[class*="bg-emerald"] {
  background-color: #0a0a0a !important;
  color: #ffffff !important;
}
#pricing span[class*="bg-emerald"] svg,
#pricing span[class*="bg-emerald"] svg * {
  color: #ffffff !important;
  stroke: #ffffff !important;
}
#pricing span[class*="text-emerald"] {
  color: #ffffff !important;
}
html.dark #pricing span[class*="bg-emerald"] {
  background-color: #f5f5f5 !important;
  color: #0a0a0a !important;
}
html.dark #pricing span[class*="bg-emerald"] svg,
html.dark #pricing span[class*="bg-emerald"] svg * {
  color: #0a0a0a !important;
  stroke: #0a0a0a !important;
}
html.dark #pricing span[class*="text-emerald"] {
  color: #0a0a0a !important;
}

/* The popular pill must be unmistakable at a glance. */
#pricing .popular-badge {
  background: #0a0a0a !important;
  color: #ffffff !important;
  border-color: #0a0a0a !important;
}
html.dark #pricing .popular-badge {
  background: #f5f5f5 !important;
  color: #0a0a0a !important;
  border-color: #f5f5f5 !important;
}

/* Give the nav triggers a real hover affordance and rotate the chevron. */
header button[data-slot="navigation-menu-trigger"],
header a[data-slot="navigation-menu-link"] {
  cursor: pointer;
  border-radius: 7px;
  padding: 6px 8px;
  transition: background-color 150ms ease, color 150ms ease;
}
header button[data-slot="navigation-menu-trigger"]:hover,
header a[data-slot="navigation-menu-link"]:hover {
  background: #f5f5f5;
}
html.dark header button[data-slot="navigation-menu-trigger"]:hover,
html.dark header a[data-slot="navigation-menu-link"]:hover {
  background: #1c1c1c;
}
header button[data-slot="navigation-menu-trigger"] svg {
  transition: transform 180ms ease;
}
header button[data-slot="navigation-menu-trigger"][aria-expanded="true"] svg {
  transform: rotate(180deg);
}

/* Result evidence is a plain grid: no card is ever half-cut by a marquee. */
#testimonials .relative.grid > figure {
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), border-color 200ms ease, box-shadow 260ms ease;
}
#testimonials .relative.grid > figure:hover {
  transform: translateY(-4px);
  border-color: #0a0a0a;
  box-shadow: 0 18px 40px -28px rgba(0, 0, 0, 0.4);
}
html.dark #testimonials .relative.grid > figure:hover {
  border-color: #f5f5f5;
}
@media (prefers-reduced-motion: no-preference) {
  #testimonials .relative.grid > figure {
    animation: result-card-in 560ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  #testimonials .relative.grid > figure:nth-child(2) { animation-delay: 70ms; }
  #testimonials .relative.grid > figure:nth-child(3) { animation-delay: 140ms; }
  #testimonials .relative.grid > figure:nth-child(4) { animation-delay: 210ms; }
  #testimonials .relative.grid > figure:nth-child(5) { animation-delay: 280ms; }
  #testimonials .relative.grid > figure:nth-child(6) { animation-delay: 350ms; }
}
@keyframes result-card-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Result cards carry a document glyph, not a stock portrait. */
.result-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid #e5e5e5;
  border-radius: 9px;
  color: #0a0a0a;
  background: #fafafa;
}
.result-icon svg { width: 16px; height: 16px; }
html.dark .result-icon {
  border-color: #2a2a2a;
  color: #f5f5f5;
  background: #141414;
}

/* Anchor targets clear the sticky header while native smooth scrolling runs. */
#features, #proof, #testimonials, #pricing, #faq, #how {
  scroll-margin-top: 96px;
}

/* Mobile plan cards need the same differentiators as the desktop table. */
.mobile-plan-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 14px 0 2px;
  padding: 0;
  list-style: none;
  color: #525252;
  font-size: 12px;
  line-height: 1.4;
}
.mobile-plan-list li { display: flex; gap: 7px; }
.mobile-plan-list li::before {
  content: "✓";
  color: #0a0a0a;
  font-weight: 700;
  line-height: 1.4;
}
html.dark .mobile-plan-list { color: #b5b5b5; }
html.dark .mobile-plan-list li::before { color: #f5f5f5; }
html, body { overflow-x: clip; }

/* Accurate, compact plan matrix. The old template table claimed features
   (SSO, audit log, seats, concurrency) that the product does not sell. */
.pricing-matrix {
  margin-top: 8px;
  border-top: 1px solid #e5e5e5;
}
.pm-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 16px;
  align-items: center;
  min-height: 52px;
  border-bottom: 1px solid #ececec;
  color: #404040;
  font-size: 13px;
}
.pm-row > span:first-child { color: #737373; }
.pm-row > span:not(:first-child) { text-align: left; color: #0a0a0a; font-weight: 500; }
.pm-head { min-height: 44px; color: #0a0a0a; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.pm-head > span:first-child { color: #737373; }
html.dark .pricing-matrix { border-top-color: #2a2a2a; }
html.dark .pm-row { border-bottom-color: #242424; color: #d4d4d4; }
html.dark .pm-row > span:not(:first-child) { color: #f5f5f5; }

/* Final monochrome sweep for small status dots and agent marks. */
main [class*="bg-purple"], main [class*="bg-pink"], main [class*="bg-amber"], main [class*="bg-indigo"],
main [class*="bg-rose"], main [class*="bg-cyan"] {
  background-color: #0a0a0a !important;
  color: #ffffff !important;
}
main [class*="text-purple"], main [class*="text-pink"], main [class*="text-amber"], main [class*="text-indigo"],
main [class*="text-rose"], main [class*="text-cyan"] { color: #0a0a0a !important; }
html.dark main [class*="bg-purple"], html.dark main [class*="bg-pink"], html.dark main [class*="bg-amber"],
html.dark main [class*="bg-indigo"], html.dark main [class*="bg-rose"], html.dark main [class*="bg-cyan"] {
  background-color: #f5f5f5 !important;
  color: #0a0a0a !important;
}
html.dark main [class*="text-purple"], html.dark main [class*="text-pink"], html.dark main [class*="text-amber"],
html.dark main [class*="text-indigo"], html.dark main [class*="text-rose"], html.dark main [class*="text-cyan"] {
  color: #f5f5f5 !important;
}
section img[src*="brand-icons"] {
  filter: none;
  object-fit: contain;
}
/* Wordmarks and tall marks need their own box inside the 56px orbit slots. */
section img[src*="brand-icons/aider.svg"] { width: 60px !important; height: auto !important; max-height: 30px; }
section img[src*="brand-icons/hermes-mark.png"] { width: 32px !important; height: 32px !important; }
section img[src*="brand-icons/codex.svg"] { width: 30px !important; height: 30px !important; }

/* Proof curve draws itself once the section is in view. */
#proof .proof-curve {
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
}
#proof.proof-inview .proof-curve {
  animation: proof-draw 1.8s cubic-bezier(.16,1,.3,1) .05s forwards;
}
#proof .proof-area { opacity: 0; }
#proof.proof-inview .proof-area {
  animation: proof-area-in 1.2s ease-out .35s forwards;
}
#proof .proof-metric {
  opacity: 0;
  transform: translateY(10px);
}
#proof.proof-inview .proof-metric {
  animation: proof-metric-in .7s cubic-bezier(.16,1,.3,1) forwards;
}
#proof.proof-inview .proof-metric:nth-child(2) { animation-delay: .08s; }
#proof.proof-inview .proof-metric:nth-child(3) { animation-delay: .16s; }
#proof.proof-inview .proof-metric:nth-child(4) { animation-delay: .24s; }
@keyframes proof-draw { to { stroke-dashoffset: 0; } }
@keyframes proof-area-in { to { opacity: 1; } }
@keyframes proof-metric-in { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  #proof .proof-curve { stroke-dashoffset: 0; }
  #proof .proof-area, #proof .proof-metric { opacity: 1; transform: none; }
}

/* Back to top: one quiet control after the first screen. */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #0a0a0a;
  border-radius: 999px;
  background: #0a0a0a;
  color: #ffffff;
  box-shadow: 0 10px 28px -16px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, background-color 150ms ease, color 150ms ease;
  cursor: pointer;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: #ffffff; color: #0a0a0a; }
.back-to-top:focus-visible { outline: 2px solid #0a0a0a; outline-offset: 3px; }
@media (max-width: 640px) {
  .back-to-top { right: 16px; bottom: 16px; width: 40px; height: 40px; }
}

/* PeakChart-derived rim: a thin blue edge and inner bottom light, not an outer bloom. */
.glow-rim {
  position: relative;
  isolation: isolate;
  border-width: 1px !important;
  border-style: solid !important;
  border-color: rgba(79, 142, 247, 0.82) !important;
  box-shadow:
    0 0 0 1px rgba(22, 120, 255, 0.10),
    0 0 16px -5px rgba(22, 120, 255, 0.64),
    inset 0 0 0 1px rgba(140, 180, 255, 0.16),
    inset 0 -9px 18px -16px rgba(22, 120, 255, 0.90);
  transition: border-color 180ms ease, box-shadow 220ms ease, background-color 180ms ease;
  animation: glow-rim-breathe 5.6s ease-in-out infinite;
}
.glow-rim::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 2;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, rgba(194, 255, 255, 0.92), rgba(79, 142, 247, 0.74) 38%, rgba(22, 120, 255, 0.18) 72%, rgba(0, 13, 30, 0.92));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.9;
}
.glow-rim:hover {
  border-color: rgba(143, 183, 255, 0.98) !important;
  box-shadow:
    0 0 0 1px rgba(79, 142, 247, 0.24),
    0 0 24px -5px rgba(22, 120, 255, 0.82),
    inset 0 0 0 1px rgba(180, 210, 255, 0.24),
    inset 0 -10px 20px -14px rgba(22, 120, 255, 1);
  animation: none;
}
.glow-rim:focus-visible {
  outline: 2px solid #8fb7ff;
  outline-offset: 3px;
}
@keyframes glow-rim-breathe {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(22, 120, 255, 0.10),
      0 0 16px -5px rgba(22, 120, 255, 0.60),
      inset 0 0 0 1px rgba(140, 180, 255, 0.14),
      inset 0 -9px 18px -16px rgba(22, 120, 255, 0.86);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(22, 120, 255, 0.14),
      0 0 21px -5px rgba(22, 120, 255, 0.78),
      inset 0 0 0 1px rgba(160, 198, 255, 0.22),
      inset 0 -10px 20px -15px rgba(22, 120, 255, 1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .glow-rim { animation: none; }
}

/* The landing's own header/hero rules set a transparent border with higher specificity. */
header a.glow-rim,
#hero a.glow-rim,
#pricing a.glow-rim,
main a.glow-rim,
header button.glow-rim,
main button.glow-rim {
  border-color: rgba(79, 142, 247, 0.82) !important;
}
header a.glow-rim:hover,
#hero a.glow-rim:hover,
#pricing a.glow-rim:hover,
main a.glow-rim:hover,
header button.glow-rim:hover,
main button.glow-rim:hover {
  border-color: rgba(143, 183, 255, 0.98) !important;
}

/* Hero badge rim: the PeakChart edge treatment. A thin blue-white border, a
   soft inner bottom light, and a glassy top highlight. Deliberately confined
   to the badge's edge; no bloom over the headline. */
#hero .hero-badge {
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(79, 142, 247, 0.8) !important;
  background: color-mix(in srgb, var(--color-fd-card, #fff) 94%, #1678ff 6%) !important;
  box-shadow:
    0 0 0 1px rgba(22, 120, 255, 0.10),
    0 0 18px -6px rgba(22, 120, 255, 0.62),
    inset 0 0 0 1px rgba(180, 210, 255, 0.22),
    inset 0 -9px 18px -16px rgba(22, 120, 255, 0.9);
}
#hero .hero-badge::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(194, 255, 255, 0.95), rgba(79, 142, 247, 0.72) 38%, rgba(22, 120, 255, 0.12) 72%, rgba(0, 13, 30, 0.8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.9;
}
#hero .hero-badge svg {
  color: #1678ff;
}

/* ChromeArcs backdrop for the measured-run quote band. The iframe is inert:
   the artwork is texture, not a second surface competing with the quote. */
.quote-band { position: relative; isolation: isolate; overflow: hidden; }
.quote-chrome-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.92;
}
.quote-chrome-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(10, 10, 10, 0.18), rgba(10, 10, 10, 0.72) 72%, rgba(10, 10, 10, 0.9));
}
.quote-chrome-bg iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.quote-band blockquote { position: relative; z-index: 1; }
.quote-band { min-height: 34rem; }
@media (max-width: 640px) { .quote-band { min-height: 26rem; } }

/* Editorial quote band over the ChromeArcs artwork. No solid footer bar: the
   attribution is now a metric row on the same surface as the artwork. */
.quote-band footer { background: transparent !important; }
.quote-band .quote-eyebrow {
  color: #a3a3a3;
  font-family: var(--font-geist-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.quote-band blockquote { margin: 1.4rem 0 0; }
.quote-band .quote-headline {
  color: #ffffff;
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}
.quote-band .quote-sub {
  color: #c7c7c7;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  margin: 1.5rem auto 0;
  max-width: 44rem;
}
.quote-band .quote-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.5rem auto 0;
  max-width: 44rem;
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 1.4rem;
  text-align: left;
}
.quote-band .quote-stats span {
  color: #ffffff;
  display: block;
  font-family: var(--font-geist-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}
.quote-band .quote-stats small {
  color: #a3a3a3;
  display: block;
  font-size: 0.7rem;
  line-height: 1.4;
  margin-top: 0.3rem;
}
.quote-band .quote-link {
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.45);
  padding-bottom: 0.15rem;
  transition: border-color 180ms ease, color 180ms ease;
}
.quote-band .quote-link:hover { color: #ffffff; border-color: #ffffff; }
@media (max-width: 640px) {
  .quote-band { min-height: 32rem; }
  .quote-band .quote-stats { gap: 0.75rem; }
  .quote-band .quote-stats small { font-size: 0.65rem; }
}

/* Receipt-style quote band. The ChromeArcs artwork stays; the copy is a real request report. */
.quote-band .quote-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.quote-band .quote-mark { color: #a9c8ff; }
.quote-band .quote-attrib {
  color: #a3a3a3;
  font-family: var(--font-geist-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  margin: 1.2rem auto 0;
}
@media (max-width: 640px) {
  .quote-band .quote-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-band .quote-stats small { font-size: 0.65rem; }
}
