/* Bilkul marketing site. Follows docs/DESIGN_SYSTEM.md (Ledger Calm):
   Inter body, Manrope headings, type scale 12/14/16/18/24/32pt, 8px spacing,
   12px card and 8px control radius, no purple. */

@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colours: the design system palette plus the tints the CRM already uses. */
  --canvas: #f3f1eb;
  --surface: #ffffff;
  --ink: #172536;
  --muted: #566575;
  --navy: #143149;
  --gold: #d9a55a;
  --line: #d8d9d5;
  --field: #87929c;
  --navy-tint: #e8edf1;
  --on-navy: #d8e3eb;
  --navy-line: #496176;
  --success: #176b43;
  --success-bg: #e8f4ed;
  --warning: #8a5715;
  --warning-bg: #fff2da;
  --danger: #963b3b;
  --danger-bg: #fbe9e8;

  /* Type scale (pt -> rem at 16px = 12pt). */
  --text-12: 1rem;
  --text-14: 1.1667rem;
  --text-16: 1.3333rem;
  --text-18: 1.5rem;
  --text-24: 2rem;
  --text-32: 2.6667rem;

  /* 8pt spacing (docs/DESIGN_SYSTEM.md, Spacing). Every padding, margin and gap uses these. */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;

  /* Shape: every card, tile, panel and picture card is 12px; controls 8px; chips and pills fully round. */
  --radius-card: 12px;
  --radius-control: 8px;
  --radius-pill: 999px;

  /* z-index scale. */
  --z-header: 10;
  --z-menu: 20;
  --z-skip: 30;

  --header-height: 80px;
  --shadow: 0 16px 40px rgba(10, 25, 40, .28);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--text-12);
  line-height: 1.5;
  font-synthesis: none;
}
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: 'Manrope Variable', 'Inter Variable', system-ui, sans-serif; line-height: 1.25; }
p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
:is(.hero, .page-hero, .journey, .section-navy, .cta-band, .needs) :focus-visible { outline-color: var(--gold); }
/* Sections reached by a link, and whatever the keyboard moves to, stop clear of the sticky header and the phone's bottom button. */
[id], :where(a, button, summary, input, select, textarea) { scroll-margin-top: calc(var(--header-height) + 16px); }
:where(a, button, summary, input, select, textarea) { scroll-margin-bottom: 88px; }
button, input, select, textarea { font: inherit; }

.icon { display: inline-block; flex: none; vertical-align: middle; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--space-2); }
.narrow { max-width: 880px; }

.skip-link {
  position: absolute; top: -80px; left: 16px; z-index: var(--z-skip);
  display: inline-flex; min-height: 44px; align-items: center;
  padding: var(--space-1) var(--space-2); border-radius: 8px; background: var(--navy); color: white; font-weight: 700;
}
.skip-link:focus { top: 16px; }

.preview-banner {
  padding: var(--space-1) var(--space-2); background: var(--warning-bg); color: var(--warning);
  font-weight: 700; text-align: center;
}

/* Buttons */
.button {
  display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: var(--space-1);
  padding: var(--space-1) var(--space-3); border: 1px solid transparent; border-radius: 8px;
  font-weight: 700; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer;
}
.button-primary { background: var(--navy); border-color: var(--navy); color: white; }
.button-primary:hover { background: var(--ink); border-color: var(--ink); }
.button-quiet { background: var(--surface); border-color: var(--navy); color: var(--navy); }
.button-quiet:hover { background: var(--navy-tint); }
.button-light { background: white; border-color: white; color: var(--navy); }
.button-light:hover { background: var(--navy-tint); border-color: var(--navy-tint); }
.button-outline-light { background: transparent; border-color: var(--on-navy); color: white; }
.button-outline-light:hover { background: rgba(255, 255, 255, .08); }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: var(--space-1); font-weight: 700; }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.header-inner {
  position: relative; display: flex; min-height: var(--header-height); flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-3); padding-block: var(--space-1);
}
.brand { display: block; flex: none; border-radius: 8px; }
.brand img { width: 101px; height: 40px; }
.menu-button {
  display: inline-flex; min-width: 48px; min-height: 48px; align-items: center; gap: var(--space-1);
  padding: var(--space-1) var(--space-2); border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); color: var(--navy); font-weight: 700; cursor: pointer;
}
.menu-button .icon-x, .menu-button[aria-expanded='true'] .icon-menu { display: none; }
.menu-button[aria-expanded='true'] .icon-x { display: inline-block; }
.site-nav { display: flex; width: 100%; flex-direction: column; gap: var(--space-2); padding-bottom: var(--space-1); }
.nav-links { display: flex; flex-direction: column; gap: var(--space-1); }
.nav-links a {
  display: flex; min-height: 48px; align-items: center; padding: var(--space-1) var(--space-2); border-radius: 8px;
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.nav-links a:hover { background: var(--canvas); }
.nav-links a[aria-current='page'] { color: var(--navy); font-weight: 700; box-shadow: inset 4px 0 0 var(--gold); }
.nav-actions { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.nav-actions .button { flex: 1 1 160px; }

/* With script, the phone menu opens from a button; without it, the links simply stack. */
.js .site-nav {
  display: none; position: absolute; top: 100%; right: 0; left: 0; z-index: var(--z-menu);
  max-height: calc(100vh - var(--header-height)); overflow-y: auto;
  padding: var(--space-2); border-bottom: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 16px 24px rgba(20, 49, 73, .12);
}
.js .site-nav.is-open { display: flex; }

/* Hero and page heroes */
.hero, .page-hero { background: var(--navy); color: white; }
.hero { padding-block: var(--space-6); }
.page-hero { padding-block: var(--space-6); }
.hero-grid { display: grid; gap: var(--space-6); }
.hero-copy { display: grid; min-width: 0; align-content: start; gap: var(--space-3); }
.eyebrow { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--gold-on-dark); font-weight: 700; }
.eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--gold); }
.eyebrow-dark { color: var(--navy); }
.hero h1, .page-hero h1 { max-width: 760px; font-size: var(--text-24); font-weight: 800; }
.page-hero h1 { margin-top: var(--space-2); }
.lead { max-width: 680px; color: var(--on-navy); font-size: var(--text-14); }
.page-hero .lead { margin-top: var(--space-2); }
.hero .lead a, .page-hero .lead a { color: white; }
.page-hero .actions { margin-top: var(--space-4); }
.hero-points { display: grid; gap: var(--space-1); color: var(--on-navy); }
.hero-points li { display: flex; align-items: flex-start; gap: var(--space-1); }
.hero-points .icon { height: 24px; color: var(--gold); }
.jump-links { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-4); }
.jump-links a {
  display: inline-flex; min-height: 44px; align-items: center; padding: var(--space-1) var(--space-2);
  border: 1px solid var(--navy-line); border-radius: 999px; color: white; text-decoration: none;
}
.jump-links a:hover { border-color: var(--on-navy); background: rgba(255, 255, 255, .08); }

/* Example invoice and FBR answer */
.sample { display: grid; min-width: 0; align-content: start; gap: var(--space-2); }
.sample figcaption { color: var(--on-navy); }
.sample-answer figcaption { color: var(--muted); }
.sample-card {
  display: grid; gap: var(--space-2); padding: var(--space-2); border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
}
.sample-answer .sample-card { box-shadow: 0 8px 24px rgba(20, 49, 73, .10); }
.sample-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-1) var(--space-2); }
.sample-label { color: var(--muted); font-weight: 600; }
.sample-number { font-size: var(--text-16); font-weight: 800; }
.status-pill {
  display: inline-flex; min-height: 32px; align-items: center; gap: var(--space-1); padding: 0 var(--space-2);
  border-radius: 999px; font-weight: 700; white-space: nowrap;
}
.status-pill.is-success { background: var(--success-bg); color: var(--success); }
.status-pill.is-danger { background: var(--danger-bg); color: var(--danger); }
.status-pill.is-warning { background: var(--warning-bg); color: var(--warning); }
.status-pill.is-navy { background: var(--navy); color: white; }
.status-pill.is-neutral { background: var(--canvas); color: var(--ink); }
.sample-parties { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); padding-block: var(--space-2); border-block: 1px solid var(--line); }
.sample-parties dt, .sample-totals dt { color: var(--muted); }
.sample-parties dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.sample-lines { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sample-lines th, .sample-lines td { padding: var(--space-1) 0; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.sample-lines th:first-child { padding-right: var(--space-2); text-align: left; }
.sample-lines td + td { padding-left: var(--space-2); }
.sample-lines thead th { color: var(--muted); font-weight: 600; }
.sample-lines tbody th { font-weight: 700; }
.sample-lines tbody th span { display: block; color: var(--muted); font-weight: 400; white-space: nowrap; }
.sample-totals { display: grid; gap: var(--space-1); font-variant-numeric: tabular-nums; }
.sample-totals div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-1); }
.sample-totals dd { margin: 0; font-weight: 600; }
.sample-totals .is-total { padding-top: var(--space-1); border-top: 1px solid var(--line); }
.sample-totals .is-total dt, .sample-totals .is-total dd { color: var(--ink); font-size: var(--text-14); font-weight: 800; }
.sample-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1); }
.sample-steps li {
  display: flex; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-2); border-radius: 12px;
  background: var(--success-bg); color: var(--success); font-weight: 700;
}
.sample-fbr { padding: var(--space-1) var(--space-2); border-left: 4px solid var(--gold); border-radius: 12px; background: var(--canvas); overflow-wrap: anywhere; }
.sample-fbr strong { display: block; font-variant-numeric: tabular-nums; }
.answer-lines { display: grid; gap: var(--space-1); }
.answer-lines li { display: flex; align-items: flex-start; gap: var(--space-1); padding: var(--space-1) var(--space-2); border-radius: 12px; }
.answer-lines .icon { height: 24px; }
.answer-lines strong { display: block; }
.answer-lines .is-ok { background: var(--success-bg); color: var(--success); }
.answer-lines .is-error { background: var(--danger-bg); color: var(--danger); }
.answer-note { color: var(--muted); }

/* Audience strip */
.audience { padding-block: var(--space-4); border-bottom: 1px solid var(--line); background: var(--surface); }
.audience-title { color: var(--muted); font-size: var(--text-14); font-weight: 800; }
.audience-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--space-2) var(--space-4); margin-top: var(--space-2); }
.audience-list li { display: flex; align-items: center; gap: var(--space-2); font-weight: 700; }
.audience-list .icon { color: var(--navy); }

/* Sections */
.section { padding-block: var(--space-6); }
.section-surface { background: var(--surface); }
/* One head pattern for every section (flow v20): the result as the h2 (32px), 16px, then at most one intro line or two
   (18.67px, under 80 characters a line), then 32px to the content. */
.section-head { display: grid; max-width: 784px; gap: var(--space-2); margin-bottom: var(--space-4); }
.section-head h2 { font-size: var(--text-24); font-weight: 800; }
.section-head > p:last-child:not(.eyebrow) { max-width: 760px; color: var(--muted); font-size: var(--text-14); }
.section-more { margin-top: var(--space-3); }

.card { min-width: 0; padding: var(--space-3); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.section-surface .card { background: var(--canvas); border-color: transparent; }
.section-surface .card-plain { background: var(--surface); border-color: var(--line); }
.card h3 { margin-top: var(--space-2); font-size: var(--text-16); font-weight: 800; }
.card p { margin-top: var(--space-1); color: var(--muted); }
.card-grid { display: grid; gap: var(--space-3); }
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.feature-icon {
  display: inline-grid; width: 48px; height: 48px; place-items: center; border-radius: 12px;
  background: var(--navy-tint); color: var(--navy);
}
.fbr-grid { display: grid; gap: var(--space-4); align-items: start; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--space-3); counter-reset: step; }
.steps li { counter-increment: step; border-top: 6px solid var(--navy); }
.steps li::before {
  content: counter(step); display: inline-grid; width: 40px; height: 40px; place-items: center;
  border-radius: 999px; background: var(--navy); color: white;
  font-size: var(--text-14); font-weight: 800;
}

/* Security */
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--space-4); }
.check-grid li { display: flex; align-items: flex-start; gap: var(--space-2); }
.check-grid > li > .icon { color: var(--navy); }
.check-grid h3 { font-size: var(--text-14); font-weight: 800; }
.check-grid p { margin-top: var(--space-1); color: var(--muted); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--space-4); max-width: 960px; }
.price-card { display: flex; flex-direction: column; gap: var(--space-2); border-top: 4px solid var(--navy); }
.price-card.is-featured { border-top-color: var(--gold); }
.price-card h3 { margin: 0; }
.price-card p { margin: 0; }
.price-card .price { color: var(--ink); font-size: var(--text-24); font-weight: 800; }
.price-card .button { align-self: flex-start; margin-top: auto; }
.tick-list { display: grid; gap: var(--space-1); }
.tick-list li { display: flex; align-items: flex-start; gap: var(--space-1); }
.tick-list .icon { height: 24px; color: var(--success); }
.tick-list-wide { gap: var(--space-2); }
.tick-list-wide li { padding-bottom: var(--space-2); border-bottom: 1px solid var(--line); }
.tick-list-wide li:last-child { padding-bottom: 0; border-bottom: 0; }
.tick-list-wide strong { color: var(--ink); }
.tick-list-wide span { color: var(--muted); }

/* Features page */
.feature-row { display: grid; gap: var(--space-4); }
.feature-intro { display: grid; align-content: start; gap: var(--space-2); }
.feature-intro h2 { font-size: var(--text-24); font-weight: 800; }
.feature-intro p { color: var(--muted); font-size: var(--text-14); }

/* FAQ */
.faq-groups { display: grid; gap: var(--space-6); }
.faq-group > h2, .faq-group > h3 { margin-bottom: var(--space-2); font-size: var(--text-18); font-weight: 800; }

/* Text sections (custom pages such as a privacy notice) */
.prose { display: grid; gap: var(--space-2); }
.prose > h2 { font-size: var(--text-24); font-weight: 800; }
.prose h2:not(:first-child), .prose h3 { margin-top: var(--space-2); }
.prose h3 { font-size: var(--text-16); font-weight: 800; }
.prose h4 { margin-top: var(--space-1); font-size: var(--text-14); }
.prose p, .prose li { max-width: 72ch; color: var(--muted); }
.prose ul { display: grid; gap: var(--space-1); padding-left: var(--space-3); list-style: disc; }
.faq-answer h4, .faq-answer h5 { margin: var(--space-1) 0 0; color: var(--ink); font-size: var(--text-12); }
.contact-pending { margin-top: var(--space-2); color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: var(--space-2) 0; color: var(--ink); font-size: var(--text-14); font-weight: 700; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--navy); }
.faq summary .icon { color: var(--navy); transition: transform .15s ease; }
.faq[open] summary .icon { transform: rotate(180deg); }
.faq-answer { display: grid; gap: var(--space-1); max-width: 72ch; padding-bottom: var(--space-3); color: var(--muted); }
.faq-answer ul { display: grid; gap: var(--space-1); padding-left: var(--space-3); list-style: disc; }
/* ---------- Common questions (#questions, home) on desktop: one column (flow v20) ---------- */
/* One column of 880px that starts on the content's left edge like every other screen, read top to bottom; an answer
   opens under its own question, so the row you clicked never moves. Home page only (.showcase-hero ~): the guides and
   /munshi/ keep their own centred #questions. */
@media (min-width: 960px) {
  .showcase-hero ~ #questions .container.narrow { max-width: 1200px; }
  .showcase-hero ~ #questions :is(.faq-groups, .section-more) { max-width: 880px; }
  /* The answers read at most about 80 characters a line (72ch gave 95-100 in this column; checker 2026-11-17). */
  .showcase-hero ~ #questions .faq-answer { max-width: 576px; }
}

/* Contact */
.contact-grid { display: grid; gap: var(--space-4); align-items: start; }
.contact-side { display: grid; gap: var(--space-3); }
.contact-side h2, .contact-form-card h2 { font-size: var(--text-16); font-weight: 800; }
.contact-side .card > .button { margin-top: var(--space-2); }
.contact-side .tick-list { margin-top: var(--space-2); }
.contact-list { display: grid; gap: var(--space-2); margin-top: var(--space-2); }
.contact-list li { display: flex; align-items: flex-start; gap: var(--space-2); overflow-wrap: anywhere; }
.contact-list .icon { color: var(--navy); }
.contact-list a { font-weight: 700; }
.form-intro { margin-top: var(--space-1); color: var(--muted); }
.contact-form { display: grid; gap: var(--space-3); margin-top: var(--space-3); }
.form-grid { display: grid; gap: var(--space-3); }
.form-grid label { display: grid; gap: var(--space-1); min-width: 0; font-weight: 700; }
.optional { color: var(--muted); font-weight: 400; }
.form-grid input, .form-grid select, .form-grid textarea {
  width: 100%; min-height: 48px; padding: var(--space-1) var(--space-2); border: 1px solid var(--field); border-radius: 8px;
  background: var(--surface); color: var(--ink); font-weight: 400;
}
.form-grid textarea { resize: vertical; }
.form-grid input:focus-visible, .form-grid select:focus-visible, .form-grid textarea:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.form-warning { display: flex; align-items: flex-start; gap: var(--space-1); padding: var(--space-2); border-radius: 12px; background: var(--warning-bg); color: var(--warning); }
.form-warning .icon { height: 24px; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.form-status:empty { display: none; }
.form-status { padding: var(--space-2); border-left: 6px solid var(--success); border-radius: 12px; background: var(--success-bg); color: var(--success); }

/* Call-to-action band */
.cta-band { padding-block: var(--space-6); background: var(--navy); color: white; }
.cta-inner { display: grid; gap: var(--space-3); align-items: center; }
.cta-inner h2 { font-size: var(--text-24); font-weight: 800; }
.cta-inner p { max-width: 640px; margin-top: var(--space-1); color: var(--on-navy); font-size: var(--text-14); }

/* Footer */
.site-footer { padding-top: var(--space-6); background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--space-4); }
.footer-brand { display: grid; align-content: start; gap: var(--space-2); }
.footer-brand img { width: 111px; height: 44px; }
.footer-brand p { color: var(--muted); }
.site-footer h2 { font-size: var(--text-12); font-weight: 700; color: var(--ink); }
.footer-links ul { display: grid; gap: var(--space-1); margin-top: var(--space-2); }
.footer-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); }
.footer-contact .contact-list a { min-height: 24px; color: var(--ink); }
.footer-legal { display: grid; gap: var(--space-1); margin-top: var(--space-6); padding-block: var(--space-3) var(--space-6); border-top: 1px solid var(--line); color: var(--muted); }
/* ---------- Footer on desktop: one short last screen (owner 2026-11-14; flow v20) ---------- */
/* From 960px the Explore links stand in two columns, read down the first, so the footer is about 380px tall and shares
   the last screen with the contact band (site.js). Where the footer has a screen of its own, its links start at the top
   and the legal lines sit at its foot; nothing is centred. From 1200px each link column is as wide as its longest link,
   so "Guides to FBR Digital Invoicing" stays on one line. Phones and tablets are unchanged. */
@media (min-width: 960px) {
  .footer-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) minmax(0, 3fr) minmax(0, 4fr); }
  nav.footer-links ul { display: block; columns: 2; column-gap: var(--space-3); }
  nav.footer-links li { padding-bottom: var(--space-1); break-inside: avoid; }
  .snap-on .site-footer { display: flex; flex-direction: column; min-height: calc(100vh - var(--snap-top, var(--header-height))); }
  .snap-on .footer-grid { flex: 1 0 auto; align-content: start; }
}
@media (min-width: 1200px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr) max-content max-content minmax(0, 1fr); }
  nav.footer-links ul { display: grid; grid-auto-flow: column; grid-template-columns: repeat(2, max-content); grid-template-rows: repeat(4, auto); gap: 0 var(--space-4); }
  nav.footer-links ul:not(:has(> li:nth-child(7))) { grid-template-rows: repeat(3, auto); }
  nav.footer-links ul:has(> li:nth-child(9)) { grid-template-rows: repeat(5, auto); }
  nav.footer-links ul:has(> li:nth-child(11)) { grid-template-rows: repeat(6, auto); }
}

@media (min-width: 720px) {
  .container { padding-inline: var(--space-4); }
  .hero { padding-block: var(--space-8); }
  .hero h1, .page-hero h1 { font-size: var(--text-32); }
  .page-hero { padding-block: var(--space-8); }
  .section { padding-block: var(--space-8); }
  .sample-card { padding: var(--space-3); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .span-2 { grid-column: 1 / -1; }
  .cta-inner { grid-template-columns: minmax(0, 1fr) auto; }
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: var(--space-8); }
  .fbr-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .feature-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: var(--space-8); }
  .contact-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
  .contact-side { order: 2; }
}

@media (min-width: 1080px) {
  .brand img { width: 116px; height: 46px; }
  .menu-button { display: none; }
  .site-nav, .js .site-nav {
    position: static; display: flex; width: auto; max-height: none; flex-direction: row; align-items: center;
    gap: var(--space-3); padding: 0; overflow: visible; border: 0; box-shadow: none; background: transparent;
  }
  .nav-links { flex-direction: row; gap: 0; }
  .nav-links a { padding: var(--space-1) var(--space-2); }
  .nav-links a[aria-current='page'] { box-shadow: inset 0 -3px 0 var(--gold); border-radius: 8px 8px 0 0; }
  .nav-actions .button { flex: none; }
  .header-inner { flex-wrap: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .faq summary .icon { transition: none; }
}

@media print {
  .site-header, .cta-band, .skip-link, .preview-banner { display: none; }
  .hero, .page-hero { background: none; color: var(--ink); }
  .lead, .hero-points { color: var(--ink); }
}

/* ==========================================================================
   SITE-003: phone-first sections (owner approved preview v2, 2026-11-01).
   Base styles are for phones; larger screens are added at the end. Motion comes from
   site.js and stops for people who ask for reduced motion.
   ========================================================================== */

:root {
  --navy-deep: #0d2335;
  --device: #0a1826;
  --gold-soft: #f6e7cf;
  /* Contrast (WCAG AA, measured on the rendered page, owner 2026-11-14). Gold #d9a55a stays for fills, rules, icons and
     text 24px and up. Smaller gold text on navy uses --gold-on-dark (the design system's dark-theme light gold): 4.8:1 at
     the brightest point of the blue light under a veiled card, 5.8:1 on bare navy under it. Gold marks on light
     pictures use --gold-strong (the design system's focus gold): 3.4:1 on navy-tint, 4.1:1 on white. State graphics
     on navy use --navy-line-strong: 3.6:1 under the blue light. */
  --gold-on-dark: #f1c27d;
  --gold-strong: #a8741f;
  --navy-line-strong: #8aa1b4;
  --veil: rgba(255, 255, 255, .07);
  --veil-strong: rgba(255, 255, 255, .12);
  --rule: rgba(216, 227, 235, .07);
  --ledger-gold: rgba(217, 165, 90, .24);
  --glow: rgba(217, 165, 90, .18);
  /* Ambient light on navy is blue only: a see-through gold layer over navy mixes to grey (reviews 2026-11-13). */
  --glow-cool: rgba(84, 132, 170, .22);
  --shadow-soft: 0 8px 24px rgba(20, 49, 73, .10);
  --shadow-lift: 0 18px 40px rgba(20, 49, 73, .16);
  --shadow-chip: 0 12px 28px rgba(6, 18, 30, .32);
  --shadow-device: 0 30px 60px rgba(4, 12, 20, .5);
}

html { overflow-x: clip; }
body { overflow-x: clip; }

.button { transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; }
.button:active { transform: translateY(1px); } /* A press moves, never shrinks: 16px text stays 16px in every frame (checker 2026-11-17). */
/* Flow v21 (builder 2): flat, no halo (the gold button is a fill, not a light). */
.button-gold { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.button-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }

/* ---------- Hero with the app on a phone ---------- */
/* Flow v21 (builder 2): one flat navy fill; the ledger grid and the gold glow are gone. */
.showcase-hero { position: relative; overflow: clip; padding-block: var(--space-4) 0; background: var(--navy); }
.showcase-hero .hero-grid { position: relative; gap: var(--space-3); }
.showcase-hero .hero-copy { gap: var(--space-2); }
.showcase-hero h1 { max-width: 640px; font-size: var(--text-24); font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.showcase-hero h1 em { font-style: normal; color: var(--gold); }
.showcase-hero .lead { max-width: 600px; font-size: var(--text-14); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.hero-ctas .button { flex: 1 1 auto; padding-inline: var(--space-2); white-space: nowrap; }
.microcopy { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); color: var(--on-navy); font-size: var(--text-12); }
.microcopy span { display: inline-flex; align-items: center; gap: var(--space-1); }
.microcopy .icon { color: var(--gold); }
.microcopy-link { display: inline-flex; min-height: 24px; align-items: center; gap: var(--space-1); color: white; font-weight: 700; }

/* Flow v20: the hero picture is invoice #142 on a phone and nothing else. Below 1200px the hero's edge crops the phone
   16px under its FBR number card (the screen's proof), never through it. */
.hero-scene { position: relative; width: 100%; max-width: 440px; height: 488px; margin-inline: auto; }
.phone {
  position: absolute; z-index: 3; top: 16px; left: calc(50% - 148px); width: 296px; height: 600px;
  padding: var(--space-1); border-radius: 38px; background: var(--device);
  box-shadow: var(--shadow-device), inset 0 0 0 2px var(--navy-line);
}
.phone::before { content: ''; position: absolute; z-index: 3; top: 16px; left: calc(50% - 40px); width: 80px; height: 24px; border-radius: 12px; background: var(--device); }
.w66 { width: 66%; }

/* Stored content only (the v20 navy demo band's top edge); the home page has no perforated edge since flow v21. */
.perforation {
  position: absolute; left: 0; right: 0; z-index: 5; height: 12px; pointer-events: none;
  background: radial-gradient(circle at 10px 12px, var(--surface) 6px, transparent 6.5px) 0 0 / 20px 12px repeat-x;
}
.perforation-top { top: -1px; background-image: radial-gradient(circle at 10px 0, var(--surface) 6px, transparent 6.5px); }

.proof-band { background: var(--surface); }
.proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1); padding-block: var(--space-3) var(--space-1); }
.proof li { display: flex; align-items: center; gap: var(--space-1); min-height: 56px; padding: var(--space-1) var(--space-2); border-radius: 12px; background: var(--canvas); font-weight: 700; font-size: var(--text-12); line-height: 1.3; }
.proof .icon-wrap { display: grid; width: 40px; height: 40px; flex: none; place-items: center; border-radius: 12px; background: var(--navy); color: var(--gold); }

/* ---------- The app on a phone, in the production app's colours (Liquid Rail) ---------- */
.app-light {
  --a-canvas: #eef1f4; --a-surface: #ffffff; --a-ink: #172536; --a-muted: #566575; --a-line: #d8dce1;
  --a-primary: #143149; --a-on-primary: #ffffff; --a-success: #176b43; --a-success-bg: #e8f4ed;
  --a-warning: #8a5715; --a-warning-bg: #fff2da; --a-glass: rgba(255, 255, 255, .72); --a-glass-line: rgba(255, 255, 255, .92);
  --a-active-bg: #143149; --a-active-ink: #ffffff; --a-glow: rgba(217, 165, 90, .2); --a-glow-2: rgba(20, 49, 73, .16);
  --a-shadow: 0 6px 16px rgba(20, 49, 73, .12);
}
.app-dark {
  --a-canvas: #0b1219; --a-surface: #141e28; --a-ink: #eaf0f5; --a-muted: #9daab7; --a-line: #26333f;
  --a-primary: #e6eef6; --a-on-primary: #0f2537; --a-success: #7fd4a4; --a-success-bg: #133022;
  --a-warning: #f1c27d; --a-warning-bg: #34280f; --a-glass: rgba(26, 37, 49, .74); --a-glass-line: rgba(255, 255, 255, .1);
  --a-active-bg: rgba(255, 255, 255, .14); --a-active-ink: #ffffff; --a-glow: rgba(217, 165, 90, .12); --a-glow-2: rgba(60, 110, 170, .3);
  --a-shadow: 0 6px 16px rgba(0, 0, 0, .4);
}
.app {
  position: relative; height: 100%; overflow: hidden; border-radius: 30px; color: var(--a-ink); font-size: var(--text-12); line-height: 1.5;
  background: radial-gradient(90% 40% at 100% 0%, var(--a-glow), transparent 70%), radial-gradient(80% 40% at 0% 100%, var(--a-glow-2), transparent 70%), var(--a-canvas);
  transition: background-color .4s ease, color .4s ease;
}
.app-status { display: flex; align-items: center; justify-content: space-between; padding: var(--space-1) var(--space-3) 0; font-weight: 700; }
.app-top {
  position: absolute; z-index: 2; top: 40px; left: 8px; right: 8px; display: flex; align-items: center; gap: var(--space-1); height: 48px; padding: 0 var(--space-1) 0 var(--space-2);
  border: 1px solid var(--a-glass-line); border-radius: 999px; background: var(--a-glass); box-shadow: var(--a-shadow);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.app-top strong { flex: 1; min-width: 0; white-space: nowrap; }
.app-top .icon { color: var(--a-muted); }
.app-av { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 50%; background: var(--a-primary); color: var(--a-on-primary); font-weight: 800; }
.app-body { display: grid; gap: var(--space-1); padding: calc(var(--space-8) + var(--space-4)) var(--space-1) calc(var(--space-8) + var(--space-2)); }
.a-card { display: grid; gap: 0; padding: var(--space-1) var(--space-2); border: 1px solid var(--a-line); border-radius: 12px; background: var(--a-surface); box-shadow: var(--a-shadow); }
.a-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 var(--space-1); }
.app-body > .a-row { padding-inline: var(--space-1); }
.a-pill { display: inline-flex; align-items: center; gap: var(--space-1); padding: 0 var(--space-1); border-radius: 999px; background: var(--a-success-bg); color: var(--a-success); font-weight: 700; white-space: nowrap; }
.a-pill.is-warning { background: var(--a-warning-bg); color: var(--a-warning); }
.a-muted { color: var(--a-muted); }
.a-total { font-size: var(--text-16); font-weight: 800; font-variant-numeric: tabular-nums; }
.a-ok { display: inline-flex; align-items: center; gap: 0; color: var(--a-success); font-weight: 700; }
.a-fbr { display: flex; align-items: center; gap: var(--space-1); border-left: 3px solid var(--gold); }
.a-fbr strong { display: block; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.a-fbr .qr { width: 40px; height: 40px; flex: none; color: var(--a-ink); }
.a-stats { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-1); }
.a-stats .a-card { padding: var(--space-1); }
.a-stat { font-size: var(--text-14); font-weight: 800; font-variant-numeric: tabular-nums; }
.app-nav { position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 16px; display: flex; align-items: center; gap: var(--space-1); }
.app-tabs {
  display: grid; flex: 1; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0;
  border: 1px solid var(--a-glass-line); border-radius: 999px; background: var(--a-glass); box-shadow: var(--a-shadow);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.app-tabs span { display: grid; place-items: center; padding: var(--space-1) 0; border-radius: 999px; color: var(--a-muted); }
.app-tabs span.is-on { background: var(--a-active-bg); color: var(--a-active-ink); }
.app-plus { display: grid; width: 48px; height: 48px; flex: none; place-items: center; border-radius: 50%; background: var(--a-primary); color: var(--a-on-primary); box-shadow: var(--a-shadow); }

/* ---------- Who it is for (tabs) ---------- */
.audience-tabs h2 { font-size: var(--text-24); font-weight: 800; }
.audience-tabs .container > p { margin-top: var(--space-1); color: var(--muted); }
.tabs { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-1); margin-top: var(--space-3); }
.js .tabs { display: grid; }
.tabs .tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 359px) { .tabs { grid-template-columns: minmax(0, 1fr); } }
.tab {
  display: flex; min-height: 52px; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-2);
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
  font-weight: 700; font-size: var(--text-12); line-height: 1.25; text-align: left; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.tab .icon { color: var(--navy); }
.tab[aria-selected="true"] { border-color: var(--navy); background: var(--navy); color: white; }
.tab[aria-selected="true"] .icon { color: var(--gold); }
/* Below 400px a half-width tab has room for "Manufacturers" only with 8px side padding. */
@media (max-width: 399px) { .tab { padding-inline: var(--space-1); } }
.panel { display: grid; gap: var(--space-3); margin-top: var(--space-2); padding: var(--space-2); border-radius: 12px; background: var(--canvas); }
.js .panel:not(.is-current) { display: none; }
.panel h3 { font-size: var(--text-16); font-weight: 800; }
.panel-points { display: grid; gap: var(--space-1); margin-top: var(--space-2); }
.panel-points li { display: flex; gap: var(--space-1); align-items: flex-start; }
.panel-points .icon { height: 24px; color: var(--success); }
.panel-note { display: flex; gap: var(--space-1); align-items: flex-start; margin-top: var(--space-2); padding: var(--space-1) var(--space-2); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: var(--text-12); }
.panel-note .icon { height: 24px; }
.panel-viz { display: grid; gap: var(--space-1); align-content: start; padding: var(--space-2); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-soft); font-size: var(--text-12); }
.viz-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 var(--space-1); padding: var(--space-1) var(--space-2); border-radius: 12px; background: var(--canvas); font-variant-numeric: tabular-nums; }
.viz-label { color: var(--muted); font-size: var(--text-12); font-weight: 600; }
.panel.is-entering { animation: panel-in .35s ease; }

