/* The public page at the service's bare domain and the legal documents (served by firmctl serve-suspended, PublicSite).
   The bahione.in family look: its colours, its mark, Inter. Inter 4 (OFL 1.1, deploy/public/fonts/OFL.txt) is served from
   this origin, Latin only (48 KB, weights 100–900); ₹, Devanagari and anything else fall through to the system fonts.
   No inline styles anywhere: the CSP allows this file only. The lockup is BahiOne bold, Compliance regular, as in the app. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/fonts/inter-latin-var.woff2) format("woff2");
  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 {
  --brand: #1463ff; --brand-ink: #0d4fd1; --brand-50: #eef4ff; --brand-100: #dbe7ff; --navy: #0a1f5c; --ink: #1b2430;
  --muted: #5f6b7a; --line: #e3e8ee; --canvas: #f5f7fa; --panel: #fff; --amber: #f2a900; --bad: #b42318; --focus: #1463ff;
  /* the type scale: five text sizes and the headings' (no half steps; the aria-hidden picture uses the same tokens) */
  --fs-xs: 12px; --fs-sm: 13px; --fs-md: 14px; --fs-base: 16px; --fs-lg: 18px; --fs-xl: 20px; --fs-2xl: 24px;
  --fs-h2: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); --fs-h1: clamp(2.125rem, 1.2rem + 3vw, 3.5rem);
  --fs-h1-tablet: clamp(2rem, 1rem + 2.6vw, 2.6rem); --fs-h1-short: 2rem;  /* the title beside the card on a tablet; on a phone held sideways */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, "Noto Sans Devanagari", "Nirmala UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: var(--fs-base)/1.6 var(--sans); color: var(--ink);
  background: var(--panel); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
