/* Splitrail website. Dark-first like the app (black + navy), light mode via
   prefers-color-scheme. One stylesheet for every page. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/fonts/inter-Regular.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/fonts/inter-Medium.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/fonts/inter-SemiBold.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/fonts/inter-Bold.woff2) format("woff2"); }

:root {
  --bg: #050507;
  --surface: #121216;
  --surface-2: #1B1B21;
  --line: #2A2A33;
  --text: #F4F5FA;
  --muted: #A3A6B5;
  --faint: #6E7183;
  --navy: #1E3A8A;
  --accent: #4F6FE8;
  --link: #9DB6FF;
  --pos: #34D399;
  --neg: #FB7185;
  --warn: #FBBF24;
  --glow: rgba(30, 58, 138, .55);
  --shadow: 0 30px 80px rgba(0, 0, 0, .55);
  --radius: 22px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F6F7FB; --surface: #FFFFFF; --surface-2: #EEF0F7; --line: #E1E4EE;
    --text: #0E1022; --muted: #4E5368; --faint: #7A7F95;
    --link: #2747B5; --pos: #0E9F6E; --neg: #E11D48; --warn: #B45309;
    --glow: rgba(79, 111, 232, .22); --shadow: 0 30px 70px rgba(20, 30, 80, .16);
    color-scheme: light;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--link); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Header ─────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; margin: auto; position: relative; transition: transform .2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
.menu-open .menu-btn span { background: transparent; }
.menu-open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 760px) {
  .menu-btn { display: grid; place-items: center; }
  .nav-links { position: fixed; inset: calc(68px + env(safe-area-inset-top, 0px)) 0 auto 0; flex-direction: column; gap: 2px; padding: 12px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .18s; }
  .nav-links a { font-size: 17px; padding: 12px 14px; }
  .menu-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
  .nav .btn-sm { display: none; }
}

/* ── Buttons ───────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px;
  font: 600 16px var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 0 0 1px rgba(157, 182, 255, .35) inset, 0 10px 30px rgba(30, 58, 138, .45); }
.btn-primary:hover { background: #2446A3; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.store-btn { min-height: 56px; padding: 0 20px 0 16px; border-radius: 16px; background: var(--text); color: var(--bg); text-align: left; line-height: 1.15; }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: 11px; font-weight: 500; opacity: .75; }
.store-btn b { font-size: 17px; }
.store-btn[aria-disabled="true"] { cursor: default; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.soon { font-size: 13px; color: var(--faint); margin-top: 10px; }

/* ── Hero ──────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 7vw, 88px) 48px; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 120%; background: radial-gradient(ellipse 60% 55% at 70% 20%, var(--glow), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 66px); font-weight: 700; margin: 16px 0 20px; }
.hero h1 em { font-style: normal; color: var(--link); }
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 34ch; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--muted); }
.chip img { width: 22px; height: 22px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero .lede { max-width: 46ch; } }

/* Phone mock-up */
.phone-stage { position: relative; display: grid; place-items: center; min-height: 560px; }
.phone { position: relative; width: min(300px, 74vw); aspect-ratio: 1206 / 2622; border-radius: 46px; padding: 9px;
  background: linear-gradient(160deg, #3a3a44, #121216 45%, #0b0b0e); box-shadow: 0 0 0 1.5px #4a4a55 inset, var(--shadow), 0 0 120px var(--glow); }
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #000; }
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.02); transition: opacity .45s ease, transform .6s ease; }
.phone .screen img.on { opacity: 1; transform: none; }
.phone .island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 30%; height: 24px; border-radius: 20px; background: #000; z-index: 2; }
.float-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; line-height: 1.3; }
.float-card img { width: 34px; height: 34px; }
.float-card b { display: block; font-size: 15px; }
.float-card.a { top: 16%; left: max(0px, calc(50% - 250px)); animation: bob 6s ease-in-out infinite; }
.float-card.b { bottom: 18%; right: max(0px, calc(50% - 250px)); animation: bob 7s ease-in-out -2s infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.pos { color: var(--pos); } .neg { color: var(--neg); }

/* Screen switcher under the phone */
.switcher { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.switcher button { border: 1px solid var(--line); background: var(--surface); color: var(--muted); font: 500 13px var(--font); padding: 7px 12px; border-radius: 999px; cursor: pointer; }
.switcher button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: transparent; }

/* ── Sections ──────────────────────────────────────────── */
section { padding-block: clamp(56px, 8vw, 104px); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; margin-top: 10px; }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 14px; }
.center { text-align: center; margin-inline: auto; }
.alt { background: linear-gradient(var(--surface) 0 0) padding-box; border-block: 1px solid var(--line); }
@media (prefers-color-scheme: light) { .alt { background: #fff; } }

.use-cases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.use { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.use img { width: 56px; height: 56px; margin-bottom: 14px; }
.use h3 { font-size: 19px; margin-bottom: 6px; }
.use p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .use-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .use-cases { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 26px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 16px; }
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--muted); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* Interactive splitter */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.panel { padding: clamp(20px, 3vw, 28px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.panel h3 { font-size: 18px; margin-bottom: 4px; }
.panel .hint { color: var(--faint); font-size: 14px; margin-bottom: 18px; }
.expense-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) 36px; gap: 8px; align-items: center; margin-bottom: 8px; }
.expense-row input, .expense-row select { width: 100%; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: 15px var(--font); }
.expense-row input:focus, .expense-row select:focus { outline: none; border-color: var(--accent); }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--faint); cursor: pointer; font-size: 18px; }
.icon-btn:hover { color: var(--neg); background: var(--surface-2); }
.demo-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.people { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.person { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface-2); font-weight: 500; font-size: 14px; }
.avatar { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 13px; font-weight: 700; }
.balances { display: grid; gap: 8px; margin-bottom: 20px; }
.bal { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); font-variant-numeric: tabular-nums; }
.bal .bar { height: 6px; border-radius: 6px; background: var(--line); position: relative; overflow: hidden; }
.bal .bar i { position: absolute; top: 0; bottom: 0; border-radius: 6px; transition: all .35s ease; }
.settle { display: grid; gap: 8px; }
.settle-item { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); font-variant-numeric: tabular-nums; animation: pop .3s ease; }
.settle-item b { margin-left: auto; }
.settle-item .arrow { color: var(--faint); }
.saved { margin-top: 14px; font-size: 14px; color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } }
@media (max-width: 860px) { .demo { grid-template-columns: 1fr; } }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.feature:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); transform: translateY(-2px); }
.feature img { width: 44px; height: 44px; margin-bottom: 14px; }
.feature h3 { font-size: 18px; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* iPad showcase */
.ipad { margin-top: 48px; border-radius: 28px; padding: 12px; background: linear-gradient(160deg, #34343c, #111114); box-shadow: var(--shadow), 0 0 0 1.5px #44444e inset; max-width: 980px; margin-inline: auto; }
.ipad img { border-radius: 18px; width: 100%; height: auto; aspect-ratio: 2064 / 1500; object-fit: cover; object-position: top; }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trust div { padding: 22px; border-radius: var(--radius); border: 1px dashed var(--line); }
.trust h3 { font-size: 17px; margin-bottom: 6px; }
.trust p { color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .trust { grid-template-columns: 1fr; } }

/* FAQ accordion */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 600; font-size: 17px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq .answer { padding: 0 20px 18px; color: var(--muted); }
.faq .answer p + p { margin-top: 10px; }
.faq mark { background: color-mix(in srgb, var(--warn) 35%, transparent); color: inherit; border-radius: 3px; }

/* CTA band */
.cta { border-radius: 32px; padding: clamp(32px, 6vw, 64px); text-align: center; background: radial-gradient(ellipse 70% 120% at 50% 0%, rgba(79, 111, 232, .45), transparent 70%), var(--navy); color: #fff; }
.cta h2 { font-size: clamp(30px, 4.4vw, 48px); }
.cta p { color: #C9D6FF; margin: 14px auto 26px; max-width: 46ch; font-size: 18px; }
.cta .store-row { justify-content: center; }
.cta .store-btn { background: #fff; color: #0E1022; }
.cta .soon { color: #C9D6FF; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px calc(32px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.foot-grid h4 { margin: 0 0 10px; color: var(--text); font-size: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--muted); text-decoration: none; }
.foot-grid a:hover { color: var(--text); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > :first-child { grid-column: 1 / -1; } }

/* ── Document pages (privacy, support, delete account) ── */
.doc-hero { padding-block: clamp(36px, 6vw, 64px) 28px; position: relative; overflow: hidden; }
.doc-hero::before { content: ""; position: absolute; inset: -60% -10% auto; height: 160%; background: radial-gradient(ellipse 50% 50% at 20% 30%, var(--glow), transparent 70%); pointer-events: none; }
.doc-hero > * { position: relative; }
.doc-hero h1 { font-size: clamp(34px, 5vw, 54px); margin: 12px 0 12px; }
.doc-hero p { color: var(--muted); font-size: 18px; max-width: 62ch; }
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-block: 16px 72px; }
.toc { position: sticky; top: 92px; align-self: start; display: grid; gap: 2px; font-size: 14px; }
.toc a { color: var(--muted); text-decoration: none; padding: 7px 12px; border-radius: 10px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); }
.toc a.active { color: var(--text); background: var(--surface); border-left-color: var(--accent); }
.prose { max-width: 70ch; }
.prose h2 { font-size: 24px; margin: 44px 0 12px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 12px; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 8px; }
.summary-card { padding: 20px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 28px; }
.summary-card ul { list-style: none; padding: 0; display: grid; gap: 10px; margin: 12px 0 0; }
.summary-card li { display: flex; gap: 10px; color: var(--text); }
.summary-card li::before { content: "✓"; color: var(--pos); font-weight: 700; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.data-table th, .data-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { color: var(--text); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.data-table td { color: var(--muted); }
.table-scroll { overflow-x: auto; }
@media (max-width: 860px) { .doc { grid-template-columns: 1fr; gap: 20px; } .toc { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; } .toc a { white-space: nowrap; border-left: 0; background: var(--surface); } }

/* Search box */
.search { position: relative; max-width: 560px; margin-top: 24px; }
.search input { width: 100%; height: 56px; padding: 0 18px 0 50px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 16px var(--font); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.search svg { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--faint); }
.empty { color: var(--muted); padding: 18px 4px; }

/* Cards grid (support topics, delete steps) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.card { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 15px; }
.card img { width: 40px; height: 40px; margin-bottom: 12px; }
a.card { text-decoration: none; color: inherit; transition: border-color .2s; }
a.card:hover { border-color: var(--accent); }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }

/* Tabs (iPhone / Android steps) */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { border: 0; background: transparent; color: var(--muted); font: 600 14px var(--font); padding: 8px 16px; border-radius: 999px; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 22px 46px; color: var(--muted); }
.timeline li::before { content: attr(data-n); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text); font-weight: 700; font-size: 14px; border: 1px solid var(--line); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 30px; bottom: 2px; width: 1px; background: var(--line); }
.timeline strong { color: var(--text); }

/* Form */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 14px; }
.field input, .field textarea, .field select { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: 16px var(--font); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.form-note { font-size: 14px; color: var(--faint); }
.copy-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font-family: var(--mono); font-size: 15px; }
.copy-line button { margin-left: auto; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; transition: .25s; z-index: 50; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Reveal on scroll: content stays visible when JS or motion is off. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
  * { transition-duration: 0s !important; }
}

[hidden] { display: none !important; }
.prose > section + section { margin-top: 44px; }
@media (max-width: 520px) {
  .expense-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; }
  .expense-row input[data-k="title"] { grid-column: 1 / -1; }
}