/* ---------- Tiles and their pictures ---------- */
.tile {
  position: relative; display: grid; align-content: start; gap: var(--space-2); min-width: 0; padding: var(--space-2);
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.tile:active { transform: translateY(1px); }
.tile h3 { font-size: var(--text-14); font-weight: 800; }
.tile p { color: var(--muted); }
.section-surface .tile { background: var(--surface); }
.viz { position: relative; display: grid; gap: var(--space-1); align-content: start; min-height: 132px; padding: var(--space-2); overflow: hidden; border-radius: 12px; background: var(--navy-tint); font-size: var(--text-12); line-height: 1.35; }
.viz-card { display: grid; gap: var(--space-1); padding: var(--space-1) var(--space-2); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-soft); }
.viz-muted { color: var(--muted); }
.viz-tag { display: inline-flex; align-items: center; gap: var(--space-1); padding: 0 var(--space-1); border-radius: 999px; background: var(--canvas); font-weight: 700; font-size: var(--text-12); font-variant-numeric: tabular-nums; white-space: nowrap; }
:is(.viz-tag, .a-pill, .mini-pill, .mf-ways span, .mf-choices span, .mk-chips > *) { line-height: 1.5; }
.viz-tag.is-ok { background: var(--success-bg); color: var(--success); }
.viz-tag.is-bad { background: var(--danger-bg); color: var(--danger); }
.viz-tag.is-warn { background: var(--warning-bg); color: var(--warning); }
.viz-tag.is-navy { background: var(--navy); color: white; }
.viz-tag.is-gold { background: var(--gold); color: var(--navy-deep); }
.viz-tags { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.viz-tags.is-column { flex-direction: column; align-items: flex-end; }
.viz-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1); }
.viz .qr { width: 40px; height: 40px; color: var(--navy); }
.track { position: relative; height: 8px; overflow: hidden; border-radius: 4px; background: var(--surface); }
.track > i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: var(--gold-strong); }
.grow-x { transform-origin: left; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.grow-y { transform-origin: bottom; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.rise { transition: transform .6s ease, opacity .6s ease; }
.rise:nth-child(2) { transition-delay: .12s; } .rise:nth-child(3) { transition-delay: .24s; } .rise:nth-child(4) { transition-delay: .36s; }
/* With script and motion, a picture starts part-way (still visible) and settles when it scrolls into view. */
.anim-ready .tile:not(.in-view) .grow-x { transform: scaleX(.25); }
.anim-ready .tile:not(.in-view) .grow-y { transform: scaleY(.3); }
.anim-ready .tile:not(.in-view) .rise { transform: translateY(10px); }
.strike { text-decoration: line-through; text-decoration-color: var(--danger); text-decoration-thickness: 2px; }
.select { display: grid; gap: var(--space-1); }
.select .opt { display: flex; justify-content: space-between; gap: var(--space-1); padding: var(--space-1) var(--space-2); border-radius: 8px; background: var(--surface); }
.select .opt.is-picked { outline: 2px solid var(--navy); }
.calc { display: grid; gap: var(--space-1); font-variant-numeric: tabular-nums; }
.calc .viz-line { padding: var(--space-1) var(--space-2); border-radius: 12px; background: var(--surface); }
.calc .is-total { background: var(--navy); color: white; font-weight: 800; }
.arrow-flow { display: flex; align-items: center; gap: var(--space-1); }
.arrow-flow .icon { color: var(--navy); }
.mini-chart { display: flex; align-items: end; gap: var(--space-1); height: 70px; }
.mini-chart i { flex: 1; border-radius: 4px 4px 0 0; background: var(--navy); }
.mini-chart i:last-child { background: var(--gold-strong); }
.h40 { height: 40%; } .h48 { height: 48%; } .h62 { height: 62%; } .h80 { height: 80%; } .h92 { height: 92%; }
.aging { display: flex; height: 12px; overflow: hidden; border-radius: 6px; }
.aging i { display: block; height: 100%; }
.aging .a1 { width: 58%; } .aging .a2 { width: 27%; } .aging .a3 { width: 15%; }
.a1 { background: var(--success); } .a2 { background: var(--gold-strong); } .a3 { background: var(--danger); }
.legend { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-2); color: var(--muted); font-size: var(--text-12); }
.legend span { display: inline-flex; align-items: center; gap: var(--space-1); }
.legend i { width: 8px; height: 8px; border-radius: 2px; }
.paper-stack { position: relative; width: 100px; height: 96px; }
.paper-stack span { position: absolute; top: 6px; left: 12px; width: 64px; height: 84px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-soft); transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.paper-stack span:nth-child(1) { transform: rotate(-10deg) translateX(-6px); }
.paper-stack span:nth-child(2) { transform: rotate(-3deg); }
.paper-stack span:nth-child(3) { transform: rotate(5deg) translateX(10px); }
.anim-ready .tile:not(.in-view) .paper-stack span { transform: none; }
.avatars { display: flex; }
.avatars b { display: grid; width: 48px; height: 48px; place-items: center; margin-left: calc(-1 * var(--space-1)); border: 2px solid var(--navy-tint); border-radius: 50%; background: var(--navy); color: white; font-size: var(--text-12); }
.avatars b:first-child { margin-left: 0; background: var(--gold); color: var(--navy-deep); }

/* ---------- Problems and fixes ---------- */
.problems { display: grid; gap: var(--space-2); }
.problem .kicker { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--danger); font-weight: 700; font-size: var(--text-12); }
.problem .fix { display: flex; gap: var(--space-1); align-items: flex-start; padding: var(--space-2); border-radius: 12px; background: var(--success-bg); color: var(--success); }
.problem .fix .icon { flex: none; height: 24px; }
.problem .fix span { color: var(--ink); }
.problem .fix strong { color: var(--success); }
.dup .viz-card + .viz-card { margin-top: calc(-1 * var(--space-1)); margin-left: var(--space-3); transform: rotate(3deg); opacity: .9; }

/* ---------- What changes (#fbr) on desktop: the whole section in one screen (owner 2026-11-14) ---------- */
/* One wheel click shows the whole section. The heading is one row: eyebrow and title on the left, the one-line intro on
   the right, on the title's baseline. In each tile the picture's cards get 8px more room on each side, so more of their
   tags stay on one line; the kicker sits 8px closer to its title; and the fix box's tick starts its first line, so the
   text has the box's full width (a line fewer in the longest boxes). Short screens (780px tall or less, from 1200px
   wide, where the four tiles share one row): the heading is 8px closer to the tiles, the pictures' frames are 8px all
   round, and the "Guessing what FBR said" picture leaves out its first card ("FBR replied: Received"), keeping "error
   0052: Invalid" and "Not accepted". Phones and tablets (under 960px) are unchanged. */
@media (min-width: 960px) {
  #fbr .problem .viz { padding: var(--space-2) var(--space-1); }
  #fbr .problem .viz-card { padding: var(--space-1); }
  #fbr .problem .kicker { margin-bottom: calc(-1 * var(--space-1)); }
  #fbr .problem .fix { display: block; }
  #fbr .problem .fix .icon { display: inline-block; margin-right: var(--space-1); vertical-align: top; }
}
@media (min-width: 1200px) and (max-height: 780px) {
  #fbr .section-head { margin-bottom: var(--space-3); }
  #fbr .problem .viz { padding: var(--space-1); }
  #fbr .problem .viz > .viz-card:has(.icon-server) { display: none; }
}

/* ---------- Invoice story ---------- */
.journey { position: relative; overflow-x: clip; padding-block: var(--space-6) var(--space-3); color: white; background: var(--navy); }
.journey .section-head > p:last-child:not(.eyebrow), .section-navy .section-head > p:last-child:not(.eyebrow) { color: var(--on-navy); }
.journey-frame { display: grid; gap: var(--space-2); align-content: start; }
.rail { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: var(--space-2); --progress: 1; }
.rail::before, .rail::after { content: ''; position: absolute; top: 7px; left: 10%; width: 80%; height: 2px; background: var(--navy-line); }
.rail::after { background: var(--gold); transform: scaleX(var(--progress)); transform-origin: left; transition: transform .45s ease; }
.rail li { position: relative; z-index: 1; display: grid; justify-items: center; gap: var(--space-1); color: var(--on-navy); font-size: var(--text-12); text-align: center; }
.rail li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--gold); background: var(--gold); transition: background-color .3s, border-color .3s; }
.journey.is-live .rail li:not(.is-done)::before { border-color: var(--navy-line-strong); background: var(--navy-deep); }
.rail li.is-current { color: white; font-weight: 700; }
.j-card { display: grid; gap: var(--space-2); padding: var(--space-2); border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.stack { display: grid; }
.stack > * { grid-area: 1 / 1; }
.stack.is-inline { display: inline-grid; }
.pill-stack { justify-items: end; }
.j-lines, .j-totals { display: none; }
.j-lines td.state { width: 64px; }
.tick { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--success); font-weight: 700; font-size: var(--text-12); }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 0; vertical-align: -2px; background: var(--navy); animation: blink 1s steps(1) infinite; }
.editing { outline: 2px dashed var(--gold); outline-offset: 2px; border-radius: 4px; }
.j-total-mini { display: flex; justify-content: space-between; align-items: center; gap: var(--space-1); font-variant-numeric: tabular-nums; }
.j-total-mini strong { font-size: var(--text-14); font-weight: 800; }
.lock-mark { display: inline-flex; align-items: center; gap: var(--space-1); }
.lock-mark .icon { color: var(--navy); }
.slot { min-height: 72px; }
.slot-box { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-2); border-radius: 12px; background: var(--canvas); font-size: var(--text-12); }
.slot-box.is-gold { border-left: 4px solid var(--gold); }
.slot-box.is-warning { background: var(--warning-bg); color: var(--warning); }
.slot-box .qr { width: 48px; height: 48px; flex: none; color: var(--navy); }
.slot-box strong { display: block; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sending { display: grid; flex: 1; gap: var(--space-1); }
.progress { position: relative; height: 6px; overflow: hidden; border-radius: 3px; background: var(--line); }
.progress::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: 3px; background: var(--gold); animation: travel 1.4s ease-in-out infinite; }
.spin { display: inline-flex; animation: spin 1s linear infinite; }
/* An element shows in the stages its data-at lists ("u" = outcome unknown). Flow v21 (builder 2): a 240ms cross-fade in
   place, the old state out while the new one comes in; nothing slides, and the card never moves or resizes. */
.journey-stage [data-at] { opacity: 0; visibility: hidden; transition: opacity .24s ease, visibility 0s linear .24s; }
.journey-stage[data-stage="0"] [data-at~="0"],
.journey-stage[data-stage="1"] [data-at~="1"],
.journey-stage[data-stage="2"] [data-at~="2"],
.journey-stage[data-stage="3"]:not([data-unknown]) [data-at~="3"],
.journey-stage[data-stage="3"][data-unknown] [data-at~="u"],
.journey-stage[data-stage="4"] [data-at~="4"] { opacity: 1; visibility: visible; transition: opacity .24s ease, visibility 0s; }
.journey-steps { display: grid; gap: var(--space-4); }
.journey-step { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-1); }
.step-kicker { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--gold-on-dark); font-weight: 700; }
.journey-steps h3 { font-size: var(--text-16); font-weight: 800; }
.journey-steps p { max-width: 52ch; color: var(--on-navy); }
.journey-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.journey-nav[hidden] { display: none; }
.journey-count { color: var(--on-navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.journey-arrow {
  display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid var(--navy-line); border-radius: 50%;
  background: transparent; color: white; cursor: pointer;
}
.journey-arrow:disabled { opacity: .35; cursor: default; }
.journey-arrow:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* With the script, the story is a pinned stage. The track is one stage tall plus four step lengths
   of scrolling; a marker every step length (no snapping: it shook the page), and the step comes from
   how far the track has moved, never from where text happens to sit, so it cannot flicker. svh keeps
   the lengths still while a phone's address bar slides in and out. */
:root { --story-step: 40vh; --story-pin: calc(100vh - var(--header-height)); }
@supports (height: 1svh) { :root { --story-step: 40svh; --story-pin: calc(100svh - var(--header-height)); } }
.journey.is-live { padding-bottom: 0; }
.journey.is-live .journey-track { position: relative; height: calc(var(--story-pin) + 4 * var(--story-step)); }
.journey:not(.is-live) .journey-snap { display: none; }
.journey-snap { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
.journey-snap:nth-child(1) { top: 0; }
.journey-snap:nth-child(2) { top: var(--story-step); }
.journey-snap:nth-child(3) { top: calc(2 * var(--story-step)); }
.journey-snap:nth-child(4) { top: calc(3 * var(--story-step)); }
.journey-snap:nth-child(5) { top: calc(4 * var(--story-step)); }
.journey.is-live .journey-pin {
  position: sticky; top: var(--header-height); display: flex; align-items: center; height: var(--story-pin); overflow: hidden;
}
.journey.is-live .journey-frame { width: 100%; padding-block: var(--space-2) var(--space-3); }
.journey.is-live .journey-steps { gap: 0; }
.journey.is-live .journey-step { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .24s ease, visibility 0s linear .24s; }
.journey.is-live .journey-step.is-active { opacity: 1; visibility: visible; transition: opacity .24s ease, visibility 0s; }
/* Phones: the stage starts at the top (so the rail never clips) and the card is one line per fact. */
@media (max-width: 959px) {
  .journey.is-live .journey-pin { align-items: flex-start; }
  .journey.is-live .journey-frame { gap: var(--space-1); padding-block: var(--space-1); }
  .journey.is-live .rail { margin-bottom: 0; }
  .journey.is-live .journey-step { gap: var(--space-1); }
  .journey.is-live .journey-steps h3 { font-size: var(--text-14); }
  .journey.is-live .journey-steps p { font-size: var(--text-12); line-height: 1.45; }
  .journey.is-live .link-button { min-height: 40px; padding: var(--space-1) var(--space-2); font-size: var(--text-12); }
  .journey.is-live .j-card { gap: var(--space-1); padding: var(--space-2) var(--space-2); }
  .journey.is-live .sample-head { flex-wrap: nowrap; align-items: center; }
  .journey.is-live .sample-label { display: none; }
  .journey.is-live .sample-number { font-size: var(--text-14); white-space: nowrap; }
  .journey.is-live .status-pill { font-size: var(--text-12); }
  .journey.is-live .j-total-mini { font-size: var(--text-12); }
  .journey.is-live .j-total-mini strong { font-size: var(--text-14); white-space: nowrap; }
  .journey.is-live .slot { min-height: 0; }
  .journey.is-live .slot-box { padding: var(--space-1) var(--space-2); gap: var(--space-1); font-size: var(--text-12); }
  .journey.is-live .slot-box .qr { width: 40px; height: 40px; }
}
/* Wherever the story runs (flow v20): the rail already names the stage, so the step's own stage line is read by
   screen readers only (the rail is decoration). */
.journey.is-live .step-kicker { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
/* Phones show the invoice's lines too, without the sales tax column (the total line carries it). */
@media (max-width: 719px) {
  .journey.is-live .j-lines { display: table; font-size: var(--text-12); }
  .journey.is-live .j-lines thead { display: none; }
  .journey.is-live .j-lines th, .journey.is-live .j-lines td { padding-block: var(--space-1); }
  .journey.is-live .journey-frame { gap: var(--space-1); }
  .journey.is-live .j-lines th:nth-child(3), .journey.is-live .j-lines td:nth-child(3) { display: none; }
  .journey.is-live .j-lines td + td { padding-left: var(--space-1); }
  .journey.is-live .j-lines th:first-child { padding-right: var(--space-1); }
  .journey.is-live .rail li:not(.is-current) { color: transparent; }
  .journey.is-live .rail li.is-current { white-space: nowrap; }
}
/* Short phones: no rail labels, no total line, and the stage is moved by scrolling or swiping. */
/* At 12pt the pinned stage needs about 800 px of screen, so shorter phones drop parts in steps rather than shrink
   text: first the step arrows (scrolling and swiping still move the story), then each line's quantity line, then the
   rail labels and the total line. */
@media (max-width: 959px) and (max-height: 840px) {
  .journey.is-live .journey-nav:not([hidden]) { display: none; }
}
@media (max-width: 959px) and (max-height: 780px) {
  .journey.is-live .j-lines tbody th span:not(.stack) { display: none; }
}
@media (max-width: 959px) and (max-height: 720px) {
  .journey.is-live .rail li { gap: 0; line-height: 0; color: transparent; }
  .journey.is-live .rail li.is-current { color: transparent; }
  .journey.is-live .j-total-mini { display: none; }
}
/* Narrow phones: the header pill and the lines table lose their tick icons (the pill already names the state). */
@media (max-width: 399px) {
  .journey.is-live .status-pill { gap: var(--space-1); padding: 0 var(--space-1); }
  .journey.is-live .status-pill > .icon, .journey.is-live .status-pill .spin { display: none; }
  .journey.is-live .j-lines td.state { display: none; }
}
.link-button {
  align-self: flex-start; display: inline-flex; min-height: 44px; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-2);
  border: 1px solid var(--on-navy); border-radius: 8px; background: transparent; color: white; font-weight: 700; text-align: left; cursor: pointer;
}
.link-button[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-on-dark); }

/* ---------- Feature tiles: swipe on phones, a bento grid on large screens ---------- */
.carousel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: var(--space-2);
  margin-inline: calc(-1 * var(--space-2)); padding: var(--space-1) var(--space-2) var(--space-2);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
.carousel-nav { display: none; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-1); }
.js .carousel-nav { display: flex; }
.dots { display: flex; gap: var(--space-1); }
.dots span { width: 8px; height: 8px; border-radius: 4px; background: var(--muted); transition: width .25s ease, background-color .25s ease; }
.dots span.is-on { width: 22px; background: var(--navy); }
.arrows { display: flex; gap: var(--space-1); }
.arrow { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--navy); cursor: pointer; }
.arrow:disabled { opacity: .35; cursor: default; }
.swipe-hint { color: var(--muted); font-size: var(--text-12); }
.feature .viz { min-height: 148px; }

/* ---------- Around the invoice (#features) on desktop (owner 2026-11-14; bahi 2026-11-16; flow v20) ---------- */
/* The head pattern like every screen (no split head). Where the screens lock, the tiles stand in a bahi, three to a leaf
   (the "Fehrist bahi" block further down). Without the lock the tiles are the bento grid, every tile in view. Each
   picture sits centred in its box. */
@media (min-width: 960px) {
  #features .feature .viz { align-content: center; }
}

/* ---------- The app ---------- */
.app-section { overflow-x: clip; background: radial-gradient(60% 50% at 85% 60%, var(--glow), transparent 70%), var(--canvas); }
.app-section.section-surface { background: radial-gradient(60% 50% at 85% 60%, var(--glow), transparent 70%), var(--surface); }
.app-grid { display: grid; gap: var(--space-4); }
.app-copy .section-head { margin-bottom: var(--space-3); }
.app-points { display: grid; gap: var(--space-2); }
.app-points li { display: flex; gap: var(--space-2); align-items: flex-start; }
.app-points li > .icon { flex: none; width: 40px; height: 40px; padding: var(--space-1); border-radius: 12px; background: var(--navy); color: var(--gold); }
.app-points h3 { font-size: var(--text-14); font-weight: 800; }
.app-points p { margin-top: 0; color: var(--muted); }
.app-note { margin-top: var(--space-2); color: var(--muted); font-size: var(--text-12); }
.app-stage { display: grid; justify-items: center; gap: var(--space-3); }
.segmented { position: relative; z-index: 3; display: inline-flex; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-soft); }
.segmented button { display: inline-flex; min-height: 40px; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-2); border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.segmented button[aria-checked="true"] { background: var(--navy); color: white; }
.app-phones { position: relative; width: 100%; max-width: 536px; height: 616px; }
.app-phones .phone { top: 0; left: 0; width: 264px; height: 560px; border-radius: 34px; }
.app-phones .phone .app { border-radius: 26px; }
.app-phones .phone-a { z-index: 1; transform: rotate(-5deg); transform-origin: bottom left; }
.app-phones .phone-b { z-index: 2; top: 24px; left: auto; right: 0; transform: rotate(4deg); transform-origin: bottom right; }

/* ---------- Getting started: a timeline on phones, cards on large screens ---------- */
.timeline { position: relative; display: grid; gap: var(--space-3); counter-reset: step; --line-fill: 1; }
.timeline::before, .timeline::after { content: ''; position: absolute; top: 20px; bottom: 20px; left: 19px; width: 3px; border-radius: 2px; background: var(--line); }
.timeline::after { background: var(--gold); transform: scaleY(var(--line-fill)); transform-origin: top; }
.timeline-step { gap: var(--space-1); padding: 0 0 0 var(--space-8); border: 0; background: transparent; counter-increment: step; --fill: 1; }
.section-surface .timeline-step { background: transparent; }
.timeline-step::before {
  content: counter(step); position: absolute; z-index: 1; top: 0; left: 0; display: grid; width: 40px; height: 40px; place-items: center;
  border-radius: 50%; background: var(--navy); color: white; font-size: var(--text-14); font-weight: 800;
  box-shadow: 0 0 0 4px var(--surface);
}
.timeline-step h3 { padding-top: var(--space-1); }
.timeline-step .viz { min-height: 120px; background: var(--canvas); }
.needs { display: grid; gap: var(--space-3); margin-top: var(--space-4); padding: var(--space-3); border-radius: 12px; background: var(--navy); color: white; }
.needs h3 { font-size: var(--text-14); font-weight: 800; }
.needs ul { display: grid; gap: var(--space-1); margin-top: var(--space-2); }
.needs li { display: flex; gap: var(--space-1); align-items: flex-start; color: var(--on-navy); }
.needs li .icon { flex: none; height: 24px; color: var(--gold); }
.needs li strong { color: white; }
.needs a { color: white; }

/* ---------- Getting started (#how-it-works) on desktop: the whole section in one screen (owner 2026-11-14) ---------- */
/* One wheel click shows the whole section. "What you need for FBR" sits beside the heading, their tops level, and the
   four steps run in one row under both, each number beside its title. The step cards' padding and the gaps between
   them are 16px, as in the other tile rows, and from 1200px step 3, the longest text, has a wider column (8 parts to
   the others' 6), so the four cards end at about the same height instead of three of them standing half empty. The
   steps' small pictures (aria-hidden: the invite, the sandbox token, a product, invoice #142) are left out on desktop,
   where one screen has no room for them; phones and tablets keep them. With the screens locked, the steps' gold bars
   fill as the section slides in and are full at rest (site.js). Phones and tablets (under 960px) are unchanged. */
