/* Codemart — codeartistry.co
   Design: confident, high-contrast dispatch-console aesthetic on a
   black / NVIDIA-green (#76B900) / white palette. Flat surfaces,
   pill CTAs, tabular numerals for the real demo phone number.
   Green text is only ever placed on black (8:1+); on white/paper
   surfaces green is reserved for icons, borders and pill chips using
   a darkened AA-safe shade, never for body text. */

:root {
  --black: #0a0a0a;
  --black-soft: #151515;
  --black-line: rgba(255, 255, 255, 0.14);
  --paper: #f3f4f1;
  --paper-raised: #ffffff;
  --paper-line: rgba(10, 10, 10, 0.13);
  --text-on-black: #f4f5f2;
  --text-on-black-muted: #a9ad9f;
  --text-on-paper: #0f100d;
  --text-on-paper-muted: #565a4f;
  --green: #76b900;
  --green-strong: #5c9400;
  --green-ink: #4f7a00;
  --radius-s: 8px;
  --radius-m: 16px;
  --radius-l: 22px;
  --radius-full: 999px;
  --max: 1160px;
  --gutter: clamp(20px, 5vw, 64px);
  --font-head: "Space Grotesk", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --header-h: 68px;
  --section-pad: clamp(72px, 9vw, 132px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Some of our custom keyframes intentionally end on a hidden (opacity: 0)
     frame so an infinite loop can restart cleanly. Forcing 1 iteration above
     would otherwise strand those elements invisible, so pin them fully
     visible and static instead. */
  .mechanism-diagram svg .diag-step,
  .mechanism-diagram svg .diag-line-anim,
  .mechanism-diagram svg .diag-loop-path,
  .mechanism-diagram svg .diag-blink,
  .hero::before {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text-on-paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--green-ink);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Dark surfaces get the full, high-contrast green ring */
.site-header a:focus-visible,
.hero a:focus-visible,
.hero button:focus-visible,
.mechanism a:focus-visible,
.capabilities a:focus-visible,
.contact a:focus-visible,
.site-footer a:focus-visible,
.nav-toggle:focus-visible {
  outline-color: var(--green);
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* The header is sticky and sits on top of the document, so an in-page
   anchor jump (nav link, "back to top", skip link) needs each section to
   reserve room for it — otherwise the fixed bar lands over the first lines
   of whatever the visitor just jumped to. */
#top,
#mechanism,
#channels,
#process,
#examples,
#pricing,
#contact {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
}

p {
  margin: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--black-line);
  border-radius: var(--radius-full);
  padding: 7px 16px 7px 12px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-on-black);
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(40px, 5vw, 58px);
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--text-on-paper-muted);
  font-size: 1.05rem;
}

.section-head--on-ink p {
  color: var(--text-on-black-muted);
}

.section-head--on-ink h2 {
  color: var(--text-on-black);
}

.divider {
  border: none;
  border-top: 1px solid var(--paper-line);
  margin: 0;
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--black);
  color: var(--text-on-black);
  padding: 12px 18px;
  z-index: 100;
  border-radius: var(--radius-s);
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--black);
  color: var(--text-on-black);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--black-line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--text-on-black);
  text-decoration: none;
}

.brand svg {
  flex: none;
  color: var(--green);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--black-line);
  border-radius: var(--radius-s);
  color: var(--text-on-black);
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-on-black-muted);
  font-size: 0.94rem;
}

.site-nav a:hover {
  color: var(--text-on-black);
}

.site-nav a.header-cta,
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--black);
  font-weight: 700;
  padding: 9px 18px;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.site-nav a.header-cta:hover,
.header-cta:hover {
  background: var(--green-strong);
  color: var(--black);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--black);
  color: var(--text-on-black);
  padding: clamp(80px, 11vw, 116px) 0 clamp(72px, 8vw, 96px);
  overflow: hidden;
  position: relative;
}

/* A quietly living dot grid, in the spirit of the Parlo template: it
   breathes (opacity + a hair of scale) very slowly and never touches
   layout, so it costs nothing to read past. */
.hero::before {
  content: "";
  position: absolute;
  inset: -12%;
  background: radial-gradient(circle at 1px 1px, rgba(118, 185, 0, 0.22) 1.2px, transparent 0) 0 0 / 26px 26px;
  animation: heroBreathe 9s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, var(--black) 92%);
  pointer-events: none;
  z-index: 0;
}

