/* 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); }

.btn-line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--indigo); color: var(--indigo); }

/* ── 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;
}

.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 real capture of the app's home screen (Splitnor.Store/screenshot-generator, demo account "Adam").
   Regenerate cap/iphone-home.png there, then save it here as assets/app-home.webp at 600px wide. */

.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;
  aspect-ratio: 390 / 902; border-radius: 37px;
  background: #f4f4f8; color: #111827;
}
.phone-shot { display: block; width: 100%; height: auto; }
/* The capture leaves the iPhone status-bar area empty; draw it like the device would */
.ph-status {
  position: absolute; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  height: 42px; padding: 0 26px; 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; }

/* The push the app sends when someone records a payment to you (NotificationOrchestrator.NotifySettlementAsync) */
.float-card {
  position: absolute; z-index: 2; left: 0; bottom: 70px; width: 290px;
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px 12px 11px; border-radius: 20px;
  background: rgba(255, 255, 255, .82); color: #111827;
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 18px 40px -14px rgba(17, 24, 39, .35), 0 0 0 .5px rgba(17, 24, 39, .08);
  line-height: 1.35;
  animation: rise .8s .4s both cubic-bezier(.2, .8, .2, 1);
}
.float-card img { flex: none; width: 36px; height: 36px; border-radius: 9px; margin-top: 2px; }
.float-card > div { flex: 1; min-width: 0; }
.fc-top { display: flex; justify-content: space-between; margin: 0 0 1px; font-size: 11px; letter-spacing: .03em; text-transform: uppercase; color: #6b7280; }
.float-card b { display: block; font-size: 13px; font-weight: 600; }
.float-card small { display: block; font-size: 12.5px; color: #374151; }
@media (prefers-color-scheme: dark) {
  .float-card { background: rgba(30, 41, 59, .85); color: #f1f5f9; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .7), 0 0 0 .5px rgba(255, 255, 255, .08); }
  .fc-top { color: #94a3b8; }
  .float-card small { color: #cbd5e1; }
}

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

/* Page changes: the offer bar and header stay put while the page slides out and the next one rises in
   (cross-document view transitions; browsers without support just load the page). */
@view-transition { navigation: auto; }
.offer-bar { view-transition-name: offer-bar; }
.nav { view-transition-name: site-header; }
::view-transition-old(root) { animation: page-out .2s cubic-bezier(.4, 0, 1, 1) both; }
::view-transition-new(root) { animation: page-in .38s cubic-bezier(.2, .8, .2, 1) both; }
::view-transition-group(site-header), ::view-transition-group(offer-bar) { animation-duration: .25s; }
@keyframes page-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes page-in { from { opacity: 0; transform: translateY(18px); } }

/* Top of each page rises in, one line after another */
.hero-copy > *, .hero-visual, .sw-hero-inner > *, .pp-head > *, .help-hero-card > :not(.hh-circle),
.doc .wrap > :nth-child(-n+3), .notfound .wrap > * {
  animation: rise-in .6s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-copy > :nth-child(2), .sw-hero-inner > :nth-child(2), .pp-head > :nth-child(2), .help-hero-card > :nth-child(4),
.doc .wrap > :nth-child(2), .notfound .wrap > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3), .sw-hero-inner > :nth-child(3), .pp-head > :nth-child(3), .help-hero-card > :nth-child(5),
.doc .wrap > :nth-child(3), .notfound .wrap > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4), .sw-hero-inner > :nth-child(4), .pp-head > :nth-child(4), .notfound .wrap > :nth-child(4) { animation-delay: .18s; }
.hero-copy > :nth-child(5), .pp-head > :nth-child(5) { animation-delay: .24s; }
.hero-visual { animation-delay: .14s; animation-duration: .8s; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } }

/* ── 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-chip {
  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;
}
a.for-chip:hover { transform: translateY(-2px); border-color: var(--indigo-soft); color: var(--ink); }
.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);
}
/* Same violet-to-pink PRO tag as the app */
.pro-tag {
  display: inline-block; padding: 3px 9px; border-radius: 99px; vertical-align: middle;
  font-size: 10px; font-weight: 600; letter-spacing: .08em; line-height: 1.4; text-transform: uppercase; color: #fff;
  background: linear-gradient(90deg, #8b5cf6, #d946ef);
}
.exports .pro-tag { align-self: center; margin-left: 2px; padding: 3px 8px; border: 0; color: #fff; background: linear-gradient(90deg, #8b5cf6, #d946ef); }

/* Pro: home band and /pro page */
.pro-band { padding: 0 0 112px; }
.pro-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 56px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.pro-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #8b5cf6, #d946ef);
}
.pro-card h2 { margin-bottom: 14px; }
.pro-copy > p:not(.kicker) { color: var(--ink-2); font-size: 17px; max-width: 28em; margin: 0 0 24px; }
.pro-copy .btn { padding-left: 0; }
.kicker .pro-tag { margin-right: 6px; color: #fff; }

.pro-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.pro-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.pro-list svg {
  flex: none; width: 22px; height: 22px; margin-top: 1px; padding: 4px; border-radius: 50%;
  fill: none; stroke: #8b5cf6; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  background: color-mix(in srgb, #8b5cf6 14%, transparent);
}
.pro-list small { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--muted); }
/* Planned, not yet in Pro: set apart from the features the price includes (same as the app's paywall) */
.pro-list .pro-soon { padding-top: 16px; border-top: 1px dashed var(--line); }
.pro-list .pro-soon svg { fill: #8b5cf6; stroke: none; padding: 5px; }


/* /pro: one Pro card with a Monthly / Yearly switch (main.js); Free is one line under it */
.pp { padding: 64px 0 96px; }
.pp-head { text-align: center; margin-bottom: 40px; }
.pp-head h1 { font-size: clamp(40px, 5.6vw, 64px); letter-spacing: -0.045em; margin-bottom: 14px; }
.pp-head .lede { margin: 0 auto; max-width: 32em; }
.pp-toggle { display: inline-flex; margin-top: 26px; padding: 4px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }
.pp-toggle[hidden] { display: none; }
.pp-toggle button {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border: 0; border-radius: 99px;
  background: none; font: 600 14px var(--font); color: var(--muted); cursor: pointer; transition: background .2s, color .2s;
}
.pp-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.pp-toggle em { font-style: normal; font-size: 11px; padding: 2px 7px; border-radius: 99px; background: linear-gradient(135deg, #8b5cf6, #d946ef); color: #fff; }

.pp-card {
  position: relative; overflow: hidden; max-width: 960px; margin: 0 auto; padding: 48px; border-radius: 32px;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #c026d3 0%, #7c3aed 35%, #4338ca 70%, #1e1b4b 100%);
  box-shadow: 0 40px 80px -30px rgba(76, 29, 149, .6);
}
.pp-card::after { content: ''; position: absolute; width: 420px; height: 420px; right: -140px; bottom: -200px; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.pp-card > * { position: relative; z-index: 1; }
.pp-name { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 22px; font-weight: 600; }
.pp-name span { padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, .18); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.pp-amount { margin: 0; font-size: 64px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.pp-amount small { font-size: 18px; font-weight: 500; letter-spacing: 0; opacity: .8; }
.pp-then { margin: 12px 0 0; font-size: 15px; opacity: .85; max-width: 24em; }
.pp-offer { display: inline-block; margin: 18px 0 0; padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, .14); font-size: 14px; }
.pp-alt { margin: 14px 0 0; font-size: 14px; opacity: .8; }
.pp-price .store-row { justify-content: flex-start; margin-top: 28px; }
.pp-price .store img { height: 46px; }
.pp-feats ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pp-feats li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: 16px; }
.pp-feats svg {
  flex: none; width: 28px; height: 28px; padding: 6px; border-radius: 9px; background: rgba(255, 255, 255, .16);
  fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}
.pp-feats small { display: block; font-size: 14px; font-weight: 400; opacity: .75; }
/* Planned, not yet in Pro: set apart from the features the price includes (same as the app's paywall) */
.pp-feats .pp-soon { padding-top: 14px; border-top: 1px dashed rgba(255, 255, 255, .3); }
.pp-feats .pp-soon svg { fill: #fff; stroke: none; padding: 7px; }
.pp-free {
  max-width: 960px; margin: 20px auto 0; padding: 18px 24px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--surface); text-align: center; font-size: 15px; color: var(--ink-2);
}
.pp-free b { color: var(--ink); }

.pro-faq-title { font-size: 28px; margin-bottom: 16px; }
.pro-more { margin-top: 24px; color: var(--muted); }
.pro-more a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }

/* 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; }

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

.footer { border-top: 1px solid var(--line); padding: 72px 0 0; font-size: 12px; 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-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%;
  color: var(--muted); transition: color .2s, border-color .2s;
}
.footer-social a:hover { color: var(--indigo); border-color: var(--indigo); }


.footer-cols { display: grid; grid-template-columns: repeat(4, 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: 2px 0; color: var(--muted); transition: color .2s; }
.footer-cols a:hover { color: var(--indigo); }
.footer-link { display: block; padding: 5px 0; border: 0; background: none; cursor: pointer; font: inherit; color: var(--muted); transition: color .2s; }
.footer-link:hover { color: var(--indigo); }
.footer-link[hidden] { display: none; }

.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); }

/* ── Cookie banner (analytics.js): bottom-left on wide screens, full width on phones ── */

.consent {
  position: fixed; z-index: 70; left: 24px; bottom: 24px; max-width: 440px; padding: 20px 22px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 48px -16px rgba(17, 24, 39, .3); animation: consent-in .35s cubic-bezier(.2, .8, .2, 1) both;
}
.consent p { margin: 0; font-size: 14px; line-height: 1.55; }
.consent strong { display: block; margin-bottom: 4px; font-size: 15px; font-weight: 600; color: var(--ink); }
.consent a { font-weight: 600; color: var(--indigo); }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { flex: 1; justify-content: center; }
@keyframes consent-in { from { opacity: 0; transform: translateY(12px); } }
@media (max-width: 600px) { .consent { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
@media (prefers-color-scheme: dark) { .consent { box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .7); } }

/* ── 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-steps { padding-left: 0; list-style: none; counter-reset: st; display: grid; gap: 10px; margin: 0 0 8px; }
.doc .doc-steps li {
  counter-increment: st; position: relative; margin: 0;
  padding: 14px 16px 14px 56px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
}
.doc-steps li::before {
  content: counter(st); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #4f46e5; color: #fff; font-size: 14px; 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 .toc a[aria-current] { color: var(--indigo); font-weight: 600; }

/* Launch offer (until 31 Dec 2026): banner, home badge, /pro card */
.offer-bar {
  display: block; text-align: center; padding: 10px 16px; font-size: 14px; font-weight: 500; color: #fff;
  background: linear-gradient(90deg, #7c3aed, #c026d3);
}
.offer-bar b { font-weight: 700; }
.offer-bar i { font-style: normal; }
.offer-bar span { margin-left: 10px; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.offer-badge {
  display: inline-block; margin-bottom: 18px; padding: 8px 16px; border-radius: 99px; font-size: 15px; font-weight: 700;
  letter-spacing: .02em; color: #fff; background: linear-gradient(90deg, #8b5cf6, #d946ef);
  box-shadow: 0 8px 20px -8px rgba(217, 70, 239, .6);
}

/* About page */
.doc .about-lede { font-size: 20px; color: var(--ink); margin: 32px 0 20px; }
.doc .about-sign { margin: 32px 0 40px; font-weight: 600; color: var(--ink); }
.about-stores { justify-content: flex-start; }

/* Wide screens: contents become a sticky sidebar; the text column keeps its reading width */
@media (min-width: 1100px) {
  .doc .wrap:has(.doc-layout) { max-width: 1080px; }
  .doc-layout {
    display: grid; grid-template-columns: 220px minmax(0, 760px); column-gap: 64px; align-items: start;
    grid-template-areas: "toc summary" "toc body";
  }
  .doc-layout > .doc-summary { grid-area: summary; }
  .doc-layout > .doc-body { grid-area: body; }
  .doc-layout > .toc {
    grid-area: toc; position: sticky; top: 96px; margin: 0; padding: 0;
    border: 0; border-radius: 0; background: none; max-height: calc(100vh - 120px); overflow-y: auto;
  }
  .doc-layout > .toc ol { columns: 1; }
  .doc-body > h2:first-child { margin-top: 16px; }
}

.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); }

/* Use-case pages (roommates, trips, couples, dinner): hero reuses .sw-hero, the rest reuses .sw-why and .faq */

.uc-hero .kicker { margin-bottom: 24px; }
.uc-hero .for-ico { width: 30px; height: 30px; }

.uc-bill { padding: 24px; display: grid; gap: 16px; }
.uc-bill + .uc-bill { margin-top: 16px; }
.uc-bill-head { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.uc-bill-head div { flex: 1; min-width: 0; }
.uc-bill-head b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.uc-bill-head small { color: var(--muted); font-size: 13px; }
.uc-bill-head em, .uc-rows em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.uc-bill-head em { font-size: 20px; letter-spacing: -0.02em; }

.uc-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.uc-rows li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); }
.uc-rows .feed-av { flex: none; }
.uc-rows span:not(.feed-av) { flex: 1; min-width: 0; }
.uc-rows small { display: block; color: var(--muted); font-size: 12px; }
.uc-rows i { font-style: normal; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.uc-rows .uc-pay em { color: var(--green); }

.uc-check { display: flex; align-items: center; gap: 8px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.uc-check svg { flex: none; width: 20px; height: 20px; 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); }

.uc-more { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.uc-more a {
  height: 100%; display: flex; flex-direction: column; gap: 6px; padding: 22px;
  border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
  transition: transform .2s, border-color .2s;
}
.uc-more a:hover { transform: translateY(-2px); border-color: var(--indigo-soft); }
.uc-more .for-ico { margin-bottom: 8px; }
.uc-more b { font-size: 16px; font-weight: 600; color: var(--ink); }
.uc-more span:not(.for-ico) { color: var(--muted); font-size: 14px; }

/* Links inside copy on use-case and calculator pages */
.col-copy a:not(.btn), .sw-hero .lede a, .calc-note a, .cmp-meta a {
  color: var(--indigo); text-decoration: underline; text-underline-offset: 3px;
}
.sw-hero .store-row { justify-content: flex-start; margin-top: 8px; }

/* Calculators (/bill-split-calculator, /rent-split-calculator): reuse .seg and .p-in from the split demo */
.calc { padding: 28px; }
.calc [hidden] { display: none !important; }
.calc .seg { grid-template-columns: repeat(2, 1fr); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(17, 24, 39, .1); }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin-bottom: 18px; }
.calc-field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.calc .p-in { height: 44px; }
.calc .p-in input { flex: 1; min-width: 0; width: 100%; font-size: 16px; }
.calc-name {
  width: 100%; min-width: 0; height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
  font: 500 16px var(--font); color: var(--ink);
}
.calc-name:focus { outline: none; border-color: var(--indigo); }
.calc-stepper { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.calc-stepper output { font: 600 16px var(--font); color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-stepper button, .calc-remove {
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--surface); color: var(--ink); font: 500 18px/1 var(--font);
  box-shadow: 0 1px 3px rgba(17, 24, 39, .12);
}
.calc-stepper button:disabled, .calc-remove:disabled { opacity: .35; cursor: default; }
.calc-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.calc-chip {
  height: 32px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface);
  font: 500 13px var(--font); color: var(--ink-2);
}
.calc-chip[aria-pressed="true"] { border-color: var(--indigo); color: var(--indigo); background: color-mix(in srgb, var(--indigo) 8%, var(--surface)); }
.calc-rows { list-style: none; margin: 0; padding: 0; }
.calc-row { display: grid; grid-template-columns: 1fr 8.5em 6.5em 34px; gap: 10px; align-items: center; padding: 8px 0; }
.calc-row output { font-weight: 600; font-size: 15px; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-row output small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); }
.calc-remove { background: none; box-shadow: none; color: var(--muted); }
.calc-add {
  margin: 6px 0 18px; height: 38px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px dashed var(--line); background: none; font: 500 14px var(--font); color: var(--indigo);
}
.calc-add:disabled { opacity: .4; cursor: default; }
.calc-items-field { margin-bottom: 18px; }
.calc-result { display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: var(--tint); }
.calc-big { margin: 0; font: 600 32px/1.1 var(--font); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-big small { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.calc-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.calc-lines li { display: flex; justify-content: space-between; gap: 12px; }
.calc-lines b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-note { margin: 0; font-size: 13px; color: var(--muted); }
.calc-formula { margin: 0 0 16px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }

/* Comparison table (/splitwise-alternative): reuses .doc-table */
.cmp { margin: 0; }
.cmp td:first-child { font-weight: 500; color: var(--ink); }
.cmp th:nth-child(2), .cmp td:nth-child(2) { background: color-mix(in srgb, var(--indigo) 5%, transparent); }
.cmp-meta { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

@media (max-width: 600px) {
  .calc { padding: 20px; }
  .calc .seg button { font-size: 13px; }
  .calc-fields { gap: 12px; }
  .calc-row { grid-template-columns: 1fr 8em 34px; row-gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .calc-row output { grid-column: 1 / 3; grid-row: 2; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .calc-row output small { display: inline; }
  .calc-remove { grid-column: 3; grid-row: 1; }
  .calc-big { font-size: 28px; }
  .doc-table.cmp th, .doc-table.cmp td { padding: 10px 9px; }
}

/* 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; }

/* Email unsubscribe (reuses the open-card layout) */

.unsub-card [data-state][hidden] { display: none; }
.unsub-card strong { color: var(--ink); font-weight: 600; }
.unsub-link {
  width: 100%; justify-content: center; margin-top: 10px;
  background: none; color: var(--indigo); font-size: 14px;
}
.unsub-link:hover { color: var(--indigo-deep); }
.unsub-card .btn:disabled { opacity: .6; cursor: progress; }
.unsub-note {
  margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13px; line-height: 1.6; color: var(--muted);
}
.unsub-note b { color: var(--ink); font-weight: 600; }
.unsub-note a { color: var(--indigo); }

.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, .uc-more { grid-template-columns: 1fr 1fr; }
  .pro-card, .pp-card { grid-template-columns: 1fr; gap: 32px; }
  .pp-card { padding: 36px 28px; }
  .pro-card { padding: 40px 32px; }
  .pro-band { padding-bottom: 88px; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .offer-bar { font-size: 13px; padding: 9px 16px; }
  .offer-bar i { display: none; }
  .pro-card { padding: 32px 20px; border-radius: 22px; }
  .pp { padding: 40px 0 72px; }
  .pp-card { padding: 28px 20px; border-radius: 24px; }
  .pp-amount { font-size: 52px; }
  .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; }
  .for-chips { gap: 8px; }
  .for-chip { 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; 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; }
  .uc-bill { padding: 20px; }
  .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) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
