:root {
  color-scheme: dark;

  --bg: #0a0a0f;
  --bg-elevated: #101016;
  --surface: #0f0f15;
  --surface-strong: #14141b;
  --surface-soft: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --text: #f4f5f7;
  --text-muted: rgba(238, 240, 244, 0.76);
  --text-soft: rgba(238, 240, 244, 0.56);
  --text-faint: rgba(238, 240, 244, 0.34);

  --accent: #42c1ff;
  --accent-rgb: 66, 193, 255;
  --accent-2: #7ae8ff;
  --accent-3: #66e4a3;
  --signal: #ff8ab3;
  --signal-rgb: 255, 138, 179;
  --green: #66e4a3;
  --red: #ff9191;
  --amber: #ffd36f;

  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.35);
  --ring: 0 0 0 3px rgba(var(--accent-rgb), 0.28);

  --f-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --page-max: 1180px;
  --pad: clamp(18px, 4vw, 30px);
  --section-gap: clamp(22px, 3.5vw, 36px);
  --radius: 16px;
  --radius-sm: 10px;
}

main.agency-page {
  --section-gap: clamp(16px, 2.4vw, 24px);
}

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

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--f-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  position: relative;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: underline;
}

button {
  font: inherit;
}

a:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: var(--ring);
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 9999;
  padding: 10px 16px;
  background: #ffffff;
  color: #08131d;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  width: min(100%, calc(var(--page-max) + (var(--pad) * 2)));
  margin: 0 auto;
  padding: 22px var(--pad) 80px;
  position: relative;
}

.landing-page {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

.section {
  padding: 0;
}

.section + .section {
  border-top: none;
}

.section-shell,
.cta-panel,
.hero-shell,
.thank-you-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface);
}

.hero-shell {
  padding: clamp(22px, 3.4vw, 36px);
}

.hero-shell > * {
  position: relative;
  z-index: 1;
}

.section-shell,
.cta-panel {
  padding: clamp(24px, 4vw, 36px);
}

.cta-panel {
  background: var(--surface-strong);
  text-align: center;
}

.cta-panel .section-head {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.cta-panel .hero-actions {
  justify-content: center;
}

.page-topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 10, 15, 0.72);
  backdrop-filter: blur(12px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.brand-lockup:hover {
  opacity: 0.82;
  text-decoration: none;
}

.brand-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.brand-avatar {
  border-radius: 50%;
  object-fit: cover;
  object-position: center 14%;
  border: 1px solid var(--line-strong);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-copy strong {
  font-size: 0.88rem;
  line-height: 1.1;
}

.brand-copy small {
  font-size: 0.7rem;
  color: var(--text-soft);
  line-height: 1.2;
}

.hero-grid {
  display: grid;
  gap: clamp(18px, 2.6vw, 28px);
  align-items: start;
}

.hero-copy {
  max-width: 700px;
  min-width: 0;
}

.hero-side {
  min-width: 0;
}

.side-panel,
.feature-card,
.proof-card,
.fit-card,
.mini-stat-card,
.system-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.side-panel {
  padding: 24px;
}

.agency-page .agent-panel {
  padding: clamp(14px, 2vw, 18px);
  background: rgba(var(--accent-rgb), 0.04);
}

.feature-card,
.proof-card,
.fit-card,
.mini-stat-card,
.system-card {
  padding: 20px;
}

h1,
h2 {
  font-family: var(--f-display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.4rem);
  line-height: 1.08;
}

h3 {
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
}

p {
  font-size: clamp(1rem, 0.96rem + 0.15vw, 1.06rem);
  line-height: 1.68;
  text-wrap: pretty;
}

.eyebrow,
.section-kicker,
.feature-tag,
.label-yes,
.label-no {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--f-mono);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow,
.section-kicker,
.feature-tag {
  color: var(--accent);
}

.eyebrow::before,
.section-kicker::before,
.feature-tag::before {
  content: "";
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.eyebrow {
  margin-bottom: 18px;
}

.subheadline {
  max-width: 62ch;
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.2rem);
  line-height: 1.65;
  color: var(--text-muted);
}

.agency-page .hero-side .subheadline {
  max-width: 46ch;
  font-size: clamp(0.82rem, 0.78rem + 0.15vw, 0.88rem);
  line-height: 1.55;
}

.hero-copy-visual {
  display: block;
}

@media (min-width: 920px) {
  .hero-copy-visual {
    max-width: 480px;
  }
}

.muted {
  color: var(--text-soft);
  font-size: 0.96rem;
}

.section-lead {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.section-head {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  max-width: 760px;
  min-width: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.cta-microcopy {
  max-width: 250px;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.trust-bar,
.check-list,
.x-list,
.milestone-list {
  list-style: none;
  padding: 0;
}

.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 0.86rem;
}

.check-list,
.x-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.check-list li,
.x-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
  font-size: 0.96rem;
}

.check-list li::before,
.x-list li::before {
  position: absolute;
  left: 0;
  top: 0.08rem;
  font-weight: 700;
}

.check-list li::before {
  content: "+";
  color: var(--green);
}

.x-list li::before {
  content: "x";
  color: var(--red);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 15px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: #06121b;
  font-family: var(--f-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, border-color 0.16s ease;
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.22);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}

.btn-block {
  width: 100%;
}

.topbar-cta {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 0.88rem;
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.feature-grid,
.proof-grid {
  display: grid;
  gap: 16px;
}

.feature-grid > *,
.proof-grid > *,
.mini-stat-grid > *,
.milestone-list li {
  min-width: 0;
}

.feature-card h3,
.proof-card h3,
.fit-card h3 {
  margin-top: 14px;
}

.feature-card p:last-child,
.proof-card p:last-child,
.fit-card p:last-child {
  margin-top: 12px;
}

.system-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.system-card > div {
  display: grid;
  gap: 10px;
}

.system-num {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 0.82rem;
  font-weight: 600;
}

.mini-stat-grid {
  display: grid;
  gap: 14px;
}

.mini-stat-card strong {
  display: block;
  color: var(--accent);
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.mini-stat-card span,
.proof-card p:last-child {
  display: block;
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.fit-grid {
  display: grid;
  gap: 16px;
}

.label-yes,
.label-no {
  margin-bottom: 14px;
}

.label-yes {
  color: var(--green);
}

.label-no {
  color: var(--red);
}

.label-yes::before,
.label-no::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.fit-card.fit-yes {
  border-top: 2px solid rgba(102, 228, 163, 0.45);
}

.fit-card.fit-no {
  border-top: 2px solid rgba(255, 145, 145, 0.45);
}

.milestone-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.milestone-list li {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
}

.milestone-list li + li::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 40px;
  width: 2px;
  height: 18px;
  background: rgba(var(--accent-rgb), 0.3);
  border-radius: 1px;
  pointer-events: none;
}

.milestone-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 0.85rem;
  font-weight: 600;
}

.form-shell {
  background: var(--surface-strong);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-muted);
}

.field-optional {
  font-weight: 400;
  color: var(--text-faint);
  font-size: 0.82rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #0d0d12;
  color: var(--text);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='rgba(255,255,255,0.55)' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px 8px;
  padding-right: 40px;
}

.form-group textarea {
  min-height: 128px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-faint);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.78);
  background: #0d0d12;
  box-shadow: var(--ring);
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: rgba(255, 145, 145, 0.8);
  background: rgba(255, 145, 145, 0.08);
}

.form-group select:invalid {
  color: var(--text-faint);
}

.form-group select option {
  background: #101016;
  color: var(--text);
}

.field-error,
.form-error {
  color: var(--red);
  font-size: 0.88rem;
  line-height: 1.45;
}

.field-error {
  min-height: 1.25rem;
}

.field-error:empty {
  min-height: 0;
}

.form-error {
  min-height: 1.25rem;
  margin-top: 8px;
}

.form-error[data-tone="success"] {
  color: var(--green);
}

.form-error:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: var(--ring);
}

