:root {
  --paper: #faf9f5;
  --paper-alt: #f2f0e8;
  --ink: #17160f;
  --ink-soft: #423f33;
  --muted: #6f6a5c;
  --line: #ddd8c8;
  --green: #0b6e4f;
  --green-bright: #128a63;
  --green-wash: #e7f2ec;
  --amber: #b9740f;
  --red: #a03327;
  --radius: 10px;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --display: 'Space Grotesk', 'Inter', sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.035;
  background-image: radial-gradient(circle, #000 1px, transparent 1px);
  background-size: 3px 3px;
}

a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 249, 245, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink-soft); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 14.5px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,0.12); }
.btn-primary:hover { background: var(--green-bright); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  padding: 76px 0 90px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--green);
  background: var(--green-wash);
  border: 1px solid #cfe6da;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 22px;
}
h1 {
  font-family: var(--display);
  font-size: clamp(36px, 4.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
}
h1 em { font-style: normal; color: var(--green); }
.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 32px;
}
.hero-ctas { display: flex; gap: 14px; margin-bottom: 34px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; flex-wrap: wrap; }
.trust-item { font-size: 13.5px; color: var(--muted); }
.trust-item b { color: var(--ink); font-family: var(--mono); font-weight: 600; }

/* ---------- Receipt mock (signature element) ---------- */
.receipt-stage {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone {
  width: 300px;
  background: #fff;
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -25px rgba(23,22,15,0.35);
  padding: 14px 14px 0;
  overflow: hidden;
}
.phone-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 4px 12px;
}
.phone-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 14px;
}
.phone-name { font-size: 13.5px; font-weight: 600; }
.phone-status { font-size: 11px; color: var(--muted); }
.chat {
  background: var(--paper-alt);
  border-radius: 16px 16px 0 0;
  padding: 16px 12px 18px;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bubble {
  max-width: 84%;
  padding: 9px 12px;
  border-radius: 14px;
  font-size: 13px;
  opacity: 0;
  transform: translateY(6px);
  animation: rise 0.4s ease forwards;
}
.bubble.in { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.out { background: var(--green-wash); align-self: flex-end; border-bottom-right-radius: 4px; color: #0d4c37; }
.bubble b { font-weight: 600; }
.b1 { animation-delay: 0.2s; }
.b2 { animation-delay: 1.1s; }
.b3 { animation-delay: 2.0s; }
.b4 { animation-delay: 2.9s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.slip {
  margin-top: -2px;
  background: #fff;
  border: 1px dashed #c9c3ae;
  border-top: none;
  padding: 16px 16px 20px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(-8px);
  animation: slip-out 0.5s ease forwards;
  animation-delay: 3.7s;
  position: relative;
}
.slip::before {
  content: "";
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, transparent, transparent 5px, var(--paper) 5px, var(--paper) 6px);
}
@keyframes slip-out { to { opacity: 1; transform: translateY(0); } }
.slip-row { display: flex; justify-content: space-between; padding: 2px 0; }
.slip-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; font-weight: 700; color: var(--ink); }
.slip-tag { color: var(--green); font-weight: 700; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--paper-alt); }
.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
  display: block;
}
h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3.2vw, 38px);
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
.section-sub { color: var(--muted); font-size: 16.5px; max-width: 56ch; margin: 0 0 46px; }