@media (min-width: 960px) {
  #how-it-works:not(.road) .container {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-8); row-gap: var(--space-4); align-items: start;
  }
  #how-it-works:not(.road) .section-head { grid-column: 1; grid-row: 1; margin: 0; }
  :is(#how-it-works, .road) .section-head h2 { text-wrap: balance; }
  #how-it-works:not(.road) .needs { grid-column: 2; grid-row: 1; margin: 0; padding: var(--space-3); }
  #how-it-works:not(.road) .timeline { grid-column: 1 / -1; grid-row: 2; gap: var(--space-2); }
  :is(#how-it-works, .road) .timeline-step { grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--space-2); align-content: start; padding: var(--space-2); }
  :is(#how-it-works, .road) .timeline-step::before { grid-column: 1; grid-row: 1; }
  :is(#how-it-works, .road) .timeline-step > h3 { grid-column: 2; grid-row: 1; align-self: center; padding-top: 0; }
  :is(#how-it-works, .road) .timeline-step > p { grid-column: 1 / -1; }
  #how-it-works:not(.road) .timeline-step > .viz { display: none; }
  /* The road keeps its step pictures, each across its card's foot. */
  .road .timeline-step { grid-template-rows: auto auto 1fr; }
  .road .timeline-step > .viz { grid-column: 1 / -1; align-self: end; min-height: 0; padding: var(--space-1); }
}
@media (min-width: 1200px) {
  :is(#how-it-works, .road) .timeline { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr) minmax(0, 8fr) minmax(0, 6fr); }
  /* Three steps (flow v20): three columns, the longest text in the widest. */
  :is(#how-it-works, .road) .timeline:not(:has(> :nth-child(4))) { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr) minmax(0, 8fr); }
}
/* Tall desktop screens (2026-11-16): the four step pictures come back, each across its card's foot, level with the
   others, in an 8px frame. Measured: the English section fits one screen with 24px spare above and below from 809px
   tall (816 here), the Roman Urdu one, whose steps run longer, from 857px (864). Below that they stay out, as above. */
@media (min-width: 1200px) and (min-height: 816px) {
  html[lang="en"] #how-it-works:not(.road) .timeline-step { grid-template-rows: auto auto 1fr; }
  html[lang="en"] #how-it-works:not(.road) .timeline-step > .viz { display: grid; grid-column: 1 / -1; align-self: end; min-height: 0; padding: var(--space-1); }
}
@media (min-width: 1200px) and (min-height: 864px) {
  #how-it-works:not(.road) .timeline-step { grid-template-rows: auto auto 1fr; }
  #how-it-works:not(.road) .timeline-step > .viz { display: grid; grid-column: 1 / -1; align-self: end; min-height: 0; padding: var(--space-1); }
}

/* ---------- Security ---------- */
.section-navy { background: var(--navy); color: white; }
/* Flow v20: the head, then the tiles; no vault picture (its three cards repeated three tiles). */
.security-grid { display: grid; gap: 0; }
.sec-tiles { display: grid; gap: var(--space-2); }
.sec-tile { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-1) var(--space-2); align-items: start; padding: var(--space-2); border: 1px solid var(--navy-line); border-radius: 12px; background: var(--veil); transition: background-color .2s ease, transform .2s ease; }
.sec-tile:active { transform: translateY(1px); }
.sec-icon { grid-row: span 3; display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: var(--navy-deep); color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.sec-tile h3 { font-size: var(--text-14); font-weight: 800; }
.sec-tile p { color: var(--on-navy); font-size: var(--text-12); }
.sec-tile a { color: white; }
.sec-proof { justify-self: start; margin-top: var(--space-1); padding: 0 var(--space-1); border-radius: 12px; background: var(--navy-deep); color: var(--gold); font-size: var(--text-12); font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Security (#security): the whole section in one screen on desktop (owner 2026-11-14; flow v20) ---------- */
/* The head pattern like every screen. On every screen size each tile's icon square sits beside its title with the
   text under both at full width (on a phone that saves a line or two a tile). From 1200px a 12-column grid with 16px
   gaps: four tiles across (3 columns each), then a last row of two that fills the row (6 each, their edges on row 1's
   columns), or of three (3 : 4 : 5). From 960px to 1199px three across. Tiles in a row are one height. Home page only
   (.showcase-hero ~). */
.showcase-hero ~ #security .sec-tile { grid-template-rows: auto 1fr; }
.showcase-hero ~ #security .sec-icon { grid-row: auto; }
.showcase-hero ~ #security .sec-tile h3 { align-self: center; }
.showcase-hero ~ #security .sec-tile > :is(p, .sec-proof) { grid-column: 1 / -1; }
.showcase-hero ~ #security .sec-proof { margin-top: 0; }
@media (min-width: 1200px) {
  .showcase-hero ~ #security .sec-tiles { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .showcase-hero ~ #security .sec-tiles > .sec-tile { grid-column: span 3; }
  .showcase-hero ~ #security .sec-tiles > .sec-tile:last-child:nth-child(4n + 1) { grid-column: 1 / -1; }
  .showcase-hero ~ #security .sec-tiles > .sec-tile:is(:nth-last-child(2):nth-child(4n + 1), :last-child:nth-child(4n + 2)) { grid-column: span 6; }
  .showcase-hero ~ #security .sec-tiles > .sec-tile:nth-last-child(2):nth-child(4n + 2) { grid-column: span 4; }
  .showcase-hero ~ #security .sec-tiles > .sec-tile:last-child:nth-child(4n + 3) { grid-column: span 5; }
}

/* ---------- Fit check ---------- */
.fit { display: grid; gap: var(--space-2); }
.fit-card { display: grid; align-content: start; gap: var(--space-2); padding: var(--space-3); border-radius: 12px; background: var(--canvas); }
.fit-card.is-yes { border-top: 5px solid var(--success); }
.fit-card.is-no { border-top: 5px solid var(--muted); }
.fit-card h3 { font-size: var(--text-14); font-weight: 800; }
.fit-card ul { display: grid; gap: var(--space-1); }
.fit-card li { display: flex; gap: var(--space-1); align-items: flex-start; }
.fit-card li .icon { flex: none; height: 24px; }
.fit-card.is-yes li .icon { color: var(--success); }
.fit-card.is-no li .icon { color: var(--muted); }
.section:not(.section-surface) .fit-card { background: var(--surface); }

/* ---------- Call to action with a checklist ---------- */
.demo-cta { position: relative; overflow: clip; padding-block: var(--space-8) var(--space-8); }
.cta-sheets { position: absolute; inset: 0; pointer-events: none; }
.cta-sheet { position: absolute; width: 150px; height: 200px; padding: var(--space-4) var(--space-2); border: 1px solid var(--navy-line); border-radius: 12px; background: repeating-linear-gradient(to bottom, transparent 0 18px, var(--veil) 18px 20px) content-box; }
.cta-sheet.s1 { top: 8%; right: -30px; transform: rotate(-8deg); }
.cta-sheet.s2 { top: 52%; right: 20%; transform: rotate(6deg); opacity: .55; }
.cta-sheet.s3 { bottom: -30%; left: -20px; transform: rotate(-4deg); opacity: .5; }
.demo-cta .cta-inner { position: relative; grid-template-columns: minmax(0, 1fr); }
.cta-buttons { display: grid; gap: var(--space-1); margin-top: var(--space-3); }
.ready { display: grid; gap: var(--space-1); padding: var(--space-2); border: 1px dashed var(--navy-line); border-radius: 12px; color: var(--on-navy); font-size: var(--text-12); }
/* The checklist sits on solid navy, so the decorative sheets never run behind its text; below 960px the stacked copy
   reaches the right edge, so the top sheet is left out there. */
.demo-cta .ready { background: var(--navy); }
@media (max-width: 959px) { .cta-sheet.s1 { display: none; } }
.ready strong { color: white; }
.ready li { display: flex; gap: var(--space-1); align-items: flex-start; }
.ready li .icon { flex: none; height: 24px; color: var(--gold); }

/* ---------- Call to action bar on phones ---------- */
.mobile-cta {
  position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1);
  padding: var(--space-1) var(--space-2) calc(var(--space-1) + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: var(--surface); box-shadow: 0 -8px 16px rgba(20, 49, 73, .04);
  transform: translateY(110%); transition: transform .3s ease; visibility: hidden;
}
.mobile-cta.is-shown { transform: none; visibility: visible; }
.mobile-cta .button { min-height: 48px; }
.wa-button { width: 48px; padding: 0; border-color: var(--navy); background: var(--surface); color: var(--navy); }
.footer-legal { padding-bottom: var(--space-6); }

@keyframes blink { 50% { opacity: 0; } }
@keyframes travel { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes panel-in { from { opacity: .4; transform: translateY(8px); } }

@media (min-width: 600px) {
  .showcase-hero h1 { font-size: var(--text-32); }
  .proof { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .panel { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; padding: var(--space-3); }
  .problems { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-buttons { grid-template-columns: auto auto; justify-content: start; }
  .sec-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: var(--space-4); }
}

@media (min-width: 720px) {
  .j-lines { display: table; }
  .j-totals { display: grid; }
  .j-total-mini { display: none; }
  .j-card { padding: var(--space-3); gap: var(--space-2); }
  .rail li { font-size: var(--text-12); }
  .carousel { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; }
  .js .carousel-nav { display: none; }
}

@media (min-width: 960px) {
  .hero-ctas .button { flex: none; padding-inline: var(--space-3); }
  .audience-tabs h2 { font-size: var(--text-24); }
  .tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .tabs .tab:last-child:nth-child(odd) { grid-column: auto; }
  /* Flow v20: the words in x152-720, the invoice in x752-1288, both from the top line: the heading, 32px, the rail,
     24px, the steps (all five in one cell, so the cell is the tallest step), 24px, the pager. Nothing is centred. */
  .journey-frame {
    grid-template-columns: minmax(0, 568fr) minmax(0, 536fr); grid-template-rows: auto auto auto auto 1fr;
    grid-template-areas: "head card" "rail card" "copy card" "nav card" ". card"; column-gap: var(--space-4); row-gap: 0;
  }
  .journey-frame .journey-head { grid-area: head; margin-bottom: var(--space-4); }
  .journey-frame .rail { grid-area: rail; margin-bottom: var(--space-3); }
  .journey-frame .journey-steps { grid-area: copy; }
  .journey-frame .j-card { grid-area: card; align-self: start; }
  .journey-frame .journey-nav { grid-area: nav; justify-content: flex-start; margin-top: var(--space-3); }
  /* The step titles take the page's h3 size (21.33px), so a story screen has four sizes: 32, 21.33, 18.67, 16 (checker). */
  .journey.is-live .journey-steps h3 { font-size: var(--text-16); }
  .bento { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: var(--space-2); }
  .bento .span-2 { grid-column: span 2; }
  .bento .span-all { grid-column: 1 / -1; }
  .tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: transparent; }
  .sec-tile:hover { background: var(--veil-strong); transform: translateY(-3px); }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .timeline::before, .timeline::after { display: none; }
  .timeline-step { padding: var(--space-3); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 12px; background: var(--canvas); }
  .section-surface .timeline-step { background: var(--canvas); }
  .timeline-step::before { position: static; box-shadow: none; }
  .timeline-step::after { content: ''; position: absolute; top: -4px; left: -1px; right: -1px; height: 4px; border-radius: 12px 12px 0 0; background: var(--gold); transform: scaleX(var(--fill)); transform-origin: left; }
  .timeline-step .viz { background: var(--navy-tint); }
  .sec-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* The close: the words (552px) and the checklist (552px), 32px apart, both from the band's top line. */
  .demo-cta .cta-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; column-gap: var(--space-4); }
  .mobile-cta { display: none; }
  .footer-legal { padding-bottom: var(--space-6); }
}

@media (min-width: 1200px) {
  /* Four across only from 1200px: in a quarter of a 960px row a 12pt tag ("Connection dropped") is cut off. */
  .problems, .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  /* Flow v20: the words in x152-704, the phones in x752-1288, both from the top line. */
  .app-grid { grid-template-columns: minmax(0, 552fr) minmax(0, 536fr); align-items: start; column-gap: var(--space-6); }
}
/* Phones: two phones side by side would cover each other's screens, so they sit in a swipe row. */
@media (max-width: 719px) {
  .app-phones {
    display: flex; gap: var(--space-2); width: calc(100% + 2 * var(--space-2)); max-width: none; height: auto;
    margin-inline: calc(-1 * var(--space-2)); padding: 0 var(--space-2) var(--space-3);
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px; scrollbar-width: none;
  }
  .app-phones::-webkit-scrollbar { display: none; }
  .app-phones .phone { position: relative; flex: none; top: auto; left: auto; right: auto; transform: none; scroll-snap-align: start; box-shadow: inset 0 0 0 2px var(--navy-line); }
}

@media (min-width: 1080px) {
  .nav-links a { padding-inline: var(--space-1); white-space: nowrap; }
  .nav-actions { flex-wrap: nowrap; }
  .nav-actions .button { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .caret, .progress::after, .spin, .panel.is-entering { animation: none; }
  .button, .tile, .sec-tile, .mobile-cta, .app, .rail::after, .rail li::before, .journey-stage [data-at], .journey.is-live .journey-step,
  .grow-x, .grow-y, .rise, .paper-stack span { transition: none; }
}

@media print {
  .mobile-cta, .hero-scene, .journey .rail, .journey .j-card, .journey-nav, .app-stage, .cta-sheets { display: none; }
  .journey.is-live .journey-track { height: auto; }
  .journey.is-live .journey-pin { position: static; height: auto; }
  .journey.is-live .journey-step { grid-area: auto; opacity: 1; visibility: visible; transform: none; }
  .showcase-hero, .journey, .section-navy { background: none; color: var(--ink); }
}

/* ==========================================================================
   SITE-005: the homepage (UI 1 "Bookends", Munshi on the home page; owner approved A x 1, 2026-11-14).
   Type sizes only from --text-*, spacing only from --space-* (scripts/marketing-site.test.mjs).
   ========================================================================== */

/* ---------- Munshi ji: the app's drawing (apps/web/src/munshi/character), light colours only ---------- */
:root {
  --munshi-tile: #e3eaf2; --munshi-skin: #c98e64; --munshi-skin-shade: #b07a52; --munshi-skin-line: #a9714a;
  --munshi-shirt: #f4efe6; --munshi-waistcoat: #143149; --munshi-collar: #d8cfc0; --munshi-hair: #b9c1c9;
  --munshi-moustache: #8f99a3; --munshi-pen: #d9a55a; --munshi-line: #172536; --munshi-lens: rgba(255, 255, 255, .22);
  --munshi-brow: #7d8791; --munshi-mouth: #5a2e22; --munshi-khata: #8e2c3a; --munshi-khata-edge: #6e1f2b;
  /* Khata red: Munshi ji's own ledger colour, for the reply in a light-surface heading (7.2:1 on canvas). */
  --khata: #8e2c3a;
  --paper: #fffdf6;
}
.munshi-ji { display: block; flex: none; }
.munshi-ji .mc-bg { fill: var(--munshi-tile); }
.munshi-ji .mc-skin { fill: var(--munshi-skin); }
.munshi-ji .mc-skin-shade { fill: var(--munshi-skin-shade); }
.munshi-ji .mc-shirt { fill: var(--munshi-shirt); }
.munshi-ji .mc-waistcoat { fill: var(--munshi-waistcoat); }
.munshi-ji .mc-collar { fill: none; stroke: var(--munshi-collar); stroke-width: 2; stroke-linejoin: round; }
.munshi-ji .mc-button { fill: var(--munshi-pen); }
.munshi-ji .mc-hair { fill: var(--munshi-hair); }
.munshi-ji .mc-moustache { fill: var(--munshi-moustache); }
.munshi-ji .mc-nose { fill: none; stroke: var(--munshi-skin-line); stroke-width: 2; stroke-linecap: round; }
.munshi-ji .mc-pen { fill: none; stroke: var(--munshi-pen); stroke-width: 4.5; stroke-linecap: round; }
.munshi-ji .mc-pen-tip { fill: none; stroke: var(--munshi-line); stroke-width: 2.5; stroke-linecap: round; }
.munshi-ji .mc-ink { fill: var(--munshi-line); }
.munshi-ji .mc-stroke { fill: none; stroke: var(--munshi-line); stroke-width: 2.4; stroke-linecap: round; }
.munshi-ji .mc-specs circle { fill: var(--munshi-lens); stroke: var(--munshi-line); stroke-width: 2.6; }
.munshi-ji .mc-specs path { fill: none; stroke: var(--munshi-line); stroke-width: 2.3; stroke-linecap: round; }
.munshi-ji .mc-brow { fill: none; stroke: var(--munshi-brow); stroke-width: 2.4; stroke-linecap: round; }
.munshi-ji .mc-mouth { fill: none; stroke: var(--munshi-mouth); stroke-width: 2.4; stroke-linecap: round; }
.munshi-ji .mc-mouth-fill { fill: var(--munshi-mouth); stroke: var(--munshi-mouth); stroke-width: 1.6; stroke-linejoin: round; }
.munshi-ji .mc-khata-cover { fill: var(--munshi-khata); }
.munshi-ji .mc-khata-spine { fill: none; stroke: var(--munshi-khata-edge); stroke-width: 2; }
.munshi-ji .mc-khata-lines { fill: none; stroke: var(--munshi-shirt); stroke-width: 1.4; stroke-linecap: round; }
.munshi-ji .mc-badge { fill: var(--munshi-pen); }
.munshi-ji .mc-badge-tick { fill: none; stroke: var(--munshi-line); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.munshi-ji :is(.mc-eyes-down, .mc-eyes-happy, .mc-brow-writing, .mc-brow-done, .mc-mouth-writing, .mc-mouth-done, .mc-khata, .mc-badge-done) { display: none; }
.munshi-ji[data-mood='writing'] :is(.mc-eyes-open, .mc-brow-idle, .mc-mouth-idle) { display: none; }
.munshi-ji[data-mood='writing'] :is(.mc-eyes-down, .mc-brow-writing, .mc-mouth-writing, .mc-khata) { display: inline; }
.munshi-ji[data-mood='done'] :is(.mc-eyes-open, .mc-brow-idle, .mc-mouth-idle) { display: none; }
.munshi-ji[data-mood='done'] :is(.mc-eyes-happy, .mc-brow-done, .mc-mouth-done, .mc-badge-done) { display: inline; }
/* The pen moves three times once its picture is on screen, then rests; never without .anim-ready (reduced motion, preview). */
@keyframes munshi-write { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 50% { transform: translate(-6px, 1px) rotate(-6deg); } }
.anim-ready .in-view .munshi-ji[data-mood='writing'] .mc-writing-pen { animation: munshi-write 1.1s ease-in-out 1; transform-origin: 72px 94px; }

/* ---------- Munshi flow: the order, Munshi asks, your tap ---------- */
/* The reply sits on its own line: the call, then the answer ("Munshi ji, bill bana do." / "Bilkul!"). */
.munshi-flow .mf-head h2 { text-wrap: balance; }
.munshi-flow .mf-head h2 em { display: block; font-style: normal; color: var(--khata); }
.mf-steps { display: grid; gap: var(--space-4); }
.mf-step {
  position: relative; display: grid; align-content: start; gap: var(--space-2); min-width: 0; padding: var(--space-2);
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
.section-surface .mf-step { background: var(--canvas); border-color: transparent; }
.mf-label { display: flex; align-items: center; gap: var(--space-1); color: var(--navy); font-weight: 800; }
.mf-num { display: inline-grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-size: var(--text-12); font-weight: 800; }
.mf-step h3 { font-size: var(--text-14); font-weight: 800; }
.mf-step > p:last-child { color: var(--muted); }
.mf-arrow { position: absolute; top: -32px; left: calc(50% - 16px); display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--navy); color: white; }
.mf-arrow .icon-arrow-right { display: none; }
.mf-pic { display: grid; gap: var(--space-1); align-content: start; padding: var(--space-2); border-radius: 12px; background: var(--navy-tint); font-size: var(--text-12); line-height: 1.35; }
.mf-pic-order { align-content: center; }
.mf-ways { display: none; flex-wrap: wrap; gap: var(--space-1); }
.mf-ways span { display: inline-flex; align-items: center; gap: var(--space-1); padding: 0 var(--space-1); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: var(--text-12); font-weight: 600; }
.mf-ways .icon { color: var(--navy); }
.mf-ways-note { display: none; color: var(--muted); font-size: var(--text-12); }
.mf-note { display: flex; gap: var(--space-1); align-items: flex-start; max-width: 860px; margin-top: var(--space-3); padding: var(--space-2); border-left: 4px solid var(--gold); border-radius: 12px; background: var(--surface); }
.section-surface .mf-note { background: var(--canvas); }
.mf-note .icon { flex: none; height: 24px; color: var(--navy); }
.mf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); margin-top: var(--space-3); }
.mf-caption { margin-top: var(--space-2); color: var(--muted); font-size: var(--text-12); }

/* Panel pictures, in the app's own words. */
.mf-from { display: flex; align-items: center; gap: var(--space-1); color: var(--muted); font-size: var(--text-12); font-weight: 600; }
.mf-from b { display: inline-grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 50%; background: var(--surface); color: var(--navy); font-size: var(--text-12); }
.mf-from .icon { color: var(--navy); }
.mf-bubble { justify-self: start; max-width: 94%; padding: var(--space-1) var(--space-2); border-radius: 0 12px 12px 12px; background: var(--surface); box-shadow: var(--shadow-soft); font-size: var(--text-12); }
.mf-ask { justify-self: start; padding: var(--space-1) var(--space-2); border-radius: 12px 12px 12px 0; background: var(--surface); font-weight: 700; font-size: var(--text-12); }
.mf-choices { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.mf-choices span { padding: 0 var(--space-1); border-radius: 999px; background: var(--surface); color: var(--muted); font-weight: 600; font-size: var(--text-12); }
.mf-choices .is-picked { background: var(--navy); color: white; }
.mf-match { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 var(--space-1); padding: var(--space-1) var(--space-2); border-radius: 12px; background: var(--surface); }
.mf-match strong { font-size: var(--text-12); }
.mf-match span { color: var(--muted); font-size: var(--text-12); }
.mf-writing { display: flex; align-items: center; gap: var(--space-1); color: var(--muted); font-size: var(--text-12); font-weight: 600; }
.mf-writing .munshi-ji { width: 36px; height: 36px; }
.mf-card { display: grid; gap: var(--space-1); padding: var(--space-2); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-soft); font-variant-numeric: tabular-nums; }
.mf-card .viz-line { font-size: var(--text-12); }
.mf-kind { color: var(--muted); font-size: var(--text-12); font-weight: 600; }
.mf-title { font-size: var(--text-14); font-weight: 800; }
.mf-small { color: var(--muted); font-size: var(--text-12); }
.mf-line { display: grid; }
.mf-said { color: var(--muted); font-size: var(--text-12); }
/* Phones: panel 3's card already shows the order words under each product, so panel 2 keeps only the question. */
@media (max-width: 599px) {
  .mf-pic-ask .mf-match, .mf-subtotal { display: none; }
}
.mf-tap { position: relative; display: flex; justify-content: center; align-items: center; min-height: 32px; margin-top: var(--space-1); border-radius: 999px; background: var(--navy); color: white; font-weight: 700; font-size: var(--text-12); box-shadow: 0 0 0 4px var(--gold-soft); }
.mf-tap::after { content: ''; position: absolute; right: 4px; bottom: -11px; width: 22px; height: 22px; border: 2px solid var(--gold); border-radius: 50%; background: rgba(217, 165, 90, .35); }
.mf-alt { margin-top: var(--space-1); color: var(--navy); font-weight: 700; font-size: var(--text-12); text-align: center; }

/* ---------- Skill tiles (S07) ---------- */
.mk-row { display: flex; flex-wrap: wrap; gap: var(--space-1); align-items: flex-start; min-width: 0; }
.mk-center { align-items: center; }
.mk-row > .viz-card, .mk-grow { flex: 1 1 150px; min-width: 0; }
.mk-readback { flex-basis: 170px; }
.mk-parchi { display: grid; gap: 0; flex: none; width: 128px; padding: var(--space-1); border: 1px dashed var(--field); border-radius: 12px; background: var(--paper); color: var(--ink); font-size: var(--text-12); line-height: 1.3; transform: rotate(-3deg); }
.mk-table { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--space-2); font-size: var(--text-12); }
.mk-table b { color: var(--muted); font-weight: 600; }
.mk-btn { display: flex; justify-content: center; align-items: center; min-height: 32px; padding: 0 var(--space-2); white-space: nowrap; border-radius: 999px; background: var(--navy); color: white; font-weight: 700; font-size: var(--text-12); }
.mk-hint { font-size: var(--text-12); }
.mk-eg { font-size: var(--text-12); }
.mk-link { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--navy); font-weight: 700; font-size: var(--text-12); }
.mk-tick { display: flex; align-items: flex-start; gap: var(--space-1); font-size: var(--text-12); }
.mk-tick .icon { flex: none; height: 24px; color: var(--navy); }
.mk-styles { display: grid; gap: var(--space-1); min-width: 0; }
.mk-chips { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-bottom: var(--space-1); }
.mk-chips > * { padding: 0 var(--space-1); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: var(--text-12); font-weight: 600; }
.mk-chips b { background: var(--navy); color: white; }
.mk-cups { font-size: var(--text-14); font-weight: 800; }
.mk-full { width: 100%; }
.mk-stamp-row { display: flex; align-items: center; gap: var(--space-2); padding-left: var(--space-1); }
/* The "Bilkul!" stamp as the app draws it (apps/web/src/fun/fun.css): a tilted label in navy and gold, never a seal. */
.bilkul-stamp { display: inline-flex; gap: var(--space-1); align-items: center; padding: 0 var(--space-1); border: 2px solid var(--gold); border-radius: 12px; background: var(--surface); color: var(--navy); font-weight: 800; font-size: var(--text-12); transform: rotate(-6deg); white-space: nowrap; }
.bilkul-stamp .icon { color: var(--success); }

/* A lone last security tile (the Munshi tile makes 7) spans its row instead of standing alone. */
@media (min-width: 600px) and (max-width: 959px) { .sec-tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (min-width: 960px) { .sec-tiles > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; } }
@media (min-width: 960px) {
  /* Three panels in a row; subgrid keeps labels, pictures, titles and text level across the row. */
  .mf-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto 1fr; column-gap: var(--space-5); row-gap: 0; }
  .mf-step { grid-row: span 4; grid-template-rows: subgrid; row-gap: var(--space-2); padding: var(--space-3); }
  .mf-step > * { grid-column: 1; }
  .mf-step > .mf-label { grid-row: 1; }
  .mf-step > .mf-pic { grid-row: 2; }
  .mf-step > h3 { grid-row: 3; }
  .mf-step > p:last-child { grid-row: 4; }
  /* The arrow shares the picture's row, so it is centred on the picture, in the middle of the 40 px gap. */
  .mf-arrow { position: relative; z-index: 1; top: auto; grid-row: 2; grid-column: 1; align-self: center; justify-self: start; left: -60px; margin: 0; }
  .mf-arrow .icon-arrow-down { display: none; }
  .mf-arrow .icon-arrow-right { display: inline-block; }
  .munshi-flow .mf-head h2 { font-size: var(--text-32); }
  .mf-ways { display: flex; }
  .mf-ways-note { display: block; }
}
/* ---------- Munshi flow (#munshi) on wide screens (1200px and up): the whole section in one screen (owner 2026-11-14) ---------- */
/* One wheel click shows the whole section. The heading on the left and one picture frame on the right; the three steps,
   every word of them, in one row under both; the usool note and the demo button share the last row. The three pictures
   take turns in the frame (site.js: every 5 s while the section is on screen, and pointing at or tapping a step shows
   its picture; the gold line over that step fills while it shows). The pictures are decoration (aria-hidden), so no
   words are hidden; without the script the frame shows the first. One picture fades out before the next fades in, so
   Munshi ji (picture 2) never shows beside the tax card (picture 3).
   In the frame the draft card lies wide: lines on the left, totals on the right, the tax note and the tap under both.
   Its quoted order words already show in picture 2, and "Make a quote instead" is left out there, so it fits the
   frame. 960-1199px keeps the three cards (each picture in its card). */
@media (min-width: 1200px) {
  #munshi { --mf-stage: 256px; }
  #munshi.munshi-flow .container { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-4); align-items: start; }
  #munshi .mf-head { grid-column: 1 / -1; grid-row: 1; max-width: calc((100% - var(--space-8)) / 2); min-height: calc(var(--mf-stage) + var(--space-4)); margin-bottom: 0; align-content: start; }
  /* The frame: the right half of the heading row, the example line under it. */
  #munshi .mf-step > .mf-pic { position: absolute; grid-column: 1 / -1; grid-row: 1 / 2; top: 0; right: 0; left: calc(50% + var(--space-4)); height: var(--mf-stage); align-content: center; }
  #munshi .mf-caption { position: absolute; grid-column: 1 / -1; grid-row: 1 / 2; top: calc(var(--mf-stage) + var(--space-1)); right: 0; left: calc(50% + var(--space-4)); margin: 0; }
  /* The steps: three across, each under a line that turns gold while its picture is in the frame. */
  #munshi .mf-steps { grid-column: 1 / -1; grid-row: 2; grid-template-rows: auto auto 1fr; margin-top: var(--space-4); }
  #munshi .mf-step {
    position: static; grid-row: span 3; row-gap: var(--space-1); padding: var(--space-2) 0 0; border: 0; border-radius: 0;
    background: linear-gradient(var(--gold), var(--gold)) left top / 0% 2px no-repeat, linear-gradient(var(--navy-line), var(--navy-line)) left top / 100% 2px no-repeat;
  }
  #munshi .mf-step > .mf-label { grid-row: 1; }
  #munshi .mf-step > h3 { grid-row: 2; }
  #munshi .mf-step > p:last-child { grid-row: 3; }
  #munshi .mf-arrow { display: none; }
  #munshi .mf-note { grid-column: 1; grid-row: 3; max-width: none; }
  #munshi .mf-actions { grid-column: 2; grid-row: 3; align-self: center; }
  /* The draft card, wide. Children: 1 kind, 2 title, 3-4 lines, 5 subtotal, 6 tax, 7 total, 8 note, 9 tap, 10 quote. */
  #munshi .mf-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-4); }
  #munshi .mf-card > * { grid-column: 1 / -1; }
  #munshi .mf-card > :is(.mf-kind, .mf-title, .mf-line) { grid-column: 1; }
  #munshi .mf-card > .mf-kind { grid-row: 1; }
  #munshi .mf-card > .mf-title { grid-row: 2; }
  #munshi .mf-card > .mf-line:nth-child(3) { grid-row: 3; }
  #munshi .mf-card > .mf-line:nth-child(4) { grid-row: 4; }
  #munshi .mf-card > :is(.mf-subtotal, .viz-line:nth-child(6), .viz-line:nth-child(7)) { grid-column: 2; }
  #munshi .mf-card > .mf-subtotal { grid-row: 2; }
  #munshi .mf-card > .viz-line:nth-child(6) { grid-row: 3; }
  #munshi .mf-card > .viz-line:nth-child(7) { grid-row: 4; }
  #munshi .mf-card .mf-said, #munshi .mf-alt { display: none; }
  #munshi .mf-tap { margin-top: 0; }
  /* One picture at a time: the first without the script; with it, the step marked .is-shown. */
  #munshi .mf-step:not(:first-child) > .mf-pic { opacity: 0; visibility: hidden; }
  #munshi .mf-steps.is-live .mf-step > .mf-pic { opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
  #munshi .mf-steps.is-live .mf-step.is-shown > .mf-pic { opacity: 1; visibility: visible; transition: opacity .25s ease .2s, visibility 0s linear .2s; }
  #munshi .mf-steps.is-live .mf-step:not(.is-shown) .mf-num { background: transparent; color: var(--on-navy); box-shadow: inset 0 0 0 1px var(--navy-line-strong); }
  #munshi .mf-steps.is-live .mf-step.is-shown { background-size: 100% 2px, 100% 2px; }
  #munshi .mf-steps.is-auto .mf-step.is-shown { animation: mf-fill 5s linear both; }
  /* Munshi ji writes again each time his picture comes back. */
  .anim-ready #munshi .mf-steps.is-live .mf-step:not(.is-shown) .mc-writing-pen { animation: none; }
}
@keyframes mf-fill { from { background-size: 0% 2px, 100% 2px; } to { background-size: 100% 2px, 100% 2px; } }
/* Short desktop screens (720-780px tall, e.g. 1280 x 720, 1366 x 768, 1536 x 730): a 16px lower frame (the draft card
   keeps 8px round it), and 8px less above the steps, above the last row and inside the note, so the section still
   fits one screen. */
@media (min-width: 1200px) and (max-height: 780px) {
  #munshi { --mf-stage: 240px; }
  #munshi .mf-pic-card { padding: var(--space-1); }
  #munshi .mf-steps { margin-top: var(--space-3); }
  #munshi .mf-note { margin-top: var(--space-2); padding-block: var(--space-1); }
  #munshi .mf-actions { margin-top: var(--space-2); }
}
@media (min-width: 1200px) and (prefers-reduced-motion: reduce) {
  #munshi .mf-steps.is-live .mf-step > .mf-pic, #munshi .mf-steps.is-live .mf-step.is-shown > .mf-pic { transition: none; }
}
/* Desktop hero (1200px and up; flow v20): the copy column (552px, x152-704) and, in the picture column, invoice #142 on
   a phone and nothing else, its top level with the h1 and its FBR number card always in view (the screen's proof). With
   the lock the h1 sits on the top line and the phone is as tall as the screen allows (at most 600px, 48px clear at
   its foot; site.js measures the room into --hero-room). */
@media (min-width: 1200px) {
  .showcase-hero { padding-block: var(--space-8) var(--space-6); }
  .showcase-hero .hero-grid { grid-template-columns: minmax(0, 552fr) minmax(0, 552fr); align-items: start; column-gap: var(--space-4); }
  .hero-scene { max-width: none; height: 600px; }
  .hero-scene .phone { top: 0; left: auto; right: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .munshi-ji .mc-writing-pen { animation: none !important; }
}
@media print {
  .mf-pic { display: none; }
}

/* S11: with the duplicate demo checklist removed, the "What you need" list fills the navy box (build review SF1). */
@media (min-width: 600px) {
  .needs > :only-child { grid-column: 1 / -1; }
  .needs > :only-child ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4); }
}

/* ---------- Munshi's colours: his sections on deep navy with gold (owner 2026-11-13, D4's palette) ---------- */
/* Pictures of the app stay light, as on a phone; text, numbers and controls on navy use white, on-navy and gold. */
.section-munshi { background: var(--navy-deep); color: white; }
.section-munshi :focus-visible { outline-color: var(--gold); }
.section-munshi .eyebrow-dark { color: var(--gold-on-dark); }
.section-munshi .section-head h2 { color: white; }
.section-munshi .section-head > p:last-child strong { color: var(--gold-soft); }
.section-munshi a:not(.button) { color: white; }
.munshi-flow.section-munshi .mf-head h2 em { color: var(--gold); }
.section-munshi .mf-step { border-color: var(--navy-line); background: var(--veil); }
.section-munshi .mf-label { color: var(--gold-on-dark); }
.section-munshi .mf-num { background: var(--gold); color: var(--navy-deep); }
.section-munshi .mf-arrow { background: transparent; color: var(--on-navy); box-shadow: inset 0 0 0 1px var(--navy-line); }
.section-munshi .mf-step > p:last-child { color: var(--on-navy); }
.section-munshi .mf-step > p:last-child strong { color: white; }
.section-munshi :is(.mf-pic, .viz) { color: var(--ink); }
.section-munshi .mf-caption { color: var(--on-navy); }
.section-munshi .mf-note { background: var(--veil); border-left-color: var(--gold); color: var(--on-navy); }
.section-munshi .mf-note strong { color: white; }
.section-munshi .mf-note .icon { color: var(--gold); }
.section-munshi .button-quiet { border-color: white; background: transparent; color: white; }
.section-munshi .button-quiet:hover { background: var(--veil); }
.section-munshi .tile { border-color: var(--navy-line); background: var(--navy); }
.section-munshi .tile h3 { color: white; }
.section-munshi .tile > p { color: var(--on-navy); }
.section-munshi .dots span { background: var(--navy-line-strong); }
.section-munshi .dots span.is-on { background: var(--gold); }
.section-munshi .arrow { border-color: var(--navy-line); background: transparent; color: white; }
.section-munshi .swipe-hint { color: var(--on-navy); }

/* ---------- Flat fills (flow v21, builder 2) ---------- */
/* The held blue light (the depth-glow layer site.js used to add) and the home page's still lights are gone: every
   screen is one flat fill (navy, deep navy, canvas or white), so text and pictures sit on one known colour. The other
   pages' closing band keeps its faint light. */
.cta-band { background-image: radial-gradient(60% 50% at 80% 10%, rgba(84, 132, 170, .16), transparent 70%); }
.showcase-hero ~ .cta-band { background-image: none; }

/* ---------- Invoice story: a faint line under the rail follows your scroll between steps; gold ring when accepted ---------- */
@supports (animation-timeline: view()) {
  .journey.is-live .journey-track { view-timeline: --story block; view-timeline-inset: var(--header-height) 0px; }
  .journey.is-live .rail { background: linear-gradient(var(--navy-line), var(--navy-line)) no-repeat center 7px / 80% 2px; }
  .journey.is-live .rail::before { background: rgba(216, 227, 235, .55); transform: scaleX(0); transform-origin: left; }
  .anim-ready .journey.is-live .rail::before { animation: rail-scrub linear both; animation-timeline: --story; animation-range: contain 0% contain 100%; }
  @keyframes rail-scrub { to { transform: scaleX(1); } }
}
.journey.is-live .journey-stage:not([data-unknown]) .rail li:last-child.is-current::before { box-shadow: 0 0 0 4px var(--navy), 0 0 0 6px var(--gold); }

/* ---------- Hisaab ki tah: the accounts underneath, shown around Munshi's pen (site.js draws it) ---------- */
/* One screen-sized canvas blends the books onto the dark sections ("screen": white text and white cards stay untouched);
   a second draws the pen's fading line. Light sections never show the layer. On dark sections the pen replaces the cursor. */
.hisaab { position: fixed; left: 0; top: 0; z-index: 8; pointer-events: none; visibility: hidden; }
.hisaab.is-on { visibility: visible; }
.hisaab-dark { mix-blend-mode: screen; }
html.pen-cursor, html.pen-cursor * { cursor: none !important; }
.munshi-pen { position: fixed; left: 0; top: 0; z-index: 9; width: 16px; height: 56px; pointer-events: none; transform-origin: 8px 54px; opacity: 0; transition: opacity .25s ease; }
.munshi-pen.is-out { opacity: 1; }
.munshi-pen svg { display: block; width: 16px; height: 56px; overflow: visible; }
.pen-barrel { fill: #d9a55a; }
.pen-shade { fill: #b98a45; }
.pen-shine { fill: rgba(246, 231, 207, .85); }
.pen-grip { fill: #8a5715; }
.pen-nib { fill: #f3f1eb; }
.pen-slit { fill: none; stroke: #172536; stroke-width: .6; }
.pen-shadow-contact { opacity: calc(1 - var(--lift, 1)); }
.pen-shadow-lift { opacity: var(--lift, 1); }

/* The invoice story: the total's rules are pencil at Draft, the single rule sets in ink at Finalized, and the
   double rule (a bookkeeper's "final") sets only when FBR has accepted, never while the outcome is unknown. */
.j-totals .is-total dd, .j-total-mini strong { position: relative; }
.journey .j-totals .is-total dd::after, .journey .j-total-mini strong::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -7px; height: 5px; pointer-events: none;
  background:
    linear-gradient(#a8762c, #a8762c) left top / 0% 1.5px no-repeat,
    linear-gradient(#a8762c, #a8762c) left bottom / 0% 1.5px no-repeat,
    linear-gradient(#b9c2cb, #b9c2cb) left top / 100% 1px no-repeat,
    linear-gradient(#b9c2cb, #b9c2cb) left bottom / 100% 1px no-repeat;
  transition: background-size .45s cubic-bezier(.22, 1, .36, 1);
}
.journey-stage:not([data-stage="0"]) .j-totals .is-total dd::after,
.journey-stage:not([data-stage="0"]) .j-total-mini strong::after { background-size: 100% 1.5px, 0% 1.5px, 100% 1px, 100% 1px; }
.journey-stage[data-stage="4"]:not([data-unknown]) .j-totals .is-total dd::after,
.journey-stage[data-stage="4"]:not([data-unknown]) .j-total-mini strong::after { background-size: 100% 1.5px, 100% 1.5px, 100% 1px, 100% 1px; }
@media (prefers-reduced-motion: reduce) {
  .hisaab, .munshi-pen { display: none; }
  .journey .j-totals .is-total dd::after, .journey .j-total-mini strong::after { transition: none; }
}
@media print { .hisaab, .munshi-pen { display: none; } }

/* ---------- Screens lock as you read them: one scroll click, one screen (site.js adds .snap-on) ---------- */
/* Mouse and trackpad only: site.js moves one screen a click. Phones scroll normally for now (their sections are
   two or three phone screens tall; they lock once each is redesigned to fit). */
.snap-on main > section, .snap-on .site-footer { position: relative; }
/* The lock places the page itself. The browser's scroll anchoring moved the screen when a re-fit changed the sections'
   padding (an answer opened in #questions jumped the page about 380px; a #who tab about 24px), so it is off while the
   lock runs (2026-11-14). */
.snap-on { overflow-anchor: none; }
.snap-mark { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
@media print { .snap-mark { display: none; } }

/* ---------- Language: English | Roman Urdu (English is the default; Roman Urdu home at /ur/) ---------- */
.lang-switch { display: inline-flex; flex: none; align-items: center; gap: 0; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.lang-switch a { display: inline-flex; min-height: 36px; align-items: center; padding: 0 var(--space-2); border-radius: 999px; color: var(--muted); font-size: var(--text-12); font-weight: 700; text-decoration: none; white-space: nowrap; }
.lang-switch a:hover { background: var(--canvas); color: var(--navy); }
.lang-switch a[aria-current='true'] { background: var(--navy); color: white; }
.lang-switch a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.lang-switch .ls-short { display: none; }
/* Phones and tablets: a compact pill between the logo and the Menu button. */
.header-inner > .lang-switch { margin-left: auto; }
.lang-bar { display: none; }
@media (max-width: 599px) {
  .header-inner { column-gap: var(--space-1); }
  /* The short labels are hidden from screen readers, so the full names stay in the links for them. */
  .lang-switch .ls-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .lang-switch .ls-short { display: inline; }
  .lang-switch a { position: relative; padding: 0 var(--space-1); }
  /* A 44px touch area around what is drawn, so the header keeps its size. */
  .lang-switch a::after { content: ''; position: absolute; inset: -4px 0; }
  .lang-switch a:first-child::after { left: -6px; }
  .brand { position: relative; }
  .brand::after { content: ''; position: absolute; inset: -2px 0; }
  .menu-button { padding-inline: var(--space-1); }
}
/* The smallest phones: the Menu word gives way, so the header stays on one row. The button keeps its name. */
@media (max-width: 359px) {
  .menu-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Desktop: a slim bar above the header, which scrolls away; the header row keeps all its room. */
@media (min-width: 1080px) {
  .header-inner > .lang-switch { display: none; }
  .lang-bar { display: block; border-bottom: 1px solid var(--line); background: var(--canvas); }
  .lang-bar-inner { display: flex; justify-content: flex-end; padding-block: var(--space-1); }
  .lang-bar .lang-switch { padding: 0; }
  .lang-bar .lang-switch a { min-height: 32px; }
}
/* Short laptop screens with the screen lock (1280px and wider, under 760px tall; flow plan 2026-11-16): the switch moves
   into the header row as "EN | Roman", so the hero and its proof chips fill the first screen without a nudge for the
   bar. The full names stay in the links for screen readers. */
@media (min-width: 1280px) and (max-height: 759px) {
  .snap-on .lang-bar { display: none; }
  .snap-on .header-inner > .lang-switch { display: inline-flex; }
  .snap-on .header-inner > .lang-switch a { min-height: 32px; padding: 0 var(--space-1); }
  .snap-on .header-inner > .lang-switch .ls-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .snap-on .header-inner > .lang-switch .ls-short { display: inline; }
}

/* ---------- Fehrist bahi: #features as a top-bound register (desktop, screens locked; 2026-11-16; flow v20) ---------- */
/* Where the screens lock (site.js adds .snap-on; book.js, the desktop-only script, adds .bk-on to the section from
   960px), the tiles stand on the leaves of a bahi bound at the top, three to a leaf. The section pins under the header
   like the invoice story, its heading on the top line, and each wheel click turns one leaf over the binding (book.js
   scrubs it from the scroll). Every leaf hangs from the binding and each is one foot longer than the one above it, so
   the lower leaves' edges peek out under the open one, each carrying its tiles' titles. A leaf turns as one sheet: its
   words go first (the pictures' shapes stay, so it lifts as blank paper), then it swings toward you and up until it
   lies edge-on along the binding and is gone; one thin line above the binding counts each turned leaf. The page's one
   step control (‹ 1 of 2 ›) sits under the book. Nothing is ever scaled. Without .snap-on (phones, tablets, touch
   screens, reduced motion, no script) none of this shows. */
.step-snap, .book-decor { display: none; }
@media (min-width: 960px) {
  .snap-on .bk-on { --bk-bind: 16px; --bk-foot: var(--space-4); padding-block: 0; }
  .snap-on .bk-on .steps-track { position: relative; height: calc(var(--story-pin) + (var(--steps, 1) - 1) * var(--story-step)); }
  .snap-on .bk-on .step-snap { position: absolute; left: 0; display: block; width: 1px; height: 1px; pointer-events: none; }
  .snap-on .bk-on .steps-pin {
    position: sticky; top: var(--snap-top, var(--header-height)); display: flex; align-items: flex-start; height: var(--story-pin);
    padding-block: var(--top-line) var(--space-3); overflow: clip;
  }
  .snap-on .bk-on .steps-pin > .container { width: 100%; }
  .snap-on .bk-on .carousel-nav { display: none; }
  .snap-on .bk-on .bk-controls { display: flex; }

  /* The book: the paper layer (aria-hidden), the tiles (the same list as on phones) and the page edges. The paper and
     the tiles of one leaf share one hinge on the binding line, so they turn as one sheet (book.js). */
  /* The paper reaches 16px past the column on each side, so the tiles keep today's width inside its margins. */
  .snap-on .bk-on .bk-book { position: relative; isolation: isolate; margin-inline: calc(-1 * var(--space-2)); }
  .snap-on .bk-on .book-decor { position: absolute; inset: 0; display: block; pointer-events: none; }
  .snap-on .bk-on .bk-tiles {
    grid-auto-flow: row; grid-template-columns: repeat(var(--per, 3), minmax(0, 1fr)); grid-template-rows: auto; gap: 0 var(--space-2);
    margin: 0; padding: var(--space-3) var(--space-2) calc(var(--steps, 1) * var(--bk-foot)); overflow: visible; scroll-snap-type: none;
  }
  /* Every tile of every leaf shares one row, so all leaves are one height and a lower leaf hides wholly under the
     open one. In #features the pictures, titles and texts also line up across the leaf (subgrid), as today. */
  .snap-on .bk-on .bk-tiles > li { grid-row: 1; backface-visibility: hidden; }
  .snap-on #features.bk-on .bk-tiles { grid-template-rows: auto auto 1fr; }
  .snap-on #features.bk-on .bk-tiles > li { grid-row: 1 / span 3; grid-template-rows: subgrid; row-gap: var(--space-2); }
  .snap-on .bk-on .bk-tiles > [data-col="1"] { grid-column: 1; }
  .snap-on .bk-on .bk-tiles > [data-col="2"] { grid-column: 2; }
  .snap-on .bk-on .bk-tiles > [data-col="3"] { grid-column: 3; }
  .snap-on .bk-on .bk-tiles > li:active { transform: none; }
  .snap-on .bk-on .bk-tiles > :is(.bk-covered, .bk-turned) { pointer-events: none; }
  .snap-on .bk-on .bk-tiles > li:focus { outline: none; }
  .snap-on .bk-on .bk-tiles > li:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }
  .snap-on .bk-on.section-munshi .bk-tiles > li:focus-visible { outline-color: var(--gold); }
  .snap-on .bk-on :is(.bk-tiles > li, .bk-paper, .bk-edge, .bk-sheen).bk-moving { transition: none; }

  /* A turning leaf goes wordless before it tilts: titles and text fade with the scroll (book.js), the pictures keep
     their shapes and lose their letters, and Munshi ji's drawing leaves with them. */
  .snap-on .bk-on .bk-greek .viz, .snap-on .bk-on .bk-greek .viz * { color: transparent !important; }
  .snap-on .bk-on .bk-greek .viz .munshi-ji, .snap-on .bk-on .bk-greek .viz .qr { visibility: hidden; }
  /* A turning or turned leaf's edge hides its words with opacity, not visibility, so the button keeps its name for a
     screen reader (and focusing it brings its leaf back). */
  .snap-on .bk-on .bk-greek .bk-e-in { opacity: 0; }

  /* Paper: hangs from the binding; leaf k is 32px longer than leaf k - 1 (site.js sets each one's length). */
  .bk-paper {
    position: absolute; left: 0; right: 0; top: var(--bk-bind); border-radius: 0 0 12px 12px; pointer-events: auto; backface-visibility: hidden;
    background-color: var(--bk-paper, #fbf8f1);
    background-image: repeating-linear-gradient(to bottom, transparent 0 23px, var(--bk-rule) 23px 24px);
    box-shadow: 0 1px 0 var(--bk-lip), 0 10px 20px var(--bk-drop);
  }
  .bk-sheen { position: absolute; left: 0; right: 0; opacity: 0; border-radius: 0 0 12px 12px; background: linear-gradient(to bottom, rgba(4, 14, 24, .06), rgba(4, 14, 24, .18)); backface-visibility: hidden; }
  .bk-shade { position: absolute; left: 0; right: 0; top: var(--bk-bind); height: 72px; opacity: 0; background: linear-gradient(to bottom, rgba(4, 14, 24, .9), rgba(4, 14, 24, .35) 40%, rgba(4, 14, 24, 0)); }
  .bk-ruled { position: absolute; left: 0; right: 0; height: 0; pointer-events: auto; }
  /* The sheen and the shade change every frame of a turn: each keeps its own layer so nothing under them repaints. */
  .snap-on .bk-on :is(.bk-sheen, .bk-shade) { will-change: transform, opacity; }

  /* The binding: a 16px cloth band with gold stitches every 16px, and a gold dori with a knot off its right end. */
  .bk-binding {
    position: absolute; z-index: 90; top: 0; left: calc(-1 * var(--bk-bind) / 2); right: calc(-1 * var(--bk-bind) / 2); height: var(--bk-bind);
    border-radius: 4px; pointer-events: auto;
    background:
      radial-gradient(circle, var(--gold) 0 1.5px, transparent 2px) 8px 50% / 16px 16px repeat-x,
      linear-gradient(to bottom, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 45%, rgba(0, 0, 0, .22)),
      var(--bk-cloth);
    box-shadow: 0 2px 6px rgba(4, 14, 24, .35);
  }
  .bk-dori { position: absolute; z-index: 91; top: 8px; right: -12px; width: 2px; height: 40px; border-radius: 2px; background: var(--gold); }
  .bk-dori::after { content: ''; position: absolute; left: -3px; bottom: -6px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 1px rgba(4, 14, 24, .25); }
  /* One thin line above the binding for each turned leaf: progress as thickness, no dots. */
  .bk-stack {
    position: absolute; z-index: 89; left: var(--space-1); right: var(--space-1); bottom: 100%; height: calc(var(--turned, 0) * 4px);
    background: repeating-linear-gradient(to top, var(--bk-stack-line) 0 2px, transparent 2px 4px);
  }

  /* The page edges: the open leaf's own foot is blank paper; the edges under it carry their tiles'
     titles. Each is a button: pointing at it lifts it 4px and the pen draws a gold line under it. */
  .snap-on .bk-on .bk-edges { position: absolute; inset: 0; display: block; pointer-events: none; }
  .bk-edge {
    position: absolute; left: 0; right: 0; display: flex; align-items: center; height: var(--bk-foot); min-width: 0;
    padding: 0 var(--space-2); border: 0; border-radius: 0 0 12px 12px; background-color: var(--bk-paper, #fbf8f1); color: var(--bk-ink);
    font-size: var(--text-12); line-height: 1.5; text-align: left; white-space: nowrap; overflow: hidden; cursor: pointer; pointer-events: auto;
    backface-visibility: hidden; transition: transform .24s ease, box-shadow .24s ease, z-index 0s linear .24s;
  }
  .bk-edge:not(.is-open) { box-shadow: inset 0 2px 0 var(--bk-gilt); }
  /* It lifts over the open leaf's foot (whose last 4px are blank), so its words stay whole. */
  .bk-edge:not(.is-open):hover { z-index: 80 !important; transition: transform .24s ease, box-shadow .24s ease, z-index 0s; transform: translateY(-4px); box-shadow: inset 0 2px 0 var(--bk-gilt), 0 -2px 8px var(--bk-drop), 0 8px 16px var(--bk-drop); }
  .bk-edge.is-open { cursor: default; }
  .bk-edge:focus-visible { outline: 2px solid var(--bk-ring); outline-offset: -4px; }
  .bk-e-in {
    display: flex; align-items: center; gap: var(--space-1); min-width: 0; padding-block: 0;
    background: linear-gradient(var(--gold), var(--gold)) left bottom / 0% 2px no-repeat; transition: background-size .24s ease;
  }
  .bk-edge:not(.is-open):hover .bk-e-in, .bk-edge:not(.is-open):focus-visible .bk-e-in { background-size: 100% 2px; }
  .bk-e-label { flex: none; font-weight: 700; }
  .bk-e-titles, .bk-e-short { display: flex; align-items: center; gap: var(--space-1); min-width: 0; }
  .bk-e-t { display: inline-flex; align-items: center; gap: var(--space-1); }
  .bk-e-t .icon { color: var(--bk-icon); }
  .bk-e-dot { color: var(--bk-dot); }
  .bk-e-short, .bk-e-tick { display: none; }
  .bk-e-tick { color: var(--bk-tick); }
  .bk-edge:not(.is-open) .bk-e-of, .bk-edge.is-open .bk-e-titles, .bk-edge.is-compact:not(.is-open) .bk-e-titles {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .bk-edge.is-open .bk-e-tick { display: inline-flex; }
  .bk-edge.is-compact:not(.is-open) .bk-e-short { display: flex; }

  /* The pen's line: a gold line draws under each title of the leaf that has just opened, then lifts off to the right, as
     the pen's trail fades. It never stays: a lasting underline would read as a link (the titles are not links). */
  .snap-on .bk-on .bk-tiles > li > h3 { position: relative; justify-self: start; align-self: start; }
  /* Drawn with transform only (scale, then a slide that shrinks it away), so the browser runs it off the main thread. */
  .snap-on .bk-on .bk-tiles > li > h3::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--gold);
    transform: scaleX(0); transform-origin: left center; pointer-events: none;
  }
  .snap-on.anim-ready .bk-on .bk-tiles > .bk-arrived > h3::after { animation: bk-ink 1.2s ease-in-out .06s both; }

  /* #features: cream paper with navy rules at 6%, navy cloth, navy ink on the edges (gold on cream is too faint
     to read, so the gold stays a rule, never text). Flow v20: the head pattern, then the book 32px under it; under the
     book one row: the pager on the left, the example line beside it, "See all features" at the row's end. */
  #features { --bk-paper: #fbf8f1; --bk-rule: rgba(20, 49, 73, .06); --bk-cloth: var(--navy); --bk-lip: rgba(20, 49, 73, .14); --bk-drop: rgba(20, 49, 73, .16); --bk-ink: var(--navy); --bk-icon: var(--navy); --bk-dot: var(--navy); --bk-tick: var(--success); --bk-gilt: var(--gold); --bk-ring: var(--navy); --bk-stack-line: rgba(20, 49, 73, .45); }
  .snap-on #features.bk-on .container { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: var(--space-4); align-items: center; }
  .snap-on #features.bk-on :is(.section-head, .bk-book) { grid-column: 1 / -1; }
  /* The binding is the book's top rule, so the book hangs 24px under the heading (the tiles 32px under the binding's
     top), which keeps three tiles a leaf on one screen in both languages. */
  .snap-on #features.bk-on .section-head { margin-bottom: var(--space-3); }
  .snap-on #features.bk-on .pager-row { display: contents; }
  .snap-on #features.bk-on :is(.bk-controls, .pager-link, .container > .caption) { grid-row: 3; margin-top: var(--space-3); }
  .snap-on #features.bk-on .bk-controls { grid-column: 1; }
  .snap-on #features.bk-on .container > .caption { grid-column: 2; }
  .snap-on #features.bk-on .pager-link { grid-column: 3; margin-left: 0; }
  .snap-on #features.bk-on .bk-paper { background-color: var(--bk-paper); }
  /* Three tiles a leaf, 32px apart (357px at 1136px), 16px inside (dense tiles, as the security tiles and the road's
     cards: with 24px the Roman Urdu leaf ran a screen and a half). Every picture box is one height with its picture
     centred, so the titles on a leaf share one line; 16px from the picture to its title, 8px to the text. */
  .snap-on #features.bk-on .bk-tiles { column-gap: var(--space-4); }
  .snap-on #features.bk-on .bk-tiles > li { row-gap: var(--space-1); padding: var(--space-2); }
  .snap-on #features.bk-on .feature .viz { height: var(--bk-pic, 200px); min-height: 0; margin-bottom: var(--space-1); padding: var(--space-1); align-content: center; }
  /* The open leaf's own foot is blank paper; the edges under it carry their tiles' titles. */
  .bk-edge.is-open .bk-e-tick { display: none; }
}
/* Screens 820px tall or less (1440 x 800, 1366 x 768, 1280 x 720) and narrow desktops (960-1199px, which carry more
   leaves): edges 24px. */
@media (min-width: 960px) and (max-width: 1199px), (min-width: 960px) and (max-height: 820px) {
  .snap-on .bk-on { --bk-foot: var(--space-3); }
}
/* The short-screen tier (under 760px tall, e.g. 1280 x 720): picture boxes 128px; the tax picture (stored content)
   leaves out its second tag. */
@media (min-width: 960px) and (max-height: 759px) {
  .snap-on #features.bk-on { --bk-pic: 128px; }
  .snap-on #features.bk-on .calc + .viz-tags > :nth-child(2) { display: none; }
}
@keyframes bk-ink {
  0% { transform: translateX(0) scaleX(0); }
  25%, 60% { transform: translateX(0) scaleX(1); }
  100% { transform: translateX(100%) scaleX(0); }
}

/* ---------- #munshi on wide screens: the frame is a parchi pad (book.js adds .is-pad with motion; 2026-11-16) ---------- */
/* The three pictures are slips of one pad under an 8px glued navy strip, the order on top: all three lie in the frame,
   so the one in view covers the ones under it, and slip 2 covers slip 3 (the tax card) whole. A slip that moves loses
   its words and Munshi ji first (80ms), then turns up toward you about the strip until it lies edge-on (360ms) and is
   gone; a slip coming back drops onto the pad the same way and gets its words back once it lands. The frame's size,
   the 5s turns and point-to-hold are as before; with reduced motion the pictures change as before. */
@media (min-width: 1200px) {
  #munshi .mf-steps.is-live.is-pad .mf-step > .mf-pic {
    opacity: 1; visibility: visible; transform-origin: 50% 0; backface-visibility: hidden;
    transition: transform .36s cubic-bezier(.4, 0, .2, 1) .08s, opacity 0s linear 0s, visibility 0s linear 0s;
  }
  #munshi .mf-steps.is-live.is-pad .mf-step:nth-child(1) > .mf-pic { z-index: 3; }
  #munshi .mf-steps.is-live.is-pad .mf-step:nth-child(2) > .mf-pic { z-index: 2; }
  #munshi .mf-steps.is-live.is-pad .mf-step:nth-child(3) > .mf-pic { z-index: 1; }
  #munshi .mf-steps.is-live.is-pad .mf-step.is-flipped > .mf-pic {
    transform: perspective(1600px) rotateX(90deg); opacity: 0; visibility: hidden;
    transition: transform .36s cubic-bezier(.4, 0, .2, 1) .08s, opacity 0s linear .44s, visibility 0s linear .44s;
  }
  #munshi .mf-steps.is-live.is-pad .mf-step.is-moving > .mf-pic { box-shadow: 0 12px 28px rgba(2, 8, 14, .35); }
  #munshi .mf-steps.is-live.is-pad .mf-step.is-moving > .mf-pic { color: transparent !important; }
  #munshi .mf-steps.is-live.is-pad .mf-step.is-moving > .mf-pic * { color: transparent !important; transition: color .08s linear; }
  #munshi .mf-steps.is-live.is-pad .mf-step.is-moving > .mf-pic :is(.munshi-ji, .icon) { visibility: hidden; }
  #munshi .mf-steps.is-live.is-pad::before {
    content: ''; position: absolute; z-index: 4; top: -4px; right: calc(-1 * var(--space-1)); left: calc(50% + var(--space-3));
    height: 8px; border-radius: 4px; pointer-events: none;
    background: linear-gradient(to bottom, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 60%), var(--navy);
    box-shadow: 0 2px 4px rgba(2, 8, 14, .45), inset 0 -1px 0 rgba(217, 165, 90, .45);
  }
}
@media print {
  .steps-track { height: auto !important; }
  .steps-pin { position: static !important; height: auto !important; }
  .book-decor, .bk-edges, .bk-controls { display: none !important; }
}

/* ==========================================================================
   The home page flow (flow-plan, 2026-11-16): the not-a-fit tab, the story's heading inside the pin and its old-way
   lines, the setup road, and the contact band sharing its screen with the footer.
   ========================================================================== */

/* ---------- #who: the "Right for you?" tab (tone "no") ---------- */
/* Crosses in the muted ink of the old fit card, a muted rule along the top, and no picture: the points span the panel
   (two columns on wide screens, so the panel stays about as tall as the other tabs). */
.panel.is-no { border-top: 5px solid var(--muted); }
.panel.is-no .panel-points .icon { color: var(--muted); }
.panel.no-viz { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .panel.no-viz .panel-points { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2) var(--space-4); }
}

/* ---------- The invoice story: its heading inside the pinned frame, and the old way under each step ---------- */
.journey-head { margin-bottom: 0; }
.step-old { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--space-1); margin-top: var(--space-1); color: var(--on-navy); }
.step-old s { text-decoration-thickness: 2px; text-decoration-color: var(--on-navy); }
.step-stamp { display: inline-block; color: var(--gold-on-dark); font-weight: 800; }
/* The stamp lands once each time its step arrives (never smaller than its own size). */
.anim-ready .journey.is-live .journey-step.is-active .step-stamp { animation: stamp-in .24s ease-out .3s both; }
@keyframes stamp-in { from { opacity: 0; transform: scale(1.12); } }
/* Phones and tablets: the heading scrolls away above the pinned part (site.js measures it into --story-head), so the
   pinned stage keeps all of its room, as before. */
@media (max-width: 959px) {
  .journey.is-live .journey-pin { top: calc(var(--header-height) - var(--story-head, 0px)); height: calc(var(--story-pin) + var(--story-head, 0px)); }
  .journey.is-live .journey-track { height: calc(var(--story-pin) + var(--story-head, 0px) + 4 * var(--story-step)); }
  .journey.is-live .journey-snap:nth-child(1) { top: var(--story-head, 0px); }
  .journey.is-live .journey-snap:nth-child(2) { top: calc(var(--story-head, 0px) + var(--story-step)); }
  .journey.is-live .journey-snap:nth-child(3) { top: calc(var(--story-head, 0px) + 2 * var(--story-step)); }
  .journey.is-live .journey-snap:nth-child(4) { top: calc(var(--story-head, 0px) + 3 * var(--story-step)); }
  .journey.is-live .journey-snap:nth-child(5) { top: calc(var(--story-head, 0px) + 4 * var(--story-step)); }
  .journey.is-live .journey-head { padding-bottom: var(--space-3); }
  .journey.is-live .step-old { margin-top: 0; }
}
/* Phones: the struck line and its stamp keep to one line, so the pinned stage still fits a phone screen; the label
   ("The old way:") stays for screen readers. */
@media (max-width: 479px) {
  .journey.is-live .step-old-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (min-width: 960px) {
  /* The section's top is the pinned frame's top, so the first stop is "Draft" with the heading in view. */
  .journey.is-live { padding-top: 0; }
  .journey.is-live .journey-head h2 { text-wrap: balance; }
}

/* ---------- The setup road (#how-it-works, layout "road") ---------- */
/* Phones first: the checklist, the four steps as the vertical timeline, then the end card. */
.road .road-line { display: none; }
.road .road-cards { display: grid; gap: var(--space-4); }
.road .road-needs { margin-top: 0; }
.road-cta { display: grid; align-content: start; gap: var(--space-1); padding: var(--space-3); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 12px; background: var(--surface); }
.section:not(.section-surface) .road-cta { border-top-color: var(--gold); }
.road-cta h3 { font-size: var(--text-18); font-weight: 800; }
.road-cta p { color: var(--muted); }
.road-cta .cta-buttons { margin-top: var(--space-2); }
/* Tablets and desktops without the moving road: today's one-screen layout (the checklist beside the heading, the
   steps in a row) with the end card as a band under the steps. */
@media (min-width: 960px) {
  .road:not(.road-live) .road-frame { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--space-8); row-gap: var(--space-4); align-items: start; }
  .road:not(.road-live) :is(.road-view, .road-move, .road-cards) { display: contents; }
  .road:not(.road-live) .road-head { grid-column: 1; grid-row: 1; }
  .road:not(.road-live) .road-head .section-head { margin: 0; }
  .road:not(.road-live) .road-needs { grid-column: 2; grid-row: 1; margin: 0; padding: var(--space-3); }
  .road:not(.road-live) .timeline { grid-column: 1 / -1; grid-row: 2; gap: var(--space-2); }
  .road:not(.road-live) .road-cta { grid-column: 1 / -1; grid-row: 3; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-4); align-items: center; }
  .road:not(.road-live) .road-cta > :not(.cta-buttons) { grid-column: 1; }
  .road:not(.road-live) .road-cta .cta-buttons { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}

/* The road itself: wide desktops with the screen lock (site.js marks the section .road-live). The section pins under
   the header for one stop per step card; each stop slides the cards one along and the rail's gold fill follows to the
   card in view. Flow v20: the head on the top line, the rail 32px under it, the cards 16px under the rail, the pager
   24px under the cards. One card style: 352px wide and 40px apart, so three cards fill the 1136px content box exactly
   and every stop starts and ends on a card's edge; 16px inside, a 4px top rule (gold on the end card), titles 18.67px,
   picture boxes 88px. Every card is as tall as the tallest; the end card is short. The track runs out to the window's
   right edge, where it fades, so the next card always peeks; words in view are never faded, scaled or tilted. */
@media (min-width: 1200px) {
  .road-live { --road-card: 352px; --road-gap: var(--space-5); --road-pic: 88px; padding-block: 0; }
  .road-live .road-track { position: relative; }
  .road-live .road-snap { position: absolute; left: 0; display: block; width: 1px; height: 1px; pointer-events: none; }
  .road-live .road-pin { position: sticky; top: var(--snap-top, var(--header-height)); display: flex; align-items: flex-start; overflow: hidden; }
  .road-live .road-frame { display: block; padding-block: var(--top-line) var(--space-3); }
  /* The head runs the track's width, so the intro keeps one line in both languages (the Roman Urdu one is 85
     characters) and the cards keep their pictures. */
  .road-live .road-head .section-head { max-width: none; margin: 0 0 var(--space-4); }
  .road-live .road-head .section-head > p:last-child { max-width: none; }
  .road-live .road-view {
    min-width: 0; width: calc(100% + (100vw - 100%) / 2); overflow-x: clip;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent);
  }
  .road-live .road-move { display: grid; gap: var(--space-2); width: max-content; will-change: transform; }
  .road-live .road-line { position: relative; display: flex; gap: var(--road-gap); margin: 0; padding: 0; list-style: none; }
  .road-live .road-line::before, .road-live .road-line::after {
    content: ''; position: absolute; top: 15px; left: calc(var(--road-card) / 2); right: calc(var(--road-card) / 2); height: 3px; border-radius: 2px; background: var(--line);
  }
  .road-live .road-line::after { background: var(--gold); transform: scaleX(var(--road-fill, 0)); transform-origin: left; }
  .road-live .road-line li { position: relative; z-index: 1; display: grid; flex: none; width: var(--road-card); place-items: center; }
  .road-disc {
    display: grid; width: 32px; height: 32px; place-items: center; border: 2px solid var(--line); border-radius: 50%;
    background: var(--surface); color: var(--muted); font-size: var(--text-12); font-weight: 800; font-variant-numeric: tabular-nums;
    transition: background-color .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease;
  }
  .road-line li.is-done .road-disc { border-color: var(--navy); background: var(--navy); color: white; }
  .road-line li.is-current .road-disc { border-color: var(--gold); background: var(--gold); color: var(--navy-deep); box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--gold); transition-delay: .2s; }
  .road-live .road-cards { display: flex; gap: var(--road-gap); align-items: stretch; }
  .road-live .road-cards .timeline { display: flex; flex: none; gap: var(--road-gap); }
  .road-live .road-card { flex: none; width: var(--road-card); padding: var(--space-2); }
  .road-live :is(.road-needs, .timeline-step, .road-cta) h3 { font-size: var(--text-14); }
  .road-live .road-needs { display: block; margin: 0; border-top: 4px solid var(--navy); }
  .road-live .road-needs ul { grid-template-columns: minmax(0, 1fr); margin-top: var(--space-2); }
  /* The rail's disc above each card already numbers it, so the card itself opens on its title, as the checklist and
     the end card do. */
  #how-it-works.road-live .timeline-step { grid-template-columns: minmax(0, 1fr); }
  #how-it-works.road-live .timeline-step::before { display: none; }
  #how-it-works.road-live .timeline-step > h3 { grid-column: 1; }
  .road-live .timeline-step { --fill: 0; }
  .road-live .timeline-step:is(.is-done, .is-current) { --fill: 1; }
  .road-live .timeline-step::after { transition: transform .4s ease .2s; }
  /* Each step's picture in a box of one height at the card's foot: its first two lines (the label line, where there is
     one, is left out). */
  .road-live .timeline-step > .viz { align-self: end; align-content: center; height: var(--road-pic); min-height: 0; padding: var(--space-1); overflow: hidden; }
  .road-live .timeline-step > .viz .viz-muted { display: none; }
  .road-live.road-nopics .timeline-step > .viz { display: none; }
  /* The end card: the destination, short (its heading, one line and the button), its top rule gold. */
  .road-live .road-cta { align-self: flex-start; margin: 0; }
  .road-live .road-cta .cta-buttons { grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
  .road-live .road-nav { margin-top: var(--space-3); }
  .road-live .road-card:focus { outline: none; }
  .road-live .road-card:focus-visible { outline: 3px solid var(--navy); outline-offset: -3px; }
  .road-live .tile:hover { transform: none; }
}
/* The short-screen tier (under 760px tall): picture boxes 64px, their first line only. */
@media (min-width: 1200px) and (max-height: 759px) {
  .road-live { --road-pic: 64px; }
  .road-live .timeline-step > .viz .viz-tags { display: none; }
}
/* While the road is pinned a sideways swipe moves it, never the browser's back gesture. */
html.road-on { overscroll-behavior-x: contain; }
@media (prefers-reduced-motion: reduce) {
  .road-disc, .road-live .timeline-step::after { transition: none; }
  .anim-ready .journey.is-live .journey-step.is-active .step-stamp { animation: none; }
}
@media print {
  .road-line, .road-nav { display: none !important; }
}

/* ==========================================================================
   Flow v20 (2026-11-17), builder 1: Munshi's two screens (#munshi "Meet Munshi ji" and #bill-bana-do "Munshi ji, bill
   bana do. Bilkul!"), their example chats and Munshi's draft card, #who as one register, the accountants' morning as a
   ledger, and the one step control's row under the bahi. The page-wide pass (the top line, the lock's layout and
   measure, the pager's script, the bill's arrival sequence) sits on top of this. Type only from --text-*, spacing only
   from --space-* (scripts/marketing-site.test.mjs); nothing under 16px.
   ========================================================================== */

/* ---------- Shared: one example line per section, and chats in the app's colours (munshi.css:172-176) ---------- */
.caption { color: var(--muted); }
:is(.section-navy, .journey, .cta-band) .caption { color: var(--on-navy); }
.section .container > .caption { margin-top: var(--space-2); }
.chat { display: grid; align-content: start; }
.msg { display: grid; justify-items: start; gap: var(--space-1); min-width: 0; }
.msg.from-you { justify-items: end; }
/* Your messages: navy tint, the corner nearest you squared; Munshi's: white with a hairline, his corner squared. */
.bub { max-width: 85%; padding: var(--space-1) var(--space-2); border: 1px solid transparent; border-radius: 12px; color: var(--ink); overflow-wrap: anywhere; }
.from-you > .bub { border-bottom-right-radius: 4px; background: var(--navy-tint); }
.from-munshi > .bub { border-color: var(--line); border-bottom-left-radius: 4px; background: var(--surface); }

/* ---------- Meet Munshi ji (#munshi): canvas, his card on the left, three exchanges on the right ---------- */
.meet-grid { display: grid; gap: var(--space-6); }
.munshi-meet .section-head h2 { text-wrap: balance; }
.mj-card { display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.mj-card > .munshi-ji { width: 96px; height: 96px; }
.mj-body { display: grid; gap: var(--space-1); min-width: 0; }
.mj-body h3 { font-size: var(--text-16); font-weight: 800; }
.mj-label { color: var(--muted); }
.mj-chips { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.mj-chips li { padding: 0 var(--space-2); border-radius: 999px; background: var(--navy-tint); color: var(--navy); font-weight: 600; line-height: 2; white-space: nowrap; }
.mj-note { margin-top: var(--space-2); color: var(--muted); }
/* 8px from your question to his reply, 24px between exchanges. */
.meet-chat .msg + .msg { margin-top: var(--space-1); }
.meet-chat .msg.from-munshi + .msg.from-you { margin-top: var(--space-3); }
.meet-when { display: flex; align-items: flex-start; gap: var(--space-1); margin-top: var(--space-3); color: var(--muted); }
.meet-when > .icon { flex: none; height: 24px; color: var(--navy); }
.meet-chat .caption { margin-top: var(--space-2); }
/* Phones: the drawing (72px) beside his name and the label, and the chips across the card under both, so they take two
   rows, not four. */
@media (max-width: 599px) {
  .mj-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--space-1) var(--space-2); align-items: center; padding: var(--space-2); }
  .mj-card > .munshi-ji { grid-row: 1 / span 2; width: 72px; height: 72px; }
  .mj-body { display: contents; }
  .mj-body h3 { grid-column: 2; align-self: end; }
  .mj-label { grid-column: 2; align-self: start; }
  .mj-chips { grid-column: 1 / -1; margin-top: var(--space-1); }
}
@media (min-width: 960px) {
  /* 480 | 64 | 592 at 1136px; both columns start on the heading's line. */
  .munshi-meet .meet-grid { grid-template-columns: minmax(0, 480fr) minmax(0, 592fr); column-gap: var(--space-8); align-items: start; }
  .meet-chat .from-munshi > .bub { max-width: 88%; }
}

/* ---------- Munshi ji, bill bana do (#bill-bana-do): navy-deep, the words, the chat, the draft card ---------- */
.chat-grid { display: grid; gap: var(--space-5); }
.munshi-chat .section-head { margin-bottom: var(--space-3); }
/* The brand line in three set lines: the call, then the answer in gold. */
.munshi-chat .section-head h2 .hl { display: block; }
.munshi-chat .section-head h2 em { display: block; font-style: normal; color: var(--gold); }
.chat-rule { display: flex; align-items: flex-start; gap: var(--space-1); color: var(--on-navy); }
.chat-rule > .icon { flex: none; height: 24px; color: var(--gold); }
.chat-rule strong { color: white; }
.chat-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); margin-top: var(--space-3); }
.chat-thread .msg + .msg { margin-top: var(--space-2); }
.chat-pasted { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--on-navy); }
.chat-pasted > .icon { color: var(--gold); }
/* Quick answers as the app draws them (MunshiChat.tsx:423-432): white, a hairline, 44px tall; the one you tapped
   keeps a gold ring. */
.chat-choices { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.chat-choices li { display: inline-flex; min-height: 44px; align-items: center; padding: var(--space-1) var(--space-2); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font-weight: 600; }
.chat-choices li.is-picked { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
/* "Munshi likh raha hai…" shows only while the page plays the chat, before the card arrives; never at rest. */
.chat-typing { display: none; align-items: center; gap: var(--space-1); margin-top: var(--space-2); color: var(--on-navy); font-weight: 600; }
.chat-typing > .munshi-ji { width: 36px; height: 36px; }
.chat-thread .caption { margin-top: var(--space-3); }
.chat-result { display: grid; align-content: start; gap: var(--space-2); }
/* Munshi's draft card (DraftCard.tsx): Bilkul's figures, the app's labels, no drawing. */
.draft-card { display: grid; gap: var(--space-1); padding: var(--space-3); border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); font-variant-numeric: tabular-nums; }
.draft-card :is(.dc-kind, .dc-words, .dc-note, .dc-said) { color: var(--muted); }
.dc-kind { font-weight: 600; }
.dc-buyer { font-size: var(--text-16); font-weight: 800; }
.dc-lines { display: grid; gap: var(--space-2); margin-top: var(--space-1); padding-block: var(--space-2); border-block: 1px solid var(--line); }
.dc-lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 var(--space-2); align-items: baseline; }
.dc-name { font-weight: 700; }
.dc-said { text-align: right; }
.dc-chip { justify-self: end; padding: 0 var(--space-1); border-radius: 999px; background: var(--navy-tint); color: var(--navy); font-weight: 600; white-space: nowrap; }
.dc-totals { display: grid; gap: var(--space-1); }
.dc-totals div { display: flex; justify-content: space-between; gap: var(--space-2); }
.dc-totals dd { margin: 0; font-weight: 600; }
.dc-totals .is-total { padding-top: var(--space-1); border-top: 1px solid var(--line); font-size: var(--text-14); font-weight: 800; }
.dc-totals .is-total dd { font-weight: 800; }
.dc-actions { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-1); }
.dc-actions > span { display: inline-flex; min-height: 44px; align-items: center; padding: var(--space-1) var(--space-2); border: 1px solid var(--navy); border-radius: 8px; background: var(--surface); color: var(--navy); font-weight: 700; }
.dc-actions > .dc-create { border-color: var(--gold); background: var(--gold); color: var(--navy-deep); }
/* Phones and tablets: one column, read top to bottom (the words, the chat, the card, Munshi's line), and the example
   line last, under the card it also covers. */
@media (max-width: 959px) {
  .chat-grid { gap: var(--space-4); }
  .chat-thread { display: contents; }
  .chat-thread .caption { order: 1; margin-top: 0; }
}
@media (min-width: 960px) {
  .munshi-chat .section-head h2 { font-size: var(--text-32); line-height: 1.2; }
  /* 960-1199px: the words across the top, the chat and the card side by side under them. */
  .munshi-chat .chat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4); row-gap: var(--space-5); align-items: start; }
  .munshi-chat .chat-words { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
  /* 304 | 32 | 320 | 32 | 448 at 1136px, all three columns starting on the heading's line. */
  .munshi-chat .chat-grid { grid-template-columns: minmax(0, 304fr) minmax(0, 320fr) minmax(0, 448fr); }
  .munshi-chat .chat-words { grid-column: auto; }
}
/* Short desktop screens (under 760px tall, e.g. 1280 x 720): a closer card. */
@media (min-width: 960px) and (max-height: 759px) {
  .draft-card { padding: var(--space-2); }
  .dc-lines { gap: var(--space-1); padding-block: var(--space-1); }
}

/* ---------- #who as one register (layout "register"): canvas, every trade at once, "not a fit" under them ---------- */
.is-register .section-head { max-width: 784px; }
.register { display: grid; gap: var(--space-4); }
.reg-col { position: relative; display: grid; align-content: start; gap: var(--space-1); min-width: 0; }
.reg-label { display: flex; align-items: center; gap: var(--space-1); color: var(--navy); font-weight: 700; }
:is(.reg-col, .reg-no) h3 { font-size: var(--text-16); font-weight: 800; }
.reg-points { display: grid; gap: var(--space-1); }
.reg-points li { display: flex; align-items: flex-start; gap: var(--space-1); }
.reg-points .icon { flex: none; height: 24px; color: var(--muted); }
.register .panel-note { margin: 0; padding: 0; background: none; }
.reg-no { display: grid; gap: var(--space-2); margin-top: var(--space-4); padding: var(--space-3); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.reg-no-head { display: flex; align-items: center; gap: var(--space-1); }
.reg-no-head > .icon { flex: none; color: var(--muted); }
@media (min-width: 720px) {
  .register { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Short desktop screens (under 760px tall): 24px under the heading and above "not a fit". */
@media (min-width: 960px) and (max-height: 759px) {
  .is-register .section-head { margin-bottom: var(--space-3); }
  .reg-no { margin-top: var(--space-3); }
}
@media (min-width: 960px) {
  /* Four columns, a hairline in the middle of each 32px gutter. */
  .register { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .register > .reg-col + .reg-col::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--space-2)); width: 1px; background: var(--line); }
  .reg-no { grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); column-gap: var(--space-4); align-items: start; }
  .reg-no .reg-points { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--space-4); }
}

/* ---------- #accountants: one example morning as a ledger (navy-deep, Munshi's colours) ---------- */
/* Phones: each client a block, its three cells under its name, each with its label. From 960px: one ruled row per
   client under a header row, the labels kept for screen readers only; the caption and the call to action share the
   last line. */
.mm { display: grid; }
.mm-head { display: none; }
.mm-list { display: grid; gap: var(--space-3); }
.mm-row { display: grid; gap: var(--space-1); }
.mm-client { color: white; font-size: var(--text-14); font-weight: 800; }
.mm-cell { color: var(--on-navy); }
.mm-k { margin-right: var(--space-1); color: var(--gold-on-dark); font-weight: 700; }
.mm-foot { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.mm-caption { color: var(--on-navy); }
.mm-cta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-2); align-items: start; padding: var(--space-3); border: 1px solid var(--navy-line); border-radius: 12px; background: var(--veil); }
.mm-cta > .icon { color: var(--gold); }
.mm-cta p { color: var(--on-navy); }
.mm-cta strong { color: white; }
.mm-cta .button { grid-column: 1 / -1; }
@media (max-width: 599px) {
  .mm-cta strong { display: block; }
}
@media (min-width: 960px) {
  .mm-head, .mm-row { grid-template-columns: minmax(0, 200fr) minmax(0, 280fr) minmax(0, 328fr) minmax(0, 328fr); column-gap: var(--space-3); }
  .mm-head { display: grid; padding-bottom: var(--space-1); border-bottom: 1px solid var(--navy-line); color: var(--gold-on-dark); font-weight: 700; }
  .mm-list { gap: 0; }
  .mm-row { align-items: baseline; padding-block: var(--space-2); border-bottom: 1px solid var(--navy-line); }
  .mm-client { font-size: var(--text-12); }
  .mm-k { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .mm-foot { grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin-top: var(--space-2); }
  .mm-cta { display: flex; align-items: center; gap: var(--space-2); padding: 0; border: 0; background: none; }
  .mm-cta p { max-width: 440px; }
  .mm-cta .button { flex: none; white-space: nowrap; }
}

/* ---------- The one step control's row under the bahi: the pager on the left, the section's link at the end ---------- */
.pager { display: flex; align-items: center; justify-content: flex-start; gap: var(--space-2); }
.pager[hidden] { display: none; }
.pager-count { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pager-arrow { display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border-radius: 50%; cursor: pointer; }
.pager-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-top: var(--space-3); }
.pager-row > .pager-link { margin-left: auto; }

/* ---------- The money owed card (#features tile 1), compact enough for the bahi's picture box ---------- */
.mk-owed { gap: 0; font-variant-numeric: tabular-nums; }
.mk-owed-sum { display: flex; flex-wrap: wrap; gap: 0 var(--space-2); }
.mk-owe-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0 var(--space-1); }
.mk-owe-row + .mk-owe-row { border-top: 1px solid var(--line); }
.mk-who { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-1); min-width: 0; }
/* ---------- End of the flow v20 builder 1 block ---------- */

