/* fonoster.com v1 — see ../../README.md for the motion inventory. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #181818;
  --surface: #202020;
  --surface-raised: #252525;
  --surface-sunken: #121212;
  --border: #333333;
  --hl-border: rgba(255, 255, 255, 0.32);
  --text-1: #ffffff;
  --text-2: #e8e8e8;
  --text-3: #c2c2c2;
  --text-4: #8d8d8d;
  --accent: #39e19e;
  --on-accent: #011900;
  --accent-text: #39e19e;
  --danger: #f97066;
  --overlay-1: rgba(255, 255, 255, 0.04);
  --overlay-2: rgba(255, 255, 255, 0.07);
  --sunk-1: rgba(0, 0, 0, 0.2);
  --bubble-a: #333333;
  --dot: rgba(255, 255, 255, 0.13);
  --dot-hi: rgba(255, 255, 255, 0.6);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  --code-k: #82aaff;
  --code-v: #e8c07d;
  --code-p: #8d8d8d;
  --code-c: #6e6e6e;
  --code-ln: #555555;

  --font: "Poppins", system-ui, sans-serif;
  --mono: "Roboto Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 150ms;
  --dur-2: 240ms;
  --dur-3: 600ms;

  --pad: 80px;
  --gutter: max(var(--pad), calc((100vw - 1440px) / 2 + var(--pad)));
  --section: 128px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f4f4f4;
  --surface-raised: #ffffff;
  --surface-sunken: #efefef;
  --border: #e8e8e8;
  --hl-border: rgba(0, 0, 0, 0.22);
  --text-1: #252525;
  --text-2: #555555;
  --text-3: #6b6b6b;
  --text-4: #8d8d8d;
  --accent-text: #008751;
  --danger: #d92d20;
  --overlay-1: rgba(0, 0, 0, 0.03);
  --overlay-2: rgba(0, 0, 0, 0.06);
  --sunk-1: rgba(0, 0, 0, 0.03);
  --bubble-a: #e8e8e8;
  --dot: rgba(0, 0, 0, 0.1);
  --dot-hi: rgba(0, 0, 0, 0.38);
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.1);
  --code-k: #2f5bd8;
  --code-v: #9a5b00;
  --code-p: #8d8d8d;
  --code-c: #9a9a9a;
  --code-ln: #c2c2c2;
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
h1, h2, h3, p {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--text-1);
  outline-offset: 3px;
  border-radius: 6px;
}
.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.mono {
  font-family: var(--mono);
}
.br-m,
.show-m {
  display: none;
}

.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-inline: var(--pad);
}
.section {
  padding-block: var(--section);
}
section[id] {
  scroll-margin-top: 72px;
}

/* ---------- Type ---------- */
.t-display {
  font-weight: 600;
  font-size: clamp(42px, 6.1vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.t-h1 {
  font-weight: 600;
  font-size: clamp(36px, 5.6vw, 80px);
  line-height: 1.04;
  letter-spacing: -0.031em;
}
.t-h2 {
  font-weight: 600;
  font-size: clamp(32px, 3.9vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.027em;
}
.t-h3 {
  font-weight: 600;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.t-lead {
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--text-2);
}
.t-sub {
  font-size: 18px;
  color: var(--text-3);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-2);
  font: 500 13px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tag {
  padding: 2px 8px;
  border: 1px solid var(--hl-border);
  border-radius: 6px;
  font: 400 11px var(--mono);
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-3);
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: 600 15px/1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease-out), filter var(--dur-1) var(--ease-out),
    background-color var(--dur-1) var(--ease-out), border-color var(--dur-1) var(--ease-out);
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover {
  filter: brightness(1.06);
}
.btn--secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text-1);
  font-weight: 500;
}
.btn--secondary:hover {
  background: var(--surface-raised);
  border-color: var(--hl-border);
}
.btn--sm {
  height: 40px;
  padding: 0 18px;
}
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
  color: var(--text-1);
}
.arrow-link .icon {
  transition: transform var(--dur-1) var(--ease-out);
}
.arrow-link:hover .icon {
  transform: translateX(3px);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--dur-2) var(--ease-out);
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
.nav__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex;
}
.logo img {
  height: 32px;
  width: auto;
}
.logo--light,
:root[data-theme="light"] .logo--dark {
  display: none !important;
}
:root[data-theme="light"] .logo--light {
  display: block !important;
}
.nav__links {
  display: flex;
  gap: 36px;
  font-size: 15px;
}
.nav__links a {
  color: var(--text-2);
  transition: color var(--dur-1) var(--ease-out);
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--text-1);
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gh-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: 500 14px var(--mono);
  transition: border-color var(--dur-1) var(--ease-out);
}
.gh-chip:hover {
  border-color: var(--hl-border);
}
.gh-chip .i-star {
  width: 14px;
  height: 14px;
  color: var(--text-2);
}
.nav__menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: none;
  place-items: center;
  cursor: pointer;
}
.nav__menu .icon {
  width: 24px;
  height: 24px;
}
.sheet {
  border-top: 1px solid var(--border);
  padding: 12px var(--pad) 24px;
  display: grid;
  gap: 4px;
  transform-origin: top;
  animation: sheet-in var(--dur-2) var(--ease-out);
}
.sheet[hidden] {
  display: none;
}
.sheet a:not(.btn) {
  padding: 12px 0;
  font-size: 18px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}