/* problem cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.card .num { font-family: var(--mono); color: var(--muted); font-size: 12.5px; margin-bottom: 14px; display: block; }
.card h3 { font-family: var(--display); font-size: 19px; margin: 0 0 10px; }
.card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.stat { font-family: var(--display); font-size: 30px; color: var(--green); margin: 0 0 8px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; position: relative; }
.step { position: relative; padding: 0 18px 0 0; }
.step-badge {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  margin-bottom: 18px;
}
.step:first-child .step-badge { background: var(--green); }
.step h4 { font-family: var(--display); font-size: 16.5px; margin: 0 0 8px; }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }
.step-line {
  position: absolute; top: 18px; left: 54px; right: -14px; height: 1px;
  background: repeating-linear-gradient(90deg, var(--line), var(--line) 5px, transparent 5px, transparent 9px);
}
.step:last-child .step-line { display: none; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan.featured { border-color: var(--green); box-shadow: 0 12px 30px -18px rgba(11,110,79,0.45); }
.plan-tear {
  height: 10px;
  background-image: radial-gradient(circle at 8px 0, transparent 6px, var(--paper) 6.5px);
  background-size: 16px 12px;
  background-position: top;
}
.plan-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.plan-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--green); background: var(--green-wash); border-radius: 999px;
  padding: 4px 10px; display: inline-block; margin-bottom: 14px; width: fit-content;
}
.plan-name { font-family: var(--display); font-size: 20px; margin: 0 0 4px; }
.plan-for { font-size: 12.5px; color: var(--muted); margin: 0 0 18px; }
.plan-price { font-family: var(--mono); font-size: 32px; font-weight: 600; margin: 0; }
.plan-price span { font-size: 14px; color: var(--muted); font-weight: 400; }
.plan-notes { font-size: 13px; color: var(--ink-soft); margin: 4px 0 20px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 24px; font-size: 13.5px; color: var(--ink-soft); }
.plan-list li { padding: 7px 0; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.plan-list li:first-child { border-top: none; }
.plan-list li::before { content: "✓"; color: var(--green); font-weight: 700; }

.plans-foot { text-align: center; margin-top: 28px; font-size: 13.5px; color: var(--muted); }

/* faq */
.faq { max-width: 760px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 20px 0; font-family: var(--display); font-size: 16.5px; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .icon { font-family: var(--mono); color: var(--green); font-size: 18px; transition: transform 0.2s; }
.faq-item.open .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p { padding: 0 0 20px; margin: 0; color: var(--ink-soft); font-size: 14.5px; max-width: 62ch; }

/* final cta */
.cta-final {
  background: var(--ink);
  color: var(--paper);
  border-radius: 20px;
  padding: 56px;
  text-align: center;
  margin: 0 28px;
}
.cta-final h2 { color: #fff; }
.cta-final p { color: #c9c5b6; max-width: 50ch; margin: 0 auto 30px; }

/* footer */
footer { padding: 40px 0; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { font-size: 13px; color: var(--muted); text-decoration: none; }
.foot-note { font-size: 12.5px; color: var(--muted); font-family: var(--mono); }

/* form page shared bits */
.form-shell {
  max-width: 560px;
  margin: 60px auto 100px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 40px;
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-row .hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.form-row input, .form-row select {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 8px;
  font-family: var(--body); font-size: 14.5px; background: var(--paper);
}
.form-row input:focus, .form-row select:focus { outline: 2px solid var(--green); border-color: var(--green); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload-box {
  border: 1.5px dashed var(--line); border-radius: 8px; padding: 18px; text-align: center;
  font-size: 13px; color: var(--muted); cursor: pointer; background: var(--paper);
}
.upload-box:hover { border-color: var(--green); }
.upload-box.has-file { border-color: var(--green); color: var(--green); background: var(--green-wash); }
.callout {
  background: var(--green-wash); border: 1px solid #cfe6da; border-radius: 8px;
  padding: 14px 16px; font-size: 13px; color: #0d4c37; margin-bottom: 24px;
}
.callout b { display: block; margin-bottom: 4px; }
#form-msg { font-size: 13.5px; margin-top: 14px; display: none; }
#form-msg.ok { color: var(--green); display: block; }
#form-msg.err { color: var(--red); display: block; }

/* ---------- Checkout layout ---------- */
.checkout-top { background: var(--paper-alt); border-bottom: 1px solid var(--line); padding: 22px 0; }
.progress { display: flex; align-items: center; gap: 10px; }
.progress-step { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.progress-step .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.progress-step.done .dot { background: var(--green); }
.progress-step.active { color: var(--ink); }
.progress-step.active .dot { background: var(--ink); }
.progress-sep { flex: 1; height: 1px; background: var(--line); max-width: 60px; }

.checkout-wrap {
  max-width: 1040px;
  margin: 48px auto 100px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 32px;
  align-items: start;
}
.checkout-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 40px;
}
.form-section + .form-section { margin-top: 30px; padding-top: 30px; border-top: 1px solid var(--line); }
.form-section-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 18px; }
.form-section-num { font-family: var(--mono); font-size: 12px; color: var(--green); background: var(--green-wash); width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.form-section-head h3 { font-family: var(--display); font-size: 16.5px; margin: 0; }

/* summary card (sticky) */
.summary-card {
  position: sticky;
  top: 90px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.summary-head { padding: 24px 24px 0; }
.summary-head span.kicker { margin-bottom: 8px; }
.summary-plan-name { font-family: var(--display); font-size: 20px; margin: 0 0 2px; }
.summary-plan-for { font-size: 12.5px; color: var(--muted); margin: 0 0 18px; }
.summary-slip {
  margin: 0 24px 24px;
  border: 1px dashed #c9c3ae;
  border-radius: 8px;
  padding: 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.summary-row { display: flex; justify-content: space-between; padding: 3px 0; }
.summary-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; font-weight: 700; color: var(--ink); font-size: 15px; }
.summary-list { list-style: none; margin: 0; padding: 0 24px 26px; font-size: 13px; color: var(--ink-soft); }
.summary-list li { display: flex; gap: 8px; padding: 6px 0; }
.summary-list li::before { content: "✓"; color: var(--green); font-weight: 700; }
.summary-note { margin: 0 24px 24px; font-size: 11.5px; color: var(--muted); background: var(--paper-alt); padding: 10px 12px; border-radius: 8px; }

@media (max-width: 860px) {
  .checkout-wrap { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .checkout-form { padding: 26px 22px; }
  .progress-step span.label { display: none; }
}

/* responsive */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .receipt-stage { order: -1; }
  .grid-3, .steps, .plans { grid-template-columns: 1fr 1fr; }
  .steps .step-line { display: none; }
  .form-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .steps, .plans { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .cta-final { padding: 36px 22px; margin: 0 16px; }
}
