:root {
  --paper-100: #f9f7f4;
  --paper-150: #f4f1ec;
  --paper-200: #eae6df;
  --paper-300: #dcd7ce;
  --paper-400: #c6c0b5;
  --paper-500: #a39c92;
  --paper-600: #7e786f;
  --paper-700: #5e5952;
  --paper-800: #2b2823;
  --paper-900: #191713;
  --signal-100: #fbe7e1;
  --signal-200: #f7c9bc;
  --signal-500: #e2482a;
  --signal-600: #c63a1e;
  --signal-700: #a22f18;
  --room-100: #e8ecea;
  --room-200: #cbd4d0;
  --room-500: #4a5a54;
  --room-700: #2a342f;
  --room-800: #1e2622;
  --room-900: #141917;
  --status-ok: #2f7d54;
  --status-warn: #a97a10;
  --status-error: #b3261e;
  --bg: var(--paper-150);
  --surface: var(--paper-100);
  --surface-alt: var(--paper-200);
  --ink: var(--paper-900);
  --ink-soft: var(--paper-700);
  --muted: var(--paper-600);
  --rule: var(--paper-900);
  --font-struct: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-editorial: "Newsreader", Georgia, serif;
  --font-spec: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.2, 0, .1, 1);
  --container: 1240px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-struct);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--signal-500);
  outline-offset: 2px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 2px solid var(--rule);
}

.site-header .shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
}

.wordmark {
  color: var(--ink);
  font-family: var(--font-struct);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.wordmark .dot {
  color: var(--signal-500);
}

.nav-links,
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 500;
}

.nav-links a,
.footer-nav a {
  text-decoration: none;
  transition: color 120ms var(--ease), background-color 120ms var(--ease);
}

.nav-links a:hover,
.nav-links a:focus-visible,
.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--ink);
}

.nav-cta,
.button,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  padding: 12px 16px;
  border: 2px solid var(--rule);
  border-radius: 0;
  font-weight: 700;
  line-height: 1.1;
  text-align: left;
  text-decoration: none;
  transition: background-color 120ms var(--ease), color 120ms var(--ease), border-color 120ms var(--ease);
}

.nav-cta,
.button {
  border-color: var(--signal-500);
  background: var(--signal-500);
  color: var(--paper-100);
}

.nav-cta:hover,
.nav-cta:focus-visible,
.button:hover,
.button:focus-visible {
  border-color: var(--signal-600);
  background: var(--signal-600);
  color: var(--paper-100);
}

.button-secondary {
  background: transparent;
  color: var(--ink);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: var(--paper-200);
  color: var(--ink);
}

.page-hero,
.hero {
  padding: clamp(56px, 5vw, 72px) 0 clamp(64px, 6vw, 88px);
  border-bottom: 2px solid var(--rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5.25fr) minmax(480px, 6.75fr);
  gap: clamp(32px, 4vw, 72px);
  align-items: center;
}

.hero-copy {
  grid-column: auto;
}

.demo-visual,
.hero-visual {
  grid-column: auto;
  width: 100%;
  background: var(--room-900);
}

.eyebrow,
.section-kicker {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-spec);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-transform: uppercase;
}

h1,
h2,
h3,
.section-title {
  color: var(--ink);
  font-family: var(--font-struct);
  font-weight: 700;
  line-height: 1.02;
}

h1 {
  max-width: 15ch;
  font-size: clamp(44px, 5.6vw, 88px);
}

.page-hero h1 {
  max-width: 18ch;
  font-size: clamp(42px, 4.2vw, 72px);
  line-height: 1.04;
}

.hero-copy p,
.section-intro {
  max-width: 68ch;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-tags,
.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 40px;
  list-style: none;
  border-top: 2px solid var(--rule);
}

.hero-tags li,
.hero-meta li {
  min-height: 56px;
  padding: 14px 12px;
  border-bottom: 1px solid var(--paper-400);
  color: var(--ink-soft);
  font-family: var(--font-spec);
  font-size: 13px;
  line-height: 1.35;
}

.hero-tags li:nth-child(odd),
.hero-meta li:nth-child(odd) {
  border-right: 1px solid var(--paper-400);
}

.visual-frame,
.ba-frame {
  position: relative;
  padding: clamp(14px, 1.4vw, 20px);
  background: var(--room-900);
}

.visual-frame > img,
.ba-frame > img {
  width: 100%;
  height: auto;
}

