/* Blitz Split / Bora Rachar site: the landing and the legal pages.
   Colors are the design system's tokens (web-* for the zinc base, the M3 scheme for the brand), in light and dark.
   The page follows the system theme; ?theme=light|dark pins one (data-theme on <html>), for the design board. */

:root {
  color-scheme: light;
  --bg: #fafafa;              /* web-background */
  --surface: #ffffff;         /* web-surface */
  --card: #ffffff;            /* web-card */
  --fg: #09090b;              /* web-foreground */
  --fg-soft: #3f3f46;         /* web-foreground-muted */
  --muted: #f4f4f5;           /* web-muted */
  --muted-fg: #71717a;        /* web-muted-foreground: on --surface or --bg only */
  --border: #e4e4e7;          /* web-border */
  --border-subtle: #f4f4f5;   /* web-border-subtle */
  --primary: #266489;
  --on-primary: #ffffff;
  --primary-container: #c9e6ff;
  --on-primary-container: #001e2f;
  --info: #e8f3fb;            /* web-info-container */
  --on-info: #1c4e6c;
  --positive: #006c4c;        /* amount-positive */
  --negative: #8e4d31;        /* amount-negative (error) */
  --pending: #7c5800;
  --pending-container: #ffdea8;
  --on-pending-container: #271900;
  --av-blue: #c9e6ff;  --on-av-blue: #001e2f;
  --av-peach: #ffdbce; --on-av-peach: #370e00;
  --av-green: #bdefd3; --on-av-green: #00210f;
  --av-lilac: #e8ddff; --on-av-lilac: #21005d;
  --av-sand: #ffe08b;  --on-av-sand: #241a00;
  --ring: rgba(38, 100, 137, 0.35);
  --glow: rgba(38, 100, 137, 0.14);
  --device: #18181b;
  --shadow-lg: 0 1px 2px rgba(9, 9, 11, 0.04), 0 24px 48px -12px rgba(9, 9, 11, 0.18);
  --shadow-sm: 0 1px 2px rgba(9, 9, 11, 0.05), 0 4px 12px -4px rgba(9, 9, 11, 0.08);
  --radius: 8px;
  --radius-card: 14px;
  --radius-xl: 22px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: 16px;
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #09090b; --surface: #111113; --card: #18181b;
    --fg: #fafafa; --fg-soft: #d4d4d8; --muted: #27272a; --muted-fg: #a1a1aa;
    --border: #27272a; --border-subtle: #1f1f23;
    --primary: #95cdf7; --on-primary: #00344e;
    --primary-container: #004b6f; --on-primary-container: #c9e6ff;
    --info: rgba(149, 205, 247, 0.14); --on-info: #95cdf7;
    --positive: #6edbaa; --negative: #ffb599;
    --pending: #f9bc3e; --pending-container: #5e4200; --on-pending-container: #ffdea8;
    --av-blue: #004b6f;  --on-av-blue: #c9e6ff;
    --av-peach: #71361c; --on-av-peach: #ffdbce;
    --av-green: #00513a; --on-av-green: #bdefd3;
    --av-lilac: #4f378b; --on-av-lilac: #e8ddff;
    --av-sand: #574500;  --on-av-sand: #ffe08b;
    --ring: rgba(149, 205, 247, 0.4);
    --glow: rgba(149, 205, 247, 0.10);
    --device: #000000;
    --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 48px -12px rgba(0, 0, 0, 0.7);
    --shadow-sm: 0 0 0 1px rgba(255, 255, 255, 0.04);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #09090b; --surface: #111113; --card: #18181b;
  --fg: #fafafa; --fg-soft: #d4d4d8; --muted: #27272a; --muted-fg: #a1a1aa;
  --border: #27272a; --border-subtle: #1f1f23;
  --primary: #95cdf7; --on-primary: #00344e;
  --primary-container: #004b6f; --on-primary-container: #c9e6ff;
  --info: rgba(149, 205, 247, 0.14); --on-info: #95cdf7;
  --positive: #6edbaa; --negative: #ffb599;
  --pending: #f9bc3e; --pending-container: #5e4200; --on-pending-container: #ffdea8;
  --av-blue: #004b6f;  --on-av-blue: #c9e6ff;
  --av-peach: #71361c; --on-av-peach: #ffdbce;
  --av-green: #00513a; --on-av-green: #bdefd3;
  --av-lilac: #4f378b; --on-av-lilac: #e8ddff;
  --av-sand: #574500;  --on-av-sand: #ffe08b;
  --ring: rgba(149, 205, 247, 0.4);
  --glow: rgba(149, 205, 247, 0.10);
  --device: #000000;
  --shadow-lg: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 24px 48px -12px rgba(0, 0, 0, 0.7);
  --shadow-sm: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

@media (min-width: 768px) { :root { --gutter: 32px; } }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.pos { color: var(--positive); }
.neg { color: var(--negative); }
[hidden] { display: none !important; }
/* Blocks written per language: boot.js sets data-lang on <html> before the first paint. */
:root[data-lang="pt"] body [data-lang]:not([data-lang="pt"]),
:root[data-lang="es"] body [data-lang]:not([data-lang="es"]),
:root:not([data-lang="pt"]):not([data-lang="es"]) body [data-lang]:not([data-lang="en"]) { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: var(--radius); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* The app icon: the blue mark on a white tile, in both themes, as the stores show it. */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.logo-tile { width: 32px; height: 32px; border-radius: 9px; background: #ffffff; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--border); flex: none; }
.logo-tile img { width: 21px; height: 21px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.nav { display: none; gap: 4px; margin-left: 8px; }
.nav a { color: var(--fg-soft); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: var(--radius); }
.nav a:hover, .nav a[aria-current="page"] { background: var(--muted); color: var(--fg); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
@media (min-width: 1000px) { .nav { display: flex; } }
.logo { white-space: nowrap; }
/* On a phone the language menu shows only its globe and the header drops its button: the hero's store buttons are
   right below. */
@media (max-width: 419px) { .site-header .wrap { gap: 12px; } .lang-code { display: none; } .header-end { gap: 2px; } .header-end .header-get { display: none; } }

/* Language menu, as Bible Planner's: a globe in the header opening the three languages, each in its own name. */
.lang-menu, .theme-menu { position: relative; }
.lang-menu summary, .theme-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 10px; border-radius: 999px; color: var(--fg-soft); font-size: 13px; font-weight: 600;
}
.lang-menu summary::-webkit-details-marker, .theme-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover, .lang-menu[open] summary, .theme-menu summary:hover, .theme-menu[open] summary { background: var(--muted); color: var(--fg); }
.lang-menu summary .icon, .theme-menu summary .icon { width: 18px; height: 18px; }
.theme-menu summary { padding: 0 9px; }
/* The theme button shows the theme picked: a sun, a moon or the screen of System. */
.theme-menu summary .icon { display: none; }
:root[data-theme-pref="light"] .theme-menu summary .ic-light,
:root[data-theme-pref="dark"] .theme-menu summary .ic-dark,
:root:not([data-theme-pref="light"]):not([data-theme-pref="dark"]) .theme-menu summary .ic-system { display: block; }
.lang-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 200px; padding: 6px;
  display: grid; gap: 2px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.lang-pop a, .lang-pop button {
  width: 100%; border: 0; background: transparent; cursor: pointer; font-family: inherit; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 8px;
  color: var(--fg); text-decoration: none; font-size: 14px; font-weight: 500;
}
.lang-pop a:hover, .lang-pop button:hover { background: var(--muted); }
.lang-pop button span { display: inline-flex; align-items: center; gap: 10px; }
.lang-pop button .icon { width: 17px; height: 17px; color: var(--muted-fg); }
.lang-pop button[aria-pressed="true"] .icon { color: inherit; }
.lang-pop a[aria-current="true"], .lang-pop button[aria-pressed="true"] { background: var(--info); color: var(--on-info); }
.lang-pop a[aria-current="true"]::after, .lang-pop button[aria-pressed="true"]::after {
  content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 999px;
  font: 600 15px/1 var(--font); letter-spacing: -0.01em; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, var(--fg)); text-decoration: none; }
.btn-outline { background: var(--surface); color: var(--fg); border-color: var(--border); }
.btn-outline:hover { background: var(--muted); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--fg-soft); }
.btn-ghost:hover { background: var(--muted); color: var(--fg); text-decoration: none; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }

/* Store badges (stores.js): the one for the visitor's platform stands out, filled; the others sit on the page's
   surface; a store that doesn't offer the app yet is dashed, with no link. */
.store {
  display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 20px 8px 16px;
  border-radius: 14px; text-decoration: none;
  background: var(--surface); color: var(--fg); box-shadow: inset 0 0 0 1px var(--border);
  transition: background 0.15s, transform 0.15s;
}
.store:hover { text-decoration: none; background: var(--muted); }
.store:active { transform: scale(0.98); }
.store small { display: block; font-size: 11px; line-height: 1.2; color: var(--muted-fg); }
.store strong { display: block; font-size: 16px; line-height: 1.2; letter-spacing: -0.01em; }
.store .icon-fill { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store .icon { width: 24px; height: 24px; color: var(--primary); }
.store.is-primary { background: var(--fg); color: var(--bg); box-shadow: none; }
.store.is-primary:hover { background: color-mix(in srgb, var(--fg) 86%, var(--bg)); }
.store.is-primary small { color: inherit; opacity: 0.8; }
.store.is-primary .icon { color: inherit; }
.store.store-soon { background: transparent; color: var(--fg-soft); box-shadow: none; outline: 1px dashed var(--border); outline-offset: -1px; cursor: default; }
.store.store-soon:hover { background: transparent; }
.store.store-soon:active { transform: none; }

/* On a phone the two stores share a row, the visitor's own first, and the web app sits centered under them. */
@media (max-width: 599px) {
  .hero-cta[data-stores] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
  .hero-cta[data-stores] .store { min-width: 0; gap: 10px; padding: 8px 12px; justify-content: center; }
  .hero-cta[data-stores] .store small { font-size: 10.5px; }
  .hero-cta[data-stores] .store strong { font-size: 15px; white-space: nowrap; }
  .hero-cta[data-stores] .store .icon-fill { width: 22px; height: 22px; }
  .hero-cta[data-stores] .store .icon { width: 22px; height: 22px; }
  .hero-cta[data-stores] .store small { line-height: 1.15; }
  .hero-cta[data-stores] [data-store="web"] { order: 1; grid-column: 1 / -1; justify-self: center; padding: 8px 20px; }
}

/* The header's main button (stores.js): a store, a menu of stores on a computer, or the web app. */
.header-get { display: inline-flex; align-items: center; gap: 8px; }
.header-web { display: none; }
@media (min-width: 640px) { .header-web:not([hidden]) { display: inline-flex; } }
.get-menu { position: relative; }
.get-menu summary { list-style: none; }
.get-menu summary::-webkit-details-marker { display: none; }

/* A store of the other platform asks first. */
.store-dialog {
  width: min(440px, calc(100vw - 32px)); padding: 28px 24px 24px; border: 1px solid var(--border); border-radius: var(--radius-xl);
  background: var(--card); color: var(--fg); box-shadow: var(--shadow-lg);
}
.store-dialog::backdrop { background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px); }
.store-dialog h2 { font-size: 20px; font-weight: 650; padding-right: 32px; }
.store-dialog p { margin-top: 10px; color: var(--fg-soft); font-size: 15.5px; }
.dialog-actions { margin-top: 24px; display: grid; gap: 8px; }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--fg-soft); cursor: pointer; display: grid; place-items: center; }
.dialog-close:hover { background: var(--muted); color: var(--fg); }

