/* Splitproof landing — implements variant 1a of "Splitproof Landing.dc.html"
   (split hero, alternating feature rows, two-column FAQ). Desktop values come
   from the 1440px mockup; the ≤900px media queries apply the 390px mockup. */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-ui), system-ui, sans-serif;
}

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

.container { max-width: 1120px; margin: 0 auto; }

/* ---------- hero (dark) ---------- */

.hero { background: var(--bg-app); overflow: hidden; }

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 80px 0;
  max-width: 1280px;
  margin: 0 auto;
}
.nav img { width: 28px; height: 28px; display: block; }
.wordmark { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); }
.nav-links { margin-left: auto; display: flex; gap: 28px; font-size: 15px; color: var(--text-secondary); }
.nav-links a:hover { color: var(--text-primary); }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 72px;
  align-items: end;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 80px 0;
}

.hero-copy { display: flex; flex-direction: column; gap: 24px; padding-bottom: 88px; }
.hero-copy h1 {
  margin: 0;
  font-size: 56px;
  line-height: 62px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-wrap: pretty;
}
.hero-copy p {
  margin: 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--text-secondary);
  max-width: 520px;
  text-wrap: pretty;
}

.badges { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 8px 18px 8px 14px;
  color: #FFFFFF;
  min-height: 48px;
}
.store-badge--play { padding-left: 15px; }
.store-badge > span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge .store-pre { font-size: 9.5px; letter-spacing: 0.03em; opacity: 0.85; }
.store-badge--play .store-pre { letter-spacing: 0.05em; }
.store-badge .store-name { font-size: 16px; font-weight: 600; }

/* hero phone: settlement plan with Raw ⇄ Simplified toggle */
.hero-phone {
  width: 390px;
  height: 600px;
  overflow: hidden;
  background: var(--bg-app);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: none;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -8px 60px rgba(0, 0, 0, 0.4);
}

/* ---------- phone screens (390px canvas, cropped/scaled by frames) ---------- */