@keyframes heroBreathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.035);
  }
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.15rem, 4.8vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--text-on-black);
  margin-bottom: 24px;
}

.hero-lede {
  font-size: 1.12rem;
  color: var(--text-on-black-muted);
  max-width: 52ch;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--green);
  color: var(--black);
  box-shadow: 0 0 0 0 rgba(118, 185, 0, 0);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.btn-primary:hover {
  background: var(--green-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(118, 185, 0, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--text-on-black);
  border-color: var(--black-line);
}

.btn-ghost:hover {
  border-color: var(--text-on-black-muted);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
}

.hero-note {
  font-size: 0.88rem;
  color: var(--text-on-black-muted);
  max-width: 46ch;
}

/* Demo call panel: the real, honest proof point. Given a touch of the
   "floating product card" treatment — soft outer shadow, faint inner top
   highlight — so it reads as a distinct elevated surface, not a flat box. */
.demo-panel {
  background: var(--black-soft);
  border: 1px solid var(--black-line);
  border-radius: var(--radius-l);
  padding: 32px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.demo-status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  color: var(--text-on-black-muted);
  margin-bottom: 18px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(118, 185, 0, 0.6);
  animation: pulse 2.4s ease-out infinite;
  flex: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(118, 185, 0, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(118, 185, 0, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(118, 185, 0, 0);
  }
}

.demo-panel h2 {
  font-size: 1.05rem;
  color: var(--text-on-black);
  margin-bottom: 6px;
}

.demo-panel p {
  color: var(--text-on-black-muted);
  font-size: 0.94rem;
  margin-bottom: 20px;
}

.demo-number {
  display: block;
  font-family: var(--font-head);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 4vw, 2rem);
  color: var(--text-on-black);
  text-decoration: none;
  border-top: 1px solid var(--black-line);
  padding-top: 18px;
  letter-spacing: 0.01em;
  transition: color 0.15s ease, transform 0.15s ease;
  animation: phonePulse 3.6s ease-in-out infinite;
}

.demo-number span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 6px;
}

.demo-number:hover {
  color: var(--green);
  transform: translateY(-1px);
}

/* A very subtle, slow glow — just enough to say "tap me", never a flash. */
@keyframes phonePulse {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(118, 185, 0, 0);
  }
  50% {
    text-shadow: 0 0 14px rgba(118, 185, 0, 0.45);
  }
}

/* ---------- Mechanism (agent team diagram) ---------- */
.mechanism {
  background: var(--black);
  color: var(--text-on-black);
  padding: var(--section-pad) 0;
}

.mechanism-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.mechanism-diagram {
  background: var(--black-soft);
  border: 1px solid var(--black-line);
  border-radius: var(--radius-l);
  padding: 20px;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mechanism-diagram svg {
  width: 100%;
  height: auto;
  display: block;
}

.mechanism-diagram svg text {
  font-family: var(--font-body);
  fill: var(--text-on-black);
}

.mechanism-diagram svg .diag-head {
  font-family: var(--font-head);
  font-weight: 700;
}

.mechanism-diagram svg .diag-muted {
  fill: var(--text-on-black-muted);
}

.mechanism-diagram svg .diag-green {
  fill: var(--green);
}

.mechanism-diagram svg .diag-line {
  stroke: var(--green);
  fill: none;
}

.mechanism-diagram svg .diag-line-soft {
  stroke: var(--black-line);
  fill: none;
}

.mechanism-diagram svg .diag-box {
  fill: var(--black-soft);
  stroke: var(--black-line);
}

.mechanism-diagram svg .diag-box-accent {
  fill: rgba(118, 185, 0, 0.1);
  stroke: var(--green);
}

.mechanism-diagram svg .diag-chip {
  fill: var(--black);
  stroke: var(--black-line);
}

.mechanism-legend {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.mechanism-legend li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--black-line);
}

.mechanism-legend li:first-child {
  border-top: none;
  padding-top: 0;
}

.mechanism-legend li::before {
  content: counter(step);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--green);
  font-size: 1rem;
  grid-row: 1 / 3;
}

.mechanism-legend strong,
.mechanism-legend span {
  grid-column: 2;
}