a.status { text-decoration: none; }
a.status[href]:hover { text-decoration: underline; }
.status:has(.icon)::before { display: none; }
a.status .icon { width: 15px; height: 15px; }
.hero-note a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.hero-note a:hover { text-decoration: underline; }
.hero-note a .icon { width: 16px; height: 16px; }

/* Group invite note, on /g/<code> */
.invite {
  display: flex; gap: 12px; align-items: flex-start;
  margin: 0 0 28px; padding: 14px 16px; border-radius: var(--radius-card); max-width: 560px;
  background: var(--info); color: var(--on-info);
}
.invite strong { display: block; font-weight: 600; }
.invite p { font-size: 15px; color: var(--fg-soft); }

/* Hero */
.hero { position: relative; padding: 40px 0 64px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -64px 0 auto; height: 720px;
  background:
    radial-gradient(60% 50% at 75% 30%, var(--glow), transparent 70%),
    radial-gradient(40% 40% at 10% 10%, var(--glow), transparent 70%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--fg-soft);
  font-size: 13px; font-weight: 500;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--positive); box-shadow: 0 0 0 3px color-mix(in srgb, var(--positive) 20%, transparent); }
.hero h1 { margin-top: 20px; font-size: clamp(38px, 7.4vw, 68px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; }
.hero h1 .accent { color: var(--primary); }
.hero .lead { margin-top: 20px; font-size: clamp(17px, 2vw, 19px); color: var(--fg-soft); max-width: 34em; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted-fg); display: flex; align-items: center; gap: 8px; }
.hero-note .icon { width: 16px; height: 16px; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; }
}

