/* ======================================================================
   PixTwins for Agencies - landing stylesheet.
   Extends the main /wait/ landing tokens. All shared brand tokens,
   typography, components, and patterns are defined inline here so this
   page is fully self-contained when served from /agencies/.
   ====================================================================== */

:root {
  color-scheme: only light;

  /* === Brand palette === */
  --bg: #FFFFFF;
  --bg-alt: #FAFAF9;
  --bg-card: #FFFFFF;
  --fg: #0A0A0A;
  --fg-2: #4B5563;
  --fg-3: #9CA3AF;
  --border: #E5E7EB;
  --border-strong: #D1D5DB;
  --accent: #FD6706;
  --accent-soft: #FFEBDD;
  --cobalt: #03329C;
  --cobalt-soft: #E7EDF8;
  --cobalt-glow: rgba(3, 50, 156, 0.15);
  --black: #0A0A0A;
  --white: #FFFFFF;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, "SF Mono", Menlo, monospace;
  --font-display: 'Zen Dots', 'Inter', sans-serif;

  /* Radii + layout */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --container-max: 1240px;
  --gutter: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: only light; background: #FFFFFF; }
html, body {
  background: #FFFFFF;
  color: #0A0A0A;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--gutter); }

/* ============ Topbar ============ */
.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-mark { width: 24px !important; height: 24px !important; flex-shrink: 0; }
.brand-word { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--fg); }
.brand-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 4px;
  margin-left: 4px;
}
.nav-links { display: flex; gap: 24px; margin-left: 16px; flex: 1; }
.nav-links a { font-size: 14px; color: var(--fg-2); font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
@media (max-width: 800px) { .nav-links { display: none; } }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-primary:hover { background: #1F2937; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: transparent; }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-lg { font-size: 15px; padding: 12px 22px; }
.btn-block { width: 100%; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ============ Eyebrows + headings ============ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 28px;
  text-transform: uppercase;
}
.eyebrow-light { color: var(--accent) !important; }
.eyebrow-center { text-align: center; }

/* ============ Corner brackets ============ */
.bracket {
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
}
.bracket-tl { top: 16px; left: 16px; border-top: 2px solid currentColor; border-left: 2px solid currentColor; }
.bracket-tr { top: 16px; right: 16px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.bracket-bl { bottom: 16px; left: 16px; border-bottom: 2px solid currentColor; border-left: 2px solid currentColor; }
.bracket-br { bottom: 16px; right: 16px; border-bottom: 2px solid currentColor; border-right: 2px solid currentColor; }

/* ============ Hero ============ */
.hero { padding: 120px 0 96px; position: relative; overflow: hidden; }
.hero .container { position: relative; }
.hero .bracket { color: var(--fg-3); }
.hero-bg-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(10,10,10,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: 0;
}

.headline {
  font-size: clamp(64px, 11vw, 156px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--fg);
  margin-bottom: 32px;
  max-width: 13ch;
}
.headline-stress { color: var(--accent); font-weight: 900; }

.lede {
  font-size: clamp(17px, 1.7vw, 21px);
  color: var(--fg-2);
  max-width: 56ch;
  line-height: 1.5;
  margin-bottom: 40px;
}

.signup-note { margin-top: 16px; font-size: 13px; color: var(--fg-3); }

/* ============ Contrast section ============ */
.contrast { padding-top: 96px; padding-bottom: 96px; border-top: 1px solid var(--border); }
.contrast h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--fg);
}
.contrast-lede {
  font-size: 17px;
  color: var(--fg-2);
  max-width: 64ch;
  margin-bottom: 48px;
  line-height: 1.55;
}
.contrast-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 860px) { .contrast-grid { grid-template-columns: 1fr; } }

.contrast-col {
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  background: var(--bg-card);
}
.contrast-col.contrast-after {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.contrast-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 24px;
}
.contrast-label-on { color: var(--accent); }

.contrast-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contrast-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  font-size: 15px;
  line-height: 1.55;
}
.contrast-after .contrast-list li { color: rgba(255,255,255,0.85); }
.contrast-list strong { color: var(--fg); font-weight: 600; }
.contrast-after .contrast-list strong { color: var(--white); }
.contrast-list .x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--fg-3);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  margin-top: 1px;
}
.contrast-list .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: var(--white);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

/* ============ Roster section ============ */
.roster { padding-top: 96px; padding-bottom: 96px; border-top: 1px solid var(--border); }
.roster h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  color: var(--fg);
}
.roster-lede {
  font-size: 17px;
  color: var(--fg-2);
  max-width: 64ch;
  margin-bottom: 56px;
  line-height: 1.55;
}
.roster-grid { display: flex; flex-direction: column; gap: 56px; }

.cluster-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.agent-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
@media (max-width: 1100px) { .agent-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .agent-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .agent-grid { grid-template-columns: 1fr; } }