.sheet .btn {
  margin-top: 16px;
}
@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}

/* ---------- Notice bar ----------
   A thin strip above the nav for announcements. It scrolls away and the nav stays sticky.
   It's the one blue element on the site (a transparent sky tint) so it reads apart from the green CTAs.
   The icon sits inline so it stays attached to the text when the line wraps.
   assets/js/notice.js draws the markup on every page and holds the message, link, icon, and on/off switch. */
.notice {
  --notice-bg: rgba(14, 165, 233, 0.14);
  --notice-line: rgba(14, 165, 233, 0.32);
  --notice-text: #7dd3fc;
  --notice-strong: #e0f2fe;
  --notice-icon: #38bdf8;
  background: var(--notice-bg);
  border-bottom: 1px solid var(--notice-line);
  color: var(--notice-text);
  font-size: 13px;
  line-height: 1.5;
}
:root[data-theme="light"] .notice {
  --notice-bg: rgba(14, 165, 233, 0.08);
  --notice-line: rgba(14, 165, 233, 0.26);
  --notice-text: #075985;
  --notice-strong: #0c4a6e;
  --notice-icon: #0284c7;
}
.notice__in {
  padding-block: 10px;
  text-align: center;
  text-wrap: balance;
}
.notice__icon {
  margin-right: 8px;
  vertical-align: -3px;
  color: var(--notice-icon);
}
.notice strong {
  color: var(--notice-strong);
  font-weight: 500;
}
.notice__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  color: var(--notice-strong);
  font-weight: 500;
  white-space: nowrap;
}
.notice__link span {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, currentColor 40%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-1) var(--ease-out);
}
.notice__link:hover span {
  text-decoration-color: currentColor;
}
.notice__link .icon {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-1) var(--ease-out);
}
.notice__link:hover .icon {
  transform: translateX(2px);
}
@media (max-width: 640px) {
  /* Left-aligned with a hanging indent: wrapped lines start under the text, not the icon. */
  .notice__in {
    padding-left: calc(var(--pad) + 24px);
    text-indent: -24px;
    text-align: left;
    text-wrap: pretty;
  }
  .notice__link {
    text-indent: 0;
  }
}

/* ---------- Atmosphere: dot grid + light wave ----------
   The grid matches the design at rest. A single soft line of light sweeps across it
   once shortly after load, then every 10s (the sweep itself takes ~2.2s). */