/* ==========================================================================
   Flow v20 (2026-11-17), builder 2: one page-wide system. Every screen opens on the same line, 64px under the header
   (48px on screens under 760px tall), and nothing is centred: a short screen keeps its calm space at its foot. One head
   pattern, one step control (‹ 1 of 5 ›, under the stepped content on the left), one card radius and one rhythm of
   8pt spacing; surfaces alternate down the page (navy, canvas, deep navy, navy, white, canvas, deep navy, canvas,
   white, navy, canvas, white, navy). Type only from --text-*, spacing only from --space-*; nothing under 16px.
   ========================================================================== */
:root { --top-line: var(--space-8); }
@media (max-height: 759px) { :root { --top-line: var(--space-6); } }
/* With the lock the pinned frames are exactly one screen under the header as the lock measures it (site.js). */
.snap-on { --story-pin: calc(100vh - var(--snap-top, var(--header-height))); }

/* ---------- The top line (desktop, where the screens lock) ---------- */
@media (min-width: 960px) {
  .snap-on main > section:not(.journey.is-live, .road-live, .bk-on) { padding-block: var(--top-line) var(--space-3); }
  /* The invoice story's pinned frame: the same line, its content from the top. */
  .journey.is-live .journey-pin { top: var(--snap-top, var(--header-height)); align-items: flex-start; }
  .journey.is-live .journey-frame { padding-block: var(--top-line) var(--space-3); }
}
/* The short-screen tier (e.g. 1280 x 720): 24px from a head to its content. */
@media (min-width: 960px) and (max-height: 759px) {
  .section-head { margin-bottom: var(--space-3); }
}