.agent-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.agent-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}
.agent-card.agent-pm {
  background: var(--cobalt);
  color: var(--white);
  border-color: var(--cobalt);
}
.agent-card.agent-pm h5, .agent-card.agent-pm p { color: var(--white); }

.agent-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04);
}
.agent-icon svg { width: 18px; height: 18px; }
.agent-card.agent-pm .agent-icon { background: var(--white); color: var(--cobalt); }

/* Alternate icon backgrounds inside each cluster: 2nd + 4th = cobalt */
.agent-grid .agent-card:not(.agent-pm):nth-child(2) .agent-icon,
.agent-grid .agent-card:not(.agent-pm):nth-child(4) .agent-icon {
  background: var(--cobalt);
}

.agent-card h5 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 6px;
}
.agent-card p {
  font-size: 13px;
  color: var(--fg-2);
  line-height: 1.5;
}

.roster-foot {
  text-align: center;
  margin-top: 48px;
  font-size: 14px;
  color: var(--fg-3);
}

/* ============ Workflow section ============ */
.workflow { padding-top: 96px; padding-bottom: 96px; border-top: 1px solid var(--border); background: var(--bg-alt); }
.workflow .container { max-width: 920px; }
.workflow h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 48px;
  color: var(--fg);
}

.workflow-demo {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
}

.workflow-prompt {
  background: var(--black);
  color: var(--white);
  border-radius: var(--r-md);
  padding: 18px 24px;
  font-family: var(--font-mono);
  font-size: 16px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.prompt-cursor {
  color: var(--accent);
  font-weight: 700;
}
.prompt-text {
  color: var(--white);
}

.workflow-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.workflow-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 20px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--border);
}
.workflow-step:first-child { border-top: none; padding-top: 0; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cobalt);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

.workflow-step h5 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--fg);
}
.workflow-step p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
}
.workflow-step p code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cobalt);
}
.step-meta {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0.05em;
}

.workflow-foot {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ============ Use cases ============ */
.use-cases { padding-top: 96px; padding-bottom: 96px; border-top: 1px solid var(--border); }
.use-cases h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 48px;
  color: var(--fg);
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1000px) { .case-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .case-grid { grid-template-columns: 1fr; } }

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.case-card-custom {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 1px var(--cobalt), 0 12px 32px rgba(3,50,156,0.06);
}

.case-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 16px;
  width: fit-content;
}
.case-tag[data-color="orange"] { background: var(--accent); color: var(--white); }
.case-tag[data-color="cobalt"] { background: var(--cobalt); color: var(--white); }

.case-card h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-bottom: 12px;
}
.case-card p {
  font-size: 14px;
  color: var(--fg-2);
  line-height: 1.55;
  margin-bottom: 20px;
  flex: 1;
}
.case-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.case-perks li {
  font-size: 13px;
  color: var(--fg-2);
  position: relative;
  padding-left: 16px;
}
.case-perks li:before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============ Poster banner (full-bleed cobalt) ============ */
.poster-banner {
  background: var(--cobalt);
  color: var(--white);
  padding: 120px 32px;
  position: relative;
  overflow: hidden;
}
.poster-bg-grid {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: 0;
}
.poster-banner .bracket { color: rgba(255,255,255,0.4); }
.poster-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  text-align: center;
}
.poster-display {
  font-family: var(--font-display);
  font-size: clamp(72px, 14vw, 200px);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: var(--white);
  margin: 32px 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.poster-line { display: block; }
.poster-line-accent { color: var(--accent); }
.poster-sub {
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.4;
}

/* ============ Pricing ============ */
.pricing { padding-top: 96px; padding-bottom: 96px; border-top: 1px solid var(--border); }
.pricing h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 16px;
  color: var(--fg);
}
.pricing-lede {
  font-size: 16px;
  color: var(--fg-2);
  max-width: 56ch;
  margin-bottom: 48px;
  line-height: 1.55;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .tier-grid { grid-template-columns: 1fr; } }

.tier-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.tier-card-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.tier-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 5px 12px;
  border-radius: 4px;
  white-space: nowrap;
}

.tier-name {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 16px;
}
.tier-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.price-num {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--fg);
  font-feature-settings: 'tnum';
}
.price-period {
  font-size: 14px;
  color: var(--fg-3);
}
.tier-line {
  font-size: 14px;
  color: var(--fg-2);
  margin-bottom: 24px;
}
.tier-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex: 1;
}
.tier-features li {
  font-size: 14px;
  color: var(--fg-2);
  position: relative;
  padding-left: 22px;
}
.tier-features li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ============ Early access (reused 2-col grid) ============ */
.early-access { padding-top: 80px; padding-bottom: 96px; }
.early-access-card {
  background: var(--black);
  color: var(--white);
  border-radius: 24px;
  padding: 80px 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.early-access-card .bracket { color: rgba(255,255,255,0.3); }
.early-access-left { display: flex; flex-direction: column; gap: 16px; }
.early-access-card h2 {
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--white);
}
.early-access-lede {
  font-size: 16px;
  color: rgba(255,255,255,0.74);
  max-width: 38ch;
  line-height: 1.55;
}
.early-access-note { margin-top: 8px; font-size: 13px; color: rgba(255,255,255,0.55); }
.early-access-note a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }

.early-access-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 28px;
}
.form-label { display: flex; flex-direction: column; gap: 6px; }
.form-label > span {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.early-access-form input,
.early-access-form select {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--white);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--r-md);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
}
.early-access-form input::placeholder { color: rgba(255,255,255,0.40); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none; }
.early-access-form input:focus,
.early-access-form select:focus {
  outline: none;
  border-color: var(--cobalt);
  background: rgba(255,255,255,0.10);
  box-shadow: 0 0 0 3px rgba(3, 50, 156, 0.30);
}
.early-access-form select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%23ffffff' d='M6 9L1 4h10z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: rgba(255,255,255,0.06);
  padding-right: 36px;
}
.early-access-form .form-submit {
  margin-top: 8px;
  background: var(--accent);
  color: var(--white);
  border: none;
  font-weight: 600;
  width: 100%;
  padding: 14px 20px;
  font-size: 15px;
}
.early-access-form .form-submit:hover { background: #FF7A1F; transform: translateY(-1px); }

@media (max-width: 920px) {
  .early-access-card { grid-template-columns: 1fr; gap: 32px; padding: 56px 32px; }
  .early-access-lede { max-width: 56ch; }
}
@media (max-width: 480px) { .early-access-card { padding: 40px 20px; } }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--border); padding: 40px 0; background: var(--bg); }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.brand-sm .brand-mark { width: 20px !important; height: 20px !important; }
.brand-sm .brand-word { font-size: 14px; }
.footer-page-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--fg-3);
  margin-left: 4px;
}
.footer-tag { font-size: 13px; color: var(--fg-2); }
.footer-links { display: flex; gap: 12px; font-size: 13px; color: var(--fg-3); align-items: center; }
.footer-links a { color: var(--fg-2); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--fg); }
.footer-meta { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }

@media (max-width: 700px) {
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}


/* ============================================================
   MOBILE RESPONSIVENESS PASS
   Tightens spacing, scales display type down, stacks CTAs.
   ============================================================ */

/* Tablet (<= 900px). softer adjustments */
@media (max-width: 900px) {
  :root { --gutter: 24px; }

  .topbar-inner { padding: 12px 24px; gap: 16px; }
  .brand-tag { font-size: 9px; padding: 2px 6px; }

  .hero { padding: 80px 0 72px; }
  .headline { max-width: 14ch; }

  .contrast { padding-top: 72px; padding-bottom: 72px; }
  .roster { padding-top: 72px; padding-bottom: 72px; }
  .workflow { padding-top: 72px; padding-bottom: 72px; }
  .use-cases { padding-top: 72px; padding-bottom: 72px; }
  .pricing { padding-top: 72px; padding-bottom: 72px; }
  .early-access { padding-top: 56px; padding-bottom: 80px; }
  .poster-banner { padding: 88px 24px; }

  .workflow-demo { padding: 32px; }
  .tier-card { padding: 32px 24px; }
  .case-card { padding: 24px; }
  .contrast-col { padding: 28px; }
}

