/* azhari.so/erp. The app's own dark tokens (src/app/globals.css): the page is dark only (decision 259). */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(fonts/inter-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }

:root {
  /* Dark only (owner, 13 Nov 2026: "the landing page should stay dark"): the app's dark tokens. */
  color-scheme: dark;
  --background: oklch(0.158 0.005 235);
  --foreground: oklch(0.935 0.004 220);
  --card: oklch(0.188 0.006 235);
  --primary: oklch(0.696 0.141 248);
  --primary-foreground: oklch(0.19 0.03 250);
  --muted: oklch(0.225 0.007 235);
  --muted-foreground: oklch(0.7 0.012 230);
  --border: oklch(0.262 0.007 235);
  --chart-1: oklch(0.696 0.141 248);
  --chart-2: oklch(0.45 0.09 250);
  --negative: oklch(0.68 0.17 25);
  --positive: oklch(0.74 0.13 155);
  --warning: oklch(0.75 0.13 70);
  --radius: 0.375rem;
  --width: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 4rem; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font: 400 1rem/1.6 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; line-height: 1.2; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--width); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40rem) { .wrap { padding: 0 1.5rem; } }
.muted { color: var(--muted-foreground); }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: var(--background); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 1.5rem; height: 3.5rem; }
.brand { font-weight: 600; text-decoration: none; letter-spacing: -0.01em; }
.top nav { display: none; gap: 1.25rem; font-size: 0.875rem; }
.top nav a { text-decoration: none; color: var(--muted-foreground); }
.top nav a:hover { color: var(--foreground); }
.top .button { margin-left: auto; }
@media (min-width: 48rem) { .top nav { display: flex; } }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  height: 2.25rem; padding: 0 0.875rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--border); background: var(--card); color: var(--foreground);
}
.button:hover { background: var(--muted); }
.button.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.button.primary:hover { filter: brightness(1.06); }
.button:focus-visible, a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Hero */
.hero { padding-top: 3.5rem; padding-bottom: 2.5rem; }
.hero h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem); max-width: 20ch; }
.hero .lede { margin-top: 1rem; max-width: 40rem; font-size: 1.0625rem; color: var(--muted-foreground); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.facts { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; font-size: 0.875rem; color: var(--muted-foreground); }

/* Screens */
.screen { margin: 2.5rem 0 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.caption { margin-top: 0.625rem; font-size: 0.8125rem; color: var(--muted-foreground); }

/* Sections */
section { padding: 3.5rem 0; border-top: 1px solid var(--border); }
.eyebrow { font-size: 0.8125rem; font-weight: 500; color: var(--primary); margin-bottom: 0.5rem; }
section > .wrap > h2 { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem); max-width: 28ch; text-wrap: balance; }
section > .wrap > .intro { margin-top: 0.75rem; max-width: 42rem; color: var(--muted-foreground); }

/* Feature rows: text beside a screen, never a grid of cards */
.feature { display: grid; gap: 1.5rem; margin-top: 2.5rem; align-items: start; }
.feature h3 { font-size: 1.125rem; }
.feature p { margin-top: 0.5rem; color: var(--muted-foreground); }
.feature ul { margin: 0.875rem 0 0; padding-left: 1.1rem; font-size: 0.9375rem; }
.feature li + li { margin-top: 0.25rem; }
.feature .screen { margin-top: 0; }
@media (min-width: 60rem) {
  .feature { grid-template-columns: 22rem 1fr; gap: 3rem; }
}

/* Module list: a dense two-column table of what is included */
.modules { margin-top: 2rem; border-top: 1px solid var(--border); }
.modules div { display: grid; gap: 0.25rem; padding: 0.875rem 0; border-bottom: 1px solid var(--border); }
.modules dt { font-weight: 500; }
.modules dd { margin: 0; color: var(--muted-foreground); font-size: 0.9375rem; }
@media (min-width: 48rem) { .modules div { grid-template-columns: 14rem 1fr; gap: 2rem; } }

/* Two plain columns for control and installation */
.columns { display: grid; gap: 2rem; margin-top: 2rem; }
.columns h3 { font-size: 1rem; }
.columns ul { margin: 0.75rem 0 0; padding-left: 1.1rem; color: var(--muted-foreground); font-size: 0.9375rem; }
.columns li + li { margin-top: 0.375rem; }
@media (min-width: 48rem) { .columns { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* Demo */
.demo { display: grid; gap: 1.5rem; margin-top: 2rem; }
.demo p { color: var(--muted-foreground); max-width: 40rem; }
.demo .actions { margin-top: 0; }

footer { padding: 2rem 0 3rem; border-top: 1px solid var(--border); font-size: 0.8125rem; color: var(--muted-foreground); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

/* Analytics and the company report (decision 256): the demo's own figures, drawn here so they stay exact. */
.tag { font-size: 0.75rem; font-weight: 500; color: var(--muted-foreground); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.neg { color: var(--negative); }
.segmented { display: inline-flex; gap: 2px; padding: 3px; border-radius: calc(var(--radius) + 3px); background: var(--muted); border: 1px solid var(--border); }
.segmented button {
  min-height: 2rem; padding: 0 0.75rem; border: 0; border-radius: var(--radius); background: none; cursor: pointer;
  font: inherit; font-size: 0.8125rem; font-weight: 500; color: var(--muted-foreground); white-space: nowrap;
}
.segmented button:hover { color: var(--foreground); }
.segmented button[aria-selected="true"] { background: var(--card); color: var(--foreground); box-shadow: 0 1px 2px rgb(0 0 0 / 0.1); }
.segmented button:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }

.dash-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 2rem; }
.dash-span { font-size: 0.875rem; color: var(--muted-foreground); }
.dash-bar .tag { margin-left: auto; }
.dash-grid { display: grid; gap: 1rem; margin-top: 1.25rem; }
@media (min-width: 60rem) { .dash-grid { grid-template-columns: 1fr 1fr; } }
.dcard { display: flex; flex-direction: column; min-width: 0; padding: 1.25rem; border: 1px solid var(--border); border-radius: calc(var(--radius) * 2); background: var(--card); }
.dcard-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.dcard h3 { font-size: 0.9375rem; font-weight: 500; color: var(--muted-foreground); letter-spacing: 0; }
.dcard-head a { font-size: 0.875rem; font-weight: 500; color: var(--primary); text-decoration: none; white-space: nowrap; }
.dcard-head a:hover { text-decoration: underline; }
.dcard-head a::after { content: " ›"; }
.dbig { margin-top: 0.375rem; font-size: 1.75rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dsub { margin-top: 0.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.legend { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 1rem 0 0; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--muted-foreground); }
.legend i { display: inline-block; width: 0.625rem; height: 0.625rem; border-radius: 2px; margin-right: 0.375rem; vertical-align: -0.05em; }
.ka { background: var(--chart-1); }
.kb { background: var(--chart-2); }
.kc { background: var(--foreground); opacity: 0.75; }

/* Month charts: one button per month over the bars, so a month is a single stop for pointer, finger and keyboard. */
.mchart { position: relative; margin-top: 0.75rem; padding-left: 3rem; }
.mplot { position: relative; height: 10.5rem; }
.mgrid { position: absolute; inset: 0; display: flex; flex-direction: column-reverse; justify-content: space-between; pointer-events: none; }
.mgrid span { position: relative; border-top: 1px dashed var(--border); }
.mgrid span:first-child { border-top-style: solid; }
.mgrid span::before { content: attr(data-label); position: absolute; right: calc(100% + 0.5rem); top: -0.55rem; font-size: 0.6875rem; color: var(--muted-foreground); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mcols { position: absolute; inset: 0; display: flex; }
.mcol {
  position: relative; flex: 1; min-width: 0; display: flex; align-items: flex-end; justify-content: center; gap: 3px;
  padding: 0; border: 0; background: none; cursor: pointer; border-radius: 4px; font: inherit; color: inherit;
}
.mcol:hover, .mcol[aria-pressed="true"] { background: color-mix(in oklab, var(--muted) 70%, transparent); }
.mcol:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.mbar { display: block; width: min(38%, 1.25rem); border-radius: 3px 3px 0 0; transition: height 0.6s cubic-bezier(.2, .8, .2, 1); }
.mbar.a { background: var(--chart-1); }
.mbar.b { background: var(--chart-2); }
.mbar.c { background: var(--foreground); opacity: 0.75; }
.mline { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.mline polyline { fill: none; stroke: var(--chart-1); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.mdot { position: absolute; z-index: 2; width: 0.4375rem; height: 0.4375rem; margin: 0 0 -0.21875rem -0.21875rem; border-radius: 50%; background: var(--chart-1); pointer-events: none; transition: transform 0.15s; }
.mdot.on { transform: scale(1.6); }
.mx { display: flex; margin-top: 0.375rem; }
.mx span { flex: 1; min-width: 0; text-align: center; font-size: 0.6875rem; color: var(--muted-foreground); overflow: hidden; text-overflow: clip; white-space: nowrap; }
.mx span.on { color: var(--foreground); font-weight: 600; }
.dread { min-height: 2.75rem; margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted-foreground); }
.dread strong { color: var(--foreground); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Bar lists: expenses, receivables, balances. */
.blist { margin: 1rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.625rem; }
.blist li { font-size: 0.875rem; transition: opacity 0.2s; }
.brow {
  display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; width: calc(100% + 0.75rem); margin: -0.25rem -0.375rem; padding: 0.25rem 0.375rem;
  border: 0; border-radius: 6px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.brow:hover, .blist li.is-active .brow { background: color-mix(in oklab, var(--muted) 70%, transparent); }
.brow:focus-visible { outline: 2px solid var(--primary); outline-offset: 0; }
/* The other lines step back but stay readable: muted text, faded bars. */
.blist.is-dim li:not(.is-active) .brow { color: var(--muted-foreground); }
.blist.is-dim li:not(.is-active) .track span { opacity: 0.35; }
.blist .track span { transition: width 0.7s cubic-bezier(.2, .8, .2, 1), opacity 0.2s; }
.blist li.is-active .track span { filter: brightness(1.18); }
.blist .v { font-variant-numeric: tabular-nums; }
.blist .track { grid-column: 1 / -1; height: 0.375rem; border-radius: 999px; background: var(--muted); overflow: hidden; }
.blist .track span { display: block; height: 100%; border-radius: inherit; background: var(--chart-1); transition: width 0.7s cubic-bezier(.2, .8, .2, 1); }
.blist li.late .track span { background: var(--warning); }
.blist li.late .v { color: var(--foreground); }
.dcard .empty { margin-top: 1rem; font-size: 0.875rem; color: var(--muted-foreground); }

/* The company report: a sheet of paper in either theme, as its PDF is. */
.report-layout { display: grid; gap: 2rem; margin-top: 2rem; align-items: start; }
@media (min-width: 62rem) { .report-layout { grid-template-columns: 19rem 1fr; gap: 3rem; } .report-side { position: sticky; top: 5rem; } }
.report-points { margin: 1.5rem 0 0; padding: 0; list-style: none; display: grid; gap: 1rem; font-size: 0.9375rem; color: var(--muted-foreground); }
.report-points strong { display: block; color: var(--foreground); font-weight: 600; }
.text-link { display: inline-block; margin-top: 1.5rem; font-size: 0.9375rem; font-weight: 500; color: var(--primary); text-decoration: none; }
.text-link::after { content: " →"; }
.text-link:hover { text-decoration: underline; }
.paper {
  --ink: #18212a; --soft: #5b6670; --rule: #dde3e8; --blue: #0067c0; --green: #1d7a3e; --red: #b42318; --amber: #b25e09; --wash: #f2f6fa;
  min-width: 0; padding: clamp(1.25rem, 0.75rem + 2.5vw, 2.75rem); background: #fff; color: var(--ink);
  border: 1px solid var(--border); border-radius: calc(var(--radius) * 2); box-shadow: 0 24px 48px -32px rgb(15 23 30 / 0.45);
  font-size: 0.875rem; color-scheme: light;
}
.paper-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding-bottom: 1rem; border-bottom: 2px solid var(--blue); }
.paper-head img { width: 2.75rem; height: 2.75rem; }
.paper-title { text-align: right; }
.paper-title h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 600; color: var(--blue); letter-spacing: -0.01em; }
.paper-title p { margin-top: 0.25rem; font-weight: 600; }
.paper-title p + p { margin-top: 0; font-weight: 400; color: var(--soft); }
.paper-meta { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 0.625rem; font-size: 0.75rem; color: var(--soft); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; margin-top: 1.25rem; border-bottom: 1px solid var(--rule); }
.kpis div { padding: 0 0.875rem 1rem; border-left: 1px solid var(--rule); min-width: 0; }
.kpis div:nth-child(odd) { border-left: 0; padding-left: 0; }
.kpis dt { font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.kpis dd { margin: 0.375rem 0 0; font-size: clamp(1.0625rem, 0.9rem + 0.5vw, 1.3125rem); font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpis small { display: block; margin-top: 0.125rem; font-size: 0.75rem; color: var(--soft); font-weight: 400; letter-spacing: 0; }
@media (min-width: 40rem) { .kpis { grid-template-columns: repeat(4, 1fr); } .kpis div:nth-child(odd) { border-left: 1px solid var(--rule); padding-left: 0.875rem; } .kpis div:first-child { border-left: 0; padding-left: 0; } }
.paper .good { color: var(--green); }
.paper .bad { color: var(--red); }
.paper h4 { margin: 1.5rem 0 0.625rem; padding-bottom: 0.375rem; border-bottom: 1px solid var(--rule); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); }
.summary { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.summary li { position: relative; padding-left: 1.25rem; line-height: 1.45; }
.summary li::before { content: ""; position: absolute; left: 0.125rem; top: 0.4rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--soft); }
.summary li.t-good::before { background: var(--green); }
.summary li.t-bad::before { background: var(--red); }
.summary li.t-warn::before { background: var(--amber); }
.two { display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .two { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.two h5 { margin: 0 0 0.375rem; padding-bottom: 0.375rem; border-bottom: 1px solid var(--rule); font-size: 0.875rem; font-weight: 600; }
.lines div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; }
.lines dt { color: var(--soft); }
.lines dd { margin: 0; font-variant-numeric: tabular-nums; }
.lines .total { border-top: 1px solid var(--ink); margin-top: 0.25rem; padding-top: 0.375rem; }
.lines .total dt, .lines .total dd { color: var(--ink); font-weight: 600; }
.lines .sub dt { padding-left: 0.875rem; }
.paper .mchart { --chart-1: #a7c8ec; --chart-2: var(--blue); --foreground: #0b2a4a; --muted: #e7eef5; --border: #d9e1e8; --muted-foreground: var(--soft); --primary: var(--blue); }
.paper .chart-wash { margin-top: 0.5rem; padding: 1rem 1rem 0.75rem; border-radius: 8px; background: var(--wash); border: 1px solid var(--rule); }
.paper .legend { margin-top: 0; color: var(--soft); }
.paper .legend .ka { background: #a7c8ec; }
.paper .legend .kb { background: var(--blue); }
.paper .legend .kc { background: #0b2a4a; opacity: 1; }
.paper .dread { color: var(--soft); min-height: 1.5rem; }
.paper .dread strong { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .mbar, .blist .track span, .mdot { transition: none; } }

/* The product's screens (decisions 257, 259): on a desktop the still keeps the space and the loop plays over it. */
.screen[data-clip] { position: relative; }
.screen .clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.3s ease; background: transparent; pointer-events: none; }
.screen.playing .clip { opacity: 1; }
.clip-tools { position: absolute; right: 0.625rem; bottom: 0.625rem; z-index: 2; display: none; gap: 0.375rem; }
.screen.has-tools .clip-tools { display: flex; }
.screen:not(.has-clip) .clip-toggle { display: none; }
.clip-tools button {
  display: grid; place-items: center; width: 2.125rem; height: 2.125rem; padding: 0; border: 1px solid var(--border); border-radius: 50%;
  background: color-mix(in oklab, var(--card) 82%, transparent); color: var(--foreground); cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 2px 8px rgb(0 0 0 / 0.12);
}
.clip-tools svg { width: 0.875rem; height: 0.875rem; fill: currentColor; }
.clip-tools button:hover { border-color: var(--muted-foreground); }
.clip-tools button:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .screen .clip { display: none; } }

/* On a phone: the ERP's own phone layout, at a modest size in a slim frame, still. */
@media (max-width: 40rem) {
  .screen {
    width: min(100%, 17rem); margin-left: auto; margin-right: auto; padding: 0.4375rem;
    border-radius: 2rem; border: 1px solid var(--border); background: var(--muted); box-shadow: 0 18px 40px -28px rgb(15 23 30 / 0.5);
  }
  .screen picture, .screen img { display: block; }
  .screen img { width: 100%; height: auto; aspect-ratio: 390 / 700; object-fit: cover; object-position: top; border-radius: 1.5625rem; }
  .screen .clip { display: none; }
  .clip-tools { right: 1rem; bottom: 1rem; }
  .caption { text-align: center; }
  .report-layout .paper { margin-left: 0.75rem; margin-right: 0.75rem; padding: 1.125rem; }
}

/* Full size: the still at its own size, to scroll and pinch. */
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--background); color: var(--foreground); }
.viewer::backdrop { background: rgb(0 0 0 / 0.6); }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); background: var(--background); }
.viewer-title { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-close { min-height: 2.25rem; padding: 0 1rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card); color: var(--foreground); font: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer; }
.viewer-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.viewer-scroll { height: calc(100dvh - 3.75rem); overflow: auto; overscroll-behavior: contain; }
.viewer-scroll img { display: block; width: 1600px; max-width: none; height: auto; }
.viewer.is-phone .viewer-scroll img { width: min(100%, 26rem); margin: 0 auto; }
@media (min-width: 100rem) { .viewer-scroll img { width: 100%; } }

/* The cards' own motion (decision 258): grow in when first seen, then a tour of the months. */
.mline { transition: clip-path 1.1s cubic-bezier(.3, .7, .2, 1); }
.mdot { transition: transform 0.15s, opacity 0.3s; }
.prep .mbar, .prep .blist .track span, .prep .mline, .prep .mdot { transition: none !important; }
.dread { transition: opacity 0.2s; }
.tour-toggle {
  min-height: 2rem; padding: 0 0.75rem; border: 1px solid var(--border); border-radius: 999px; background: var(--card);
  color: var(--muted-foreground); font: inherit; font-size: 0.8125rem; font-weight: 500; cursor: pointer;
}
.tour-toggle:hover { color: var(--foreground); }
.tour-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.tour-toggle[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .mbar, .blist .track span, .mline, .mdot { transition: none !important; }
  .tour-toggle { display: none; }
}

/* Installation and the demo (owner, 13 Nov 2026: "fix the UI design of this part"). */
.split { display: grid; gap: 2rem; }
@media (min-width: 60rem) { .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; align-items: start; } }
.split-head h2 { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem); max-width: 22ch; text-wrap: balance; }
.split-head .intro { margin-top: 0.75rem; max-width: 30rem; color: var(--muted-foreground); }
.spec { margin: 0; border-top: 1px solid var(--border); }
.spec div { display: grid; gap: 0.25rem; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.spec dt { font-size: 0.875rem; font-weight: 600; }
.spec dd { margin: 0; color: var(--muted-foreground); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; color: var(--foreground); }
@media (min-width: 40rem) { .spec div { grid-template-columns: 8rem 1fr; gap: 1.5rem; } }

.demo-panel {
  display: grid; gap: 2rem; padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  border: 1px solid var(--border); border-radius: calc(var(--radius) * 3); background: var(--card);
}
@media (min-width: 60rem) { .demo-panel { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; } }
.demo-brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1.25rem; font-weight: 600; }
.demo-brand img { width: 1.5rem; height: 1.5rem; }
.demo-tag { padding: 0.0625rem 0.375rem; border: 1px solid var(--border); border-radius: 4px; font-size: 0.625rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-foreground); }
.demo-main h2 { font-size: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem); text-wrap: balance; }
.demo-main .intro { margin-top: 0.75rem; max-width: 34rem; color: var(--muted-foreground); }
.demo-main .actions { margin-top: 1.5rem; }
.demo-main .fine { margin-top: 1rem; font-size: 0.8125rem; color: var(--muted-foreground); }
.demo-main .fine a { color: inherit; }
/* Hairlines only between the figures: the grid's gap shows the border colour behind the cells. */
.demo-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; border: 1px solid var(--border); border-radius: calc(var(--radius) * 2); background: var(--border); overflow: hidden; }
/* Every cell alike: the figure on one line, its one-word label on the next, both from the same left edge. */
.demo-facts div { display: flex; flex-direction: column; justify-content: center; gap: 0.375rem; padding: 1.25rem 1.25rem; background: var(--card); min-width: 0; }
.demo-facts dd { order: -1; margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); font-weight: 600; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.demo-facts dt { font-size: 0.875rem; line-height: 1.2; color: var(--muted-foreground); white-space: nowrap; }
@media (max-width: 24rem) { .demo-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Banks, wallets, cash and hawala (decision 261). */
#money .nojs-title { margin: 1.25rem 0 0.75rem; font-size: 0.8125rem; font-weight: 600; color: var(--muted-foreground); }
#money.ready .nojs-title { display: none; }
#money:not(.ready) .money-bar .segmented { display: none; }
.money-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-top: 2rem; }
.money-layout { display: grid; gap: 1.25rem; margin-top: 1.25rem; align-items: start; }
@media (min-width: 60rem) { .money-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.5rem; } }
.money-panel[hidden] { display: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.625rem; margin: 0; padding: 0; list-style: none; }
.tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.625rem; width: 100%; min-height: 7.25rem; padding: 1rem 0.75rem;
  border: 1px solid var(--border); border-radius: calc(var(--radius) * 2); background: var(--card); color: var(--muted-foreground);
  font: inherit; font-size: 0.875rem; text-align: center; cursor: pointer; transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}