.atmos {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.dots,
.dots__wave {
  position: absolute;
  inset: 0;
  background-size: 28px 28px;
}
.dots {
  background-image: radial-gradient(circle, var(--dot) 1.1px, transparent 1.7px);
  -webkit-mask-image: radial-gradient(ellipse 65% 70% at var(--mx, 75%) var(--my, 42%), #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 65% 70% at var(--mx, 75%) var(--my, 42%), #000 0%, transparent 72%);
}
.dots__wave {
  --band: 140px;
  background-image: radial-gradient(circle, var(--dot-hi) 1.3px, transparent 1.9px);
  -webkit-mask-image: linear-gradient(100deg, transparent 0%, rgba(0, 0, 0, 0.35) 32%, #000 50%, rgba(0, 0, 0, 0.35) 68%, transparent 100%);
  mask-image: linear-gradient(100deg, transparent 0%, rgba(0, 0, 0, 0.35) 32%, #000 50%, rgba(0, 0, 0, 0.35) 68%, transparent 100%);
  -webkit-mask-size: var(--band) 100%;
  mask-size: var(--band) 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: calc(var(--band) * -1) 0;
  mask-position: calc(var(--band) * -1) 0;
  animation: wave 10s var(--ease-in-out) 0.8s infinite;
}
@keyframes wave {
  0% {
    -webkit-mask-position: calc(var(--band) * -1) 0;
    mask-position: calc(var(--band) * -1) 0;
  }
  22%,
  100% {
    -webkit-mask-position: calc(100% + var(--band)) 0;
    mask-position: calc(100% + var(--band)) 0;
  }
}
/* Heroes get a slower pass: ~4.5s across, starting every 12s. */
.hero .dots__wave,
.aphero .dots__wave {
  animation: wave-slow 12s var(--ease-in-out) 0.8s infinite;
}
@keyframes wave-slow {
  0% {
    -webkit-mask-position: calc(var(--band) * -1) 0;
    mask-position: calc(var(--band) * -1) 0;
  }
  38%,
  100% {
    -webkit-mask-position: calc(100% + var(--band)) 0;
    mask-position: calc(100% + var(--band)) 0;
  }
}
.atmos--center {
  --mx: 50%;
  --my: 32%;
}
.atmos--bottom {
  --mx: 50%;
  --my: 100%;
}

/* ---------- Home: hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero__in {
  position: relative;
  display: flex;
  align-items: center;
  gap: 64px;
  padding-block: 72px 88px;
}
.hero__copy {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  color: var(--text-2);
  transition: border-color var(--dur-1) var(--ease-out);
}
.badge:hover {
  border-color: var(--hl-border);
}
.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-2);
}
.badge .icon {
  width: 14px;
  height: 14px;
  transition: transform var(--dur-1) var(--ease-out);
}
.badge:hover .icon {
  transform: translateX(2px);
}
.ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Phone + "call me" dock. The phone is an illustration and keeps its own dark palette. */
.call-demo {
  position: relative;
  width: 560px;
  height: 584px;
  flex-shrink: 0;
}
.call-demo__glow {
  position: absolute;
  left: 20px;
  top: 10px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.07), transparent 65%);
}
.phone {
  position: absolute;
  left: 140px;
  top: 0;
  width: 280px;
  height: 580px;
  padding: 8px;
  border-radius: 48px;
  background: linear-gradient(180deg, #2c2c2c, #1c1c1c);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
  color: #fff;
}
.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 14px 20px 84px;
  border-radius: 41px;
  background: radial-gradient(140% 70% at 50% 22%, rgba(255, 255, 255, 0.08), transparent 60%), #121212;
}
.phone__island {
  position: absolute;
  top: 11px;
  left: 50%;
  width: 80px;
  height: 22px;
  margin-left: -40px;
  border-radius: 11px;
  background: #000;
}
.phone__status {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 10px 0;
  font: 600 13px var(--font);
}
.phone__status span {
  display: flex;
  gap: 5px;
}
.phone__status .icon {
  width: 14px;
  height: 14px;
}
.phone__avatar {
  position: relative;
  width: 104px;
  height: 104px;
  margin-top: 34px;
  display: grid;
  place-items: center;
}
.phone__avatar::before,
.phone__avatar::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.phone__avatar::before {
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.phone__avatar::after {
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  opacity: 0;
}
.phone[data-speaking="agent"] .phone__avatar::after {
  animation: ring 1.8s var(--ease-out) infinite;
}
@keyframes ring {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}
.phone__core {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #252525;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.12);
}
.phone__core .icon {
  width: 30px;
  height: 30px;
}
.phone__name {
  margin-top: 14px;
  font: 600 19px var(--font);
}
.phone__timer {
  font: 400 13px var(--mono);
  color: #e8e8e8;
}
.phone__caption {
  width: 100%;
  margin-top: 26px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.phone__who {
  font: 500 10px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8d8d8d;
}
.phone__text {
  min-height: 2.9em;
  font-size: 14px;
  line-height: 1.45;
}
.phone__text span {
  opacity: 0;
  transition: opacity 180ms var(--ease-out);
}
.phone__text span.on {
  opacity: 1;
}
.wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}
.wave i {
  width: 3px;
  height: var(--h);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.7);
  transform: scaleY(0.35);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.phone[data-speaking="agent"] .wave i {
  animation: bar 860ms var(--ease-in-out) infinite alternate;
  animation-delay: calc(var(--n) * -73ms);
}
.phone[data-speaking="caller"] .wave i {
  opacity: 0.3;
}
@keyframes bar {
  from {
    transform: scaleY(0.3);
  }
  to {
    transform: scaleY(1);
  }
}
.phone__controls {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.ctrl {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
}
.ctrl .icon {
  width: 19px;
  height: 19px;
}
.ctrl--end {
  width: 60px;
  height: 60px;
  background: #f97066;
}
.ctrl--end .icon {
  width: 23px;
  height: 23px;
}
.dock {
  position: absolute;
  left: 70px;
  right: 70px;
  bottom: 4px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 20px;
  border-radius: 32px;
  background: rgba(38, 38, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  color: #fff;
  color-scheme: dark;
  transition: border-color var(--dur-2) var(--ease-out);
}
.dock:focus-within {
  border-color: rgba(255, 255, 255, 0.42);
}
.dock__cc {
  position: relative;
  display: flex;
  align-items: center;
}
.dock__cc select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: none;
  padding-right: 18px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
}
.dock__cc .icon {
  position: absolute;
  right: 0;
  width: 14px;
  height: 14px;
  color: #c2c2c2;
  pointer-events: none;
}
.dock__div {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.15);
}
.dock input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  font-size: 15px;
  outline: none;
}
.dock input::placeholder {
  color: #8d8d8d;
}
.dock__btn {
  height: 100%;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: #181818;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease-out);
}
.dock__btn:hover {
  transform: translateY(-1px);
}
.dock__btn .icon {
  width: 15px;
  height: 15px;
}
.dock__note {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc(100% + 12px);
  width: max-content;
  max-width: 100%;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-raised);
  box-shadow: var(--shadow);
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out);
}
.dock.is-noted .dock__note {
  opacity: 1;
  transform: translate(-50%, 0);
}
:root[data-theme="light"] .phone {
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.22);
}
:root[data-theme="light"] .dock {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

/* ---------- Home: numbers ---------- */
.numbers {
  border-block: 1px solid var(--border);
}
.numbers__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.num {
  padding: 56px 40px;
  border-left: 1px solid var(--border);
}
.num:first-child {
  padding-left: 0;
  border-left: 0;
}
.num__value {
  display: block;
  font-weight: 600;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.035em;
}
.num__label {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-2);
}
.odo {
  display: inline-flex;
}
.odo__col {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  transition: width 1.4s var(--ease-out);
}
.odo__strip {
  display: flex;
  flex-direction: column;
  transition: transform 1.4s var(--ease-out);
  transition-delay: calc(var(--i) * 80ms);
}
.odo__strip span,
.odo__ch {
  display: block;
  height: 1em;
  line-height: 1;
  text-align: center;
}
.odo__ch {
  opacity: 0;
  transition: opacity var(--dur-3) var(--ease-out) 300ms;
}
.is-in .odo__strip {
  transform: translateY(calc(var(--d) * -1em));
}
.is-in .odo__ch {
  opacity: 1;
}

