:root {
  --ink: #16151a;
  --paper: #f6f1e7;
  --paper-dim: #c9c2b2;
  --terracotta: #e07856;
  --terracotta-dk: #c45f40;
  --ember: #2b2620;
  --sage: #7c8f6f;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --ease: cubic-bezier(.2, .8, .2, 1);
  --t: 220ms;

  --page-max: 1120px;
  --text-max: 640px;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

p { margin: 0; }

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

/* Spam honeypot — position off-screen rather than display:none so naive bots
 * (which often skip display:none fields) still fill it. Field name must stay
 * `nickname` — `website` would collide with companyWebsite in /sales/leads. */
.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* ───────── Header ───────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 32px;
  background: rgba(22, 21, 26, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(246, 241, 231, 0.18);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}

.header-cta:hover {
  background: rgba(246, 241, 231, 0.06);
  border-color: rgba(246, 241, 231, 0.32);
  transform: translateY(-1px);
}

/* ───────── Buttons ───────── */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--terracotta);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--t) var(--ease), transform var(--t) var(--ease);
}

.btn-primary:hover { background: var(--terracotta-dk); transform: translateY(-2px); }
.btn-primary:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.btn-primary:disabled { opacity: 0.7; cursor: progress; transform: none; }

/* ───────── Hero ───────── */

.hero {
  padding: 96px 32px 96px;
  display: flex;
  justify-content: center;
}

.hero-inner {
  width: 100%;
  max-width: var(--page-max);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(44px, 5.5vw, 84px);
  margin-bottom: 24px;
}

.hero-sub {
  max-width: var(--text-max);
  color: var(--paper-dim);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.55;
  margin-bottom: 40px;
}

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

/* Hero form — primary above-the-fold capture */

.join-form--hero {
  width: 100%;
  max-width: 560px;
  margin: 0;
}

.join-panel--hero {
  padding: 8px;
  border-radius: 999px;
}

.join-panel--hero input[type="email"] {
  font-size: 17px;
  padding: 0 22px;
}

.join-btn--hero {
  height: 52px;
  padding: 0 28px;
  font-size: 15px;
}

.hero-reassure {
  margin-top: 14px;
  color: var(--paper-dim);
  font-size: 13px;
  line-height: 1.55;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-proof {
  color: var(--paper);
  font-weight: 500;
}

.hero-proof-star {
  color: var(--terracotta);
}

.hero-reassure-dot {
  color: var(--paper-dim);
  opacity: 0.6;
}

.lead-trust {
  margin: 4px 0 18px;
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 480px) {
  .join-form--hero { max-width: 100%; }
  .join-panel--hero input[type="email"] { font-size: 16px; }
  .join-btn--hero { height: 48px; }
}

/* ───────── Lead capture ───────── */

.lead-capture {
  padding: 96px 32px 96px;
  display: flex;
  justify-content: center;
}

.lead-inner {
  width: 100%;
  max-width: var(--text-max);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lead-capture h2 {
  font-size: clamp(28px, 3vw, 44px);
  margin-bottom: 12px;
}

.lead-sub {
  color: var(--paper-dim);
  font-size: 16px;
  margin-bottom: 28px;
}

.join-form {
  width: 100%;
  margin: 0 0 16px;
}

.join-panel {
  display: flex;
  align-items: stretch;
  background: var(--ember);
  border: 1px solid rgba(201, 194, 178, 0.14);
  border-radius: 999px;
  padding: 6px;
  transition: border-color var(--t) var(--ease);
}

.join-panel:focus-within {
  border-color: var(--terracotta);
}

.join-panel input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--paper);
  padding: 0 18px;
  font-size: 16px;
  outline: none;
}

.join-panel input[type="email"]::placeholder {
  color: var(--paper-dim);
  opacity: 0.7;
}

.join-btn {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 22px;
  font-size: 14px;
}

.form-caption {
  min-height: 20px;
  margin-top: 12px;
  color: var(--terracotta);
  font-size: 13px;
}

.form-caption.ok { color: var(--sage); }

.consent {
  color: var(--paper-dim);
  font-size: 12px;
  line-height: 1.55;
  max-width: var(--text-max);
}

/* Inline success card — slice #8 polished version */

.success-card {
  background: var(--sage);
  color: var(--ink);
  border-radius: 18px;
  padding: 24px 26px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  animation: success-fade-in 220ms var(--ease) both;
}

.success-glyph {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sage);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
}

