:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #1c1c1e;
  --text-muted: #6b6b70;
  --rule: rgba(28, 28, 30, 0.08);
  --accent: #1c1c1e;
  --radius-md: 12px;
  --radius-lg: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --text: #ffffff;
    --text-muted: #9a9aa1;
    --rule: rgba(255, 255, 255, 0.08);
    --accent: #ffffff;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

code {
  background: var(--surface);
  border: 1px solid var(--rule);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.92em;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.masthead {
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-block;
  font-weight: 700;
  letter-spacing: -0.4px;
  text-decoration: none;
  font-size: 17px;
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
}

h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.6px;
  font-weight: 700;
  margin: 0 0 20px;
}

.lede {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 20px;
  max-width: 60ch;
}

.meta {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

section {
  margin-top: 40px;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 0 0 12px;
}

h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 20px 0 8px;
  color: var(--text);
}

p {
  margin: 0 0 12px;
}

ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

strong {
  font-weight: 700;
}

.foot {
  margin-top: 80px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  font-size: 13px;
  color: var(--text-muted);
}

.foot p {
  margin: 0 0 4px;
}

.foot a {
  color: var(--text-muted);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: block;
}

/* ---------- Landing page ---------- */

.landing-body {
  background: var(--bg);
}

/* Sticky floating nav */
.nav {
  position: sticky;
  top: 16px;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  margin-top: 16px;
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 720px;
  padding: 8px 8px 8px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--rule);
  border-radius: 999px;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

@media (prefers-color-scheme: dark) {
  .nav-pill {
    background: rgba(28, 28, 30, 0.72);
  }
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.2px;
  text-decoration: none;
  color: var(--text);
}

.nav-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: block;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

@media (prefers-color-scheme: dark) {
  .nav-cta {
    color: #1c1c1e;
  }
}

.landing {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Hero */
.hero {
  padding: 56px 0 80px;
  text-align: center;
}

.hero-title {
  font-size: clamp(56px, 13vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0 auto 48px;
  color: var(--text);
}

.phone {
  display: flex;
  justify-content: center;
  margin: 0 auto 40px;
}

.phone-frame {
  position: relative;
  width: 280px;
  height: 580px;
  background: #1c1c1e;
  border-radius: 48px;
  padding: 12px;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 32px;
  background: #000;
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
}

.phone-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: block;
}

.phone-app-name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
}

.phone-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-top: 4px;
}

@media (prefers-color-scheme: dark) {
  .phone-badge {
    color: #1c1c1e;
  }
}

.hero-tagline {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.45;
  margin: 0 auto;
  color: var(--text);
  max-width: 28ch;
  font-weight: 700;
  letter-spacing: -0.1px;
}

/* Features */
.features {
  padding: 64px 0 96px;
}

.section-title {
  font-size: clamp(40px, 7vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 0 56px;
  color: var(--text);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 880px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.feature-art {
  background: var(--bg);
  border-radius: 16px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.feature-art-say {
  background: var(--accent);
}

.feature-quote {
  color: var(--bg);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.4px;
  text-align: center;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 22px;
  color: #ffffff;
  border: 3px solid var(--surface);
  margin-left: -14px;
  letter-spacing: -0.2px;
}

.avatar:first-child {
  margin-left: 0;
}

.avatar-1 { background: #5856d6; }
.avatar-2 { background: #ff9500; }
.avatar-3 { background: #34c759; }
.avatar-4 { background: var(--text); color: var(--bg); font-size: 26px; }

@media (prefers-color-scheme: dark) {
  .avatar-4 { color: #1c1c1e; }
}

.feature-art-settle {
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  justify-content: center;
}

.settle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--rule);
}

.settle-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 700;
}

.settle-amount {
  font-size: 15px;
  font-weight: 700;
  color: #ff3b30;
  letter-spacing: -0.2px;
}

.settle-pos { color: #34c759; }

.settle-cta {
  background: var(--accent);
  color: var(--bg);
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  margin-top: 4px;
}

@media (prefers-color-scheme: dark) {
  .settle-cta { color: #1c1c1e; }
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin: 0 0 8px;
  color: var(--text);
}

.feature-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* CTA section */
.cta {
  padding: 96px 0;
  text-align: center;
  border-top: 1px solid var(--rule);
}

.cta-eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--text-muted);
  margin: 0 0 20px;
  font-weight: 700;
}

.cta-title {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin: 0 auto 24px;
  color: var(--text);
}

.cta-desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 32px;
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  padding: 14px 24px;
  background: var(--accent);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.2px;
}

@media (prefers-color-scheme: dark) {
  .cta-pill { color: #1c1c1e; }
}

/* Giant wordmark */
.wordmark {
  padding: 0 0 48px;
}

.wordmark-svg {
  display: block;
  width: 100%;
  height: auto;
  color: var(--text);
}

/* Footer */
.landing-foot {
  padding: 32px 0 64px;
  border-top: 1px solid var(--rule);
}

.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: var(--text);
}

.foot-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
}

.foot-links {
  display: flex;
  gap: 24px;
}

.foot-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
}

.foot-links a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-copy {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}