/* ---------- Transcripts (use cases, Autopilot console) ---------- */
.transcript {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.msg {
  display: flex;
}
.msg--c {
  justify-content: flex-end;
}
.msg--e {
  justify-content: center;
}
.bubble {
  max-width: 78%;
  padding: 11px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
  line-height: 1.4;
}
.bubble--a {
  background: var(--bubble-a);
  border-radius: 4px 14px 14px 14px;
}
.bubble--c {
  background: var(--overlay-1);
  border: 1px solid var(--border);
  border-radius: 14px 4px 14px 14px;
}
.bubble__who {
  font: 400 11px var(--mono);
  color: var(--text-4);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--sunk-1);
  font: 400 12px var(--mono);
  color: var(--text-2);
}
.chip .icon {
  width: 13px;
  height: 13px;
}
.chip__label {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
}
.chip__spin {
  display: none;
  width: 10px;
  height: 10px;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.chip.is-running .chip__spin {
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.js .seq > * {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 450ms var(--ease-out), transform 450ms var(--ease-out);
}
.js .seq > .is-shown {
  opacity: 1;
  transform: none;
}

/* ---------- Home: use cases ---------- */
.uc__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.tab {
  padding: 10px 18px;
  border: 0;
  border-radius: 9px;
  background: none;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-4);
  cursor: pointer;
  transition: background-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out);
}
.tab:hover {
  color: var(--text-2);
}
.tab[aria-selected="true"] {
  background: var(--bubble-a);
  color: var(--text-1);
}
.uc__body {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-top: 48px;
}
.callcard {
  width: 720px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  overflow: hidden;
}
.callcard__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.who__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bubble-a);
}
.who__name {
  font-weight: 600;
  font-size: 15px;
}
.who__meta {
  font-size: 12px;
  color: var(--text-4);
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 400 13px var(--mono);
  color: var(--text-2);
}
.live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
}
.callcard .transcript {
  min-height: 372px;
  padding: 28px;
  transition: opacity var(--dur-2) var(--ease-out);
}
.callcard .transcript.is-leaving {
  opacity: 0;
}
.uc__side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.uc__lead {
  font-weight: 500;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.018em;
}
.uses {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--text-2);
}
.uses li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.uses .icon {
  width: 18px;
  height: 18px;
}

/* ---------- Home: capabilities ---------- */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 48px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--border);
}
.cap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  background: var(--bg);
  font-weight: 500;
  transition: background-color var(--dur-1) var(--ease-out);
}
.cap .icon {
  width: 24px;
  height: 24px;
  transition: transform var(--dur-2) var(--ease-out);
}
.cap:hover {
  background: var(--surface);
}
.js .caps-grid .cap > * {
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.js .caps-grid.is-in .cap > * {
  opacity: 1;
  transform: none;
}
.js .caps-grid.is-in .cap:hover .icon {
  transform: translateY(-2px);
  transition-delay: 0s;
}
.cap:hover .icon {
  transform: translateY(-2px);
}

/* ---------- Home: pipeline ---------- */
.pipe {
  padding-top: 32px;
}
.pipe__flow {
  display: flex;
  align-items: center;
  margin-top: 56px;
}
.step {
  flex: 1;
  min-width: 0;
  height: 240px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  animation: step-glow 6s var(--ease-in-out) infinite;
  animation-delay: calc(var(--i) * 1.2s);
}
.step__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--overlay-2);
}
.step__icon .icon {
  width: 26px;
  height: 26px;
}
.step__name {
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.018em;
}
.step__vendors {
  font: 400 14px/1.6 var(--mono);
  color: var(--text-2);
}
.plink {
  --len: 56px;
  --dot-size: 10px;
  position: relative;
  width: var(--len);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.plink::before {
  content: "";
  flex: 1;
  height: 2px;
  background: var(--overlay-2);
}
.plink i {
  width: var(--dot-size);
  height: var(--dot-size);
  border-radius: 50%;
  background: var(--text-4);
}
.plink::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: var(--dot-size);
  height: var(--dot-size);
  margin-top: calc(var(--dot-size) / -2);
  border-radius: 50%;
  background: var(--text-1);
  box-shadow: 0 0 10px 2px rgba(255, 255, 255, 0.35);
  opacity: 0;
  animation: travel 6s var(--ease-in-out) infinite;
  animation-delay: calc(var(--i) * 1.2s - 0.55s);
}
@keyframes step-glow {
  0%, 24%, 100% {
    border-color: var(--border);
    background-color: var(--surface);
  }
  7%, 15% {
    border-color: var(--hl-border);
    background-color: var(--surface-raised);
  }
}
@keyframes travel {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  2% {
    opacity: 1;
  }
  9% {
    transform: translateX(calc(var(--len) - var(--dot-size)));
    opacity: 1;
  }
  11%, 100% {
    transform: translateX(calc(var(--len) - var(--dot-size)));
    opacity: 0;
  }
}

