/* BI CFO — index theme: pure black, ice-blue accent, grid lines */
:root {
  --bg: #000;
  --ink: #FFFFFF;
  --ink-soft: rgba(255,255,255,.72);
  --slate: rgba(255,255,255,.5);
  --paper: #000;
  --wash: rgba(255,255,255,.04);
  --card: rgba(255,255,255,.025);
  --rule: rgba(255,255,255,.1);
  --line2: rgba(255,255,255,.24);
  --accent: #AFDDFF;
  --accent-hi: #c8e8ff;
  --margin: #FF9C8F;
  --save: #AFDDFF;
  --save-wash: rgba(175,221,255,.08);
  --pay-wash: rgba(255,156,143,.08);
  --focus: #AFDDFF;
  --radius-s: 0px;
  --radius-m: 0px;
  --gut: 20px;
  --ease-out: cubic-bezier(0.16,1,0.3,1);
  --ease-io: cubic-bezier(0.76,0,0.24,1);
  --display: "Inter Tight", "Graphik LCG", "Helvetica Neue", Arial, sans-serif;
  --serif: var(--display);
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (min-width: 768px) { :root { --gut: 35px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #000; color-scheme: dark; }
body { margin: 0; background: #000; color: var(--ink); font: 15px/1.6 var(--sans); font-variant-numeric: tabular-nums; overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--ink); text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.35); }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: #000; }

/* Full-bleed grid behind every page */
.gridbg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.gridbg i { position: absolute; background: rgba(255,255,255,.04); }
.gridbg i.v { top: 0; width: 1px; height: 100%; transform-origin: top; animation: gridV 1.2s var(--ease-out) both; }
.gridbg i.h { left: 0; height: 1px; width: 100%; transform-origin: left; animation: gridH 1.2s var(--ease-out) both; }
.gridbg b { display: none; }
.gridbg b::before, .gridbg b::after { content: ""; position: absolute; background: rgba(255,255,255,.7); transform: translate(-50%,-50%); }
.gridbg b::before { width: 10px; height: 1px; } .gridbg b::after { width: 1px; height: 10px; }
body > header, body > main, body > footer { position: relative; z-index: 1; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideL { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
@keyframes slideR { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes gridV { from { opacity: 0; transform: scaleY(0); } to { opacity: 1; transform: none; } }
@keyframes gridH { from { opacity: 0; transform: scaleX(0); } to { opacity: 1; transform: none; } }
.a-up { animation: fadeUp .9s var(--ease-out) both; }
.a-in { animation: fadeIn .8s var(--ease-out) both; }
.a-l { animation: slideL .8s var(--ease-out) both; }
.a-r { animation: slideR .8s var(--ease-out) both; }
.a-s { animation: scaleIn .7s var(--ease-out) both; }

.wrap { max-width: none; margin: 0; padding: 0 var(--gut); }
.wrap.narrow, .how { max-width: 820px; }

/* Header */
.site-head { position: relative; z-index: 20; }
.site-head .hbar { display: flex; align-items: center; padding: 20px var(--gut); }
@media (min-width: 768px) { .site-head .hbar { padding: 27px var(--gut); } }
.brand { font: 400 18px/21px var(--display); color: #fff; text-decoration: none; white-space: nowrap; letter-spacing: -.01em; }
@media (min-width: 768px) { .brand { font-size: 21px; } }
.brand:hover { color: #fff; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .mark { width: 30px; height: 26px; flex: none; }
@media (min-width: 768px) { .brand .mark { width: 34px; height: 30px; } }
.nav { display: none; align-items: center; gap: 40px; margin-left: 40px; }
.nav a { display: flex; gap: 3px; font: 400 13px/15.6px var(--sans); color: #fff; text-decoration: none; }
.nav a span:first-child { color: rgba(175,221,255,.8); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.status { display: none; align-items: center; gap: 12px; margin-left: auto; font: 400 13px/15.6px var(--sans); white-space: nowrap; }
.status .live { color: var(--accent); }
.status .gap { margin-left: 20px; }
.chip { background: var(--accent); color: #000; border-radius: 3px; padding: 2px 5px; }
.status a { color: #fff; text-decoration: none; margin-left: 20px; }
.cty { display: inline-flex; border: 1px solid var(--line2); }
.cty a, .status .cty a { margin: 0; padding: 2px 7px; color: rgba(255,255,255,.7); text-decoration: none; font: 400 12px/15.6px var(--sans); }
.cty a + a { border-left: 1px solid var(--line2); }
.cty a:hover { color: var(--accent); }
.cty a[aria-current="true"] { background: var(--accent); color: #000; }
.cty.big a { padding: 6px 12px; font-size: 14px; }
.status a:hover { color: var(--accent); }
@media (min-width: 1280px) { .nav, .status { display: flex; } }
@media (max-width: 1379px) { .status .ty { display: none; } .status .gap { margin-left: 0; } .nav { gap: 28px; margin-left: 32px; } }
@media (max-width: 1159px) { .nav { gap: 20px; margin-left: 24px; } .brand > span { font-size: 18px; } .status a { margin-left: 12px; } }
@media (max-width: 1159px) { .status > span.gap, .status > .chip { display: none; } }
.nav-toggle { margin-left: auto; width: 40px; height: 40px; position: relative; display: flex; align-items: center; justify-content: center; background: none; border: 0; padding: 0; color: #fff; cursor: pointer; z-index: 60; }
.nav-toggle i { position: absolute; width: 22px; height: 1.5px; background: #fff; transition: transform .3s var(--ease-io), opacity .3s var(--ease-io); }
.nav-toggle i:nth-child(1) { transform: translateY(-6px); } .nav-toggle i:nth-child(3) { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] i:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] i:nth-child(2) { opacity: 0; transform: scaleX(.3); }
.nav-toggle[aria-expanded="true"] i:nth-child(3) { transform: rotate(-45deg); }
@media (min-width: 1280px) { .nav-toggle { display: none; } }
.menu { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); display: flex; flex-direction: column; padding: 96px 20px 40px; visibility: hidden; opacity: 0; transform: translateY(-16px); transition: all .5s var(--ease-io); }
.menu.open { visibility: visible; opacity: 1; transform: none; transition: opacity .5s var(--ease-io), transform .5s var(--ease-io), visibility 0s; }
.menu nav { display: flex; flex-direction: column; gap: 32px; }
.menu nav a { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; font: 400 28px/1.2 var(--sans); letter-spacing: -.02em; opacity: 0; transform: translateX(-24px); transition: opacity .5s var(--ease-io), transform .5s var(--ease-io); }
.menu nav a span:first-child { font-size: 14px; color: rgba(175,221,255,.8); }
.menu.open nav a { opacity: 1; transform: none; }
.menu .foot { margin-top: auto; padding-top: 40px; border-top: 1px solid var(--rule); font-size: 13px; display: flex; gap: 8px; align-items: center; }
@media (min-width: 1280px) { .menu { display: none; } }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -.02em; color: #fff; }
h1 { font-size: clamp(32px, 6vw, 68px); line-height: 1; }
h2 { font-size: clamp(26px, 3.6vw, 44px); }
h3, h2.h3 { font-size: 20px; letter-spacing: -.01em; line-height: 1.2; }
.save-box h2.h3 { font-size: 18px; }
p { margin: 0 0 1em; max-width: 68ch; }
.lead { font-size: 17px; color: var(--ink-soft); }
.muted { color: var(--slate); }
.small { font-size: 13px; }
.tag { display: inline-block; font: 400 13px/15.6px var(--sans); background: var(--accent); color: #000; padding: 2px 6px; margin-bottom: 10px; }
.label-x { font: 400 13px/15.6px var(--sans); color: #fff; }

/* Chamfered panel: the signature box (bottom-left corner cut) */
.sheet, .panel {
  position: relative; background: #000; padding: 24px;
  border: 0; border-radius: 0;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 30px 100%, 0 calc(100% - 30px));
}
.sheet::before, .panel::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(var(--line2),var(--line2)) top/100% 1px no-repeat,
    linear-gradient(var(--line2),var(--line2)) right/1px 100% no-repeat,
    linear-gradient(var(--line2),var(--line2)) left top/1px calc(100% - 30px) no-repeat,
    linear-gradient(var(--line2),var(--line2)) right bottom/calc(100% - 30px) 1px no-repeat,
    linear-gradient(45deg, transparent calc(50% - .5px), var(--line2) calc(50% - .5px), var(--line2) calc(50% + .5px), transparent calc(50% + .5px)) left bottom/30px 30px no-repeat;
}
.sheet { border-color: var(--accent); }
.sheet::before { --line2: rgba(175,221,255,.6); }
.sheet > *, .panel > * { position: relative; }
@media (max-width: 520px) { .sheet, .panel { padding: 20px; } }

/* Hero (non-landing) */
.hero { padding: 56px 0 48px; }
.hero .wrap > *, .tool-grid > * { min-width: 0; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 32px; } }
.hero-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; color: var(--ink-soft); }
.hero-points li { padding-left: 22px; position: relative; }
.hero-points li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); font-size: 12px; }

/* Forms */
.field { margin-bottom: 18px; }
.field label, .field .label { display: block; font: 500 13px/15.6px var(--sans); margin-bottom: 8px; color: #fff; }
.field .hint { display: block; font-weight: 400; color: var(--slate); font-size: 12px; margin-top: 6px; line-height: 1.4; }
.input-money { position: relative; }
.input-money::before { content: "₹"; position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--accent); pointer-events: none; z-index: 1; }
.input-money input[type="text"] { padding-left: 18px; }
.input-money[data-sym]::before { content: attr(data-sym); font-size: 13px; }
.input-money[data-sym="S$"] input[type="text"] { padding-left: 26px; }
.input-money[data-sym="AED"] input[type="text"] { padding-left: 38px; }
input[type="text"], input[type="email"], input[type="number"], input[type="date"], input[type="tel"], select, textarea {
  width: 100%; font: 400 17px/1.3 var(--sans); color: #fff; background: transparent;
  border: 0; border-bottom: 1px solid var(--line2); border-radius: 0; padding: 10px 0; min-height: 44px;
}
textarea { border: 1px solid var(--line2) !important; padding: 10px 12px !important; background: transparent !important; color: #fff !important; border-radius: 0 !important; }
select { appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23AFDDFF'/%3E%3C/svg%3E") right 4px center no-repeat; padding-right: 22px; }
select option { background: #000; color: #fff; }
input::placeholder, textarea::placeholder { color: rgba(255,255,255,.3); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: none; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); }
input[type="range"] { accent-color: var(--accent); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 520px) { .row-2 { grid-template-columns: 1fr; } }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { margin: 0; font: 400 13px/15.6px var(--sans); border: 1px solid var(--line2); padding: 8px 12px; cursor: pointer; background: transparent; color: #fff; transition: all .2s; }
.seg label:hover { border-color: var(--accent); }
.seg input:checked + label { background: var(--accent); color: #000; border-color: var(--accent); }
.seg input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 3px; width: 16px; height: 16px; }
details.more { border-top: 1px solid var(--rule); padding-top: 12px; margin-top: 8px; }
details.more summary { cursor: pointer; font: 500 13px var(--sans); color: var(--accent); padding: 4px 0 12px; }

/* Buttons: square, ice blue, star glyph */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 500 13px/15.6px var(--sans); text-transform: uppercase; letter-spacing: .025em; padding: 12px 20px; border-radius: 0; border: 1px solid var(--accent); background: var(--accent); color: #000; cursor: pointer; text-decoration: none; min-height: 44px; transition: background .2s, color .2s; }
.btn::before { content: "✦"; font-size: 16px; line-height: 1; letter-spacing: 0; }
.btn:hover { background: var(--accent-hi); color: #000; border-color: var(--accent-hi); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost::before { content: none; }
.btn-ghost:hover { background: rgba(175,221,255,.1); color: var(--accent); }
.btn-block { width: 100%; }
button { font-family: var(--sans); }

/* Results */
.result-head { font: 400 13px/15.6px var(--sans); color: var(--slate); margin: 0 0 8px; }
.figure { font: 400 clamp(36px, 5vw, 56px)/1 var(--display); letter-spacing: -.03em; margin: 0 0 8px; color: #fff; }
.figure.save { color: var(--accent); }
.figure.pay { color: var(--margin); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.compare .cell { padding: 14px 0; background: transparent; border: 0; }
.compare .cell + .cell { border-left: 1px solid var(--rule); padding-left: 18px; }
.compare .cell.win .v { color: var(--accent); }
.compare .cell.win .k::after { content: "  [ LOWER ]"; color: var(--accent); }
.compare .k { font-size: 12px; color: var(--slate); }
.compare .v { font: 400 24px/1.2 var(--display); letter-spacing: -.02em; }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th { font: 400 12px/1.3 var(--sans); color: var(--slate); }
.ledger th, .ledger td { text-align: left; padding: 9px 6px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ledger td.num, .ledger th.num { text-align: right; white-space: nowrap; }
.ledger tr.total td { font-weight: 600; border-top: 1px solid var(--accent); border-bottom: 1px solid var(--accent); color: var(--accent); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bar { height: 6px; background: rgba(255,255,255,.08); overflow: hidden; min-width: 80px; }
.bar span { display: block; height: 100%; background: var(--accent); transition: width .6s var(--ease-out), background .3s; }
.note { font-size: 13px; color: var(--ink-soft); background: transparent; border-left: 1px solid var(--accent); padding: 4px 0 4px 14px; }

/* Tool page layout */
.tool { padding: 0 0 56px; }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.tool-grid .result-col { position: sticky; top: 20px; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: 1fr; gap: 32px; } .tool-grid .result-col { position: static; } }

/* Tool list */
.tools { padding: 56px 0; }
.tool-list { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 24px; border-top: 1px solid var(--line2); }
@media (max-width: 760px) { .tool-list { grid-template-columns: 1fr; } }
.tool-item { display: block; padding: 20px 8px 20px 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.tool-list .tool-item:nth-child(odd) { padding-right: 28px; }
@media (min-width: 761px) { .tool-list .tool-item:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--rule); } }
.tool-item h3 { margin-bottom: 4px; }
.tool-item p { margin: 0; color: var(--slate); font-size: 14px; }
.tool-item:hover h3 { color: var(--accent); }
.tool-item .soon { font-size: 12px; color: var(--slate); }

/* Sections */
.section { padding: 64px 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 0; list-style: none; counter-reset: s; margin: 24px 0 0; }
.steps li { counter-increment: s; border-top: 1px solid var(--line2); padding-top: 14px; color: var(--ink-soft); }
.steps li::before { content: "0" counter(s) "."; font: 400 13px/1 var(--sans); color: var(--accent); display: block; margin-bottom: 10px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.plan-cta { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 760px) { .plan-cta { grid-template-columns: 1fr; } }
.faq details { border-bottom: 1px solid var(--rule); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq summary::marker { color: var(--accent); }
.faq p { margin: 10px 0 0; color: var(--ink-soft); }

/* Save box */
.save-box { margin-top: 24px; border-top: 1px dashed var(--line2); padding-top: 20px; }
.save-box h3 { font-size: 18px; }
.save-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 520px) { .save-form { grid-template-columns: 1fr; } }
.save-msg { font-size: 13px; margin-top: 8px; }
.save-msg.ok { color: var(--accent); }
.save-msg.err { color: var(--margin); }
.hp { position: absolute; left: -9999px; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding: 32px 0 35px; font: 400 13px/1.6 var(--sans); color: var(--slate); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { color: var(--accent); }
.disclaimer { font-size: 12px; color: var(--slate); margin-top: 16px; }

/* Stack wide comparison table on small screens */
@media (max-width: 600px) {
  .ledger.stack thead { display: none; }
  .ledger.stack, .ledger.stack tbody, .ledger.stack tr, .ledger.stack td { display: block; width: 100%; }
  .ledger.stack tr { border-bottom: 1px solid var(--rule); padding: 10px 0; }
  .ledger.stack td { border: 0; padding: 3px 0; text-align: left; }
  .ledger.stack td.num { text-align: left; }
  .ledger.stack td[data-k]::before { content: attr(data-k) ": "; color: var(--slate); font-size: 12px; }
  .ledger.stack tr.total td:empty { display: none; }
}
.field label.check { font-weight: 400; display: flex; }

/* Page header band: big display heading on the grid */
.page-band { padding: 72px 0 56px; margin-bottom: 40px; border-bottom: 1px solid var(--rule); }
@media (max-width: 767px) { .page-band { padding: 48px 0 36px; } }
.page-band h1 { max-width: 16ch; margin-bottom: 18px; animation: fadeUp .9s .4s var(--ease-out) both; }
.page-band .lead { margin: 0; max-width: 60ch; animation: fadeUp .9s .55s var(--ease-out) both; }
.crumbs { font: 400 13px/15.6px var(--sans); color: var(--slate); margin-bottom: 22px; animation: slideL .8s .2s var(--ease-out) both; }
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.tool-grid .result-col .sheet, .tool > .wrap > .sheet { animation: slideR .8s .6s var(--ease-out) both; }
.figure.bump { animation: fadeIn .35s ease-out; }

/* Crawlable explainer and related tools */
.how { padding: 56px 0 8px; }
.how h2 { font-size: clamp(24px, 3vw, 34px); }
.how h3 { margin-top: 28px; }
.how .ledger { margin-top: 8px; }
.how p, .how li { color: var(--ink-soft); }
.related { padding: 24px 0 24px; }
.related h2 { font-size: 22px; }
.rel-list { display: flex; flex-wrap: wrap; gap: 8px; }
.rel { display: inline-flex; gap: 6px; padding: 8px 12px; border: 1px solid var(--line2); text-decoration: none; font: 400 13px/15.6px var(--sans); color: #fff; }

.rel:hover { border-color: var(--accent); color: var(--accent); }

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

/* ---------- Motion layer (assets/motion.js); nothing here applies with reduced motion ---------- */
.mo-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); z-index: 100; pointer-events: none; box-shadow: 0 0 12px rgba(175,221,255,.6); }
.mo-glow { position: absolute; left: 0; top: 0; width: 600px; height: 600px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(175,221,255,.07), rgba(175,221,255,.025) 55%, transparent); will-change: transform; }
.gridbg i.v em { position: absolute; left: 0; top: -120px; width: 1px; height: 120px; background: linear-gradient(to bottom, transparent, rgba(175,221,255,.55), transparent); animation: mo-pulse 9s linear infinite; }
@keyframes mo-pulse { 0% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 70% { opacity: 1; } 100% { transform: translateY(calc(100vh + 120px)); opacity: 0; } }
.has-motion .mo-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.has-motion .mo-w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease-out); }
.has-motion .mo-in .mo-w > span, .has-motion .page-band h1 .mo-w > span { transform: none; }
.has-motion .page-band h1 { animation: none; }
.has-motion .page-band h1 .mo-w > span { animation: mo-rise .9s var(--ease-out) both; animation-delay: inherit; }
@keyframes mo-rise { from { transform: translateY(105%); } to { transform: none; } }
.has-motion .mo-r { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out) var(--d, 0ms), transform .8s var(--ease-out) var(--d, 0ms); }
.has-motion .mo-r.mo-in { opacity: 1; transform: none; }
.has-motion .page-band h1.mo-r { opacity: 1; transform: none; }
.mo-row td { animation: mo-rowflash 1.1s var(--ease-out) var(--d, 0ms) both; }
@keyframes mo-rowflash { 0% { background: rgba(175,221,255,.12); box-shadow: inset 2px 0 0 var(--accent); } 100% { background: transparent; box-shadow: inset 0 0 0 transparent; } }
.has-motion .btn { transition: background .2s, color .2s, transform .35s var(--ease-out); }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-io); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .mo-progress, .mo-glow, .gridbg i.v em { display: none; } }

/* Country suggestion bar */
.geo-bar { position: fixed; left: 50%; bottom: 20px; z-index: 90; transform: translate(-50%, 140%); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  max-width: calc(100% - 32px); padding: 12px 14px 12px 16px; background: #000; border: 1px solid var(--accent); font: 400 13px/1.4 var(--sans); color: #fff;
  box-shadow: 0 20px 60px -20px rgba(175,221,255,.35); transition: transform .6s var(--ease-out), opacity .4s; }
.geo-bar.in { transform: translate(-50%, 0); }
.geo-bar.out { opacity: 0; transform: translate(-50%, 40%); }
.geo-bar a { color: #000; background: var(--accent); padding: 5px 9px; text-decoration: none; font-size: 12px; letter-spacing: .02em; }
.geo-bar a.geo-alt { background: transparent; color: var(--accent); border: 1px solid var(--line2); }
.geo-bar a:hover { background: var(--accent-hi); color: #000; }
.geo-x { background: none; border: 1px solid var(--line2); color: #fff; padding: 5px 9px; font: 400 12px/1.2 var(--sans); cursor: pointer; }
.geo-x:hover { border-color: var(--accent); color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .geo-bar { transition: none; } }
html, body { overflow-x: clip; }

.note:empty, #r-sub:empty { display: none; }
input:focus-visible, select:focus-visible { box-shadow: 0 1px 0 0 var(--accent) !important; }
textarea:focus-visible { outline: 1px solid var(--accent); outline-offset: 0; }

/* WhatsApp button */
.wa-btn{position:fixed;right:20px;bottom:20px;z-index:60;display:flex;align-items:center;gap:8px;padding:12px 16px;background:#AFDDFF;color:#000;font-weight:700;font-size:14px;text-decoration:none;
  clip-path:polygon(0 0,calc(100% - 10px) 0,100% 10px,100% 100%,10px 100%,0 calc(100% - 10px));box-shadow:0 0 0 1px rgba(175,221,255,.4);transition:background .2s}
.wa-btn:hover{background:#fff;color:#000}
.wa-btn:focus-visible{outline:2px solid #fff;outline-offset:3px}
@media (max-width:600px){.wa-btn{right:14px;bottom:14px;padding:12px}.wa-btn span{display:none}}
@media print{.wa-btn{display:none}}

.check input[type=checkbox]{flex:none}

/* Mobile result bar on calculators */
.rbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: none; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #0b1622; border: 0; border-top: 1px solid rgba(175,221,255,.35); color: #fff; text-align: left; font: inherit; cursor: pointer; }
.rbar.on { display: flex; }
.rbar-h { flex: 1; font-size: 12px; color: #b9cbd9; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rbar-f { font-size: 20px; font-weight: 600; color: #AFDDFF; white-space: nowrap; }
.rbar-go { font-size: 12px; color: #fff; border-bottom: 1px solid #AFDDFF; white-space: nowrap; }
.rbar:focus-visible { outline: 2px solid #AFDDFF; outline-offset: -4px; }
body.rbar-on .wa-btn { bottom: 76px; }
@media print { .rbar { display: none !important; } }

.wa-btn.wa-hide { opacity: 0; pointer-events: none; transform: translateY(8px); }
.wa-btn { transition: background .2s, opacity .25s, transform .25s; }
@media (prefers-reduced-motion: reduce) { .wa-btn { transition: none; } }

.wa-btn span { display: none; }
.wa-btn { padding: 11px; }
body.rbar-on { padding-bottom: 64px; }

/* Share row under calculator results */
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule, rgba(255,255,255,.12)); }
.share-l { font-size: 13px; color: var(--slate, #8aa0b2); margin-right: 4px; }
.share-b { font: 400 13px/1 var(--sans, inherit); color: var(--accent, #AFDDFF); background: transparent; border: 1px solid rgba(175,221,255,.4); padding: 8px 12px; cursor: pointer; text-decoration: none; }
.share-b:hover { border-color: var(--accent, #AFDDFF); color: #fff; }
.share-b:focus-visible { outline: 2px solid var(--accent, #AFDDFF); outline-offset: 2px; }
@media print { .share-row { display: none; } }

/* Guide links on calculators */
.guides { margin: 40px 0 8px; }
.guides h2 { font-size: 20px; margin: 0 0 12px; }
.guides ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule, rgba(255,255,255,.12)); }
.guides li { border-bottom: 1px solid var(--rule, rgba(255,255,255,.12)); }
.guides a { display: block; padding: 14px 0; color: var(--accent, #AFDDFF); text-decoration: none; font-size: 16px; }
.guides a:hover { color: #fff; text-decoration: underline; }
/* Worked example on calculator pages */
.worked { margin: 48px 0 8px; max-width: 760px; }
.worked h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); }
.worked > p { color: var(--ink-soft); margin: 0 0 14px; }
.worked .ledger td.num { white-space: nowrap; }
/* CA Next Door pages */
.nd .nd-hero { margin-top: 8px; }
.nd h2 { font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 14px; }
.nd-sec { margin: 56px 0 0; max-width: 980px; }
.nd-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.nd-list li { padding: 11px 0 11px 22px; border-bottom: 1px solid var(--rule); position: relative; color: var(--ink-soft); line-height: 1.5; }
.nd-list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 8px; background: var(--accent); }
.nd-steps { padding-left: 22px; margin: 0 0 18px; }
.nd-steps li { margin: 0 0 12px; line-height: 1.55; color: var(--ink-soft); }
.nd-steps li::marker { color: var(--accent); font-weight: 600; }
.nd-steps b { color: #fff; font-weight: 500; }
.nd-price { margin: 28px 0 0; padding: 16px 18px; border: 1px solid var(--accent); font-size: 15px; line-height: 1.6; }
.nd-price b { font: 300 30px/1.1 var(--display); color: #fff; }
.nd-form .tag { display: inline-block; }
.nd-table .grp th { text-align: left; font: 500 12px/1.4 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--accent); padding-top: 22px; }
.nd-table td a { white-space: nowrap; }
.nd-menu td:nth-child(3) { white-space: nowrap; }
.nd-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); border-left: 1px solid var(--rule); }
.nd-quotes figure { margin: 0; padding: 20px 22px; border: 1px solid var(--rule); border-left: 0; }
.nd-quotes blockquote { margin: 0 0 14px; font: 300 17px/1.45 var(--display); color: #fff; }
.nd-quotes figcaption { font-size: 13px; color: var(--slate); }
.nd-upsell { padding: 22px 24px; border: 1px solid var(--line2); }
.nd-cta { margin: 40px 0 0; }
@media (max-width: 900px) { .nd .tool-grid { grid-template-columns: 1fr; } .nd .result-col { position: static; } }
/* Bars linking tools to the business services */
.biz-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 16px 20px; border: 1px solid var(--accent); margin: 32px 0 0; }
.biz-bar p { margin: 0; color: #fff; }
.biz-bar a.btn { margin-left: auto; }
.home-bar { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--line2); border-bottom: 1px solid var(--line2); background: #000; }
.home-bar a { display: block; padding: 18px 24px; text-decoration: none; color: #fff; border-right: 1px solid var(--rule); }
.home-bar a:last-child { border-right: 0; }
.home-bar a b { display: block; font: 400 17px/1.3 var(--display); }
.home-bar a span { font-size: 13px; color: var(--slate); }
.home-bar a:hover b { color: var(--accent); }
/* Five-item header: drop the "Next deadline" chip and year label below 1500px */
@media (max-width: 1499px) { .status > span.gap, .status > .chip, .status .ty { display: none; } .nav { gap: 24px; margin-left: 28px; } }
@media (max-width: 1159px) { .nav { gap: 16px; margin-left: 20px; } .nav a { font-size: 12px; } }
.nav a { white-space: nowrap; }
@media (max-width: 1199px) { .brand > span { font-size: 16px; } .status a { margin-left: 8px; } }
@media (max-width: 900px) { .nd .nd-hero > .result-col { order: -1; } .nd .nd-hero { display: flex; flex-direction: column; gap: 40px; } }
.nd-guide { max-width: 860px; }
.nd-guide .nd-sec p { color: var(--ink-soft); line-height: 1.65; max-width: 72ch; }
.nd-quick td:first-child { width: 34%; color: var(--slate); }
.nd-links li::before { display: none; }
.nd-links li { padding-left: 0; }
.nd-links a { text-decoration: none; }
.nd-links a:hover { color: var(--accent); }
/* Long figures wrap instead of widening the page on phones */
.mfig > div { min-width: 0; }
.mfig b, .mfig span { overflow-wrap: anywhere; }
@media (max-width: 520px) { .mfig b { font-size: clamp(22px, 7vw, 34px); } }
@media (max-width: 520px) { .earn .box { flex-wrap: wrap; row-gap: 0; } .earn .box .yr { flex-basis: 100%; text-align: right; } }
/* Expenses box in the business hero */
.earn .exp { margin-top: 22px; }
.earn .exp .box > span { font-size: 20px; }
.earn .exp input { font-size: 30px !important; width: 9ch; }
@media (max-width: 520px) { .earn .exp input { font-size: 26px !important; width: 8.5ch; } .earn .exp .box .yr { flex-basis: auto; } }
.earn .exp .box > span.yr { font: 400 13px/15.6px var(--sans); color: var(--slate); }
.ents{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin:10px 0 0}
.ents>span{font-size:11px;letter-spacing:.08em;opacity:.7;margin-right:4px}
.ents button{font:inherit;font-size:13px;padding:6px 11px;border:1px solid rgba(255,255,255,.3);background:transparent;color:inherit;border-radius:3px;cursor:pointer;white-space:nowrap}
.ents button[aria-pressed="true"]{border-color:var(--accent);color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent)}
.ents button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.nudge{padding:26px 0;border-top:1px solid rgba(255,255,255,.15);border-bottom:1px solid rgba(255,255,255,.15);background:rgba(175,221,255,.04)}
.nudge .wrap>*{max-width:760px}
.nudge .cmp{margin:0 0 14px;font-size:17px;line-height:1.5}
.nudge .row{display:flex;flex-wrap:wrap;gap:10px 16px;align-items:center}
.nudge .h{margin:0;flex:1 1 260px;font-size:14px;opacity:.85}
.nudge .mail{margin-top:12px;font-size:14px}
.nudge .mail summary{cursor:pointer;color:var(--accent);display:inline-block}
.nudge .mail form{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}
.nudge .mail input[type=email]{flex:1 1 220px;min-width:0;padding:9px 10px;background:transparent;border:1px solid rgba(255,255,255,.3);color:inherit;font:inherit;border-radius:3px}
.nudge .mail .check{flex:1 1 100%;font-size:13px}
.nudge[hidden]{display:none}
.ck{position:fixed;left:16px;right:16px;bottom:16px;z-index:60;max-width:560px;background:#0b0f14;border:1px solid var(--accent);padding:14px 16px;display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;font-size:14px}
.ck[hidden]{display:none}.ck p{margin:0;flex:1 1 100%}.ck .l{background:none;border:0;color:var(--accent);font:inherit;cursor:pointer;text-decoration:underline}
/* Business mode on wide screens: the type row and expenses take more room, so the floating figures give way to a
   result panel on the right instead of overlapping the inputs */
@media (min-width: 1200px) and (min-height: 740px) {
  html[data-mode="biz"] .hx:has(.ents) .nodes { display: none; }
  html[data-mode="biz"] .hx:has(.ents) .mfig { display: grid; position: absolute; right: var(--gut); top: calc(9% + 40px); width: min(480px, 36vw); max-width: none; background: rgba(0,0,0,.55); }
  html[data-mode="biz"] .hx:has(.ents) .mfig b { font-size: 30px; }
  html[data-mode="biz"] .hx:has(.ents) .mfig span { font-size: 12px; }
}
/* The bottom row of the hero spans the full width on desktop; let clicks pass through its empty part to the inputs */
@media (min-width: 1200px) and (min-height: 740px) { .hx .brow { pointer-events: none; } .hx .brow > * { pointer-events: auto; } .hx .earn { z-index: 2; } }
.exp.need label{color:#ffd27a}
.exp.need .box{border-bottom-color:#ffd27a;animation:needPulse 1.6s ease-in-out 2}
.exp.need input::placeholder{color:rgba(255,210,122,.75);font-size:.6em}
@keyframes needPulse{50%{box-shadow:0 2px 0 0 rgba(255,210,122,.6)}}
@media (prefers-reduced-motion: reduce){.exp.need .box{animation:none}}
/* Virtual CFO page: definition box and comparison table */
.nd-def{margin:0 0 26px;padding:16px 18px;border-left:3px solid var(--accent);background:rgba(175,221,255,.05);line-height:1.6}
.nd-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.nd-cmp{width:100%;min-width:560px;border-collapse:collapse}
.nd-cmp th,.nd-cmp td{padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.12);text-align:left;vertical-align:top;font-size:14px}
.nd-cmp thead th{color:var(--accent);font-weight:600}
.nd-cmp tbody th{font-weight:600;width:26%}
.nd-cmp td:nth-child(2){color:#fff;font-weight:600}
