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

:root {
  --bg:           #edf0e8;
  --bg-alt:       #e4e8de;
  --text:         #1e2218;
  --text-sec:     #3a4830;
  --text-muted:   #6a7d58;
  --divider:      #b0bda0;
  --btn-bg:       #2a3520;
  --btn-text:     #edf0e8;
  --font:         'Courier New', Courier, monospace;
  --bg-panel:     #e6ebe0;
  --text-ghost:   #8a9a78;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

a {
  color: inherit;
}

/* ── Nav ─────────────────────────────────────────── */
#nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 40px;
  border-bottom: 1.5px solid var(--divider);
}

.nav-brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-credit {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-decoration: none;
}

.nav-credit:hover {
  text-decoration: underline;
}

/* ── Hero ────────────────────────────────────────── */
#hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1.5px solid var(--divider);
  min-height: 400px;
}

.hero-copy {
  padding: 48px 40px;
  border-right: 1.5px solid var(--divider);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.badge-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.hero-copy h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.h1-accent {
  color: var(--text-muted);
}

.hero-sub {
  font-size: 12px;
  color: var(--text-sec);
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--btn-bg);
  color: var(--btn-text);
  font-family: var(--font);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn:hover {
  opacity: 0.88;
}

.btn:focus-visible {
  outline: 2px solid var(--btn-bg);
  outline-offset: 2px;
}

.cta-note {
  font-size: 10px;
  color: var(--text-muted);
}

.cta-sub {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-panel);
  padding: 40px;
  position: relative;
}

.hero-img {
  width: 200px;
  height: 200px;
}

.hero-v-label {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-ghost);
}

/* ── Stat Bar ────────────────────────────────────── */
.stat-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1.5px solid var(--divider);
}

.stat {
  padding: 12px 20px;
  border-right: 1.5px solid var(--divider);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.stat:last-child {
  border-right: none;
}

.stat-label {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.stat-value {
  font-size: 12px;
  font-weight: 700;
}

/* ── Problem ─────────────────────────────────────── */
#problem {
  padding: 56px 40px;
  border-bottom: 1.5px solid var(--divider);
}

.section-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.problem-left h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.problem-left p,
.problem-right p {
  font-size: 12px;
  color: var(--text-sec);
  line-height: 1.85;
  margin-bottom: 14px;
}

.problem-right {
  border-left: 1.5px solid var(--divider);
  padding-left: 40px;
}

/* ── Features ────────────────────────────────────── */
#features {
  padding: 56px 40px;
  border-bottom: 1.5px solid var(--divider);
}

.features-headline {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 32px;
}

.h2-accent {
  color: var(--text-muted);
}

.features-grid {
  /* 6 cells, 3-column — border logic in .feature-cell assumes this count */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1.5px solid var(--divider);
}

.feature-cell {
  padding: 24px 20px;
  border-right: 1.5px solid var(--divider);
  border-bottom: 1.5px solid var(--divider);
}

.feature-cell:nth-child(3),
.feature-cell:nth-child(6) {
  border-right: none;
}

.feature-cell:nth-child(4),
.feature-cell:nth-child(5),
.feature-cell:nth-child(6) {
  border-bottom: none;
}

.feature-icon {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-cell h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.feature-cell p {
  font-size: 11px;
  color: var(--text-sec);
  line-height: 1.65;
}

/* ── How it Works ────────────────────────────────── */
#how-it-works {
  padding: 56px 40px;
  border-bottom: 1.5px solid var(--divider);
}

#how-it-works h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 36px;
}

.hiw-block {
  margin-bottom: 32px;
}

.hiw-block:last-child {
  margin-bottom: 0;
}

.hiw-block-label {
  /* bottom border serves as the grid's top edge — do not add border-top to .hiw-grid */
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1.5px solid var(--divider);
  padding-bottom: 8px;
  margin-bottom: 0;
}

.hiw-grid {
  border-left: 1.5px solid var(--divider);
  border-right: 1.5px solid var(--divider);
  border-bottom: 1.5px solid var(--divider);
  display: grid;
}