.visual-frame > img:not(:last-of-type),
.ba-frame > img:not(:last-of-type) {
  display: none;
}

.visual-after,
.ba-img.ba-after {
  position: static;
  width: 100%;
  height: auto;
  object-fit: contain;
  animation: none;
}

.visual-label,
.ba-chip {
  position: absolute;
  top: clamp(14px, 1.4vw, 20px);
  left: clamp(14px, 1.4vw, 20px);
  padding: 8px 10px;
  border: 0;
  border-radius: 0;
  background: var(--ink);
  color: var(--paper-100);
  font-family: var(--font-spec);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: uppercase;
}

.visual-label:not(.after),
.before-chip {
  display: none;
}

.visual-label.after,
.after-chip {
  right: auto;
  animation: none;
}

.workflow-strip,
.workflow-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--rule);
  background: var(--paper-100);
}

.workflow-strip span,
.wf-step {
  display: block;
  min-width: 0;
  padding: 14px 12px;
  border-right: 1px solid var(--paper-400);
  color: var(--ink-soft);
  font-family: var(--font-spec);
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
}

.workflow-strip span:last-child,
.wf-step:last-child {
  border-right: 0;
}

.wf-step b {
  display: block;
  margin-bottom: 4px;
  color: var(--signal-700);
  font-weight: 500;
}

.wf-step span {
  white-space: normal;
}

.wf-arrow {
  display: none;
}

section {
  padding: 96px 0;
  border-bottom: 2px solid var(--rule);
}

.section-shell {
  display: grid;
  gap: 24px;
}

.section-title,
.final-cta h2,
.cta-band h2 {
  max-width: 13ch;
  font-size: clamp(36px, 5vw, 72px);
}

.content-grid,
.cards-grid,
.link-grid,
.audience-grid,
.steps-grid {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

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

.content-grid > *:first-child {
  grid-column: span 5;
}

.content-grid > *:last-child {
  grid-column: 7 / -1;
}

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

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

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

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

.panel,
.card,
.page-link,
.price-card,
.resource-card,
.audience-item,
.step-card,
.value-card,
.problem-card,
.integration-card,
.quote-block {
  border: 0;
  border-top: 2px solid var(--rule);
  border-radius: 0;
  background: var(--surface);
  box-shadow: none;
}

.panel,
.card,
.page-link,
.price-card,
.resource-card,
.audience-item,
.step-card,
.value-card,
.quote-block {
  padding: 24px;
}

.panel.alt,
.problem-card,
.integration-card {
  background: var(--surface-alt);
}

.card h3,
.page-link h3,
.price-card h3,
.resource-card h3,
.audience-item h3,
.step-card h3,
.value-card h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.card p,
.panel p,
.page-link p,
.price-card p,
.resource-card p,
.audience-item p,
.step-card p,
.value-card p,
.problem-copy p,
.integration-copy p,
.final-cta p,
.cta-band p,
.footer p,
.privacy-content p,
.privacy-content li {
  max-width: 68ch;
  color: var(--ink-soft);
}

.panel p + p,
.problem-copy p + p,
.privacy-content p + p {
  margin-top: 14px;
}

.page-link {
  display: block;
  text-decoration: none;
  transition: background-color 120ms var(--ease), border-color 120ms var(--ease);
}

.page-link:hover,
.page-link:focus-visible {
  background: var(--signal-100);
}

.price-label {
  display: block;
  margin: 18px 0;
  color: var(--signal-700);
  font-family: var(--font-spec);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.form-panel {
  border-top: 2px solid var(--rule);
  background: var(--surface);
  padding: 24px;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  color: var(--ink);
  font-family: var(--font-spec);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--rule);
  border-radius: 0;
  background: var(--paper-100);
  color: var(--ink);
  font: inherit;
  padding: 12px;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.form-note {
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--font-spec);
  font-size: 13px;
}

.problem-card,
.integration-wrap,
.final-cta {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
}

.problem-copy,
.integration-copy,
.final-cta > div:first-child {
  grid-column: span 6;
  padding: 32px;
}

.problem-visual,
.integration-list,
.final-cta > div:last-child {
  grid-column: 8 / -1;
  padding: 32px;
}

.problem-visual {
  background: var(--room-900);
  color: var(--paper-100);
}

.insight-box {
  border-top: 2px solid var(--signal-500);
  background: transparent;
}

.insight-box strong {
  display: block;
  color: var(--paper-100);
  font-size: 24px;
  line-height: 1.2;
}

.mini-points,
.feature-list,
.integration-list {
  display: grid;
  gap: 0;
  list-style: none;
}

.mini-points {
  margin-top: 20px;
}

.mini-points li,
.feature-list li,
.integration-list li {
  padding: 14px 0;
  border-top: 1px solid var(--paper-400);
  color: var(--ink-soft);
}

.problem-visual .mini-points li {
  border-color: var(--room-500);
  color: var(--room-100);
}

.feature-list strong,
.integration-list strong {
  display: block;
  color: var(--ink);
}

.step-number {
  margin-bottom: 18px;
  color: var(--signal-700);
  font-family: var(--font-spec);
  font-size: 18px;
  font-weight: 500;
}

.quote-section {
  padding-top: 0;
}

.quote-block p {
  max-width: 28ch;
  color: var(--ink);
  font-family: var(--font-editorial);
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 300;
  line-height: 1.05;
}

.quote-block cite {
  display: block;
  max-width: 62ch;
  margin-top: 24px;
  color: var(--muted);
  font-family: var(--font-spec);
  font-size: 13px;
  font-style: normal;
  line-height: 1.5;
  text-transform: uppercase;
}

.ai-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--paper-400);
}

