:root {
  --bg: #FAF6EE;
  --surface: #F1EADC;
  --text: #1A1612;
  --muted: #6B6358;
  --accent: #FF6B47;
  --accent-hover: #E85734;
  --max: 760px;
  --max-hero: 1280px;
  --rhythm: 112px;
  --rhythm-mobile: 64px;
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pixel: "Silkscreen", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

body {
  padding: 0 24px;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }

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

/* Nav */
.nav {
  max-width: var(--max-hero);
  margin: 0 auto;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wordmark {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav-cta {
  font-size: 14px;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color .15s ease, color .15s ease;
}
.nav-cta:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Hero */
.hero {
  max-width: var(--max-hero);
  margin: 0 auto;
  padding: var(--rhythm-mobile) 0 var(--rhythm-mobile);
  text-align: left;
}
.hero-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
}
.pixel-peach {
  width: 56px;
  height: 56px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  flex: 0 0 auto;
}
.hero-eyebrow {
  font-family: var(--pixel);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(64px, 14vw, 144px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
}
.hero-sub {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.35;
  color: var(--text);
  max-width: 640px;
  margin: 0 0 40px;
}
.hero-meta {
  margin-top: 24px;
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Form */
.waitlist {
  display: flex;
  gap: 8px;
  max-width: 480px;
  flex-wrap: wrap;
}
.waitlist input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--surface);
  border-bottom-color: var(--muted);
  border-radius: 0;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  transition: border-color .15s ease, background .15s ease;
}
.waitlist input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.waitlist input[type="email"]::placeholder {
  color: var(--muted);
}
.waitlist button {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  padding: 14px 22px;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background .15s ease, border-color .15s ease;
}
.pixel-arrow {
  width: 14px;
  height: 21px;
  flex: 0 0 auto;
  transition: transform .15s ease;
}
.waitlist button:hover .pixel-arrow,
.closing-cta:hover .pixel-arrow {
  transform: translateX(2px);
}
.waitlist button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.waitlist button:disabled,
.waitlist button[disabled] {
  background: var(--muted);
  border-color: var(--muted);
  cursor: not-allowed;
  opacity: 0.85;
}
.waitlist-status {
  margin: 16px 0 0;
  font-size: 15px;
  min-height: 1.5em;
}
.waitlist-status.ok { color: var(--accent); }
.waitlist-status.err { color: #B23A1F; }

/* Divider — pixel dotted line */
.divider {
  max-width: var(--max-hero);
  margin: 0 auto;
  border: 0;
  height: 4px;
  background-image: linear-gradient(
    to right,
    var(--muted) 0,
    var(--muted) 4px,
    transparent 4px,
    transparent 12px
  );
  background-size: 12px 4px;
  background-repeat: repeat-x;
  background-position: left center;
  opacity: 0.45;
}

/* Sections */
.why,
.how,
.faq,
.closing {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--rhythm-mobile) 0;
}
.cases {
  max-width: var(--max-hero);
  margin: 0 auto;
  padding: var(--rhythm-mobile) 0;
}
.why h2,
.how h2,
.cases h2,
.faq h2,
.closing h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(30px, 4.6vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 40px;
}
.why p {
  font-size: 18px;
  line-height: 1.65;
  margin: 0 0 18px;
  max-width: 640px;
}
.why p:last-child { margin-bottom: 0; }

/* How it works steps */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
.steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 24px;
  row-gap: 8px;
  align-items: start;
}
.step-icon {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  grid-row: 1 / span 3;
  margin-top: 2px;
}
.step-num {
  font-family: var(--pixel);
  font-weight: 700;
  color: var(--muted);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.steps h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 26px);
  margin: 0;
  letter-spacing: -0.01em;
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
  max-width: 560px;
}

/* Use cases */
.case-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
.case-grid h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(20px, 2vw, 24px);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.case-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

/* FAQ */
.faq-list {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 24px;
}
.faq-item {
  border-top: 1px solid var(--surface);
  padding-top: 20px;
}
.faq-item dt {
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.005em;
  margin: 0 0 8px;
}
.faq-item dd {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  max-width: 640px;
}

/* Closing */
.closing p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 24px;
}
.closing-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  background: var(--accent);
  padding: 14px 22px;
  font: inherit;
  font-weight: 500;
  border: 1px solid var(--accent);
  transition: background .15s ease, border-color .15s ease;
}
.closing-cta:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg);
}

/* Footer */
.foot {
  max-width: var(--max-hero);
  margin: 0 auto;
  padding: 48px 0 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 24px;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--surface);
}
.foot-mark {
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text);
}
.foot-copy {
  font-family: var(--pixel);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.foot-link { margin-left: auto; }

/* Mobile tightening */
@media (max-width: 480px) {
  body { padding: 0 18px; }
  .hero-mark { gap: 10px; }
  .pixel-peach { width: 44px; height: 44px; }
  .nav { padding: 18px 0; }
  .steps li {
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
  }
  .step-icon { width: 36px; height: 36px; }
  .waitlist { gap: 10px; }
  .waitlist input[type="email"],
  .waitlist button { width: 100%; flex: 1 1 100%; }
}

/* Tablet / Desktop */
@media (min-width: 720px) {
  body { padding: 0 48px; }
  .hero { padding: var(--rhythm) 0 var(--rhythm); }
  .why, .how, .cases, .faq, .closing { padding: var(--rhythm) 0; }
  .foot { padding: 64px 0 48px; }
  .pixel-peach { width: 64px; height: 64px; }
  .step-icon { width: 56px; height: 56px; }
  .steps li { grid-template-columns: 64px 1fr; column-gap: 28px; }
  .case-grid { grid-template-columns: 1fr 1fr; gap: 48px 56px; }
}

/* Wide */
@media (min-width: 1024px) {
  body { padding: 0 64px; }
}

@media (min-width: 1440px) {
  body { padding: 0 96px; }
  :root { --rhythm: 144px; }
}