main { flex: 1 0 auto; }
.wrap { width: 100%; max-width: 74rem; margin: 0 auto; padding: 0 24px; }
a { color: var(--brand-ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; box-shadow: 0 0 0 5px rgba(20, 99, 255, .2); border-radius: 6px; }
.security :focus-visible { outline-color: #8cb3ff; box-shadow: 0 0 0 5px rgba(140, 179, 255, .25); }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 9; }
.skip:focus { left: 8px; }
h1, h2, h3 { color: var(--navy); letter-spacing: -.025em; font-weight: 700; }
h1, h2 { text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.05; margin: 0 0 22px; }
h1 span { color: #5b6b85; display: block; }
h2 { font-size: var(--fs-h2); line-height: 1.1; margin: 0; }
h3 { font-size: var(--fs-lg); letter-spacing: -.01em; margin: 0 0 4px; }
.eyebrow { font-size: var(--fs-sm); font-weight: 600; color: var(--brand-ink); margin: 0 0 12px; }
.eyebrow.light { color: #8cb3ff; }

/* buttons */
.btn, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; font-size: var(--fs-base);
  border-radius: 10px; padding: 12px 20px; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn.primary, button { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(20,99,255,.3), inset 0 1px 0 rgba(255,255,255,.15); }
.btn.primary:hover, button:hover { background: var(--brand-ink); }
.btn.secondary { background: #fff; color: var(--navy); border-color: #cfd6df; box-shadow: 0 1px 2px rgba(16,24,40,.05); }
.btn.secondary:hover { border-color: var(--navy); }
.btn.ghost { color: var(--navy); border-color: #cfd6df; padding: 7px 14px; font-size: var(--fs-md); gap: 0; white-space: pre; }
.btn.ghost:hover { border-color: var(--navy); }
.btn.sm { padding: 8px 14px; font-size: var(--fs-md); }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.bar { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.mark { display: block; flex: none; }
.lockup { font-size: var(--fs-lg); font-weight: 400; letter-spacing: -.015em; white-space: nowrap; }
.lockup b { font-weight: 700; }
.mainnav { display: flex; gap: 26px; font-size: var(--fs-md); }
.mainnav a { color: #475467; text-decoration: none; }
.mainnav a:hover { color: var(--navy); }
.actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
/* the menu below 1000px: a <details>, so it works without script (site.js only closes it after a choice, on Esc or outside) */
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 12px;
  border: 1px solid #cfd6df; border-radius: 10px; font-size: var(--fs-md); font-weight: 600; color: var(--navy); cursor: pointer; user-select: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover, .menu[open] summary { border-color: var(--navy); }
.menu[open] summary { background: var(--brand-50); }
.burger, .burger::before, .burger::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; }
.burger { position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -5px; }
.burger::after { top: 5px; }
.menu[open] .burger { background: transparent; }
.menu[open] .burger::before { top: 0; transform: rotate(45deg); }
.menu[open] .burger::after { top: 0; transform: rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 6; min-width: 15rem; display: flex; flex-direction: column;
  padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(10,31,92,.3); }
.menu-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--navy);
  font-size: var(--fs-base); font-weight: 500; text-decoration: none; }
.menu-panel a:hover { background: var(--brand-50); color: var(--brand-ink); }
.menu-panel a:focus-visible { outline-offset: -2px; }

/* hero */
.hero { padding: 72px 0 0; background: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(19rem, 1fr); gap: 64px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--brand-ink); background: var(--brand-50);
  border: 1px solid var(--brand-100); border-radius: 999px; padding: 5px 12px; margin: 0 0 22px; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.lede { font-size: var(--fs-lg); color: #475467; max-width: 36rem; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.trial { font-size: var(--fs-md); color: #344054; margin: 16px 0 0; }
.trial strong { color: #116b35; font-weight: 600; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-top: 0;
  box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 16px 40px -20px rgba(10,31,92,.25); }
.go h2 { font-size: var(--fs-xl); letter-spacing: -.015em; margin: 0 0 16px; }
label { display: block; font-size: var(--fs-md); font-weight: 600; margin-bottom: 7px; }
.field { display: flex; align-items: stretch; border: 1px solid #8a94a6; border-radius: 10px; background: #fff; overflow: hidden; }
.field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.field input { flex: 1 1 auto; min-width: 0; border: 0; padding: 11px 13px; font: inherit; font-size: var(--fs-base); color: inherit; background: transparent; }
.field input:focus-visible { outline: none; }
.field input[aria-invalid="true"] { background: #fff5f4; }
.field .suffix { flex: 0 1 auto; padding: 11px 13px 11px 0; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hint { color: var(--muted); font-size: var(--fs-sm); line-height: 1.5; margin: 9px 0 0; }
.msg { color: var(--bad); font-size: var(--fs-sm); margin: 6px 0 0; min-height: 1.4em; }
.go button { width: 100%; }
.clients { border-top: 1px dashed var(--line); padding-top: 14px; margin-top: 18px; }

/* the product illustration (HTML/CSS, no image) */
.shot { margin: 48px 0 0; }
.win { position: relative; border: 1px solid #d5dce6; border-bottom: 0; border-radius: 14px 14px 0 0; background: #fff; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(10,31,92,.35), 0 0 0 6px rgba(219,231,255,.45); }
.chrome { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: var(--canvas); border-bottom: 1px solid var(--line); }
.chrome i { width: 10px; height: 10px; border-radius: 50%; background: #d5dce6; }
.chrome span { margin: 0 auto; font-size: var(--fs-xs); color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 40px; }
.app { display: grid; grid-template-columns: 196px minmax(0, 1fr); min-height: 360px; font-size: var(--fs-sm); }
.nav { background: var(--navy); color: #c9d3e6; padding: 16px 12px; }
.nav p { margin: 0; padding: 5px 10px; border-radius: 7px; }
.nav .nav-brand { color: #fff; font-size: var(--fs-md); padding-bottom: 10px; }
.nav .nav-group { color: #8cb3ff; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding-top: 12px; }
.nav .on { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
.nav p:not(.nav-group):not(.nav-brand)::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background: rgba(201,211,230,.5); margin-right: 9px; vertical-align: middle; }
.nav .on::before { background: var(--amber); }
.win::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; background: linear-gradient(rgba(255,255,255,0), #fff); pointer-events: none; }
.pane { padding: 20px 24px 0; background: #fbfcfe; }
.pane-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.ttl { margin: 0; font-size: var(--fs-lg); font-weight: 700; color: var(--navy); letter-spacing: -.015em; }
.kpis em { display: block; font-style: normal; font-size: var(--fs-xs); color: var(--muted); }
.kpis b span { font-size: var(--fs-sm); font-weight: 500; color: var(--muted); }
.kpis .bad b { color: var(--bad); }
.mini tr.sec td { background: #fbfcfe; color: var(--muted); font-weight: 600; font-size: var(--fs-xs); padding: 7px 12px; }
.mini tr.sec span { background: #eef1f5; border-radius: 999px; padding: 0 7px; margin-left: 4px; }
.mini td.none { color: var(--muted); font-style: italic; }
.late, .soon { display: inline-block; font-size: var(--fs-xs); font-weight: 600; border-radius: 999px; padding: 1px 7px; margin-left: 4px; }
.late { background: #fdecea; color: var(--bad); }
.soon { background: #fff4d6; color: #8a5a00; }
.soon.later { background: #eef1f5; color: #475467; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpis div { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.kpis small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.kpis b { font-size: var(--fs-xl); color: var(--navy); font-variant-numeric: tabular-nums; }
.mini { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px 10px 0 0; border-bottom: 0; }
.mini th { text-align: left; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--line); background: var(--canvas); }
.mini th:first-child { border-radius: 10px 0 0 0; }
.mini th:last-child { border-radius: 0 10px 0 0; }
.mini td { padding: 10px 12px; border-bottom: 1px solid #eef1f5; color: var(--ink); white-space: nowrap; }
.mini td:nth-child(2) { font-variant-numeric: tabular-nums; }  /* the dates only: tabular figures would widen the hyphens elsewhere */
.mini td:nth-child(3) { white-space: normal; min-width: 9rem; }  /* the long form names wrap; the table never runs past the cards */
.mini tbody tr:not(.sec) td:first-child { font-weight: 600; }
.chip { display: inline-block; font-size: var(--fs-xs); font-weight: 600; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.chip.green { background: #e7f6ec; color: #116b35; }
.chip.blue { background: var(--brand-50); color: var(--brand-ink); }
.chip.amber { background: #fff4d6; color: #8a5a00; }
.chip.grey { background: #eef1f5; color: #475467; }
.shot figcaption { text-align: center; font-size: var(--fs-sm); color: var(--muted); margin: 14px 0 0; }
.hero { padding-bottom: 32px; }  /* space between the caption and the "how" strip */

/* "How a firm works in it": four steps in the band under the picture (the hosting and security facts are in the Security band only) */
.how { background: var(--canvas); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 32px 0 36px; }
.how-h { font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; color: var(--brand-ink); margin: 0 0 16px; text-wrap: initial; }
.how-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; counter-reset: how; }
.how-row li { position: relative; padding-left: 40px; counter-increment: how; }
.how-row li::before { content: counter(how); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--brand-100); color: var(--brand-ink); font-size: var(--fs-sm); font-weight: 700; }
.how-row b { display: block; color: var(--navy); font-size: var(--fs-base); font-weight: 600; line-height: 1.4; margin: 2px 0 4px; }
.how-row span { display: block; color: var(--muted); font-size: var(--fs-md); line-height: 1.5; }

/* features */
.features { padding: 96px 0; }
.sechead { max-width: 40rem; margin-bottom: 44px; }
.sechead > p:last-child { color: var(--muted); font-size: var(--fs-lg); margin: 12px 0 0; }
.grid6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sister { margin: 28px 0 0; color: #344054; font-size: var(--fs-md); }
.feat { border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 22px; background: #fff; }
/* one fragment of the real screen per area (aria-hidden, sample figures): widths from classes, never inline style */
.feat .ui { background: var(--canvas); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 18px; display: grid; gap: 8px;
  align-content: center; min-height: 160px; font-size: var(--fs-sm); color: var(--ink); }  /* one height in a row: the headings line up */
.feat .ui p { margin: 0; color: inherit; font-size: inherit; }
.feat .ui-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 8px; font-weight: 600; color: var(--navy); }
.feat .ui-sub { font-size: var(--fs-xs); font-weight: 500; color: var(--muted); white-space: nowrap; }
.feat .meter { display: flex; gap: 2px; height: 10px; border-radius: 999px; overflow: hidden; background: #e6eaf0; }
.feat .meter i { display: block; min-width: 4px; }
.f3 { flex: 3; } .f8 { flex: 8; } .f9 { flex: 9; } .f30 { flex: 30; } .f41 { flex: 41; }
.feat .ok { background: #1f9d55; }
.feat .prob { background: var(--brand); }
.feat .diff { background: var(--amber); }
.feat .miss { background: var(--bad); }
.feat .none { background: #cfd6df; }
.feat .legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 2px 10px; font-size: var(--fs-xs); color: #475467; }
.feat .legend span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.feat .legend i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.feat .pass { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #c9ead5; border-radius: 10px; padding: 10px 12px; }
.feat .tickc { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #e7f6ec; color: #116b35; font-weight: 700; }
.feat .pass b { display: block; color: #116b35; font-weight: 600; }
.feat .pass small { display: block; font-size: var(--fs-xs); color: var(--muted); }
.feat .ln { display: flex; justify-content: space-between; gap: 8px; padding: 3px 2px; border-bottom: 1px dashed var(--line); }
.feat .ln.tot { border-bottom: 0; border-top: 1px solid #cfd6df; padding-top: 6px; font-weight: 600; color: var(--navy); }
.feat .amt { font-variant-numeric: tabular-nums; white-space: nowrap; }
.feat .amt .chip { margin-left: 6px; }
.feat .dates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.feat .dates span { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; font-size: var(--fs-xs); color: #475467; line-height: 1.35; min-width: 0; }
.feat .dates b { display: block; font-size: var(--fs-base); color: var(--navy); font-variant-numeric: tabular-nums; }
.feat .dates em { display: block; font-style: normal; font-weight: 600; margin-top: 4px; }
.feat .dates .done em { color: #116b35; }
.feat .dates .next { border-color: #f5d27a; background: #fffbef; }
.feat .dates .next em { color: #8a5a00; }
.feat .ui-note { font-size: var(--fs-xs); color: #475467; }
.feat .ui-note b { color: var(--navy); font-weight: 600; }
.feat > p { margin: 0; color: var(--muted); font-size: var(--fs-base); }

/* security, dark band as on bahione.in's BahiOne Compliance section */
.security { background: var(--navy); color: #c9d3e6; padding: 96px 0; }
.security h2 { color: #fff; }
.sec-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.sec-list li { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 18px; }
.sec-list b { display: block; color: #fff; margin-bottom: 4px; }
.sec-list span { font-size: var(--fs-md); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: var(--fs-sm); overflow-wrap: anywhere; }

.close { padding: 96px 0; }
.close-card { background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 20px; padding: 56px 32px; text-align: center; }
.close-card > p { color: #475467; margin: 12px auto 0; max-width: 36rem; }
.close-card .cta { justify-content: center; margin-top: 26px; }
.close-card .support { font-size: var(--fs-md); margin-top: 22px; }

/* footer (light, as bahione.in) */
.foot { flex-shrink: 0; background: var(--canvas); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-md); line-height: 1.6; }
.foot a { color: #344054; text-decoration: none; }
.foot a:hover { color: var(--brand-ink); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.1fr; gap: 32px; padding-top: 56px; padding-bottom: 36px; }
.foot-lock { display: flex; align-items: center; gap: 9px; color: var(--navy); margin: 0 0 12px; }
.foot-lock .lockup { font-size: var(--fs-lg); }
.foot-brand p:last-child { max-width: 22rem; margin: 0; }
.foot nav { display: flex; flex-direction: column; gap: 8px; }
.foot-h { color: var(--ink); font-weight: 600; font-size: var(--fs-sm); margin: 0 0 6px; }
.foot-grid p { margin: 0; }
.foot .contact p, .foot .contact a { color: var(--muted); }
.foot .contact .foot-h { color: var(--ink); }
.foot .contact a:hover { color: var(--brand-ink); }
.foot-legal { padding-bottom: 28px; font-size: var(--fs-sm); }
.foot-legal p { margin: 0; border-top: 1px solid var(--line); padding-top: 18px; max-width: 60rem; }
.foot-legal strong { color: var(--ink); font-weight: 600; }

/* legal documents */
.docbar { background: #fff; border-bottom: 1px solid var(--line); }
.docbar .wrap { position: relative; }
.docs { display: flex; gap: 6px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.docs a { font-size: var(--fs-md); color: #475467; text-decoration: none; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.docs a:hover { background: var(--canvas); color: var(--navy); }
.docs a[aria-current] { background: var(--brand-50); color: var(--brand-ink); font-weight: 600; }
body.doc { background: var(--canvas); }
.legal { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: center; padding-top: 40px; padding-bottom: 96px; }
.legal.has-toc { grid-template-columns: 16rem minmax(0, 1fr); gap: 40px; justify-content: stretch; }  /* both edges in line with the header's */
.legal.short { grid-template-columns: minmax(0, 36rem); padding-top: 10vh; }
.toc-m { display: none; }
.toc { position: sticky; top: 84px; font-size: var(--fs-md); max-height: calc(100vh - 100px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px; }
.toc-h { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); margin: 0 0 8px 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 5px 8px; border-radius: 7px; color: #475467; text-decoration: none; line-height: 1.4; }
.toc a:hover { background: var(--brand-50); color: var(--brand-ink); }
.prose { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 44px 48px 52px; font-size: var(--fs-base); line-height: 1.7; color: #344054; }
/* the text keeps a reading measure inside the wider card; headings, tables and quotes may use the full width */
.prose > p, .prose > ul, .prose > ol, .prose > h2, .prose > h3 { max-width: 46rem; }
.prose h1 { font-size: var(--fs-h2); margin: 10px 0 24px; }
.prose h1 strong { color: inherit; font-weight: inherit; }
.short .prose h1 { font-size: var(--fs-2xl); line-height: 1.25; overflow-wrap: break-word; }  /* a long address breaks at a dot (<wbr>) */
.prose h2 { font-size: var(--fs-xl); margin: 48px 0 12px; letter-spacing: -.015em; }
.prose h3 { font-size: var(--fs-lg); margin: 28px 0 8px; }
.prose p, .prose li { overflow-wrap: anywhere; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 1.5em; margin: 0 0 16px; }
.prose ol { padding-left: 2.25em; }  /* room for a two-digit number (10., 11.) inside the column, not in the margin */
/* a list under a numbered clause sits under the clause's text, not under its number */
.prose .cl + ul, .prose .cl + ol { margin-left: 2.8rem; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--brand); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .cl { position: relative; padding-left: 2.8rem; }
.prose .cl .no { position: absolute; left: 0; top: 2px; font-size: var(--fs-sm); font-weight: 600; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.docmeta { display: inline-flex; font-size: var(--fs-sm); font-weight: 500; color: var(--brand-ink); background: var(--brand-50); border-radius: 999px; padding: 4px 12px; margin: 0; }
.prose blockquote { margin: 0 0 22px; padding: 14px 18px; background: #fffaeb; border: 1px solid #fde9b0; border-radius: 12px; color: #5c4400; font-size: var(--fs-md); }
.prose blockquote p { margin: 4px 0; }
.prose code { font-size: .9em; background: var(--canvas); padding: 1px 5px; border-radius: 4px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
.tbl { overflow-x: auto; margin: 10px 0 26px; border: 1px solid var(--line); border-radius: 12px; }
.prose table { border-collapse: collapse; width: 100%; font-size: var(--fs-md); line-height: 1.55; }
.prose th, .prose td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th { background: var(--canvas); color: var(--navy); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.prose td:first-child { color: var(--ink); font-weight: 500; min-width: 10rem; }
.again { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.again h2 { font-size: var(--fs-lg); margin: 0 0 12px; }
.again button { margin-top: 12px; width: 100%; }

@media (max-width: 1180px) {
  .mini th:nth-child(5), .mini td:nth-child(5) { display: none; }  /* Assigned to */
  .mini .late, .mini .soon { display: table; margin: 3px 0 0; }
}
@media (max-width: 1000px) {
  .mainnav { display: none; }
  .menu { display: block; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .nav { display: none; }
  .hero-grid, .sec-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .grid6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .legal, .legal.has-toc { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .side { display: none; }
  .toc-m { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: var(--fs-md); }
  .toc-m summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--navy); }
  .toc-m ol { list-style: none; margin: 0; padding: 0 8px 10px; }
  .toc-m a { display: block; padding: 6px 8px; border-radius: 7px; color: #475467; text-decoration: none; }
}
@media (min-width: 641px) and (max-width: 1000px) {
  .go { max-width: 34rem; }  /* stacked under the introduction: not a full-width slab */
}
@media (min-width: 760px) and (max-width: 1000px) and (min-height: 501px) {
  /* a tablet or an open foldable: the card beside the introduction again, as on a desktop */
  .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(17rem, 1fr); gap: 32px; align-items: start; }
  .hero-grid h1 { font-size: var(--fs-h1-tablet); }
  .lede { font-size: var(--fs-base); }
  .field .suffix { display: none; }  /* too narrow for .bahione.co.in in full: the hint below says it */
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .bar { height: 58px; gap: 12px; }
  .btn.ghost { padding: 6px 10px; font-size: var(--fs-md); }
  .hide-s { display: none; }
  .lockup { font-size: var(--fs-base); }
  .mark { width: 26px; height: 26px; }
  .menu summary { padding: 0; justify-content: center; }
  /* "Your firm" in the header (its name stays "Go to your firm"): the brand, the button and the menu fit at 344px */
  .go-pre { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .go-rest { display: inline-block; }
  .go-rest::first-letter { text-transform: uppercase; }
  .menu-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-panel { position: fixed; left: 12px; right: 12px; top: 64px; min-width: 0; }
  .hero { padding-top: 40px; }
  /* the picture before the "Go to your firm" card (the header has that button): the grid's own box steps aside */
  .hero { display: flex; flex-direction: column; }
  .hero-grid { display: contents; }
  .intro { order: 1; padding: 0 18px; }
  .shot-wrap { order: 2; }
  .go { order: 3; margin: 36px 18px 0; }
  .lede { font-size: var(--fs-base); }
  .cta .btn { flex: 1 1 100%; }
  .field .suffix { display: none; }  /* the hint below still says kapoor.<domain> */
  .card { padding: 20px 18px; }
  .shot { margin-top: 40px; margin-right: -18px; }
  .app { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .nav { display: none; }
  .pane { padding: 14px 14px 0; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mini th:nth-child(4), .mini td:nth-child(4), .mini th:nth-child(5), .mini td:nth-child(5) { display: none; }
  .mini .late, .mini .soon { display: table; margin: 3px 0 0; }
  .mini td { white-space: normal; }
  .mini td:first-child { white-space: normal; }
  .mini td:nth-child(2), .mini .late, .mini .soon { white-space: nowrap; }
  .mini td, .mini th { padding: 9px 8px; vertical-align: top; }
  .mini td:nth-child(3) { min-width: 0; }
  .chrome span { padding: 2px 12px; }
  .shot figcaption { padding-right: 18px; }

  .how-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .features, .security, .close { padding: 64px 0; }
  .close-card { padding: 40px 20px; }
  .grid6, .sec-list { grid-template-columns: minmax(0, 1fr); }
  .feat .ui { min-height: 0; }  /* one card a row: no height to match */
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 40px; }
  body.doc { background: #fff; }  /* no card inside the page: the text has the width */
  .prose { padding: 6px 0 20px; border: 0; border-radius: 0; background: none; }
  .short .prose { padding-top: 0; }
  .prose .cl { padding-left: 0; }
  .prose .cl .no { position: static; margin-right: 6px; }
  .prose .cl + ul, .prose .cl + ol { margin-left: 0; }
  .toc ol { columns: 1; }
  .legal { padding-top: 20px; }
  .docbar .wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 40px; background: linear-gradient(90deg, rgba(255,255,255,0), #fff); pointer-events: none; }
  .docmeta { display: block; background: none; padding: 0; border-radius: 0; color: var(--muted); }
  .tbl { border: 0; border-radius: 0; overflow: visible; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose tr { border: 1px solid var(--line); border-radius: 12px; padding: 6px 0; margin-bottom: 12px; }
  .prose td { border: 0; padding: 6px 14px; }
  .prose td:first-child { min-width: 0; }
  .prose td[data-label]::before { content: attr(data-label); display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
}
@media (max-width: 380px) {
  .lockup { font-size: var(--fs-base); }
  .mark { width: 24px; height: 24px; }
  .brand { gap: 8px; }
  .bar { gap: 8px; }
  .actions { gap: 8px; }
  .pill { white-space: nowrap; font-size: var(--fs-xs); padding: 4px 10px; gap: 6px; }
  .btn.ghost { padding: 6px 8px; font-size: var(--fs-sm); }  /* the brand, "Your firm" and the menu side by side at 344px */
}

/* tap targets of 44px on phones and touch screens: padding, not more space between */
@media (max-width: 640px), (pointer: coarse), (horizontal-viewport-segments: 2) {
  .brand { min-height: 44px; }
  .mainnav a { display: inline-flex; align-items: center; min-height: 44px; }  /* the wide nav on a large touch screen */
  .btn.ghost, .btn.sm { min-height: 44px; }
  .docs { padding: 4px 0; }
  .docs a { display: inline-flex; align-items: center; min-height: 44px; }
  .foot nav { gap: 0; }
  .foot nav a { padding: 11px 0; }
  .foot nav .foot-h { margin-bottom: 0; }
  .foot .contact a, .close-card .support a { display: inline-flex; align-items: center; min-height: 44px; }
  .toc-m summary { min-height: 44px; }
  .toc-m a, .toc a { display: flex; align-items: center; min-height: 44px; }
}

/* a phone held sideways: the header scrolls away and the hero is tighter, so "Book a demo" shows in the first screen */
@media (max-height: 500px) and (orientation: landscape) {
  html { scroll-padding-top: 12px; }
  .top { position: static; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .bar { height: 56px; }
  .hero { padding-top: 20px; }
  .pill { margin-bottom: 12px; }
  h1 { font-size: var(--fs-h1-short); margin-bottom: 12px; }
  h1 span { display: inline; }
  .lede { font-size: var(--fs-base); margin-bottom: 16px; }
  .toc { top: 12px; max-height: calc(100vh - 24px); }
}

/* a dual-screen device spanned across its hinge (Surface Duo): the hero and the grids in two halves, one each side */
@media (horizontal-viewport-segments: 2) {
  :root { --seg0: env(viewport-segment-width 0 0, 50vw); --seg1: env(viewport-segment-width 1 0, 50vw);
    --hinge: calc(env(viewport-segment-left 1 0, 50vw) - env(viewport-segment-right 0 0, 50vw)); }
  .wrap { max-width: none; }
  .hero-grid, .sec-grid, .grid6, .how-row, .foot-grid, .legal.has-toc {
    grid-template-columns: minmax(0, calc(var(--seg0) - 48px)) minmax(0, calc(var(--seg1) - 48px)); column-gap: calc(var(--hinge) + 48px); }
  .hero-grid { align-items: start; }
  /* the header: the brand in the left half, its buttons and the menu in the right; the wide nav would cross the hinge */
  .mainnav { display: none; }
  .menu { display: block; }
  .legal.has-toc { justify-content: start; }
  .shot { max-width: calc(var(--seg0) - 48px - 12px); }  /* the picture in the left half, drawn as on a phone; its 6px ring clear of the hinge */
  .app { grid-template-columns: minmax(0, 1fr); }
  .nav { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini th:nth-child(4), .mini td:nth-child(4) { display: none; }
  .mini td { white-space: normal; vertical-align: top; }
  .mini td:nth-child(2) { white-space: nowrap; }
}

/* "Book a demo" (/demo): the form in the documents' short frame, no script; problems beside each field */
.demo h1 { margin-bottom: 10px; }
.demo-lede { color: var(--muted); margin: 0 0 22px; }
.demo-form .f { margin: 0 0 14px; }
.demo-form fieldset { border: 0; padding: 0; min-width: 0; }
.demo-form legend { font-size: var(--fs-md); font-weight: 600; padding: 0; margin-bottom: 8px; }
.demo-form .choices label.choice { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: var(--fs-base); margin: 0 0 6px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; min-height: 44px; box-sizing: border-box; }
.demo-form .choices label.choice:hover { border-color: #8a94a6; }
.demo-form .choices label.choice:has(input:checked) { border-color: var(--brand); background: var(--brand-50); }
.demo-form .choices.bad label.choice { border-color: #f1b0a9; }
.demo-form input[type="radio"], .demo-form input[type="checkbox"] { width: 18px; height: 18px; margin: 0; flex: 0 0 auto; accent-color: var(--brand); }
.demo-form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: var(--fs-md); line-height: 1.5; cursor: pointer; }
.demo-form label.check input { margin-top: 2px; }
.demo-form button { width: 100%; margin-top: 6px; min-height: 48px; }
.demo-form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.demo-alert { border: 1px solid #f1b0a9; background: #fff5f4; color: var(--bad); border-radius: 12px; padding: 12px 16px; margin: 0 0 20px; font-size: var(--fs-md); }
.demo-alert p { margin: 0; font-weight: 600; }
.demo-alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.demo-alert a { color: var(--bad); }
.demo-other { margin-top: 18px; }
.demo-form .msg { min-height: 0; margin: 4px 0 0; }
.demo-form .msg:empty { display: none; }
.demo-form .hint { margin-top: 6px; }
.demo a[href^="tel:"] { white-space: nowrap; }

/* "Start your free trial" (/start, /start/status): the demo form's look; no script. The status page updates itself with a
   meta refresh every 5 seconds while a code is sent or checked, or the firm is set up. */
.start .eyebrow { margin-bottom: 8px; }
.st-box { border: 1px solid var(--line); background: var(--canvas); border-radius: 12px; padding: 12px 16px 12px; margin: 4px 0 16px; }
.st-box-h { margin: 0 0 6px; font-size: var(--fs-md); font-weight: 600; color: var(--navy); }
.prose .st-rules { margin: 0; padding-left: 1.15em; font-size: var(--fs-md); line-height: 1.55; color: #344054; }
.prose .st-rules li { margin: 0 0 3px; }
.prose .st-rules li::marker { color: var(--brand); }
.st-form .field .suffix { font-size: var(--fs-md); padding-top: 12px; }
.st-code input { font-size: var(--fs-2xl); letter-spacing: .32em; font-variant-numeric: tabular-nums; text-align: center; padding: 10px 12px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.st-more { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.st-more .hint { margin-top: 0; }
.st-more .hint + .hint { margin-top: 12px; }
.st-second { margin-top: 8px; }
.demo-form.st-second button { width: auto; min-height: 44px; margin-top: 0; background: #fff; color: var(--navy); border: 1px solid #cfd6df; box-shadow: none; }
.demo-form.st-second button:hover { border-color: var(--navy); background: #fff; }
.st-wait { display: flex; align-items: flex-start; gap: 16px; }
.st-wait h1 { margin: 0 0 8px; }
.st-wait p { margin: 0; color: var(--muted); }
.st-spin { flex: none; width: 28px; height: 28px; margin-top: 6px; border-radius: 50%; border: 3px solid var(--brand-100); border-top-color: var(--brand);
  animation: st-spin 0.9s linear infinite; }
@keyframes st-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .st-spin { animation-duration: 3s; } }
.st-done { display: flex; align-items: flex-start; gap: 14px; }
.st-done h1 { margin: 0 0 10px; overflow-wrap: anywhere; }
.st-tick { flex: none; position: relative; width: 32px; height: 32px; margin-top: 4px; border-radius: 50%; background: #116b35; }
.st-tick::after { content: ""; position: absolute; left: 11px; top: 6px; width: 8px; height: 15px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.st-actions { margin: 20px 0 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.st-actions .btn { min-height: 48px; padding-inline: 22px; }
.st-actions .btn.ghost { min-height: 44px; }
@media (max-width: 640px) {
  .st-actions .btn.primary { flex: 1 1 100%; }
  .st-code input { font-size: var(--fs-xl); letter-spacing: .24em; }
  .st-wait, .st-done { gap: 12px; }
}
@media (pointer: coarse) { .start .demo-form input:not([type="checkbox"]):not([type="radio"]) { min-height: 44px; } .start a.btn { min-height: 44px; } }
.st-more .st-second + .hint { margin-top: 14px; }

/* help pages and the service status page (tools/firmctl.py PublicSite.build_help, status_page) */
ul.help-list { list-style: none; padding: 0 !important; margin: 0 0 8px !important; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
ul.help-list li { margin: 0; }
.help-list li { border: 1px solid var(--line, #e3e6ec); border-radius: 10px; padding: 12px 14px; }
.help-list a { font-weight: 600; display: block; }
.help-list span { display: block; color: var(--muted, #6b7385); margin-top: 2px; }
.help-foot { margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--line, #e3e6ec); color: var(--muted, #6b7385); }
.status-now { border-radius: 12px; padding: 16px 18px; margin: 8px 0 20px; border: 1px solid var(--line, #e3e6ec); }
.status-now.ok { background: #eaf6ee; border-color: #bfe3cb; }
.status-now.bad { background: #fdecec; border-color: #f3c1c1; }
.status-now.warn { background: #fdf3e1; border-color: #f0d9a8; }
.status-now p { margin: 4px 0; }
.status-state { font-size: var(--fs-xl); font-weight: 700; }
.status-mark { display: inline-block; width: 1.5em; height: 1.5em; line-height: 1.5em; text-align: center; border-radius: 50%; background: rgba(0,0,0,.08); font-size: .9em; vertical-align: 1px; }
.status-when { color: var(--muted, #6b7385); }
.status-notice { border-left: 4px solid #e0a53a; padding: 6px 14px; margin: 8px 0 20px; background: #fdf8ec; }
/* the bar of pages above a document: on a narrow screen the page being read comes right after the first link, so it is
   on screen and marked; on a wide one the order never changes from page to page */
@media (max-width: 999px) { .docs a:first-child { order: -2; } .docs a[aria-current] { order: -1; } }
/* the help index is a list of cards: a wider column than the short pages' 36rem, so two cards sit side by side with room */
.legal.short:has(ul.help-list) { grid-template-columns: minmax(0, 52rem); padding-top: 6vh; }
