:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f2;
  --ink: #0e1013;
  --ink-2: #2b2f36;
  --muted: #646a73;
  --line: #e6e6e2;
  --line-strong: #d3d3cd;
  --green: #0b7a47;
  --green-soft: #e6f3ec;
  --red: #c23a1d;
  --red-soft: #fbebe6;
  --radius: 12px;
  --display: "Geist", ui-sans-serif, system-ui, sans-serif;
  --body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px / 1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

.mono {
  font-family: var(--mono);
}

.wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.wordmark .mark {
  display: inline-flex;
}

.wordmark .mark span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--ink);
}

.wordmark .mark span + span {
  margin-left: -4px;
  background: var(--ink);
}

.top nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.95rem;
}

.top nav a {
  text-decoration: none;
  color: var(--muted);
}

.top nav a:hover {
  color: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font: 500 0.98rem var(--body);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.12s ease,
    background 0.12s ease;
}

.btn:hover {
  background: #23272e;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: progress;
}

.btn-small {
  height: 36px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.top nav .btn-small {
  color: #fff;
}

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

.hero {
  padding: 72px 0 96px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px;
  align-items: start;
}

.hero .demo {
  margin-top: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  margin-bottom: 22px;
}

.hero .lede {
  font-size: 1.2rem;
  color: var(--ink-2);
  max-width: 34ch;
  margin-bottom: 32px;
}

/* ── Waitlist form ──────────────────────────────────── */

.signup {
  display: flex;
  gap: 8px;
  max-width: 460px;
}

.signup input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 400 1rem var(--body);
}

.signup input[type="email"]::placeholder {
  color: #9aa0a8;
}

input:focus-visible,
select:focus-visible,
.btn:focus-visible,
.chip input:focus-visible + span {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.fineprint {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.form-error {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--red);
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.followup {
  max-width: 460px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.followup strong {
  display: block;
  font-family: var(--display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.followup p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.followup .label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
}

.chip span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  font-size: 0.9rem;
  cursor: pointer;
  user-select: none;
}

.chip input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.followup select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  font: 400 0.95rem var(--body);
  color: var(--ink);
  margin-bottom: 16px;
}

/* ── Live demo ──────────────────────────────────────── */

.demo {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-soft);
  padding: 14px;
  box-shadow:
    0 1px 0 rgba(14, 16, 19, 0.03),
    0 24px 48px -32px rgba(14, 16, 19, 0.35);
}

.demo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 14px;
}