/* ---------- The one step control: ‹ 1 of 5 › (story, road, bahi; the phone row under the tiles) ---------- */
/* 44px round arrows either side of the count. On light surfaces navy arrows on white with a hairline; on navy white
   arrows with an on-navy hairline. A disabled arrow stays focusable (aria-disabled) at 35%. */
.pager { display: flex; align-items: center; gap: var(--space-2); }
.pager[hidden] { display: none; }
.pager > .pager-arrow, .carousel-nav .arrow {
  display: grid; width: 44px; height: 44px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: var(--surface); color: var(--navy); cursor: pointer; transition: background-color .15s ease;
}
.pager > .pager-arrow:hover:not([aria-disabled='true'], :disabled), .carousel-nav .arrow:hover:not(:disabled) { background: var(--navy-tint); }
.pager > .pager-arrow:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.pager > .pager-arrow:is([aria-disabled='true'], :disabled), .carousel-nav .arrow:disabled { cursor: default; }
.pager > .pager-arrow:is([aria-disabled='true'], :disabled):not(:focus-visible), .carousel-nav .arrow:disabled { opacity: .35; }
.pager > .pager-arrow[aria-disabled='true']:focus-visible > * { opacity: .35; }
.pager > .pager-count, .carousel-nav > .swipe-hint { color: var(--ink); font-size: var(--text-12); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
:is(.journey, .section-navy, .cta-band) .pager > .pager-arrow { border-color: var(--on-navy); background: transparent; color: white; }
:is(.journey, .section-navy, .cta-band) .pager > .pager-arrow:hover:not([aria-disabled='true'], :disabled) { background: var(--veil-strong); }
:is(.journey, .section-navy, .cta-band) .pager > .pager-arrow:focus-visible { outline-color: var(--gold); }
:is(.journey, .section-navy, .cta-band) .pager > .pager-count { color: white; }
/* Phones: the tiles' swipe row has the same control, the count between the arrows (no dots). */
.carousel-nav .dots { display: none; }
.carousel-nav .arrows { display: contents; }
.js .carousel-nav { justify-content: flex-start; margin-top: var(--space-2); }
.carousel-nav [data-carousel-prev] { order: 1; }
.carousel-nav > .swipe-hint { order: 2; }
.carousel-nav [data-carousel-next] { order: 3; }

/* ---------- Hero: the result, then the proof (invoice #142 accepted, FBR's number in view) ---------- */
/* h1, 16px (24px on desktop), the lead, 24px (32px), the gold button, 16px, one row: the tick and "Get the app". */
.showcase-hero .hero-copy { gap: 0; }
.showcase-hero .lead { margin-top: var(--space-2); }
.showcase-hero .hero-ctas { margin-top: var(--space-3); }
.showcase-hero .microcopy { margin-top: var(--space-2); align-items: center; }
@media (max-width: 959px) {
  /* A 44px tap height for "Get the app". */
  .microcopy-link { min-height: 44px; }
}
@media (min-width: 960px) {
  .showcase-hero .hero-grid { align-items: start; }
  .showcase-hero .lead { margin-top: var(--space-3); }
  .showcase-hero .hero-ctas { margin-top: var(--space-4); }
  .hero-scene .phone { top: 0; }
}
@media (min-width: 1200px) {
  /* The phone's top level with the h1; as tall as the first screen allows (at most 600px), 48px clear at its foot. */
  .snap-on .hero-scene, .snap-on .hero-scene .phone { height: min(600px, calc(var(--hero-room, 604px) - var(--space-6))); }
}

/* ---------- Meet Munshi ji (#munshi) ---------- */
/* Flow v21 (builder 2): the chat panel is one picture and fades in as one (the flow v21 block at the end); its
   messages never move on their own. */

/* ---------- Munshi ji, bill bana do (#bill-bana-do): the chat plays once ---------- */
/* site.js plays the chat once when it comes into view: your order, his question, the gold ring on the quick answer you
   tapped, then the card. Until then the pieces wait unseen; with reduced motion or no script they are simply there.
   Flow v21 (builder 2): the pieces fade in place (opacity only, nothing slides), and the ring appears without a pulse.
   The typing row stays for stored content only. */
.munshi-chat .chat { position: relative; }
.munshi-chat .chat > .chat-typing { position: absolute; top: 100%; left: 0; }
.chat-typing.is-on { display: flex; }
.anim-ready .munshi-chat :is([data-play], .chat-thread .caption) { transition: opacity .24s ease; }
.anim-ready .munshi-chat.is-waiting :is([data-play]:not(.chat-typing), .chat-thread .caption):not(.is-in) { opacity: 0; }
.anim-ready .chat-typing.is-on .munshi-ji .mc-writing-pen { animation: munshi-write .8s ease-in-out 1; transform-origin: 72px 94px; }
/* The tapped answer keeps a plain hairline until the play reaches the tap (600ms), then its gold ring shows. */
.chat-choices li { transition: border-color .24s ease, box-shadow .24s ease; }
.anim-ready .munshi-chat.is-waiting .chat-choices li.is-picked:not(.is-ring) { border-color: var(--line); box-shadow: none; }
.dc-actions > .dc-create.is-ring { box-shadow: 0 0 0 2px var(--surface), 0 0 0 5px var(--gold); }
/* The pen keeps to the navy: over the card, the messages and the quick answers the normal cursor shows (site.js). */

/* ---------- Who it's for (#who): the not-a-fit card's items stand under the register's columns ---------- */
@media (min-width: 960px) {
  /* Within the card's 24px sides the columns run 236, 260, 260 and 236 wide, 32px apart (at 1136px): the register's column edges. */
  .reg-no { grid-template-columns: minmax(0, 236fr) minmax(0, 820fr); column-gap: var(--space-4); }
  .reg-no .reg-points { grid-template-columns: minmax(0, 260fr) minmax(0, 260fr) minmax(0, 236fr); column-gap: var(--space-4); }
}

/* ---------- Features (#features): the money owed card reads as the app's card ---------- */
/* Bilkul's figures first: the card's name, the two totals on one line, then a ruled row per customer and the line that
   says where the figures come from, each between hairlines; 8px inside so the totals keep one line in the bahi. */
.mk-owed { padding: var(--space-1) var(--space-2); }
.mk-owe-row, .mk-asof { border-top: 1px solid var(--line); }
@media (min-width: 960px) {
  .snap-on #features.bk-on .mk-owed { padding-inline: var(--space-1); }
}
/* The short-screen tier's 128px picture boxes: the money card keeps its name and the three customers, the sale types
   their first two. */
@media (min-width: 960px) and (max-height: 759px) {
  .snap-on #features.bk-on :is(.mk-owed-sum, .mk-asof, .mk-owed .mk-link) { display: none; }
  .snap-on #features.bk-on .select .opt:nth-child(n + 3) { display: none; }
}
/* Without the bahi (desktop with reduced motion, touch laptops) the tiles stand in rows of three: in each row the
   pictures, titles and texts share one line each, as on a leaf. */
@media (min-width: 960px) {
  #features:not(.bk-on) .bento > .tile:not(.span-2, .span-all) { grid-row: span 3; grid-template-rows: subgrid; row-gap: var(--space-1); }
  #features:not(.bk-on) .bento > .tile > .viz { margin-bottom: var(--space-1); }
}
/* The bahi's edges: no dot before the first title. */
.bk-e-titles > .bk-e-t:first-child > .bk-e-dot { display: none; }

/* ---------- The app (#app): the toggle level with the heading, both phones inside x752-1288 ---------- */
@media (min-width: 1200px) {
  /* The phones' shadows stay on their own screen, never on the navy one under it. */
  .app-section { overflow: clip; }
  .app-copy .section-head { margin-bottom: var(--space-4); }
  .app-stage { align-content: start; gap: var(--space-2); }
  /* The two phones stand upright side by side, 8px apart (264 + 8 + 264 = the column's 536px), the dark one 48px lower,
     so neither covers the other's screen: tilted inside x752-1288 the dark phone hid the light one's pills and
     "Complete" and darkened its words below AA (checker, 2026-11-17). The light phone is in front, so its shadow falls
     on the dark screen, never on the light screen's words. As tall as the screen allows, at most 520px. */
  .app-phones { --app-phone: min(520px, calc(100vh - var(--snap-top, var(--header-height)) - var(--top-line) - 136px)); max-width: none; height: calc(var(--app-phone) + 48px); }
  .app-phones .phone { height: var(--app-phone); }
  .app-phones .phone-a { top: 0; left: 0; z-index: 2; transform: none; }
  .app-phones .phone-b { top: 48px; right: 0; left: auto; z-index: 1; transform: none; }
}

/* ---------- The close (#contact) and the footer, on one last screen where they fit (site.js) ---------- */
.snap-on .joins-footer.demo-cta { padding-bottom: var(--space-6); }
/* A footer on a screen of its own opens on the top line too. */
@media (min-width: 960px) { .snap-on .site-footer:not(.is-joined) { padding-top: var(--top-line); } }
/* Joined, the footer is measured at its own height; site.js then gives it the rest of the screen. */
.snap-on .site-footer.is-joined { min-height: 0; padding-top: var(--space-4); }
.snap-on .site-footer.is-joined .footer-legal { margin-top: var(--space-4); padding-block: var(--space-2) var(--space-3); }
/* Mouse and trackpad only (the lock): 32px rows of links, still above the 24px target size. */
.snap-on .site-footer.is-joined .footer-links a { min-height: 32px; }
.snap-on .site-footer.is-joined nav.footer-links li { padding-bottom: 0; }
@media (min-width: 960px) and (max-height: 759px) {
  .snap-on .joins-footer.demo-cta { padding-bottom: var(--space-4); }
}
/* The footer's divider runs across the content box (x152-1288), not the container's padding. */
.footer-legal { position: relative; border-top: 0; }
.footer-legal::before { content: ''; position: absolute; top: 0; left: var(--space-2); right: var(--space-2); height: 1px; background: var(--line); }
@media (min-width: 720px) { .footer-legal::before { left: var(--space-4); right: var(--space-4); } }

/* ---------- Phones (flow v20): 16px gutters, sections 48px top and bottom, cards 16px inside, nothing that drifts ---------- */
@media (max-width: 599px) {
  .card, .needs, .road-cta, .mm-cta { padding: var(--space-2); }
  .road-cta h3 { font-size: var(--text-14); }
  /* The footer's Explore links in two columns (each link still a 44px target). */
  nav.footer-links ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-2); row-gap: 0; }
}
@media (max-width: 719px) {
  /* The two phones of #app sit side by side in a swipe row: both stand level (no drift on scroll), as tall as the
     dashboard needs. */
  .app-phones .phone { height: 480px; translate: none !important; }
  /* The feature tiles' swipe row: every card's picture, title and text share one row each, so the titles stay level
     from card to card as you swipe; the money owed card keeps 8px inside so its figures keep their lines. */
  .carousel { grid-template-rows: auto auto 1fr; }
  .carousel > .tile { grid-row: span 3; grid-template-rows: subgrid; }
  /* A one-line title sits at the foot of the title row, so every text starts right under its title. */
  .carousel > .tile > h3 { align-self: end; }
  .carousel .feature .viz { min-height: 0; padding: var(--space-1); align-content: center; }
  .mk-owed { padding: var(--space-1); }
  /* The story's rail shows the current stage's name only. A name wider than its fifth of the rail runs on from its
     start, so the last one starts from the right and ends on the content's edge (x374 at 390px), its dot on the line. */
  .journey.is-live .rail li:last-child { direction: rtl; }
}
/* Touch: the app's Both / Light / Dark switch is a 44px target, like every other control on a phone (checker; it was
   40px). The mouse-only desktop keeps 40px, so the phones still fit their screen. */
@media (max-width: 959px), (pointer: coarse) {
  .segmented button { min-height: 44px; }
}
@media (max-width: 959px) {
  /* Under the tiles, "See all features" starts at the left like the step control above it. */
  .pager-row > .pager-link { margin-left: 0; }
  /* The story's step control, 16px under its invoice (with the frame's 8px gap). */
  .journey.is-live .journey-nav { margin-top: var(--space-1); }
}

@media (prefers-reduced-motion: reduce) {
  .anim-ready .munshi-chat :is([data-play], .chat-thread .caption), .chat-choices li { transition: none; }
}
@media print {
  .munshi-chat :is([data-play], .caption), .munshi-meet .chat > .msg { opacity: 1 !important; transform: none !important; }
  .chat-typing, .pager, .carousel-nav { display: none !important; }
}
/* ---------- End of the flow v20 builder 2 block ---------- */

/* ==========================================================================
   Flow v21 (2026-11-17, owner: "not good enough - all cluttered"), builder 1: the nine calm screens' structure and
   their stripped pictures. Every screen: words | one picture (480 | 560 at 1136px, space-between, both on the top
   line), the screen's one action under the words. The page-wide pass (the colour arc and flat fills, ornament
   removal, motion, the phone layouts, the top line's tiers, contrast) sits on top of this. Type only from --text-*,
   spacing only from --space-* (scripts/marketing-site.test.mjs); nothing under 16px.
   ========================================================================== */

/* ---------- The screen grid (system 1): words, then the picture, then the one action ---------- */
.screen-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.screen-words { display: grid; align-content: start; min-width: 0; }
.screen-words > .section-head { max-width: 480px; margin: 0; }
.screen-words .section-head > p:last-child:not(.eyebrow) { max-width: 480px; }
.screen-pic { min-width: 0; }
.screen-more { margin: 0; }
@media (min-width: 960px) {
  .screen-grid {
    grid-template-columns: minmax(0, 480px) minmax(0, 560px); grid-template-rows: auto 1fr; justify-content: space-between;
    column-gap: var(--space-6); row-gap: var(--space-4);
  }
  .screen-grid > .screen-words { grid-column: 1; grid-row: 1; }
  .screen-grid > .screen-pic { grid-column: 2; grid-row: 1 / span 2; }
  .screen-grid > .screen-more { grid-column: 1; grid-row: 2; }
  .result.is-words .screen-grid { grid-template-columns: minmax(0, 720px); }
  /* One display size for every screen's heading (42.67px, two lines at most), 24px to the line. */
  .screen-words .section-head h2, .munshi-chat .chat-head h2 { font-size: var(--text-32); line-height: 1.2; }
  .screen-words > .section-head, .munshi-chat .chat-head { gap: var(--space-3); }
  /* A grid area named for the five-step story's frame means nothing inside the words column. */
  .journey-frame.screen-grid .screen-words > * { grid-area: auto; }
}
@media (min-width: 960px) and (max-height: 759px) {
  .munshi-chat .chat-head { gap: var(--space-2); }
}

/* ---------- Meet Munshi ji (#munshi): one white chat panel, his drawing beside his name ---------- */
.chat-panel { padding: var(--space-3); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 8px 24px rgba(20, 49, 73, .08); }
.chat-who { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); color: var(--ink); font-size: var(--text-16); font-weight: 700; }
.chat-who > .munshi-ji { flex: none; width: 96px; height: 96px; }
/* 8px from your question to his reply, 24px between exchanges. */
.chat-panel .chat > .msg + .msg { margin-top: var(--space-1); }
.chat-panel .chat > .msg.from-munshi + .msg.from-you { margin-top: var(--space-3); }
.chat-panel :is(.mj-note, .meet-when, .caption) { margin-top: var(--space-2); }
@media (max-width: 599px) {
  .chat-panel { padding: var(--space-2); }
  .chat-who > .munshi-ji { width: 72px; height: 72px; }
}
@media (min-width: 600px) and (max-height: 759px) {
  .chat-panel { padding: var(--space-2); }
  .chat-who { margin-bottom: var(--space-2); }
  .chat-who > .munshi-ji { width: 64px; height: 64px; }
}

/* ---------- Munshi ji, bill bana do (#bill-bana-do): the head across, then the chat | the card ---------- */
.munshi-chat .chat-head { max-width: none; }
.munshi-chat .chat-head > p:last-child:not(.eyebrow) { max-width: 640px; }
.munshi-chat .chat-grid > .chat .msg + .msg { margin-top: var(--space-2); }
.munshi-chat .chat-grid > .chat .from-you > .bub { max-width: 85%; }
.munshi-chat .chat-grid > .caption { color: var(--on-navy); }
@media (min-width: 960px) {
  .munshi-chat .screen-grid.chat-grid {
    grid-template-columns: minmax(0, 480px) minmax(0, 560px); grid-template-rows: auto 1fr; justify-content: space-between;
    column-gap: var(--space-6); row-gap: var(--space-3);
  }
  .munshi-chat .chat-grid > .chat { grid-column: 1; grid-row: 1; }
  .munshi-chat .chat-grid > .chat-result { grid-column: 2; grid-row: 1 / span 2; }
  .munshi-chat .chat-grid > :is(.screen-more, .caption) { grid-column: 1; grid-row: 2; align-self: start; }
}
/* From 960px the brand line keeps one line: "Munshi ji, bill bana do. Bilkul!" (about 600px wide); phones keep the
   set lines. */
@media (min-width: 960px) {
  .munshi-chat .section-head h2 :is(.hl, em) { display: inline; }
}
/* The draft card in six parts: its title, two lines 8px apart, the total with Bilkul's rule, then Create 16px under. */
.draft-card { gap: 0; }
.dc-title { font-size: var(--text-14); font-weight: 700; }
.draft-card .dc-lines { gap: var(--space-1); margin-top: var(--space-2); padding-block: var(--space-2); }
.draft-card .dc-lines li { display: flex; justify-content: space-between; gap: var(--space-2); }
.dc-qty { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.dc-total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-2); font-weight: 700; }
.dc-total strong { font-size: var(--text-16); font-variant-numeric: tabular-nums; }
.draft-card .dc-note { margin-top: var(--space-1); }
.draft-card > .dc-create {
  display: inline-flex; justify-self: start; min-height: 48px; align-items: center; margin-top: var(--space-2); padding: 0 var(--space-3);
  border-radius: 8px; background: var(--gold); color: var(--navy-deep); font-weight: 700;
}
@media (min-width: 960px) and (max-height: 759px) {
  .draft-card { padding: var(--space-2) var(--space-3); }
  .draft-card .dc-lines { margin-top: var(--space-1); padding-block: var(--space-1); }
  .dc-total { margin-top: var(--space-1); }
}

/* ---------- The story (#invoice-path, three steps): the words and the stage's line | invoice #142's card ---------- */
.journey.is-three .step-line { max-width: none; font-size: var(--text-14); }
.journey.is-three.is-live .journey-track { height: calc(var(--story-pin) + 2 * var(--story-step)); }
/* Phones and tablets (under 960px): the three-step story does not pin. It reads in place, the words, the card, then
   the pager, and a tap on the pager (or a sideways swipe) changes the step where it stands (site.js). */
@media (max-width: 959px) {
  .journey.is-three.is-live { padding-block: var(--space-6) var(--space-8); }
  .journey.is-three.is-live .journey-track { height: auto; }
  .journey.is-three .journey-snap { display: none; }
  .journey.is-three.is-live .journey-pin { position: static; display: block; height: auto; overflow: visible; }
  .journey.is-three.is-live .journey-frame { gap: var(--space-4); padding-block: 0; }
  .journey.is-three.is-live .journey-head { padding-bottom: var(--space-2); }
  .journey.is-three.is-live .journey-nav:not([hidden]) { display: flex; margin-top: 0; }
}
@media (min-width: 960px) {
  .journey-frame.screen-grid { grid-template-areas: none; grid-template-rows: auto 1fr; column-gap: var(--space-6); row-gap: 0; }
  .journey.is-three .journey-head { margin-bottom: var(--space-3); }
  .journey-frame.screen-grid > .journey-nav { grid-area: auto; grid-column: 1; grid-row: 2; align-self: start; margin-top: var(--space-4); }
}
/* The card stays still; only its states change, each in its own place (nothing shifts). */
.j-card.story-card { gap: 0; }
.sc-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-1) var(--space-2); }
.sc-title { display: grid; font-size: var(--text-16); font-weight: 700; }
.sc-buyer { color: var(--muted); font-size: var(--text-12); font-weight: 400; }
.sc-lines { display: grid; gap: var(--space-2); margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--line); }
.sc-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: baseline; gap: var(--space-2); }
.sc-name { font-weight: 700; }
.sc-qty { color: var(--muted); font-variant-numeric: tabular-nums; }
.sc-total { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--line); font-weight: 700; }
.sc-total-v { display: grid; justify-items: end; }
.sc-total-v strong { font-size: var(--text-16); font-variant-numeric: tabular-nums; }
.sc-tax { color: var(--muted); font-weight: 400; }
.sc-slot { margin-top: var(--space-2); }
.sc-slot > .slot-box { min-height: 80px; padding: var(--space-2); }
.sc-muted { display: block; color: var(--muted); }
@media (max-width: 599px) {
  .sc-head { flex-direction: column; }
  .sc-head > .pill-stack { justify-items: start; }
  .sc-line { grid-template-columns: minmax(0, 1fr) auto; }
  .sc-line > .sc-qty { grid-column: 1; grid-row: 2; }
  .sc-line > .tick { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- One result per screen: the money on a bahi page, the accountants' switcher, the FBR token ---------- */
/* The bahi page (Option A, kept on purpose): cream paper ruled every 32px, the rows on the rules, a 16px navy binding
   with gold stitches every 16px across its top. */
.bahi-page {
  position: relative; padding: var(--space-4) var(--space-4) var(--space-3); border-radius: 0 0 12px 12px; color: var(--ink);
  background: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(20, 49, 73, .08) 31px 32px), #fbf8f1;
  box-shadow: 0 8px 24px rgba(20, 49, 73, .08); font-variant-numeric: tabular-nums;
}
.bahi-page::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 16px; border-radius: 4px 4px 0 0;
  background: radial-gradient(circle, var(--gold) 0 1.5px, transparent 2px) 8px 50% / 16px 16px repeat-x, var(--navy);
}
.bahi-page > p { display: flex; justify-content: space-between; gap: var(--space-2); line-height: 32px; }
.bp-title { font-size: var(--text-16); font-weight: 700; }
.bahi-page > .bp-sum { flex-wrap: wrap; justify-content: flex-start; gap: 0 var(--space-1); color: var(--muted); }
.bp-sum > span { white-space: nowrap; }
.bp-sum strong { color: var(--ink); }
.bp-row strong { font-weight: 700; }
.bp-late { margin-left: var(--space-1); color: var(--warning); font-weight: 600; }
@media (max-width: 599px) {
  .bahi-page { padding-inline: var(--space-2); }
}
.switcher { width: 100%; max-width: 400px; padding: var(--space-1) 0; border-radius: 12px; background: var(--surface); color: var(--ink); }
.sw-label { padding: var(--space-1) var(--space-3); color: var(--muted); font-weight: 600; }
.sw-row { display: flex; min-height: 48px; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 0 var(--space-3); font-weight: 600; }
.sw-row.is-current { background: var(--navy-tint); }
.sw-row > .icon { color: var(--navy); }
.token-card { width: 100%; max-width: 480px; padding: var(--space-3); border-radius: 12px; background: var(--surface); color: var(--ink); }
.tk-label { font-weight: 700; }
.tk-field { display: flex; height: 48px; align-items: center; margin-top: var(--space-1); padding: 0 var(--space-2); overflow: hidden; border: 1px solid #7d8893; border-radius: 8px; white-space: nowrap; }
.tk-hint { margin-top: var(--space-1); color: var(--muted); }
/* Picture frames: on light screens a hairline and a soft shadow; on dark ones no border and a deeper shadow. */
.result:not(.section-navy) :is(.switcher, .token-card) { border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(20, 49, 73, .08); }
.section-navy :is(.switcher, .token-card) { box-shadow: 0 16px 40px rgba(4, 14, 24, .32); }
.result.section-navy .section-head h2 { color: white; }

/* ---------- The setup road (#how-it-works): the words | a fixed row of three discs over the sliding cards ---------- */
.rp-line { color: var(--ink); }
.rp-ok { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--success); font-weight: 700; }
.rp-button { display: inline-flex; min-height: 40px; align-items: center; padding: 0 var(--space-2); border: 1px solid var(--navy); border-radius: 8px; background: var(--navy); color: white; font-weight: 700; }
.rp-button.is-quiet { background: var(--surface); color: var(--navy); }
.road-card > .viz { min-height: 0; justify-items: start; background: var(--canvas); }
.road-disc { position: relative; display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 2px solid var(--navy); border-radius: 50%; background: var(--surface); color: var(--navy); font-size: var(--text-12); font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; }
/* A 44px target around the 32px disc. */
.road-disc::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; }
.road-disc[aria-current='step'] { background: var(--navy); color: white; }
.road-disc:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
@media (min-width: 1200px) {
  .road-live { --road-card: 400px; --road-gap: var(--space-4); }
  .road-live .road-frame.screen-grid { display: grid; }
  .road-live .road-head .section-head { max-width: 480px; margin: 0; }
  .road-live .road-head .section-head > p:last-child { max-width: 480px; }
  /* The picture column runs from its start to the window's right edge and is cut there; the next card peeks. */
  .road-live .road-view { width: calc(50vw - 8px); overflow-x: clip; -webkit-mask-image: none; mask-image: none; }
  .road-live .road-line { position: relative; display: flex; width: 432px; justify-content: space-between; gap: 0; }
  .road-live .road-line::before { content: ''; position: absolute; top: 15px; left: 16px; right: 16px; height: 2px; border-radius: 0; background: var(--gold); transform: none; }
  .road-live .road-line::after { display: none; }
  .road-live .road-move { display: block; margin-top: var(--space-3); }
  .road-live .road-cards, .road-live .road-cards .timeline { gap: var(--road-gap); }
  .road-live .road-card { padding: var(--space-3); border-top-width: 1px; border-top-color: var(--line); background: var(--surface); box-shadow: 0 8px 24px rgba(20, 49, 73, .08); }
  .road-live .road-card::after { display: none; }
  /* The card title is a heading: Manrope (design system), at the picture-title size. */
  #how-it-works.road-live .road-card > h3 { font-size: var(--text-16); font-weight: 700; }
  .road-live .road-card > .viz { height: auto; margin-top: var(--space-2); padding: var(--space-2); align-content: start; overflow: visible; }
}