.ai-note-kicker {
  margin-bottom: 8px;
  color: var(--muted);
  font-family: var(--font-spec);
  font-size: 13px;
  text-transform: uppercase;
}

.cta-band,
.final-cta {
  padding: 48px;
  background: var(--room-900);
  color: var(--paper-100);
}

.cta-band h2,
.final-cta h2 {
  color: var(--paper-100);
}

.cta-band p,
.final-cta p {
  margin-top: 18px;
  color: var(--room-100);
}

.cta-band .button,
.final-cta .button {
  margin-top: 28px;
}

.footer {
  padding: 48px 0;
  background: var(--bg);
  color: var(--muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(110px, 1fr));
  gap: 24px;
  align-items: start;
  padding-top: 0;
  border-top: 0;
}

.footer .wordmark {
  display: inline-block;
  font-size: 26px;
}

.footer p {
  margin-top: 14px;
}

.footer-column strong {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--font-spec);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.footer-column ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.footer-column a {
  color: var(--ink-soft);
  text-decoration: none;
}

.footer-column a:hover,
.footer-column a:focus-visible {
  color: var(--ink);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid var(--rule);
  color: var(--muted);
  font-family: var(--font-spec);
  font-size: 13px;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-bottom a {
  color: inherit;
  text-decoration: none;
}

.privacy-content {
  max-width: 840px;
  padding: 80px 0 96px;
}

.privacy-content h1 {
  max-width: none;
}

.privacy-content h2 {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid var(--rule);
  font-size: 28px;
}

.privacy-content p,
.privacy-content li {
  margin-top: 12px;
}

.privacy-content ul {
  margin-left: 20px;
}

.grayscale img,
img.grayscale {
  filter: grayscale(1);
}

@media (max-width: 980px) {
  .site-header .shell,
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 18px 0;
  }

  .hero-copy,
  .demo-visual,
  .hero-visual,
  .content-grid > *:first-child,
  .content-grid > *:last-child,
  .problem-copy,
  .problem-visual,
  .integration-copy,
  .integration-list,
  .final-cta > div:first-child,
  .final-cta > div:last-child {
    grid-column: 1 / -1;
  }

  .cards-grid,
  .audience-grid,
  .steps-grid,
  .pricing-grid,
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(calc(100% - 32px), var(--container));
  }

  .page-hero,
  .hero,
  section {
    padding: 56px 0;
  }

  h1 {
    max-width: none;
    font-size: 44px;
  }

  .section-title,
  .final-cta h2,
  .cta-band h2 {
    max-width: none;
    font-size: 36px;
  }

  .cards-grid,
  .audience-grid,
  .steps-grid,
  .pricing-grid,
  .link-grid,
  .hero-tags,
  .hero-meta,
  .workflow-strip,
  .workflow-bar,
  .problem-card,
  .integration-wrap,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .hero-tags li:nth-child(odd),
  .hero-meta li:nth-child(odd) {
    border-right: 0;
  }

  .visual-frame,
  .ba-frame,
  .problem-copy,
  .problem-visual,
  .integration-copy,
  .integration-list,
  .final-cta,
  .cta-band {
    padding: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
}