.mechanism-legend strong {
  color: var(--text-on-black);
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
}

.mechanism-legend span {
  color: var(--text-on-black-muted);
  font-size: 0.92rem;
}

.mechanism-tagline {
  margin-top: 28px;
  font-size: 0.92rem;
  color: var(--text-on-black-muted);
  max-width: 60ch;
}

.mechanism-tagline strong {
  color: var(--text-on-black);
}

/* ---------- Channel diagram ---------- */
.channels {
  background: var(--paper);
  padding: var(--section-pad) 0;
}

.channel-diagram {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 44px;
}

.channel-card {
  background: var(--paper-raised);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-m);
  padding: 26px 22px;
  box-shadow: 0 2px 10px rgba(10, 10, 10, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.channel-card:hover {
  transform: translateY(-3px);
  border-color: rgba(10, 10, 10, 0.2);
  box-shadow: 0 14px 32px rgba(10, 10, 10, 0.1);
}

.channel-card svg {
  margin-bottom: 16px;
  color: var(--green-ink);
}

.channel-card h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.channel-card p {
  font-size: 0.92rem;
  color: var(--text-on-paper-muted);
}

.channel-note {
  margin-top: 28px;
  font-size: 0.95rem;
  color: var(--text-on-paper-muted);
  max-width: 62ch;
}

/* ---------- Capability list (scheduling / campaigns / integrations / software) ---------- */
.capabilities {
  background: var(--black);
  color: var(--text-on-black);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

/* Same quiet-grid language as the hero, held static here (no animation) so
   it reads as texture rather than motion — a second dark section shouldn't
   compete for attention with the hero's living dot field. */
.capabilities::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--black) 0%, rgba(10, 10, 10, 0) 30%, rgba(10, 10, 10, 0) 70%, var(--black) 100%),
    radial-gradient(circle at 1px 1px, rgba(118, 185, 0, 0.12) 1px, transparent 0) 0 0 / 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.capabilities .wrap {
  position: relative;
  z-index: 1;
}

.capability-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: cap;
}

.capability {
  padding: 26px 26px 0 0;
  border-top: 1px solid var(--black-line);
  padding-top: 22px;
  counter-increment: cap;
}

.capability::before {
  content: counter(cap, decimal-leading-zero);
  display: block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-on-black-muted);
  margin-bottom: 14px;
}

.capability .cap-tag {
  color: var(--green);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 12px;
  font-family: var(--font-head);
}

.capability h3 {
  font-size: 1.1rem;
  color: var(--text-on-black);
  margin-bottom: 10px;
}

.capability p {
  font-size: 0.96rem;
  color: var(--text-on-black-muted);
}

.capability-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green);
  text-decoration: none;
}

.capability-link svg {
  flex: none;
  transition: transform 0.15s ease;
}

.capability-link:hover {
  color: var(--text-on-black);
}

.capability-link:hover svg {
  transform: translateX(3px);
}

/* ---------- How we work ---------- */
.how {
  background: var(--paper);
  padding: var(--section-pad) 0;
}

.how-steps {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.how-step {
  padding-right: 28px;
  border-left: 1px solid var(--paper-line);
  padding-left: 24px;
  position: relative;
}

.how-step:first-child {
  border-left: none;
  padding-left: 0;
}

.how-step .step-num {
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--green-ink);
  font-weight: 600;
  margin-bottom: 14px;
}

.how-step h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}

.how-step p {
  font-size: 0.92rem;
  color: var(--text-on-paper-muted);
}

/* ---------- What we build (example cards) ---------- */
.examples {
  background: var(--paper);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--paper-line);
}

.examples-disclaimer {
  background: var(--paper-raised);
  border: 1px solid var(--paper-line);
  border-left: 3px solid var(--green);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: var(--text-on-paper-muted);
  max-width: 720px;
  margin-bottom: 44px;
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
}

.examples-disclaimer strong {
  color: var(--text-on-paper);
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.example-card {
  background: var(--paper-raised);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-m);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(10, 10, 10, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.example-card:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 10, 10, 0.2);
  box-shadow: 0 16px 36px rgba(10, 10, 10, 0.12);
}