/* ---------- The hero's phone: upright, 300 wide, its screen the five items that prove the result ---------- */
.app-hero .app-body { display: grid; align-content: start; gap: var(--space-2); padding: var(--space-6) var(--space-2) var(--space-2); }
.app-hero .a-title { font-size: var(--text-14); font-weight: 700; }
.app-hero .a-who { display: grid; justify-items: start; gap: var(--space-1); }
.app-hero .a-card { padding: var(--space-2); box-shadow: none; }
.app-hero .a-total { font-weight: 700; }
.app-hero .a-fbr { gap: var(--space-2); border-left-width: 1px; border-left-color: var(--a-line); }
.app-hero .a-fbr .qr { width: 48px; height: 48px; }
@media (min-width: 1200px) {
  .showcase-hero .hero-grid { grid-template-columns: minmax(0, 552px) 300px; justify-content: space-between; }
  .snap-on .showcase-hero .hero-scene, .showcase-hero .hero-scene { width: 300px; height: 440px; }
  .snap-on .showcase-hero .hero-scene .phone, .showcase-hero .hero-scene .phone { top: 0; right: 0; left: auto; width: 300px; height: 440px; }
}
@media (min-width: 1200px) and (max-height: 759px) {
  .snap-on .showcase-hero .hero-scene, .showcase-hero .hero-scene, .snap-on .showcase-hero .hero-scene .phone, .showcase-hero .hero-scene .phone { height: 400px; }
  .app-hero .app-body { gap: var(--space-1); }
}

/* ---------- The close (#pricing): a warm grey band, the heading, one line, one navy button ---------- */
.close-band { background: var(--canvas); }
.close-band h2 { font-size: var(--text-24); font-weight: 800; }
.close-band .container > p { max-width: 720px; margin-top: var(--space-3); color: var(--muted); font-size: var(--text-14); }
.close-band .cta-buttons { margin-top: var(--space-4); }
.snap-on .joins-footer.close-band { padding-bottom: var(--space-8); }
@media (min-width: 960px) {
  .close-band h2 { font-size: var(--text-32); line-height: 1.2; }
}
/* Short screens (1280 x 720): the band and the footer still share the last stop (the footer's example line, flow v21,
   made the pair 24px taller than the 639px room). */
@media (min-width: 960px) and (max-height: 759px) {
  .close-band .cta-buttons { margin-top: var(--space-3); }
  .snap-on .joins-footer.close-band { padding-bottom: var(--space-3); }
  .snap-on .site-footer.is-joined { padding-top: var(--space-2); }
  .snap-on .site-footer.is-joined .footer-legal { gap: 0; margin-top: var(--space-3); padding-bottom: var(--space-3); }
}
@media (max-width: 599px) {
  .close-band .cta-buttons .button { width: 100%; }
}
@media print {
  .road-line { display: none !important; }
}
/* ---------- End of the flow v21 builder 1 block ---------- */

/* ==========================================================================
   Flow v21 (2026-11-17), builder 2: one calm system for the home page, desktop and phone. Builder 1's block above sets
   each screen's structure; this one sets how every screen looks and moves.
   - One display voice: every screen's heading in Manrope 700 at 42.67px (32px on phones), no tracking, balanced lines;
     one line under it in Inter 400 at 18.67px, at most 480px wide (Bill 640px, the close 720px), with no orphan word.
   - One picture frame: a white card, 12px radius, 24px inside; on light screens a hairline and a soft shadow, on dark
     ones no hairline and one deeper shadow. Nothing else casts a shadow: no halos, no lifts, no glows.
   - Flat fills down the page: navy, canvas, deep navy, navy, canvas, navy, white, navy, canvas, then the white footer.
   - Minimal motion: each screen's picture fades in once (240ms, opacity only); Bill plays once; the story cross-fades
     its states; the road slides; at rest nothing moves. With reduced motion or no script everything is simply there.
   - Phones: one column, 16px gutters, 48px above and 64px below each screen; the words, then the picture, then the
     one action (the hero's button comes before its phone).
   Type only from --text-*, spacing only from --space-* (scripts/marketing-site.test.mjs); nothing under 16px.
   ========================================================================== */

/* ---------- Display type: one voice for every screen's heading ---------- */
/* Two balanced lines, so no heading ends on one word ("Your records stay / your company's"; measured in both languages
   with tools/.work/dc2-heads.mjs). One exception: the English money heading keeps its natural break after the comma
   ("Know who owes you, / and how much"), which balancing would split inside "who owes you". */
.showcase-hero h1,
.showcase-hero ~ section :is(.section-head, .chat-head) h2,
.showcase-hero ~ .close-band h2 { font-weight: 700; letter-spacing: 0; text-wrap: balance; }
html[lang="en"] .showcase-hero ~ #features .section-head h2 { text-wrap: wrap; }
@media (max-width: 599px) {
  .showcase-hero h1,
  .showcase-hero ~ section :is(.section-head, .chat-head) h2,
  .showcase-hero ~ .close-band h2 { font-size: var(--text-24); line-height: 1.25; }
}

/* ---------- The one line under each heading ---------- */
.showcase-hero .lead { max-width: 480px; }
.showcase-hero .lead,
.showcase-hero ~ section :is(.section-head, .chat-head) > p:last-child:not(.eyebrow),
.showcase-hero ~ section .step-line,
.showcase-hero ~ .close-band .container > p { text-wrap: pretty; }
/* The story's line is a line like every other (18.67px), on phones too (a v20 phone rule set it to 16px). */
.showcase-hero ~ .journey.is-three .journey-steps .step-line { font-size: var(--text-14); line-height: 1.5; }
/* Short lines inside a picture that wrap do so evenly ("Apni company ke workspace / mein shamil hon", not "... shamil
   / hon"). Chat bubbles are left alone: a balanced bubble would keep its full width with the lines shorter inside it. */
.showcase-hero ~ section :is(.rp-line, .rp-ok, .tk-hint, .dc-note) { text-wrap: balance; }

/* ---------- One picture frame ---------- */
/* Light screens (Meet's chat, the road's cards): a hairline and a soft shadow. Dark screens (Bill's card, the story's
   card, the switcher, the token): no hairline and one deeper shadow. The bahi page keeps its paper (no hairline). */
.showcase-hero ~ section :is(.chat-panel, .road-card.timeline-step) { border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(20, 49, 73, .08); }
.showcase-hero ~ section :is(.draft-card, .story-card, .switcher, .token-card) { border: 0; box-shadow: 0 16px 40px rgba(4, 14, 24, .32); }
/* Picture titles and key figures: Inter 700 at 21.33px, as the story card's and the bahi's. */
.showcase-hero ~ section .dc-title { font-size: var(--text-16); }

/* ---------- Hero: flat navy, the words, and invoice #142 on one upright phone ---------- */
/* The phone keeps only its frame and island; its screen is the app's flat canvas (no light fields), with one shadow. */
.showcase-hero .phone { box-shadow: 0 16px 40px rgba(4, 14, 24, .32), inset 0 0 0 2px var(--navy-line); }
.app-hero { background: var(--a-canvas); }
.app-hero .a-title { font-size: var(--text-16); }
@media (min-width: 960px) {
  /* Words 552px from the content's left edge, the 300px phone flush right; both tops on the top line (960px and up,
     so a narrow desktop gets the same screen as a wide one). */
  .showcase-hero { padding-block: var(--top-line) var(--space-6); }
  .showcase-hero .hero-grid { grid-template-columns: minmax(0, 552px) 300px; justify-content: space-between; align-items: start; column-gap: var(--space-6); }
  .snap-on .showcase-hero .hero-scene, .showcase-hero .hero-scene { width: 300px; max-width: none; height: 440px; margin: 0; }
  .snap-on .showcase-hero .hero-scene .phone, .showcase-hero .hero-scene .phone { top: 0; right: 0; left: auto; width: 300px; height: 440px; }
}
@media (min-width: 960px) and (max-height: 759px) {
  .snap-on .showcase-hero .hero-scene, .showcase-hero .hero-scene, .snap-on .showcase-hero .hero-scene .phone, .showcase-hero .hero-scene .phone { height: 400px; }
  .app-hero .app-body { gap: var(--space-1); }
}
/* Phones and tablets: the button, then the phone (300px, centred), cut flat by the screen's foot just under its FBR
   number card, so the proof is the last thing on the first screen. */
@media (max-width: 959px) {
  .showcase-hero { padding-block: var(--space-6) 0; }
  .showcase-hero .hero-grid { gap: var(--space-4); }
  .showcase-hero .hero-scene { width: min(300px, 100%); max-width: none; height: 420px; margin-inline: auto; }
  .showcase-hero .hero-scene .phone { top: 0; right: auto; left: 0; width: 100%; height: 480px; }
}

/* ---------- Each screen's picture fades in once, the first time its screen arrives (site.js marks it) ---------- */
.anim-ready .showcase-hero ~ section .screen-pic { transition: opacity .24s ease; }
.anim-ready .showcase-hero ~ section .screen-pic:not(.in-view) { opacity: 0; }

/* ---------- Controls ---------- */
/* The story's pager: two 44px round arrows in a 1px ring of their own colour. */
.showcase-hero ~ .journey .pager > .pager-arrow { border-color: currentColor; }
/* No lift or press on the road's cards: they are pictures, not buttons. */
.showcase-hero ~ .road .road-card:active { transform: none; }
@media (min-width: 960px) {
  .showcase-hero ~ .road .road-card:hover { transform: none; border-color: var(--line); box-shadow: 0 8px 24px rgba(20, 49, 73, .08); }
}
/* On the moving road every card is as tall as the tallest: its canvas box fills the card under the title, so the three
   boxes end on one line (no half-empty card). */
@media (min-width: 1200px) {
  #how-it-works.road-live .road-card.timeline-step { grid-template-rows: auto 1fr; }
  .road-live .road-card.timeline-step > .viz { align-self: stretch; }
}

/* ---------- The road without its pin (under 1200px, and wherever the lock is off) ---------- */
/* The three cards stacked, each with its number in a disc beside its title (the desktop discs' look), no rail line.
   From 960px the cards stand in the picture column beside the words, as on the wide screen. */
:is(#how-it-works, .road):not(.road-live) .timeline { gap: var(--space-2); }
:is(#how-it-works, .road):not(.road-live) .timeline::before, :is(#how-it-works, .road):not(.road-live) .timeline::after { display: none; }
:is(#how-it-works, .road):not(.road-live) .timeline-step.road-card {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto; align-items: center; align-content: start; gap: var(--space-2);
  padding: var(--space-2); border-radius: 12px; background: var(--surface);
}
:is(#how-it-works, .road):not(.road-live) .timeline-step.road-card::before {
  position: static; grid-column: 1; grid-row: 1; display: grid; width: 32px; height: 32px; place-items: center;
  border: 2px solid var(--navy); border-radius: 50%; background: var(--surface); color: var(--navy);
  font-size: var(--text-12); font-weight: 700; box-shadow: none;
}
:is(#how-it-works, .road):not(.road-live) .timeline-step.road-card::after { display: none; }
:is(#how-it-works, .road):not(.road-live) .timeline-step.road-card > h3 { grid-column: 2; grid-row: 1; align-self: center; padding-top: 0; font-size: var(--text-16); font-weight: 700; }
:is(#how-it-works, .road):not(.road-live) .timeline-step.road-card > :is(p, .viz) { grid-column: 1 / -1; }
:is(#how-it-works, .road):not(.road-live) .timeline-step.road-card > .viz { align-self: start; min-height: 0; padding: var(--space-2); justify-items: start; }
@media (min-width: 960px) {
  :is(#how-it-works, .road):not(.road-live):not(:has(.road-needs, .road-cta)) .road-frame {
    grid-template-columns: minmax(0, 480px) minmax(0, 560px); justify-content: space-between; column-gap: var(--space-6); row-gap: 0;
  }
  :is(#how-it-works, .road):not(.road-live):not(:has(.road-needs, .road-cta)) .timeline { grid-column: 2; grid-row: 1; grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Phones: one column, 48px above and 64px below each screen ---------- */
@media (max-width: 599px) {
  .showcase-hero ~ section.section { padding-block: var(--space-6) var(--space-8); }
  /* 32px from the words to the picture, as on every screen. */
  .showcase-hero ~ .munshi-chat .chat-head { margin-bottom: var(--space-4); }
  /* The close: 16px from the heading to the line, 24px to the button. */
  .showcase-hero ~ .close-band .container > p { margin-top: var(--space-2); }
  .showcase-hero ~ .close-band .cta-buttons { margin-top: var(--space-3); }
  /* The story card: each line's name over its quantity (no gap between them), the tick beside both. */
  .showcase-hero ~ .journey .sc-line { row-gap: 0; }
}
/* Every footer link is a 44px target both ways ("FAQ" was 31px wide). */
.footer-links a { min-width: 44px; }

@media (prefers-reduced-motion: reduce) {
  .anim-ready .showcase-hero ~ section .screen-pic { transition: none; }
}
@media print {
  .showcase-hero ~ section .screen-pic { opacity: 1 !important; }
}
/* ---------- End of the flow v21 builder 2 block ---------- */

/* ==== BAL-A start (#munshi and #bill-bana-do) ==== */
/* Flow v21 balance pass (2026-11-17): the two Munshi screens were calm but top-heavy (pictures ending at 71% and 79%
   of a 1440 x 800 screen). Their pictures now fill the picture column from the heading's line to about 84% of the
   screen (1280 x 720 in proportion), with nothing added and no text smaller: the type inside goes one step up the
   scale, the avatar, rows and controls grow, and the rows get more room. Desktop only (960px and up); phones and
   tablets are unchanged. The headings do not move. */
@media (min-width: 960px) {
  /* Meet Munshi ji: his card (a 128px drawing beside his name at 24px) and the two exchanges, one generous panel. */
  #munshi .chat-panel { padding: var(--space-4); }
  #munshi .chat-who { gap: var(--space-3); margin-bottom: var(--space-4); font-size: var(--text-18); }
  #munshi .chat-who > .munshi-ji { width: 128px; height: 128px; }
  #munshi .chat-panel .bub { font-size: var(--text-14); }
  #munshi .chat-panel .chat > .msg + .msg { margin-top: var(--space-2); }
  #munshi .chat-panel .chat > .msg.from-munshi + .msg.from-you { margin-top: var(--space-4); }

  /* Bill bana do: the chat and the draft card as one scene under the words. The chat's column takes 32px of the
     gutter (512 | 64 | 560 at 1136px), so the two quick answers stay on one row at the larger size; the card keeps
     the picture column's line. */
  #bill-bana-do .screen-grid.chat-grid { grid-template-columns: minmax(0, 512px) minmax(0, 560px); column-gap: var(--space-8); }
  #bill-bana-do .chat-grid > .chat :is(.bub, .chat-choices li) { font-size: var(--text-14); }
  #bill-bana-do .chat-grid > .chat .msg + .msg { margin-top: var(--space-3); }
  #bill-bana-do .chat-choices li { min-height: 48px; }
  #bill-bana-do .draft-card { padding: var(--space-4); font-size: var(--text-14); }
  #bill-bana-do .dc-title { font-size: var(--text-18); }
  #bill-bana-do .draft-card .dc-lines { gap: var(--space-2); margin-top: var(--space-2); padding-block: var(--space-2); }
  #bill-bana-do .dc-total { margin-top: var(--space-2); }
  #bill-bana-do .dc-total strong { font-size: var(--text-18); }
  #bill-bana-do .draft-card .dc-note { font-size: var(--text-12); }
  #bill-bana-do .draft-card > .dc-create { min-height: 56px; margin-top: var(--space-2); }
}
/* Short desktop screens (under 760px tall, e.g. 1280 x 720) and narrow ones (960-1199px wide, where the replies wrap
   onto more lines): the same pictures, a little closer. */
@media (min-width: 960px) and (max-height: 759px), (min-width: 960px) and (max-width: 1199px) {
  #munshi .chat-panel { padding: var(--space-3); }
  #munshi .chat-who { gap: var(--space-2); margin-bottom: var(--space-3); }
  #munshi .chat-who > .munshi-ji { width: 96px; height: 96px; }
  #munshi .chat-panel .chat > .msg + .msg { margin-top: var(--space-1); }
  #bill-bana-do .chat-grid > .chat .msg + .msg { margin-top: var(--space-2); }
  #bill-bana-do .draft-card { padding: var(--space-3); }
  #bill-bana-do .draft-card .dc-lines { gap: var(--space-1); margin-top: var(--space-1); }
  #bill-bana-do .dc-total { margin-top: var(--space-1); }
  #bill-bana-do .draft-card > .dc-create { min-height: 48px; }
}
/* ==== BAL-A end ==== */

/* ==== BAL-B start (#features and #accountants) ==== */
/* Balance pass (2026-11-17): each picture fills its column from the heading line down to about 82% of the screen
   (1440 x 800: 145 to 657; 1280 x 720: 129 to 593). No new words or elements; desktop only, phones unchanged.
   - Know who owes you (#features): the bahi page at full size. A 24px binding, the title at 24px, the two totals as the
     page head (each label over its figure at 32px), then the three names on 72px ruled rows at 21.33px. The paper is
     ruled edge to edge under the totals and under each row.
   - Accountants (#accountants): the switcher as a large card (72px rows, names at 21.33px, a 24px check), centred on a
     quiet navy stage that fills the picture column. */
@media (min-width: 960px) {
  #features .bahi-page { padding: var(--space-8) var(--space-6) var(--space-6); background-image: none; }
  #features .bahi-page::before {
    height: var(--space-3);
    background: radial-gradient(circle, var(--gold) 0 2px, transparent 2.5px) 12px 50% / 24px 24px repeat-x, var(--navy);
  }
  #features .bahi-page > .bp-title { font-size: var(--text-18); line-height: 32px; }
  #features .bahi-page > .bp-sum {
    display: grid; grid-template-columns: auto auto; justify-content: start; column-gap: var(--space-8);
    margin: var(--space-5) calc(-1 * var(--space-6)) 0; padding: 0 var(--space-6) var(--space-4);
    box-shadow: inset 0 -1px 0 rgba(20, 49, 73, .08);
  }
  #features .bahi-page > .bp-sum > span { display: grid; font-size: var(--text-14); line-height: 32px; }
  #features .bahi-page > .bp-sum > span[aria-hidden] { display: none; }
  #features .bahi-page > .bp-sum strong { font-size: var(--text-24); line-height: 48px; }
  #features .bahi-page > .bp-row {
    margin-inline: calc(-1 * var(--space-6)); padding-inline: var(--space-6);
    font-size: var(--text-16); line-height: 72px; box-shadow: inset 0 -1px 0 rgba(20, 49, 73, .08);
  }

  #accountants .screen-pic {
    display: grid; min-height: 512px; place-items: center; padding: var(--space-6);
    border-radius: 12px; background: rgba(255, 255, 255, .04);
  }
  #accountants .switcher { max-width: none; padding-block: var(--space-2); }
  #accountants .sw-label { padding: var(--space-2) var(--space-4); font-size: var(--text-14); }
  #accountants .sw-row { min-height: 72px; padding-inline: var(--space-4); font-size: var(--text-16); }
  #accountants .sw-row > .icon { width: 24px; height: 24px; }
}
/* 960-1199px wide: the picture column is narrower (424-560px), so the page keeps 32px sides and the totals 24px. */
@media (min-width: 960px) and (max-width: 1199px) {
  #features .bahi-page { padding-inline: var(--space-4); }
  #features .bahi-page > :is(.bp-sum, .bp-row) { margin-inline: calc(-1 * var(--space-4)); padding-inline: var(--space-4); }
  #features .bahi-page > .bp-sum { column-gap: var(--space-4); }
  #features .bahi-page > .bp-sum strong { font-size: var(--text-18); }
  #accountants .screen-pic { padding: var(--space-4); }
}
/* Short screens (e.g. 1280 x 720): the same picture, 48px less tall. */
@media (min-width: 960px) and (max-height: 759px) {
  #features .bahi-page { padding-block: var(--space-6) var(--space-4); }
  #features .bahi-page > .bp-sum { margin-top: var(--space-4); padding-bottom: var(--space-3); }
  #accountants .screen-pic { min-height: 464px; }
}
/* ==== BAL-B end ==== */

/* ==== BAL-C start (#security, #pricing and the site footer screen (.site-footer)) ==== */
/* Flow v21 balance pass (2026-11-17), desktop only (960px and up; phones and tablets unchanged). Nothing added, no
   text smaller, no heading moved (the top line stays at y=145 on 1440 x 800).
   - Security: the token card is the screen's picture, one size up (label 21.33px, a 64px field with 24px dots, the
     hint at 18.67px, 40px inside), centred on a flat deep-navy stage that fills the picture column from the heading's
     line to 83% of the screen (at most 640px tall).
   - The close (#pricing): the words keep the top-left corner and the one button takes the right, level with them, on
     a quiet canvas stage (from 1280px; narrower, the canvas band is the stage), so the band reads as one balanced
     row. The band and the footer still share the last stop.
   - The footer under it: brand, Explore and Customers spread across the whole content width (the empty fourth
     column is gone), so the brand line takes two lines instead of three. */
@media (min-width: 960px) {
  /* ---------- Security: the token card on its stage ---------- */
  .showcase-hero ~ #security .screen-pic {
    display: grid; place-items: center; min-height: min(640px, calc(83vh - var(--snap-top, var(--header-height)) - var(--top-line)));
    padding: var(--space-5); border-radius: 12px; background: var(--navy-deep);
  }
  .showcase-hero ~ #security .token-card { max-width: 480px; padding: var(--space-5); }
  .showcase-hero ~ #security .tk-label { font-size: var(--text-16); }
  .showcase-hero ~ #security .tk-field { height: 64px; margin-top: var(--space-2); padding: 0 var(--space-3); font-size: var(--text-18); }
  .showcase-hero ~ #security .tk-hint { margin-top: var(--space-2); font-size: var(--text-14); }
  /* 960-1199px: the picture column is narrower, so the stage and the card sit 24px and 32px inside (the 20 dots keep
     their field). */
  @media (max-width: 1199px) {
    .showcase-hero ~ #security .screen-pic { padding: var(--space-3); }
    .showcase-hero ~ #security .token-card { padding: var(--space-4); }
  }

  /* ---------- The close: words left, the one button right, level with them ---------- */
  .showcase-hero ~ #pricing > .container {
    display: grid; grid-template-columns: minmax(0, 640px) auto; justify-content: space-between; align-items: center; column-gap: var(--space-6);
  }
  .showcase-hero ~ #pricing > .container > h2 { grid-column: 1; grid-row: 1; }
  .showcase-hero ~ #pricing > .container > p { grid-column: 1; grid-row: 2; max-width: none; }
  .showcase-hero ~ #pricing > .container > .cta-buttons { grid-column: 2; grid-row: 1 / span 2; grid-template-columns: auto; margin: 0; }
  .showcase-hero ~ #pricing.close-band { padding-bottom: var(--space-8); }

  /* ---------- The footer under it: three columns across the content width ---------- */
  @media (min-width: 1200px) {
    main:has(> .showcase-hero) ~ .site-footer .footer-grid { grid-template-columns: minmax(0, 560px) max-content max-content; justify-content: space-between; }
  }

  /* ---------- The close's quiet stage (from 1280px, where the page has margins): the band turns white and its words
     and button sit on one canvas panel, 32px (24px on short screens) inside; the words keep their line ---------- */
  @media (min-width: 1280px) {
    .showcase-hero ~ #pricing.close-band { padding-top: calc(var(--top-line) / 2); background: var(--surface); }
    .showcase-hero ~ #pricing.close-band > .container { padding-block: calc(var(--top-line) / 2); border-radius: 12px; background: var(--canvas); }
    /* White on white: the footer paints 8px of white over the seam, so no hairline of the page canvas shows where the
       band (a fractional height) meets it. */
    main:has(> .showcase-hero) ~ .site-footer { box-shadow: 0 calc(var(--space-1) * -1) 0 var(--surface); }
  }
}
/* ==== BAL-C end ==== */

/* ==== BAL-D start (#how-it-works and #invoice-path) ==== */
/* Balance pass (2026-11-17): the story's invoice card and the road's cards grow to fill their column from the heading
   line down to about 82% of the screen (1440 x 800, and 1280 x 720 in proportion). Same words, same elements, same
   stops; only sizes. Type steps up the scale inside the pictures (never down), spacing stays on the 8pt tokens, and
   phones are untouched. */
@media (min-width: 960px) {
  /* The story (#invoice-path): invoice #142 at full size. 32px inside, 24px between its parts, a roomier result box
     with a 64px QR; the card is as tall in every state, so nothing moves while the steps change. */
  #invoice-path .story-card { padding: var(--space-4); }
  #invoice-path .sc-head { column-gap: var(--space-3); }
  #invoice-path :is(.sc-lines, .sc-total) { margin-top: var(--space-3); padding-top: var(--space-3); }
  #invoice-path .sc-lines { gap: var(--space-3); }
  #invoice-path .sc-slot { margin-top: var(--space-3); }
  #invoice-path .sc-slot > .slot-box { min-height: 112px; padding: var(--space-3); gap: var(--space-3); }
  #invoice-path .slot-box .qr { width: 64px; height: 64px; }

  /* Where the picture column is its full 560px (1200px and up), the card's type steps up the scale: the number 24px,
     the lines, the pill and the result 18.67px, the total 32px. */
  @media (min-width: 1200px) {
    #invoice-path .sc-title { font-size: var(--text-18); line-height: 1.3333; }
    #invoice-path .sc-buyer { font-size: var(--text-14); line-height: 1.5; }
    #invoice-path .sc-head .status-pill { min-height: 40px; font-size: var(--text-14); }
    #invoice-path .sc-line, #invoice-path .sc-line > .tick { font-size: var(--text-14); line-height: 1.5; }
    #invoice-path .sc-line { column-gap: var(--space-3); }
    #invoice-path .sc-total { font-size: var(--text-14); line-height: 1.5; }
    #invoice-path .sc-total-v strong { font-size: var(--text-24); line-height: 1.25; }
    #invoice-path .slot-box { font-size: var(--text-14); line-height: 1.5; }
  }

  /* The setup road (#how-it-works, 1200px and up while it runs): each card as wide as the picture column (560px), so
     the card in view ends on the column's edge and the next one starts 40px on, cut by the window's edge: at 1280px
     only its frame and white edge show, at 1440px its title's first word and the edge of its stage. The three
     discs (40px) span one card's width. Each card is a tall frame: its title at 24px over a calm canvas stage that
     fills the card, with the step's picture centred on it at a larger size (the result line 21.33px, the other line
     18.67px, the button 56px). */
  #how-it-works.road-live { --road-card: 560px; --road-gap: var(--space-5); }
  #how-it-works.road-live .road-line { width: var(--road-card); }
  #how-it-works.road-live .road-line::before { top: 19px; left: 20px; right: 20px; }
  #how-it-works.road-live .road-disc { width: 40px; height: 40px; font-size: var(--text-14); }
  #how-it-works.road-live .road-card.timeline-step { min-height: 448px; padding: var(--space-4); row-gap: var(--space-3); }
  #how-it-works.road-live .road-card.timeline-step > h3 { font-size: var(--text-18); line-height: 1.25; }
  #how-it-works.road-live .road-card.timeline-step > .viz {
    align-content: center; justify-items: center; gap: var(--space-3); margin-top: 0; padding: var(--space-4); text-align: center;
  }
  #how-it-works.road-live .road-card :is(.rp-line, .rp-ok) { font-size: var(--text-14); line-height: 1.5; }
  #how-it-works.road-live .road-card .rp-ok { font-size: var(--text-16); }
  #how-it-works.road-live .road-card .rp-ok .icon { width: 24px; height: 24px; }
  #how-it-works.road-live .road-card .rp-button { min-height: 56px; padding: 0 var(--space-3); font-size: var(--text-14); }

  /* The short-screen tier (1280 x 720): the same sizes in less height. */
  @media (max-height: 759px) {
    #invoice-path :is(.sc-lines, .sc-total) { margin-top: var(--space-2); padding-top: var(--space-2); }
    #invoice-path .sc-slot { margin-top: var(--space-2); }
    #invoice-path .sc-slot > .slot-box { min-height: 96px; padding-block: var(--space-2); }
    #how-it-works.road-live .road-card.timeline-step { min-height: 400px; }
  }
}
/* ==== BAL-D end ==== */

/* ==== ADD-4 start (hero) ==== */
/* ADD-4 (owner 2026-11-18: "the screens now have very less visuals and information - add slightly", "Specially the
   first screen"): a modest layer on the calm v21 hero, every rule scoped to it.
   - Words: three proof points under the button, one per row, each a gold icon in a soft round tile and a few words.
   - Picture: #142 shows its two lines with FBR's Valid ticks and the total under a rule, then FBR's number and QR, on a
     taller phone (480px on desktop); from 1200px two small proof cards sit beside it, level with what they explain,
     covering only the phone's frame.
   - Ground: faint ledger rules behind the phone only, fading out before the words (no grid, no glow). */

/* Ledger rules (960px and up): hairlines every 40px on the navy, strongest behind the phone, gone before the words. On
   phones the words sit over that part of the hero, so it stays a flat fill there. */
@media (min-width: 960px) {
  .showcase-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(to bottom, transparent 0 39px, rgba(255, 255, 255, .05) 39px 40px);
    -webkit-mask-image: radial-gradient(48% 70% at 80% 50%, #000 30%, transparent 100%);
    mask-image: radial-gradient(48% 70% at 80% 50%, #000 30%, transparent 100%);
  }
}

/* Proof points under the button. */
.showcase-hero .hero-facts { display: grid; gap: var(--space-1); margin-top: var(--space-4); color: var(--on-navy); font-size: var(--text-12); line-height: 1.5; }
.showcase-hero .hero-facts li { display: flex; align-items: center; gap: var(--space-2); }
.showcase-hero .hf-icon { display: grid; width: 32px; height: 32px; flex: none; place-items: center; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--gold); }

/* The phone's screen: the lines card (two lines, Valid ticks, the total under a rule). */
.showcase-hero .app-hero .a-lines { gap: var(--space-1); }
.showcase-hero .app-hero .a-lines .a-row { flex-wrap: nowrap; }
.showcase-hero .app-hero .a-lines .a-ok { gap: 0; }
.showcase-hero .app-hero .a-sum { margin-top: 0; padding-top: var(--space-1); border-top: 1px solid var(--a-line); }

/* The proof cards are part of the picture; they need the gap beside the phone, so they show from 1200px only. */
.showcase-hero .hero-chip { display: none; }

@media (min-width: 960px) {
  .showcase-hero .hero-facts { max-width: 480px; margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid rgba(255, 255, 255, .12); }
  /* One phone height at every desktop size (the room under the top line is at least 548px at 1280 x 720). */
  .snap-on .showcase-hero .hero-scene, .showcase-hero .hero-scene, .snap-on .showcase-hero .hero-scene .phone, .showcase-hero .hero-scene .phone { height: 480px; }
  .showcase-hero .app-hero .app-body { gap: var(--space-2); }
}

@media (min-width: 1200px) {
  .showcase-hero .hero-chip {
    position: absolute; z-index: 4; right: calc(100% - var(--space-1)); display: flex; align-items: center; gap: var(--space-2);
    width: max-content; padding: var(--space-2) var(--space-3) var(--space-2) var(--space-2); white-space: nowrap;
    border-radius: 12px; background: var(--surface); color: var(--muted); box-shadow: 0 16px 40px rgba(4, 14, 24, .32);
    font-size: var(--text-12); line-height: 1.5;
  }
  .showcase-hero .hero-chip strong { display: block; color: var(--ink); font-weight: 700; }
  .showcase-hero .hc-icon { display: grid; width: 40px; height: 40px; flex: none; place-items: center; border-radius: 999px; background: var(--success-bg); color: var(--success); }
  .showcase-hero .hero-chip.is-lock .hc-icon { background: var(--navy-tint); color: var(--navy); }
  /* Level with the lines card and with FBR's number card, both resting on the phone's frame (8px, never its screen). */
  .showcase-hero .hero-chip.is-valid { top: 200px; }
  .showcase-hero .hero-chip.is-lock { top: 344px; }
}

/* Phones and tablets: the phone cut flat by the screen's foot 16px under FBR's number card, as before. */
@media (max-width: 959px) {
  .showcase-hero .hero-scene { height: 456px; }
  .showcase-hero .hero-scene .phone { height: 520px; }
}
/* ==== ADD-4 end ==== */

/* ==== ADD-1 start (#munshi, #bill-bana-do, #invoice-path) ==== */
/* Owner 2026-11-18 on v21: "I like it but the screens now have very less visuals and information - add slightly".
   A modest layer on the three screens, still calm (v20's density was "all cluttered"):
   - Meet (#munshi): his three app style chips under his name beside the drawing, and a third exchange (the parchi
     photo he reads back first). The panel tightens a step so all three exchanges fit.
   - Bill (#bill-bana-do): "Pasted from WhatsApp" over the order, his closing line under the quick answers (a moment of
     "Munshi likh raha hai..." first while the chat plays), and the card's words line plus Subtotal and Tax. The
     sentence moves under the heading in the chat's column, so the card starts beside it and has room for its sums.
   - Story (#invoice-path): the invoice's five states as a rail under the heading, a slot icon, and a lock on the total
     once it is finalized. */

/* ---------- Meet: the chips beside the drawing ---------- */
/* His header: the drawing, then his name, the label and the three chips (they wrap on a narrow panel), over a hairline
   as the app's chat header, so the chat reads as below it. v20's phone rules for the card's label and chips (grid
   columns) do not apply here. */
#munshi .chat-who:has(.chat-who-words) { align-items: center; padding-bottom: var(--space-2); border-bottom: 1px solid var(--line); }
#munshi .chat-who-words { display: grid; justify-items: start; gap: 0; min-width: 0; }
#munshi .chat-who-words > :is(.mj-label, .mj-chips) { grid-column: 1; }
#munshi .chat-who-words .mj-label { color: var(--muted); font-size: var(--text-12); font-weight: 400; line-height: 1.5; }
#munshi .chat-who-words .mj-chips { margin-top: var(--space-1); }
#munshi .chat-who-words .mj-chips li { font-size: var(--text-12); font-weight: 600; }
@media (min-width: 960px) {
  /* Three exchanges in the frame BAL-A gave two: the drawing 96px beside his name (24px), the label and the chips
     (96px together), then the chat at 16px, as the app's chat. */
  #munshi .chat-panel { padding: var(--space-3) var(--space-4); }
  #munshi .chat-who { gap: var(--space-3); margin-bottom: var(--space-2); }
  #munshi .chat-who > .munshi-ji { width: 96px; height: 96px; }
  #munshi .chat-who-name { line-height: 1.3333; }
  #munshi .chat-panel .bub { font-size: var(--text-12); }
  #munshi .chat-panel .chat > .msg + .msg { margin-top: var(--space-1); }
  #munshi .chat-panel .chat > .msg.from-munshi + .msg.from-you { margin-top: var(--space-2); }
}
/* Short and narrow desktop screens: a one-row header (the 64px drawing, his name and the chips on one line; the label
   is kept for screen readers), no hairline. */
@media (min-width: 960px) and (max-height: 759px), (min-width: 960px) and (max-width: 1199px) {
  #munshi .chat-panel { padding: var(--space-2) var(--space-3); }
  #munshi .chat-who:has(.chat-who-words) { gap: var(--space-2); margin-bottom: var(--space-2); padding-bottom: 0; border-bottom: 0; }
  #munshi .chat-who > .munshi-ji { width: 64px; height: 64px; }
  #munshi .chat-who-words { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); }
  #munshi .chat-who-words .mj-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #munshi .chat-who-words .mj-chips { margin-top: 0; }
  #munshi .chat-panel .chat > .msg.from-munshi + .msg.from-you { margin-top: var(--space-2); }
}

/* ---------- Bill: the pasted label, his closing line, the card's sums ---------- */
#bill-bana-do .chat-done { display: grid; justify-items: start; }
#bill-bana-do .chat-done > :is(.chat-writing, .bub) { grid-area: 1 / 1; }
#bill-bana-do .chat-writing {
  display: inline-flex; align-items: center; gap: var(--space-1); padding: var(--space-1) 0; color: var(--on-navy); font-weight: 600;
  opacity: 0; visibility: hidden;
}
#bill-bana-do .chat-dots { display: inline-flex; gap: var(--space-1); }
#bill-bana-do .chat-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
/* While the chat plays (site.js holds the section in .is-waiting and rings the tapped answer at 600ms): his typing line
   for about a second, then his closing line; the card waits for the typing line. At rest, without the script or with
   reduced motion, the closing line is simply there and the typing line never shows. */