/* The phone mockup in the hero: a group, drawn with the app's tokens */
.showcase { position: relative; display: grid; place-items: center; padding: 16px 0 24px; }
.phone {
  width: min(320px, 82vw); aspect-ratio: 9 / 18.6; border-radius: 46px; padding: 10px;
  background: var(--device); box-shadow: var(--shadow-lg);
}
.screen {
  position: relative; height: 100%; border-radius: 37px; overflow: hidden;
  background: var(--bg); display: flex; flex-direction: column; font-size: 13px;
}
.screen-status, .screen-head, .balance { flex: none; }
.screen-status { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 6px; font-size: 12px; font-weight: 600; }
.screen-status .island { width: 84px; height: 24px; border-radius: 999px; background: var(--device); }
.screen-status > span:first-child { min-width: 34px; font-variant-numeric: tabular-nums; }
/* The battery, about three quarters full, with its cap. */
.screen-status .battery { position: relative; display: block; width: 22px; height: 11px; padding: 1.5px; margin-right: 3px; border: 1.5px solid color-mix(in srgb, currentColor 45%, transparent); border-radius: 3.5px; }
.screen-status .battery::after { content: ""; position: absolute; top: 2.5px; right: -4px; width: 2px; height: 3.5px; border-radius: 0 1px 1px 0; background: color-mix(in srgb, currentColor 45%, transparent); }
.screen-status .battery i { display: block; width: 72%; height: 100%; border-radius: 1.5px; background: currentColor; }
.screen-head { padding: 8px 18px 12px; display: flex; align-items: center; gap: 10px; }
.screen-head .back { width: 30px; height: 30px; border-radius: 50%; background: var(--muted); display: grid; place-items: center; }
.screen-head .back .icon { width: 16px; height: 16px; }
.screen-head h3 { font-size: 17px; letter-spacing: -0.02em; }
.screen-head small { display: block; color: var(--muted-fg); font-size: 11.5px; }
.balance {
  margin: 0 14px; padding: 14px 16px; border-radius: 18px;
  background: var(--primary-container); color: var(--on-primary-container);
}
.balance small { font-size: 11.5px; opacity: 0.85; }
.balance strong { display: block; margin-top: 2px; font-size: 26px; letter-spacing: -0.03em; line-height: 1.15; }
.balance .faces { display: flex; margin-top: 10px; }
.balance .faces .av { width: 28px; height: 28px; margin-right: -7px; box-shadow: 0 0 0 2px var(--primary-container); }
.balance .faces .face { position: relative; margin-right: -7px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; transition: transform 0.15s; }
.balance .faces .face .av { margin: 0; }
.balance .faces .face:hover, .balance .faces .face:focus-visible { transform: translateY(-3px); z-index: 1; }
.balance .faces .face:focus-visible { outline: 2px solid var(--on-primary-container); outline-offset: 2px; }
.tabs { display: flex; gap: 4px; margin: 14px 14px 6px; padding: 3px; border-radius: 10px; background: var(--muted); flex: none; }
.tabs button {
  flex: 1; min-width: 0; padding: 5px 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
  font: 500 11.5px/1.4 var(--font); color: var(--muted-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.tabs button:hover { color: var(--fg); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sm); }
.tabs button:focus-visible { outline-offset: 0; }
/* Under the tabs the screen scrolls, with room at the bottom for the floating "Split a bill". */
.screen-body { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 76px; scrollbar-width: none; }
.screen-body::-webkit-scrollbar { display: none; }
.screen-body.swap { animation: pv-in 0.26s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes pv-in { from { opacity: 0; transform: translateY(6px); } }
.list li.fresh { animation: pv-fresh 1.6s ease-out; }
@keyframes pv-fresh { 0% { background: var(--primary-container); transform: translateY(-6px); opacity: 0; } 18% { transform: none; opacity: 1; } 40% { background: var(--primary-container); } }
.list .zero, .pv-scope .zero { color: var(--muted-fg); }
.pv-label { margin: 12px 16px 6px; font-size: 11px; font-weight: 500; color: var(--muted-fg); }
.list.people .row { justify-content: space-between; }
.list.people .who { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.list.people .who b { font-weight: 600; }
.list .v .zero { color: var(--muted-fg); }
.moves { list-style: none; margin: 0; padding: 0 14px; display: grid; gap: 6px; }
.moves li, .moves .move { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.moves .move { width: 100%; padding: 6px 8px; margin: 0 -8px; width: calc(100% + 16px); border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.moves .move:hover { background: var(--muted); }
.moves .av { width: 22px; height: 22px; font-size: 10px; }
.moves .arrow { color: var(--fg-soft); }
.moves b { margin-left: auto; font-weight: 600; }
.pv-total { margin: 10px 14px 8px; padding: 12px 14px; border-radius: 14px; background: var(--surface); }
.pv-total small { display: block; color: var(--muted-fg); font-size: 11px; }
.pv-total strong { font-size: 20px; letter-spacing: -0.02em; }
.list.stats li { align-items: center; }
.bar-t { flex: 1; min-width: 0; display: grid; gap: 6px; }
.bar-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.bar-row b { font-weight: 600; }
.bar-row .num { color: var(--fg-soft); font-size: 11px; }
.bar { height: 6px; border-radius: 999px; background: var(--muted); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--primary); transform-origin: left; animation: pv-grow 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.bar i.o1 { opacity: 0.7; } .bar i.o2 { opacity: 0.45; }
@keyframes pv-grow { from { transform: scaleX(0); } }
.list { list-style: none; margin: 0; padding: 4px 14px; display: grid; gap: 2px; }
.list li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: var(--surface); }
.list li:first-child { border-radius: 14px 14px 4px 4px; }
.list li:last-child { border-radius: 4px 4px 14px 14px; }
.cat { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--muted); color: var(--fg-soft); flex: none; }
.cat .icon { width: 16px; height: 16px; }
.list .t { flex: 1; min-width: 0; }
.list .t b { display: block; font-weight: 600; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .t small { color: var(--muted-fg); font-size: 11px; }
.list .v { text-align: right; font-size: 12.5px; font-weight: 600; }
.list .v small { display: block; font-weight: 500; font-size: 10.5px; }
.owes { margin: 12px 14px 0; display: grid; gap: 6px; }
.owes small { color: var(--muted-fg); font-size: 11px; font-weight: 500; padding-left: 2px; }
.owes > span, .owes .owe-row { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; }
.owes .owe-row { margin: 0 -8px; padding: 5px 8px; border: 0; border-radius: 10px; background: transparent; color: inherit; font-family: inherit; text-align: left; cursor: pointer; }
.owes .owe-row:hover { background: var(--muted); }
.owes .av { width: 22px; height: 22px; font-size: 10px; }
.owes b { margin-left: auto; font-weight: 600; }
.screen-cta {
  position: absolute; right: 14px; bottom: 22px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 16px; border: 0; border-radius: 16px; background: var(--primary); color: var(--on-primary); cursor: pointer;
  font: 600 13px/1.2 var(--font); box-shadow: 0 6px 16px -6px rgba(0, 0, 0, 0.45); transition: transform 0.15s, opacity 0.2s;
}
.screen-cta:hover { transform: translateY(-1px); }
.screen-cta:active { transform: scale(0.97); }
.screen-cta .icon-fill { width: 18px; height: 18px; fill: currentColor; flex: none; }
.screen.sheet-open .screen-cta { opacity: 0; pointer-events: none; }

/* What the preview's tabs list opens a sheet: each row is a button. */
.list li:has(> .row) { padding: 0; min-width: 0; }
.list li > .row { min-width: 0; }
.list .row {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: inherit;
  background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background 0.15s;
}
.list .row:hover { background: color-mix(in srgb, var(--muted) 70%, transparent); }
.list .row:focus-visible, .owes .owe-row:focus-visible, .moves .move:focus-visible { outline-offset: -2px; }
.chev { width: 13px !important; height: 13px !important; transform: rotate(180deg); color: var(--muted-fg); flex: none; }
.owes .owe-row b, .moves .move b { margin-left: auto; }
.cat.pay { background: color-mix(in srgb, var(--positive) 16%, transparent); color: var(--positive); }

/* "Split a bill" in the preview: a sheet rising over the screen. */
.pv-scrim { position: absolute; inset: 0; z-index: 3; background: rgba(0, 0, 0, 0.4); opacity: 0; transition: opacity 0.24s; }
.pv-scrim.show { opacity: 1; }
.pv-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; max-height: 88%; overflow-y: auto; scrollbar-width: none;
  padding: 8px 16px 20px; border-radius: 24px 24px 0 0; background: var(--card); color: var(--fg);
  transform: translateY(100%); transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pv-sheet.show { transform: none; }
.pv-sheet .grabber { display: block; width: 36px; height: 4px; margin: 0 auto 8px; border-radius: 999px; background: var(--border); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-head h4 { margin: 0; font-size: 15px; letter-spacing: -0.01em; }
.sheet-x { width: 28px; height: 28px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--muted); color: var(--fg-soft); cursor: pointer; }
.sheet-x .icon { width: 14px; height: 14px; }
.pv-sheet .field { margin-top: 12px; }
.pv-sheet .field > small { display: block; margin-bottom: 6px; color: var(--muted-fg); font-size: 11px; font-weight: 500; }
.pv-sheet .desc { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.pv-sheet .desc .cat { width: 28px; height: 28px; border-radius: 8px; }
.pv-sheet .amount { font-size: 24px; letter-spacing: -0.03em; }
.picks { display: flex; flex-wrap: wrap; gap: 6px; }
.pick {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 3px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: transparent; color: var(--fg-soft); font: 500 11.5px/1.2 var(--font);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pick .av { width: 20px; height: 20px; font-size: 9.5px; }
.pick[aria-pressed="true"] { background: var(--primary-container); border-color: transparent; color: var(--on-primary-container); }
.pv-sheet .each { display: block; margin-top: 8px; font-size: 11.5px; color: var(--fg-soft); }
.sheet-actions { margin-top: 16px; display: flex; gap: 8px; justify-content: flex-end; }
.sheet-actions button { border: 0; border-radius: 999px; cursor: pointer; font: 600 12.5px/1 var(--font); padding: 10px 14px; display: inline-flex; align-items: center; gap: 6px; }
.sheet-actions .ghost { background: transparent; color: var(--fg-soft); }
.sheet-actions .ghost:hover { background: var(--muted); }
.sheet-actions .save { background: var(--primary); color: var(--on-primary); }
.sheet-actions .icon { width: 14px; height: 14px; }
.sheet-head { gap: 8px; }
.sheet-head h4 { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-head .cat { width: 28px; height: 28px; border-radius: 8px; }
.sheet-head .av { width: 28px; height: 28px; font-size: 12px; }
.pv-sheet .each .av { width: 18px; height: 18px; font-size: 9px; display: inline-grid; vertical-align: -4px; margin-right: 2px; }
.shares { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.shares li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px; background: var(--muted); font-size: 12px; }
.shares li .av { width: 20px; height: 20px; font-size: 9.5px; }
.shares li b { margin-left: auto; font-weight: 600; }
.shares li.me { background: var(--primary-container); color: var(--on-primary-container); }
.pv-sheet > .shares { margin-top: 12px; }
.field.mine { display: flex; align-items: baseline; justify-content: space-between; }
.field.mine > small { margin: 0; }
.field.mine b { font-size: 15px; }
.field.center { text-align: center; }
.payflow { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px !important; }
.payflow .av { width: 40px; height: 40px; font-size: 15px; }
.arrow-line { position: relative; width: 56px; height: 2px; border-radius: 2px; background: var(--border); overflow: hidden; }
.arrow-line::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--positive); animation: pv-flow 1.2s ease-in-out infinite; }
@keyframes pv-flow { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.sheet-list { padding: 0; margin-top: 10px; }
.sheet-list li { background: var(--muted); }
.sheet-actions .danger { background: transparent; color: var(--negative); margin-right: auto; padding-left: 8px; padding-right: 10px; }
.sheet-actions .danger:hover { background: color-mix(in srgb, var(--negative) 12%, transparent); }
.float-sync.bump { animation: pv-bump 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), bob 6s ease-in-out -3s infinite; }
.float-pay.bump { animation: pv-bump 0.7s cubic-bezier(0.2, 0.8, 0.2, 1), bob 6s ease-in-out infinite; }
@keyframes pv-bump { 30% { transform: scale(1.08); } }
.av {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 11px; font-weight: 600; overflow: hidden;
}
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.blue { background: var(--av-blue); color: var(--on-av-blue); }
.av.peach { background: var(--av-peach); color: var(--on-av-peach); }
.av.green { background: var(--av-green); color: var(--on-av-green); }
.av.lilac { background: var(--av-lilac); color: var(--on-av-lilac); }
.av.sand { background: var(--av-sand); color: var(--on-av-sand); }

.float {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 16px; font-size: 13px; line-height: 1.35;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  max-width: 240px;
}
.float small { display: block; color: var(--muted-fg); font-size: 12px; }
.float b { font-weight: 600; }
.float-pay { right: max(0px, calc(50% - 290px)); top: 18%; animation: bob 6s ease-in-out infinite; }
.float-sync { left: max(0px, calc(50% - 300px)); bottom: 6%; animation: bob 6s ease-in-out -3s infinite; }
.float .badge-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float .badge-ic .icon { width: 17px; height: 17px; }
.float-sync .badge-ic { background: var(--pending-container); color: var(--on-pending-container); }
.float-sync .pend { color: var(--pending); font-weight: 600; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 520px) {
  /* On a phone the cards sit on the device's edges, off what the preview shows. */
  .showcase { padding: 40px 0 44px; }
  .float { font-size: 12px; max-width: 200px; padding: 8px 12px 8px 8px; }
  .float-pay { right: 0; top: 4px; }
  .float-sync { left: 0; bottom: 6px; }
}
/* While the preview's sheet is open, the cards step aside. */
.float { transition: opacity 0.2s; }
.showcase:has(.sheet-open) .float { opacity: 0; pointer-events: none; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border-subtle); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.kicker { font-size: 13px; font-weight: 600; color: var(--primary); letter-spacing: 0.02em; text-transform: uppercase; }
.section-head h2 { margin-top: 10px; font-size: clamp(28px, 4.4vw, 42px); font-weight: 700; }
.section-head p { margin-top: 14px; font-size: 17px; color: var(--fg-soft); }
.center { text-align: center; margin-inline: auto; }
@media (min-width: 960px) { .section { padding: 104px 0; } }

/* Feature bento */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
.tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  padding: 24px; border-radius: var(--radius-xl); background: var(--card); border: 1px solid var(--border);
}
.tile h3 { font-size: 19px; font-weight: 600; }
.tile p { color: var(--fg-soft); font-size: 15px; }
.tile .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--info); color: var(--on-info); margin-bottom: 6px; }
.tile-visual { margin-top: auto; padding-top: 16px; }
@media (min-width: 680px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile.wide { grid-column: span 2; } }
@media (min-width: 1040px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile { grid-column: span 2; }
  .tile.wide { grid-column: span 3; }
  .tile.hero-tile { grid-column: span 4; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: var(--muted); color: var(--fg-soft); border: 1px solid transparent; }
.chip.on { background: var(--primary-container); color: var(--on-primary-container); }
.chip .icon { width: 14px; height: 14px; }

.queue { display: grid; gap: 8px; }
.queue-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border-subtle); font-size: 14px; }
.queue-row .t { flex: 1; min-width: 0; }
.queue-row .t small { display: block; color: var(--muted-fg); font-size: 12.5px; }
.pill-pending { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--pending-container); color: var(--on-pending-container); white-space: nowrap; }
.pill-pending::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.receipt { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px dashed var(--border); font-size: 13.5px; }
.receipt div { display: flex; justify-content: space-between; gap: 12px; }
.receipt .who { display: flex; gap: 2px; }
.receipt .who .av { width: 20px; height: 20px; font-size: 9.5px; }
.receipt hr { border: 0; border-top: 1px dashed var(--border); margin: 4px 0; width: 100%; }