.thumb {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 50% 38%, #fff 0 22%, transparent 23%),
    radial-gradient(circle at 50% 50%, #e7b84a 0 46%, #d9a636 47% 56%, transparent 57%), #f1eadb;
}

.demo-item .name {
  font-weight: 500;
  line-height: 1.3;
}

.demo-item .sku {
  font-size: 0.8rem;
  color: var(--muted);
}

.stores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.store {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.store.flash {
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}

.store.updated {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.store-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.badge.show {
  opacity: 1;
}

.badge.sold {
  background: var(--red-soft);
  color: var(--red);
}

.badge.synced {
  background: var(--green-soft);
  color: var(--green);
}

.qty {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.qty .n {
  font-family: var(--mono);
  font-size: 3.2rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
  transition: color 0.3s ease;
}

.qty .unit {
  font-size: 0.85rem;
  color: var(--muted);
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-2);
  min-height: 42px;
}

.status .pulse {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.status.busy .pulse {
  background: #d48a0a;
  animation: pulse 0.9s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.3;
  }
}

/* ── Sections ───────────────────────────────────────── */

section {
  padding: 104px 0;
}

.soft {
  background: var(--bg-soft);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(2rem, 4.2vw, 3rem);
  margin-bottom: 14px;
}

.section-head p {
  font-size: 1.1rem;
  color: var(--muted);
}

/* Won't-do list */

.wont {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}

.wont-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.wont-list li {
  padding: 22px 0 22px 34px;
  border-bottom: 1px solid var(--line-strong);
}

.wont-list strong {
  position: relative;
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.3rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

/* The mark is a text glyph in the heading's own font and line box, so it
   always shares the first line's baseline — wrapped or not. */
.wont-list strong::before {
  content: "×";
  position: absolute;
  left: -34px;
  top: 0;
  color: var(--red);
  font-weight: 500;
}

.wont-list span {
  color: var(--muted);
}

/* Feature rows with product mockups */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
}

.feature + .feature {
  margin-top: 112px;
}

.feature.flip .copy {
  order: 2;
}

.feature h3 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 14px;
}

.feature p {
  color: var(--ink-2);
  font-size: 1.08rem;
  max-width: 40ch;
}

.kicker {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: 14px;
}

.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 48px -36px rgba(14, 16, 19, 0.45);
  overflow: hidden;
  font-size: 0.92rem;
}

.mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.mock-bar .muted {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.85rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.stats div {
  padding: 14px 18px;
}

.stats div + div {
  border-left: 1px solid var(--line);
}

.stats .v {
  display: block;
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.stats .k {
  font-size: 0.82rem;
  color: var(--muted);
}

.rows {
  width: 100%;
  border-collapse: collapse;
}

.rows td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.rows tr:last-child td {
  border-bottom: 0;
}

.rows .sku {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
}

.rows .num {
  font-family: var(--mono);
  text-align: right;
  white-space: nowrap;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.tag.ok {
  background: var(--green-soft);
  color: var(--green);
}

.tag.warn {
  background: #fdf3dc;
  color: #8a5a00;
}

.tag.muted {
  background: var(--bg-soft);
  color: var(--muted);
}

.undo {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* FAQ */

.faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 64px;
}

.faq h3 {
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.faq p {
  color: var(--muted);
}

/* Closing CTA */

.cta {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.cta .signup input[type="email"] {
  border-color: #3a3f47;
  background: #1a1d22;
  color: #fff;
}

.cta .btn {
  background: #fff;
  color: var(--ink);
}

.cta .btn:hover {
  background: #e9e9e6;
}

.cta .fineprint,
.cta .followup p {
  color: #a3a9b1;
}

.cta .followup {
  background: #1a1d22;
  border-color: #2c3037;
}

.cta .chip span,
.cta .followup select {
  background: #0e1013;
  border-color: #3a3f47;
  color: #fff;
}

.cta .chip input:checked + span {
  background: #fff;
  color: var(--ink);
}

/* Footer */

footer {
  padding: 48px 0 56px;
  font-size: 0.88rem;
  color: var(--muted);
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 40px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.disclaimer {
  max-width: 68ch;
}

/* Prose pages */

.prose {
  max-width: 700px;
  padding: 48px 24px 96px;
}

.prose h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 10px;
}

.prose .updated {
  color: var(--muted);
  margin-bottom: 32px;
}

.prose h2 {
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  margin: 40px 0 12px;
}

.prose p,
.prose li {
  color: var(--ink-2);
}

.prose p + p {
  margin-top: 12px;
}

.prose ul {
  padding-left: 1.2em;
  margin: 12px 0 0;
}

.prose li + li {
  margin-top: 8px;
}

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

@media (max-width: 920px) {
  .hero .wrap,
  .wont,
  .feature,
  .cta {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .feature.flip .copy {
    order: 0;
  }

  .wont .section-head {
    margin-bottom: 0;
  }

  .hero {
    padding: 40px 0 72px;
  }

  .hero .demo {
    margin-top: 0;
  }

  section {
    padding: 72px 0;
  }

  .feature + .feature {
    margin-top: 72px;
  }

  .cta {
    padding: 40px 28px;
  }

  .faq {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 16px;
  }

  .top nav a:not(.btn) {
    display: none;
  }

  .signup {
    flex-direction: column;
  }

  .signup input[type="email"],
  .signup .btn {
    flex: none;
    width: 100%;
  }

  .qty .n {
    font-size: 2.6rem;
  }

  .stats .v {
    font-size: 1.2rem;
  }

  .rows td {
    padding: 10px 12px;
  }

  .hide-sm {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