.example-media {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: linear-gradient(135deg, #101010 0%, #0a0a0a 60%, #16210a 100%);
  overflow: hidden;
}

.example-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.example-body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.example-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-ink);
  margin-bottom: 12px;
}

.example-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-ink);
  flex: none;
}

.example-card h3 {
  font-size: 1.06rem;
  margin-bottom: 8px;
}

.example-card p {
  font-size: 0.92rem;
  color: var(--text-on-paper-muted);
}

/* ---------- Pricing ---------- */
.pricing {
  background: var(--paper);
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--paper-line);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pricing-card {
  background: var(--paper-raised);
  border: 1px solid var(--paper-line);
  border-radius: var(--radius-m);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(10, 10, 10, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(10, 10, 10, 0.2);
  box-shadow: 0 16px 36px rgba(10, 10, 10, 0.12);
}

/* A quiet accent on the middle tier — a design device, not a popularity
   claim: no badge text, just a slightly stronger border and a hair of lift
   so the eye settles there first without asserting anything unverifiable. */
.pricing-card--accent {
  border-color: rgba(118, 185, 0, 0.4);
  box-shadow: 0 4px 16px rgba(118, 185, 0, 0.08);
}

.pricing-card--accent:hover {
  border-color: var(--green-ink);
  box-shadow: 0 18px 40px rgba(118, 185, 0, 0.14);
}

.pricing-card-head {
  border-bottom: 1px solid var(--paper-line);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.pricing-tag {
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--green-ink);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 6px;
}

.pricing-amount {
  font-family: var(--font-head);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-on-paper);
  font-variant-numeric: tabular-nums;
}

.pricing-period {
  font-size: 0.95rem;
  color: var(--text-on-paper-muted);
}

.pricing-setup {
  font-size: 0.86rem;
  color: var(--text-on-paper-muted);
  margin-bottom: 10px;
}

.pricing-minutes {
  font-size: 0.86rem;
  color: var(--text-on-paper);
  font-weight: 600;
}

.pricing-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-on-paper-muted);
  padding: 9px 0;
  border-top: 1px solid var(--paper-line);
}

.pricing-features li:first-child {
  border-top: none;
  padding-top: 0;
}

.pricing-features li svg {
  flex: none;
  color: var(--green-ink);
  margin-top: 3px;
}

.btn-pricing {
  justify-content: center;
  width: 100%;
  color: var(--text-on-paper);
  border-color: var(--paper-line);
}

.btn-pricing:hover {
  border-color: var(--green-ink);
  color: var(--green-ink);
  transform: translateY(-1px);
}

.pricing-note {
  margin-top: 28px;
  font-size: 0.92rem;
  color: var(--text-on-paper-muted);
  max-width: 62ch;
}

.pricing-note strong {
  color: var(--text-on-paper);
}

.addons {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--paper-line);
}

.addons-head {
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-on-paper-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.addon {
  padding: 18px 20px 0 0;
  border-top: 1px solid var(--paper-line);
  padding-top: 18px;
}

.addon-name {
  font-family: var(--font-head);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--text-on-paper);
  margin-bottom: 6px;
}

.addon-desc {
  font-size: 0.86rem;
  color: var(--text-on-paper-muted);
  margin-bottom: 8px;
}

.addon-price {
  font-size: 0.84rem;
  color: var(--green-ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- Contact ---------- */
.contact {
  background: var(--black);
  color: var(--text-on-black);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--black) 0%, rgba(10, 10, 10, 0) 30%, rgba(10, 10, 10, 0) 75%, var(--black) 100%),
    radial-gradient(circle at 1px 1px, rgba(118, 185, 0, 0.12) 1px, transparent 0) 0 0 / 28px 28px;
  pointer-events: none;
  z-index: 0;
}

.contact .wrap {
  position: relative;
  z-index: 1;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.contact-card {
  background: var(--black-soft);
  border: 1px solid var(--black-line);
  border-radius: var(--radius-l);
  padding: 30px;
  box-shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(118, 185, 0, 0.35);
}

.contact-card h3 {
  font-size: 1.05rem;
  color: var(--text-on-black);
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 0.92rem;
  color: var(--text-on-black-muted);
  margin-bottom: 20px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--text-on-black);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
  transition: color 0.15s ease, transform 0.15s ease;
}

