/* ibookkeeper — ledger-inspired corporate system.
   Layout: wide bands, 1200px content column, ruled "ledger" details on data blocks.
   Brand colours live here; change these tokens to match the final brand guide. */
:root {
  --navy: #0b2545;
  --navy-2: #13315c;
  --blue: #1d4e89;
  --gold: #e0a526;
  --gold-soft: #fbefd2;
  --teal: #12877a;
  --red: #c2412d;
  --ink: #0f1c2e;
  --muted: #5a6b82;
  --line: #dbe2ec;
  --paper: #f5f7fb;
  --white: #ffffff;
  --on-navy: #e8eef7;
  --on-navy-muted: #a9b9d0;

  --f-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --r: 10px;
  --shadow: 0 10px 30px -12px rgba(11, 37, 69, .25);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 var(--f-body);
}
img, svg { max-width: 100%; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.15; text-wrap: balance; margin: 0; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }
.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

.wrap {
  max-width: 1200px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.band { padding-block: clamp(56px, 8vw, 96px); }
.band.alt { background: var(--white); border-block: 1px solid var(--line); }
.band.dark { background: var(--navy); color: var(--on-navy); }
.band.dark h2, .band.dark h3 { color: var(--white); }
.eyebrow {
  font: 600 .78rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); display: inline-block; margin-bottom: 14px;
}
.band.dark .eyebrow { color: var(--gold); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.band.dark .lede { color: var(--on-navy-muted); }
.section-head { display: grid; gap: 12px; margin-bottom: 40px; max-width: 760px; }

/* ---------- Header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--navy); }
.topbar { background: var(--navy-2); color: var(--on-navy-muted); font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 6px; }
.topbar b { color: var(--gold); font-weight: 600; }
header.site {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--navy); color: var(--on-navy); box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.logo-mark {
  width: 38px; height: 38px; border-radius: 8px; background: var(--gold); color: var(--navy);
  display: grid; place-items: center; font: 800 1.05rem/1 var(--f-display);
}
.logo-text { font: 800 1.35rem/1 var(--f-display); letter-spacing: -.02em; }
.logo-text span { color: var(--gold); }
nav.main { display: flex; align-items: center; gap: 6px; }
nav.main a { color: var(--on-navy); text-decoration: none; padding: 8px 12px; border-radius: 6px; font-weight: 600; font-size: .96rem; }
nav.main a:hover, nav.main a[aria-current="page"] { background: rgba(255,255,255,.08); color: var(--white); }
.nav-cta { display: flex; gap: 8px; }
.menu-btn { display: none; background: none; border: 1px solid rgba(255,255,255,.25); color: var(--white); border-radius: 6px; padding: 8px 12px; font: 600 .95rem var(--f-body); cursor: pointer; }
@media (max-width: 1240px) {
  .menu-btn { display: block; }
  nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 12px max(16px, env(safe-area-inset-left, 0px)) 18px; border-top: 1px solid rgba(255,255,255,.08); }
  nav.main.open { display: flex; }
  .nav-cta { flex-direction: column; margin-top: 8px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: 8px; border: 2px solid transparent;
  font: 700 1rem/1.1 var(--f-body); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #ebb43a; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.hero::after { /* ledger ruling */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
  background: repeating-linear-gradient(0deg, transparent 0 31px, #fff 31px 32px);
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-block: clamp(48px, 7vw, 88px); }
.hero h1 { color: var(--white); }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { color: var(--on-navy-muted); margin-top: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-search {
  margin-top: 28px; background: var(--white); border-radius: 10px; padding: 6px; display: flex; gap: 6px; flex-wrap: wrap; box-shadow: var(--shadow);
}
.hero-search input, .hero-search select { flex: 1 1 160px; min-width: 0; border: 0; padding: 12px; font: 1rem var(--f-body); color: var(--ink); background: transparent; }
.hero-search select { border-left: 1px solid var(--line); }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: .9rem; color: var(--on-navy-muted); }
.trust-row span::before { content: "✓ "; color: var(--gold); font-weight: 700; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }

/* Ledger card in hero */
.ledger {
  background: var(--white); color: var(--ink); border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45);
  overflow: hidden; font-size: .95rem;
}
.ledger-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; background: var(--gold-soft); border-bottom: 1px solid var(--line); }
.ledger-head b { font-family: var(--f-display); color: var(--navy); }
.ledger table { width: 100%; border-collapse: collapse; }
.ledger th, .ledger td { padding: 10px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.ledger th { font: 600 .72rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ledger td.num { text-align: right; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger-foot { display: flex; justify-content: space-between; padding: 12px 18px; background: var(--paper); font-family: var(--f-mono); font-size: .85rem; }

/* ---------- Generic grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; min-width: 0; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }
.band.dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.band.dark .card p { color: var(--on-navy-muted); }
.icon-chip { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--gold-soft); color: var(--navy); margin-bottom: 14px; }
.icon-chip svg { width: 22px; height: 22px; }
.band.dark .icon-chip { background: rgba(224,165,38,.15); color: var(--gold); }

/* KPI strip */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border: 1px solid var(--line); border-radius: 12px; background: var(--white); overflow: hidden; }
.kpi { padding: 22px 24px; border-right: 1px solid var(--line); }
.kpi:last-child { border-right: 0; }
.kpi .val { font: 700 2rem/1 var(--f-mono); color: var(--navy); }
.kpi .lab { color: var(--muted); font-size: .92rem; margin-top: 6px; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); } .kpi:nth-child(2) { border-right: 0; } .kpi:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ---------- Two-sided flow ---------- */
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.side { padding: 32px; background: var(--white); }
.side.emp { background: var(--navy); color: var(--on-navy); }
.side.emp h3 { color: var(--white); }
.side-tag { font: 600 .75rem var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.side.emp .side-tag { color: var(--gold); }
.steps { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 16px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; counter-increment: s; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 .9rem var(--f-mono); background: var(--gold-soft); color: var(--navy); }
.side.emp .steps li::before { background: var(--gold); }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: .95rem; }
.side.emp .steps span { color: var(--on-navy-muted); }
@media (max-width: 820px) { .sides { grid-template-columns: 1fr; } }

/* ---------- Infographics ---------- */
.chart-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px; min-width: 0; }
.chart-card h3 { margin-bottom: 4px; }
.chart-card .sub { color: var(--muted); font-size: .9rem; margin-bottom: 18px; }
.chart-src { margin-top: 14px; font-size: .78rem; color: var(--muted); font-family: var(--f-mono); }
.range-row { display: grid; grid-template-columns: 170px 1fr 92px; gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.range-row:last-child { border-bottom: 0; }
.range-track { position: relative; height: 12px; background: var(--paper); border-radius: 6px; }
.range-bar { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--navy)); }
.range-bar::after { content: ""; position: absolute; right: -1px; top: -3px; width: 4px; height: 18px; border-radius: 2px; background: var(--gold); }
.range-row .num { text-align: right; color: var(--navy); font-size: .85rem; }
.axis { display: grid; grid-template-columns: 170px 1fr 92px; gap: 12px; font: .72rem var(--f-mono); color: var(--muted); margin-top: 6px; }
.axis div:nth-child(2) { display: flex; justify-content: space-between; }
@media (max-width: 560px) { .range-row, .axis { grid-template-columns: 110px 1fr 70px; font-size: .82rem; } }

.hbar { display: grid; grid-template-columns: 150px 1fr 44px; gap: 12px; align-items: center; margin: 9px 0; font-size: .93rem; }
.hbar .t { height: 22px; background: var(--paper); border-radius: 4px; overflow: hidden; }
.hbar .f { height: 100%; background: var(--teal); border-radius: 4px; }
.hbar .f.gold { background: var(--gold); }
.hbar .num { text-align: right; color: var(--navy); font-size: .85rem; }