.hiw-grid-2x2 {
  grid-template-columns: 1fr 1fr;
}

.hiw-grid-3x1 {
  grid-template-columns: 1fr 1fr 1fr;
}

.hiw-step {
  padding: 20px;
  border-right: 1.5px solid var(--divider);
  border-bottom: 1.5px solid var(--divider);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.hiw-grid-2x2 .hiw-step:nth-child(2n) {
  border-right: none;
}

.hiw-grid-2x2 .hiw-step:nth-child(3),
.hiw-grid-2x2 .hiw-step:nth-child(4) {
  border-bottom: none;
}

.hiw-grid-3x1 .hiw-step {
  border-bottom: none;
}

.hiw-grid-3x1 .hiw-step:nth-child(3) {
  border-right: none;
}

.hiw-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--btn-bg);
}

.hiw-step h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 5px;
}

.hiw-step p {
  font-size: 11px;
  color: var(--text-sec);
  line-height: 1.7;
}

/* ── Waitlist ─────────────────────────────────────── */
#waitlist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 56px 40px;
  background: var(--bg-alt);
  border-bottom: 1.5px solid var(--divider);
}

.waitlist-pitch {
  padding-right: 48px;
  border-right: 1.5px solid var(--divider);
}

.waitlist-pitch h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
}

.waitlist-pitch p {
  font-size: 12px;
  color: var(--text-sec);
  line-height: 1.85;
}

.waitlist-form-wrap {
  padding-left: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

#waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-input {
  font-family: var(--font);
  font-size: 12px;
  padding: 10px 14px;
  border: 1.5px solid var(--divider);
  background: var(--bg);
  color: var(--text);
  outline: none;
  width: 100%;
}

.form-input:focus {
  border-color: var(--text-muted);
}

.form-btn {
  width: 100%;
  text-align: center;
  padding: 11px 20px;
}

.form-success {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.form-note {
  font-size: 10px;
  color: var(--text-muted);
}

/* ── Footer ──────────────────────────────────────── */
#footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
}

.footer-brand {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-credit {
  font-size: 10px;
  color: var(--text-muted);
}

.footer-credit a {
  text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 680px) {
  #nav {
    padding: 12px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  #hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    border-right: none;
    border-bottom: 1.5px solid var(--divider);
    padding: 32px 20px;
  }

  .hero-visual {
    padding: 32px 20px;
  }

  .stat-bar {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-top: 1.5px solid var(--divider);
  }

  #problem,
  #features,
  #how-it-works,
  #waitlist {
    padding: 40px 20px;
  }

  .problem-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .problem-right {
    border-left: none;
    border-top: 1.5px solid var(--divider);
    padding-left: 0;
    padding-top: 24px;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Reset all cells then apply 2-col rules cleanly */
  .feature-cell {
    border-right: 1.5px solid var(--divider);
    border-bottom: 1.5px solid var(--divider);
  }

  /* Even cells (right column) — no right border */
  .feature-cell:nth-child(2n) {
    border-right: none;
  }

  /* Last row in 2-col (cells 5 & 6) — no bottom border */
  .feature-cell:nth-child(5),
  .feature-cell:nth-child(6) {
    border-bottom: none;
  }

  .hiw-grid-2x2 {
    grid-template-columns: 1fr;
  }

  .hiw-grid-2x2 .hiw-step {
    border-right: none;
    border-bottom: 1.5px solid var(--divider);
  }

  .hiw-grid-2x2 .hiw-step:last-child {
    border-bottom: none;
  }

  .hiw-grid-3x1 {
    grid-template-columns: 1fr;
  }

  .hiw-grid-3x1 .hiw-step {
    border-right: none;
    border-bottom: 1.5px solid var(--divider);
  }

  .hiw-grid-3x1 .hiw-step:last-child {
    border-bottom: none;
  }

  #waitlist {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .waitlist-pitch {
    padding-right: 0;
    border-right: none;
    border-bottom: 1.5px solid var(--divider);
    padding-bottom: 32px;
  }

  .waitlist-form-wrap {
    padding-left: 0;
  }

  #footer {
    padding: 14px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}