/* ---------- Code band (home Autopilot block) ---------- */
.band {
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.split {
  display: flex;
  align-items: center;
  gap: 80px;
}
.split__copy {
  width: 440px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.split__copy .t-sub {
  font-size: 17px;
  line-height: 1.5;
}
.window {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: var(--shadow);
}
.window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font: 400 13px var(--mono);
  color: var(--text-4);
}
.window__bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(249, 112, 102, 0.6);
}
.window__bar i:nth-child(2) {
  background: rgba(245, 165, 36, 0.6);
}
.window__bar i:nth-child(3) {
  background: rgba(57, 225, 158, 0.6);
  margin-right: 8px;
}
.code {
  margin: 0;
  padding: 24px 28px;
  overflow-x: auto;
  font: 400 14px/1.6 var(--mono);
  counter-reset: ln;
  color: var(--code-p);
}
.code .l {
  display: block;
  white-space: pre;
}
.code .l::before {
  counter-increment: ln;
  content: counter(ln);
  display: inline-block;
  width: 2ch;
  margin-right: 20px;
  text-align: right;
  color: var(--code-ln);
}
.code .k {
  color: var(--code-k);
}
.code .v {
  color: var(--code-v);
}
.code .c {
  color: var(--code-c);
}
.term {
  padding: 18px 28px;
  border-top: 1px solid var(--border);
  background: var(--sunk-1);
  font: 400 14px/1.6 var(--mono);
}
.term__line {
  display: flex;
  gap: 10px;
  white-space: pre;
}
.term__prompt {
  color: var(--code-p);
}
.term__out {
  color: var(--text-2);
  transition: opacity var(--dur-2) var(--ease-out);
}
.term__out.is-hidden {
  opacity: 0;
}
.caret {
  display: inline-block;
  width: 8px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: -3px;
  background: var(--text-1);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- Home: deploy ---------- */
.deploy__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.dcard {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.dcard:hover {
  transform: translateY(-2px);
  border-color: var(--hl-border);
}
.dcard--hi {
  background: var(--surface-raised);
  border-color: var(--hl-border);
}
.dcard > .icon {
  width: 32px;
  height: 32px;
}
.dcard__name {
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.018em;
}
.dcard__line {
  color: var(--text-3);
}
.dcard .arrow-link {
  margin-top: 12px;
}

/* ---------- Final CTA + footer ---------- */
.final {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: radial-gradient(120% 140% at 50% 100%, var(--overlay-1), transparent 70%);
}
.final--rule {
  border-top: 1px solid var(--border);
}
.final__in {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding-block: 144px;
}
.final .ctas {
  justify-content: center;
}
.footer {
  border-top: 1px solid var(--border);
}
.footer__in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-block: 32px;
}
.footer__copy {
  justify-self: start;
  font-size: 13px;
  color: var(--text-4);
}
.footer__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-2);
}
.footer .prefs {
  justify-self: end;
}
.footer__links a:hover {
  color: var(--text-1);
}
.prefs {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.prefs__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  color: var(--text-4);
}
.prefs__item .icon {
  width: 14px;
  height: 14px;
}
.prefs__item select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: none;
  padding: 0 18px 0 0;
  font-weight: 500;
  font-size: 12px;
  color: var(--text-3);
  cursor: pointer;
}
.prefs__item .chev {
  position: absolute;
  right: 12px;
  width: 12px;
  height: 12px;
  pointer-events: none;
}
.prefs__div {
  width: 1px;
  height: 14px;
  background: var(--border);
}