.form-note,
.support-note {
  margin-top: 14px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.cta-panel {
  padding-block: clamp(28px, 4vw, 40px);
}

.thank-you-wrap {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: clamp(48px, 10vw, 72px);
}

.thank-you-card {
  width: min(100%, 560px);
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}

.thank-you-card h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.status-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 26px;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 20px;
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--accent);
  font-size: 1.45rem;
}

.status-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.96rem;
  font-weight: 700;
}

.support-link:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: var(--ring);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 16px 18px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex-shrink: 0;
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 1.25rem;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 18px 18px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.form-privacy-note {
  text-align: center;
}

/* Founder credit */
.founder-name {
  display: block;
  font-size: 0.96rem;
  font-weight: 700;
}

.founder-title {
  display: block;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.founder-email {
  display: block;
  font-size: 0.78rem;
  color: var(--text-soft);
  overflow-wrap: anywhere;
  text-decoration-color: rgba(var(--accent-rgb), 0.38);
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.founder-email:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.founder-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.founder-strip .brand-avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.founder-strip-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

/* Use-case chips */
.chip-row {
  list-style: none;
  margin-top: 16px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text-muted);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* System terminal visual (hero side panel) */

.agent-console {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #0c0c12;
  box-shadow: var(--shadow-lg);
}

.agent-console::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(255, 255, 255, 0.025) 30px 31px),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(255, 255, 255, 0.02) 30px 31px);
  opacity: 0.66;
}

.agent-console-top,
.agent-feed {
  position: relative;
  z-index: 2;
}

.agent-console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  min-width: 0;
}

.live-pill,
.agent-console-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  min-width: 0;
}

.agent-console-status {
  color: var(--accent-3);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 0 rgba(102, 228, 163, 0.55);
  animation: livePulse 1.8s ease-out infinite;
}

.agent-map {
  position: relative;
  z-index: 1;
  height: clamp(300px, 36vw, 390px);
  min-height: 300px;
}

.agent-ring,
.agent-path,
.agent-core,
.agent-node {
  position: absolute;
}

.agent-ring {
  inset: 16%;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 50%;
}

.agent-ring--one {
  animation: spin 24s linear infinite;
}

