:root {
  --bg: oklch(0.145 0.012 245);
  --bg-elevated: oklch(0.188 0.015 245);
  --bg-card: oklch(0.21 0.016 245);
  --border: oklch(0.92 0.01 245 / 0.09);
  --border-strong: oklch(0.92 0.01 245 / 0.16);
  --text: oklch(0.91 0.01 245);
  --text-muted: oklch(0.68 0.018 245);
  --text-subtle: oklch(0.52 0.016 245);
  --accent: oklch(0.76 0.14 58);
  --accent-hover: oklch(0.8 0.15 58);
  --accent-ink: oklch(0.17 0.04 58);
  --accent-soft: oklch(0.76 0.14 58 / 0.14);
  --accent-glow: oklch(0.74 0.16 58 / 0.28);
  --review: oklch(0.78 0.1 85);
  --review-soft: oklch(0.78 0.1 85 / 0.14);
  --success: oklch(0.72 0.14 155);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: "Geologica", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1180px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
.section-head h2,
.agents-copy h2,
.pricing-hero h1,
.cta-panel h2 {
  font-family: var(--font-display);
  text-wrap: balance;
}

p,
.section-sub,
.hero-lead {
  text-wrap: pretty;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, backdrop-filter 0.3s;
}

.site-header.scrolled {
  background: oklch(0.145 0.012 245 / 0.9);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: flex;
  width: 30px;
  height: 30px;
  color: var(--accent);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.nav-links {
  display: none;
  gap: 28px;
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  margin-left: auto;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    margin-left: 0;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: oklch(0.92 0.01 245 / 0.04);
  border-color: oklch(0.92 0.01 245 / 0.2);
}

/* Hero */

.hero {
  position: relative;
  padding: 56px 0 96px;
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
}

.hero-glow {
  display: block;
  position: absolute;
  top: -8%;
  right: -8%;
  width: 62%;
  height: 95%;
  background: radial-gradient(circle at 60% 45%, var(--accent-glow), transparent 68%);
  filter: blur(64px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 64px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.text-accent {
  color: var(--accent);
}

.hero-lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-proof {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.88rem;
  color: var(--text-subtle);
}

.hero-proof li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
  opacity: 0.7;
}

/* App screenshots */

.app-shot {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  box-shadow: 0 20px 50px -24px oklch(0 0 0 / 0.55);
  overflow: hidden;
}

.app-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.app-shot-hero {
  position: relative;
  z-index: 1;
  box-shadow: 0 24px 60px -24px oklch(0 0 0 / 0.6),
    0 0 0 1px var(--accent-soft);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-shot-hero:hover {
  transform: translateY(-2px);
}

.app-shot-settings figcaption {
  padding: 14px 18px;
  font-size: 0.82rem;
  color: var(--text-subtle);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.hero-visual {
  position: relative;
}

.visual-caption {
  margin-top: 16px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-subtle);
}

/* Sections */

section {
  padding: 96px 0;
}

.section-label {
  display: none;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 58ch;
}

/* Problem */

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-span-2 {
    grid-column: span 2;
  }

  .feature-span-3 {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .feature-span-2 {
    grid-column: span 2;
  }

  .feature-span-3 {
    grid-column: span 3;
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--border-strong);
}

.feature-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 48ch;
}

.feature-card:not(.feature-footnote) p {
  flex: 1;
}

.feature-files {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-files li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-subtle);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: oklch(0.12 0.01 245 / 0.5);
}

.feature-footnote {
  padding: 20px 24px;
}

.feature-footnote-inner {
  display: grid;
  gap: 16px;
  align-items: start;
}

@media (min-width: 720px) {
  .feature-footnote-inner {
    grid-template-columns: 32px 1fr;
    gap: 20px;
  }

  .feature-footnote .feature-icon {
    margin-bottom: 0;
  }

  .feature-footnote p {
    max-width: 72ch;
  }
}

/* Workflow */

.workflow {
  border-top: 1px solid var(--border);
}

.flow {
  --flow-dur: 11s;
}

/* The animated board (desktop+) */
.flow-board {
  display: none;
}

@media (min-width: 760px) {
  .flow-board {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
}

.flow-col {
  min-height: 248px;
  padding: 14px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: color-mix(in oklch, var(--bg-elevated) 55%, transparent);
}

.flow-col-name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  color: var(--text-subtle);
}

/* Traveling card */
.flow-card {
  position: absolute;
  top: 46px;
  left: 12px;
  width: calc((100% - 36px) / 4 - 24px);
  min-height: 158px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  box-shadow: 0 14px 30px -16px oklch(0 0 0 / 0.7);
  animation: flowTravel var(--flow-dur) cubic-bezier(0.7, 0, 0.3, 1) infinite,
    flowSkin var(--flow-dur) linear infinite;
}

.flow-stage {
  position: absolute;
  inset: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
}

.flow-stage-create {
  animation: flowShow1 var(--flow-dur) linear infinite;
}
.flow-stage-run {
  animation: flowShow2 var(--flow-dur) linear infinite;
}
.flow-stage-review {
  animation: flowShow3 var(--flow-dur) linear infinite;
}
.flow-stage-done {
  animation: flowShow4 var(--flow-dur) linear infinite;
  align-items: flex-start;
}

.flow-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.flow-card-meta {
  font-size: 0.76rem;
  color: var(--text-subtle);
}

.flow-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.flow-chips span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.flow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 999px;
}

.flow-badge-run {
  color: var(--accent);
  background: var(--accent-soft);
}
.flow-badge-run i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: flowPulse 1.1s ease-in-out infinite;
}
.flow-badge-review {
  color: var(--review);
  background: var(--review-soft);
}
.flow-badge-done {
  color: var(--success);
  background: color-mix(in oklch, var(--success) 16%, transparent);
}