.anim-ready #bill-bana-do.is-waiting .chat-done > .bub { opacity: 0; }
.anim-ready #bill-bana-do.is-waiting:has(.chat-choices li.is-ring) .chat-writing { visibility: visible; animation: add1-typing 1.2s ease both; }
.anim-ready #bill-bana-do.is-waiting:has(.chat-choices li.is-ring) .chat-dots i { animation: add1-dot .6s ease-in-out 2 alternate both; }
.anim-ready #bill-bana-do.is-waiting:has(.chat-choices li.is-ring) .chat-dots i:nth-child(2) { animation-delay: .15s; }
.anim-ready #bill-bana-do.is-waiting:has(.chat-choices li.is-ring) .chat-dots i:nth-child(3) { animation-delay: .3s; }
.anim-ready #bill-bana-do.is-waiting:has(.chat-choices li.is-ring) .chat-done > .bub { animation: add1-in .24s ease 1.2s both; }
.anim-ready #bill-bana-do.is-waiting .chat-result { transition-delay: .6s; }
@keyframes add1-typing { 0% { opacity: 0; } 15%, 80% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@keyframes add1-dot { from { opacity: .35; } to { opacity: 1; } }
@keyframes add1-in { from { opacity: 0; } to { opacity: 1; } }
/* The card: the words you typed under its title, then Subtotal and Tax over the total, as the app's card stacks them. */
#bill-bana-do .draft-card .dc-words { margin-top: var(--space-1); }
#bill-bana-do .dc-sums { display: grid; gap: 0; margin: 0; padding-top: var(--space-2); }
#bill-bana-do .dc-sums div { display: flex; justify-content: space-between; gap: var(--space-2); color: var(--muted); }
#bill-bana-do .dc-sums dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
#bill-bana-do .dc-total { margin-top: var(--space-1); padding-top: var(--space-1); border-top: 1px solid var(--line); }
@media (min-width: 960px) {
  /* The heading across; under it the sentence, the chat and the link in the chat's column (512px), and the card in the
     picture column (560px) from the sentence's line, so the card has the room for its sums. */
  #bill-bana-do > .container { display: grid; grid-template-columns: minmax(0, 512px) minmax(0, 560px); justify-content: space-between; column-gap: var(--space-8); align-items: start; }
  #bill-bana-do :is(.chat-head, .screen-grid.chat-grid) { display: contents; }
  #bill-bana-do .chat-head > h2 { grid-column: 1 / -1; grid-row: 1; }
  #bill-bana-do .chat-head > p:last-child { grid-column: 1; grid-row: 2; max-width: none; margin-top: var(--space-3); }
  #bill-bana-do .chat-grid > .chat { grid-column: 1; grid-row: 3; margin-top: var(--space-4); }
  #bill-bana-do .chat-grid > .chat-result { grid-column: 2; grid-row: 2 / span 3; margin-top: var(--space-3); }
  #bill-bana-do .chat-grid > :is(.screen-more, .caption) { grid-column: 1; grid-row: 4; margin-top: var(--space-2); }
  #bill-bana-do .chat-grid > .chat .msg + .msg { margin-top: var(--space-3); }
  #bill-bana-do .chat-done > .bub { font-size: var(--text-14); }
  #bill-bana-do .chat-writing { font-size: var(--text-12); }
  #bill-bana-do .draft-card { padding: var(--space-3) var(--space-4); }
  #bill-bana-do .draft-card .dc-lines { gap: var(--space-1); margin-top: var(--space-2); padding-block: var(--space-2); }
  #bill-bana-do .dc-total { margin-top: var(--space-1); }
  #bill-bana-do .draft-card > .dc-create { min-height: 48px; }
}
@media (min-width: 960px) and (max-height: 759px), (min-width: 960px) and (max-width: 1199px) {
  #bill-bana-do .chat-head > p:last-child { margin-top: var(--space-2); }
  #bill-bana-do .chat-grid > .chat { margin-top: var(--space-3); }
  #bill-bana-do .chat-grid > .chat-result { margin-top: var(--space-2); }
  #bill-bana-do .chat-grid > .chat .msg + .msg { margin-top: var(--space-2); }
  #bill-bana-do .draft-card { padding: var(--space-2) var(--space-3); }
  #bill-bana-do .draft-card .dc-lines { margin-top: var(--space-1); padding-block: var(--space-1); }
  #bill-bana-do .dc-sums { padding-top: var(--space-1); }
  #bill-bana-do .draft-card > .dc-create { margin-top: var(--space-1); }
}

/* ---------- Story: the five states as a rail under the heading ---------- */
#invoice-path .stage-rail { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: var(--space-2) 0 var(--space-3); --rail: 0; }
#invoice-path .stage-rail::before, #invoice-path .stage-rail::after {
  content: ''; position: absolute; top: 7px; left: 10%; width: 80%; height: 2px; background: var(--navy-line-strong);
}
#invoice-path .stage-rail::after { background: var(--gold); transform: scaleX(var(--rail)); transform-origin: left; transition: transform .45s ease; }
#invoice-path .stage-rail li { position: relative; z-index: 1; display: grid; justify-items: center; gap: var(--space-1); color: var(--on-navy); font-size: var(--text-12); text-align: center; white-space: nowrap; }
#invoice-path .stage-rail li::before {
  content: ''; width: 16px; height: 16px; box-sizing: border-box; border: 2px solid var(--navy-line-strong); border-radius: 50%; background: var(--navy);
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
#invoice-path .journey-stage[data-stage="1"] .stage-rail { --rail: .5; }
#invoice-path .journey-stage[data-stage="2"] .stage-rail { --rail: 1; }
#invoice-path .journey-stage[data-stage="0"] .stage-rail li[data-reach="0"]::before,
#invoice-path .journey-stage[data-stage="1"] .stage-rail li:is([data-reach="0"], [data-reach="1"])::before,
#invoice-path .journey-stage[data-stage="2"] .stage-rail li::before { border-color: var(--gold); background: var(--gold); }
#invoice-path .journey-stage[data-stage="0"] .stage-rail li[data-now="0"],
#invoice-path .journey-stage[data-stage="1"] .stage-rail li[data-now="1"],
#invoice-path .journey-stage[data-stage="2"] .stage-rail li[data-now="2"] { color: white; font-weight: 700; }
#invoice-path .journey-stage[data-stage="0"] .stage-rail li[data-now="0"]::before,
#invoice-path .journey-stage[data-stage="1"] .stage-rail li[data-now="1"]::before,
#invoice-path .journey-stage[data-stage="2"] .stage-rail li[data-now="2"]::before { box-shadow: 0 0 0 4px var(--navy), 0 0 0 6px var(--gold); }
/* The card: the slot's icon on the first two states, and a lock beside Total once the invoice is finalized. */
#invoice-path .sc-slot > .slot-box > .icon { flex: none; color: var(--navy); }
#invoice-path .sc-total-k { display: inline-flex; align-items: center; gap: var(--space-1); }
#invoice-path .sc-lock { display: inline-flex; color: var(--muted); }
@media (min-width: 960px) {
  #invoice-path .stage-rail { margin: var(--space-1) 0 var(--space-4); }
}
@media (min-width: 960px) and (max-height: 759px) {
  #invoice-path .stage-rail { margin: 0 0 var(--space-3); }
}
/* Phones: five names do not fit side by side at 16px, so only the step's own state is named under its dot. */
@media (max-width: 599px) {
  #invoice-path .stage-rail li { color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  #invoice-path .stage-rail::after, #invoice-path .stage-rail li::before { transition: none; }
  .anim-ready #bill-bana-do.is-waiting .chat-result { transition-delay: 0s; }
}
/* ==== ADD-1 end ==== */

/* ==== ADD-2 start (#features, #accountants) ==== */
/* Owner 2026-11-18: "I like it but the screens now have very less visuals and information - add slightly". One quiet
   layer on each screen, still one picture and at most one action:
   - Know who owes you (#features): three quiet points under the sentence for breadth (quotes, customer records,
     register, export and print), then the screen's one link. The bahi page stays the picture.
   - Accountants (#accountants): three quiet points under the sentence (each company kept apart, Munshi in each client
     company, free FBR setup), and the switcher's rows as the app's company chooser draws them (CompanyChooser.tsx):
     a building icon, the company's name and your role in it.
   Each point is a 40px icon square (12px radius) beside a title (18.67px, 700) over one short line (16px). Desktop:
   words, points and the link down the left column, the picture beside all three. Phones: words, the picture, the
   points, the link (reading order). Type only from --text-*, spacing only from --space-*; nothing under 16px. */
#features .screen-points, #accountants .screen-points { display: grid; gap: var(--space-3); }
#features .screen-points > li, #accountants .screen-points > li {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--space-2); align-items: start;
}
#features .sp-icon, #accountants .sp-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; }
#features .sp-icon > .icon, #accountants .sp-icon > .icon { width: 24px; height: 24px; }
#features .screen-points p, #accountants .screen-points p { display: grid; min-width: 0; padding-top: var(--space-1); }
#features .screen-points strong, #accountants .screen-points strong { font-size: var(--text-14); font-weight: 700; line-height: 24px; }
#features .screen-points p > span, #accountants .screen-points p > span { font-size: var(--text-12); line-height: 24px; text-wrap: pretty; }
/* Warm grey: white squares with a hairline, navy icons, ink titles, muted lines (5.3:1 on the canvas). */
#features .sp-icon { border: 1px solid var(--line); background: var(--surface); color: var(--navy); }
#features .screen-points strong { color: var(--ink); }
#features .screen-points p > span { color: var(--muted); }
/* Navy: veiled squares with an on-navy hairline and gold icons, as the security tiles; white titles, on-navy lines. */
#accountants .sp-icon { border: 1px solid var(--navy-line); background: var(--veil); color: var(--gold); }
#accountants .screen-points strong { color: white; }
#accountants .screen-points p > span { color: var(--on-navy); }

/* The switcher's rows, as the app's chooser: the building icon, the name over your role, the check on the open one. */
#accountants .sw-row { justify-content: flex-start; padding-block: var(--space-1); }
#accountants .sw-row > span { display: grid; flex: 1; min-width: 0; }
#accountants .sw-row > .icon-building-2 { color: var(--muted); }
#accountants .sw-row.is-current > .icon-building-2 { color: var(--navy); }
#accountants .sw-role { color: var(--muted); font-size: var(--text-12); font-weight: 500; line-height: 24px; }

@media (min-width: 960px) {
  /* Three rows down the left column (words, points, link); the picture beside all three, its top on the top line. */
  #features .screen-grid, #accountants .screen-grid { grid-template-rows: auto auto 1fr; }
  #features .screen-grid > .screen-pic, #accountants .screen-grid > .screen-pic { grid-row: 1 / span 3; }
  #features .screen-grid > .screen-points, #accountants .screen-grid > .screen-points { grid-column: 1; grid-row: 2; }
  #features .screen-grid > .screen-more { grid-row: 3; }
  #accountants .sw-row { min-height: 80px; column-gap: var(--space-2); }
}
/* Short screens (e.g. 1280 x 720): the points 16px apart. */
@media (min-width: 960px) and (max-height: 759px) {
  #features .screen-grid, #accountants .screen-grid { row-gap: var(--space-3); }
  #features .screen-points, #accountants .screen-points { gap: var(--space-2); }
  #accountants .sw-row { min-height: 72px; }
}
/* ==== ADD-2 end ==== */

/* ==== ADD-3 start (#how-it-works, #security, #pricing) ==== */
/* Add-back pass (2026-11-18, owner: "the screens now have very less visuals and information - add slightly"). A modest
   layer on three calm screens; headings stay on their line (y=145 at 1440 x 800), type only from --text-* (16px and
   up, pictures included), spacing only from --space-*, 12px cards, Lucide icons.
   - The road: "What you need for FBR" (four short lines) on a canvas panel under the words; each step's picture is a
     small app panel again (the invitation, the sandbox token with SN018 and SN019, products from a file).
   - Security: three short points under the sentence, each a gold icon, a few words and one line.
   - The close: three short points between the words and the one button; the footer still shares the last stop. */

/* ---------- The road: the checklist under the words ---------- */
#how-it-works .road-know { margin-top: var(--space-5); padding: var(--space-3); border-radius: 12px; background: var(--canvas); color: var(--ink); }
#how-it-works .road-know h3 { font-size: var(--text-14); font-weight: 700; line-height: 1.5; }
#how-it-works .road-know ul { display: grid; gap: var(--space-1); margin: var(--space-2) 0 0; padding: 0; list-style: none; }
#how-it-works .road-know li { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: var(--space-1); align-items: start; font-size: var(--text-12); line-height: 1.5; }
#how-it-works .road-know li > .icon { width: 24px; height: 24px; color: var(--success); }

/* ---------- The road: each step's picture, a small app panel on the card's canvas stage ---------- */
#how-it-works .road-card > .viz { gap: var(--space-2); }
#how-it-works .rp-panel {
  display: grid; justify-items: start; gap: var(--space-2); width: 100%; max-width: 400px; padding: var(--space-3);
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-align: left;
  box-shadow: 0 8px 24px rgba(20, 49, 73, .08);
}
#how-it-works .rp-head { display: flex; align-items: center; gap: var(--space-1); font-size: var(--text-14); font-weight: 700; line-height: 1.5; }
#how-it-works .rp-head > .icon { flex: none; width: 24px; height: 24px; color: var(--navy); }
#how-it-works .rp-panel .rp-line { font-size: var(--text-12); line-height: 1.5; }
#how-it-works .rp-panel .rp-button { min-height: 48px; font-size: var(--text-12); }
#how-it-works .rp-panel .rp-ok { font-size: var(--text-12); }
#how-it-works .rp-panel .rp-ok > .icon { width: 24px; height: 24px; }
#how-it-works .rp-field {
  display: flex; width: 100%; height: 48px; align-items: center; padding: 0 var(--space-2); overflow: hidden;
  border: 1px solid #7d8893; border-radius: 8px; color: var(--ink); font-size: var(--text-12); white-space: nowrap;
}
#how-it-works .rp-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1); }
#how-it-works .rp-chip {
  display: inline-flex; min-height: 40px; align-items: center; gap: var(--space-1); padding: 0 var(--space-2);
  border-radius: 8px; background: var(--navy-tint); color: var(--navy); font-size: var(--text-12); font-weight: 700; font-variant-numeric: tabular-nums;
}
#how-it-works .rp-chip.is-ok { background: #e3f1e9; color: var(--success); }
#how-it-works .rp-chip > .icon { width: 16px; height: 16px; }
#how-it-works .rp-note { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--muted); font-size: var(--text-12); font-weight: 600; }
#how-it-works .rp-note > .icon { width: 16px; height: 16px; color: var(--gold-strong); }
#how-it-works .rp-row { display: flex; width: 100%; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--line); font-size: var(--text-12); }
#how-it-works .rp-row .rp-chips { justify-content: flex-end; }
/* Without the moving road (phones, tablets, reduced motion): the stage reads left to right, as the card's words do. */
#how-it-works:not(.road-live) .rp-chips { justify-content: flex-start; }
#how-it-works:not(.road-live) .rp-panel { max-width: none; }
/* The moving road: the stage centres the panel; the result lines keep BAL-D's sizes outside the panel. */
@media (min-width: 1200px) {
  #how-it-works.road-live .road-card.timeline-step > .viz { gap: var(--space-2); padding: var(--space-3); }
  #how-it-works.road-live .road-card .rp-panel .rp-ok { font-size: var(--text-12); }
  #how-it-works.road-live .road-card .rp-panel .rp-button { min-height: 48px; padding: 0 var(--space-2); font-size: var(--text-12); }
  #how-it-works.road-live .road-card .rp-panel .rp-line { font-size: var(--text-12); }
}
/* Short screens (1280 x 720): the checklist closer to the words, the stage a little tighter. */
@media (min-width: 960px) and (max-height: 759px) {
  #how-it-works .road-know { margin-top: var(--space-4); padding: var(--space-2) var(--space-3); }
  #how-it-works .road-know ul { margin-top: var(--space-1); }
  #how-it-works .rp-panel { gap: var(--space-1); padding: var(--space-2) var(--space-3); }
  #how-it-works .rp-chip { min-height: 32px; }
  #how-it-works.road-live .road-card.timeline-step > .viz { gap: var(--space-1); padding: var(--space-2); }
}

@media (max-width: 599px) {
  #how-it-works .rp-panel { padding: var(--space-2); }
}

/* ---------- Security: three short points under the sentence ---------- */
#security .screen-points { display: grid; gap: var(--space-2); margin: var(--space-4) 0 0; padding: var(--space-3) 0 0; border-top: 1px solid rgba(216, 227, 235, .24); list-style: none; }
#security .screen-points li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--space-2); align-items: start; }
#security .screen-points li > .icon { width: 40px; height: 40px; padding: var(--space-1); border-radius: 8px; background: rgba(255, 255, 255, .08); color: var(--gold-on-dark); }
#security .screen-points li > span { display: grid; }
#security .screen-points strong { color: white; font-size: var(--text-14); font-weight: 700; line-height: 1.5; }
#security .screen-points li > span > span { color: var(--on-navy); font-size: var(--text-12); line-height: 1.5; }
@media (min-width: 960px) and (max-height: 759px) {
  #security .screen-points { gap: var(--space-1); margin-top: var(--space-3); padding-top: var(--space-2); }
}

/* ---------- The close (#pricing): three short points between the words and the one button ---------- */
#pricing .screen-points { display: grid; gap: var(--space-1); margin: var(--space-3) 0 0; padding: 0; list-style: none; }
#pricing .screen-points li { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: var(--space-1); align-items: start; color: var(--ink); font-size: var(--text-12); line-height: 1.5; }
#pricing .screen-points li > .icon { width: 24px; height: 24px; color: var(--navy); }
#pricing .screen-points strong { font-weight: 600; }
@media (min-width: 960px) {
  /* 960-1199px: the points under the line, the button still on the right. */
  .showcase-hero ~ #pricing > .container > .screen-points { grid-column: 1; grid-row: 3; }
  .showcase-hero ~ #pricing > .container > .cta-buttons { grid-row: 1 / span 3; }
}
@media (min-width: 1200px) {
  /* Three parts on one row: the words, the points (a hairline before them), the button. */
  .showcase-hero ~ #pricing > .container { grid-template-columns: minmax(0, 520px) max-content auto; column-gap: var(--space-6); }
  .showcase-hero ~ #pricing > .container > .screen-points {
    grid-column: 2; grid-row: 1 / span 2; align-self: center; gap: var(--space-2); margin: 0; padding-left: var(--space-5); border-left: 1px solid var(--line);
  }
  .showcase-hero ~ #pricing > .container > .cta-buttons { grid-column: 3; grid-row: 1 / span 2; }
  /* The band still ends 32px under its panel, so the band and the footer share the last stop. */
  .showcase-hero ~ #pricing.close-band { padding-bottom: var(--space-4); }
}
@media (min-width: 960px) and (max-height: 759px) {
  .showcase-hero ~ #pricing > .container > .screen-points { gap: var(--space-1); }
}
@media (max-width: 599px) {
  #pricing .screen-points { margin-top: var(--space-3); }
}
/* ==== ADD-3 end ==== */

/* ==== CMP-H start (hero) ==== */
/* CMP-H (owner 2026-11-18: "Compare with current landing page ... I think the current landing page screen is still
   better"): the live hero's composition with our words. Every rule is scoped to the hero (.showcase-hero) or to the
   reasons strip right under it (.showcase-hero + .proof-band). Overrides ADD-4's ledger (::before), scene size, phone
   size and proof-card places from 1200px; ADD-4's proof points, lines card and phone/tablet rules stay as they are.
   - Ground: faint ledger rules every 40px across the navy, a double gold margin line through the picture and a single
     one before the words (960px and up; phones stay a flat fill under the words), and a soft light behind the picture.
   - Picture (1200px and up): invoice #142 as a large paper bill (its line table and totals, 16px and up), a faded sheet
     behind it, the phone in front on its right (covering only the bill's right margin), "Locked" over the phone's top
     like a notice and "FBR checked" on the bill's foot. Below 1200px the picture is the phone alone, as before.
   - Strip: four reasons the first screen does not already say, white, at the first screen's fold. */

@media (min-width: 960px) {
  .showcase-hero::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
      linear-gradient(rgba(217, 165, 90, .22), rgba(217, 165, 90, .22)) calc(50% - 632px) 0 / 1px 100% no-repeat,
      linear-gradient(rgba(217, 165, 90, .18), rgba(217, 165, 90, .18)) 72% 0 / 1px 100% no-repeat,
      linear-gradient(rgba(217, 165, 90, .18), rgba(217, 165, 90, .18)) calc(72% + 5px) 0 / 1px 100% no-repeat,
      radial-gradient(36% 56% at 76% 56%, rgba(255, 255, 255, .07), transparent 72%),
      repeating-linear-gradient(to bottom, transparent 0 39px, rgba(255, 255, 255, .055) 39px 40px);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 88%, transparent);
  }
}

/* The bill and the sheet need the room beside the phone: 1200px and up only. */
.showcase-hero :is(.hero-bill, .hero-sheet) { display: none; }