.code-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--border-subtle); }
.code-card .mono { font-size: 15px; letter-spacing: 0.04em; }
.code-card small { display: block; color: var(--muted-fg); font-size: 12.5px; }

.bars-chart { display: grid; gap: 8px; }
.bars-chart div { display: grid; grid-template-columns: 88px 1fr auto; align-items: center; gap: 10px; font-size: 13px; }
.bars-chart span[style] { height: 8px; border-radius: 999px; background: var(--primary); }
.bars-chart span.b2 { opacity: 0.7; } .bars-chart span.b3 { opacity: 0.45; }
.bars-chart b { font-weight: 600; text-align: right; }

/* Steps */
.steps { display: grid; gap: 16px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 24px; border-radius: var(--radius-xl); background: var(--card); border: 1px solid var(--border); }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: var(--on-primary); font-weight: 700; margin-bottom: 16px;
}
.steps h3 { font-size: 18px; font-weight: 600; }
.steps p { margin-top: 6px; color: var(--fg-soft); font-size: 15px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* Platforms */
.platforms { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.platform { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--border); }
.platform .icon { width: 26px; height: 26px; color: var(--primary); }
.platform h3 { font-size: 17px; font-weight: 600; margin-top: 6px; }
.platform p { color: var(--fg-soft); font-size: 14px; }
.status { margin-top: auto; padding-top: 10px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.status.live { color: var(--positive); }
.status.soon { color: var(--muted-fg); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Privacy band */
.privacy-band { display: grid; gap: 32px; align-items: center; padding: 32px; border-radius: 28px; background: var(--primary-container); color: var(--on-primary-container); }
.privacy-band h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; }
.privacy-band p { margin-top: 12px; font-size: 16px; opacity: 0.9; }
.privacy-band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.privacy-band li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.privacy-band li .icon { margin-top: 2px; }
.privacy-band a { color: inherit; font-weight: 600; }
@media (min-width: 900px) { .privacy-band { grid-template-columns: 1fr 1fr; padding: 56px; gap: 56px; } }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 8px; }
.faq details { border-radius: var(--radius-card); background: var(--card); border: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform 0.2s; color: var(--muted-fg); }
.faq details[open]:not(.closing) summary .icon { transform: rotate(180deg); }
.faq summary .icon { transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1); }
.faq-body { overflow: hidden; }
.faq details { transition: border-color 0.2s, box-shadow 0.2s; }
.faq details[open]:not(.closing) { border-color: color-mix(in srgb, var(--primary) 35%, var(--border)); box-shadow: var(--shadow-sm); }
.faq-body p { padding: 0 20px 20px; color: var(--fg-soft); font-size: 15px; }