.flow-term {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.flow-line {
  opacity: 0;
}
.flow-stage-run .flow-line:nth-child(1) {
  animation: flowType var(--flow-dur) linear infinite;
}
.flow-stage-run .flow-line:nth-child(2) {
  animation: flowType var(--flow-dur) linear infinite;
  animation-delay: calc(var(--flow-dur) * 0.04);
}
.flow-stage-run .flow-line:nth-child(3) {
  animation: flowType var(--flow-dur) linear infinite;
  animation-delay: calc(var(--flow-dur) * 0.08);
}

.flow-caret {
  display: inline-block;
  width: 6px;
  height: 11px;
  margin-left: 2px;
  vertical-align: -1px;
  background: var(--accent);
  animation: flowPulse 0.8s steps(2) infinite;
}

.flow-diff {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  line-height: 1.4;
}
.flow-diff-add {
  color: var(--success);
}
.flow-diff-del {
  color: oklch(0.7 0.16 25);
}

.flow-actions {
  display: flex;
  gap: 6px;
  margin-top: auto;
}
.flow-merge,
.flow-reject {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}
.flow-merge {
  color: var(--accent-ink);
  background: var(--accent);
}
.flow-reject {
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
}

.flow-check {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--success);
  background: color-mix(in oklch, var(--success) 16%, transparent);
}
.flow-check svg {
  width: 18px;
  height: 18px;
}

/* Caption row (also the mobile fallback) */
.flow-steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 760px) {
  .flow-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flow-step {
  padding: 18px 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  color: var(--text-subtle);
}

.flow-step:nth-child(1) { animation: flowStepA var(--flow-dur) linear infinite; }
.flow-step:nth-child(2) { animation: flowStepB var(--flow-dur) linear infinite; }
.flow-step:nth-child(3) { animation: flowStepC var(--flow-dur) linear infinite; }
.flow-step:nth-child(4) { animation: flowStepD var(--flow-dur) linear infinite; }

.flow-step-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: inherit;
  margin-bottom: 10px;
}

.flow-step h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.flow-step p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-muted);
}

