/* VioLedger site styles. System fonts only, no external files. */
:root {
  --navy: #0d1b3d;
  --blue: #1468ff;
  --blue-strong: #0a4fd1;
  --cyan: #00c2ff;
  --orange: #ff6a00;
  --green: #12805c;
  --bg: #f7f9fe;
  --surface: #ffffff;
  --surface-2: #edf2fc;
  --text: #0d1b3d;
  --muted: #475569;
  --border: #d6dfeb;
  --link: #0a4fd1;
  --on-blue: #ffffff;
  --hero-from: #0d1b3d;
  --hero-to: #14408f;
  --shadow: 0 10px 30px rgba(13, 27, 61, 0.12);
  --radius: 24px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #111b2e;
    --surface-2: #16233a;
    --text: #f5f7fa;
    --muted: #b8c4d6;
    --border: #2a3a55;
    --link: #7fb0ff;
    --blue: #6ea0ff;
    --on-blue: #0b1220;
    --green: #4fd1a1;
    --hero-from: #08101f;
    --hero-to: #11306b;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Malayalam", "Noto Sans Devanagari", sans-serif;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 6vw, 48px); }
h2 { font-size: clamp(22px, 4vw, 30px); }
h3 { font-size: 18px; }
p { margin: 0 0 14px; color: var(--muted); }
a { color: var(--link); }
img { max-width: 100%; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.skip {
  position: absolute; left: -999px; top: 8px; background: var(--surface);
  padding: 8px 12px; border-radius: 8px; z-index: 10;
}
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.logo img { width: 36px; height: 36px; border-radius: 10px; }
.site-header nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: 15px; }
.site-header nav a:hover { background: var(--surface-2); color: var(--text); }
.site-header nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; overflow: hidden; }
.hero .wrap { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 56px; align-items: center; }
.hero p { color: #d6e2f7; font-size: 18px; max-width: 34em; }
.hero .eyebrow { display: inline-block; background: rgba(255,255,255,.14); color: #fff; font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero h1 .accent { color: var(--cyan); }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: #fff; }
.badge svg { width: 18px; height: 18px; }

/* Phone mockup */
.phone {
  width: 280px; margin: 0 auto; padding: 12px; border-radius: 36px;
  background: #0a1224; border: 2px solid rgba(255,255,255,.18); box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.phone .screen { background: #f5f7fa; border-radius: 26px; padding: 16px 14px 18px; color: #0d1b3d; min-height: 420px; }
.phone .screen p { color: #475569; margin: 0; }
.phone .top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.phone .sync { color: #12805c; font-weight: 600; font-size: 12px; }
.phone .balance { background: linear-gradient(135deg, #1468ff, #0a4fd1); color: #fff; border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.phone .balance small { opacity: .85; display: block; font-size: 12px; }
.phone .balance strong { font-size: 26px; display: block; }
.phone .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid #e2e8f0; font-size: 14px; }
.phone .row:last-child { border-bottom: 0; }
.phone .row span small { display: block; color: #64748b; font-size: 12px; }
.phone .out { color: #b3261e; font-weight: 700; white-space: nowrap; }
.phone .in { color: #12805c; font-weight: 700; white-space: nowrap; }
.phone .owe { margin-top: 10px; background: #fff3e8; border-radius: 12px; padding: 10px 12px; font-size: 13px; color: #7a3300; }
.caption { text-align: center; font-size: 13px; color: #b9c8e4; margin-top: 12px; }

/* Sections */
section.block { padding: 56px 0; }
section.block.alt { background: var(--surface-2); }
.lead { font-size: 18px; max-width: 38em; }
.grid { display: grid; gap: 16px; margin-top: 28px; }
.feature, .card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.feature .icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 12px;
}
.feature .icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature p, .card p:last-child { margin-bottom: 0; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 16px; }
.steps li {
  counter-increment: step; position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 18px 18px 64px; color: var(--muted);
}
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue); color: var(--on-blue); font-weight: 700; display: grid; place-items: center;
}
.steps li strong { display: block; color: var(--text); margin-bottom: 2px; }
.trust { max-width: 720px; display: grid; gap: 14px; margin-top: 24px; }
.trust div { display: flex; gap: 12px; align-items: flex-start; }
.trust svg { flex: none; width: 24px; height: 24px; margin-top: 2px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust p { margin: 0; }
.trust strong { color: var(--text); }

/* Buttons and notices */
.actions { display: grid; gap: 12px; margin: 22px 0; }
.button {
  display: block; min-height: 50px; padding: 13px 18px; border-radius: 14px; border: 1.5px solid var(--blue);
  background: transparent; color: var(--link); font: inherit; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
}
.button.primary { background: var(--blue); border-color: var(--blue); color: var(--on-blue); }
.button.primary:hover { background: var(--blue-strong); color: #fff; }
.notice { border-left: 4px solid var(--orange); padding: 10px 14px; background: var(--surface); border-radius: 0 12px 12px 0; color: var(--muted); }

/* Language switch */
.langs { display: flex; gap: 8px; margin: 0 0 20px; flex-wrap: wrap; }
.langs button {
  min-height: 40px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; cursor: pointer;
}
.langs button[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: var(--on-blue); font-weight: 600; }

/* Invitation page */
.invite-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 24px 20px; box-shadow: var(--shadow); margin-top: 24px; }
.avatars { display: flex; justify-content: center; align-items: center; margin-bottom: 16px; }
.avatars span {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 22px;
  color: #fff; border: 3px solid var(--surface);
}
.avatars span:nth-child(1) { background: var(--blue-strong); z-index: 2; }
.avatars span:nth-child(2) { background: var(--orange); margin-left: -14px; z-index: 1; }
.invite-card h1 { font-size: clamp(24px, 6vw, 32px); text-align: center; }
.invite-card > p { text-align: center; }
.invite-card .steps { margin-top: 8px; }
.invite-card .steps li { padding: 14px 14px 14px 58px; }
.invite-card .steps li::before { top: 12px; }
.invite-card h2 { font-size: 18px; margin-top: 24px; }

/* Legal and plain pages */
.channel-badge { width: fit-content; max-width: 100%; margin: 12px auto; padding: 6px 14px; border-radius: 999px; background: var(--surface-2); font-weight: 600; }
.invite-code { width: 100%; box-sizing: border-box; margin: 8px 0 12px; padding: 14px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); font: inherit; font-size: 14px; }
#copy { width: 100%; }
#copy-status { min-height: 1.5em; font-size: 14px; color: var(--muted); }

/* Legal and plain pages */
.prose { padding-top: 32px; padding-bottom: 56px; }
.prose h1 { font-size: clamp(28px, 5vw, 38px); }
.prose h2 { margin-top: 32px; font-size: 22px; }
.prose li { color: var(--muted); margin-bottom: 6px; }
.prose .meta { color: var(--muted); font-size: 14px; }
.draft { border: 1.5px dashed var(--orange); background: var(--surface); border-radius: 12px; padding: 12px 14px; margin: 16px 0; color: var(--text); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 12px; }
.site-footer nav { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.site-footer p { margin: 0; }

[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* Enquiry form */
.enquiry label { display: block; margin: 14px 0 6px; font-weight: 600; color: var(--text); }
.enquiry label:first-child { margin-top: 0; }
.enquiry input, .enquiry textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit;
}
.enquiry textarea { resize: vertical; min-height: 120px; }
.enquiry .button { width: 100%; margin-top: 18px; }
.enquiry .button:disabled { opacity: 0.6; cursor: wait; }
.enquiry .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 12px 0 0; min-height: 1.4em; }
.form-status.ok { color: var(--green); }
.form-status.error { color: #b42318; }
@media (prefers-color-scheme: dark) { .form-status.error { color: #ff8a80; } }

@media (max-width: 560px) {
  .site-header nav a[href="/#features"], .site-header nav a[href="/#how"] { display: none; }
}
@media (min-width: 720px) {
  .hero .wrap { grid-template-columns: 1.2fr 1fr; padding-top: 72px; padding-bottom: 80px; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.two { grid-template-columns: repeat(2, 1fr); }
  .steps.row { grid-template-columns: repeat(3, 1fr); }
  .steps.row li { padding: 64px 18px 18px; }
  .steps.row li::before { left: 18px; top: 18px; }
  .actions.pair { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ==========================================================================
   Shared page parts and UI illustrations (features, pricing, support pages).
   Everything below is drawn with HTML, CSS and inline SVG: no images, no inline styles.
   Reuse the .ui-* classes anywhere. Bar widths use the .w-0 to .w-100 classes at the end.
   ========================================================================== */
:root {
  --ui-pos: #12805c;
  --ui-neg: #b3261e;
  --ui-warn: #a64b00;
  --ui-warn-bg: #fff3e8;
  --ui-neg-bg: #fdecea;
  --ui-track: #e2e8f0;
  --ui-grid: #d6dfeb;
  --ui-c1: #1468ff;
  --ui-c2: #12805c;
  --ui-c3: #b45309;
  --ui-c4: #7c3aed;
  --ui-c5: #0e7490;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ui-pos: #4fd1a1;
    --ui-neg: #ff8a80;
    --ui-warn: #ffb784;
    --ui-warn-bg: #3a2415;
    --ui-neg-bg: #3b1a1a;
    --ui-track: #26364f;
    --ui-grid: #2a3a55;
    --ui-c1: #6ea0ff;
    --ui-c2: #4fd1a1;
    --ui-c3: #f0a35e;
    --ui-c4: #b69cff;
    --ui-c5: #5fd3e8;
  }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Page header and in-page contents */
.page-head { background: var(--surface-2); border-bottom: 1px solid var(--border); padding: 40px 0 28px; }
.page-head h1 { margin-bottom: 10px; }
.page-head .lead { margin-bottom: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.toc a {
  display: inline-block; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); text-decoration: none; font-size: 14px;
}
.toc a:hover { border-color: var(--blue); }
.section-intro { max-width: 40em; }
section.block[id] { scroll-margin-top: 8px; }

/* One feature = text above, illustration below */
.ui-grid { display: grid; gap: 28px 24px; margin-top: 28px; }
.ui-item { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ui-item h3 { margin-bottom: 4px; }
.ui-item p { margin-bottom: 0; }
.ui-figure { margin: 0; min-width: 0; }
.ui-figure figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* The "screen" that holds an illustration */
.ui-screen {
  background: var(--bg); border: 1px solid var(--border); border-radius: 22px; padding: 14px;
  box-shadow: var(--shadow); color: var(--text); width: 100%; max-width: 440px;
}
.ui-screen.wide { max-width: none; }
.ui-screen p { color: var(--muted); }
.ui-bar-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.ui-bar-title .ui-sub { font-weight: 400; }

/* Cards inside a screen */
.ui-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; color: var(--text); }
.ui-card:last-child { margin-bottom: 0; }
.ui-card-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.ui-title { font-size: 14px; font-weight: 700; margin: 0; color: var(--text); }
.ui-sub { font-size: 12px; color: var(--muted); }
.ui-big { font-size: 26px; font-weight: 700; line-height: 1.2; color: var(--text); }
.ui-pos { color: var(--ui-pos); }
.ui-neg { color: var(--ui-neg); }
.ui-warn-text { color: var(--ui-warn); }
.ui-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ui-hero-card { background: linear-gradient(135deg, #1468ff, #0a4fd1); color: #fff; border: 0; }
.ui-hero-card .ui-sub, .ui-hero-card .ui-big, .ui-hero-card .ui-title { color: #fff; }
.ui-hero-card .ui-sub { opacity: .9; }

/* Drag handle for rearranged cards */
.ui-handle { flex: none; width: 18px; height: 18px; color: var(--muted); }
.ui-handle svg { width: 100%; height: 100%; fill: currentColor; }
.ui-card.is-lifted { transform: rotate(-1.2deg); box-shadow: var(--shadow); border-color: var(--blue); }
.ui-drop-slot { border: 2px dashed var(--blue); border-radius: 14px; height: 38px; margin-bottom: 10px; display: grid; place-items: center; font-size: 12px; color: var(--link); }

/* Charts (inline SVG) */
.ui-chart { display: block; width: 100%; height: auto; }
.ui-chart text { fill: var(--muted); font-size: 10px; font-family: inherit; }
.ui-chart .axis { stroke: var(--ui-grid); stroke-width: 1; }
.ui-chart .line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ui-chart .dot { stroke: var(--surface); stroke-width: 2; }
.ui-chart .center-label { fill: var(--text); font-size: 6px; font-weight: 700; text-anchor: middle; }
.ui-chart .center-sub { font-size: 3.4px; text-anchor: middle; }
.ui-chart .ring { fill: none; stroke-width: 6; }
.s1 { stroke: var(--ui-c1); } .s2 { stroke: var(--ui-c2); } .s3 { stroke: var(--ui-c3); } .s4 { stroke: var(--ui-c4); } .s5 { stroke: var(--ui-c5); }
.f1 { fill: var(--ui-c1); } .f2 { fill: var(--ui-c2); } .f3 { fill: var(--ui-c3); } .f4 { fill: var(--ui-c4); } .f5 { fill: var(--ui-c5); }
.ui-chart .area { fill: var(--ui-c1); fill-opacity: .14; stroke: none; }
.ui-donut-row { display: grid; grid-template-columns: minmax(110px, 150px) 1fr; gap: 14px; align-items: center; }
.ui-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--text); }
.ui-donut-row .ui-legend { display: grid; gap: 6px; }
.ui-legend li { display: flex; align-items: center; gap: 8px; margin: 0; }
.ui-legend .sw { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.ui-legend .val { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; padding-left: 8px; }
.b1 { background: var(--ui-c1); } .b2 { background: var(--ui-c2); } .b3 { background: var(--ui-c3); } .b4 { background: var(--ui-c4); } .b5 { background: var(--ui-c5); }

/* Meters (progress bars). Width comes from a .w-NN class. */
.ui-meter { height: 8px; border-radius: 999px; background: var(--ui-track); overflow: hidden; margin: 8px 0; }
.ui-meter > span { display: block; height: 100%; border-radius: 999px; background: var(--ui-c1); }
.ui-meter.is-ok > span { background: var(--ui-c2); }
.ui-meter.is-warn > span { background: var(--ui-c3); }
.ui-meter.is-over > span { background: var(--ui-neg); }
.ui-meter-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text); }
.ui-meter-row .ui-sub { white-space: nowrap; }
.ui-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.ui-stat { font-size: 12px; color: var(--muted); }
.ui-stat strong { display: block; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }

/* Budget over the limit */
.ui-card.is-over { border-color: var(--ui-neg); background: var(--ui-neg-bg); }
.ui-alert { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; color: var(--ui-neg); margin-top: 6px; }
.ui-alert svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ui-alert.is-warn { color: var(--ui-warn); }
.ui-hint { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* Rows: transactions, people, queue items */
.ui-list { list-style: none; margin: 0; padding: 0; }
.ui-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text); }
.ui-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ui-row:first-child { padding-top: 0; }
.ui-row-main { min-width: 0; }
.ui-row-main strong { display: block; font-weight: 600; overflow-wrap: anywhere; }
.ui-row-main .ui-sub { display: block; }
.ui-amt { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.ui-amt small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.ui-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); color: var(--link); display: grid; place-items: center; }
.ui-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ui-ico.is-out { color: var(--ui-neg); }
.ui-ico.is-in { color: var(--ui-pos); }
.ui-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ui-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 11px; line-height: 1.6; }
.ui-chip.is-pending { border-color: var(--ui-c3); color: var(--ui-warn); background: var(--ui-warn-bg); }
.ui-chip.is-linked { border-color: var(--ui-c2); color: var(--ui-pos); }
.ui-chip.is-role { border-color: var(--ui-c1); color: var(--link); }
.ui-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #fff; }
.ui-avatar.b1 { background: #0a4fd1; } .ui-avatar.b2 { background: #12805c; } .ui-avatar.b3 { background: #b45309; } .ui-avatar.b4 { background: #7c3aed; } .ui-avatar.b5 { background: #0e7490; }
.ui-row.is-reversed .ui-row-main strong, .ui-row.is-reversed .ui-amt { text-decoration: line-through; color: var(--muted); }

/* Buttons that only look like buttons (illustration only) */
.ui-btn { display: inline-block; padding: 7px 14px; border-radius: 10px; background: var(--blue); color: var(--on-blue); font-size: 13px; font-weight: 600; }
.ui-btn.ghost { background: transparent; color: var(--link); border: 1.5px solid var(--blue); padding: 5.5px 12.5px; }
.ui-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* Statement table */
.ui-table-wrap { overflow-x: auto; }
.ui-table { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--text); min-width: 380px; }
.ui-table caption { text-align: left; font-size: 12px; color: var(--muted); padding-bottom: 6px; }
.ui-table th, .ui-table td { padding: 7px 6px; border-bottom: 1px solid var(--border); text-align: left; }
.ui-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; }
.ui-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ui-table tbody tr:last-child td { border-bottom: 0; }

/* Segmented tabs (illustration) */
.ui-tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 3px; border-radius: 10px; margin-bottom: 10px; font-size: 12px; }
.ui-tabs span { flex: 1; text-align: center; padding: 5px 4px; border-radius: 8px; color: var(--muted); }
.ui-tabs span.is-on { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }

/* Theme swatches */
.ui-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.ui-swatches li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 8px; font-size: 13px; color: var(--text); margin: 0; }
.ui-swatches svg { display: block; width: 100%; height: auto; border-radius: 8px; margin-bottom: 6px; }
.ui-swatches .ui-sub { display: block; }
.ui-swatch-group { margin: 14px 0 8px; font-size: 14px; color: var(--text); }
.ui-swatch-group:first-child { margin-top: 0; }

/* Sync states */
.ui-flow { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.ui-flow li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; font-size: 14px; color: var(--text); margin: 0; }
.ui-flow .dotmark { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--link); }
.ui-flow .dotmark svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ui-flow small { display: block; color: var(--muted); font-size: 12px; }
.ui-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); }
.ui-status.is-offline { background: var(--ui-warn-bg); color: var(--ui-warn); }
.ui-status.is-ok { color: var(--ui-pos); }

/* Pricing */
.plan-grid { display: grid; gap: 16px; margin-top: 28px; }
.plan-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.plan-card h3 { margin-bottom: 2px; }
.plan-card .tagline { font-size: 14px; margin-bottom: 12px; }
.plan-card .price { color: var(--text); font-size: 30px; font-weight: 700; line-height: 1.1; margin: 0; }
.plan-card .price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan-card .price-year { font-size: 14px; margin: 4px 0 14px; }
.plan-card ul { margin: 0; padding-left: 20px; }
.plan-card li { color: var(--muted); margin-bottom: 4px; font-size: 15px; }
.plan-card.is-top { border-color: var(--blue); }
.compare-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); margin-top: 24px; }
.compare { border-collapse: collapse; width: 100%; min-width: 720px; font-size: 15px; color: var(--text); }
.compare caption { text-align: left; padding: 12px 14px; color: var(--muted); font-size: 14px; }
.compare th, .compare td { padding: 10px 14px; border-top: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare thead th { background: var(--surface-2); font-size: 14px; }
.compare tbody th { font-weight: 600; background: var(--surface); position: sticky; left: 0; min-width: 170px; }
.compare tr.group th { background: var(--surface-2); color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.faq { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 16px; font-weight: 600; color: var(--text); }
.faq div { padding: 0 16px 6px; }
.faq p, .faq li { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); margin: 0; }
.checklist svg { flex: none; width: 20px; height: 20px; margin-top: 3px; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.enquiry select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.cta-row .button { display: inline-block; }

@media (min-width: 560px) {
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 720px) {
  .ui-grid { grid-template-columns: repeat(2, 1fr); }
  .ui-item.span-2 { grid-column: 1 / -1; }
  .ui-item.span-2 .ui-screen { max-width: none; }
}
@media (min-width: 960px) {
  .plan-grid.four { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .site-header nav a[href="/#about"] { display: none; }
  .ui-donut-row { grid-template-columns: 1fr; }
  .ui-donut-row .ui-chart { max-width: 160px; margin: 0 auto; }
}

.form-hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.caption-plain { font-size: 14px; color: var(--muted); margin-top: 16px; }
h3.spaced { margin-top: 28px; }
.legal-list li { margin-bottom: 8px; }
.todo { background: var(--ui-warn-bg); color: var(--ui-warn); padding: 0 6px; border-radius: 6px; font-weight: 600; white-space: nowrap; }

/* Bar widths: <span class="w-60"> is 60 percent wide */
.w-0{width:0%} .w-1{width:1%} .w-2{width:2%} .w-3{width:3%} .w-4{width:4%} .w-5{width:5%} .w-6{width:6%} .w-7{width:7%} .w-8{width:8%} .w-9{width:9%}
.w-10{width:10%} .w-11{width:11%} .w-12{width:12%} .w-13{width:13%} .w-14{width:14%} .w-15{width:15%} .w-16{width:16%} .w-17{width:17%} .w-18{width:18%} .w-19{width:19%}
.w-20{width:20%} .w-21{width:21%} .w-22{width:22%} .w-23{width:23%} .w-24{width:24%} .w-25{width:25%} .w-26{width:26%} .w-27{width:27%} .w-28{width:28%} .w-29{width:29%}
.w-30{width:30%} .w-31{width:31%} .w-32{width:32%} .w-33{width:33%} .w-34{width:34%} .w-35{width:35%} .w-36{width:36%} .w-37{width:37%} .w-38{width:38%} .w-39{width:39%}
.w-40{width:40%} .w-41{width:41%} .w-42{width:42%} .w-43{width:43%} .w-44{width:44%} .w-45{width:45%} .w-46{width:46%} .w-47{width:47%} .w-48{width:48%} .w-49{width:49%}
.w-50{width:50%} .w-51{width:51%} .w-52{width:52%} .w-53{width:53%} .w-54{width:54%} .w-55{width:55%} .w-56{width:56%} .w-57{width:57%} .w-58{width:58%} .w-59{width:59%}
.w-60{width:60%} .w-61{width:61%} .w-62{width:62%} .w-63{width:63%} .w-64{width:64%} .w-65{width:65%} .w-66{width:66%} .w-67{width:67%} .w-68{width:68%} .w-69{width:69%}
.w-70{width:70%} .w-71{width:71%} .w-72{width:72%} .w-73{width:73%} .w-74{width:74%} .w-75{width:75%} .w-76{width:76%} .w-77{width:77%} .w-78{width:78%} .w-79{width:79%}
.w-80{width:80%} .w-81{width:81%} .w-82{width:82%} .w-83{width:83%} .w-84{width:84%} .w-85{width:85%} .w-86{width:86%} .w-87{width:87%} .w-88{width:88%} .w-89{width:89%}
.w-90{width:90%} .w-91{width:91%} .w-92{width:92%} .w-93{width:93%} .w-94{width:94%} .w-95{width:95%} .w-96{width:96%} .w-97{width:97%} .w-98{width:98%} .w-99{width:99%}
.w-100{width:100%}

/* Responsive product site, October 2026. No external fonts or imagery. */
:root { --brand-accent: #58d9ff; --brand-ink: #080f2b; --brand-violet: #ad76ff; }
body { font-size: 16px; line-height: 1.65; }
h1, h2, h3 { letter-spacing: -.04em; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.7vw, 72px); line-height: 1.07; }
h2 { font-size: clamp(29px, 3.6vw, 44px); line-height: 1.15; }
h3 { font-size: 21px; line-height: 1.25; }
p { text-wrap: pretty; }
.wrap { max-width: 1200px; padding-inline: clamp(20px, 4vw, 48px); }
.wrap.narrow { max-width: 800px; }
main, .wrap > *, .grid > *, .hero .wrap > * { min-width: 0; }
a { text-underline-offset: 4px; }
.site-header { position: relative; z-index: 20; background: var(--bg); }
.site-header .wrap { min-height: 84px; gap: 24px; flex-wrap: wrap; }
.logo { font-size: 21px; letter-spacing: -.5px; flex-shrink: 0; }
.logo img { width: 38px; height: 38px; border-radius: 12px; }
.site-header nav { gap: 8px; align-items: center; }
.site-header nav a { font-size: 14px; padding: 10px 15px; min-height: 44px; display: flex; align-items: center; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--border); border-radius: 12px; padding: 10px 13px; min-height: 44px; background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.nav-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.nav-toggle[aria-expanded="true"] { background: var(--surface-2); border-color: var(--text); }
.hero { position: relative; background: radial-gradient(ellipse at 90% 15%, rgba(98,58,205,.22), transparent 55%), linear-gradient(125deg, #080f2b, #122b60); color: #f5f8ff; }
.hero .wrap { position: relative; grid-template-columns: 1.07fr 1fr; gap: 64px; padding-block: 88px; }
.hero-copy { position: relative; z-index: 1; }
.hero h1 { max-width: 12ch; margin-block: 22px; font-weight: 700; letter-spacing: -.055em; }
.hero h1 .accent { color: var(--brand-accent); background: linear-gradient(100deg, #58d9ff 15%, #82aaff 65%, #c496ff); background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 17px; line-height: 1.8; color: #c2cee8; max-width: 31em; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 9px; background: rgba(88,217,255,.08); color: #d4eaff; border: 1px solid rgba(88,217,255,.17); font-size: 12px; font-weight: 500; padding: 7px 12px; margin-bottom: 0; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #58d9ff; flex: none; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.button { min-height: 48px; border-width: 1px; border-radius: 12px; padding: 12px 20px; font-size: 14px; line-height: 1.5; transition: background .16s, transform .16s; }
.button:hover { transform: translateY(-1px); }
.hero .button { color: #eaf3ff; border-color: #6683b5; }
.hero .button.primary { background: #1468ff; color: #fff; border-color: #498aff; box-shadow: 0 6px 24px rgba(20,104,255,.25); }
.hero .button.primary:hover { background: #2677ff; }
.hero .button span { padding-left: 14px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 20px; color: #bccde8; font-size: 12px; }
.hero-proof span::before { content: "\2713"; margin-right: 6px; color: #58d9ff; }
.hero-product { position: relative; padding-block: 12px; }
.product-orbit { position: absolute; width: 125%; aspect-ratio: 1; top: -4%; left: -12%; border: 1px solid rgba(88,217,255,.13); border-radius: 50%; background: radial-gradient(ellipse, rgba(88,217,255,.12), transparent 68%); }
.product-orbit::before { content: ""; position: absolute; inset: 12%; border: 1px solid rgba(88,217,255,.1); border-radius: 50%; }
.money-preview { position: relative; max-width: 390px; width: 100%; margin: 0 auto; border-radius: 28px; padding: 24px; background: #f8faff; color: #152543; box-shadow: 0 32px 64px rgba(0,0,0,.22); transform: rotate(-2deg); border: 6px solid rgba(255,255,255,.17); background-clip: padding-box; }
.preview-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; }
.preview-brand { display: flex; align-items: center; gap: 8px; }
.preview-brand img { border-radius: 8px; }
.preview-sync { font-size: 10px; font-weight: 500; color: #28644a; }
.preview-greeting { font-size: 12px; color: #63718a; margin: 18px 0 12px; }
.preview-balance { position: relative; overflow: hidden; background: linear-gradient(125deg, #1556bc, #35318a); color: #f1f6ff; border-radius: 17px; padding: 20px 20px 47px; }
.preview-balance > span { display: block; font-size: 11px; color: #bfd3ff; }
.preview-balance > strong { display: block; font-size: 35px; letter-spacing: -.04em; line-height: 1.5; }
.preview-balance > strong span { font-size: 21px; color: #bfd3ff; }
.preview-balance small { font-size: 10px; color: #bfd3ff; }
.balance-spark { position: absolute; width: 100%; height: 42px; bottom: 0; left: 0; }
.balance-spark path { stroke: #58d9ff; stroke-width: 1.5; }
.preview-stats { display: grid; grid-template-columns: 1fr 1fr; margin: 16px 0 22px; gap: 12px; }
.preview-stats div { border: 1px solid #dee5f2; border-radius: 12px; padding: 10px 12px; }
.preview-stats span { display: block; font-size: 10px; margin-bottom: 3px; }
.preview-stats strong { font-size: 17px; }
.positive { color: #246b46; } .negative { color: #ad4f1a; }
.preview-heading { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.preview-heading span { font-size: 10px; font-weight: 400; color: #6d7b95; }
.preview-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 9px; padding-block: 13px; border-bottom: 1px solid #e4eaf5; align-items: center; }
.preview-row strong { display: block; font-size: 11px; }
.preview-row small { display: block; font-size: 9px; color: #65748e; }
.preview-row b { font-size: 12px; }
.preview-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font-size: 16px; }
.grocery-icon { background: #e5ecff; } .travel-icon { background: #efe7ff; }
.preview-shared { margin-top: 15px; background: #e8f4ff; padding: 12px; border-radius: 12px; display: flex; gap: 9px; font-size: 9px; color: #526b8e; align-items: center; }
.preview-shared > span { font-size: 17px; color: #2b7146; }
.preview-shared strong { display: block; font-size: 11px; color: #245037; margin-top: 2px; }
.preview-nav { display: flex; justify-content: space-between; font-size: 9px; padding-top: 19px; color: #71809a; }
.preview-nav .selected { color: #1658c4; font-weight: 700; }
.hero .caption { font-size: 11px; text-align: center; max-width: none; margin: 21px 0 0; color: #a9bfe5; }
.trust-strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.trust-strip .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 24px; font-size: 13px; color: var(--muted); }
.trust-strip .wrap > span:last-child { font-weight: 600; color: var(--text); }
.trust-strip b { padding-inline: 14px; font-weight: 400; opacity: .35; }
section.block { padding-block: 88px; }
.section-kicker { display: block; margin-bottom: 14px; font-size: 11px; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; color: var(--link); }
.section-heading { display: flex; gap: 40px; justify-content: space-between; align-items: flex-end; }
.section-heading h2 { flex: 1.3; margin: 0; }
.section-heading p { flex: 1; max-width: 340px; font-size: 15px; margin-bottom: 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.product-card { display: flex; flex-direction: column; text-decoration: none; padding: 26px; border: 1px solid var(--border); border-radius: 24px; color: var(--text); background: var(--surface); transition: box-shadow .2s, transform .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-number { font-size: 10px; letter-spacing: .13em; font-weight: 700; color: var(--muted); }
.product-card-art { min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 22px -10px; border-radius: 16px; gap: 18px; }
.money-card .product-card-art { background: #e8efff; color: #2554ad; }
.shared-card .product-card-art { background: #f0e9ff; color: #6b3eb1; }
.team-card .product-card-art { background: #e4f5fc; color: #12658a; }
.art-wallet { width: 69px; height: 56px; border-radius: 12px; display: grid; place-items: center; font-size: 28px; background: #2463d8; color: #dfecff; box-shadow: 8px -7px 0 #bacfff; transform: rotate(-9deg); }
.art-chip { font-size: 10px; letter-spacing: .02em; }
.art-people { display: flex; padding-left: 12px; }
.art-people span { border: 3px solid #f0e9ff; width: 49px; height: 49px; border-radius: 50%; display: grid; place-items: center; background: #8b4ddd; color: #fff; margin-left: -12px; font-size: 16px; font-weight: 700; }
.art-people span:nth-child(2) { background: #2468d4; transform: translateY(-8px); }
.art-people span:last-child { background: #4ed5f4; color: #113b65; font-size: 11px; }
.art-team { display: flex; gap: 7px; transform: rotate(-7deg); }
.art-team span { height: 51px; width: 38px; border-radius: 9px; display: grid; place-items: center; background: #a8def2; color: #155675; font-size: 20px; box-shadow: 0 6px 0 #d0eff9; }
.art-team span:nth-child(2) { transform: translateY(-9px); background: #197ca5; color: #fff; }
.product-card h3 { font-size: 23px; letter-spacing: -.035em; }
.product-card p { font-size: 14px; line-height: 1.8; }
.text-link { display: flex; justify-content: space-between; margin-top: auto; padding-top: 14px; font-size: 12px; font-weight: 700; }
.feature { padding: 26px; border-radius: 20px; }
.feature h3 { font-size: 18px; letter-spacing: -.025em; }
.feature p { font-size: 14px; line-height: 1.85; }
.feature-symbol { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 20px; border-radius: 11px; background: var(--surface-2); color: var(--link); font-size: 23px; }
.lead { font-size: 17px; line-height: 1.8; }
.page-head { padding-block: 60px 40px; }
.page-head h1 { font-size: clamp(36px, 5vw, 54px); max-width: 18ch; }
.page-head .lead { max-width: 46em; }
.page-head .notice { margin-top: 24px; max-width: 62em; font-size: 14px; }
.toc { gap: 8px; }
.toc a { font-size: 12px; min-height: 40px; padding: 8px 14px; display: flex; align-items: center; }
section.block[id] { scroll-margin-top: 24px; }
.ui-grid { gap: 44px 32px; margin-top: 36px; }
.ui-item { gap: 20px; }
.ui-item h3 { font-size: 20px; }
.ui-item p { font-size: 14px; line-height: 1.8; }
.ui-screen { max-width: none; padding: 18px; box-shadow: 0 8px 28px rgba(0,0,0,.04); }
.ui-figure { margin-top: auto; }
.plan-card { position: relative; padding: 25px; border-radius: 20px; }
.plan-card .price { font-size: 42px; letter-spacing: -.05em; margin-top: 16px; }
.plan-card .price small { font-size: 12px; letter-spacing: 0; display: inline-block; }
.plan-card h3 { font-size: 20px; }
.plan-card.is-top { border: 2px solid var(--blue); }
.plan-card .tagline { min-height: 3em; font-size: 13px; }
.plan-card .price-year { font-size: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.plan-card li { font-size: 13px; margin-bottom: 10px; }
.plan-summary { font-size: 12px; line-height: 1.9; margin: 0; }
.compare { font-size: 13px; }
.compare td, .compare th { padding: 14px; }
.compare thead th { font-size: 13px; }
.compare tbody th { max-width: 210px; }
.faq { border-radius: 16px; }
.faq summary { padding: 18px 20px; font-size: 14px; }
.faq div { padding: 0 20px 8px; font-size: 14px; }
.card { padding: 28px; }
.site-footer { padding-block: 36px; }
.site-footer .wrap { grid-template-columns: 1fr; gap: 18px; }
.site-footer p { font-size: 13px; }
.site-footer nav { gap: 8px 22px; }
.site-footer nav a { font-size: 12px; display: inline-flex; align-items: center; min-height: 40px; }
.prose { padding-block: 48px 72px; overflow-wrap: anywhere; }
.prose h2 { font-size: 23px; }
@media (min-width: 900px) { .nav-toggle { display: none; } }
@media (max-width: 899px) {
  .site-header .wrap { min-height: 72px; gap: 0; justify-content: space-between; }
  .site-header nav { flex-basis: 100%; display: grid; gap: 4px; padding-block: 12px 20px; }
  .site-header nav a { display: flex !important; padding: 12px; font-size: 15px; }
  .hero .wrap { gap: 32px; padding-block: 60px; }
  .hero h1 { font-size: clamp(39px, 6vw, 58px); }
  .money-preview { padding: 18px; transform: none; }
  .product-grid { gap: 12px; }
  .product-card { padding: 20px; }
  .product-card h3 { font-size: 20px; }
  .product-card-art { margin-inline: -5px; }
}
@media (max-width: 719px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-block: 42px 38px; }
  .hero h1 { font-size: clamp(44px, 10vw, 66px); margin-block: 20px; }
  .hero p { font-size: 15px; line-height: 1.8; max-width: 33em; }
  .hero .eyebrow { font-size: 10px; }
  .hero-actions { gap: 10px; margin-top: 24px; }
  .hero-actions .button { padding-inline: 16px; }
  .hero-proof { font-size: 10px; gap: 8px 14px; }
  .hero-product { padding: 0 12px; }
  .money-preview { max-width: 350px; padding: 20px; border-width: 4px; }
  .product-orbit { width: 110%; left: -5%; top: -2%; }
  .trust-strip .wrap { flex-direction: column; align-items: flex-start; gap: 6px; padding-block: 20px; font-size: 12px; }
  .trust-strip b { padding-inline: 9px; }
  section.block { padding-block: 52px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 18px; max-width: none; }
  .product-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
  .product-card { padding: 24px; }
  .product-card-art { min-height: 150px; margin: 18px 0; }
  .product-card h3 { font-size: 24px; }
  .grid { gap: 14px; margin-top: 24px; }
  .feature { padding: 22px; }
  .section-kicker { font-size: 10px; }
  .page-head { padding-block: 36px 28px; }
  .page-head h1 { font-size: 36px; }
  .toc a { font-size: 11px; padding-inline: 12px; }
  .ui-grid { gap: 32px; }
  .ui-screen { padding: 12px; border-radius: 18px; }
  .ui-row { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 7px; }
  .ui-ico, .ui-avatar { width: 28px; height: 28px; }
  .ui-row-main strong { font-size: 12px; }
  .ui-amt { font-size: 12px; }
  .ui-stats { gap: 5px; }
  .ui-stat strong { font-size: 13px; }
  .ui-stat { font-size: 10px; }
  .ui-big { font-size: 24px; }
  .compare tbody th { min-width: 135px; max-width: 145px; font-size: 12px; box-shadow: 3px 0 8px rgba(0,0,0,.04); }
  .compare tr.group th { box-shadow: none; }
  .card { padding: 22px; }
  .cta-row .button { width: 100%; }
  .prose { padding-block: 32px 48px; }
}
@media (max-width: 379px) {
  .wrap { padding-inline: 18px; }
  .hero-actions { flex-direction: column; }
  .hero-product { padding-inline: 0; }
  .money-preview { padding: 16px; }
  .preview-row { gap: 7px; }
  .preview-row b { font-size: 11px; }
  .preview-balance > strong { font-size: 31px; }
  .ui-donut-row { gap: 10px; }
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1224; --surface: #121d35; --surface-2: #172543; --text: #f1f5ff; --muted: #b9c6df; --border: #2e4164; --green: #4fd1a1; --blue: #8ab4ff; --blue-strong: #1555ce; --link: #8ab4ff; --on-blue: #08132c; }
  .hero { background: radial-gradient(ellipse at 90% 15%, rgba(112,56,219,.22), transparent 55%), linear-gradient(125deg, #060c20, #10234e); }
  .ui-hero-card { background: linear-gradient(130deg, #1556bc, #35318a); }
  .money-card .product-card-art { background: #192e55; color: #bed5ff; }
  .shared-card .product-card-art { background: #302348; color: #d9c2ff; }
  .team-card .product-card-art { background: #163747; color: #b4ecff; }
  .art-people span { border-color: #302348; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } .button:hover, .product-card:hover { transform: none; } }

/* themes-demo:start (generated by tools/build-themes.mjs; do not edit by hand) */
.p-classic-light{--canvas:#f6f5ff;--card:#ffffff;--field:#efecff;--raised:#e7e2fa;--ink:#1b1740;--muted:#5f5b88;--accent:#5b3df5;--accent-ink:#ffffff;--accent-surface:#ece8ff;--accent-surface-ink:#3a24b8;--detail:#0a7f96;--edge:#e4e0f7;--income:#0f7a45;--expense:#b25418}
.p-aqua-mist-light{--canvas:#eff9fc;--card:#ffffff;--field:#e0f3f8;--raised:#d3ecf3;--ink:#10303b;--muted:#4a6672;--accent:#5b3df5;--accent-ink:#ffffff;--accent-surface:#daf1f7;--accent-surface-ink:#3a24b8;--detail:#0a7f96;--edge:#cfe9f0;--income:#0f7a45;--expense:#b25418}
.p-blush-light{--canvas:#fff5fb;--card:#ffffff;--field:#fbe8f6;--raised:#f6dcef;--ink:#34132f;--muted:#75506d;--accent:#5b3df5;--accent-ink:#ffffff;--accent-surface:#f8e1f4;--accent-surface-ink:#3a24b8;--detail:#0a7f96;--edge:#f2d8eb;--income:#0f7a45;--expense:#b25418}
.p-cloud-light{--canvas:#f6f7fa;--card:#ffffff;--field:#edeff4;--raised:#e4e7ef;--ink:#171b2c;--muted:#576075;--accent:#5b3df5;--accent-ink:#ffffff;--accent-surface:#ece9ff;--accent-surface-ink:#3a24b8;--detail:#0a7f96;--edge:#dfe3ec;--income:#0f7a45;--expense:#b25418}
.p-classic-blue-light{--canvas:#f5f7fb;--card:#ffffff;--field:#f0f3f8;--raised:#eaf0f7;--ink:#18243a;--muted:#55647a;--accent:#175cd3;--accent-ink:#ffffff;--accent-surface:#e8f0ff;--accent-surface-ink:#174b9c;--detail:#00677f;--edge:#dce3ee;--income:#0f7a45;--expense:#b25418}
.p-ocean-light{--canvas:#f1f6fd;--card:#ffffff;--field:#eaf1fb;--raised:#e1ecfa;--ink:#142940;--muted:#4b6077;--accent:#0757c9;--accent-ink:#ffffff;--accent-surface:#dfedff;--accent-surface-ink:#143f7a;--detail:#006e83;--edge:#ccddef;--income:#0f7a45;--expense:#b25418}
.p-mint-light{--canvas:#f1f7ee;--card:#fcfff8;--field:#e8f1e5;--raised:#ddebdd;--ink:#20382e;--muted:#4d6357;--accent:#09634f;--accent-ink:#ffffff;--accent-surface:#d3ebdd;--accent-surface-ink:#163f31;--detail:#765b27;--edge:#c9ddca;--income:#0f7a45;--expense:#b25418}
.p-lavender-light{--canvas:#f9f2fc;--card:#fffcff;--field:#f0e7f5;--raised:#e8ddee;--ink:#34253e;--muted:#675470;--accent:#713a99;--accent-ink:#ffffff;--accent-surface:#efdff8;--accent-surface-ink:#4c2369;--detail:#9b3d63;--edge:#ddcae7;--income:#0f7a45;--expense:#b25418}
.p-pearl-light{--canvas:#f8f4ed;--card:#fffefa;--field:#f0ebe3;--raised:#e8e0d5;--ink:#302b28;--muted:#655a54;--accent:#713143;--accent-ink:#ffffff;--accent-surface:#f0dfdf;--accent-surface-ink:#4c2430;--detail:#705b30;--edge:#d9d0c5;--income:#0f7a45;--expense:#b25418}
.p-vio-pearl-light{--canvas:#f8f7fe;--card:#ffffff;--field:#f0eef9;--raised:#e8e5f5;--ink:#241c3b;--muted:#5f5570;--accent:#6335ad;--accent-ink:#ffffff;--accent-surface:#ede4fc;--accent-surface-ink:#3b1b71;--detail:#006778;--edge:#d8d1e7;--income:#0f7a45;--expense:#b25418}
.p-classic-dark{--canvas:#12102b;--card:#1c1a3f;--field:#221f4a;--raised:#2a2760;--ink:#f1efff;--muted:#b0adda;--accent:#b2a5ff;--accent-ink:#150f3a;--accent-surface:#342e80;--accent-surface-ink:#e4deff;--detail:#5fe3f0;--edge:#363277;--income:#6fe0a4;--expense:#ffa66e}
.p-deep-violet-dark{--canvas:#1a0f2e;--card:#261640;--field:#2d1b4c;--raised:#331f57;--ink:#f4eeff;--muted:#bdaadf;--accent:#c0a6ff;--accent-ink:#1d0f3f;--accent-surface:#45296f;--accent-surface-ink:#eadfff;--detail:#5fe3f0;--edge:#47296f;--income:#6fe0a4;--expense:#ffa66e}
.p-ocean-navy-dark{--canvas:#0b1630;--card:#132243;--field:#172a52;--raised:#1b2f5a;--ink:#eef3ff;--muted:#a8b9de;--accent:#a5beff;--accent-ink:#0b1b44;--accent-surface:#203c7c;--accent-surface-ink:#dce7ff;--detail:#5fe3f0;--edge:#2a427c;--income:#6fe0a4;--expense:#ffa66e}
.p-graphite-dark{--canvas:#0f1013;--card:#17191e;--field:#1c1f24;--raised:#212429;--ink:#eef0f5;--muted:#a5aab6;--accent:#b2a5ff;--accent-ink:#150f3a;--accent-surface:#2e2b57;--accent-surface-ink:#e4deff;--detail:#3fb8c6;--edge:#343841;--income:#6fe0a4;--expense:#ffa66e}
.p-black-oled-dark{--canvas:#000000;--card:#0e0d18;--field:#15131f;--raised:#1c1a2b;--ink:#f1efff;--muted:#a9a5cf;--accent:#b2a5ff;--accent-ink:#150f3a;--accent-surface:#2c2658;--accent-surface-ink:#e4deff;--detail:#5fe3f0;--edge:#2e2a55;--income:#6fe0a4;--expense:#ffa66e}
.p-terminal-dark{--canvas:#050a07;--card:#0a130e;--field:#0f1d15;--raised:#142a1d;--ink:#cfffe3;--muted:#86c9a3;--accent:#35ff8c;--accent-ink:#03140b;--accent-surface:#0f2a1b;--accent-surface-ink:#a7ffd0;--detail:#008048;--edge:#17402a;--income:#6fe0a4;--expense:#ffa66e}
.p-classic-blue-dark{--canvas:#0e1118;--card:#171c26;--field:#1d2330;--raised:#242c3a;--ink:#f0f3fa;--muted:#b1bdd0;--accent:#95b7ff;--accent-ink:#10234b;--accent-surface:#1d3053;--accent-surface-ink:#d5e3ff;--detail:#66d5ee;--edge:#354052;--income:#6fe0a4;--expense:#ffa66e}
.p-midnight-dark{--canvas:#080f20;--card:#111e35;--field:#17273f;--raised:#20314d;--ink:#f0f5ff;--muted:#b5c6dd;--accent:#8fbeff;--accent-ink:#0c2447;--accent-surface:#1b365d;--accent-surface-ink:#d6e7ff;--detail:#7ddceb;--edge:#304968;--income:#6fe0a4;--expense:#ffa66e}
.p-obsidian-dark{--canvas:#10100f;--card:#1c1b18;--field:#27251f;--raised:#323027;--ink:#f6f0e5;--muted:#c7bead;--accent:#e2c17e;--accent-ink:#2d220b;--accent-surface:#3a3020;--accent-surface-ink:#f1deb3;--detail:#bcbbc8;--edge:#4c412f;--income:#6fe0a4;--expense:#ffa66e}
.p-aurora-dark{--canvas:#160f24;--card:#241b35;--field:#302541;--raised:#3b2f4d;--ink:#f8f0ff;--muted:#d0bfe0;--accent:#7de5e0;--accent-ink:#062f33;--accent-surface:#193c45;--accent-surface-ink:#c2f6f1;--detail:#d5b2ff;--edge:#514166;--income:#6fe0a4;--expense:#ffa66e}
.p-ember-dark{--canvas:#1b1210;--card:#2b1e19;--field:#382923;--raised:#44322b;--ink:#fff1e8;--muted:#d8bfae;--accent:#f0b38b;--accent-ink:#3c2316;--accent-surface:#493024;--accent-surface-ink:#ffe0ca;--detail:#e4a7a7;--edge:#624638;--income:#6fe0a4;--expense:#ffa66e}
.p-midnight-aurora-dark{--canvas:#0a1020;--card:#121c31;--field:#1c2941;--raised:#26334c;--ink:#f2f3ff;--muted:#bdc6db;--accent:#7ce3ef;--accent-ink:#062e38;--accent-surface:#123e4a;--accent-surface-ink:#bef5fb;--detail:#c6aeff;--edge:#3e506b;--income:#6fe0a4;--expense:#ffa66e}
/* The Themes screen demo on features.html. The palette classes (p-<look>-<mode>) before this block set the colours. */
.tv{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,400px);gap:24px;align-items:start;background:var(--canvas);color:var(--ink);border:1px solid var(--edge);border-radius:28px;padding:24px;transition:background .2s,color .2s}
.tv-controls{min-width:0}
.tv-side{min-width:0;position:sticky;top:88px}
.tv-intro{margin:0 0 4px;font-size:.95rem;color:var(--muted)}
.tv-head{margin:22px 0 8px;font-size:1.05rem;font-weight:800;color:var(--ink)}
.tv-head-first{margin-top:0}
.tv-sub{margin:12px 0 8px;font-size:.78rem;font-weight:700;letter-spacing:.02em;color:var(--muted)}
.tv-seg{display:flex;border:1px solid var(--edge);border-radius:999px;overflow:hidden}
.tv-seg button{flex:1;padding:10px 14px;border:0;border-right:1px solid var(--edge);background:transparent;color:var(--ink);font:inherit;font-size:.9rem;font-weight:600;cursor:pointer}
.tv-seg button:last-child{border-right:0}
.tv-seg button[aria-pressed="true"]{background:var(--accent-surface);color:var(--accent-surface-ink)}
.tv-looks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tv-look,.tv-layout{display:block;padding:8px;border:1px solid var(--edge);border-radius:18px;background:transparent;color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.tv-look[aria-pressed="true"],.tv-layout[aria-pressed="true"]{border:2.5px solid var(--accent);padding:6.5px}
.tv-look:focus-visible,.tv-layout:focus-visible,.tv-seg button:focus-visible,.tv-select:focus-visible,.to-top:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.tv-thumb{position:relative;display:block;height:62px;padding:7px;border-radius:12px;background:var(--canvas)}
.tv-thumb-card{display:flex;flex-direction:column;height:100%;box-sizing:border-box;padding:6px;border-radius:8px;background:var(--card);border:1px solid var(--edge)}
.tv-thumb-card i{display:block;border-radius:4px}
.tv-b1{height:7px;width:34px;background:var(--accent)}
.tv-b2{height:5px;width:52px;margin-top:5px;background:var(--muted);opacity:.5}
.tv-b3{height:5px;width:24px;margin-top:auto;background:var(--detail)}
.tv-lock{position:absolute;top:4px;right:4px;display:inline-flex;align-items:center;gap:3px;padding:2px 7px 2px 5px;border-radius:10px;background:#1f1f2b;color:#fff;font-size:10px;font-weight:800;line-height:1.2}
.tv-lock svg{fill:currentColor}
.tv-name{display:flex;align-items:center;justify-content:space-between;gap:4px;margin-top:6px;font-size:.82rem;font-weight:600}
.tv-name>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tv-check{display:none;flex:none;fill:var(--accent)}
[aria-pressed="true"]>.tv-name .tv-check{display:block}
.tv-label{display:block;margin:6px 0 4px;font-size:.78rem;color:var(--muted)}
.tv-select{width:100%;padding:12px;border:1px solid var(--edge);border-radius:10px;background:var(--field);color:var(--ink);font:inherit}
.tv-layouts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.tv-layout{text-align:center}
.tv-layout .tv-name{justify-content:center}
.tv-layout-thumb{position:relative;display:block;height:92px;padding:7px;border-radius:12px;background:var(--raised);text-align:left}
.tv-layout-thumb i,.tv-layout-thumb b{display:block;border-radius:4px}
.lt-card{height:20px;margin-bottom:4px;border-radius:6px!important;background:var(--card);border:1px solid var(--edge)}
.lt-hero{height:28px;margin-bottom:5px;border-radius:8px!important;background:linear-gradient(135deg,var(--accent),var(--detail))}
.lt-panel{height:calc(100% - 33px);padding:5px;box-sizing:border-box;border-radius:8px!important;background:var(--card);border:1px solid var(--edge)}
.lt-panel b{height:7px;width:60%;margin:2px 0;background:var(--muted);opacity:.35}
.lt-compact>b{height:7px;width:70%;margin:2px 0;background:var(--muted);opacity:.35}
.lt-compact>.lt-short{height:5px;width:30%}
.tv-note{margin:10px 0 0;font-size:.82rem;color:var(--muted)}
.tv .tv-restore{background:transparent;border:1px solid var(--accent);color:var(--accent)}
.tv-status{margin:12px 0;padding:10px 14px;border-radius:12px;background:var(--accent-surface);color:var(--accent-surface-ink);font-size:.9rem;font-weight:600}

.tv-stage{position:relative;overflow:hidden;padding:16px;border-radius:20px;background:var(--canvas);color:var(--ink);border:1px solid var(--edge);--s:.08;--m:.35}
.mode-light{--m:.35}
.mode-dark{--m:1}
.int-subtle{--s:.08}
.int-soft{--s:.15}
.int-vivid{--s:.22}
.bg-plain{background:var(--canvas)}
.layout-soft{--layout:soft}
.tv-layout-thumb.lt-soft{display:block}
.tv-stage.bg-aurora,.tv-stage.bg-brand{background:linear-gradient(135deg,color-mix(in srgb,var(--accent) calc(var(--s) * var(--m) * 70%),var(--canvas)),var(--canvas) 58%,color-mix(in srgb,var(--detail) calc(var(--s) * var(--m) * 45%),var(--canvas)))}
.tv-stage.bg-mesh{background:radial-gradient(circle at -5% 8%,color-mix(in srgb,var(--accent) calc(var(--s) * var(--m) * 100%),var(--canvas)),transparent 65%),radial-gradient(circle at 105% 40%,color-mix(in srgb,var(--detail) calc(var(--s) * var(--m) * 80%),var(--canvas)),transparent 65%),radial-gradient(circle at 35% 112%,color-mix(in srgb,var(--accent) calc(var(--s) * var(--m) * 65%),var(--canvas)),transparent 65%),var(--canvas)}
.tv-title{margin:0 0 16px;font-size:1.25rem;font-weight:700;color:var(--ink)}
.tv-summary{display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:20px;background:var(--card);border:1px solid var(--edge)}
.tv-label-strong{font-size:.85rem;font-weight:700;color:var(--muted)}
.tv-balance{font-size:1.5rem;color:var(--income)}
.tv-split{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:.88rem}
.tv-income{color:var(--income)}
.tv-expense{color:var(--expense)}
.tv-row{display:flex;align-items:center;gap:12px;margin-top:12px;padding:8px 12px;border-radius:16px;background:var(--card);border:1px solid var(--edge)}
.tv-avatar{display:grid;flex:none;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--accent-surface);color:var(--accent-surface-ink)}
.tv-avatar svg{fill:currentColor}
.tv-row-text{display:flex;flex:1;flex-direction:column;min-width:0}
.tv-row-text small{color:var(--muted)}
.tv-field{margin-top:14px;padding:8px 12px;border:1px solid var(--edge);border-radius:6px;background:var(--field)}
.tv-field small{display:block;font-size:.72rem;color:var(--muted)}
.tv-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.tv-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid var(--edge);border-radius:8px;font-size:.85rem}
.tv-chip svg{fill:var(--detail)}
.tv-chip.is-selected{background:var(--accent-surface);color:var(--accent-surface-ink);border-color:transparent}
.tv-bars{display:flex;align-items:flex-end;gap:8px;height:72px;margin-top:14px;padding:12px;box-sizing:border-box;border-radius:16px;background:var(--raised)}
.tv-bars i{flex:1;border-radius:4px;background:var(--detail);opacity:.75}
.tv-bars i:nth-child(1){height:20px}
.tv-bars i:nth-child(2){height:36px}
.tv-bars i:nth-child(3){height:26px}
.tv-bars i:nth-child(4){height:48px}
.tv-bars i:nth-child(5){height:32px}
.tv-bars i:nth-child(6){height:42px}
.tv-bars i.is-peak{background:var(--accent);opacity:1}
.tv-stage.layout-hero .tv-summary{border-color:transparent;color:#fff;background:linear-gradient(135deg,#a62cd6,#6a2fe0 38%,#2457ea 72%,#0a8fb8)}
.tv-stage.layout-hero .tv-summary .tv-label-strong,.tv-stage.layout-hero .tv-summary .tv-balance,.tv-stage.layout-hero .tv-summary .tv-income,.tv-stage.layout-hero .tv-summary .tv-expense{color:#fff}
.tv-stage.layout-compact .tv-summary{padding:10px 14px;gap:4px}
.tv-stage.layout-compact .tv-row{margin-top:6px;padding:4px 10px;border-radius:10px}
.tv-stage.layout-compact .tv-avatar{width:28px;height:28px}
.tv-stage.layout-compact .tv-balance{font-size:1.2rem}
@media (max-width:900px){.tv{grid-template-columns:minmax(0,1fr);padding:16px}.tv-side{position:static}}
@media (max-width:420px){.tv-looks,.tv-layouts{gap:6px}.tv-name{font-size:.74rem}}
@media (prefers-reduced-motion:reduce){.tv{transition:none}}

/* The back-to-top button, added to every page by assets/navigation.js. */
.to-top{position:fixed;right:16px;bottom:16px;z-index:40;display:grid;place-items:center;width:48px;height:48px;border:0;border-radius:50%;background:#0d1b3d;color:#fff;box-shadow:0 6px 18px rgba(8,16,40,.35);cursor:pointer;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s,transform .2s,visibility .2s}
.to-top.is-visible{opacity:1;visibility:visible;transform:none}
.to-top svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
@media (prefers-color-scheme:dark){.to-top{background:#e8ecff;color:#0d1b3d}}
@media (prefers-reduced-motion:reduce){.to-top{transition:none}}
/* themes-demo:end */

/* ==========================================================================
   How it works guide (guide.html) and its working samples (assets/guide.js).
   Colours come from the tokens above, so light and dark both work. Without JavaScript the
   .g-js-only controls stay hidden and each sample shows its static state and its .g-fallback text.
   ========================================================================== */
.g-topics { display: grid; gap: 24px; margin-top: 32px; }
.g-topic { display: grid; gap: 20px; min-width: 0; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 16px; }
.g-topic-text { min-width: 0; }
.g-topic h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 10px; font-size: 20px; letter-spacing: -.02em; }
.g-topic p { font-size: 14px; line-height: 1.75; overflow-wrap: anywhere; }
.g-topic a { overflow-wrap: anywhere; }
.g-steps { counter-reset: gstep; list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.g-steps li { counter-increment: gstep; position: relative; margin: 0; padding-left: 36px; color: var(--muted); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.g-steps li::before { content: counter(gstep); position: absolute; left: 0; top: 1px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); font-size: 12px; font-weight: 700; line-height: 1; }
.g-bullets { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; }
.g-bullets li { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.g-steps b, .g-bullets b, .g-note b { color: var(--text); font-weight: 600; }
.g-note { margin: 0; padding: 10px 14px; border-left: 4px solid var(--blue); background: var(--surface-2); border-radius: 0 12px 12px 0; }
.g-note + .g-note { margin-top: 10px; }
.g-pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--ui-c4); background: var(--surface-2); color: var(--ui-c4); font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.6; white-space: nowrap; vertical-align: middle; }
.g-release { font-size: 14px; max-width: 62em; margin: 20px 0 0; }
.page-head .notice + .notice { margin-top: 12px; }

/* A sample: a small working copy of a screen */
.g-sample { min-width: 0; padding: 14px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg); color: var(--text); }
.g-sample p { overflow-wrap: anywhere; }
.g-sample-head { margin: 0 0 12px; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--text); }
.g-try { display: inline-block; margin-right: 6px; padding: 1px 9px; border-radius: 999px; background: var(--blue); color: var(--on-blue); font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; vertical-align: middle; }
.g-try { display: none; }
.g-js .g-try { display: inline-block; }
.g-sample-foot { margin: 12px 0 0; font-size: 12px; color: var(--muted); }
.g-sample-static .g-sample-head { margin-bottom: 8px; }
.g-js-only { display: none; }
.g-js .g-js-only { display: block; }
.g-js .g-fallback { display: none; }
.g-fallback { color: var(--muted); }
.g-mini { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; color: var(--text); }
.g-mini li { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.g-sample .ui-card { margin-bottom: 10px; }
.g-sample .ui-card:last-child { margin-bottom: 0; }
.g-sample .g-js-only + .ui-card, .g-sample .ui-card + .g-js-only { margin-top: 10px; }

/* Controls */
.g-label { display: block; margin: 10px 0 6px; font-size: 13px; font-weight: 600; color: var(--text); }
.g-sample .g-js-only > .g-label:first-child { margin-top: 0; }
.g-btn { min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--blue); background: transparent; color: var(--link); font: inherit; font-size: 14px; font-weight: 600; line-height: 1.3; cursor: pointer; }
.g-btn.primary { background: var(--blue); color: var(--on-blue); }
.g-btn.ghost { border-color: var(--border); color: var(--text); }
.g-btn:disabled { opacity: .5; cursor: not-allowed; }
.g-ico { width: 18px; height: 18px; vertical-align: -4px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-link { padding: 4px 0; border: 0; background: none; color: var(--link); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.g-seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.g-seg-btn { flex: 1 1 auto; min-height: 44px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.g-seg-btn[aria-pressed="true"] { border-color: var(--blue); background: var(--blue); color: var(--on-blue); font-weight: 600; }
.g-input, .g-select { display: block; width: 100%; min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; font-size: 15px; }
.g-range { display: block; width: 100%; min-height: 32px; margin: 4px 0 8px; accent-color: var(--blue); }
.g-switch { display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--text); font-size: 14px; cursor: pointer; }
.g-toggle { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 46px; height: 28px; margin: 0; border-radius: 999px; border: 1px solid var(--border); background: var(--ui-track); cursor: pointer; }
.g-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); }
.g-toggle:checked { border-color: var(--blue); background: var(--blue); }
.g-toggle:checked::after { transform: translateX(18px); background: var(--on-blue); }
.g-toggle:disabled { opacity: .45; cursor: not-allowed; }
@media (prefers-reduced-motion: no-preference) {
  .g-toggle, .g-toggle::after { transition: transform .15s, background-color .15s; }
  .ui-meter > span { transition: width .2s; }
}
.g-out, .g-status { margin: 10px 0 0; min-height: 1.4em; font-size: 13px; color: var(--muted); }
.g-status { font-weight: 600; }
.g-status.is-ok { color: var(--ui-pos); }
.g-status.is-warn { color: var(--ui-warn); }
.g-hint { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.g-toast { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 10px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--ui-neg-bg); color: var(--text); font-size: 14px; }
.g-toast[hidden] { display: none; }
.g-confirm { margin-top: 10px; padding: 12px 14px; border: 1.5px solid var(--blue); border-radius: 12px; background: var(--surface); }
.g-confirm p { margin: 0 0 4px; font-size: 13px; color: var(--text); }

/* Lists and tables inside samples */
.g-cols { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); margin-top: 10px; }
.g-cols .ui-card { margin-bottom: 0; }
.g-kv-list { list-style: none; margin: 0; padding: 0; }
.g-kv-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text); }
.g-kv-list li:last-child { border-bottom: 0; }
.g-kv-list li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.g-kv-list li > span:first-child .ui-sub { display: block; }
.g-kv-list li > .ui-sub { text-align: right; }
.g-kv-list .ui-num { font-weight: 700; }
.g-kv-list .is-total { font-weight: 700; }
.g-group-title { margin: 12px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.g-results { margin-top: 6px; }
.g-accts { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.g-acct { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 14px; color: var(--text); }
.g-acct.is-outside { border-style: dashed; opacity: .75; }
.g-acct-main { display: block; min-width: 0; }
.g-acct-main .ui-sub { display: block; }
.g-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.g-tag { flex-basis: 100%; font-size: 12px; font-weight: 600; color: var(--ui-warn); }
.g-people { list-style: none; margin: 0; padding: 0; }
.g-split-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 104px; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); margin: 0; font-size: 14px; color: var(--text); }
.g-split-row:last-child { border-bottom: 0; }
.g-split-row .g-input { min-height: 40px; padding: 6px 8px; font-size: 14px; }
.g-split-in[hidden] { display: none; }
.g-person-name { min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.g-amt { font-weight: 700; text-align: right; }
.g-table { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--text); }
.g-table th, .g-table td { padding: 8px 6px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; overflow-wrap: anywhere; }
.g-table thead th { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.g-table tbody th { font-weight: 600; }
.g-table tbody tr:last-child th, .g-table tbody tr:last-child td { border-bottom: 0; }
.g-table .ui-sub { display: block; font-weight: 400; }
.g-scroll { position: relative; overflow-x: auto; border-radius: 12px; }
.g-matrix th:first-child { min-width: 150px; }
.g-matrix thead th:not(:first-child) { min-width: 96px; overflow-wrap: normal; }
.g-matrix td, .g-matrix thead th:not(:first-child) { text-align: center; }
.g-yes { color: var(--ui-pos); font-weight: 700; }
.g-no { color: var(--muted); }
.g-notices td, .g-notices thead th:not(:first-child) { text-align: center; width: 64px; }
.g-security { min-width: 440px; }
.g-security td { overflow-wrap: normal; }
.g-map { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.g-map li { display: grid; gap: 2px; margin: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: 14px; color: var(--text); }
.g-map span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }

@media (min-width: 560px) {
  .g-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .g-topic.has-sample { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .g-topic.has-sample.stack { grid-template-columns: minmax(0, 1fr); }
  .g-map { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .g-topic { padding: 16px; gap: 16px; }
  .g-sample { padding: 12px; }
  .g-topic h3 { font-size: 18px; }
}
@media (max-width: 440px) {
  .g-split-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
  .g-split-row .g-split-in { grid-column: 1 / -1; grid-row: 2; }
  .g-split-row .g-amt { grid-column: 2; grid-row: 1; }
  .g-btn { flex: 1 1 auto; }
}

/* "Log in": opens the VioLedger web app. A filled button so it stands apart from the page links. */
.site-header nav a.nav-login { background: var(--brand-violet, #ad76ff); color: #0d0a24; font-weight: 600; margin-left: 6px; }
.site-header nav a.nav-login:hover { background: #c49bff; color: #0d0a24; }
@media (max-width: 899px) { .site-header nav a.nav-login { margin-left: 0; justify-content: center; } }

/* Section buttons ("On this page"): numbered tiles in a tidy grid, with an arrow on hover and a clear focus ring. */
.toc { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; counter-reset: toc; margin: 26px 0 0; }
.toc li { display: flex; }
.toc a {
  counter-increment: toc; flex: 1; display: flex; align-items: center; gap: 12px; min-height: 54px;
  padding: 10px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.25; text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background-color .15s ease;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero); flex: none; display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 9px; background: var(--surface-2); color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.toc a::after { content: "\2192"; margin-left: auto; color: var(--blue); opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; }
.toc a:hover, .toc a:focus-visible { border-color: var(--blue); box-shadow: 0 6px 18px rgba(20, 104, 255, .14); transform: translateY(-1px); }
.toc a:hover::after, .toc a:focus-visible::after { opacity: 1; transform: none; }
.toc a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (max-width: 560px) {
  .toc { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .toc a { min-height: 50px; padding: 8px 10px; gap: 9px; font-size: 13px; }
  .toc a::before { width: 26px; height: 26px; font-size: 10px; }
  .toc a::after { display: none; }
}
@media (prefers-reduced-motion: reduce) { .toc a, .toc a::after { transition: none; } .toc a:hover, .toc a:focus-visible { transform: none; } }

/* Smaller lists of topics inside a section keep a light pill look. */
.toc.toc-compact { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 8px; counter-reset: none; }
.toc.toc-compact li { display: block; }
.toc.toc-compact a {
  display: inline-flex; flex: none; min-height: 38px; padding: 7px 14px; gap: 0; border-radius: 999px;
  background: var(--surface-2); border-color: transparent; font-size: 13px; font-weight: 500; transform: none; box-shadow: none;
}
.toc.toc-compact a::before, .toc.toc-compact a::after { content: none; }
.toc.toc-compact a:hover, .toc.toc-compact a:focus-visible { background: var(--surface); border-color: var(--blue); transform: none; box-shadow: none; }
@media (max-width: 560px) { .toc.toc-compact { display: flex; } .toc.toc-compact a { font-size: 12px; min-height: 36px; padding: 6px 12px; } }

/* Real screenshots: a browser frame for the web app, a phone frame for the Android app. */
.browser-frame { background: #0f1830; border-radius: 14px; box-shadow: 0 24px 56px rgba(8, 15, 43, .28); overflow: hidden; border: 1px solid rgba(255, 255, 255, .12); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #1a2744; }
.browser-bar span { width: 9px; height: 9px; border-radius: 50%; background: #475b86; }
.browser-bar b { margin-left: 10px; flex: 1; max-width: 280px; padding: 3px 10px; border-radius: 6px; background: #111c35; color: #9fb2d6; font-size: 11px; font-weight: 500; }
.browser-frame img { display: block; width: 100%; height: auto; }
.phone-frame { border-radius: 28px; padding: 7px; background: #101a33; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 22px 44px rgba(8, 15, 43, .28); }
.phone-frame img { display: block; width: 100%; height: auto; border-radius: 22px; }
.hero-shot { position: relative; padding: 8px 0 44px; }
.hero-shot .phone-frame { position: absolute; width: 33%; right: -3%; bottom: 0; transform: rotate(3deg); }
.shots { display: grid; gap: 32px; margin-top: 34px; }
.shots-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shots-phones { grid-template-columns: repeat(3, minmax(0, 250px)); justify-content: center; }
.shot { margin: 0; }
.shot figcaption { margin-top: 14px; font-size: 14px; line-height: 1.6; color: var(--muted); text-align: center; }
@media (max-width: 719px) {
  .shots-two { grid-template-columns: 1fr; }
  .shots-phones { grid-template-columns: minmax(0, 260px); }
  .hero-shot { padding-bottom: 36px; }
  .hero-shot .phone-frame { width: 36%; right: 0; }
}

/* Hero: two main buttons and a quiet line of links under them. */
.hero .hero-links { margin: 0 0 22px; font-size: 14px; line-height: 1.7; color: #bccde8; max-width: 38em; }
.hero .hero-links a { color: #d4eaff; text-decoration: underline; text-underline-offset: 3px; }
.hero .hero-links a:hover { color: #fff; }

/* Questions and answers. */
.faq { display: grid; gap: 10px; margin-top: 26px; max-width: 52em; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--blue); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 14px; }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--muted); }

/* Where to get VioLedger: one card per place. */
.platform { display: flex; flex-direction: column; gap: 12px; }
.platform h3 { margin: 0; }
.platform p { margin: 0; color: var(--muted); }
.platform .button { margin-top: auto; }
.platform-soon .button { opacity: .55; pointer-events: none; }
.badge-live, .badge-soon { align-self: flex-start; padding: 3px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-live { background: var(--blue); color: var(--on-blue); }
.badge-soon { background: var(--surface-2); color: var(--link); border: 1px solid var(--border); }

/* Language links in the footer. */
.lang-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 0; font-size: 13px; }
.lang-links span { color: var(--muted); }
.lang-links a { font-weight: 600; }

/* Hindi and Malayalam pages: these scripts need open letter spacing and, for Malayalam, smaller sizes because the
   system Malayalam fonts draw larger letters than Latin text of the same size. */
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3, html[lang="ml"] h1, html[lang="ml"] h2, html[lang="ml"] h3 { letter-spacing: 0; }
html[lang="hi"] .hero h1 { line-height: 1.25; max-width: 14ch; }
html[lang="ml"] body { line-height: 1.75; }
html[lang="ml"] .hero h1 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.3; max-width: 16ch; }
html[lang="ml"] .page-head h1 { font-size: clamp(28px, 3.8vw, 42px); line-height: 1.3; max-width: 22ch; }
html[lang="ml"] h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.35; }
html[lang="ml"] h3 { font-size: 17px; line-height: 1.45; }
html[lang="ml"] .lead, html[lang="ml"] .hero p { font-size: 16px; }
html[lang="ml"] .feature p, html[lang="ml"] .card p, html[lang="ml"] .faq p, html[lang="ml"] .shot figcaption, html[lang="ml"] .notice { font-size: 14px; }
html[lang="ml"] .faq summary { font-size: 15px; }
html[lang="ml"] .button, html[lang="ml"] .site-header nav a { font-size: 13px; }
html[lang="ml"] .hero .eyebrow, html[lang="ml"] .hero-proof, html[lang="ml"] .hero .hero-links { font-size: 12px; }

/* FAQ page: search, topics, questions and answers, worked examples, pictures and small diagrams. */
.faq-tools { margin: 22px 0 8px; max-width: 34em; }
.faq-page { padding-top: 8px; }
.faq-search-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.faq-search { width: 100%; box-sizing: border-box; padding: 12px 14px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.faq-search:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.faq-section { margin-top: 38px; scroll-margin-top: 90px; }
.faq-section:first-child { margin-top: 0; }
.faq-section h2 { margin-bottom: 14px; }
.faq-section[hidden], .faq-item[hidden] { display: none; }
.faq-list { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; scroll-margin-top: 90px; }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; color: var(--blue); font-size: 22px; line-height: 1; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 14px; }
.faq-body { padding: 0 18px 18px; color: var(--muted); }
.faq-body > * + * { margin-top: 14px; }
.faq-body p, .faq-body li { margin: 0; }
.faq-body ul { display: grid; gap: 6px; padding-left: 20px; }
.faq-body strong { color: var(--text); }
.faq-links { font-size: 14px; }
.faq-scenario { padding: 14px 16px; border: 1px solid var(--border); border-left: 4px solid var(--blue); border-radius: 12px; }
.faq-sc-title { margin: 0 0 8px; font-weight: 700; color: var(--text); }
.faq-scenario dl { display: grid; gap: 10px; margin: 0; }
.faq-scenario dt { font-size: 13px; font-weight: 700; color: var(--blue); }
.faq-scenario dd { margin: 2px 0 0; }
.faq-table-wrap { overflow-x: auto; }
.faq-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.faq-table th, .faq-table td { padding: 8px 10px; text-align: left; vertical-align: top; border: 1px solid var(--border); }
.faq-table th { color: var(--text); }
.faq-fig, .faq-diagram { margin: 0; }
.faq-fig img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 12px; }
.faq-fig-phone { max-width: 220px; }
.faq-fig figcaption, .faq-diagram figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.faq-empty { margin-top: 24px; font-weight: 700; }
.fd-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin: 0; padding: 0; list-style: none; }
.fd-step { position: relative; padding: 14px; font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.fd-step + .fd-step::before { content: "\2192"; position: absolute; left: -22px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--blue); }
.fd-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fd-card { padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.fd-card strong { display: block; color: var(--text); }
.fd-card span { font-size: 14px; color: var(--muted); }
.fd-trip { display: block; width: 100%; max-width: 560px; height: auto; }
.fd-node { fill: var(--blue); }
.fd-node-text { fill: #fff; font: 700 15px sans-serif; text-anchor: middle; }
.fd-name { fill: var(--text); font: 600 13px sans-serif; text-anchor: middle; }
.fd-edge { fill: none; stroke: var(--blue); stroke-width: 2; marker-end: url(#fd-arrow); }
.fd-head { fill: var(--blue); }
.fd-edge-bg { fill: var(--surface); }
.fd-edge-label { fill: var(--text); font: 700 13px sans-serif; text-anchor: middle; }
@media (max-width: 640px) {
  .fd-flow, .fd-three { grid-template-columns: 1fr; }
  .fd-step + .fd-step::before { content: "\2193"; left: 50%; top: -22px; transform: translateX(-50%); }
}
html[lang="ml"] .faq-body, html[lang="ml"] .faq-table { font-size: 14px; }
html[lang="ml"] .faq-item summary { font-size: 15px; }
.faq-body > .faq-fig, .faq-body > .faq-diagram, .faq-body > .faq-table-wrap { margin-top: 14px; }

/* Wider pages: the content uses the window, with the same margin on both sides, up to a very wide screen. */
.wrap { max-width: 1680px; padding-inline: clamp(20px, 4vw, 64px); }
.wrap.narrow { max-width: 800px; }
.faq-search { max-width: 44em; }
.faq-tools { max-width: 44em; }
.faq-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 48px; align-items: start; }
.faq-side { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow-y: auto; }
.faq-side-title { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.faq-nav { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; counter-reset: faqnav; }
.faq-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--text); text-decoration: none; border-radius: 10px; }
.faq-nav a::before { content: counter(faqnav, decimal-leading-zero); counter-increment: faqnav; flex: none; font-size: 11px; font-weight: 700; color: var(--blue); }
.faq-nav a:hover, .faq-nav a:focus-visible { background: var(--surface); }
.faq-nav a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.faq-body > p, .faq-body > ul { max-width: 80ch; }
.faq-scenario, .faq-table-wrap { max-width: 980px; }
@media (max-width: 900px) {
  .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .faq-side { position: static; max-height: none; overflow: visible; }
  .faq-nav { display: flex; flex-wrap: wrap; gap: 8px; }
  .faq-nav a { background: var(--surface); border: 1px solid var(--border); }
}
.faq-main { min-width: 0; }
.faq-diagram, .faq-fig { max-width: 980px; }
.faq-fig-phone { max-width: 220px; }

/* Download page: a platform icon at the top of each card. */
.platform-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.platform-icon { display: grid; flex: none; place-items: center; width: 56px; height: 56px; color: var(--blue); background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px; }
.platform-icon svg { display: block; }
.picon-fill { fill: currentColor; }
.picon-line { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.picon-eye { fill: var(--surface-2); }
.picon-front { fill: var(--surface-2); }
.platform-soon .platform-icon { opacity: .6; }
.platform-icon { width: 64px; height: 64px; border-radius: 18px; }
.platform-icon svg { width: 42px; height: 42px; }

/* Hindi and Malayalam words can be long: let them wrap instead of widening the page. */
html[lang="hi"] .ui-table, html[lang="ml"] .ui-table { table-layout: fixed; width: 100%; }
html[lang="hi"] .ui-table th, html[lang="hi"] .ui-table td, html[lang="ml"] .ui-table th, html[lang="ml"] .ui-table td { overflow-wrap: anywhere; }

/* Topic buttons in Hindi and Malayalam: wider cards, words wrap only between words (and only break a word when it cannot fit at all). */
html[lang="hi"] .toc, html[lang="ml"] .toc { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
html[lang="hi"] .toc li, html[lang="ml"] .toc li { min-width: 0; }
html[lang="hi"] .toc a, html[lang="ml"] .toc a { min-width: 0; line-height: 1.45; overflow-wrap: break-word; word-break: normal; }
@media (max-width: 560px) {
  html[lang="hi"] .toc, html[lang="ml"] .toc { grid-template-columns: minmax(0, 1fr); }
}

/* Language selector in the header: EN | हि | മല. On a phone it sits beside the menu button; on a computer, after the menu. */
.lang-switch { display: inline-flex; flex: none; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 36px; padding: 0 9px; font-size: 13px; font-weight: 700; line-height: 1; color: var(--muted); text-decoration: none; border-radius: 9px; }
.lang-switch a:hover { color: var(--text); background: var(--surface-2); }
.lang-switch a[aria-current="true"] { color: var(--on-blue); background: var(--blue); }
.lang-switch a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
@media (min-width: 900px) {
  .site-header .wrap > nav[aria-label="Main"] { order: 2; margin-left: auto; }
  .site-header .wrap > .lang-switch { order: 3; margin-left: 4px; }
}
@media (max-width: 899px) {
  .site-header .wrap > .lang-switch { order: 1; margin-left: auto; margin-right: 8px; }
  .site-header .wrap > .nav-toggle { order: 2; }
  .site-header .wrap > nav[aria-label="Main"] { order: 3; }
}
@media (min-width: 900px) {
  .site-header .wrap { flex-wrap: nowrap; gap: 14px; }
  .site-header .wrap > nav[aria-label="Main"] { flex: 0 1 auto; min-width: 0; flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
  html[lang="hi"] .site-header nav a, html[lang="ml"] .site-header nav a { padding-inline: 10px; }
}
/* On a small phone the menu button is just the icon, so the logo, the language selector and the button share one row. */
@media (max-width: 520px) {
  .nav-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-toggle { padding: 10px 12px; }
  .lang-switch a { min-width: 34px; padding: 0 7px; }
}

/* Hindi and Malayalam pages: the app's own words and screens in English by default; the page language when asked (appnames.js). */
.app-tr { display: none; }
html[data-app="tr"] .app-en { display: none; }
html[data-app="tr"] .app-tr { display: inline; }
.app-names-bar { border-bottom: 1px solid var(--border); background: var(--surface); }
.app-names-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-block: 10px; }
.app-names-label { font-size: 14px; font-weight: 700; color: var(--text); }
.app-names-choice { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.app-names-choice button { min-height: 34px; padding: 0 14px; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); background: none; border: 0; border-radius: 9px; cursor: pointer; }
.app-names-choice button:hover { color: var(--text); background: var(--surface-2); }
.app-names-choice button[aria-pressed="true"] { color: var(--on-blue); background: var(--blue); }
.app-names-choice button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.app-names-hint { font-size: 13px; color: var(--muted); }