.city-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; }
.city { border-radius: 8px; padding: 12px; color: var(--white); min-height: 78px; display: flex; flex-direction: column; justify-content: space-between; }
.city b { font-family: var(--f-display); font-size: .98rem; }
.city span { font: .8rem var(--f-mono); opacity: .9; }
@media (max-width: 560px) { .city-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-top: 12px; align-items: center; }
.legend i { display: inline-block; width: 14px; height: 10px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }

.donut-wrap { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; }
.donut-legend { display: grid; gap: 8px; font-size: .93rem; }
.donut-legend div { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; }
.donut-legend i { width: 12px; height: 12px; border-radius: 3px; }
@media (max-width: 480px) { .donut-wrap { grid-template-columns: 1fr; justify-items: center; } .donut-legend { width: 100%; } }

.funnel { display: grid; gap: 6px; }
.funnel div { margin: 0 auto; padding: 10px 14px; border-radius: 6px; color: var(--white); display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; }
.funnel b { font-family: var(--f-mono); }

/* Pay-to-connect diagram */
.p2c { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.p2c .node { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 20px; }
.p2c .node.mid { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.p2c .node.mid h3 { color: var(--navy); }
.p2c .node.mid p { color: var(--navy-2); }
.p2c .node p { color: var(--on-navy-muted); font-size: .93rem; margin-top: 6px; }
.p2c .arrow { display: grid; place-items: center; color: var(--gold); font: 700 1.6rem var(--f-mono); }
.masked { font-family: var(--f-mono); background: rgba(255,255,255,.08); border-radius: 4px; padding: 1px 6px; letter-spacing: .05em; }
@media (max-width: 900px) { .p2c { grid-template-columns: 1fr; } .p2c .arrow { transform: rotate(90deg); } }

/* ---------- Pricing ---------- */
.toggle { display: inline-flex; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; }
.toggle button { border: 0; background: transparent; padding: 10px 20px; border-radius: 999px; font: 700 .95rem var(--f-body); color: var(--muted); cursor: pointer; }
.toggle button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 28px; }
@media (max-width: 1060px) { .plans { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 14px; position: relative; min-width: 0; }
.plan.pop { border: 2px solid var(--gold); box-shadow: var(--shadow); }
.plan .badge { position: absolute; top: -12px; left: 24px; background: var(--gold); color: var(--navy); font: 700 .72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.plan .price { font: 700 2.1rem/1 var(--f-mono); color: var(--navy); }
.plan .price small { font: 500 .9rem var(--f-body); color: var(--muted); }
.plan .meta { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.plan .meta div { padding: 10px 12px; }
.plan .meta div + div { border-left: 1px solid var(--line); }
.plan .meta b { display: block; font: 700 1.25rem var(--f-mono); color: var(--navy); }
.plan .meta span { font-size: .8rem; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; flex: 1; }
.plan li { padding-left: 22px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.plan li.no { color: var(--muted); }
.plan li.no::before { content: "–"; color: var(--muted); }
.per-unit { font: .82rem var(--f-mono); color: var(--teal); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 680px; font-size: .95rem; }
table.cmp th, table.cmp td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
table.cmp thead th { background: var(--navy); color: var(--white); font-family: var(--f-display); }
table.cmp td.c, table.cmp th.c { text-align: center; }
table.cmp tbody tr:nth-child(even) { background: var(--paper); }

/* ---------- Forms ---------- */
.form-shell { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .form-shell { grid-template-columns: 1fr; } }
.stepper { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px; position: sticky; top: 96px; }
@media (max-width: 900px) { .stepper { position: static; } }
.stepper ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.stepper li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; padding: 8px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.stepper li i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 700 .8rem var(--f-mono); font-style: normal; border: 2px solid var(--line); }
.stepper li.active { background: var(--gold-soft); color: var(--navy); }
.stepper li.active i { border-color: var(--gold); background: var(--gold); color: var(--navy); }
.stepper li.done i { border-color: var(--teal); background: var(--teal); color: var(--white); }
.stepper .score { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.meter { height: 10px; background: var(--paper); border-radius: 5px; overflow: hidden; margin-top: 8px; }
.meter div { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--teal)); transition: width .3s; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 3vw, 36px); min-width: 0; }
.form-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card .hint { color: var(--muted); margin-bottom: 22px; }
fieldset { border: 0; padding: 0; margin: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .fields { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; font-size: .93rem; color: var(--navy); }
.field label .req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 8px; font: 1rem var(--f-body); color: var(--ink); background: var(--white);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(29,78,137,.15); }
.field .help { font-size: .82rem; color: var(--muted); }
.field .err { font-size: .82rem; color: var(--red); min-height: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.field.valid input { border-color: var(--teal); }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 600; font-size: .88rem; cursor: pointer; color: var(--ink); }
.chips input { accent-color: var(--navy); }
.chips label:has(input:checked) { border-color: var(--navy); background: var(--navy); color: var(--white); }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: .93rem; color: var(--ink); }
.check input { margin-top: 4px; accent-color: var(--navy); }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.notice { border-radius: 8px; padding: 12px 14px; font-size: .92rem; border: 1px solid; }
.notice.info { background: #eaf1fa; border-color: #c5d6ec; color: var(--navy-2); }
.notice.ok { background: #e3f4f1; border-color: #b4e0d9; color: #0b5d54; }
.notice.warn { background: var(--gold-soft); border-color: #efd28f; color: #6d4e08; }
.notice.bad { background: #fbe9e5; border-color: #f0c2b8; color: #8a2a1b; }
.verify-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.verify-list li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; background: var(--paper); border-radius: 8px; font-size: .93rem; }
.pill { font: 600 .75rem var(--f-mono); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: #d4efe9; color: #0b5d54; }
.pill.pend { background: var(--gold-soft); color: #6d4e08; }
.pill.no { background: #f4dcd6; color: #8a2a1b; }
.drop { border: 2px dashed var(--line); border-radius: 10px; padding: 18px; text-align: center; color: var(--muted); font-size: .92rem; }
.drop input { margin-top: 8px; max-width: 100%; }

/* ---------- Listings ---------- */
.list-shell { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .list-shell { grid-template-columns: 1fr; } }
.filters { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: grid; gap: 16px; }
.wallet { background: var(--navy); color: var(--on-navy); border-radius: 12px; padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.wallet b { font: 700 1.5rem var(--f-mono); color: var(--gold); }
.wallet small { color: var(--on-navy-muted); display: block; }
.listing { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; margin-bottom: 14px; min-width: 0; }
.listing h3 { font-size: 1.1rem; }
.listing .co { color: var(--muted); font-size: .93rem; margin-top: 2px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-size: .8rem; padding: 3px 9px; border-radius: 5px; background: var(--paper); border: 1px solid var(--line); color: var(--navy-2); }
.tag.v { background: #e3f4f1; border-color: #b4e0d9; color: #0b5d54; font-weight: 600; }
.contact-box { grid-column: 1 / -1; background: var(--paper); border: 1px dashed var(--line); border-radius: 8px; padding: 10px 14px; font-size: .9rem; display: flex; gap: 8px 20px; flex-wrap: wrap; }
.contact-box .lock { font-family: var(--f-mono); color: var(--muted); filter: blur(.3px); }
.contact-box.unlocked { background: #e3f4f1; border-style: solid; border-color: #b4e0d9; }
.contact-box.unlocked .lock { filter: none; color: #0b5d54; font-weight: 600; }
.listing .side-meta { text-align: right; display: grid; gap: 8px; align-content: start; justify-items: end; }
.listing .sal { font: 700 1.05rem var(--f-mono); color: var(--navy); }
@media (max-width: 600px) { .listing { grid-template-columns: 1fr; } .listing .side-meta { text-align: left; justify-items: start; } }
.avatar { width: 48px; height: 48px; border-radius: 10px; background: var(--gold-soft); color: var(--navy); display: grid; place-items: center; font: 800 1rem var(--f-display); flex: none; }

/* Modal */
.modal { position: fixed; inset: 0; background: rgba(11,37,69,.6); display: grid; place-items: center; z-index: 100; padding: 16px; }
.modal-box { background: var(--white); border-radius: 14px; padding: 26px; max-width: 480px; width: 100%; box-shadow: var(--shadow); display: grid; gap: 14px; }
.modal-box h3 { font-size: 1.3rem; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.toast { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); background: var(--navy); color: var(--white); padding: 12px 20px; border-radius: 8px; z-index: 120; box-shadow: var(--shadow); max-width: calc(100% - 32px); }

/* ---------- SEO content & FAQ ---------- */
.prose { max-width: 72ch; display: grid; gap: 14px; }
.prose p { color: var(--ink); }
.link-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.link-cloud a { text-decoration: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); font-size: .9rem; color: var(--navy-2); }
.link-cloud a:hover { border-color: var(--navy); }
details.faq { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 0 20px; }
details.faq + details.faq { margin-top: 10px; }
details.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
details.faq summary::after { content: "+"; font: 700 1.3rem/1 var(--f-mono); color: var(--gold); }
details.faq[open] summary::after { content: "−"; }
details.faq p { padding-bottom: 16px; color: var(--muted); }

.cta-band { background: linear-gradient(120deg, var(--navy), var(--blue)); color: var(--white); border-radius: 16px; padding: clamp(28px, 5vw, 48px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: var(--on-navy); margin-top: 8px; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer.site { background: var(--ink); color: var(--on-navy-muted); font-size: .93rem; }
footer.site .wrap { padding-block: 56px 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
footer.site h4 { color: var(--white); font-size: .95rem; margin-bottom: 12px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
footer.site a { color: var(--on-navy-muted); text-decoration: none; }
footer.site a:hover { color: var(--gold); }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }

.page-head { background: var(--navy); color: var(--on-navy); }
.page-head .wrap { padding-block: 44px 40px; }
.page-head h1 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.page-head .lede { color: var(--on-navy-muted); margin-top: 12px; }
.crumbs { font: .8rem var(--f-mono); color: var(--on-navy-muted); margin-bottom: 14px; }
.crumbs a { color: var(--gold); text-decoration: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* =====================================================================
   RED COLOUR-HARMONY SCHEMES
   Every segment carries data-scheme="mono|comp|tri|ana|tet".
   k1 is always the brand red; k2–k4 follow the harmony rule;
   k5 is a deep tone for text-weight fills; kt is a pale tint for grounds.
   ===================================================================== */
:root, [data-scheme="mono"] {
  --k1: #c62828; --k2: #e0483e; --k3: #ef7d72; --k4: #f6b3ab; --k5: #7f1313; --kt: #fdeeec; --kl: #ff9a8f;
}
[data-scheme="comp"] { /* red + its complement, green */
  --k1: #c62828; --k2: #0f7b5f; --k3: #e8766b; --k4: #5bb494; --k5: #0a4d3c; --kt: #fdeeec; --kl: #7fd8b8;
}
[data-scheme="tri"] { /* red, yellow, blue — 120° apart on the painter's wheel */
  --k1: #c62828; --k2: #e6a700; --k3: #1f4fbf; --k4: #f3cf5a; --k5: #142f73; --kt: #fdf3dc; --kl: #ffd36b;
}
[data-scheme="ana"] { /* crimson, red, red-orange, orange — neighbours on the wheel */
  --k1: #c62828; --k2: #e5582b; --k3: #ee8a1f; --k4: #a8174e; --k5: #6e1033; --kt: #fdefe6; --kl: #ffab7a;
}
[data-scheme="tet"] { /* square tetrad: red, amber, green, blue-violet */
  --k1: #c62828; --k2: #ec9a0c; --k3: #1e8f4e; --k4: #4b3fc0; --k5: #2a2270; --kt: #f1effc; --kl: #b6adff;
}

/* Scheme-aware components */
[data-scheme] .eyebrow { color: var(--k1); }
.band.dark[data-scheme] .eyebrow, .hero[data-scheme] .eyebrow, .page-head[data-scheme] .eyebrow { color: var(--kl); }
[data-scheme] .btn-gold { background: var(--k1); color: #fff; }
[data-scheme] .btn-gold:hover { background: var(--k5); }
.hero[data-scheme] .btn-gold:hover, .band.dark[data-scheme] .btn-gold:hover { background: var(--k2); }
[data-scheme] .section-head h2::after {
  content: ""; display: block; width: 72px; height: 4px; margin-top: 14px; border-radius: 2px;
  background: linear-gradient(90deg, var(--k1) 0 25%, var(--k2) 25% 50%, var(--k3) 50% 75%, var(--k4) 75%);
}
.section-head { position: relative; }

/* Palette swatch label */
.swatch { display: inline-flex; align-items: center; gap: 8px; font: 600 .7rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.swatch i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch i + i { margin-left: -4px; }
.band.dark .swatch, .hero .swatch, .page-head .swatch { color: var(--on-navy-muted); }
.chart-card .swatch, .plan .swatch, fieldset .swatch { margin-bottom: 10px; }

/* Icon chips cycle through the scheme */
[data-scheme] .icon-chip { background: color-mix(in srgb, var(--k1) 13%, #fff); color: var(--k1); }
[data-scheme] .grid > :nth-child(4n+2) .icon-chip { background: color-mix(in srgb, var(--k2) 15%, #fff); color: var(--k2); }
[data-scheme] .grid > :nth-child(4n+3) .icon-chip { background: color-mix(in srgb, var(--k3) 15%, #fff); color: var(--k3); }
[data-scheme] .grid > :nth-child(4n+4) .icon-chip { background: color-mix(in srgb, var(--k4) 18%, #fff); color: var(--k5); }
.band.dark[data-scheme] .icon-chip { background: color-mix(in srgb, var(--kl) 18%, transparent); color: var(--kl); }

/* Ornament: dotted quarter-circle in the band's corner */
.band[data-scheme], .page-head[data-scheme] { position: relative; overflow: hidden; }
.band[data-scheme]::before {
  content: ""; position: absolute; width: 340px; height: 340px; right: -110px; top: -110px; pointer-events: none; opacity: .5;
  background: radial-gradient(circle, var(--k3) 1.6px, transparent 2px) 0 0 / 18px 18px;
  -webkit-mask: radial-gradient(circle at 100% 0, #000 30%, transparent 70%); mask: radial-gradient(circle at 100% 0, #000 30%, transparent 70%);
}
.band[data-scheme]::after {
  content: ""; position: absolute; width: 260px; height: 260px; left: -130px; bottom: -130px; border-radius: 50%; pointer-events: none;
  border: 26px solid color-mix(in srgb, var(--k2) 12%, transparent); box-shadow: 0 0 0 26px color-mix(in srgb, var(--k1) 6%, transparent);
}
.band[data-scheme] > .wrap { position: relative; z-index: 1; }

/* Hero: red monochrome glow + orbit graphic */
.hero[data-scheme] { background:
  radial-gradient(60% 80% at 92% 10%, color-mix(in srgb, var(--k1) 45%, transparent), transparent 60%),
  radial-gradient(40% 50% at 70% 100%, color-mix(in srgb, var(--k5) 70%, transparent), transparent 70%),
  var(--navy); }
.hero h1 em { color: var(--kl); }
.hero .trust-row span::before { color: var(--kl); }
.hero-visual { position: relative; padding: 36px 0; }
.orbit { position: absolute; inset: -40px -60px; width: calc(100% + 120px); height: calc(100% + 80px); max-width: none; pointer-events: none; }
.orbit .spin { transform-origin: 300px 260px; animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 50% { transform: translateY(-8px); } }
.hero-visual .ledger { position: relative; z-index: 2; }
.seal { position: absolute; z-index: 3; width: 112px; height: 112px; right: -34px; top: -22px; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 12px 18px rgba(0,0,0,.35)); }
.chip-float { position: absolute; z-index: 3; left: -22px; bottom: 6px; background: var(--white); color: var(--ink); border-radius: 10px; padding: 10px 14px; display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow); font-size: .85rem; animation: float 7s ease-in-out infinite reverse; }
.chip-float b { display: block; font-family: var(--f-mono); color: var(--k1); }
.chip-float .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--kt); color: var(--k1); display: grid; place-items: center; }
@media (max-width: 900px) { .orbit { display: none; } .seal { width: 84px; height: 84px; right: -6px; top: 6px; } .chip-float { left: 6px; } }
.hero[data-scheme] .ledger-head { background: var(--kt); }
.hero .ledger td.num { color: var(--k5); font-weight: 600; }

/* KPI tiles with glyph rings */
.kpi { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center; }
.kpi .ring { grid-row: span 2; width: 54px; height: 54px; }
.kpi .val { color: var(--k5); }
.kpi:nth-child(odd) .ring { color: var(--k1); } .kpi:nth-child(even) .ring { color: var(--k2); }

/* Two-sided steps */
[data-scheme] .steps li::before { background: color-mix(in srgb, var(--k1) 14%, #fff); color: var(--k1); }
[data-scheme] .side.emp .steps li::before { background: var(--k2); color: var(--navy); }
[data-scheme] .side-tag { color: var(--k1); }
[data-scheme] .side.emp .side-tag { color: var(--k4); }
[data-scheme] .side.emp { background: linear-gradient(160deg, var(--navy) 55%, var(--k5)); }

/* Pay-to-connect hub */
[data-scheme] .p2c .node.mid { background: linear-gradient(150deg, var(--k1), var(--k2)); border-color: transparent; color: #fff; }
[data-scheme] .p2c .node.mid h3, [data-scheme] .p2c .node.mid p { color: #fff; }
[data-scheme] .p2c .arrow { color: var(--kl); }
.p2c .node b[style] { color: var(--kl) !important; }
.band.dark[data-scheme] .card { border-top: 3px solid var(--k1); }
.band.dark[data-scheme] .grid > :nth-child(4n+2).card { border-top-color: var(--k2); }
.band.dark[data-scheme] .grid > :nth-child(4n+3).card { border-top-color: var(--k3); }
.band.dark[data-scheme] .grid > :nth-child(4n+4).card { border-top-color: var(--k4); }

/* Charts in scheme colours */
[data-scheme] .range-bar { background: linear-gradient(90deg, var(--k3), var(--k1)); }
[data-scheme] .range-bar::after { background: var(--k2); }
[data-scheme] .range-row:nth-child(3n+2) .range-bar { background: linear-gradient(90deg, var(--k4), var(--k2)); }
[data-scheme] .range-row:nth-child(3n+2) .range-bar::after { background: var(--k3); }
[data-scheme] .range-row:nth-child(3n) .range-bar { background: linear-gradient(90deg, color-mix(in srgb, var(--k3) 60%, #fff), var(--k3)); }
[data-scheme] .range-row:nth-child(3n) .range-bar::after { background: var(--k1); }
[data-scheme] .hbar .f { background: var(--k2); }
[data-scheme] .hbar .f.gold { background: var(--k1); }
.hbar.hl span:first-child { font-weight: 700; color: var(--k1); }
.hbar.hl .t { box-shadow: 0 0 0 2px var(--k1); }
.chart-card[data-scheme] { position: relative; overflow: hidden; }
.chart-card[data-scheme]::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--k1) 0 25%, var(--k2) 25% 50%, var(--k3) 50% 75%, var(--k4) 75%); }

/* Pricing: palette bar per plan */
.plan[data-scheme] { overflow: hidden; padding-top: 30px; }
.plan[data-scheme]::before { content: ""; position: absolute; inset: 0 0 auto; height: 8px; background: linear-gradient(90deg, var(--k1) 0 40%, var(--k2) 40% 65%, var(--k3) 65% 85%, var(--k4) 85%); }
.plan[data-scheme] .price { color: var(--k1); }
.plan[data-scheme] li::before { color: var(--k2); }
.plan[data-scheme].pop { border-color: var(--k1); }
.plan[data-scheme] .badge { background: var(--k1); color: #fff; top: 16px; left: auto; right: 16px; }
.plan[data-scheme] .meta b { color: var(--k5); }
.plan[data-scheme] .per-unit { color: var(--k2); font-weight: 600; }
.plan[data-scheme] .btn-navy { background: var(--k5); }
[data-scheme] table.cmp thead th { background: linear-gradient(90deg, var(--k5), var(--k1)); }
[data-scheme] .toggle button[aria-pressed="true"] { background: var(--k1); }

/* Forms: each step its own scheme */
fieldset[data-scheme] h2 { color: var(--k5); }
fieldset[data-scheme] .chips label:has(input:checked) { border-color: var(--k1); background: var(--k1); }
fieldset[data-scheme] .drop { border-color: color-mix(in srgb, var(--k2) 45%, #fff); background: color-mix(in srgb, var(--k2) 5%, #fff); }
fieldset[data-scheme] .field input:focus, fieldset[data-scheme] .field select:focus, fieldset[data-scheme] .field textarea:focus { border-color: var(--k1); box-shadow: 0 0 0 3px color-mix(in srgb, var(--k1) 18%, transparent); }
.stepper li.active { background: var(--kt); color: var(--k5); }
.stepper li.active i { border-color: var(--k1); background: var(--k1); color: #fff; }
.meter div { background: linear-gradient(90deg, var(--k3), var(--k1)); }
.form-card { position: relative; overflow: hidden; }
.form-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--k1) 0 25%, var(--k2) 25% 50%, var(--k3) 50% 75%, var(--k4) 75%); }

/* Listings rotate schemes */
.listing[data-scheme] { border-left: 4px solid var(--k1); }
.listing[data-scheme] .sal { color: var(--k1); }
.listing[data-scheme] .avatar { background: linear-gradient(135deg, var(--k1), var(--k2)); color: #fff; }
.listing[data-scheme] .tag { background: color-mix(in srgb, var(--k3) 9%, #fff); border-color: color-mix(in srgb, var(--k3) 30%, #fff); color: var(--k5); }
.listing[data-scheme] .tag.v { background: color-mix(in srgb, var(--k2) 14%, #fff); border-color: color-mix(in srgb, var(--k2) 40%, #fff); color: var(--k5); }
.wallet[data-scheme] { background: linear-gradient(120deg, var(--navy), var(--k5)); }
.wallet[data-scheme] b { color: var(--kl); }

/* Sub-page headers with illustration */
.page-head[data-scheme] { background: radial-gradient(50% 120% at 100% 0, color-mix(in srgb, var(--k1) 40%, transparent), transparent 60%), var(--navy); }
.page-head .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 240px; column-gap: 40px; row-gap: 0; align-items: start; }
.page-head .wrap > :not(.illus) { grid-column: 1; }
.page-head .wrap > .illus { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
.page-head .illus { width: 240px; height: 180px; }
@media (max-width: 760px) { .page-head .wrap { grid-template-columns: minmax(0, 1fr); } .page-head .illus { display: none; } }
.crumbs a { color: var(--kl); }

/* CTA band */
.cta-band[data-scheme] { background: linear-gradient(120deg, var(--k5), var(--k1) 55%, var(--k2)); position: relative; overflow: hidden; }
.cta-band[data-scheme]::after { content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%; border: 30px solid rgba(255,255,255,.08); }
.cta-band[data-scheme] .btn-gold { background: #fff; color: var(--k1); }
.cta-band > * { position: relative; z-index: 1; }

/* FAQ, link cloud, details */
[data-scheme] details.faq summary::after { color: var(--k1); }
[data-scheme] details.faq[open] { border-left: 4px solid var(--k2); }
[data-scheme] .link-cloud a:hover { border-color: var(--k1); color: var(--k1); }
[data-scheme] .prose strong { color: var(--k5); }
[data-scheme] .card .side-tag { color: var(--k1); }
.verify-seal { width: 92px; height: 92px; float: right; margin: -8px -4px 8px 12px; }

@media (prefers-reduced-motion: reduce) { .orbit .spin, .seal, .chip-float { animation: none; } }

/* Registration path chooser (GST / Udyam) */
.reg-path { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .reg-path { grid-template-columns: 1fr; } }
.path-opt { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; padding: 14px 16px; border: 2px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--white); }
.path-opt input { margin-top: 4px; accent-color: var(--k1); }
.path-opt b { display: block; color: var(--navy); }
.path-opt small { color: var(--muted); font-size: .88rem; }
.path-opt:has(input:checked) { border-color: var(--k1); background: color-mix(in srgb, var(--k1) 6%, #fff); }

/* Payment gate UI */
.pay-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: ps; }
.pay-steps li { counter-increment: ps; font-size: .8rem; font-weight: 600; color: var(--muted); text-align: center; padding-top: 34px; position: relative; }
.pay-steps li::before { content: counter(ps); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 2px solid var(--line); font: 700 .8rem var(--f-mono); }
.pay-steps li.on { color: var(--k5); }
.pay-steps li.on::before { background: var(--k1); border-color: var(--k1); color: #fff; content: "✓"; }
.paywall-art { display: grid; place-items: center; background: var(--kt); border-radius: 10px; padding: 14px; }
.contact-box { align-items: center; }
.lock-ico { color: var(--k1); display: inline-flex; }
.lock-note { margin-left: auto; font: 600 .75rem var(--f-mono); color: var(--k1); }

/* Hero wave edge */
.hero .wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 48px; max-width: none; z-index: 1; fill: var(--paper); }
.page-head .wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 36px; max-width: none; fill: var(--paper); }
.page-head .wrap { padding-bottom: 64px !important; }

/* Skills ticker */
.ticker { overflow: hidden; background: var(--paper); padding-block: 8px 4px; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 12px; width: max-content; animation: tick 40s linear infinite; }
.ticker span { white-space: nowrap; padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--navy-2); }
.ticker span:nth-child(5n+1) { border-color: #f1b5af; color: #a01f1f; }
.ticker span:nth-child(5n+3) { border-color: #a9d8c6; color: #0b5d48; }
.ticker span:nth-child(5n+4) { background: #c62828; border-color: #c62828; color: #fff; }
@keyframes tick { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* Hub between the two journeys */
.sides { position: relative; }
.hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--k1) 0 25%, var(--k2) 0 50%, var(--k3) 0 75%, var(--k4) 0); box-shadow: 0 0 0 8px var(--white), var(--shadow); }
.hub span { width: 58px; height: 58px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 800 1.2rem var(--f-display); }
@media (max-width: 820px) { .hub { display: none; } }

/* Payment gate flow */
.gate-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.gate-flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 31px; height: 3px; background: linear-gradient(90deg, var(--k3) 0 50%, var(--k1) 50%); }
.gate-flow li { position: relative; display: grid; justify-items: center; text-align: center; gap: 6px; padding: 0 8px; }
.gate-flow b { color: var(--navy); font-family: var(--f-display); }
.gate-flow small { color: var(--muted); font-size: .86rem; line-height: 1.4; max-width: 22ch; }
.gf-ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 3px solid var(--k3); color: var(--k3); position: relative; z-index: 1; }
.gf-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gate-flow li:nth-child(n+4) .gf-ico { border-color: var(--k1); color: var(--k1); }
.gate-flow li.gate .gf-ico { width: 76px; height: 76px; margin-top: -6px; background: var(--k1); border-color: var(--k1); color: #fff; box-shadow: 0 0 0 8px color-mix(in srgb, var(--k1) 15%, transparent); }
.gate-flow li.gate b { color: var(--k1); }
@media (max-width: 760px) {
  .gate-flow { grid-template-columns: 1fr; gap: 14px; }
  .gate-flow::before { left: 31px; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; background: linear-gradient(180deg, var(--k3) 0 50%, var(--k1) 50%); }
  .gate-flow li { grid-template-columns: 64px 1fr; justify-items: start; text-align: left; column-gap: 14px; padding: 0; }
  .gate-flow li .gf-ico { grid-row: span 2; }
  .gate-flow li.gate .gf-ico { width: 64px; height: 64px; margin: 0; }
}
.vis-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 22px; min-width: 0; }
.vis-card h3 { margin-bottom: 14px; }
table.vis { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.vis th, table.vis td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.vis th { font: 600 .72rem var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
table.vis .c { text-align: center; }
table.vis tr:last-child td { border-bottom: 0; }
.vi { width: 22px; height: 22px; vertical-align: middle; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.vi.yes { fill: color-mix(in srgb, var(--k3) 16%, #fff); stroke: var(--k3); }
.vi.no { fill: color-mix(in srgb, var(--k1) 14%, #fff); stroke: var(--k1); }

/* CTA art + misc alignment */
.cta-art { position: absolute; right: 24px; bottom: 0; width: 220px; height: 140px; opacity: .35; pointer-events: none; z-index: 0; }
@media (max-width: 760px) { .cta-art { display: none; } }
.plan .price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan h3 { margin-top: 2px; }
.range-row > span:first-child { line-height: 1.3; }
.card { transition: transform .2s, box-shadow .2s; }
#roles .card:hover, .vis-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.kpi .lab { line-height: 1.35; }
.listing .side-meta .btn { white-space: nowrap; }

/* Alignment pass */
.kpi { align-items: start; grid-template-rows: auto 1fr; }
.kpi .ring { grid-row: 1 / span 2; align-self: start; }
.kpi .val { line-height: 1.1; }
.band.no-orn::before, .band.no-orn::after { display: none; }
@media (max-width: 760px) { .topbar .tb-text, .topbar .tb-mail { display: none; } .topbar .wrap { justify-content: flex-end; } }
.toast { white-space: normal; text-align: center; }
.gate-flow li.gate .gf-ico { margin-block: -6px; }
table.vis th:first-child, table.vis td:first-child { width: 46%; }

/* Razorpay checkout */
.rzp-btn { width: 100%; padding-block: 14px; font-size: 1.02rem; }
.rzp-note { font-size: .85rem; color: var(--muted); text-align: center; margin-top: -4px; }
.live-pay { align-self: center; font: 600 .72rem var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #0b5d48; background: #dff3ec; border-radius: 999px; padding: 3px 10px; }
.modal-box { max-height: calc(100vh - 32px); overflow-y: auto; }

/* Free registration */
.free-pill { display: inline-block; font: 700 .72rem/1 var(--f-mono); letter-spacing: .12em; padding: 6px 10px; border-radius: 999px; background: #1e8f4e; color: #fff; vertical-align: middle; }
.page-head .free-pill { margin-bottom: 12px; justify-self: start; }
.free-note { margin-top: 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--on-navy); font-weight: 600; }
.plan .badge.free { background: #1e8f4e; color: #fff; }
tr.free-row td { color: #0f6b3a; font-weight: 600; }
.plans { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.free-note { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 12px; max-width: 60ch; }
.free-note .free-pill { margin-top: 3px; }
.hero .ledger-head span { padding-right: 64px; }
/* Five-plan rows (employers): tighter type so nothing wraps */
.plans:has(> .plan:nth-child(5)) .plan { padding: 26px 18px 20px; }
.plans:has(> .plan:nth-child(5)) .plan .price { font-size: 1.7rem; }
.plans:has(> .plan:nth-child(5)) .plan .meta div { padding: 8px 10px; }
.plans:has(> .plan:nth-child(5)) .plan .meta b { font-size: 1.1rem; }
.plans:has(> .plan:nth-child(5)) .plan ul { font-size: .9rem; }
.plan .badge { white-space: nowrap; }
.plan[data-scheme] .badge { top: 14px; right: 14px; }
.plan h3 { padding-right: 104px; }

/* Account link, login, live mode */
nav.main a { white-space: nowrap; }
.topbar .wrap { align-items: center; }
.tb-right { display: flex; align-items: center; gap: 14px; }
.acct-link { color: var(--white); font-weight: 700; text-decoration: none; padding: 2px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; white-space: nowrap; }
.acct-link:hover { background: rgba(255,255,255,.1); }
.modal-box .toggle { justify-self: start; }
.modal-box .err, #lgErr { color: var(--red); font-size: .9rem; min-height: 1em; }
.linkish { background: none; border: 0; padding: 0; font: 600 .9rem var(--f-mono); color: var(--k1); text-decoration: underline; cursor: pointer; }
.submit-status { margin-top: 16px; }

/* Company contact */
.tb-contact { display: inline-flex; align-items: center; gap: 6px; color: var(--on-navy); text-decoration: none; font-weight: 600; white-space: nowrap; }
.tb-contact:hover { color: var(--gold); }
.foot-contact a { display: inline-flex; align-items: center; gap: 8px; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
@media (max-width: 620px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-card { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; text-decoration: none; color: var(--ink); }
.contact-card:hover { border-color: var(--k1); }
.contact-card .ci { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--k1) 12%, #fff); color: var(--k1); }
.contact-card .ci svg { width: 24px; height: 24px; }
.contact-card small { display: block; color: var(--muted); font-size: .85rem; }
.contact-card b { font: 700 1.15rem var(--f-mono); color: var(--navy); overflow-wrap: anywhere; }

/* Hidden elements stay hidden even when a class sets display */
[hidden] { display: none !important; }
/* Keep inputs in a row the same height when only one has a help line */
.field { align-content: start; }

/* Larger, clearer logo in the top bar */
header.site .logo { gap: 12px; }
header.site .logo-mark { width: 50px; height: 50px; border-radius: 11px; font-size: 1.4rem; box-shadow: 0 0 0 2px rgba(224, 165, 38, .35); }
header.site .logo-text { font-size: 1.9rem; letter-spacing: -.025em; }
header.site .wrap { padding-block: 12px; }
@media (max-width: 600px) {
  header.site .logo-mark { width: 44px; height: 44px; font-size: 1.25rem; }
  header.site .logo-text { font-size: 1.6rem; }
}
@media (min-width: 1241px) {
  nav.main { gap: 2px; }
  nav.main a { padding: 8px 9px; }
  nav.main .nav-cta { margin-left: 6px; }
  nav.main .nav-cta .btn { padding: 8px 12px; }
}

/* ===== Directory: filter panel ===== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.filters { position: sticky; top: 96px; max-height: calc(100vh - 110px); overflow-y: auto; gap: 14px; }
.ftoggle { display: none; width: 100%; justify-content: space-between; align-items: center; background: var(--navy); color: #fff; border: 0; border-radius: 10px; padding: 12px 16px; font: 700 1rem var(--f-body); cursor: pointer; }
.ftoggle::after { content: "▾"; }
.filters.open .ftoggle::after { content: "▴"; }
.fbody { display: grid; gap: 14px; }
.fgroup { border-top: 1px solid var(--line); padding-top: 10px; }
.fgroup summary { cursor: pointer; font-weight: 700; color: var(--navy); font-size: .93rem; list-style: none; display: flex; justify-content: space-between; }
.fgroup summary::after { content: "+"; font: 700 1.1rem/1 var(--f-mono); color: var(--k1); }
.fgroup[open] summary::after { content: "−"; }
.fcount { color: var(--k1); font-weight: 700; margin-left: 4px; margin-right: auto; }
.fopts { display: grid; gap: 4px; margin-top: 8px; }
.fopts.scroll { max-height: 210px; overflow-y: auto; padding-right: 4px; }
.fopts label { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: center; font-size: .92rem; padding: 3px 4px; border-radius: 6px; cursor: pointer; }
.fopts label:hover { background: var(--paper); }
.fopts input { accent-color: var(--k1); width: 16px; height: 16px; }
.frange { border: 0; border-top: 1px solid var(--line); padding: 10px 0 0; margin: 0; }
.frange legend { font-weight: 700; color: var(--navy); font-size: .93rem; padding: 0; }
.frange-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 6px; align-items: center; margin-top: 8px; }
.frange-row input { width: 100%; min-width: 0; padding: 8px; border: 1.5px solid var(--line); border-radius: 8px; font: .95rem var(--f-body); }
.frange-row span { color: var(--muted); font-size: .85rem; }
.frange-row small { grid-column: 1 / -1; color: var(--muted); font-size: .78rem; }
.factions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; position: sticky; bottom: -20px; background: var(--white); padding: 10px 0 2px; }
.factions .btn-ghost { color: var(--navy); border-color: var(--line); }
.results-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 12px; }
.results-head #count { color: var(--muted); margin: 0; font-weight: 600; }
.fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 4px 10px; font: 600 .82rem var(--f-body); color: var(--navy-2); cursor: pointer; }
.fchip:hover { border-color: var(--k1); color: var(--k1); }
.fchip.clear { border-style: dashed; }
@media (max-width: 900px) {
  .filters { position: static; max-height: none; overflow: visible; }
  .ftoggle { display: flex; }
  .filters .fbody { display: none; }
  .filters.open .fbody { display: grid; }
}

/* ===== Encrypted text ===== */
.enc { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono); color: #6b4fbf; background: repeating-linear-gradient(135deg, rgba(107, 79, 191, .08) 0 6px, rgba(107, 79, 191, .14) 6px 12px); border: 1px solid rgba(107, 79, 191, .25); padding: 1px 7px; border-radius: 5px; letter-spacing: .06em; font-size: .86em; white-space: nowrap; max-width: 100%; overflow: hidden; vertical-align: middle; }
.enc-t { overflow: hidden; text-overflow: clip; }
.dec { font-family: var(--f-mono); font-weight: 600; color: #0b5d54; }
h3 .enc { font-size: .8em; }
.enc-note { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: .92rem; color: var(--ink); margin: 0 0 14px; }
.listing .contact-box { align-items: center; }
.listing.ghost { opacity: .5; }
.listing.ghost .ph { height: 12px; margin: 8px 0; }

/* ===== Login gate ===== */
.gate { margin-bottom: 16px; }
.gate-card { background: linear-gradient(135deg, var(--navy), #2a1c5c); color: var(--on-navy); border-radius: 14px; padding: 28px; display: grid; gap: 12px; justify-items: start; }
.gate-card svg { color: var(--gold); }
.gate-card h3 { color: #fff; font-size: 1.35rem; }
.gate-card a { color: var(--gold); }
.gate-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===== Brand reveal: ibookkeeper = Intelligent Bookkeeper ===== */
.brand-reveal { position: relative; background: #071629; color: var(--on-navy); border-top: 1px solid rgba(236, 178, 52, .35); overflow: hidden; }
.brand-reveal canvas { display: block; width: 100%; height: clamp(250px, 36vw, 440px); max-width: 100%; }
.brand-caption { position: relative; z-index: 2; padding-block: 8px 72px; display: grid; gap: 14px; justify-items: center; text-align: center; }
.brand-caption h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2.2rem); }
.brand-caption .gi { color: #ecb234; }
.brand-caption .eq { color: var(--on-navy-muted); font-weight: 600; margin: 0 .2em; }
.brand-caption > p { color: var(--on-navy-muted); max-width: 60ch; }
.brand-caption > p b { color: #ecb234; }
.brand-pillars { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 1000px; text-align: left; }
.brand-pillars li { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-top: 3px solid #ecb234; border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; }
.brand-pillars b { color: #fff; font-family: var(--f-display); }
.brand-pillars span { color: var(--on-navy-muted); font-size: .93rem; }
@media (max-width: 760px) { .brand-pillars { grid-template-columns: 1fr; } }
.brand-reveal .wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 48px; max-width: none; z-index: 1; fill: var(--paper); }
.foot-name { margin-top: 10px; font: 700 .78rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.enc-note { display: grid; grid-template-columns: auto minmax(0, 1fr); }

/* Brand statement now sits directly under the menu (no animation) */
.brand-reveal { border-top: 1px solid rgba(255, 255, 255, .06); border-bottom: 1px solid rgba(236, 178, 52, .35);
  background: radial-gradient(60% 140% at 50% 0, rgba(236, 178, 52, .10), transparent 60%), #071629; }
.brand-caption { padding-block: 34px 34px; gap: 12px; }
.brand-caption h2 { font-size: clamp(1.5rem, 3.4vw, 2.5rem); }

/* ===== Brand statement: subtle ambient motion =====
   Everything moves with transform/opacity only (GPU-composited), so it stays smooth on phones. */
.brand-reveal { isolation: isolate; }
/* ledger ruling + faint gold column lines; a taller layer slides upward */
.brand-reveal::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 320px); z-index: 0; pointer-events: none; opacity: .09;
  background:
    repeating-linear-gradient(0deg, transparent 0 31px, #fff 31px 32px),
    repeating-linear-gradient(90deg, transparent 0 159px, rgba(236, 178, 52, .9) 159px 160px);
  -webkit-mask: linear-gradient(180deg, transparent, #000 15%, #000 70%, transparent);
  mask: linear-gradient(180deg, transparent, #000 15%, #000 70%, transparent);
  animation: br-ledger 50s linear infinite; will-change: transform;
}
@keyframes br-ledger { from { transform: translateY(0); } to { transform: translateY(-320px); } }
/* soft light pools (gradients, no blur filter): gold = Intelligent, red = brand, blue = trust */
.br-glow { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; will-change: transform; }
.br-gold { width: 560px; height: 560px; left: 2%; top: -260px; background: radial-gradient(circle, rgba(236, 178, 52, .26), rgba(236, 178, 52, 0) 65%); animation: br-drift-a 22s ease-in-out infinite alternate; }
.br-red  { width: 520px; height: 520px; right: 0; top: -200px; background: radial-gradient(circle, rgba(198, 40, 40, .30), rgba(198, 40, 40, 0) 65%); animation: br-drift-b 26s ease-in-out infinite alternate; }
.br-blue { width: 760px; height: 460px; left: 30%; bottom: -300px; background: radial-gradient(closest-side, rgba(29, 78, 137, .55), rgba(29, 78, 137, 0)); animation: br-drift-c 30s ease-in-out infinite alternate; }
@keyframes br-drift-a { to { transform: translate3d(140px, 70px, 0) scale(1.12); } }
@keyframes br-drift-b { to { transform: translate3d(-160px, 50px, 0) scale(.92); } }
@keyframes br-drift-c { to { transform: translate3d(-120px, -40px, 0) scale(1.08); } }
/* a slow, faint light sweep: a narrow band slides across */
.brand-reveal::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 240, 200, .07) 50%, transparent);
  transform: translateX(-120%); animation: br-sweep 9s ease-in-out infinite; will-change: transform;
}
@keyframes br-sweep { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(320%); } }
/* gold shine travelling through the word "Intelligent" (small element, cheap to repaint) */
.brand-caption .gi.shine {
  background: linear-gradient(100deg, #e0a526 0%, #ecb234 40%, #fff3c9 50%, #ecb234 60%, #e0a526 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: br-shine 6s ease-in-out infinite;
}
@keyframes br-shine { 0%, 20% { background-position: 100% 0; } 70%, 100% { background-position: 0 0; } }
/* cards: gentle lift and gold edge glow on hover; coloured top edges match the brand trio */
.brand-pillars li { position: relative; background: rgba(255, 255, 255, .045); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.brand-pillars li:hover { transform: translateY(-3px); border-color: rgba(236, 178, 52, .45); box-shadow: 0 14px 30px -18px rgba(236, 178, 52, .55); }
.brand-pillars li:nth-child(2) { border-top-color: #e0483e; }
.brand-pillars li:nth-child(3) { border-top-color: #5b8fd6; }
@media (max-width: 760px) { .br-gold { width: 340px; height: 340px; top: -150px; } .br-red { width: 320px; height: 320px; top: -100px; } .br-blue { width: 420px; height: 320px; left: 0; } }
@media (prefers-reduced-motion: reduce) {
  .brand-reveal::before, .brand-reveal::after, .br-glow, .brand-caption .gi.shine { animation: none; }
  .brand-reveal::after { display: none; }
}

/* ===== Home: top bar + menu + brand statement read as one continuous header ===== */
body[data-page="home"] .topbar {
  background: linear-gradient(90deg, rgba(236, 178, 52, .07), transparent 30%, transparent 70%, rgba(198, 40, 40, .08)), var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, .05);
}
body[data-page="home"] header.site { background: var(--navy); box-shadow: none; isolation: isolate; }
/* the brand block's gold (left) and red (right) light rises softly into the menu bar */
body[data-page="home"] header.site::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 160% at 18% 120%, rgba(236, 178, 52, .14), transparent 70%),
    radial-gradient(34% 160% at 86% 120%, rgba(198, 40, 40, .16), transparent 70%);
}
/* hairline that fades at both ends instead of a hard edge (only while the menu sits over the brand block) */
body[data-page="home"] header.site::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .10) 20%, rgba(236, 178, 52, .28) 50%, rgba(255, 255, 255, .10) 80%, transparent);
}
/* brand block starts in exactly the menu's navy and settles into the hero's navy */
.brand-reveal {
  border-top: 0; border-bottom: 0;
  background:
    radial-gradient(60% 120% at 50% 0, rgba(236, 178, 52, .07), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, #08203d 55%, var(--navy) 100%);
}
/* soft fading gold seam between the brand block and the hero */
.brand-reveal .brand-caption::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: min(760px, 90%); height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(236, 178, 52, .45), transparent);
}
.brand-caption { padding-block: 40px 44px; }
/* keep the light pools close to the top so they read as coming from the header */
.br-gold { top: -300px; }
.br-red { top: -260px; }
/* fade the drifting ledger lines out before the hero begins, so the two bands melt together */
.br-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(11, 37, 69, 0), var(--navy) 85%); }
.brand-reveal::before { -webkit-mask: linear-gradient(180deg, transparent 0, #000 120px); mask: linear-gradient(180deg, transparent 0, #000 120px); }
/* let the menu bar stay pinned while scrolling (its wrapper no longer limits the sticky area) */
.chrome-top { display: contents; }

/* ===== Login gate buttons: readable text on the dark card ===== */
.gate-card .gate-actions .btn-gold { background: var(--gold); color: var(--navy); }
.gate-card .gate-actions .btn-gold:hover { background: #ebb43a; color: var(--navy); }
.gate-card .gate-actions .btn-navy { background: transparent; color: #fff; border: 2px solid rgba(255, 255, 255, .7); }
.gate-card .gate-actions .btn-navy:hover { background: rgba(255, 255, 255, .1); }

/* ===== Disclaimer strip above the footer (every page) ===== */
.legal-strip { background: #fff8e6; border-top: 1px solid #efd28f; color: #5c4307; font-size: .9rem; }
.legal-strip .wrap { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding-block: 14px; }
.legal-strip svg { color: #b7791f; margin-top: 2px; }
.legal-strip a { color: #8a5a00; font-weight: 700; }
.rzp-note a { color: var(--blue); }

/* ===== Terms page ===== */
.legal-shell { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.legal-toc { position: sticky; top: 100px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px; font-size: .9rem; max-height: calc(100vh - 120px); overflow-y: auto; }
.legal-toc ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.legal-toc a { color: var(--navy-2); text-decoration: none; }
.legal-toc a:hover { color: var(--k1); text-decoration: underline; }
.legal { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: clamp(20px, 3vw, 40px); display: grid; gap: 30px; min-width: 0; }
.legal section { display: grid; gap: 10px; scroll-margin-top: 100px; }
.legal h2 { font-size: 1.35rem; }
.legal p, .legal li { max-width: 78ch; }
.legal ul, .legal ol.legal-list { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.legal-meta { color: var(--muted); font: 500 .85rem var(--f-mono); }
.legal-key { background: #fff8e6; border: 1px solid #efd28f; border-radius: 12px; padding: 20px; }
.legal-table { min-width: 720px; font-size: .9rem; }
.legal-table td { vertical-align: top; }
.legal-table td:first-child { font-weight: 600; color: var(--navy); }
@media (max-width: 900px) { .legal-shell { grid-template-columns: minmax(0, 1fr); } .legal-toc { position: static; max-height: none; } }

/* ===== Hidden details shown as x (about 90% masked) ===== */
.enc { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-weight: 600; color: #6b7a90; background: #eef1f6; border: 1px dashed #c3ccd9;
  padding: 1px 8px; border-radius: 5px; letter-spacing: .04em; font-size: .88em; white-space: nowrap; max-width: 100%; overflow: hidden; vertical-align: middle; }
.enc svg { color: var(--k1, #c62828); flex: none; }
.enc-t { overflow: hidden; text-overflow: ellipsis; }
h3 .enc { font-size: .78em; }

/* ===== PIN code: home search box and filter ===== */
.hero-search .pin-box { flex: 0 1 130px; border-left: 1px solid var(--line); }
.fpin-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 6px; margin-top: 8px; }
.fpin-row input, .fpin-row select { width: 100%; min-width: 0; padding: 8px; border: 1.5px solid var(--line); border-radius: 8px; font: .92rem var(--f-body); background: var(--white); }
.fpin small { display: block; color: var(--muted); font-size: .78rem; margin-top: 6px; }
.pin-help { color: #0b5d54 !important; font-weight: 600; }
/* long masked emails wrap instead of widening the page on phones */
.enc { white-space: normal; overflow-wrap: anywhere; }
.contact-box > span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }

/* ===== Upload boxes (click anywhere, drag & drop, attached-file chip) ===== */
.drop { cursor: pointer; position: relative; transition: border-color .15s, background .15s; padding: 16px; }
.drop:hover, .drop:focus-visible { border-color: var(--k1, #c62828); background: color-mix(in srgb, var(--k1, #c62828) 4%, #fff); outline: none; }
.drop.drag { border-color: var(--k1, #c62828); border-style: solid; background: color-mix(in srgb, var(--k1, #c62828) 8%, #fff); }
.drop-empty { display: grid; justify-items: center; gap: 4px; color: var(--muted); }
.drop-empty svg { color: var(--k1, #c62828); }
.drop-empty b { color: var(--navy); }
.drop-empty small { font-size: .8rem; }
.drop-file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ic name actions" "ic size actions"; column-gap: 12px; align-items: center; text-align: left; }
.drop-file svg { grid-area: ic; color: #12805c; }
.df-name { grid-area: name; font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.df-size { grid-area: size; font-size: .82rem; color: var(--muted); }
.df-actions { grid-area: actions; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.df-actions button { border: 1.5px solid var(--line); background: var(--white); border-radius: 6px; padding: 4px 10px; font: 600 .82rem var(--f-body); color: var(--navy); cursor: pointer; }
.df-actions .df-remove:hover { border-color: var(--red); color: var(--red); }
.drop.has-file { border-style: solid; border-color: #b4e0d9; background: #f2fbf8; }
.field.invalid .drop { border-color: var(--red); background: #fdf3f1; }
@media (max-width: 480px) { .drop-file { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ic name" "ic size" "actions actions"; row-gap: 8px; } .df-actions { justify-content: flex-start; } }

/* Chip checkboxes: keep the box small and the label on one line */
.field .chips input[type="checkbox"] { width: auto; height: auto; min-height: 0; padding: 0; margin: 0; flex: none; border: 0; box-shadow: none; }
.chips label { white-space: nowrap; }
.field.invalid .chips label:not(:has(input:checked)) { border-color: #f1a7a1; background: #fff6f5; }

/* Log-in: "no account found" panel */
.lg-new { margin: 4px 0 12px; padding: 14px 16px; border-radius: 12px; background: #fff8e6; border: 1px solid #f0d58a; color: var(--ink); }
.lg-new b { display: block; color: var(--navy); margin-bottom: 4px; }
.lg-new p { margin: 0 0 10px; font-size: .93rem; line-height: 1.5; }
#lgErr:empty { display: none; }

/* Mobile number with a fixed +91 prefix */
.tel-in { display: flex; align-items: stretch; }
.tel-in .tel-cc { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px; background: #f3f5f9; color: var(--navy); font-weight: 700; font-size: .95rem; }
.field .tel-in input { flex: 1; min-width: 0; border-radius: 0 8px 8px 0; }
.field.invalid .tel-in .tel-cc { border-color: var(--red); }

/* Trademark symbol after the ibookkeeper name */
sup.tm { font-family: "Source Sans 3", Arial, sans-serif; font-weight: 600; font-size: .32em; line-height: 0; vertical-align: super; position: relative; top: -.15em; margin-left: .12em; letter-spacing: 0; color: inherit; opacity: .9; }
.brand-caption h2 sup.tm { font-size: .4em; top: -.25em; }
header.site .logo-text sup.tm { font-size: .36em; top: -.2em; }

/* Disclaimer: part of the footer, on the footer's own navy background */
footer.site .legal-strip { background: transparent; border: 0; color: var(--on-navy-muted); font-size: .88rem; }
footer.site .legal-strip .wrap { display: block; padding-block: 40px 0; }
footer.site .legal-strip + .wrap { padding-top: 40px; }
.legal-strip .ls-card { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 20px;
  background: rgba(255, 255, 255, .035); border: 1px solid rgba(224, 165, 38, .2); border-left: 3px solid var(--gold); border-radius: 12px; }
.legal-strip .ls-card p { margin: 0; line-height: 1.6; }
footer.site .legal-strip svg { color: var(--gold); margin-top: 2px; }
footer.site .legal-strip b { color: var(--gold); letter-spacing: .02em; }
footer.site .legal-strip a { color: #f2c25a; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
footer.site .legal-strip a:hover { color: #ffffff; }
@media (max-width: 600px) { footer.site .legal-strip .wrap { padding-top: 28px; } .legal-strip .ls-card { padding: 14px 16px; gap: 10px; } }
