/* Splitnor website — palette and type mirror the app (src/theme/variables.scss). */

:root {
  --paper: #f9fafb;
  --surface: #ffffff;
  --tint: #f3f4fb;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --line: #e5e7eb;

  --indigo: #4f46e5;
  --indigo-deep: #4338ca;
  --indigo-soft: #818cf8;
  --violet: #7c3aed;
  --green: #059669;
  --orange: #ea580c;

  --radius: 20px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 12px 32px -12px rgba(17, 24, 39, .12);
  --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f172a;
    --surface: #1e293b;
    --tint: #131c2e;
    --ink: #f1f5f9;
    --ink-2: #cbd5e1;
    --muted: #94a3b8;
    --line: #334155;
    --indigo: #818cf8;
    --indigo-deep: #a5b4fc;
    --green: #34d399;
    --orange: #fb923c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .5);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.1; font-weight: 600; }
p { margin: 0 0 1em; }

:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.muted { color: var(--muted); }

/* ── Buttons ─────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--font);
  cursor: pointer;
  transition: background .2s, transform .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }

.btn-primary { background: #4f46e5; color: #fff; box-shadow: 0 8px 20px -8px rgba(79, 70, 229, .6); }
.btn-primary:hover { background: #4338ca; }

.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { opacity: .88; }

.btn-ghost { color: var(--ink); }
.btn-ghost span { transition: transform .2s; }
.btn-ghost:hover span { transform: translateX(3px); }

/* ── Nav ─────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }

.nav-links { display: flex; gap: 32px; font-size: 14px; color: var(--ink-2); }
.nav-links a:hover { color: var(--indigo); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
  display: none; position: relative;
  width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .25s, top .25s;
}
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav.open .nav-toggle span:first-child { top: 19px; transform: rotate(45deg); }
.nav.open .nav-toggle span:last-child { top: 19px; transform: rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────── */

.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--indigo);
  letter-spacing: .02em; margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: currentColor; transform: rotate(-45deg); }

.hero h1 { font-size: clamp(42px, 6.2vw, 76px); letter-spacing: -0.045em; line-height: 1.02; margin-bottom: 26px; }
.hero h1 em { font-style: normal; color: var(--indigo); }

.lede { font-size: 18px; color: var(--ink-2); max-width: 31em; margin-bottom: 34px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 44px; }