.success-body {
  flex: 1 1 auto;
  min-width: 0;
}

.success-lead {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 6px;
}

.success-detail {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0;
  opacity: 0.78;
}

@keyframes success-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
  .success-card { padding: 20px 22px; gap: 14px; }
  .success-glyph { width: 32px; height: 32px; font-size: 16px; }
  .success-lead { font-size: 22px; }
}

/* ───────── Footer ───────── */

.site-footer {
  padding: 56px 32px 48px;
  border-top: 1px solid rgba(246, 241, 231, 0.06);
}

.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--paper);
  letter-spacing: -0.02em;
}

.footer-tagline {
  color: var(--paper-dim);
  font-size: 13px;
}

.footer-copy {
  color: var(--paper-dim);
  font-size: 12px;
  opacity: 0.6;
}

/* ───────── Responsive ───────── */

@media (max-width: 768px) {
  .site-header { padding: 16px 20px; }
  .wordmark { font-size: 20px; }
  .header-cta { height: 36px; padding: 0 14px; font-size: 13px; }

  .hero { padding: 64px 20px 64px; }
  .hero h1 { margin-bottom: 20px; }
  .hero-sub { margin-bottom: 32px; }

  .lead-capture { padding: 64px 20px 64px; }
  .site-footer { padding: 40px 20px 32px; }
}

@media (max-width: 480px) {
  .hero { padding: 48px 18px 48px; }
  .lead-capture { padding: 48px 18px 48px; }
  .site-footer { padding: 32px 18px 28px; }

  .hero h1 { font-size: 44px; }

  .join-panel {
    flex-direction: column;
    border-radius: 14px;
    padding: 8px;
    gap: 8px;
  }
  .join-panel input[type="email"] {
    padding: 12px 14px;
    background: rgba(22, 21, 26, 0.4);
    border-radius: 10px;
  }
  .join-btn {
    width: 100%;
    height: 48px;
    border-radius: 10px;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

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

/* ═══════════════════════════════════════════════════════
 * SLICE 3 — Demo panel chrome (lives inside .hero-inner)
 * Agent: only edit between SLICE_3_CSS_START and SLICE_3_CSS_END
 * ═══════════════════════════════════════════════════════ */
/* SLICE_3_CSS_START */
.demo-panel {
  width: 100%;
  max-width: 880px;
  margin-top: 56px;
  background: var(--ember);
  border: 1px solid rgba(201, 194, 178, 0.12);
  border-radius: 14px;
  overflow: hidden;
}

.demo-panel-header {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 20px;
  border-bottom: 1px solid rgba(201, 194, 178, 0.12);
}

.demo-panel-dots {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--paper-dim);
}

.demo-dot--done { background: var(--sage); }
.demo-dot--working { background: var(--terracotta); }
.demo-dot--queued {
  background: transparent;
  border: 1px solid var(--paper-dim);
}

.demo-panel-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.demo-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-top: 1px solid rgba(201, 194, 178, 0.12);
}

.demo-row:first-child {
  border-top: 0;
}

.demo-row-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.demo-row-eyebrow {
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.demo-row-body {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  color: var(--paper);
  line-height: 1.45;
}

.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color var(--t) var(--ease),
              border-color var(--t) var(--ease),
              color var(--t) var(--ease);
}

/* Slice #4 — working-dot pulse + header "campaign ready" flash */
@media (prefers-reduced-motion: no-preference) {
  .demo-pill--working .demo-pill-glyph {
    animation: demo-working-pulse 0.8s ease-in-out infinite;
  }
  @keyframes demo-working-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
  }

  .demo-panel--ready .demo-panel-label {
    animation: demo-ready-flash 1s ease-out 1;
  }
  @keyframes demo-ready-flash {
    0%   { opacity: 0; }
    25%  { opacity: 1; }
    100% { opacity: 1; }
  }
}

.demo-panel--ready .demo-panel-label {
  color: var(--sage);
}

.demo-pill-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
}

.demo-pill--done {
  background: var(--sage);
  color: var(--ink);
}

.demo-pill--working {
  background: var(--terracotta);
  color: var(--paper);
}

.demo-pill--queued {
  background: transparent;
  color: var(--paper-dim);
  border-color: var(--paper-dim);
}

@media (max-width: 640px) {
  .demo-panel {
    margin-top: 40px;
  }
  .demo-panel-header {
    padding: 0 16px;
  }
  .demo-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
  }
  .demo-pill {
    align-self: flex-start;
  }
}
/* SLICE_3_CSS_END */