/* Phone (<= 600px). major adjustments */
@media (max-width: 600px) {
  :root { --gutter: 16px; }

  .topbar-inner { padding: 12px 16px; gap: 12px; }
  .brand-tag { display: none; }
  .footer-page-tag { display: none; }
  .nav-actions { gap: 8px; }
  .nav-actions .btn { padding: 7px 12px; font-size: 13px; }
  .nav-actions .btn-ghost { display: none; }

  /* Hero scales down + CTAs stack full-width */
  .hero { padding: 56px 0 48px; }
  .headline {
    font-size: clamp(40px, 12vw, 64px) !important;
    line-height: 0.96;
    letter-spacing: -0.04em;
    max-width: 100%;
    margin-bottom: 24px;
  }
  .lede { font-size: 16px !important; margin-bottom: 28px; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  .cta-row .btn { justify-content: center; width: 100%; }
  .signup-note { font-size: 12px; margin-top: 12px; }

  /* Brackets disappear on phone (decorative noise at small sizes) */
  .hero .bracket { display: none; }

  /* Hero grid bg sized down so it doesn't dominate */
  .hero-bg-grid { background-size: 40px 40px; }

  /* Eyebrow tighter */
  .eyebrow { font-size: 11px; margin-bottom: 16px; letter-spacing: 0.12em; }

  /* Section h2 across the page. single rule covers all */
  .contrast h2,
  .roster h2,
  .workflow h2,
  .use-cases h2,
  .pricing h2 {
    font-size: clamp(28px, 8vw, 40px) !important;
    line-height: 1.05;
    margin-bottom: 16px;
  }
  .contrast-lede,
  .roster-lede,
  .pricing-lede {
    font-size: 15px !important;
    margin-bottom: 32px;
  }

  /* Sections reduce vertical padding */
  .contrast { padding-top: 48px; padding-bottom: 48px; }
  .roster { padding-top: 48px; padding-bottom: 48px; }
  .workflow { padding-top: 48px; padding-bottom: 48px; }
  .use-cases { padding-top: 48px; padding-bottom: 48px; }
  .pricing { padding-top: 48px; padding-bottom: 48px; }
  .early-access { padding-top: 40px; padding-bottom: 56px; }
  .poster-banner { padding: 64px 16px; }

  /* Contrast col padding shrinks */
  .contrast-col { padding: 22px; border-radius: 16px; }
  .contrast-list li { gap: 10px; font-size: 14px; }
  .contrast-list .x, .contrast-list .check { width: 20px; height: 20px; font-size: 12px; }

  /* Roster cluster spacing tightens */
  .roster-grid { gap: 40px; }
  .agent-grid { gap: 12px; }
  .agent-card { padding: 16px; }
  .agent-icon { width: 32px; height: 32px; margin-bottom: 10px; }
  .agent-icon svg { width: 16px; height: 16px; }
  .agent-card h5 { font-size: 14px; }
  .agent-card p { font-size: 12px; line-height: 1.45; }
  .cluster-title { font-size: 10px; padding-bottom: 10px; margin-bottom: 16px; }

  /* Workflow */
  .workflow .container { padding: 0 16px; }
  .workflow-demo { padding: 24px 18px; border-radius: 16px; }
  .workflow-prompt { padding: 14px 16px; font-size: 13px; gap: 8px; word-break: break-word; }
  .prompt-text { font-size: 13px; }
  .workflow-step { grid-template-columns: 28px 1fr; gap: 14px; padding: 14px 0; }
  .step-num { width: 26px; height: 26px; font-size: 11px; }
  .workflow-step h5 { font-size: 14px; }
  .workflow-step p { font-size: 13px; }
  .workflow-step p code { font-size: 11px; padding: 1px 4px; }
  .step-meta { display: block; margin-left: 0; margin-top: 4px; }
  .workflow-foot { font-size: 12px; padding-top: 18px; margin-top: 24px; }

  /* Use case cards padding + headings */
  .case-card { padding: 22px; }
  .case-card h3 { font-size: 19px; }
  .case-card p { font-size: 14px; }
  .case-tag { font-size: 9px; padding: 3px 7px; }

  /* Poster scales down + brackets hidden */
  .poster-banner .bracket { display: none; }
  .poster-bg-grid { background-size: 50px 50px; }
  .poster-display {
    font-size: clamp(48px, 16vw, 88px) !important;
    line-height: 0.92;
  }
  .poster-sub { font-size: 16px; }

  /* Pricing */
  .tier-card { padding: 28px 22px; border-radius: 16px; }
  .price-num { font-size: 40px; }
  .tier-features li { font-size: 13px; }
  .tier-tag { font-size: 9px; padding: 4px 10px; }

  /* Early access + form */
  .early-access-card { padding: 36px 20px !important; gap: 24px; border-radius: 18px; }
  .early-access-card .bracket { display: none; }
  .early-access-card h2 { font-size: clamp(24px, 6vw, 32px) !important; }
  .early-access-lede { font-size: 14px !important; max-width: 100%; }
  .early-access-form { padding: 22px; gap: 12px; }
  .early-access-form input,
  .early-access-form select { padding: 11px 12px; font-size: 14px; }
  .form-label > span { font-size: 10px; letter-spacing: 0.10em; }
  .early-access-form .form-submit { padding: 13px 18px; font-size: 14px; }

  /* Footer stacks neatly */
  .footer { padding: 32px 0; }
  .footer-inner { gap: 14px; }
  .footer-tag { font-size: 12px; }
  .footer-meta { font-size: 11px; }
  .footer-links { font-size: 12px; flex-wrap: wrap; }
}

/* Very small phones (<= 380px) */
@media (max-width: 380px) {
  :root { --gutter: 12px; }
  .headline { font-size: clamp(36px, 11vw, 48px) !important; }
  .poster-display { font-size: clamp(42px, 16vw, 72px) !important; }
  .nav-actions .btn { padding: 6px 10px; font-size: 12px; }
  .agent-card { padding: 14px; }
  .workflow-demo { padding: 20px 14px; }
  .workflow-prompt { font-size: 12px; padding: 12px 14px; }
}