/* Final CTA */
.cta-final { text-align: center; }
.cta-final .logo-tile { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 24px; }
.cta-final .logo-tile img { width: 46px; height: 46px; }
.cta-final h2 { font-size: clamp(30px, 5vw, 48px); font-weight: 700; }
.cta-final p { margin-top: 14px; color: var(--fg-soft); font-size: 17px; }
.cta-final .hero-cta { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 48px; font-size: 14px; color: var(--muted-fg); }
.footer-grid { display: grid; gap: 28px; }
.footer-grid p { margin-top: 10px; max-width: 30em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { color: var(--fg-soft); text-decoration: none; }
.footer-links a:hover { color: var(--fg); text-decoration: underline; }
.footer-prefs { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-bottom { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-subtle); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--muted); }
.lang-switch a, .lang-switch button { border: 0; background: transparent; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px; color: var(--fg-soft); text-decoration: none; font-size: 13px; font-weight: 500; }
.lang-switch button .icon { width: 14px; height: 14px; }
.lang-switch a[aria-current="true"], .lang-switch button[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sm); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } .footer-links { justify-content: flex-end; } }

/* Legal pages */
.legal-hero { padding: 48px 0 32px; border-bottom: 1px solid var(--border); }
.legal-hero .crumbs { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted-fg); text-decoration: none; font-weight: 500; }
.legal-hero .crumbs:hover { color: var(--fg); }
.legal-hero .crumbs .icon { width: 16px; height: 16px; }
.legal-hero h1 { margin-top: 18px; font-size: clamp(34px, 5.5vw, 52px); font-weight: 700; letter-spacing: -0.035em; }
.legal-hero .meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted-fg); }
.legal-hero .meta span { display: inline-flex; align-items: center; gap: 6px; }
.legal-hero .meta .icon { width: 16px; height: 16px; }
.legal-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 32px; padding-bottom: 96px; }
@media (min-width: 1000px) { .legal-layout { grid-template-columns: 248px minmax(0, 1fr); gap: 64px; padding-top: 48px; } }