.contact-link:hover {
  color: var(--green);
  transform: translateX(3px);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #050505;
  color: var(--text-on-black-muted);
  padding: 44px 0 30px;
  font-size: 0.86rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--black-line);
  margin-bottom: 20px;
}

.footer-brand {
  font-family: var(--font-head);
  color: var(--text-on-black);
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-tagline {
  max-width: 32ch;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-on-black-muted);
}

.footer-links a:hover {
  color: var(--text-on-black);
}

.footer-bottom {
  color: var(--text-on-black-muted);
}

/* ---------- Scroll-reveal ---------- */
/* JS opts elements into this with .reveal, staggering .in-view per group.
   No-JS / reduced-motion users never get .reveal at all, so content is
   simply visible from the start — this is pure progressive enhancement. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Diagram animation ---------- */
/* Base state: fully visible, static — the correct fallback whenever JS or
   IntersectionObserver isn't available, and while .is-animating hasn't
   been added yet. */
.mechanism-diagram svg .diag-step {
  opacity: 1;
  transform-box: fill-box;
  transform-origin: center;
}

.mechanism-diagram svg .diag-blink {
  opacity: 1;
}

.mechanism-diagram svg .diag-line-anim {
  stroke-dasharray: none;
}

.mechanism-diagram svg .diag-box-dashed {
  fill: rgba(118, 185, 0, 0.06);
  stroke: var(--green);
  stroke-dasharray: 6 5;
}

/* Once the diagram scrolls into view, JS adds .is-animating and the whole
   flow draws itself in order — call in, transcript, orchestrator lighting
   up, the handoff, tools blinking as they're used, the summary going out —
   then settles into a slow, continuous loop back to the top. */
.mechanism-diagram.is-animating svg .diag-step {
  animation: diagAppear 10s ease-in-out infinite backwards;
}

.mechanism-diagram.is-animating svg .diag-line-anim {
  stroke-dasharray: 100;
  animation: diagDraw 10s ease-in-out infinite backwards;
}

.mechanism-diagram.is-animating svg .diag-loop-path {
  stroke-dasharray: 8 6;
  animation: diagAppearLine 10s ease-in-out infinite backwards, diagFlow 1.4s linear infinite;
  animation-delay: 6.35s, 0s;
}

.mechanism-diagram.is-animating svg .diag-blink {
  animation: diagBlink 10s ease-in-out infinite backwards;
}

@keyframes diagAppear {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  6% {
    opacity: 1;
    transform: translateY(0);
  }
  80% {
    opacity: 1;
    transform: translateY(0);
  }
  92% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes diagAppearLine {
  0% {
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  92% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@keyframes diagDraw {
  0% {
    opacity: 0;
    stroke-dashoffset: 100;
  }
  6% {
    opacity: 1;
  }
  12% {
    stroke-dashoffset: 0;
  }
  80% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
  92% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    stroke-dashoffset: 100;
  }
}

/* Continuous "marching ants" along the loop-back path — the one piece of
   the diagram that never stops, because the shift never stops. */
@keyframes diagFlow {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: -28;
  }
}

@keyframes diagBlink {
  0%,
  3%,
  100% {
    opacity: 1;
  }
  4% {
    opacity: 0.2;
  }
  7% {
    opacity: 1;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  .mechanism-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .channel-diagram {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
    column-gap: 26px;
  }

  .how-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }

  .how-step:nth-child(3) {
    border-left: none;
    padding-left: 0;
  }

  .example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .addon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 22px;
    column-gap: 26px;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* The hamburger menu takes over below 900px so the nav links never
     wrap onto a second line at tablet widths. */
  .site-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    background: var(--black);
    border-bottom: 1px solid var(--black-line);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px var(--gutter) 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
  }

  .site-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .site-nav a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--black-line);
    font-size: 1rem;
  }

  .site-nav .header-cta {
    margin: 14px 0 4px;
    justify-content: center;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 640px) {
  .channel-diagram {
    grid-template-columns: minmax(0, 1fr);
  }

  .capability-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .capability {
    padding-top: 20px;
  }

  .how-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .how-step {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--paper-line);
    padding-top: 24px;
  }

  .how-step:first-child {
    border-top: none;
    padding-top: 0;
  }

  .example-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .addon-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    flex-direction: column;
  }

  .mechanism-diagram {
    padding: 14px;
  }
}
