@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --ink-900: #14181A;
  --ink-800: #1C2224;
  --ink-700: #2A3134;
  --paper-100: #EFEAE0;
  --paper-200: #E4DDCE;
  --paper-ink: #1F2320;
  --stamp-red: #E8432F;
  --stamp-red-dim: #B8321F;
  --resolve-green: #2F9E7A;
  --resolve-green-dim: #22795D;
  --muted: #8B9490;
  --muted-dark: #5B655F;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'Inter', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--ink-900);
  color: var(--paper-100);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 24, 26, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--ink-700);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px;
  max-width: 1120px;
  margin: 0 auto;
}

.logo {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stamp-red);
  display: inline-block;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover, .nav-links a.active { color: var(--paper-100); }

.btn {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 11px 20px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

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

.btn-primary { background: var(--stamp-red); color: var(--paper-100); }
.btn-primary:hover { background: var(--stamp-red-dim); }

.btn-ghost {
  background: transparent;
  color: var(--paper-100);
  border: 1px solid var(--ink-700);
}
.btn-ghost:hover { border-color: var(--muted-dark); }

.btn-dark {
  background: var(--ink-900);
  color: var(--paper-100);
  border: 1px solid var(--ink-700);
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 70px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stamp-red);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--stamp-red);
  display: inline-block;
}

.hero h1 {
  font-family: var(--mono);
  font-size: 3.1rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin-bottom: 22px;
}

.hero h1 span { color: var(--resolve-green); }

.hero p.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-ctas { display: flex; gap: 14px; margin-bottom: 28px; }

.hero-note {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted-dark);
}

/* ---------- Phone / SMS thread mockup ---------- */
.phone {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: 22px;
  padding: 18px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
}

.phone-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 14px;
  border-bottom: 1px solid var(--ink-700);
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}

.phone-head .avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--resolve-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; color: var(--ink-900);
}

.thread {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 340px;
}

.bubble {
  max-width: 80%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 0.86rem;
  opacity: 0;
  transform: translateY(6px);
  animation: rise 0.4s ease forwards;
}

.bubble.me {
  align-self: flex-end;
  background: var(--stamp-red);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble.them {
  align-self: flex-start;
  background: var(--ink-700);
  color: var(--paper-100);
  border-bottom-left-radius: 4px;
}

.stamp {
  align-self: center;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--resolve-green);
  border: 2px solid var(--resolve-green);
  padding: 6px 16px;
  border-radius: 4px;
  transform: rotate(-4deg) scale(0.8);
  opacity: 0;
  letter-spacing: 0.08em;
  margin-top: 6px;
  animation: stampIn 0.35s ease forwards;
}

@keyframes rise { to { opacity: 1; transform: translateY(0); } }
@keyframes stampIn { to { opacity: 1; transform: rotate(-4deg) scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .bubble, .stamp { animation: none; opacity: 1; transform: none; }
}

/* ---------- Sections (light "paper" panels) ---------- */
.section { padding: 90px 0; }
.section-dark { background: var(--ink-900); }

.section-paper {
  background: var(--paper-100);
  color: var(--paper-ink);
}

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

.section-head .eyebrow.on-paper { color: var(--stamp-red-dim); }

.section-head h2 {
  font-family: var(--mono);
  font-size: 2.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.section-head p { color: var(--muted-dark); font-size: 1.05rem; max-width: 54ch; }

.section-dark .section-head p { color: var(--muted); }

/* ---------- Receipt list (how it works) ---------- */
.receipt {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: 10px;
  padding: 8px 0;
  font-family: var(--mono);
}

.receipt-row {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 26px;
  border-bottom: 1px dashed var(--ink-700);
}

.receipt-row:last-child { border-bottom: none; }

.receipt-num { color: var(--stamp-red); font-weight: 700; font-size: 0.9rem; width: 20px; flex-shrink: 0; }

.receipt-body { flex: 1; }

.receipt-title { font-weight: 600; font-size: 0.98rem; margin-bottom: 4px; }

.receipt-desc { font-family: var(--sans); color: var(--muted); font-size: 0.92rem; max-width: 60ch; }

.receipt-tag {
  font-size: 0.78rem;
  color: var(--resolve-green);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}

/* ---------- Cards grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: var(--ink-800);
  border: 1px solid var(--ink-700);
  border-radius: 10px;
  padding: 28px;
}

.section-paper .card {
  background: #fff;
  border: 1px solid var(--paper-200);
}

.card .mark { color: var(--resolve-green); font-family: var(--mono); font-size: 0.85rem; margin-bottom: 14px; display: block; }

.card h3 { font-size: 1.08rem; margin-bottom: 10px; font-weight: 700; }

.card p { color: var(--muted); font-size: 0.94rem; }

.section-paper .card p { color: var(--muted-dark); }

/* ---------- Footer CTA ---------- */
.cta-band {
  background: var(--stamp-red);
  padding: 70px 0;
  text-align: center;
}

.cta-band h2 {
  font-family: var(--mono);
  font-size: 2.1rem;
  margin-bottom: 14px;
  color: #fff;
}

.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 30px; font-size: 1.05rem; }

.cta-band .btn-dark { background: var(--ink-900); border-color: var(--ink-900); }

/* ---------- Footer ---------- */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--ink-700);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--muted-dark);
}

.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--paper-100); }

/* ---------- FAQ accordion ---------- */
.faq-item {
  border-bottom: 1px solid var(--ink-700);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--paper-100);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.02rem;
  padding: 22px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.faq-q .icon {
  font-family: var(--mono);
  color: var(--resolve-green);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-q .icon { transform: rotate(45deg); }

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
  color: var(--muted);
  font-size: 0.96rem;
}

.faq-a p { padding-bottom: 22px; max-width: 68ch; }

.faq-item.open .faq-a { max-height: 300px; }

/* ---------- Misc ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  border: 1px solid var(--ink-700);
  padding: 6px 12px;
  border-radius: 999px;
}

.divider-dashed {
  border-top: 1px dashed var(--ink-700);
  margin: 60px 0;
}

.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--ink-700);
}

.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -30px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink-900);
  border: 2px solid var(--resolve-green);
}

.timeline-time { font-family: var(--mono); font-size: 0.78rem; color: var(--resolve-green); margin-bottom: 6px; }
.timeline-item h4 { font-size: 1.02rem; margin-bottom: 8px; font-weight: 700; }
.timeline-item p { color: var(--muted); font-size: 0.94rem; max-width: 58ch; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .hero h1 { font-size: 2.2rem; }
  .nav-links { display: none; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