/* ---------- Autopilot page ---------- */
.aphero {
  position: relative;
  overflow: hidden;
}
.aphero__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding-block: 88px 72px;
  text-align: center;
}
.aphero__copy .t-lead {
  max-width: 760px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  color: var(--text-2);
}
.pill .icon {
  width: 14px;
  height: 14px;
}
.console {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  border-block: 1px solid var(--border);
  background: var(--surface);
}
.console__head {
  height: 57px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--border);
}
.console__call .console__head {
  padding: 0 40px 0 var(--gutter);
}
.console__call .transcript {
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  padding: 36px 0 48px;
}
.console__call .bubble {
  max-width: 86%;
}
.console__title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.console__title b {
  font-weight: 600;
  font-size: 14px;
}
.console__title span {
  font-size: 13px;
  color: var(--text-4);
}
.console__title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--danger);
}
.console__timer {
  font: 400 13px var(--mono);
  color: var(--text-2);
}
.console__agent {
  border-left: 1px solid var(--border);
  background: var(--surface-sunken);
}
.console__agent .console__head {
  padding: 0 var(--gutter) 0 40px;
}
.agent-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font: 500 15px var(--mono);
}
.agent-name span {
  font-size: 12px;
  color: var(--text-4);
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-2);
}
.status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-1);
}
.agent-body {
  display: grid;
  gap: 24px;
  padding: 28px var(--gutter) 40px 40px;
}
.group {
  display: grid;
  gap: 10px;
}
.group__label {
  font: 400 10px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-4);
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.row .icon {
  width: 15px;
  height: 15px;
  color: var(--text-2);
}
.row__key {
  flex: 1;
}
.row__val {
  font: 400 12px var(--mono);
  color: var(--text-4);
}
.tool .row__key,
.tool .icon {
  transition: color var(--dur-2) var(--ease-out);
}
.tool:not(.is-used) .row__key {
  color: var(--text-4);
}
.tool:not(.is-used) .icon {
  color: var(--code-ln);
}
.tool .row__val {
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}
.tool.is-used .row__val {
  opacity: 1;
}
.tool .i-on {
  display: none;
}
.tool.is-used .i-on {
  display: block;
}
.tool.is-used .i-off {
  display: none;
}

.works {
  padding-block: 96px 112px;
  text-align: center;
}
.works__label {
  font: 400 12px var(--mono);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-4);
}
.works__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 52px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--text-4);
}
.works__list li {
  transition: color var(--dur-1) var(--ease-out);
}
.works__list li:hover {
  color: var(--text-2);
}

.features {
  border-top: 1px solid var(--border);
}
.features .t-sub {
  margin-top: 12px;
}
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}
.tile__vis {
  position: relative;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
  background: var(--sunk-1);
}
.tile__text {
  display: grid;
  gap: 6px;
  padding: 22px 26px 26px;
}
.tile__title {
  font-weight: 600;
  font-size: 20px;
}
.tile__line {
  font-size: 15px;
  color: var(--text-3);
}
.mchip {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--sunk-1);
  font: 400 12px var(--mono);
  color: var(--text-3);
}
.vis-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.vis-col .icon {
  width: 14px;
  height: 14px;
  color: var(--text-4);
}
.mchip--res {
  color: var(--text-1);
}
.tile:hover .mchip--res,
.tile.is-play .mchip--res {
  animation: pop 600ms var(--ease-out);
}
@keyframes pop {
  0% {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}
.doc {
  width: 84px;
  height: 104px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--overlay-1);
  font: 400 10px var(--mono);
  color: var(--text-4);
  transition: transform 420ms var(--ease-out);
}
.doc .icon {
  width: 24px;
  height: 24px;
  color: var(--text-2);
}
.tile:hover .doc:nth-child(1),
.tile.is-play .doc:nth-child(1) {
  transform: translateX(-6px) rotate(-6deg);
}
.tile:hover .doc:nth-child(2),
.tile.is-play .doc:nth-child(2) {
  transform: translateY(-6px);
}
.tile:hover .doc:nth-child(3),
.tile.is-play .doc:nth-child(3) {
  transform: translateX(6px) rotate(6deg);
}
.talk {
  display: grid;
  gap: 14px;
}
.talk__row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.talk__who {
  width: 52px;
  font: 400 10px var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-4);
}
.bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 30px;
}
.bars i {
  width: 3px;
  height: var(--h);
  border-radius: 2px;
  background: var(--text-1);
}
.bars i.flat {
  height: 2px;
  background: var(--overlay-2);
}
.tile:hover .bars--agent i:not(.flat),
.tile:hover .bars--caller i:not(.flat),
.tile.is-play .bars--agent i:not(.flat),
.tile.is-play .bars--caller i:not(.flat) {
  animation: bar 520ms var(--ease-in-out) 2 alternate;
  animation-delay: calc(var(--n) * -60ms);
}
.tile:hover .bars--caller i:not(.flat),
.tile.is-play .bars--caller i:not(.flat) {
  animation-delay: calc(420ms + var(--n) * -60ms);
}
.handoff {
  display: flex;
  align-items: center;
  gap: 16px;
}
.node {
  display: grid;
  justify-items: center;
  gap: 10px;
  font: 400 11px var(--mono);
  color: var(--text-4);
}
.node__orb {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--hl-border);
  background: var(--surface-raised);
}
.node__orb .icon {
  width: 22px;
  height: 22px;
  color: var(--text-1);
}
.dashes {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  color: var(--text-4);
}
.dashes i {
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background: var(--hl-border);
}
.tile:hover .dashes i,
.tile.is-play .dashes i {
  animation: dash 1.1s var(--ease-in-out) infinite;
  animation-delay: calc(var(--n) * 110ms);
}
@keyframes dash {
  0%, 100% {
    background: var(--hl-border);
  }
  30% {
    background: var(--text-1);
  }
}
.langs {
  display: grid;
  gap: 8px;
  width: 300px;
}
.lb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--overlay-1);
  font-size: 13px;
}
.lb--a {
  justify-self: start;
  border-color: transparent;
  background: var(--bubble-a);
}
.lb b {
  padding: 2px 6px;
  border: 1px solid var(--hl-border);
  border-radius: 5px;
  font: 400 10px var(--mono);
  color: var(--text-2);
}
.noise {
  display: flex;
  align-items: center;
  gap: 16px;
}
.noise .icon {
  color: var(--text-4);
}
.bars--noisy i {
  background: var(--hl-border);
}
.tile:hover .bars--noisy i,
.tile.is-play .bars--noisy i {
  animation: jitter 240ms steps(2) infinite;
  animation-delay: calc(var(--n) * -37ms);
}
.tile:hover .bars--clean i:not(.flat),
.tile.is-play .bars--clean i:not(.flat) {
  animation: bar 700ms var(--ease-in-out) infinite alternate;
  animation-delay: calc(var(--n) * -90ms);
}
@keyframes jitter {
  50% {
    transform: scaleY(0.55);
  }
}