.tile img { width: auto; height: 2.5rem; max-width: 80%; object-fit: contain; }
.tile:hover { border-color: color-mix(in oklab, var(--primary) 45%, var(--border)); color: var(--foreground); }
.tile[aria-pressed="true"] { border-color: var(--primary); background: color-mix(in oklab, var(--primary) 12%, var(--card)); color: var(--foreground); box-shadow: 0 0 0 1px var(--primary); }
.tile:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.tile-mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--muted); color: var(--foreground); font-size: 1.125rem; font-weight: 600; }
/* Rise in when the section is first seen. */
#money.ready:not(.seen) .tile { opacity: 0; transform: translateY(10px); }
#money.seen .tile { transition: border-color 0.2s, background 0.2s, color 0.2s, opacity 0.5s ease calc(var(--i, 0) * 60ms), transform 0.5s cubic-bezier(.2, .8, .2, 1) calc(var(--i, 0) * 60ms); }
.acct { padding: 1.5rem; border: 1px solid var(--border); border-radius: calc(var(--radius) * 2); background: var(--card); min-height: 18rem; }
.acct.swap { animation: acct-in 0.35s ease; }
@keyframes acct-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.acct-head { display: flex; align-items: center; gap: 0.875rem; }
.acct-head img { width: 3rem; height: 3rem; object-fit: contain; }
.acct-name { font-weight: 600; font-size: 1.0625rem; }
.acct-type { font-size: 0.8125rem; color: var(--muted-foreground); }
.acct-balance { margin: 1.25rem 0 0; padding: 1rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.acct-balance dt { font-size: 0.8125rem; color: var(--muted-foreground); }
.acct-balance dd { margin: 0.25rem 0 0; font-size: 1.625rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.acct-balance dd.none { font-size: 0.9375rem; font-weight: 500; letter-spacing: 0; color: var(--muted-foreground); }
.acct-points { margin: 1rem 0 0; padding-left: 1.1rem; display: grid; gap: 0.5rem; font-size: 0.875rem; color: var(--muted-foreground); }
.money-note { margin-top: 1.25rem; font-size: 0.75rem; color: var(--muted-foreground); }
@media (prefers-reduced-motion: reduce) {
  #money.ready:not(.seen) .tile { opacity: 1; transform: none; }
  #money .tile, .acct.swap { transition: none; animation: none; }
}
/* On a phone the tiles are compact, so the chosen account's card stays close below them. */
@media (max-width: 40rem) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .tile { min-height: 5.5rem; padding: 0.625rem 0.375rem; gap: 0.375rem; font-size: 0.75rem; }
  .tile img { height: 1.75rem; }
  .tile-mark { width: 1.75rem; height: 1.75rem; font-size: 0.875rem; }
  .acct { min-height: 0; padding: 1.25rem; }
}
@media (max-width: 40rem) {
  #money .money-bar .segmented { display: flex; width: 100%; }
  #money .money-bar .segmented button { flex: 1; min-width: 0; padding: 0.25rem 0.375rem; white-space: normal; line-height: 1.2; }
}