.toc { font-size: 14px; }
.toc details { border-radius: var(--radius-card); border: 1px solid var(--border); background: var(--card); }
.toc summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; font-weight: 600; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { list-style: none; margin: 0; padding: 0 8px 10px; display: grid; gap: 1px; counter-reset: toc; }
.toc li a { display: flex; gap: 10px; padding: 7px 8px; border-radius: 6px; color: var(--fg-soft); text-decoration: none; line-height: 1.35; }
.toc li a::before { counter-increment: toc; content: counter(toc); color: var(--muted-fg); font-variant-numeric: tabular-nums; min-width: 1.2em; }
.toc li a:hover { background: var(--muted); color: var(--fg); }
.toc li a.active { color: var(--primary); background: var(--info); }
.toc li a.active::before { color: inherit; }
@media (min-width: 1000px) {
  .toc { position: sticky; top: 88px; align-self: start; max-height: calc(100dvh - 112px); overflow: auto; }
  .toc details { border: 0; background: transparent; }
  .toc summary { padding: 0 8px 12px; pointer-events: none; color: var(--muted-fg); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
  .toc summary .icon { display: none; }
  .toc ol { padding: 0; }
}

.prose { max-width: 70ch; font-size: 16.5px; line-height: 1.7; color: var(--fg-soft); }
.prose > section { padding-top: 8px; }
.prose > section + section { margin-top: 40px; padding-top: 40px; border-top: 1px solid var(--border-subtle); }
.prose h2 { font-size: 24px; font-weight: 650; color: var(--fg); margin-bottom: 14px; display: flex; gap: 12px; align-items: baseline; }
.prose h2 .n { color: var(--muted-fg); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; min-width: 1.6em; }
.prose h3 { font-size: 17.5px; font-weight: 600; color: var(--fg); margin: 24px 0 8px; letter-spacing: -0.015em; }
.prose p + p, .prose p + ul, .prose ul + p, .prose table + p { margin-top: 14px; }
.prose ul { margin: 12px 0 0; padding-left: 1.2em; }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--muted-fg); }
.prose strong { color: var(--fg); font-weight: 600; }
.prose .table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-card); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border-subtle); }
.prose th { background: var(--muted); color: var(--fg); font-weight: 600; font-size: 13.5px; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--fg); font-weight: 500; min-width: 130px; }