.agent-ring--two {
  inset: 26%;
  border-color: rgba(255, 255, 255, 0.1);
  animation: spin 18s linear infinite reverse;
}

.agent-ring::before,
.agent-ring::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  color: var(--accent);
  box-shadow: 0 0 18px currentColor;
}

.agent-ring::before {
  top: 11%;
  left: 13%;
}

.agent-ring::after {
  right: 15%;
  bottom: 9%;
  color: var(--accent-2);
}

.agent-core {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  align-content: center;
  width: 142px;
  height: 124px;
  padding: 16px 20px;
  border: 1px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 20px;
  background: rgba(var(--accent-rgb), 0.14);
  box-shadow:
    0 0 42px rgba(var(--accent-rgb), 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translate(-50%, -50%);
  text-align: center;
  animation: coreBreathe 4.8s ease-in-out infinite;
}

.agent-core span {
  display: block;
  width: min(100%, 92px);
  max-width: 92px;
  font-family: var(--f-display);
  font-size: clamp(1.42rem, 3.6vw, 1.62rem);
  font-weight: 700;
  line-height: 1;
  overflow: visible;
  text-align: center;
  white-space: nowrap;
}

.agent-core small {
  display: block;
  margin-top: 5px;
  color: var(--text-muted);
  font-family: var(--f-mono);
  font-size: 0.62rem;
  line-height: 1.18;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-node {
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 94px;
  min-height: 48px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(13, 13, 19, 0.88);
  color: var(--text-muted);
  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  animation: nodeFloat 7.5s ease-in-out infinite;
}

.agent-node strong {
  display: block;
  max-width: 100%;
  color: currentColor;
  font-family: var(--f-mono);
  font-size: 0.67rem;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.agent-node small {
  margin-top: 3px;
  color: var(--text-soft);
  font-family: var(--f-mono);
  font-size: 0.48rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.agent-node--research { left: 3%; top: 17%; color: var(--text); }
.agent-node--content { right: 3%; top: 18%; color: var(--text); animation-delay: -1.2s; }
.agent-node--publish { right: 2%; top: 57%; color: var(--text); animation-delay: -2.4s; }
.agent-node--pipeline { left: 3%; top: 58%; color: var(--text); animation-delay: -3.3s; }
.agent-node--outreach { left: 30%; bottom: 8%; color: var(--text); animation-delay: -4.1s; }
.agent-node--learn { left: 35%; top: 5%; color: var(--text); animation-delay: -5s; }

.agent-path {
  z-index: 1;
  left: 50%;
  top: 50%;
  width: 39%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), 0), rgba(var(--accent-rgb), 0.5), rgba(var(--accent-rgb), 0));
  transform-origin: left center;
  opacity: 0.38;
  overflow: hidden;
}

.agent-path::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), transparent);
  transform: translateX(-100%);
  animation: packetFlow 4.2s linear infinite;
}

.agent-path--research { transform: rotate(216deg); }
.agent-path--content { transform: rotate(323deg); }
.agent-path--publish { transform: rotate(30deg); }
.agent-path--pipeline { transform: rotate(146deg); }
.agent-path--outreach { transform: rotate(89deg); }
.agent-path--learn { transform: rotate(270deg); }
.agent-path--content::after { animation-delay: 0.4s; }
.agent-path--publish::after { animation-delay: 0.8s; }
.agent-path--pipeline::after { animation-delay: 1.2s; }
.agent-path--outreach::after { animation-delay: 1.6s; }
.agent-path--learn::after { animation-delay: 2s; }

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

.agent-feed li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  color: var(--text-soft);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  line-height: 1.45;
  opacity: 0;
  animation: feedCycle 8s linear infinite;
}

.agent-feed li:nth-child(2) { animation-delay: 1.4s; }
.agent-feed li:nth-child(3) { animation-delay: 2.8s; }
.agent-feed li:nth-child(4) { animation-delay: 4.2s; }

.agent-feed span {
  color: var(--accent);
}

.proof-shell {
  background: var(--surface-strong);
}

.proof-metrics .mini-stat-card {
  overflow: hidden;
}

.proof-metrics .mini-stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--accent);
  opacity: 0.55;
}

.proof-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Audit hero (less tall than agency hero - form does the heavy lifting) */
.audit-hero-shell {
  padding: clamp(28px, 4vw, 48px);
  min-height: auto;
}

.audit-hero-copy {
  max-width: 640px;
}

/* Calendar embed wrapper */
.calendar-embed-wrap {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
}