.hero-facts {
  list-style: none; margin: 0; padding: 22px 0 0;
  display: flex; flex-wrap: wrap; gap: 12px 36px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.hero-facts strong { color: var(--ink); font-weight: 600; }

.hero-visual { position: relative; display: flex; justify-content: center; padding: 20px 0; }

.hero-mark {
  position: absolute; z-index: 0;
  width: 112%; max-width: 560px; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: .1;
}

/* Phone — a faithful sketch of the app's home screen */

.phone {
  position: relative; z-index: 1;
  width: 300px; padding: 10px;
  background: #0b1020; border-radius: 46px;
  box-shadow: 0 40px 80px -30px rgba(49, 46, 129, .55), inset 0 0 0 1.5px #2a3150;
}
.phone-screen {
  position: relative; overflow: hidden;
  height: 600px; border-radius: 37px;
  background: #f9fafb; color: #111827;
  padding: 0 16px;
  font-size: 12px; line-height: 1.4;
}
.ph-status { display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 10px; font-size: 11px; font-weight: 600; }
.ph-status span:last-child { letter-spacing: -2px; font-size: 8px; }
.ph-notch { width: 82px; height: 22px; border-radius: 12px; background: #0b1020; }

.ph-top { display: flex; align-items: center; gap: 10px; margin: 8px 2px 14px; }
.ph-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: #e0e7ff; color: #4338ca; font-weight: 600; font-size: 12px;
}
.ph-sub { display: block; font-size: 10px; color: #6b7280; }
.ph-name { display: block; font-size: 15px; font-weight: 600; }

.ph-hero {
  position: relative; overflow: hidden;
  border-radius: 20px; padding: 16px 16px 14px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(79, 70, 229, .55);
}
.ph-circle { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.ph-circle.c1 { width: 140px; height: 140px; top: -50px; right: -40px; }
.ph-circle.c2 { width: 90px; height: 90px; bottom: -40px; left: 40%; }
.ph-label { margin: 0; font-size: 10px; opacity: .75; letter-spacing: .04em; text-transform: uppercase; }
.ph-amount { margin: 2px 0 0; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; color: #a7f3d0; }
.ph-dir { margin: 0 0 12px; font-size: 10px; opacity: .8; }
.ph-chips {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, .12); border-radius: 12px; padding: 8px 12px;
}
.ph-chips i { width: 1px; height: 24px; background: rgba(255, 255, 255, .2); }
.ph-chips span { display: block; font-size: 9px; opacity: .75; }
.ph-chips b { font-size: 13px; font-weight: 600; }
.ph-chips .pos { color: #a7f3d0; }
.ph-chips .neg { color: #fed7aa; }

.ph-section { margin: 18px 2px 8px; font-weight: 600; font-size: 12px; }
.ph-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ph-list li {
  display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center;
  background: #fff; border-radius: 14px; padding: 9px 10px;
  box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
}
.ph-list b { display: block; font-size: 11.5px; font-weight: 600; }
.ph-list small { display: block; font-size: 10px; color: #6b7280; }
.ph-list em { font-style: normal; font-weight: 600; font-size: 11.5px; }
.ph-list .pos { color: #059669; }
.ph-list .neg { color: #ea580c; }
.ph-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 600; font-size: 12px; }
.ph-ico.ind { background: #e0e7ff; color: #4338ca; }
.ph-ico.tea { background: #ccfbf1; color: #0f766e; }
.ph-ico.vio { background: #ede9fe; color: #6d28d9; }

.ph-tabbar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-around; align-items: center;
  height: 64px; padding-bottom: 8px; background: #fff;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, .03);
}
.ph-tabbar i { width: 18px; height: 18px; border-radius: 6px; background: #e5e7eb; }
.ph-tabbar i:first-child { background: #4f46e5; }
.ph-tabbar span {
  width: 40px; height: 40px; border-radius: 14px;
  display: grid; place-items: center;
  background: #4f46e5; color: #fff; font-size: 22px; font-weight: 400;
}

.float-card {
  position: absolute; z-index: 2; left: 0; bottom: 70px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px 12px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow);
  font-size: 13px; line-height: 1.35;
  animation: rise .8s .4s both cubic-bezier(.2, .8, .2, 1);
}
.float-card b { display: block; font-weight: 600; }
.float-card small { color: var(--muted); font-size: 12px; }
.fc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 18%, transparent); }

@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ── Made-for strip ──────────────────────────────────────── */

.for-strip { padding: 8px 0 16px; }
.for-inner { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.for-label { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.for-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.for-chips li {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 18px 0 7px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 15px; font-weight: 500; color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(17, 24, 39, .04);
  transition: transform .2s, border-color .2s;
}
.for-chips li:hover { transform: translateY(-2px); border-color: var(--indigo-soft); }
.for-ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; }
.for-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ── Sections ────────────────────────────────────────────── */

.section { padding: 112px 0; }
.section-tint { background: var(--tint); }

.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: center; }
.two-col.reverse .col-copy { order: 2; }

.kicker {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 20px;
}
.kicker span { color: var(--indigo); font-variant-numeric: tabular-nums; }

h2 { font-size: clamp(32px, 4.2vw, 48px); margin-bottom: 22px; }
.col-copy p { color: var(--ink-2); font-size: 17px; max-width: 30em; }
.col-copy .muted { color: var(--muted); font-size: 15px; }
.col-copy .btn { margin-top: 12px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Split demo */

.demo { padding: 28px; }
.demo-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.demo-tag { font-size: 12px; color: var(--muted); }
.demo h3 { font-size: 20px; letter-spacing: -0.02em; }

.amount-field {
  display: flex; align-items: baseline; gap: 4px;
  border-bottom: 2px solid var(--line); padding-bottom: 2px;
  transition: border-color .2s;
}
.amount-field:focus-within { border-color: var(--indigo); }
.amount-field span { font-size: 20px; color: var(--muted); }
.amount-field input {
  width: 5.5ch; border: 0; background: none; outline: none;
  font: 600 28px/1.1 var(--font); letter-spacing: -0.03em; color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.seg { display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); margin-bottom: 18px; }
.seg button {
  height: 38px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  font: 500 14px var(--font); color: var(--muted);
  transition: background .2s, color .2s;
}
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(17, 24, 39, .1); }

.people { list-style: none; margin: 0; padding: 0; }
.person {
  display: grid; grid-template-columns: 22px 36px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 0; border-bottom: 1px solid var(--line);
  transition: opacity .2s;
}
.person:last-child { border-bottom: 0; }
.person.off { opacity: .4; }
.person input[type="checkbox"] { width: 18px; height: 18px; accent-color: #4f46e5; cursor: pointer; margin: 0; }
.p-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.p-name { font-weight: 500; font-size: 15px; }
.p-name small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.p-val { font-weight: 600; font-variant-numeric: tabular-nums; font-size: 15px; text-align: right; }
.p-in {
  display: flex; align-items: center; gap: 4px;
  border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; height: 38px;
  background: var(--paper);
}
.p-in:focus-within { border-color: var(--indigo); }
.p-in input {
  width: 6ch; border: 0; background: none; outline: none; text-align: right;
  font: 600 15px var(--font); color: var(--ink); font-variant-numeric: tabular-nums;
}
.p-in span { color: var(--muted); font-size: 13px; }

.demo-status {
  display: flex; align-items: center; gap: 8px;
  margin: 18px 0 0; padding: 12px 14px; border-radius: 12px;
  font-size: 14px; font-weight: 500;
}
.demo-status.ok { background: color-mix(in srgb, var(--green) 10%, transparent); color: var(--green); }
.demo-status.bad { background: color-mix(in srgb, var(--orange) 10%, transparent); color: var(--orange); }

/* Settle demo */

.settle { margin: 0; padding: 24px 24px 18px; }
.settle svg { width: 100%; height: auto; display: block; }
.settle figcaption { text-align: center; font-size: 14px; color: var(--muted); padding-top: 6px; }
.settle figcaption b { color: var(--ink); }

.node circle { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.node .ring { fill: none; stroke-width: 3; }
.node text { font-family: var(--font); text-anchor: middle; }
.node .ini { font-size: 15px; font-weight: 600; fill: var(--ink); }
.node .net { font-size: 12px; font-weight: 600; }
.edge line { stroke: var(--indigo-soft); stroke-width: 2; }
.edge .lbl-bg { fill: var(--surface); }
.edge text { font: 600 12px var(--font); fill: var(--ink-2); text-anchor: middle; dominant-baseline: central; }
.edges { transition: opacity .45s ease; }
.edges.after line { stroke: #4f46e5; stroke-width: 2.5; }
@media (prefers-color-scheme: dark) { .edges.after line { stroke: #a5b4fc; } }
.edges.hidden { opacity: 0; }

/* ── Features ────────────────────────────────────────────── */

.features-head { margin-bottom: 48px; }
.features-head h2 { margin: 0; max-width: 16em; text-wrap: balance; }

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

.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 28px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .25s, box-shadow .25s;
}
.tile:hover { border-color: color-mix(in srgb, var(--indigo-soft) 55%, var(--line)); box-shadow: var(--shadow); }
.tile h3 { font-size: 19px; letter-spacing: -0.02em; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 15px; margin: 0; max-width: 34em; }

.tile-history  { grid-column: span 4; }
.tile-invite   { grid-column: span 2; }
.tile-groups   { grid-column: span 2; }
.tile-insights { grid-column: span 4; }
.tile-currency { grid-column: span 3; }
.tile-dark     { grid-column: span 3; }

.fa-ind { background: #e0e7ff; color: #4338ca; }
.fa-tea { background: #ccfbf1; color: #0f766e; }
.fa-vio { background: #ede9fe; color: #6d28d9; }
.fa-ora { background: #ffedd5; color: #c2410c; }

/* Activity feed */
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.feed li {
  display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center;
  padding: 10px 14px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line);
  font-size: 14px;
}
.feed li:nth-child(1) { animation: feedIn .6s both; }
.feed-av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.feed p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.4; }
.feed p b { color: var(--ink); font-weight: 600; }
.feed small { display: block; color: var(--muted); font-size: 12px; }
.feed em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.feed .feed-edit { color: var(--indigo); }
.feed .feed-pay { color: var(--green); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-6px); } }

/* Invite link */
.invite {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 6px 6px 6px 16px; border-radius: 14px;
  background: var(--paper); border: 1px dashed color-mix(in srgb, var(--indigo-soft) 60%, var(--line));
  font-size: 14px; color: var(--muted); white-space: nowrap;
}
.invite-url { overflow: hidden; text-overflow: ellipsis; }
.invite-url b { color: var(--indigo); font-weight: 600; }
.invite-copy { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #4f46e5; }
.invite-copy svg { width: 17px; height: 17px; fill: none; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }

/* Groups */
.mini-groups { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mini-groups li { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; font-size: 14px; padding: 6px 0; }
.mini-groups li + li { border-top: 1px solid var(--line); padding-top: 10px; }
.mg-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.mini-groups b { font-weight: 500; }
.mini-groups em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-groups .pos { color: var(--green); }
.mini-groups .neg { color: var(--orange); }

/* Category bars */
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 56px 1fr 40px; gap: 14px; align-items: center; font-size: 13px; color: var(--muted); }
.bar i { position: relative; height: 10px; border-radius: 99px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.bar i::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w);
  border-radius: inherit; background: linear-gradient(90deg, #4f46e5, #7c3aed);
}
.bar:nth-child(n+2) i::after { opacity: .75; }
.bar:nth-child(n+3) i::after { opacity: .55; }
.bar:nth-child(n+4) i::after { opacity: .4; }
.bar b { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.exports { display: flex; gap: 8px; margin-top: 6px; }
.exports span {
  padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--ink-2); background: var(--paper); border: 1px solid var(--line);
}

/* Currency */
.symbols { display: flex; flex-wrap: wrap; gap: 8px; }
.symbols span {
  min-width: 48px; height: 48px; padding: 0 12px; border-radius: 14px;
  display: grid; place-items: center;
  font-size: 18px; font-weight: 600; color: var(--muted);
  background: var(--paper); border: 1px solid var(--line);
}
.symbols .on { color: #fff; background: #4f46e5; border-color: #4f46e5; box-shadow: 0 8px 18px -8px rgba(79, 70, 229, .7); }

/* Dark mode tile — always dark */
.tile-dark { background: #0f172a; border-color: #1e293b; color: #f1f5f9; flex-direction: row; align-items: flex-end; }
.tile-dark h3 { color: #f1f5f9; }
.tile-dark p { color: #94a3b8; }
.tile-dark::before {
  content: ''; position: absolute; width: 64px; height: 64px; border-radius: 50%;
  top: 28px; right: 40px; box-shadow: -14px 10px 0 0 #818cf8;
}
.dark-toggle { flex: none; width: 56px; height: 32px; border-radius: 99px; background: #4f46e5; position: relative; }
.dark-toggle i { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; }

@media (prefers-color-scheme: dark) {
  .fa-ind { background: rgba(99, 102, 241, .16); color: #a5b4fc; }
  .fa-tea { background: rgba(20, 184, 166, .14); color: #5eead4; }
  .fa-vio { background: rgba(139, 92, 246, .16); color: #c4b5fd; }
  .fa-ora { background: rgba(251, 146, 60, .14); color: #fdba74; }
  .tile-dark { background: #020617; }
}

/* ── Import band ─────────────────────────────────────────── */

.import {
  position: relative;
  background: #1e1b4b; color: #e0e7ff;
  padding: 104px 0;
  clip-path: polygon(0 48px, 100% 0, 100% calc(100% - 48px), 0 100%);
  margin: -24px 0;
}
.import-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.import h2 { color: #fff; margin-bottom: 22px; }
.kicker.light { color: #a5b4fc; }
.kicker.light span { color: #c7d2fe; }
.import-copy p:not(.kicker) { color: #c7d2fe; font-size: 17px; max-width: 30em; margin-bottom: 28px; }
.import-link { display: inline-flex; gap: 8px; color: #fff; font-weight: 500; border-bottom: 1px solid rgba(165, 180, 252, .5); padding-bottom: 2px; }
.import-link span { transition: transform .2s; }
.import-link:hover span { transform: translateX(3px); }

.flow {
  position: relative; display: grid; gap: 14px;
  padding: 22px; border-radius: 24px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(165, 180, 252, .18);
}
.flow::before { content: ''; position: absolute; left: 39px; top: 44px; bottom: 90px; width: 1px; background: rgba(165, 180, 252, .25); }
.flow-step { position: relative; display: grid; grid-template-columns: 34px 1fr; gap: 16px; }
.flow-num {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: #1e1b4b; border: 1px solid rgba(165, 180, 252, .4);
  color: #c7d2fe; font-size: 13px; font-weight: 600; z-index: 1;
}
.flow-num.done { background: #10b981; border-color: #10b981; }
.flow-num.done::after { content: ''; width: 11px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg); }
.flow-body { padding: 14px 16px; border-radius: 16px; background: #fff; color: #111827; }
.flow-body small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #6b7280; margin-bottom: 10px; }

.tick { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #d1fae5; position: relative; }
.tick::after { content: ''; position: absolute; left: 6px; top: 6px; width: 8px; height: 4px; border: solid #059669; border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.file { display: flex; align-items: center; gap: 12px; }
.file-ico { width: 38px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: #d1fae5; color: #047857; font-size: 10px; font-weight: 700; letter-spacing: .04em; }
.file-name { flex: 1; font-weight: 600; font-size: 14px; }
.file-name em { display: block; font-style: normal; font-weight: 400; font-size: 12px; color: #6b7280; }

.match { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.match li { display: grid; grid-template-columns: 1fr 20px 1fr 20px; gap: 10px; align-items: center; font-size: 14px; }
.match .src { padding: 6px 10px; border-radius: 8px; background: #f3f4f6; color: #4b5563; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12.5px; }
.match i { height: 1px; background: #c7d2fe; position: relative; }
.match i::after { content: ''; position: absolute; right: 0; top: -3px; border: 3.5px solid transparent; border-left: 5px solid #818cf8; border-right: 0; }
.match .dst { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.match .dst b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 600; }

.result { margin: 0; font-size: 15px; color: #4b5563; }
.result b { font-size: 22px; font-weight: 700; color: #111827; letter-spacing: -0.02em; }
.result span { margin: 0 6px; color: #d1d5db; }

/* keep light avatar colours inside the white flow cards in dark mode */
@media (prefers-color-scheme: dark) {
  .flow-body .fa-tea { background: #ccfbf1; color: #0f766e; }
  .flow-body .fa-vio { background: #ede9fe; color: #6d28d9; }
  .flow-body .fa-ora { background: #ffedd5; color: #c2410c; }
}

/* ── Download ────────────────────────────────────────────── */

.download { padding-top: 152px; }
.download-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.download-inner img { margin-bottom: 32px; }
.download h2 { margin-bottom: 14px; max-width: 16em; text-wrap: balance; }
.download p { font-size: 17px; margin-bottom: 36px; }

.store-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.store { display: inline-block; border-radius: 10px; transition: transform .2s, opacity .2s; }
.store:hover { transform: translateY(-2px); }
.store img { height: 54px; width: auto; }
.store.is-soon { cursor: default; }
.store.is-soon:hover { transform: none; }

.soon-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
  padding: 6px 14px 6px 10px; border-radius: 99px;
  background: color-mix(in srgb, var(--indigo-soft) 16%, transparent);
  color: var(--indigo); font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.soon-pill span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }

/* ── Footer ──────────────────────────────────────────────── */

.footer { border-top: 1px solid var(--line); padding: 72px 0 0; font-size: 14px; color: var(--muted); }

.footer-top { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; padding-bottom: 56px; }

.footer .brand { color: var(--ink); font-size: 18px; }
.footer-tag { margin: 20px 0 0; font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: -0.03em; color: var(--ink); }
.footer-tag em { font-style: normal; color: var(--indigo); }


.footer-cols { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 32px; }
.footer-cols h4 {
  margin: 6px 0 18px;
  font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink);
}
.footer-cols a { display: block; padding: 5px 0; color: var(--muted); transition: color .2s; }
.footer-cols a:hover { color: var(--indigo); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 24px 0 32px; border-top: 1px solid var(--line); font-size: 13px;
}
.footer-bottom p { margin: 0; }
.footer-bottom a:hover { color: var(--indigo); }

/* ── Content pages (help / privacy / terms) ──────────────── */

.doc { padding: 72px 0 112px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); letter-spacing: -0.04em; margin-bottom: 12px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 48px; }
.doc h2 { font-size: 22px; letter-spacing: -0.02em; margin: 48px 0 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }
.doc-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--indigo); }
.doc h2[id] { scroll-margin-top: 96px; }
.doc h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; margin: 28px 0 8px; }
.doc ul ul { margin-top: 6px; }
.doc strong { color: var(--ink); font-weight: 600; }

.doc-summary {
  margin: 0 0 32px; padding: 24px 28px; border-radius: 20px;
  background: var(--tint); border: 1px solid var(--line);
}
.doc .doc-summary h2 { margin: 0 0 12px; font-size: 17px; }
.doc-summary ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.doc-summary li { position: relative; padding-left: 28px; margin: 0; }
.doc-summary li::before {
  content: ''; position: absolute; left: 2px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: color-mix(in srgb, var(--green) 18%, transparent);
}
.doc-summary li::after {
  content: ''; position: absolute; left: 7px; top: 10px; width: 6px; height: 3px;
  border: solid var(--green); border-width: 0 0 2px 2px; transform: rotate(-45deg);
}

.toc { margin: 0 0 8px; padding: 20px 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); }
.toc > p { margin: 0 0 10px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 14px; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
.doc .toc a { color: var(--ink-2); text-decoration: none; }
.doc .toc a:hover { color: var(--indigo); }

.doc-table { overflow-x: auto; margin: 16px 0 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.doc-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-table th { text-align: left; font-weight: 600; color: var(--ink); background: var(--tint); padding: 12px 16px; }
.doc-table td { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: top; }


.faq { border-top: 1px solid var(--line); margin-top: 8px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 500; font-size: 17px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--indigo); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: -4px 0 22px; }

/* Help centre */

.help-hero { padding: 32px 0 0; }
.help-hero-card {
  position: relative; overflow: hidden;
  padding: 64px 56px 56px; border-radius: 28px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 24px 60px -24px rgba(79, 70, 229, .55);
}
.hh-circle { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .08); pointer-events: none; }
.hh-circle.c1 { width: 420px; height: 420px; top: -180px; right: -120px; }
.hh-circle.c2 { width: 220px; height: 220px; bottom: -120px; right: 28%; }
.help-eyebrow { position: relative; margin: 0 0 10px; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #c7d2fe; }
.help-hero h1 { position: relative; font-size: clamp(34px, 5vw, 54px); letter-spacing: -0.04em; margin-bottom: 28px; }

.help-search {
  position: relative; display: flex; align-items: center; gap: 12px;
  max-width: 560px; height: 58px; padding: 0 20px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(17, 24, 39, .35);
}
.help-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #6b7280; stroke-width: 2; stroke-linecap: round; }
.help-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font: 400 16px var(--font); color: #111827; }
.help-search input::placeholder { color: #9ca3af; }
.help-search:focus-within { box-shadow: 0 0 0 4px rgba(199, 210, 254, .6), 0 10px 30px -10px rgba(17, 24, 39, .35); }

.help-topics { padding: 28px 0 0; }
.topic-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.topic {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 20px; border-radius: 18px; text-align: left; cursor: pointer;
  font: inherit; color: inherit;
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s, border-color .2s, box-shadow .2s, background .2s;
}
.topic[aria-pressed="true"] { border-color: #4f46e5; box-shadow: 0 0 0 1px #4f46e5, var(--shadow); }
.topic-count { margin-top: 10px; font-style: normal; font-size: 12px; font-weight: 500; color: var(--indigo); }
.topic:hover { transform: translateY(-2px); border-color: var(--indigo-soft); box-shadow: var(--shadow); }
.topic b { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.topic small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.topic-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.topic-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.t-ind { background: #e0e7ff; color: #4338ca; }
.t-tea { background: #ccfbf1; color: #0f766e; }
.t-vio { background: #ede9fe; color: #6d28d9; }
.t-ora { background: #ffedd5; color: #c2410c; }
@media (prefers-color-scheme: dark) {
  .t-ind { background: rgba(99, 102, 241, .16); color: #a5b4fc; }
  .t-tea { background: rgba(20, 184, 166, .14); color: #5eead4; }
  .t-vio { background: rgba(139, 92, 246, .16); color: #c4b5fd; }
  .t-ora { background: rgba(251, 146, 60, .14); color: #fdba74; }
}

.help-body { padding: 72px 0 112px; scroll-margin-top: 48px; }
.help-wrap { max-width: 820px; }
.help-group { scroll-margin-top: 96px; margin-bottom: 48px; }
.help-group h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 14px; }
.help-group .faq { margin: 0; padding: 0 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.help-group .faq details:last-child { border-bottom: 0; }
.help-group .faq summary { font-size: 16px; }
.help-group .faq p { color: var(--ink-2); }
.help-group .faq a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }
.help-filter {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-bottom: 28px; padding: 12px 12px 12px 18px; border-radius: 14px;
  background: var(--tint); border: 1px solid var(--line); font-size: 14px; color: var(--muted);
}
.help-filter[hidden] { display: none; }
.help-filter b { color: var(--ink); font-weight: 600; }
.help-filter button {
  height: 34px; padding: 0 14px; border-radius: 99px; cursor: pointer;
  font: 500 13px var(--font); color: var(--indigo);
  background: var(--surface); border: 1px solid var(--line);
}
.help-filter button:hover { border-color: var(--indigo-soft); }
.help-empty { padding: 24px; border-radius: 16px; background: var(--tint); color: var(--muted); text-align: center; }
.help-empty[hidden], .help-group[hidden], .faq details[hidden] { display: none; }

.help-contact {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: 16px; padding: 28px 32px; border-radius: 20px;
  background: var(--tint); border: 1px solid var(--line);
}
.help-contact h2 { font-size: 22px; margin-bottom: 4px; }
.help-contact p { margin: 0; color: var(--muted); }

/* Switch from Splitwise */

.sw-hero { padding: 72px 0 96px; }
.sw-hero-inner > * { max-width: 820px; }
.sw-hero h1 { font-size: clamp(38px, 5.6vw, 66px); letter-spacing: -0.045em; line-height: 1.04; margin-bottom: 24px; }
.sw-hero .lede { margin-bottom: 32px; }
.sw-band { margin: 0; }
.sw-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 18px; }
.sw-steps li { counter-increment: s; position: relative; padding-left: 48px; color: #c7d2fe; font-size: 16px; }
.sw-steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(165, 180, 252, .4); color: #fff; font-size: 14px; font-weight: 600;
}
.sw-steps b { color: #fff; font-weight: 600; }
.sw-steps em { font-style: normal; color: #fff; }

.sw-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sw-compare .tile { justify-content: flex-start; gap: 18px; }
.sw-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sw-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: 15px; }
.sw-list svg { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 50%; fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; background: color-mix(in srgb, var(--green) 14%, transparent); }
.sw-list.note li { position: relative; padding-left: 34px; }
.sw-list.note li::before { content: ''; position: absolute; left: 7px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--indigo-soft); }

.sw-why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sw-why li { display: flex; flex-direction: column; gap: 6px; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.sw-why b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.sw-why span { color: var(--muted); font-size: 15px; }

.sw-disclaimer { margin: 40px 0 0; font-size: 13px; color: var(--muted); }

/* Open-in-app fallback */

.open-page { padding: 72px 0 112px; }
.open-card {
  max-width: 520px; margin: 0 auto; padding: 48px 36px 40px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow);
}
.open-ico { width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 24px; display: grid; place-items: center; background: var(--tint); }
.open-card h1 { font-size: clamp(28px, 4vw, 36px); letter-spacing: -0.035em; margin-bottom: 12px; text-wrap: balance; }
.open-card > p { color: var(--muted); margin: 0 auto 28px; max-width: 26em; }
.open-mobile[hidden], .open-desktop[hidden] { display: none; }
.open-btn { width: 100%; justify-content: center; height: 54px; font-size: 16px; }
.open-hint { margin: 14px 0 28px; font-size: 13px; color: var(--muted); }
.open-desktop { margin: 0 0 28px; padding: 14px 16px; border-radius: 14px; background: var(--tint); font-size: 14px; color: var(--ink-2); }
.open-desktop b { color: var(--ink); }
.open-card .store img { height: 46px; }

.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound img { margin: 0 auto 28px; }
.notfound h1 { font-size: 40px; margin-bottom: 12px; }
.notfound p { color: var(--muted); margin-bottom: 28px; }

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 24px 20px;
    background: var(--paper); border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 32px -16px rgba(17, 24, 39, .25);
  }
  .nav.open .nav-links { display: flex; animation: menuIn .2s ease-out; }
  .nav-links a { padding: 14px 0; font-size: 17px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav.open { border-bottom-color: var(--line); background: var(--paper); }
  .hero-grid, .two-col, .import-inner { grid-template-columns: 1fr; gap: 48px; }
  .two-col.reverse .col-copy { order: 0; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-history, .tile-insights { grid-column: span 2; }
  .tile-invite, .tile-groups, .tile-currency, .tile-dark { grid-column: span 1; }
  .section { padding: 88px 0; }
  .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
  .sw-why { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav-links { padding: 4px 16px 16px; }
  .hero { padding: 32px 0 56px; }
  .lede { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero-mark { width: 100%; }
  .phone { width: 270px; }
  .phone-screen { height: 540px; }
  .for-chips { gap: 8px; }
  .for-chips li { height: 40px; padding: 0 14px 0 5px; font-size: 14px; gap: 8px; }
  .for-ico { width: 30px; height: 30px; }
  .float-card { left: 50%; transform: translateX(-50%); bottom: 24px; white-space: nowrap; animation: none; }
  .demo { padding: 20px; }
  .demo-head { flex-direction: column; align-items: flex-start; }
  .person { grid-template-columns: 20px 32px 1fr auto; gap: 10px; }
  .p-av { width: 32px; height: 32px; }
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .bento .tile { grid-column: auto; padding: 22px; }
  .feed li { padding: 10px; gap: 10px; }
  .feed li:nth-child(3) { display: none; }
  .import { padding: 80px 0; clip-path: polygon(0 28px, 100% 0, 100% calc(100% - 28px), 0 100%); }
  .flow { padding: 14px; gap: 10px; }
  .flow::before { left: 30px; }
  .flow-step { grid-template-columns: 30px 1fr; gap: 10px; }
  .flow-num { width: 30px; height: 30px; }
  .flow-body { padding: 12px; }
  .match li { grid-template-columns: 1fr 14px 1fr 20px; gap: 6px; font-size: 13px; }
  .download { padding-top: 120px; }
  .footer { padding-top: 56px; }
  .help-hero { padding-top: 16px; }
  .help-hero-card { padding: 40px 22px 28px; border-radius: 22px; }
  .help-search { height: 52px; padding: 0 16px; }
  .help-search input { font-size: 15px; }
  .topic-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .topic { padding: 14px; }
  .topic-ico { margin-bottom: 10px; }
  .topic small { display: none; }
  .topic-count { margin-top: 4px; }
  .help-body { padding: 48px 0 80px; }
  .help-group .faq { padding: 0 16px; }
  .help-contact { padding: 24px 20px; }
  .open-page { padding: 32px 0 72px; }
  .sw-hero { padding: 40px 0 72px; }
  .sw-compare, .sw-why { grid-template-columns: 1fr; }
  .open-card { padding: 36px 20px 28px; border-radius: 22px; }
  .doc { padding: 48px 0 80px; }
  .doc-summary, .toc { padding: 20px; }
  .toc ol { columns: 1; }
  .doc-table th, .doc-table td { padding: 10px 12px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