@media (min-width: 1200px) {
  .showcase-hero { padding-bottom: var(--space-4); }
  /* Widths: the bill (364px) and the phone (272px) overlap by 8px, leaving 16px between the bill's figures and the
     phone, so the picture is 628px and the words keep 492px, enough for the heading's two lines (489px; the Roman Urdu
     heading takes three). The picture's right edge stays on the header's right edge. */
  .showcase-hero .hero-grid { grid-template-columns: minmax(0, 1fr) 628px; justify-content: stretch; column-gap: var(--space-2); }
  /* The picture starts 32px above the heading's line, as on the live page; the phone stands 56px lower. */
  .snap-on .showcase-hero .hero-scene, .showcase-hero .hero-scene { width: 628px; height: 536px; margin: calc(var(--space-4) * -1) 0 0; justify-self: start; }
  .snap-on .showcase-hero .hero-scene .phone, .showcase-hero .hero-scene .phone { top: 56px; right: 0; left: auto; width: 272px; height: 480px; }
  /* The 272px phone: the total at 18.67px and a 40px QR keep the total and "FBR invoice number" on one line each. */
  .showcase-hero .app-hero .a-total { font-size: var(--text-14); }
  .showcase-hero .app-hero .a-fbr { gap: var(--space-1); }
  .showcase-hero .app-hero .a-fbr .qr { width: 40px; height: 40px; }

  /* The bill: three columns of 16px figures in 316px (they need 313px). */
  .showcase-hero .hero-bill {
    position: absolute; z-index: 2; top: 0; left: 0; display: grid; gap: var(--space-2); width: 364px; padding: var(--space-3);
    border-radius: 12px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 56px rgba(4, 14, 24, .42);
    font-size: var(--text-12); line-height: 1.5; font-variant-numeric: tabular-nums;
  }
  .showcase-hero .hb-head { display: grid; justify-items: start; }
  .showcase-hero .hb-label { color: var(--muted); font-weight: 600; }
  .showcase-hero .hb-no { font-size: var(--text-16); font-weight: 800; line-height: 1.3; }
  .showcase-hero .hb-pill {
    display: inline-flex; align-items: center; gap: var(--space-1); margin-top: var(--space-1); padding: 0 var(--space-2);
    border-radius: 999px; background: var(--success-bg); color: var(--success); font-weight: 700; line-height: 2;
  }
  /* Rules run unbroken across the row: the columns are spaced by padding, not by a gap. */
  .showcase-hero .hb-lines { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; }
  .showcase-hero .hb-lines > span { padding: var(--space-1) 0 var(--space-1) var(--space-2); border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
  .showcase-hero .hb-lines > .hb-th { padding-top: 0; color: var(--muted); font-weight: 600; }
  .showcase-hero .hb-lines > :is(.hb-th:first-child, .hb-item) { padding-left: 0; text-align: left; }
  .showcase-hero .hb-item { color: var(--muted); }
  .showcase-hero .hb-item strong { display: block; color: var(--ink); font-weight: 700; }
  .showcase-hero .hb-sums { display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: var(--space-1); }
  .showcase-hero .hb-sums > :nth-child(odd) { color: var(--muted); }
  .showcase-hero .hb-sums > :nth-child(even) { padding-left: var(--space-2); font-weight: 600; text-align: right; }
  .showcase-hero .hb-sums > .hb-total { padding-top: var(--space-1); border-top: 1px solid var(--line); color: var(--ink); font-size: var(--text-14); font-weight: 800; }

  /* The faded sheet behind the bill: an older invoice, only its ruled lines, tilted out at the bill's left; at its
     widest it stays 10px clear of the heading and 16px of the lead. */
  .showcase-hero .hero-sheet {
    position: absolute; z-index: 1; top: 48px; left: calc(var(--space-2) * -1); display: grid; align-content: start; gap: var(--space-2);
    width: 300px; height: 360px; padding: var(--space-5) var(--space-3); border-radius: 12px; background: #b4c1cd;
    box-shadow: 0 16px 40px rgba(4, 14, 24, .32); transform: rotate(4deg);
  }
  .showcase-hero .hs-bar { display: block; width: 72%; height: 8px; border-radius: 4px; background: rgba(20, 49, 73, .22); }
  .showcase-hero .hs-bar:nth-child(2) { width: 56%; }
  .showcase-hero .hs-bar:nth-child(3) { width: 80%; }
  .showcase-hero .hs-bar:nth-child(4) { width: 44%; }

  /* The proof cards: "Locked" over the phone's top edge (its island), "FBR checked" on the bill's foot. */
  .showcase-hero .hero-chip { z-index: 4; }
  .showcase-hero .hero-chip.is-lock { top: 16px; right: 0; }
  .showcase-hero .hero-chip.is-valid { top: 420px; right: auto; left: var(--space-4); }
}

/* The reasons strip under the hero: four short reasons on white, at the first screen's fold. */
.showcase-hero + .proof-band .proof { padding-block: var(--space-3); }
.showcase-hero + .proof-band .proof li { min-height: 64px; }
/* Phones: one reason a row, each on one line (four wrapped tiles in two columns read as a block of text). */
@media (max-width: 599px) {
  .showcase-hero + .proof-band .proof { grid-template-columns: minmax(0, 1fr); }
  .showcase-hero + .proof-band .proof li { min-height: 56px; }
}
/* ==== CMP-H end ==== */

/* ==== CMP-S start (who, questions) ==== */
/* Owner 2026-11-18: "Compare with current landing page and add if anything you deem fit is missing." Two calm screens
   the live page has and the flow v21 page lost, each one heading, one short list and at most one link, in the
   screens' own grid (desktop words left, the list or card right; phones one column):
   - Who it's for (#who, after #accountants, on the canvas): the heading across the top, then the trades it suits as
     three points (a 40px white square with a navy icon, the trade at 18.67px over one muted line at 16px), and beside
     them "Not a fit if you" as one white card, its four points crossed and ruled.
   - Common questions (#questions, before #pricing, on white): the heading and "All questions" in the left column,
     six questions in the right one; an answer opens under its own question. Home page only (.showcase-hero ~): the
     /faq/ page, the guides and /munshi/ keep their own layout.
   Type only from --text-* (16px and up), spacing only from --space-*, 12px card radius. */

/* ---------- Who it's for: the trades as rows, "not a fit" as one card ---------- */
.showcase-hero ~ #who.is-register .register { grid-template-columns: minmax(0, 1fr); gap: var(--space-3); }
.showcase-hero ~ #who.is-register .register > .reg-col::before { content: none; }
.showcase-hero ~ #who.is-register .reg-col { grid-template-columns: 40px minmax(0, 1fr); column-gap: var(--space-2); row-gap: 0; align-items: start; }
.showcase-hero ~ #who.is-register .reg-col > .reg-label { display: contents; }
.showcase-hero ~ #who.is-register .reg-col > .reg-label > .icon {
  grid-column: 1; grid-row: 1 / span 2; width: 40px; height: 40px; padding: var(--space-1);
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--navy);
}
.showcase-hero ~ #who.is-register .reg-col > .reg-label > span { grid-column: 2; grid-row: 1; padding-top: var(--space-1); color: var(--ink); font-size: var(--text-14); font-weight: 700; line-height: 24px; }
.showcase-hero ~ #who.is-register .reg-col > h3 { grid-column: 2; grid-row: 2; color: var(--muted); font-size: var(--text-12); font-weight: 400; line-height: 24px; text-wrap: pretty; }
.showcase-hero ~ #who.is-register .reg-no { gap: var(--space-2); margin-top: var(--space-4); padding: var(--space-4); }
.showcase-hero ~ #who.is-register .reg-no-head > .icon { width: 24px; height: 24px; }
.showcase-hero ~ #who.is-register .reg-no h3 { font-size: var(--text-16); font-weight: 700; line-height: 32px; }
.showcase-hero ~ #who.is-register .reg-no .reg-points { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--line); }
.showcase-hero ~ #who.is-register .reg-no .reg-points li { gap: var(--space-2); padding-block: var(--space-2); border-bottom: 1px solid var(--line); color: var(--ink); font-size: var(--text-12); line-height: 24px; }
.showcase-hero ~ #who.is-register .reg-no .reg-points li:last-child { padding-bottom: 0; border-bottom: 0; }
.showcase-hero ~ #who.is-register .reg-no .reg-points .icon { width: 20px; height: 24px; color: var(--muted); }
@media (max-width: 599px) {
  .showcase-hero ~ #who.is-register .reg-no { padding: var(--space-3); }
}
@media (min-width: 960px) {
  /* The heading across both columns (two lines), then the rows left (480px) and the card right (560px), the columns'
     edges as on the other screens. */
  .showcase-hero ~ #who.is-register > .container {
    display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 560px); grid-template-rows: auto 1fr; justify-content: space-between;
    column-gap: var(--space-6); row-gap: var(--space-5); align-items: start;
  }
  .showcase-hero ~ #who.is-register .section-head { grid-column: 1 / -1; max-width: 880px; margin: 0; }
  .showcase-hero ~ #who.is-register .section-head h2 { font-size: var(--text-32); font-weight: 700; line-height: 1.2; text-wrap: balance; }
  .showcase-hero ~ #who.is-register .register { grid-column: 1; grid-row: 2; gap: var(--space-5); }
  .showcase-hero ~ #who.is-register .reg-col > h3 { font-size: var(--text-14); line-height: 28px; }
  .showcase-hero ~ #who.is-register .reg-no { grid-column: 2; grid-row: 2; grid-template-columns: minmax(0, 1fr); margin: 0; }
  .showcase-hero ~ #who.is-register .reg-no .reg-points li { font-size: var(--text-14); line-height: 28px; }
  .showcase-hero ~ #who.is-register .reg-no .reg-points .icon { height: 28px; }
}
/* Short screens (e.g. 1280 x 720): 32px under the heading, the rows 24px apart, the card 24px inside its rules. */
@media (min-width: 960px) and (max-height: 759px) {
  .showcase-hero ~ #who.is-register > .container { row-gap: var(--space-4); }
  .showcase-hero ~ #who.is-register .register { gap: var(--space-3); }
  .showcase-hero ~ #who.is-register .reg-no { padding: var(--space-3) var(--space-4); }
  .showcase-hero ~ #who.is-register .reg-no .reg-points li { padding-block: var(--space-1); }
}

/* ---------- Common questions: heading and link left, the six questions right ---------- */
.showcase-hero ~ #questions .faq summary { font-size: var(--text-14); }
@media (min-width: 960px) {
  .showcase-hero ~ #questions .container.narrow {
    display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 640px); grid-template-rows: auto 1fr; justify-content: space-between;
    column-gap: var(--space-6); align-items: start;
  }
  .showcase-hero ~ #questions .section-head { grid-column: 1; grid-row: 1; margin: 0; }
  .showcase-hero ~ #questions .section-head h2 { font-size: var(--text-32); font-weight: 700; line-height: 1.2; }
  .showcase-hero ~ #questions .section-more { grid-column: 1; grid-row: 2; max-width: none; margin-top: var(--space-3); }
  .showcase-hero ~ #questions .faq-groups { grid-column: 2; grid-row: 1 / span 2; max-width: none; }
  .showcase-hero ~ #questions .faq-answer { max-width: none; }
}
/* ==== CMP-S end ==== */

/* ==== CMP-M start (#munshi) ==== */
/* Meet Munshi ji on a phone (2026-11-18, owner: "Meet munshi, should show phone lay out and first reply after salam").
   The picture is a phone in the hero phone's device colours with the app's own screen at 16px and up (the phone is
   drawn larger rather than the type smaller): "chat" is his chat (munshi.css phone layout: the bar, the messages, the
   message box), "home" is his home (the heading, New chat, Munshi ji's card, your chats) with the salam exchange laid
   over the phone's left edge, as the hero's cards are. Desktop: from the heading's line to 88% of 1440 x 800 (92% of 1280 x 720). */
#munshi .mp { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; gap: var(--space-2); }
#munshi .mp-phone {
  position: relative; display: flex; width: 368px; max-width: 100%; height: 560px; box-sizing: border-box; padding: var(--space-1);
  border-radius: 40px; background: var(--device); box-shadow: var(--shadow-device), inset 0 0 0 2px var(--navy-line);
}
#munshi .mp-phone::before {
  content: ''; position: absolute; z-index: 2; top: 12px; left: calc(50% - 36px); width: 72px; height: 20px; border-radius: 12px; background: var(--device);
}
#munshi .mp-screen {
  display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; overflow: hidden; border-radius: 32px;
  background: var(--canvas); color: var(--ink); font-size: var(--text-12); line-height: 1.5; text-align: left;
}
#munshi .mp .icon { flex: none; }

/* ---------- chat: the bar (Back, his face, his name, the menu), the messages, the message box ---------- */
#munshi .mp-bar {
  display: flex; flex: none; align-items: center; gap: var(--space-1); padding: var(--space-4) var(--space-1) var(--space-1);
  border-bottom: 1px solid var(--line); background: var(--surface);
}
#munshi .mp-bar > .munshi-ji { width: 40px; height: 40px; }
#munshi .mp-back, #munshi .mp-menu { display: inline-grid; width: 32px; place-items: center; color: var(--ink); }
#munshi .mp-name { flex: 1 1 auto; min-width: 0; font-size: var(--text-14); font-weight: 700; line-height: 1.3; }
#munshi .mp-thread { flex: 1 1 auto; min-height: 0; align-content: start; overflow: hidden; padding: var(--space-1); }
#munshi .mp-thread .bub { max-width: 92%; padding: var(--space-1) var(--space-2); line-height: 1.5; }
#munshi .mp-thread > .msg + .msg { margin-top: var(--space-1); }
#munshi .mp-thread > .msg.from-munshi + .msg.from-you { margin-top: var(--space-2); }
#munshi .mp-day { display: flex; justify-content: center; margin-bottom: var(--space-1); }
#munshi .mp-day > span { padding: 0 var(--space-2); border-radius: 999px; background: var(--surface); color: var(--muted); font-weight: 600; line-height: 2; }
#munshi .mp-composer {
  display: flex; flex: none; align-items: center; gap: var(--space-1); margin: 0; padding: var(--space-1);
  border-top: 1px solid var(--line); background: var(--surface);
}
#munshi .mp-composer::before { content: none; }
#munshi .mp-clip { display: inline-grid; width: 40px; height: 40px; place-items: center; color: var(--muted); }
#munshi .mp-type {
  flex: 1 1 auto; min-width: 0; overflow: hidden; padding: var(--space-1) var(--space-2); border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); text-overflow: ellipsis; white-space: nowrap;
}
#munshi .mp-send { display: inline-grid; width: 40px; height: 40px; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); }

/* ---------- home: the page heading, New chat, his card with the style chips, your chats ---------- */
#munshi .mp-home .mp-screen { gap: var(--space-2); padding: var(--space-6) var(--space-2) var(--space-2); }
#munshi .mp-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
#munshi .mp-h1 { font-size: var(--text-18); font-weight: 800; line-height: 1.3; }
#munshi .mp-gear { display: inline-grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
#munshi .mp-new { display: grid; min-height: 48px; place-items: center; border-radius: 8px; background: var(--navy); color: white; font-weight: 700; }
#munshi .mp-card {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-1) var(--space-2); align-items: center;
  padding: var(--space-2); border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
}
#munshi .mp-card > .munshi-ji { width: 64px; height: 64px; }
#munshi .mp-card-words { display: grid; gap: var(--space-1); min-width: 0; }
#munshi .mp-card-name { font-size: var(--text-14); font-weight: 700; line-height: 1.3; }
#munshi .mp-chips { display: flex; flex-wrap: wrap; gap: var(--space-1); }
#munshi .mp-chips > span { padding: 0 var(--space-1); border: 1px solid var(--line); border-radius: 999px; background: var(--canvas); line-height: 1.75; white-space: nowrap; }
#munshi .mp-change { grid-column: 1 / -1; display: grid; min-height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; }
#munshi .mp-h2 { margin-top: var(--space-1); font-size: var(--text-14); font-weight: 700; line-height: 1.3; }
#munshi .mp-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 0 var(--space-1); align-items: center;
  padding: var(--space-1); border-radius: 12px; background: var(--surface);
}
#munshi .mp-ava { grid-row: 1 / span 2; display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--navy-tint); color: var(--navy); font-weight: 700; }
#munshi .mp-row-title { min-width: 0; overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
#munshi .mp-row-time { justify-self: end; color: var(--muted); white-space: nowrap; }
#munshi .mp-row.is-unread .mp-row-time { color: var(--ink); font-weight: 700; }
#munshi .mp-row-preview { grid-column: 2; min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
#munshi .mp-unread { grid-column: 3; justify-self: end; display: inline-grid; min-width: 24px; height: 24px; padding: 0 var(--space-1); box-sizing: border-box; place-items: center; border-radius: 999px; background: var(--gold); color: var(--ink); font-weight: 700; line-height: 1; }

/* The opened salam chat over the phone's left edge: your salam, then his first reply (a transcript for screen readers). */
#munshi .mp-float { position: relative; z-index: 3; width: min(100%, 368px); }
#munshi .mp-float .bub { max-width: 92%; padding: var(--space-1) var(--space-2); box-shadow: 0 8px 24px rgba(20, 49, 73, .16); }
#munshi .mp-float > .msg + .msg { margin-top: var(--space-1); }
#munshi .mp-float .from-you > .bub { border-color: var(--line); }

@media (min-width: 960px) {
  #munshi .screen-grid > .mp { align-self: start; }
  #munshi .mp-chat .mp-phone { margin-inline: auto; }
  /* home: the phone at the column's right edge, the opened chat beside it, under the words, 24px over the phone's edge at the height of your chats. */
  #munshi .mp-home { justify-items: end; }
  #munshi .mp-home .mp-phone { grid-row: 1; grid-column: 1; }
  #munshi .mp-float { position: absolute; bottom: var(--space-4); left: calc(100% - 712px); width: 368px; }
}
/* Short desktop screens (e.g. 1280 x 720): the same phone, 24px shorter, so it ends inside the screen. */
@media (min-width: 960px) and (max-height: 759px) {
  #munshi .mp-phone { height: 536px; }
  #munshi .mp-home .mp-screen { gap: var(--space-1); }
}
/* Phones: the phone under the words at the screen's width (at most 352px); on home, the opened chat over its top. */
@media (max-width: 959px) {
  #munshi .mp-home .mp-float { width: 100%; max-width: 368px; }
}
@media print {
  #munshi .mp-phone { box-shadow: none; }
}
/* ==== CMP-M end ==== */

/* ==== CMP-R start (#how-it-works) ==== */
/* CMP-R (owner 2026-11-18: "FROM first call to fbr is boring - old one was better i think"): the live site's layout is
   back (layout "grid", .steps-grid): the heading and its line, the four steps side by side, each a canvas card under a
   gold top rule with its number, title, text and small picture (16px and up), then the navy box with the two
   checklists side by side. No sideways road and no end card (the header and the close carry the ask).
   - Desktop with the screen lock, 1200px wide and from 712px tall: the steps fill the first screen and the navy box the
     second, each from the top line, so the section takes two wheel stops (the snap before the box marks the second
     for the lock, as the bahi's leaves do). Shorter or narrower screens keep one long section, which the lock steps
     through screen by screen like any other.
   - Tablets: two steps a row. Phones: the steps stacked as cards (the number beside the title), then the box. */
#how-it-works.steps-grid:not(.road) .tg-snap { display: none; }
#how-it-works.steps-grid:not(.road) .section-head { max-width: 784px; margin: 0 0 var(--space-4); }
#how-it-works.steps-grid:not(.road) .section-head h2 { text-wrap: balance; }
#how-it-works.steps-grid:not(.road) .timeline { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); }
#how-it-works.steps-grid:not(.road) .timeline::before, #how-it-works.steps-grid:not(.road) .timeline::after { display: none; }
#how-it-works.steps-grid:not(.road) .timeline-step {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto 1fr; align-content: stretch; column-gap: var(--space-2); row-gap: var(--space-1);
  padding: var(--space-3); border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 12px; background: var(--canvas);
}
#how-it-works.steps-grid:not(.road) .timeline-step::before {
  position: static; grid-column: 1; grid-row: 1; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: white;
  font-size: var(--text-14); font-weight: 800; box-shadow: none;
}
#how-it-works.steps-grid:not(.road) .timeline-step::after {
  content: ''; position: absolute; top: -4px; left: -1px; right: -1px; height: 4px; border-radius: 12px 12px 0 0; background: var(--gold);
  transform: scaleX(var(--fill)); transform-origin: left;
}
#how-it-works.steps-grid:not(.road) .timeline-step > h3 { grid-column: 2; grid-row: 1; align-self: center; padding: 0; font-size: var(--text-16); font-weight: 700; line-height: 1.25; }
#how-it-works.steps-grid:not(.road) .timeline-step > p { grid-column: 1 / -1; color: var(--muted); font-size: var(--text-12); line-height: 1.5; }
#how-it-works.steps-grid:not(.road) .timeline-step > .viz {
  display: grid; grid-column: 1 / -1; align-self: end; align-content: start; min-height: 0; margin-top: var(--space-1); padding: var(--space-1);
  border-radius: 12px; background: var(--navy-tint); font-size: var(--text-12); line-height: 1.5;
}
#how-it-works.steps-grid:not(.road) .viz-card { gap: var(--space-1); padding: var(--space-2); }
#how-it-works.steps-grid:not(.road) .viz-card > strong { font-weight: 700; }
#how-it-works.steps-grid:not(.road) .tg-head { display: flex; align-items: center; gap: var(--space-1); }
#how-it-works.steps-grid:not(.road) .tg-head > .icon { color: var(--navy); }
#how-it-works.steps-grid:not(.road) .viz-tag { min-height: 32px; padding: 0 var(--space-1); font-size: var(--text-12); line-height: 1.5; }
#how-it-works.steps-grid:not(.road) .viz-tag > .icon { width: 16px; height: 16px; }
#how-it-works.steps-grid:not(.road) .viz-tag.is-gold { color: var(--navy-deep); }
#how-it-works.steps-grid:not(.road) .viz .qr { width: 40px; height: 40px; color: var(--navy); }
#how-it-works.steps-grid:not(.road) .tile:active { transform: none; }
/* The navy box: the two checklists side by side from 720px, their ticks gold. */
#how-it-works.steps-grid:not(.road) .needs { margin-top: var(--space-4); padding: var(--space-3); gap: var(--space-4); }
#how-it-works.steps-grid:not(.road) .needs h3 { font-size: var(--text-16); font-weight: 700; line-height: 1.25; }
#how-it-works.steps-grid:not(.road) .needs ul { gap: var(--space-1); margin-top: var(--space-2); }
#how-it-works.steps-grid:not(.road) .needs li { font-size: var(--text-12); line-height: 1.5; }
#how-it-works.steps-grid:not(.road) .needs li > .icon { width: 16px; height: 24px; }
@media (min-width: 720px) {
  #how-it-works.steps-grid:not(.road) .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #how-it-works.steps-grid:not(.road) .needs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); padding: var(--space-5); }
}
@media (min-width: 960px) {
  #how-it-works.steps-grid:not(.road) > .container { display: block; }
  #how-it-works.steps-grid:not(.road) :is(.section-head, .timeline, .needs) { grid-column: auto; grid-row: auto; }
  #how-it-works.steps-grid:not(.road) .section-head h2 { font-size: var(--text-32); line-height: 1.2; }
  #how-it-works.steps-grid:not(.road) .section-head > p:last-child { font-size: var(--text-14); }
  #how-it-works.steps-grid:not(.road) .tile:hover { transform: none; box-shadow: none; border-color: var(--line); }
}
@media (min-width: 1200px) {
  /* Step 3, the longest text, has the wider column (8 parts to the others' 6), so the four cards end level without
     three of them standing half empty. The heading and its line run the full width. */
  #how-it-works.steps-grid:not(.road) .timeline { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr) minmax(0, 8fr) minmax(0, 6fr); }
  #how-it-works.steps-grid:not(.road) .section-head, #how-it-works.steps-grid:not(.road) .section-head > p:last-child { max-width: none; }
  #how-it-works.steps-grid:not(.road) .section-head { margin-bottom: var(--space-3); }
  /* Four across: 16px inside each card, and each picture is its white app card straight on the step's canvas. */
  #how-it-works.steps-grid:not(.road) .timeline-step { padding: var(--space-2); }
  #how-it-works.steps-grid:not(.road) .timeline-step > .viz { padding: 0; background: transparent; overflow: visible; }
  #how-it-works.steps-grid:not(.road) .viz-card { border: 1px solid var(--line); }
  /* The navy box, a screen of its own where the lock runs: more room inside, its headings 24px, its lines 18.67px. */
  #how-it-works.steps-grid:not(.road) .needs { column-gap: var(--space-8); padding: var(--space-6); }
  #how-it-works.steps-grid:not(.road) .needs h3 { font-size: var(--text-18); }
  #how-it-works.steps-grid:not(.road) .needs ul { gap: var(--space-2); margin-top: var(--space-3); }
  #how-it-works.steps-grid:not(.road) .needs li { font-size: var(--text-14); }
  #how-it-works.steps-grid:not(.road) .needs li > .icon { width: 24px; height: 28px; }
}
/* Two screens where both halves fit one each (the lock, 1200px wide, from 712px tall): the container is two screens
   tall, the steps in the first (from the top line) and the navy box in the second (from the top line again); the snap
   between them is the lock's second stop. Measured (the steps' foot under the top line, 1200px and wider): 524px
   English, 574px Roman Urdu, so at 1440 x 800 they end 131px and 81px above the first screen's foot, and at
   1280 x 720 (top line 48px) 67px and 17px. Shorter screens keep one long section, which the lock steps through. */
@media (min-width: 1200px) and (min-height: 712px) {
  .snap-on #how-it-works.steps-grid:not(.road) { --tg-screen: calc(100vh - var(--snap-top, var(--header-height))); padding-block: 0; }
  .snap-on #how-it-works.steps-grid:not(.road) > .container {
    display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) var(--tg-screen); gap: 0; align-content: start;
    height: calc(2 * var(--tg-screen)); padding-top: var(--top-line);
  }
  .snap-on #how-it-works.steps-grid:not(.road) .section-head { grid-row: 1; }
  .snap-on #how-it-works.steps-grid:not(.road) .timeline { grid-row: 2; align-self: start; }
  .snap-on #how-it-works.steps-grid:not(.road) .tg-snap { position: absolute; top: var(--tg-screen); left: 0; display: block; width: 1px; height: 1px; pointer-events: none; }
  .snap-on #how-it-works.steps-grid:not(.road) .needs { grid-row: 3; align-self: start; margin-top: var(--top-line); }
}
/* ==== CMP-R end ==== */

/* ==========================================================================
   LEGAL-001: policy pages (/legal/). Phone first; long tables scroll inside their own box.
   ========================================================================== */

.footer-legal-links ul { display: flex; flex-wrap: wrap; gap: 0 var(--space-3); }
.footer-legal-links a { display: inline-flex; min-height: 44px; align-items: center; color: var(--ink); font-weight: 600; }

.legal-draft { border-bottom: 1px solid var(--line); }
.legal-head { padding-block: var(--space-4) var(--space-3); border-bottom: 1px solid var(--line); background: var(--surface); }
.legal-head h1 { font-size: var(--text-24); font-weight: 800; overflow-wrap: anywhere; }
.legal-eyebrow { margin-bottom: var(--space-1); font-weight: 700; }
.legal-lead { margin-top: var(--space-2); color: var(--muted); font-size: var(--text-14); }
.legal-meta { display: grid; gap: var(--space-1); margin-top: var(--space-3); }
.legal-meta div { display: grid; gap: 0; }
.legal-meta dt { color: var(--muted); font-size: var(--text-12); font-weight: 700; }
.legal-meta dd { margin: 0; min-width: 0; }
.legal-fingerprint code { display: block; overflow-wrap: anywhere; word-break: break-all; }
.legal-where { margin-top: var(--space-2); color: var(--muted); overflow-wrap: anywhere; }

.legal-prose { padding-block: var(--space-4) var(--space-8); overflow-wrap: break-word; }
.legal-prose > * + * { margin-top: var(--space-2); }
.legal-prose h2 { margin-top: var(--space-5); font-size: var(--text-18); font-weight: 800; }
.legal-prose h3 { margin-top: var(--space-4); font-size: var(--text-16); font-weight: 800; }
.legal-prose h4, .legal-prose h5, .legal-prose h6 { margin: var(--space-3) 0 0; font-size: var(--text-14); font-weight: 800; }
.legal-prose ul, .legal-prose ol { padding-left: var(--space-3); }
.legal-prose ul { list-style: disc; }
.legal-prose ol { list-style: decimal; }
.legal-prose li + li, .legal-prose li > ul, .legal-prose li > ol, .legal-prose li > p { margin-top: var(--space-1); }
.legal-prose ul ul { list-style: circle; }
.legal-prose blockquote { margin: var(--space-2) 0 0; padding: var(--space-2); border-left: 4px solid var(--gold); border-radius: 0 8px 8px 0; background: var(--surface); }
.legal-prose blockquote > * + * { margin-top: var(--space-1); }
.legal-prose hr { margin-block: var(--space-4); border: 0; border-top: 1px solid var(--line); }
.legal-prose code { padding: 0 var(--space-1); border-radius: 4px; background: var(--navy-tint); overflow-wrap: anywhere; }
.legal-prose pre { overflow-x: auto; padding: var(--space-2); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.legal-prose pre code { padding: 0; background: none; overflow-wrap: normal; white-space: pre; }
.legal-table { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.legal-table table { min-width: 560px; width: 100%; border-collapse: collapse; }
.legal-table th, .legal-table td { padding: var(--space-1) var(--space-2); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th { background: var(--navy-tint); font-weight: 700; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table .align-right { text-align: right; }
.legal-table .align-center { text-align: center; }
.legal-index { display: grid; gap: var(--space-2); padding: 0; list-style: none; }
.legal-prose .legal-index { padding-left: 0; list-style: none; }
.legal-index li { display: grid; gap: var(--space-1); margin: 0; padding: var(--space-2); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.legal-index-title { font-weight: 800; font-size: var(--text-14); }
.legal-index span { color: var(--muted); }

@media (min-width: 720px) {
  .legal-head { padding-block: var(--space-6) var(--space-4); }
  .legal-head h1 { font-size: var(--text-32); }
  .legal-meta { grid-template-columns: auto auto minmax(0, 1fr); gap: var(--space-1) var(--space-4); }
}

@media print {
  .legal-table { overflow: visible; border: 0; }
  .legal-table table { min-width: 0; }
}

/* NB: notebook paper on the homepage's off-white sections (owner 2026-11-18). The same 32px ruling as the
   .bahi-page register, and a red double margin line (desktop and tablet only; on phones it would touch the text).
   The lines are faint enough that muted text keeps AA contrast where it crosses them. */
.showcase-hero ~ .section:not(.section-navy, .section-surface, .close-band) {
  --nb-rule: rgba(20, 49, 73, .08);
  --nb-margin: rgba(150, 59, 59, .3);
  background-color: var(--canvas);
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--nb-rule) 31px 32px);
}
@media (min-width: 720px) {
  .showcase-hero ~ .section:not(.section-navy, .section-surface, .close-band) {
    background-image:
      linear-gradient(var(--nb-margin), var(--nb-margin)),
      linear-gradient(var(--nb-margin), var(--nb-margin)),
      repeating-linear-gradient(to bottom, transparent 0 31px, var(--nb-rule) 31px 32px);
    background-size: 1px 100%, 1px 100%, auto;
    background-repeat: no-repeat, no-repeat, repeat;
    background-position: max(8px, calc(50% - 592px)) 0, max(12px, calc(50% - 588px)) 0, 0 0;
  }
}
@media (prefers-contrast: more), print {
  .showcase-hero ~ .section:not(.section-navy, .section-surface, .close-band) { background-image: none; }
}

/* APP: the /app/ page's phone screens (owner 2026-11-18: "app page and show phone screen in there along with other
   workflows"). One phone per job in a sideways row on every screen size, with the page's step control under it
   (‹ 1 of 8 ›, site.js data-carousel). Each phone is a simplified drawing of an app screen, with the app's labels and
   example data, light mode. */
.app-screens .section-head { max-width: 760px; }
.phone-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 264px; gap: var(--space-3);
  margin: var(--space-3) calc(-1 * var(--space-2)) 0; padding: var(--space-2) var(--space-2) var(--space-3);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--space-2);
  list-style: none;
}
/* The arrows need the script. Without it they stay hidden and the row keeps its scrollbar, so a mouse can still move it. */
.js .phone-row { scrollbar-width: none; }
.js .phone-row::-webkit-scrollbar { display: none; }
.phone-row > li { display: grid; grid-template-rows: auto auto 1fr; gap: var(--space-1); scroll-snap-align: start; }
.phone-row .phone { position: relative; z-index: auto; top: auto; left: auto; width: 264px; height: 560px; border-radius: 34px; box-shadow: 0 16px 32px rgba(4, 12, 20, .22), inset 0 0 0 2px var(--navy-line); }
.phone-row .phone .app { border-radius: 26px; }
/* One column the width of the screen: a pill that does not wrap (Valid — ready to submit) must not widen the cards. */
.phone-row .app-body { grid-template-columns: minmax(0, 1fr); }
.phone-row h3 { margin-top: var(--space-2); font-size: var(--text-14); font-weight: 800; }
.phone-row li > p { margin: 0; color: var(--muted); }
.js .phone-row + .carousel-nav { display: flex; }
.ps-caption { margin-top: var(--space-2); color: var(--muted); font-size: var(--text-12); }
@media (min-width: 720px) {
  .phone-row { margin-inline: calc(-1 * var(--space-4)); padding-inline: var(--space-4); scroll-padding-inline: var(--space-4); }
}
/* The screens' own parts, in the app's colours (.app-light). */
.a-label { color: var(--a-muted); font-size: var(--text-12); }
.a-field { display: grid; gap: 0; padding: var(--space-1) var(--space-2); border: 1px solid var(--a-line); border-radius: 8px; background: var(--a-surface); }
.a-field strong { font-weight: 700; }
.a-btn { display: grid; min-height: 48px; place-items: center; padding: 0 var(--space-2); border-radius: 8px; background: var(--a-primary); color: var(--a-on-primary); font-weight: 700; text-align: center; line-height: 1.25; }
.a-btn.is-quiet { border: 1px solid var(--a-line); background: var(--a-surface); color: var(--a-ink); }
.a-chips { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.a-chips span { padding: 0 var(--space-1); border: 1px solid var(--a-line); border-radius: 999px; background: var(--a-surface); color: var(--a-muted); font-weight: 600; }
.a-chips span.is-on { border-color: var(--a-primary); background: var(--a-primary); color: var(--a-on-primary); }
.phone-row .a-sum { display: flex; justify-content: space-between; gap: var(--space-1); font-weight: 800; font-variant-numeric: tabular-nums; }
.a-bub { max-width: 88%; padding: var(--space-1) var(--space-2); border-radius: 12px; background: var(--a-surface); box-shadow: var(--a-shadow); }
.a-bub.is-you { justify-self: end; background: #dcebf7; }
.a-pdf { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-1) var(--space-2); align-items: center; }
.a-pdf .qr { width: 48px; height: 48px; color: var(--a-ink); }
.a-late { color: var(--a-warning); font-weight: 700; }
.a-stat.a-late { color: var(--a-warning); }
.a-companies { gap: 0; padding-block: 0; }
.a-co { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-1); align-items: center; padding-block: var(--space-1); border-top: 1px solid var(--a-line); }
.a-co:first-child { border-top: 0; }
.a-co > span { display: grid; }
.a-co.is-current .icon:last-child { color: var(--a-success); }
.a-co > .icon:first-child { color: var(--a-muted); }
/* Munshi's chat fills the phone on a phone, as WhatsApp does (munshi.css:338-349): a bar, the thread, the message box. */
.app-chat { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.a-chatbar { display: flex; align-items: center; gap: var(--space-1); padding: var(--space-1) var(--space-2); border-bottom: 1px solid var(--a-line); background: var(--a-surface); }
.a-chatav { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--a-primary); color: var(--a-on-primary); }
.a-thread { display: grid; align-content: start; gap: var(--space-1); padding: var(--space-2) var(--space-1); overflow: hidden; }
.a-draft { gap: 0; }
.a-draft .a-sum { margin-top: var(--space-1); border-top: 1px solid var(--a-line); }
.a-draft .a-btn { margin-top: var(--space-1); min-height: 40px; }
.a-composer { display: flex; align-items: center; gap: var(--space-1); min-height: 40px; margin: 0 var(--space-1) var(--space-2); padding: 0 var(--space-1); border: 1px solid var(--a-line); border-radius: 999px; background: var(--a-surface); }
.a-type { flex: 1; min-width: 0; overflow: hidden; color: var(--a-muted); white-space: nowrap; text-overflow: ellipsis; }
.a-clip { color: var(--a-muted); }
.a-send { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 50%; background: var(--gold); color: var(--ink); }
.app-chat { grid-template-columns: minmax(0, 1fr); }
.a-next { margin-top: var(--space-1); border-top: 1px solid var(--a-line); }
.a-btns { display: grid; grid-template-columns: minmax(0, 1fr) 56px; gap: var(--space-1); }
.a-owe { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 var(--space-1); }
.a-owe + .a-owe { margin-top: var(--space-1); padding-top: var(--space-1); border-top: 1px solid var(--a-line); }
.a-owe > strong { margin-left: auto; font-variant-numeric: tabular-nums; }
.a-btns .a-btn { min-height: 40px; padding-inline: 0; }
/* The invoice document phone: narrower side padding keeps "FBR invoice number" on one line, which makes room for its
   three buttons above the tab bar. The sheet matches, so the two cards line up. */
.phone-row .a-sheet, .phone-row .a-sheet + .a-fbr { padding-inline: var(--space-1); }
.app-chat .a-bub { max-width: 92%; }