.calendar-embed-wrap iframe {
  display: block;
  width: 100%;
  min-height: 600px;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

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

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102, 228, 163, 0.55);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(102, 228, 163, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(102, 228, 163, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes coreBreathe {
  0%,
  100% {
    box-shadow:
      0 0 32px rgba(var(--accent-rgb), 0.13),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }

  50% {
    box-shadow:
      0 0 48px rgba(var(--accent-rgb), 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
  }
}

@keyframes nodeFloat {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

@keyframes packetFlow {
  to {
    transform: translateX(100%);
  }
}

@keyframes feedCycle {
  0%,
  18% {
    opacity: 0;
    transform: translateY(4px);
  }

  28%,
  72% {
    opacity: 1;
    transform: translateY(0);
  }

  82%,
  100% {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main > header .eyebrow {
  animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0s both;
}

main > header h1 {
  animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

main > header .subheadline {
  animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}

main > header .hero-actions,
main > header .mt-32 {
  animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.3s both;
}

main > header .trust-bar,
main > header .side-panel {
  animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.42s both;
}

.mt-8 {
  margin-top: 8px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mt-48 {
  margin-top: 48px;
}

@media (min-width: 640px) {
  .mini-stat-grid,
  .fit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 920px) {
  .hero-shell {
    min-height: clamp(620px, calc(100svh - 190px), 760px);
  }

  .hero-grid {
    min-height: 100%;
    align-items: center;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  }

  .agency-page h1 {
    font-size: clamp(3.5rem, 5.1vw, 4.35rem);
  }

  .agency-page .agent-map {
    height: 340px;
    min-height: 340px;
  }

  .proof-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .proof-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 920px) and (max-height: 900px) {
  .page {
    padding-top: 18px;
  }

  .hero-shell {
    padding: 22px 24px;
  }

  h1 {
    font-size: clamp(2.7rem, 4.7vw, 4.15rem);
  }

  .subheadline {
    font-size: 1.02rem;
    line-height: 1.55;
  }

  .hero-actions {
    gap: 10px;
  }

  .trust-bar {
    margin-top: 18px;
  }

  .check-list li,
  .x-list li {
    font-size: 0.92rem;
  }

  .side-panel {
    padding: 20px;
  }

  .agent-map {
    height: 290px;
    min-height: 290px;
  }

  .agent-feed {
    display: none;
  }

  .feature-card,
  .proof-card,
  .fit-card,
  .mini-stat-card,
  .system-card {
    padding: 16px;
  }

  .mini-stat-card span,
  .proof-card p:last-child {
    margin-top: 8px;
    line-height: 1.45;
  }
}

@media (max-width: 919px) {
  .page-topbar {
    border-radius: 14px;
    align-items: flex-start;
  }
}

@media (max-width: 639px) {
  .landing-page {
    gap: 14px;
  }

  .page {
    padding-top: 12px;
    padding-bottom: 112px;
  }

  .page-topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 7px 8px;
    border-radius: 14px;
  }

  .topbar-cta {
    display: none;
  }

  .page-topbar > * {
    min-width: 0;
  }

  .brand-lockup {
    width: 100%;
    gap: 8px;
  }

  .hero-shell {
    width: 100%;
    max-width: 100%;
    padding: 14px;
  }

  .hero-grid {
    width: 100%;
    max-width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    overflow: hidden;
  }

  .hero-copy,
  .hero-side {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  main > header .hero-copy {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    overflow: hidden;
  }

  h1 {
    font-size: clamp(1.7rem, 7.2vw, 2.15rem);
    line-height: 1.01;
  }

  h2 {
    font-size: clamp(1.38rem, 6.4vw, 1.9rem);
    line-height: 1.06;
  }

  .subheadline {
    font-size: 0.89rem;
    line-height: 1.38;
  }

  main > header .mt-32 {
    margin-top: 16px;
  }

  main > header .mt-24 {
    margin-top: 14px;
  }

  main > header .hero-copy .hero-actions {
    margin-top: 14px;
  }

  .cta-microcopy {
    max-width: 100%;
    text-align: center;
    font-size: 0.78rem;
    overflow-wrap: anywhere;
  }

  main > header .hero-side .subheadline {
    margin-top: 20px;
  }

  main > header .trust-bar {
    display: flex;
    gap: 6px;
    margin-top: 14px;
  }

  main > header .trust-item {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 0.68rem;
    line-height: 1.25;
  }

  .eyebrow {
    margin-bottom: 12px;
    font-size: 0.58rem;
    letter-spacing: 0.11em;
  }

  .eyebrow::before {
    width: 14px;
  }

  .side-panel {
    padding: 16px;
  }

  .section-head {
    gap: 10px;
    margin-bottom: 20px;
  }

  .mini-stat-grid {
    gap: 10px;
  }

  .proof-metrics {
    grid-template-columns: 1fr;
  }

  .mini-stat-card,
  .feature-card,
  .proof-card,
  .fit-card,
  .system-card {
    padding: 16px;
  }

  .mini-stat-card strong {
    font-size: clamp(1.5rem, 8vw, 2.1rem);
  }

  .mini-stat-card span,
  .proof-card p:last-child {
    margin-top: 8px;
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .btn {
    width: 100%;
    min-height: 46px;
    padding: 12px 16px;
    font-size: 0.94rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 8px;
  }

  .faq-item summary {
    min-height: 56px;
    padding: 14px 16px;
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .faq-item p {
    padding: 0 16px 16px;
    font-size: 0.88rem;
  }

  .system-card {
    flex-direction: column;
  }

  .form-group {
    gap: 6px;
    margin-bottom: 12px;
  }

  .form-group label {
    font-size: 0.82rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    min-height: 48px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  .form-note,
  .support-note {
    margin-top: 10px;
    font-size: 0.84rem;
  }

  .page-topbar .brand-logo {
    width: 28px;
    height: 28px;
  }

  .brand-copy strong {
    font-size: 0.78rem;
  }

  .brand-copy small {
    display: none;
  }

  main.landing-page.agency-page > header .hero-copy h1 {
    font-size: clamp(1.72rem, 7vw, 2.05rem);
    line-height: 1.03;
    width: min(100%, 19rem);
    max-width: 100%;
    text-wrap: pretty;
  }

  .agency-page .subheadline {
    font-size: 0.82rem;
    line-height: 1.34;
  }

  .agency-page .side-panel {
    padding: 16px;
  }

  .agency-page .agent-panel {
    padding: 10px;
  }

  .agent-console-top {
    justify-content: flex-start;
    padding: 10px 12px;
  }

  .agent-console-status {
    display: none;
  }

  .live-pill,
  .agent-console-status {
    font-size: 0.58rem;
    letter-spacing: 0.05em;
  }

  .agent-map {
    height: clamp(250px, 70vw, 280px);
    min-height: 250px;
    overflow: hidden;
  }

  .agent-ring {
    inset: 17% 8%;
  }

  .agent-ring--two {
    inset: 28% 18%;
  }

  .agent-path {
    width: 38%;
    opacity: 0.24;
  }

  .agent-core {
    width: 108px;
    height: 86px;
    padding: 12px 14px;
    border-radius: 20px;
  }

  .agent-core span {
    width: min(100%, 70px);
    max-width: 70px;
    font-size: 1.02rem;
  }

  .agent-core small {
    font-size: 0.44rem;
  }

  .agent-node {
    width: clamp(64px, 20vw, 74px);
    min-width: 0;
    max-width: 74px;
    min-height: 36px;
    padding: 5px 5px;
  }

  .agent-node strong {
    font-size: 0.46rem;
    letter-spacing: 0.04em;
  }

  .agent-node small {
    font-size: 0.34rem;
    letter-spacing: 0.04em;
  }

  .agent-node--learn {
    left: 50%;
    top: 6%;
    width: 88px;
    max-width: 88px;
    transform: translateX(-50%);
  }

  .agent-node--research { left: 1%; top: 23%; }
  .agent-node--content { right: 1%; top: 23%; }
  .agent-node--publish { right: 1%; top: 61%; }
  .agent-node--pipeline { left: 1%; top: 61%; }

  .agent-node--outreach {
    left: 50%;
    bottom: 6%;
    width: 88px;
    max-width: 88px;
    transform: translateX(-50%);
  }

  .agent-feed {
    display: none;
  }

  .agency-page .mini-stat-card,
  .agency-page .proof-card {
    padding: 12px;
  }

  .agency-page .mini-stat-card strong {
    font-size: clamp(1.22rem, 6vw, 1.65rem);
  }

  .agency-page .mini-stat-card span {
    font-size: 0.76rem;
  }

  main.landing-page.agency-page {
    gap: 10px;
  }

  .agency-page .section-shell,
  .agency-page .cta-panel {
    padding: 16px 14px;
  }

  main.landing-page.agency-page > header .trust-bar {
    gap: 5px;
    margin-top: 12px;
  }

  main.landing-page.agency-page > header .trust-item {
    min-height: 24px;
    padding: 4px 7px;
    font-size: 0.62rem;
    line-height: 1.2;
  }

  .agency-page .section-head {
    gap: 8px;
    margin-bottom: 14px;
  }

  .agency-page .section-head h2,
  .agency-page .cta-panel h2 {
    font-size: clamp(1.12rem, 5.2vw, 1.45rem);
    line-height: 1.08;
  }

  .agency-page .section-kicker,
  .agency-page .feature-tag,
  .agency-page .label-yes,
  .agency-page .label-no {
    gap: 6px;
    font-size: 0.54rem;
    letter-spacing: 0.1em;
  }

  .agency-page .section-kicker::before,
  .agency-page .feature-tag::before {
    width: 10px;
  }

  .agency-page .feature-grid,
  .agency-page .proof-grid,
  .agency-page .fit-grid,
  .agency-page .tier-grid,
  .agency-page .milestone-list {
    gap: 10px;
  }

  .agency-page .feature-card,
  .agency-page .proof-card,
  .agency-page .fit-card,
  .agency-page .system-card,
  .agency-page .tier-card {
    padding: 12px;
  }

  .agency-page .feature-card h3,
  .agency-page .proof-card h3,
  .agency-page .fit-card h3,
  .agency-page .system-card h3,
  .agency-page .tier-card h3 {
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.22;
  }

  .agency-page .feature-card p:last-child,
  .agency-page .proof-card p:last-child,
  .agency-page .fit-card p:last-child,
  .agency-page .tier-card > p:last-child {
    margin-top: 8px;
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .agency-page .section-lead,
  .agency-page .muted,
  .agency-page .check-list li,
  .agency-page .x-list li {
    font-size: 0.82rem;
    line-height: 1.42;
  }

  .agency-page .check-list,
  .agency-page .x-list {
    gap: 9px;
  }

  .agency-page .check-list li,
  .agency-page .x-list li {
    padding-left: 22px;
  }

  .agency-page .system-card {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .agency-page .system-card > div {
    gap: 6px;
  }

  .agency-page .system-num {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 0.72rem;
  }

  .agency-page .chip-row {
    gap: 6px;
    margin-top: 10px;
  }

  .agency-page .chip {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 0.6rem;
    line-height: 1.2;
  }

  .agency-page .tier-card {
    gap: 7px;
  }

  .agency-page .tier-price {
    font-size: 1.12rem;
  }

  .agency-page .tier-retainer {
    font-size: 0.6rem;
    line-height: 1.35;
  }
}

@media (max-width: 380px) {
  main.landing-page.agency-page > header .hero-copy h1 {
    width: 100%;
    font-size: clamp(1.54rem, 7.2vw, 1.72rem);
  }

  main.landing-page.agency-page > header .subheadline {
    font-size: 0.84rem;
    line-height: 1.32;
  }

  main.landing-page.agency-page > header .hero-copy .hero-actions {
    margin-top: 12px;
  }

  main.landing-page.agency-page > header .trust-bar {
    display: none;
  }

  main.landing-page.agency-page > header .cta-microcopy {
    font-size: 0.82rem;
    max-width: 100%;
  }

  main.landing-page.agency-page > header .hero-grid {
    gap: 12px;
  }

  .agency-page .agent-panel {
    padding: 8px;
  }

  .agency-page .agent-map {
    height: clamp(230px, 66vw, 252px);
    min-height: 230px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(var(--accent-rgb), 0.3);
  }

  .btn-secondary:hover {
    border-color: rgba(var(--accent-rgb), 0.34);
    background: rgba(var(--accent-rgb), 0.08);
    box-shadow: none;
  }

  .trust-item:hover,
  .side-panel:hover,
  .feature-card:hover,
  .proof-card:hover,
  .fit-card:hover,
  .mini-stat-card:hover,
  .system-card:hover,
  .tier-card:hover {
    text-decoration: none;
    border-color: rgba(var(--accent-rgb), 0.34);
    background: rgba(var(--accent-rgb), 0.05);
    transform: translateY(-2px);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* Modal */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 24px);
  background: rgba(4, 4, 8, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: modalFadeIn 0.22s ease both;
}

.modal-overlay[hidden] {
  display: none !important;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-panel {
  position: relative;
  width: min(100%, 600px);
  max-height: calc(100svh - 48px);
  overflow-y: auto;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line-strong);
  border-radius: calc(var(--radius) + 2px);
  background: var(--surface-strong);
  box-shadow: var(--shadow-xl);
  animation: modalSlideUp 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.modal-close:focus-visible {
  outline: none;
  box-shadow: var(--ring);
}

.modal-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin-top: 10px;
  margin-bottom: 0;
}

.modal-subtext {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.modal-benefits {
  margin-top: 16px;
  margin-bottom: 24px;
}

.modal-centered-note {
  margin-top: 16px;
  text-align: center;
}

.modal-action-row {
  margin-top: 24px;
  text-align: center;
}

.modal-confirmation {
  padding: 40px 8px;
  text-align: center;
}

.modal-success-icon {
  margin-bottom: 16px;
  color: var(--green);
  font-size: 3rem;
  line-height: 1;
}

.modal-confirm-title {
  margin-bottom: 12px;
}

.modal-confirm-text {
  margin-bottom: 32px;
}

.modal-progress {
  display: grid;
  gap: 10px;
}

.modal-progress-label {
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.modal-progress-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-width: 180px;
}

.modal-progress-bar span {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.modal-progress-bar .is-active {
  background: var(--accent);
}

@media (min-width: 640px) {
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
  }
}

@media (max-width: 639px) {
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-panel {
    width: 100%;
    max-height: 92svh;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .modal-panel .calendar-embed-wrap iframe {
    min-height: min(560px, 68svh);
  }
}

@media (prefers-reduced-motion: reduce) {
  .modal-overlay,
  .modal-panel {
    animation: none;
  }
}

/* ============================================================
   Consent checkbox (forms)
   ============================================================ */
.form-consent {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.form-consent input[type="checkbox"] {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  min-height: 0;
  margin-top: 2px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.form-consent input[type="checkbox"]:checked {
  border-color: rgba(var(--accent-rgb), 0.78);
  background:
    rgba(var(--accent-rgb), 0.22)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M2 7l3.5 3.5L12 3.5' stroke='%2342c1ff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px 14px no-repeat;
}

.form-consent input[type="checkbox"]:focus-visible {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.78);
  box-shadow: var(--ring);
}

.form-consent input[type="checkbox"][aria-invalid="true"] {
  border-color: rgba(255, 145, 145, 0.8);
  background-color: rgba(255, 145, 145, 0.08);
}

.form-consent label {
  flex: 1 1 calc(100% - 34px);
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-soft);
  cursor: pointer;
}

.form-consent a {
  color: var(--accent);
  text-decoration: underline;
}

.form-consent .field-error {
  flex-basis: 100%;
  margin-left: 34px;
}

@media (max-width: 360px) {
  .form-consent .field-error {
    margin-left: 0;
  }
}

/* ============================================================
   Site footer (legal links)
   ============================================================ */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  max-width: 960px;
  margin: 48px auto 0;
  padding: 28px clamp(20px, 5vw, 40px);
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.84rem;
}

.site-footer-legal {
  margin: 0;
  color: var(--text-faint);
  font-size: 0.84rem;
  line-height: 1.5;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer-links a {
  color: var(--text-soft);
  font-size: 0.84rem;
  text-decoration: none;
}

.site-footer-links a:hover,
.site-footer-links a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

/* ============================================================
   Legal pages (privacy, terms)
   ============================================================ */
.legal-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 72px) clamp(20px, 5vw, 40px) 0;
}

.legal-back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--text-soft);
  font-family: var(--f-mono);
  font-size: 0.84rem;
  text-decoration: none;
}

.legal-back:hover,
.legal-back:focus-visible {
  color: var(--accent);
}

.legal-head {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.legal-head h1 {
  margin: 8px 0 12px;
  font-family: var(--f-display);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
}

.legal-meta {
  margin: 0;
  color: var(--text-faint);
  font-family: var(--f-mono);
  font-size: 0.82rem;
}

.legal-content {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-content h2 {
  margin: 36px 0 12px;
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 3.5vw, 1.6rem);
  line-height: 1.2;
  color: var(--text);
}

.legal-content h3 {
  margin: 24px 0 8px;
  font-size: 1.05rem;
  color: var(--text);
}

.legal-content p {
  margin: 0 0 16px;
}

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 22px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-content strong {
  color: var(--text);
}

.legal-page .site-footer {
  margin-top: 56px;
}

/* ============================================================
   Investment tiers
   ============================================================ */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.tier-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.tier-card h3 {
  font-family: var(--f-display);
  font-size: 1.18rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.tier-price {
  color: var(--accent);
  font-family: var(--f-mono);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.tier-retainer {
  color: var(--text-muted);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.5;
  text-transform: uppercase;
}

.tier-card > p:last-child {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.tier-card--featured {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.05);
}

@media (max-width: 719px) {
  .tier-card {
    padding: 18px 16px;
  }
}

/* Orchestrator label in the hero agent console */
.agent-core--orchestrator span {
  width: 100%;
  max-width: 100%;
  font-size: clamp(0.72rem, 2vw, 0.88rem);
  letter-spacing: -0.01em;
}

@media (max-width: 639px) {
  .agency-page .agent-panel {
    width: min(100%, 320px);
    padding: 8px;
  }

  .agency-page .agent-console {
    border-radius: 12px;
  }

  .agency-page .agent-console-top {
    padding: 8px 10px;
  }

  .agency-page .live-pill {
    gap: 6px;
    font-size: 0.5rem;
    letter-spacing: 0.045em;
  }

  .agency-page .live-dot {
    width: 6px;
    height: 6px;
  }

  .agency-page .agent-map {
    height: clamp(196px, 54vw, 220px);
    min-height: 0;
  }

  .agency-page .agent-ring {
    inset: 17% 10%;
  }

  .agency-page .agent-ring--two {
    inset: 30% 22%;
  }

  .agency-page .agent-ring::before,
  .agency-page .agent-ring::after {
    width: 5px;
    height: 5px;
  }

  .agency-page .agent-path {
    width: 35%;
    height: 1px;
    opacity: 0.18;
  }

  .agency-page .agent-core {
    width: 86px;
    height: 64px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .agency-page .agent-core--orchestrator span {
    font-size: 0.72rem;
    line-height: 1.05;
  }

  .agency-page .agent-core small {
    margin-top: 3px;
    font-size: 0.36rem;
  }

  .agency-page .agent-node {
    width: 58px;
    min-width: 58px;
    max-width: 58px;
    min-height: 30px;
    padding: 4px 5px;
    animation: none;
  }

  .agency-page .agent-node strong {
    font-size: 0.39rem;
    line-height: 1.05;
    letter-spacing: 0.035em;
  }

  .agency-page .agent-node small {
    margin-top: 2px;
    font-size: 0.28rem;
    letter-spacing: 0.035em;
  }

  .agency-page .agent-node--learn {
    left: 50%;
    top: 7%;
    width: 74px;
    min-width: 74px;
    max-width: 74px;
    transform: translateX(-50%);
  }

  .agency-page .agent-node--research { left: 2%; top: 24%; }
  .agency-page .agent-node--content { right: 2%; top: 24%; }
  .agency-page .agent-node--publish { right: 2%; top: 60%; }
  .agency-page .agent-node--pipeline { left: 2%; top: 60%; }

  .agency-page .agent-node--outreach {
    left: 50%;
    bottom: 7%;
    width: 74px;
    min-width: 74px;
    max-width: 74px;
    transform: translateX(-50%);
  }
}

/* Breakdown video embed */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #000;
}

.video-frame iframe,
.video-facade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade {
  display: block;
  padding: 0;
  margin: 0;
  background: #000;
  cursor: pointer;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  transition: opacity 0.2s ease, transform 0.3s ease;
}

.video-facade:hover img,
.video-facade:focus-visible img {
  opacity: 1;
  transform: scale(1.015);
}

.video-facade:focus-visible {
  outline: none;
  box-shadow: inset var(--ring);
}

.video-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.35);
  transition: transform 0.16s ease;
}

.video-facade:hover .video-play-icon {
  transform: translate(-50%, -50%) scale(1.06);
}

.video-play-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #06121b;
}

.video-play-label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(10, 10, 15, 0.72);
  color: var(--text);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@media (max-width: 639px) {
  .video-play-icon {
    width: 56px;
    height: 56px;
  }

  .video-play-icon::after {
    border-width: 9px 0 9px 15px;
  }

  .video-play-label {
    left: 12px;
    bottom: 10px;
    font-size: 0.72rem;
  }
}

/* Sticky jump cue to the breakdown video */

.breakdown-jump {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(15, 15, 21, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text);
  font-family: var(--f-mono);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, border-color 0.16s ease, color 0.16s ease;
  pointer-events: none;
}

.breakdown-jump.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.breakdown-jump:hover,
.breakdown-jump:focus-visible {
  border-color: var(--accent);
  color: var(--accent-2);
}

.breakdown-jump:focus-visible {
  outline: none;
  box-shadow: var(--ring), var(--shadow-lg);
}

.breakdown-jump-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #06121b;
  animation: breakdownJumpBounce 1.6s ease-in-out infinite;
}

.breakdown-jump-arrow::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-1px) rotate(45deg);
}

@keyframes breakdownJumpBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .breakdown-jump,
  .breakdown-jump-arrow {
    animation: none;
  }
}

@media (max-width: 639px) {
  .breakdown-jump {
    bottom: 16px;
    width: min(92%, 420px);
    justify-content: center;
    padding: 14px 20px;
    border-color: rgba(var(--accent-rgb), 0.5);
    background: rgba(12, 12, 18, 0.96);
    box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.3), var(--shadow-lg);
    font-size: 0.88rem;
    font-weight: 700;
    animation: breakdownJumpGlow 2.4s ease-in-out infinite;
  }

  .breakdown-jump-arrow {
    width: 26px;
    height: 26px;
  }
}

/* Mobile polish pass: stronger depth, deliberate hierarchy, and persistent action. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 12% 8%, rgba(var(--accent-rgb), 0.1), transparent 30rem), radial-gradient(circle at 88% 34%, rgba(var(--signal-rgb), 0.055), transparent 26rem);
}

.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 1200; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.7); transform: scaleX(0); transform-origin: left; will-change: transform; }
.agency-page .hero-shell::before { content: ""; position: absolute; width: 340px; height: 340px; right: -120px; top: -150px; border-radius: 50%; background: rgba(var(--accent-rgb), 0.09); filter: blur(70px); pointer-events: none; }
.agency-page .section-shell::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 1px; background: linear-gradient(transparent, rgba(var(--accent-rgb), 0.3), transparent); opacity: 0.65; }
.mobile-cta-dock { display: none; }
.agent-console::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; height: 80px; top: -90px; pointer-events: none; background: linear-gradient(transparent, rgba(var(--accent-rgb), 0.07), transparent); animation: consoleScan 7s linear infinite; }

@keyframes consoleScan { to { transform: translateY(560px); } }

@media (max-width: 639px) {
  .page { padding-top: 10px; padding-bottom: 126px; }
  .page-topbar { position: sticky; top: 8px; flex-direction: row; align-items: center; background: rgba(10, 10, 15, 0.86); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24); }
  .hero-shell { padding: 22px 14px 14px; }
  main.landing-page.agency-page > header .hero-copy h1 { width: 100%; font-size: clamp(2rem, 9.1vw, 2.6rem); line-height: 0.98; }
  .agency-page .subheadline { font-size: 0.91rem; line-height: 1.46; }
  .mobile-cta-dock { position: fixed; z-index: 600; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 13px; border: 1px solid rgba(var(--accent-rgb), 0.3); border-radius: 16px; background: rgba(13, 13, 19, 0.92); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.48), 0 0 24px rgba(var(--accent-rgb), 0.08); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
  .mobile-cta-dock > span { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); font-family: var(--f-mono); font-size: 0.61rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap; }
  .mobile-cta-dock i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(102, 228, 163, 0.75); }
  .mobile-cta-dock .btn { width: auto; min-height: 42px; padding: 10px 14px; border-radius: 11px; font-size: 0.78rem; white-space: nowrap; }
  .mobile-cta-dock .btn span { margin-left: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .agent-console::after { display: none; }
}

@keyframes breakdownJumpGlow {
  0%, 100% { box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.3), var(--shadow-lg); }
  50% { box-shadow: 0 12px 40px rgba(var(--accent-rgb), 0.55), var(--shadow-lg); }
}
