:root {
  --ink: #10131a;
  --muted: #596274;
  --soft: #eef2f7;
  --paper: #ffffff;
  --accent: #4f46e5;
  --accent-ink: #3730a3;
  --mint: #0f9f7a;
  --mint-soft: #e6f7f2;
  --coral: #f45d4f;
  --coral-soft: #fff0ee;
  --gold: #b7791f;
  --gold-soft: #fff7df;
  --line: #e2e7ef;
  --shadow: 0 18px 50px rgba(18, 24, 38, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px max(24px, calc((100vw - 1120px) / 2));
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(226, 231, 239, 0.72);
  backdrop-filter: blur(16px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--accent);
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-icon img { width: 100%; height: 100%; object-fit: cover; }
.site-nav, .footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}
.site-nav a:hover, .footer-links a:hover { color: var(--accent); }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 76svh;
  padding: 76px max(24px, calc((100vw - 1120px) / 2)) 64px;
  background: #f7f9fc;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: #eaf7f4;
  z-index: -2;
}
.hero-scene {
  position: absolute;
  inset: 28px max(24px, calc((100vw - 1120px) / 2)) 0 auto;
  width: min(54vw, 620px);
  pointer-events: none;
  z-index: -1;
}
.hero-copy {
  width: min(600px, 100%);
  padding-top: 34px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--mint);
}
h1 {
  margin: 22px 0 18px;
  max-width: 720px;
  font-size: 68px;
  line-height: 1;
  letter-spacing: 0;
}
.hero-lede {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.button:hover { text-decoration: none; border-color: #c8d1df; }
.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}
.hero-proof li {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(226, 231, 239, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.phone-stack {
  position: relative;
  height: 680px;
}
.phone {
  position: absolute;
  width: 300px;
  min-height: 604px;
  padding: 12px;
  border-radius: 32px;
  background: #151923;
  box-shadow: var(--shadow);
}
.phone.primary { right: 110px; top: 28px; }
.phone.secondary { right: 0; top: 140px; transform: scale(0.78); transform-origin: top right; }
.phone-screen {
  min-height: 580px;
  border-radius: 24px;
  overflow: hidden;
  background: #fbfcff;
  color: #151923;
}
.app-top {
  padding: 22px 18px 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.app-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.app-title {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 850;
}
.app-body { padding: 16px; }
.balance-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
}
.balance-line:last-child { border-bottom: 0; }
.person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 900;
  flex: 0 0 auto;
}
.person-copy strong, .txn strong { display: block; font-size: 14px; }
.person-copy span, .txn span { display: block; color: var(--muted); font-size: 12px; }
.amount { color: var(--mint); font-weight: 900; white-space: nowrap; }
.amount.negative { color: var(--coral); }
.settle-bar {
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 850;
  text-align: center;
}
.txn-list { display: grid; gap: 12px; }
.txn {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.txn:last-child { border-bottom: 0; padding-bottom: 0; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--accent-ink);
  background: #ecebff;
  font-size: 12px;
  font-weight: 850;
}
.receipt-float {
  position: absolute;
  right: 330px;
  top: 458px;
  width: 230px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.receipt-float p { margin: 0; }
.receipt-title { color: var(--ink); font-weight: 850; }
.receipt-sub { color: var(--muted); font-size: 13px; }
.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.receipt-row strong { color: var(--ink); }

.section {
  padding: 78px max(24px, calc((100vw - 1120px) / 2));
}
.section.alt { background: #f8fafc; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}
.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
h2 {
  margin: 0;
  max-width: 640px;
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: 0;
}
.section-head p {
  max-width: 390px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
.feature-grid, .plan-grid, .trust-grid {
  display: grid;
  gap: 16px;
}
.feature-grid { grid-template-columns: repeat(4, 1fr); }
.plan-grid { grid-template-columns: repeat(3, 1fr); }
.trust-grid { grid-template-columns: repeat(4, 1fr); }
.feature-card, .plan-card, .trust-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.feature-card { padding: 20px; min-height: 210px; }
.feature-card strong, .trust-card strong { display: block; margin-bottom: 10px; font-size: 18px; }
.feature-card p, .trust-card p, .plan-card p { margin: 0; color: var(--muted); }
.feature-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 18px;
  padding: 0 9px;
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  font-size: 13px;
  font-weight: 900;
}
.feature-card:nth-child(2) .feature-chip { background: var(--mint-soft); color: #087159; }
.feature-card:nth-child(3) .feature-chip { background: var(--coral-soft); color: #b7352d; }
.feature-card:nth-child(4) .feature-chip { background: var(--gold-soft); color: var(--gold); }
.plan-card { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.plan-card.highlight { border-color: #c7d2fe; box-shadow: 0 12px 34px rgba(79, 70, 229, 0.12); }
.plan-name { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.plan-name strong { font-size: 19px; }
.plan-badge {
  padding: 4px 8px;
  border-radius: 8px;
  background: #ecebff;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 900;
}
.price { font-size: 30px; font-weight: 900; }
.price span { color: var(--muted); font-size: 14px; font-weight: 700; }
.plan-card ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.plan-card li::before { content: "+ "; color: var(--mint); font-weight: 900; }
.trust-card { padding: 20px; }

.final-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  margin: 0 max(24px, calc((100vw - 1120px) / 2)) 80px;
  padding: 34px;
  border-radius: 8px;
  background: #10131a;
  color: #fff;
}
.final-cta h2 { color: #fff; font-size: 34px; }
.final-cta p { max-width: 620px; margin: 10px 0 0; color: #c7ceda; }
.final-cta .button { border-color: #fff; }

.site-footer {
  padding: 26px max(24px, calc((100vw - 1120px) / 2));
  border-top: 1px solid var(--line);
  background: #fff;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.footer-brand { font-size: 14px; }

.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 54px 24px 96px;
}
.legal-copy h1 { color: var(--ink); font-size: 36px; line-height: 1.1; margin: 0 0 6px; }
.legal-copy .updated { color: var(--muted); font-size: 14px; margin: 0 0 30px; }
.legal-copy h2 { color: var(--ink); font-size: 22px; margin: 38px 0 8px; }
.legal-copy p, .legal-copy li { color: #252a34; }
.legal-copy .lead { color: var(--muted); font-size: 18px; }
.legal-copy .lead strong { color: var(--ink); }
.legal-copy a { color: var(--accent); font-weight: 700; }
.legal-copy ul { padding-left: 20px; }
.legal-copy li { margin: 6px 0; }
.legal-copy hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.legal-copy .foot { color: var(--muted); font-size: 14px; }
.legal-copy code { background: #f3f5f8; padding: 1px 5px; border-radius: 5px; font-size: 14px; }

.invite-page {
  min-height: calc(100svh - 72px);
  display: grid;
  place-items: center;
  padding: 56px 24px;
  background: #f7f9fc;
}
.invite-card {
  width: min(520px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}
.invite-card .brand-icon { margin: 0 auto 18px; width: 58px; height: 58px; border-radius: 8px; }

.invite-card h1 { margin: 0 0 10px; font-size: 38px; line-height: 1.1; }
.invite-card p { margin: 0 auto 22px; color: var(--muted); max-width: 410px; }
.code-box {
  margin: 0 auto 16px;
  max-width: 320px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  font: 800 28px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 6px;
  user-select: all;
  overflow-wrap: anywhere;
}
.invite-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.invite-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero { min-height: auto; padding-top: 42px; }
  .hero-scene { position: relative; inset: auto; width: 100%; margin-top: 34px; }
  .phone-stack { height: 520px; }
  .phone.primary { left: 0; right: auto; top: 0; }
  .phone.secondary { right: 0; top: 86px; }
  .receipt-float { left: 40%; right: auto; top: 398px; }
  h1 { font-size: 52px; }
  .feature-grid, .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: 1fr; }
  .section-head, .final-cta { grid-template-columns: 1fr; display: grid; }
  .final-cta { margin-bottom: 56px; }
}

@media (max-width: 640px) {
  .site-header { min-height: 64px; padding: 12px 18px; }
  .site-nav { gap: 12px; font-size: 13px; }
  .site-nav a[href="#pricing"], .site-nav a[href="/#pricing"] { display: none; }
  .hero { padding: 34px 18px 46px; }
  .hero-copy { padding-top: 0; }
  h1 { font-size: 42px; }
  .hero-lede { font-size: 18px; }
  .hero-proof { gap: 8px; }
  .phone-stack { height: 420px; }
  .phone { width: 252px; min-height: 504px; border-radius: 28px; }
  .phone-screen { min-height: 480px; border-radius: 22px; }
  .phone.primary { left: 0; }
  .phone.secondary { display: none; }
  .receipt-float { width: 190px; left: auto; right: 0; top: 310px; }
  .app-title { font-size: 21px; }
  .section { padding: 56px 18px; }
  h2, .final-cta h2 { font-size: 31px; }
  .feature-grid, .trust-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .final-cta { margin: 0 18px 56px; padding: 24px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .legal-page { padding: 40px 18px 76px; }
  .legal-copy h1 { font-size: 31px; }
  .invite-card { padding: 24px 18px; }
  .invite-card h1 { font-size: 32px; }
  .code-box { font-size: 24px; letter-spacing: 4px; }
}