@media (max-width: 640px) {
  .prose .table-wrap { border: 0; border-radius: 0; overflow: visible; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; }
  .prose thead { display: none; }
  .prose tr { padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-card); background: var(--card); }
  .prose tr + tr { margin-top: 8px; }
  .prose td { padding: 0; border: 0; }
  .prose td + td { margin-top: 8px; }
  .prose td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; color: var(--muted-fg); font-size: 12.5px; font-weight: 500; }
  .prose td:first-child { font-size: 15.5px; font-weight: 600; }
}
.summary-card { padding: 24px; border-radius: var(--radius-xl); background: var(--info); color: var(--on-info); margin-bottom: 40px; }
.summary-card h2 { font-size: 17px; margin: 0 0 14px; color: inherit; display: flex; align-items: center; gap: 10px; }
.summary-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.summary-card li { display: flex; gap: 10px; color: var(--fg); font-size: 15.5px; line-height: 1.5; }
.summary-card li + li { margin-top: 0; }
.summary-card li .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--on-info); }

.callout { margin-top: 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); font-size: 15px; }
.callout strong { display: block; margin-bottom: 2px; }

/* An open point the owner still has to fill in before publishing. Loud on purpose. */
.todo { background: var(--pending-container); color: var(--on-pending-container); border-radius: 4px; padding: 0 4px; font-weight: 600; font-style: normal; }

.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card); color: var(--fg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.to-top.show { opacity: 1; pointer-events: auto; }

@media print {
  .site-header, .toc, .site-footer, .to-top { display: none !important; }
  body { background: #fff; color: #000; }
  .legal-layout { display: block; padding: 0; }
  .prose { max-width: none; color: #000; }
}