@keyframes flowTravel {
  0% { left: 12px; opacity: 0; }
  3% { left: 12px; opacity: 1; }
  22% { left: 12px; }
  28% { left: calc((100% - 36px) / 4 + 24px); }
  47% { left: calc((100% - 36px) / 4 + 24px); }
  53% { left: calc((100% - 36px) / 2 + 36px); }
  72% { left: calc((100% - 36px) / 2 + 36px); }
  78% { left: calc(3 * ((100% - 36px) / 4) + 48px); }
  96% { left: calc(3 * ((100% - 36px) / 4) + 48px); opacity: 1; }
  100% { left: calc(3 * ((100% - 36px) / 4) + 48px); opacity: 0; }
}

@keyframes flowSkin {
  0%, 26% { border-color: var(--border-strong); box-shadow: 0 14px 30px -16px oklch(0 0 0 / 0.7); }
  31%, 72% { border-color: var(--accent-soft); box-shadow: 0 14px 30px -16px oklch(0 0 0 / 0.7), 0 0 0 1px var(--accent-soft); }
  78%, 96% { border-color: color-mix(in oklch, var(--success) 50%, transparent); box-shadow: 0 14px 30px -16px oklch(0 0 0 / 0.7), 0 0 0 1px color-mix(in oklch, var(--success) 35%, transparent); }
  100% { border-color: var(--border-strong); }
}