/* ═══════════════════════════════════════════════════════
 * SLICE 6 — How it works (3-column, oversized numerals)
 * Agent: only edit between SLICE_6_CSS_START and SLICE_6_CSS_END
 * ═══════════════════════════════════════════════════════ */
/* SLICE_6_CSS_START */
.how-it-works {
  background: var(--ink);
  padding: 96px 32px;
  display: flex;
  justify-content: center;
}

.how-inner {
  width: 100%;
  max-width: var(--page-max);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.how-title {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
  font-size: clamp(28px, 3vw, 44px);
  color: var(--paper);
  margin: 0 0 56px;
}

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px;
}

.how-step {
  position: relative;
  padding: 32px 0 0;
  min-height: 160px;
  isolation: isolate;
}

.how-step-numeral {
  position: absolute;
  top: -16px;
  left: -8px;
  z-index: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 120px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--terracotta);
  opacity: 0.15;
  pointer-events: none;
  user-select: none;
}

.how-step-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 32ch;
}

.how-step-header {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 0;
}

.how-step-body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--paper-dim);
  margin: 0;
}

@keyframes how-numeral-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 0.15;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .how-step-numeral {
    opacity: 0;
    animation: how-numeral-in 700ms var(--ease) both;
    animation-delay: var(--step-delay, 0ms);
  }
}

@media (max-width: 767px) {
  .how-steps {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .how-step-numeral {
    font-size: 80px;
    top: -8px;
  }
  .how-step {
    min-height: 0;
    padding-top: 24px;
  }
}

@media (max-width: 768px) {
  .how-it-works { padding: 64px 20px; }
  .how-title { margin-bottom: 40px; }
}

@media (max-width: 480px) {
  .how-it-works { padding: 48px 18px; }
}
/* SLICE_6_CSS_END */

/* ═══════════════════════════════════════════════════════
 * SLICE 7 — Pain inversion (PAPER background, 2×3 grid)
 * Agent: only edit between SLICE_7_CSS_START and SLICE_7_CSS_END
 * ═══════════════════════════════════════════════════════ */
/* SLICE_7_CSS_START */
.pain-inversion {
  /* Full-width surface flip — section is a child of <main> with no max-width clamp,
     so background hits edge-to-edge while inner content stays centered + clamped. */
  background: var(--paper);
  color: var(--ink);
  padding: 96px 32px;
  display: flex;
  justify-content: center;
}

.pain-inner {
  width: 100%;
  max-width: var(--page-max);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pain-title {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  font-size: clamp(28px, 3vw, 44px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 18ch;
  margin-bottom: 56px;
}

.pain-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 32px;
  row-gap: 24px;
  margin-bottom: 56px;
}

.pain-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 14px;
}

.pain-mark {
  color: var(--terracotta);
  font-family: var(--font-body);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  /* Align ✕ visually with top of body text */
  display: inline-block;
}

.pain-text {
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}

.pain-closer {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
}

@media (prefers-reduced-motion: no-preference) {
  .pain-inner > * {
    animation: pain-fade-in 480ms var(--ease) both;
  }
  @keyframes pain-fade-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

@media (max-width: 1024px) {
  .pain-inversion { padding: 64px 32px; }
  .pain-title { margin-bottom: 40px; }
  .pain-grid { margin-bottom: 40px; }
}

@media (max-width: 767px) {
  .pain-inversion { padding: 64px 20px; }
  .pain-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 20px;
  }
  .pain-title { font-size: 32px; margin-bottom: 32px; }
  .pain-text { font-size: 18px; }
  .pain-closer { font-size: 22px; }
}

@media (max-width: 480px) {
  .pain-inversion { padding: 48px 18px; }
}
/* SLICE_7_CSS_END */

/* ═══════════════════════════════════════════════════════
 * SLICE 9 — Mobile sticky CTA bar
 * Agent: only edit between SLICE_9_CSS_START and SLICE_9_CSS_END
 * ═══════════════════════════════════════════════════════ */
/* SLICE_9_CSS_START */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: none;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom)) 16px;
  background: var(--ink);
  border-top: 1px solid rgba(246, 241, 231, 0.08);
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease);
}

.sticky-cta--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.sticky-cta-btn {
  display: flex;
  width: 100%;
  height: 44px;
  padding: 0 24px;
  font-size: 15px;
}

@media (max-width: 767px) {
  .sticky-cta { display: block; }
}
/* SLICE_9_CSS_END */