.screen { width: 390px; background: var(--bg-app); }
.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.statusbar .signal { color: var(--text-tertiary); font-weight: 500; }
.screen-body { display: flex; flex-direction: column; gap: 12px; padding: 12px 16px; }
.hero-phone .screen-body { padding-bottom: 16px; }
.screen-title { display: flex; align-items: center; gap: 8px; padding: 4px 2px; }
.screen-title span { font-size: 24px; line-height: 30px; font-weight: 700; color: var(--text-primary); }
.screen-back { display: flex; align-items: center; gap: 8px; padding: 12px 16px 4px; }
.screen-back .back-chevron { font-size: 22px; line-height: 1; color: var(--brand); }
.screen-back .back-label { font-size: 15px; color: var(--brand); font-weight: 500; }
.screen-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 4px;
}
.screen-modal-header .modal-cancel { font-size: 15px; color: var(--brand); font-weight: 500; min-width: 64px; }
.screen-modal-header .modal-title { font-size: 17px; line-height: 22px; font-weight: 600; color: var(--text-primary); }
.screen-modal-header .modal-spacer { min-width: 64px; }
.screen-centered-title { padding: 12px 16px 4px; text-align: center; }
.screen-centered-title span { font-size: 17px; line-height: 22px; font-weight: 600; color: var(--text-primary); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.card--list { overflow: hidden; }
.card--list > .row:not(:last-child) { border-bottom: 1px solid var(--border); }

.overline {
  font-size: 11px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.balance-card { padding: 20px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.balance-amount {
  font-size: 34px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--owed);
  font-variant-numeric: tabular-nums;
}
.balance-breakdown {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
  font-size: 13px;
  line-height: 18px;
  color: var(--text-secondary);
}
.balance-breakdown .owe-amt { color: var(--owe); font-weight: 600; font-variant-numeric: tabular-nums; }
.balance-breakdown .chev { margin-left: auto; }

.seg-wrap { display: flex; flex-direction: column; gap: 8px; }
.seg { display: flex; background: var(--bg-sunken); border-radius: var(--radius-pill); padding: 3px; gap: 2px; }
.seg-on {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.seg-off { flex: 1; text-align: center; padding: 9px 0; font-size: 13px; font-weight: 500; color: var(--text-secondary); }
.seg-note { font-size: 12px; line-height: 16px; color: var(--text-tertiary); text-align: center; }

.row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 16px; }
.row--highlight { background: var(--brand-tint); }
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-sunken);
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex: none;
}
.avatar--family { border-radius: 6px; }
.avatar--brand { background: var(--brand-tint); color: var(--brand); }
.avatar--family.avatar--oncard { background: var(--bg-card); color: var(--brand); }
.row-text { display: flex; flex-direction: column; gap: 1px; }
.row-title { font-size: 15px; line-height: 20px; font-weight: 500; color: var(--text-primary); }
.row-sub { font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.amt { margin-left: auto; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.amt--owed { color: var(--owed); }
.amt--neutral { color: var(--text-primary); }
.chev { color: var(--text-tertiary); font-size: 18px; line-height: 1; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.chip .caret { color: var(--text-tertiary); font-size: 11px; }
.chip--sm { padding: 4px 10px; font-size: 12px; }
.chip--oncard { background: var(--bg-card); }

/* proof / "why this amount" card */
.proof-card { padding: 16px; display: flex; flex-direction: column; }
.proof-card .overline { padding-bottom: 10px; }
.proof-row { display: flex; gap: 12px; min-height: 44px; align-items: center; border-bottom: 1px solid var(--border); }
.proof-row:last-child { border-bottom: none; }
.proof-row .amt--total { font-size: 20px; line-height: 26px; color: var(--owed); }
.proof-total-label { font-size: 13px; line-height: 18px; color: var(--text-secondary); }

/* expense / fx cards */
.fx-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.fx-label { font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.fx-amount-row { display: flex; align-items: baseline; gap: 10px; }
.fx-amount {
  font-size: 34px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.fx-amount-row .chip { margin-left: auto; }
.fx-rate-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
  font-size: 13px;
  line-height: 18px;
  flex-wrap: wrap;
}
.fx-converted { font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.fx-rate { color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.fx-edit { margin-left: auto; color: var(--brand); font-weight: 500; }
.fx-note { font-size: 12px; line-height: 16px; color: var(--text-tertiary); }
.fx-input {
  background: var(--bg-sunken);
  border-radius: var(--radius-md);
  height: 48px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  font-size: 15px;
  color: var(--text-primary);
}

.pending-wrap { display: flex; justify-content: center; }
.pending-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px dashed var(--pending-border);
  background: var(--pending-bg);
  color: var(--pending-text);
  font-size: 12px;
  font-weight: 600;
}
.pending-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pending-border); }

/* families "Who's coming?" screen */
.family-well { display: flex; flex-direction: column; padding: 8px 16px 12px; background: var(--bg-sunken); }
.family-head { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.family-head .ungroup { margin-left: auto; font-size: 13px; color: var(--brand); font-weight: 500; }
.family-members { display: flex; flex-direction: column; border-left: 2px solid var(--border-strong); margin-left: 13px; padding-left: 14px; }
.family-member { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; color: var(--text-secondary); }
.family-member .chip { margin-left: auto; }
.row--person { min-height: 56px; }
.row--person .name { font-size: 15px; color: var(--text-primary); font-weight: 500; }
.row--person .chip { margin-left: auto; }

/* ---------- feature rows (light) ---------- */

.feature { background: var(--bg-card); padding: 96px 80px; }
.feature ~ .feature { padding-top: 0; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.feature-copy { display: flex; flex-direction: column; gap: 16px; }
.feature-copy h2 {
  margin: 0;
  font-size: 34px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.feature-copy p { margin: 0; font-size: 17px; line-height: 26px; color: var(--text-secondary); max-width: 460px; text-wrap: pretty; }
.feature-visual {
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.feature-visual > * { width: 100%; max-width: 380px; }
.chip-card { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- gallery ---------- */

.gallery { background: var(--bg-app); border-top: 1px solid var(--border); padding: 72px 80px; }
.gallery .container { display: flex; flex-direction: column; gap: 28px; }
.gallery h2 { margin: 0; font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.01em; color: var(--text-primary); }
.gallery-row { display: flex; gap: 24px; align-items: flex-start; }
.gallery-item { flex: none; display: flex; flex-direction: column; gap: 10px; }
.thumb-frame {
  width: 250px;
  height: 340px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-app);
  box-shadow: var(--shadow-card);
}
.thumb-frame .screen { transform: scale(0.641); transform-origin: top left; }
.thumb-frame .statusbar { padding-top: 14px; }
.gallery-caption { font-size: 13px; line-height: 18px; color: var(--text-secondary); max-width: 250px; }

/* ---------- trust strip ---------- */

.trust-strip { background: var(--bg-card); border-top: 1px solid var(--border); padding: 48px 80px; }
.trust-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; }
.trust-item svg { flex: none; margin-top: 2px; }
.trust-item span { font-size: 15px; line-height: 22px; color: var(--text-secondary); }
.trust-item b { font-weight: 600; color: var(--text-primary); }

/* ---------- FAQ ---------- */

.faq { background: var(--bg-app); border-top: 1px solid var(--border); padding: 96px 80px; }
.faq .container { display: flex; flex-direction: column; gap: 40px; }
.faq h2 { margin: 0; font-size: 34px; line-height: 40px; font-weight: 700; letter-spacing: -0.01em; color: var(--text-primary); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 64px; }
.faq-item { display: flex; flex-direction: column; gap: 8px; }
.faq-q { font-size: 17px; line-height: 24px; font-weight: 600; color: var(--text-primary); }
.faq-a { font-size: 15px; line-height: 24px; color: var(--text-secondary); }

/* ---------- footer (dark) ---------- */

.footer { background: var(--bg-app); padding: 40px 80px; }
.footer .container { display: flex; flex-direction: column; gap: 20px; }
.footer-top { display: flex; align-items: center; gap: 12px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 24px; height: 24px; display: block; }
.footer-brand .wordmark { font-size: 15px; }
.footer-links { margin-left: auto; display: flex; gap: 24px; font-size: 14px; color: var(--text-secondary); flex-wrap: wrap; }
.footer-links a:hover { color: var(--text-primary); }
.footer-legal {
  font-size: 13px;
  line-height: 18px;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ---------- content pages (privacy / terms / support) ----------
   Same header/footer shell as the landing page; single prose column. */

.subnav { background: var(--bg-app); }
.subnav .nav { padding-bottom: 22px; }

.page { background: var(--bg-card); padding: 64px 80px 96px; }
.page-inner { max-width: 760px; margin: 0 auto; }
.page h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.page-meta { margin: 0 0 24px; font-size: 14px; line-height: 22px; color: var(--text-secondary); }
.draft-note {
  border: 1.5px dashed var(--pending-border);
  background: var(--pending-bg);
  color: var(--pending-text);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 13px;
  line-height: 19px;
  font-weight: 500;
  margin: 0 0 40px;
}
.page h2 {
  margin: 40px 0 12px;
  font-size: 22px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.page h3 { margin: 28px 0 8px; font-size: 17px; line-height: 24px; font-weight: 600; color: var(--text-primary); }
.page p { margin: 0 0 12px; font-size: 15px; line-height: 24px; color: var(--text-secondary); text-wrap: pretty; }
.page strong { font-weight: 600; color: var(--text-primary); }
.page a { color: var(--brand); font-weight: 500; }
.page a:hover { color: var(--brand-pressed); }

/* ---------- mobile (390px mockup) ---------- */

@media (max-width: 900px) {
  .nav { gap: 10px; padding: 18px 20px 0; }
  .nav img { width: 26px; height: 26px; }
  .wordmark { font-size: 16px; }
  .nav-links { gap: 18px; font-size: 14px; }
  .nav-links .nav-link--gallery { display: none; }

  .hero-grid { display: flex; flex-direction: column; gap: 18px; padding: 40px 24px 0; }
  .hero-copy { gap: 18px; padding-bottom: 0; }
  .hero-copy h1 { font-size: 36px; line-height: 42px; }
  .hero-copy p { font-size: 16px; line-height: 24px; }
  .badges { gap: 10px; padding-top: 0; }
  .store-badge { gap: 8px; padding: 7px 14px 7px 12px; min-height: 44px; }
  .store-badge svg { width: 19px; height: 19px; }
  .store-badge .store-pre { font-size: 8.5px; }
  .store-badge .store-name { font-size: 14px; }

  .hero-phone {
    width: 312px;
    height: 400px;
    margin: 16px auto 0;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -8px 48px rgba(0, 0, 0, 0.4);
  }
  .hero-phone .screen { transform: scale(0.8); transform-origin: top left; }

  .feature { padding: 56px 24px; }
  .feature ~ .feature { padding-top: 0; }
  .feature-grid { display: flex; flex-direction: column; gap: 16px; }
  .feature-grid--reversed { flex-direction: column-reverse; }
  .feature-copy h2 { font-size: 28px; line-height: 34px; }
  .feature-copy p { font-size: 15px; line-height: 23px; max-width: none; }
  .feature-visual { padding: 20px; align-items: stretch; }
  .feature-visual > * { max-width: none; }

  .gallery { padding: 48px 0 48px 24px; }
  .gallery .container { gap: 20px; }
  .gallery h2 { font-size: 22px; line-height: 28px; }
  .gallery-row { gap: 16px; overflow-x: auto; padding-right: 24px; padding-bottom: 8px; }
  .gallery-item { gap: 8px; }
  .thumb-frame { width: 210px; height: 286px; border-radius: 14px; }
  .thumb-frame .screen { transform: scale(0.538); }
  .gallery-caption { font-size: 12px; line-height: 17px; max-width: 210px; }

  .trust-strip { padding: 40px 24px; }
  .trust-strip .container { display: flex; flex-direction: column; gap: 20px; }
  .trust-item svg { margin-top: 1px; }

  .faq { padding: 56px 24px; }
  .faq .container { gap: 28px; }
  .faq h2 { font-size: 26px; line-height: 32px; }
  .faq-grid { display: flex; flex-direction: column; gap: 28px; }
  .faq-q { font-size: 16px; line-height: 22px; }
  .faq-a { font-size: 14px; line-height: 22px; }

  .subnav .nav { padding-bottom: 18px; }
  .page { padding: 40px 24px 64px; }
  .page h1 { font-size: 28px; line-height: 34px; }
  .page h2 { margin-top: 32px; font-size: 20px; line-height: 26px; }
  .page h3 { font-size: 16px; line-height: 22px; }
  .page p { font-size: 14px; line-height: 22px; }

  .footer { padding: 32px 24px; }
  .footer .container { gap: 16px; }
  .footer-brand img { width: 22px; height: 22px; }
  .footer-brand .wordmark { font-size: 14px; }
  .footer-links { margin-left: 0; gap: 18px; font-size: 13px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-legal { font-size: 12px; line-height: 17px; padding-top: 14px; }
}