@keyframes flowShow1 {
  0%, 2% { opacity: 0; }
  4%, 22% { opacity: 1; }
  26%, 100% { opacity: 0; }
}
@keyframes flowShow2 {
  0%, 28% { opacity: 0; }
  31%, 47% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes flowShow3 {
  0%, 53% { opacity: 0; }
  56%, 72% { opacity: 1; }
  76%, 100% { opacity: 0; }
}
@keyframes flowShow4 {
  0%, 78% { opacity: 0; }
  81%, 96% { opacity: 1; }
  99%, 100% { opacity: 0; }
}

@keyframes flowType {
  0%, 30% { opacity: 0; transform: translateY(2px); }
  34%, 48% { opacity: 1; transform: translateY(0); }
  51%, 100% { opacity: 0; }
}

/* Caption highlight, re-timed to the card's real column dwell */
@keyframes flowStepA {
  0%, 22% { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
  28%, 100% { border-color: var(--border); background: var(--bg-elevated); color: var(--text-subtle); }
}
@keyframes flowStepB {
  0%, 22% { border-color: var(--border); background: var(--bg-elevated); color: var(--text-subtle); }
  26%, 33% { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
  39%, 100% { border-color: var(--border); background: var(--bg-elevated); color: var(--text-subtle); }
}
@keyframes flowStepC {
  0%, 31% { border-color: var(--border); background: var(--bg-elevated); color: var(--text-subtle); }
  34%, 51% { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
  56%, 100% { border-color: var(--border); background: var(--bg-elevated); color: var(--text-subtle); }
}
@keyframes flowStepD {
  0%, 53% { border-color: var(--border); background: var(--bg-elevated); color: var(--text-subtle); }
  56%, 96% { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
  100% { border-color: var(--border); background: var(--bg-elevated); color: var(--text-subtle); }
}

@keyframes flowPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  .flow-card { left: 0 !important; opacity: 1 !important; }
  .flow-stage-create { opacity: 1 !important; }
  .flow-line { opacity: 1 !important; }
}

/* Agents */

.agents {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.agents-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1000px) {
  .agents-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
  }
}

.agents-copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.agents-copy p {
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 24px;
}

.agent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.agent-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s, transform 0.2s;
}

.agent-list li:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.agent-list li.agent-custom {
  border-color: var(--border-strong);
  background: var(--accent-soft);
}

.agent-name {
  font-weight: 500;
}

.agent-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: right;
}

/* Privacy / local-first trust beat */

.privacy-panel {
  position: relative;
  overflow: hidden;
  padding: 56px clamp(24px, 5vw, 72px);
  border-radius: calc(var(--radius) * 1.5);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
}

.privacy-glow {
  position: absolute;
  top: -40%;
  left: -10%;
  width: 60%;
  height: 140%;
  background: radial-gradient(circle at 30% 40%, var(--accent-glow), transparent 65%);
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
}

.privacy-panel > * {
  position: relative;
  z-index: 1;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  margin-bottom: 22px;
}

.privacy-badge svg {
  width: 18px;
  height: 18px;
}

.privacy-panel h2 {
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
}

.privacy-lead {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 60ch;
  margin-bottom: 40px;
}

.privacy-points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

@media (min-width: 760px) {
  .privacy-points {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.privacy-points li {
  position: relative;
  padding-left: 18px;
}

.privacy-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.privacy-point-title {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.privacy-point-desc {
  display: block;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Highlighted column (pricing comparison table) */

.highlight-col {
  color: var(--text) !important;
  background: var(--accent-soft) !important;
}

/* CTA */

.cta {
  padding-bottom: 120px;
}

.cta-panel {
  position: relative;
  text-align: center;
  padding: 72px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  overflow: hidden;
}

.cta-glow {
  display: block;
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 0%, var(--accent-glow), transparent 62%);
  pointer-events: none;
}

.cta-panel h2 {
  position: relative;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 14px;
}

.cta-panel > p {
  position: relative;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 32px;
}

.cta-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.cta-meta {
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.cta-checklist {
  position: relative;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cta-checklist li::before {
  content: "✓";
  color: var(--accent);
  margin-right: 8px;
  font-weight: 600;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}

.footer-brand p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--text-subtle);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Pricing */

.pricing {
  padding: 96px 0 48px;
  border-top: 1px solid var(--border);
}

.pricing .section-head .pricing-note {
  margin-top: 16px;
}

.pricing-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-subtle);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 40px;
}

@media (min-width: 700px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
  }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 0.25s, transform 0.25s;
}

.price-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.price-card.featured {
  border-color: var(--accent);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.price-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
}

.price-card-head h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.price-card-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 22px 0 12px;
}

.price-value {
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-value.custom {
  font-size: 2rem;
}

.price-card.featured .price-value {
  color: var(--accent);
}

.price-card.enterprise {
  border-color: var(--border-strong);
}

.price-period {
  font-size: 0.92rem;
  color: var(--text-subtle);
}

.price-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 22px;
  min-height: 2.8em;
}

.price-coming-soon {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: -8px 0 18px;
  text-align: center;
}

.price-cta {
  width: 100%;
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: auto;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.price-features li {
  position: relative;
  padding-left: 22px;
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

/* Focused 2-card layout + compact tier strip */
.pricing-grid-focus {
  max-width: 820px;
  margin-inline: auto;
}

@media (min-width: 1100px) {
  .pricing-grid-focus {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pricing-more {
  max-width: 820px;
  margin: 30px auto 0;
}

.pricing-more-label {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text-subtle);
}

.pricing-more-label::before,
.pricing-more-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.pricing-more-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 700px) {
  .pricing-more-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.price-card-compact {
  padding: 22px;
}

.price-card-compact-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.price-card-compact .price-amount {
  margin: 0;
}

.price-card-compact .price-value {
  font-size: 1.5rem;
}

.price-card-compact .price-value.custom {
  font-size: 1.2rem;
}

.price-card-compact .price-summary {
  min-height: 0;
  margin-bottom: 18px;
  font-size: 0.9rem;
}

.price-card-compact .price-cta {
  margin-bottom: 0;
}

/* Compare-all-plans disclosure */
.plan-compare {
  max-width: 820px;
  margin: 36px auto 0;
}

.plan-compare > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}

.plan-compare > summary::-webkit-details-marker {
  display: none;
}

.plan-compare > summary:hover {
  border-color: var(--border-strong);
  color: var(--text);
}

.plan-compare-chevron {
  width: 16px;
  height: 16px;
  transition: transform 0.25s;
}

.plan-compare[open] .plan-compare-chevron {
  transform: rotate(180deg);
}

.plan-compare .pricing-table-wrap {
  margin-top: 16px;
}

.pricing-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.pricing-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.pricing-table th,
.pricing-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.pricing-table thead th {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.pricing-table tbody th {
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
}

.pricing-table tbody td {
  color: var(--text-muted);
  background: var(--bg-card);
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-faq {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 800px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.faq-item {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pricing-cta {
  padding-bottom: 0;
}

.nav-links a[aria-current="page"] {
  color: var(--text);
}

/* Reveal animations */

[data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal]:not(.revealed) {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .app-shot-hero {
    transform: none;
  }

  /* Static "all merged" state: full lanes, lit checkpoints, no heads. */
  .lane-flag {
    color: var(--success);
    opacity: 0.9;
  }
}

/* Swim-lanes band — parallel-race animation */

@property --p {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}

.lanes-band {
  position: relative;
  padding: 84px 0;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    var(--bg-elevated) 50%,
    var(--bg) 100%
  );
}

.lanes-band-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 90% at 85% 0%,
    var(--accent-glow),
    transparent 60%
  );
  filter: blur(60px);
  opacity: 0.7;
  pointer-events: none;
}

.lanes-band-inner {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
}

.lanes-band-head {
  text-align: center;
  margin-bottom: 44px;
}

.lanes-band-head .eyebrow {
  margin-bottom: 14px;
}

.lanes-band-head h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.lanes-rig {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.lane {
  display: grid;
  grid-template-columns: 196px 1fr 38px;
  align-items: center;
  gap: 18px;
  animation: laneRace var(--dur) var(--delay) cubic-bezier(0.65, 0, 0.35, 1)
    infinite;
}

.lane-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  box-shadow: 0 6px 18px -12px oklch(0 0 0 / 0.6);
}

.lane-task {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lane-agent {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-subtle);
}

.lane-agent-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.lane-rail {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: color-mix(in oklch, var(--accent) 11%, transparent);
  overflow: visible;
}

.lane-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--p) * 100%);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    color-mix(in oklch, var(--accent) 28%, transparent),
    var(--accent)
  );
  animation: laneSweep var(--dur) var(--delay) linear infinite;
}