.evals .split__copy .eyebrow {
  gap: 10px;
}
.evalterm {
  padding: 24px 28px;
  font: 400 13px/1.65 var(--mono);
  color: var(--text-2);
}
.evalterm div {
  white-space: pre;
}
.evalterm .g {
  color: var(--code-p);
}
.evalterm .s {
  color: var(--code-k);
  font-weight: 700;
}
.evalterm .b {
  color: var(--text-1);
  font-weight: 700;
}
.js .evalterm.is-armed div {
  opacity: 0;
}
.js .evalterm div.is-shown {
  opacity: 1;
  transition: opacity 200ms var(--ease-out);
}
.evalterm .pass.is-shown {
  animation: pop 420ms var(--ease-out);
}

.run__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 48px;
}
.run__item {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 4px 40px;
  border-left: 1px solid var(--border);
}
.run__item:first-child {
  padding-left: 0;
  border-left: 0;
}
.run__item .icon {
  width: 26px;
  height: 26px;
}
.run__name {
  font-weight: 600;
  font-size: 20px;
}
.run__line {
  font-size: 15px;
  color: var(--text-3);
}

/* ---------- Pricing + 404 ---------- */
.pricing,
.nf {
  position: relative;
  overflow: hidden;
}
.pricing__in,
.nf__in {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding-block: 96px;
}
.pricing__in .t-lead {
  max-width: 640px;
}
.plan {
  width: 100%;
  max-width: 560px;
  margin-top: 28px;
  display: grid;
  gap: 28px;
  padding: 40px;
  border: 1px solid var(--hl-border);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  text-align: left;
}
:root[data-theme="light"] .plan {
  box-shadow: var(--shadow);
}
.plan__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.plan__name {
  font-weight: 600;
  font-size: 20px;
}
.credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--overlay-2);
  font-size: 13px;
  color: var(--text-2);
}
.credit .icon {
  width: 14px;
  height: 14px;
}
.plan__price {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.plan__amount {
  font-weight: 600;
  font-size: 72px;
  line-height: 1;
  letter-spacing: -0.035em;
}
.plan__per {
  padding-bottom: 8px;
  font-size: 17px;
  color: var(--text-3);
}
.plan__features {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 28px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}
.plan__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.plan__features .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}
.plan .btn {
  width: 100%;
}
.ent {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-3);
}
.nf__in {
  min-height: calc(100vh - 170px);
  justify-content: center;
}
.nf h1 {
  font-weight: 600;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.031em;
}
.pricing .dots__wave,
.nf .dots__wave {
  animation: wave-slow 12s var(--ease-in-out) 0.8s infinite;
}
@media (max-width: 640px) {
  .pricing__in,
  .nf__in {
    padding-block: 48px 64px;
    gap: 16px;
  }
  .plan {
    gap: 22px;
    padding: 24px;
    border-radius: 20px;
  }
  .plan__top {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .plan__name {
    font-size: 18px;
  }
  .plan__amount {
    font-size: 56px;
  }
  .plan__features {
    gap: 12px;
    padding-top: 22px;
    font-size: 15px;
  }
  .ent {
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
  }
}

/* ---------- Reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.is-paused,
.is-paused * {
  animation-play-state: paused !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  :root {
    --pad: 40px;
    --section: 104px;
  }
  .hero__in {
    gap: 32px;
  }
  .call-demo {
    width: 460px;
  }
  .phone {
    left: 90px;
  }
  .dock {
    left: 20px;
    right: 20px;
  }
  .callcard {
    width: 600px;
  }
  .split {
    gap: 48px;
  }
  .split__copy {
    width: 380px;
  }
  .num {
    padding-inline: 28px;
  }
  .num__value {
    font-size: 60px;
  }
}

@media (max-width: 960px) {
  .hero__in,
  .uc__body,
  .split {
    flex-direction: column;
    align-items: stretch;
  }
  .call-demo {
    width: 100%;
    max-width: 560px;
    margin: 8px auto 0;
  }
  .phone {
    left: 50%;
    margin-left: -140px;
  }
  .callcard,
  .split__copy {
    width: 100%;
  }
  .caps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pipe__flow {
    flex-direction: column;
    align-items: stretch;
  }
  .step {
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 20px;
  }
  .step__name {
    font-size: 18px;
  }
  .step__vendors {
    font-size: 12px;
  }
  .plink {
    width: 2px;
    height: 24px;
    margin-left: 47px;
  }
  .plink::before {
    width: 2px;
    height: 100%;
    flex: none;
  }
  .plink i,
  .plink::after {
    display: none;
  }
  .deploy__grid,
  .bento {
    grid-template-columns: 1fr;
  }
  .console {
    grid-template-columns: 1fr;
  }
  .console__agent {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .console__call .console__head,
  .console__agent .console__head {
    padding-inline: var(--pad);
  }
  .console__call .transcript {
    padding: 24px var(--pad) 28px;
  }
  .agent-body {
    padding: 20px var(--pad) 28px;
  }
}

@media (max-width: 640px) {
  :root {
    --pad: 24px;
    --section: 72px;
  }
  .br-m {
    display: inline;
  }
  .show-m {
    display: block;
  }
  .hide-m,
  .show-d {
    display: none;
  }
  .nav__in {
    height: 60px;
  }
  .logo img {
    height: 28px;
  }
  .nav__links,
  .nav__actions .btn {
    display: none;
  }
  .nav__menu {
    display: grid;
  }
  .gh-chip {
    border: 0;
    padding: 0;
    gap: 6px;
    font-size: 13px;
  }
  .gh-chip .i-github {
    display: none;
  }
  .hero__in {
    padding-block: 48px 56px;
    gap: 24px;
  }
  .hero__copy {
    gap: 24px;
  }
  .badge {
    font-size: 12px;
    padding: 6px 12px;
  }
  .ctas {
    flex-direction: column;
    width: 100%;
  }
  .ctas .btn {
    width: 100%;
  }
  .call-demo {
    width: 342px;
    max-width: 100%;
  }
  .dock {
    left: 0;
    right: 0;
    padding-left: 18px;
    gap: 10px;
  }
  .numbers .container {
    padding: 0;
  }
  .numbers__grid {
    grid-template-columns: 1fr 1fr;
  }
  .num,
  .num:first-child {
    padding: 32px 24px;
  }
  .num:nth-child(odd) {
    border-left: 0;
  }
  .num:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
  .num__value {
    font-size: 40px;
  }
  .num__label {
    font-size: 13px;
  }
  .tabs {
    max-width: calc(100vw - var(--pad));
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tab {
    flex-shrink: 0;
    padding: 9px 14px;
    font-size: 13px;
  }
  .uc__head .tabs {
    margin-right: calc(var(--pad) * -1);
  }
  .callcard .transcript {
    min-height: 0;
    padding: 16px;
    gap: 10px;
  }
  .callcard__head {
    padding: 14px 16px;
  }
  .who__avatar {
    display: none;
  }
  .bubble {
    max-width: 86%;
    padding: 10px 12px;
    font-size: 14px;
  }
  .chip {
    gap: 8px;
    padding: 6px 10px;
    font-size: 11px;
  }
  .chip__label {
    font-size: 9px;
  }
  .uc__lead {
    font-size: 18px;
  }
  .caps-grid {
    gap: 1px;
  }
  .cap {
    padding: 18px;
    gap: 12px;
    font-size: 14px;
  }
  .cap .icon {
    width: 20px;
    height: 20px;
  }
  .split__copy .t-sub {
    font-size: 15px;
  }
  .code {
    padding: 18px 16px;
    font-size: 11px;
  }
  .code .l::before {
    display: none;
  }
  .term {
    padding: 14px 16px;
    font-size: 11px;
  }
  .dcard {
    padding: 24px;
    gap: 10px;
  }
  .dcard__name {
    font-size: 20px;
  }
  .final__in {
    padding-block: 88px;
    gap: 28px;
  }
  .final .t-h1 {
    font-size: 32px;
  }
  .t-sub {
    font-size: 16px;
  }
  .footer__in {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .footer__links {
    gap: 24px;
  }
  .footer__copy {
    order: 4;
  }
  .aphero__copy {
    align-items: flex-start;
    text-align: left;
    padding-block: 48px 44px;
    gap: 20px;
  }
  .console__head {
    height: 49px;
  }
  .console__title span {
    font-size: 12px;
  }
  .works {
    padding-block: 56px;
  }
  .works__list {
    gap: 12px 20px;
    font-size: 16px;
  }
  .tile__vis {
    height: 150px;
  }
  .tile__text {
    padding: 16px 20px 20px;
    gap: 4px;
  }
  .tile__title {
    font-size: 17px;
  }
  .tile__line {
    font-size: 14px;
  }
  .langs {
    width: 290px;
  }
  .evalterm {
    padding: 16px 14px;
    font-size: 10px;
  }
  .run__grid {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }
  .run__item {
    padding: 20px 0;
    border-left: 0;
    border-bottom: 1px solid var(--border);
  }
  .run__item:last-child {
    border-bottom: 0;
  }
  .dots,
  .dots__wave {
    background-size: 24px 24px;
  }
}

/* ---------- Reduced motion: final states, no loops ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 1ms !important;
    transition-delay: 0s !important;
  }
}