.lane-head {
  position: absolute;
  top: 50%;
  left: calc(var(--p) * 100%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-hover);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 16px 2px var(--accent-glow);
  opacity: 0;
  animation: laneSweep var(--dur) var(--delay) linear infinite;
}

.lane-flag {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  color: var(--text-subtle);
  opacity: 0.25;
  animation: laneLand var(--dur) var(--delay) ease infinite;
}

.lane-flag svg {
  width: 16px;
  height: 16px;
}

@keyframes laneRace {
  0% {
    --p: 0;
  }
  58% {
    --p: 1;
  }
  78% {
    --p: 1;
  }
  100% {
    --p: 0;
  }
}

@keyframes laneSweep {
  0% {
    opacity: 0;
  }
  6% {
    opacity: 1;
  }
  78% {
    opacity: 1;
  }
  90%,
  100% {
    opacity: 0;
  }
}

@keyframes laneLand {
  0%,
  52% {
    opacity: 0.25;
    color: var(--text-subtle);
    transform: scale(0.85);
  }
  62% {
    opacity: 1;
    color: var(--success);
    transform: scale(1.15);
  }
  78% {
    opacity: 0.95;
    color: var(--success);
    transform: scale(1);
  }
  90%,
  100% {
    opacity: 0.25;
    color: var(--text-subtle);
    transform: scale(0.85);
  }
}

.lanes-caption {
  margin-top: 36px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-subtle);
}

@media (max-width: 640px) {
  .lanes-band {
    padding: 64px 0;
  }

  .lane {
    grid-template-columns: 124px 1fr 30px;
    gap: 12px;
  }

  .lane-card {
    padding: 8px 10px;
  }

  .lane-task {
    font-size: 0.78rem;
  }

  .lane-agent {
    display: none;
  }

  .lane-flag {
    width: 26px;
    height: 26px;
  }
}
