/* Fintiqo - trading-desk light: dense white panes on lavender, mono labels, indigo ink. */
:root {
  --white: #FFFFFF;
  --ink: #0B1320;
  --ink-2: #39415A;
  --indigo: #4338CA;
  --indigo-deep: #332A9E;
  --green: #16A34A;
  --green-text: #0E7435;
  --red: #DC2626;
  --lav: #EEF0FF;
  --line: #C9CDF0;
  --line-soft: #E1E4F8;
  --head: "Onest", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "Martian Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-stretch: 80%;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  background-color: var(--lav);
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 28px 28px;
}
a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--indigo-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--head); font-stretch: 100%; font-weight: 700; letter-spacing: -.02em; margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 5.2vw, 3.5rem); line-height: 1.04; }
h2 { font-size: 1.4rem; line-height: 1.2; }
h3 { font-size: 1.1rem; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.jump { position: absolute; left: 8px; top: -70px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; }
.jump:focus { top: 8px; color: #fff; }

/* ---------- top bar with sliding tab indicator ---------- */
.deskbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: relative; z-index: 10;
}
.deskbar-in {
  max-width: 1320px; margin: 0 auto; padding: 0 12px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 58px;
  color: var(--ink); text-decoration: none;
  font-family: var(--head); font-stretch: 100%; font-weight: 800; font-size: 1.35rem; letter-spacing: -.03em;
}
.wordmark svg { width: 28px; height: 28px; flex: none; }
.wordmark:hover { color: var(--indigo); }
.tabs-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; min-width: 44px; padding: 0 14px;
  background: var(--lav); color: var(--ink);
  border: 1px solid var(--line); border-radius: 4px;
  font: inherit; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer;
}
.tabs-btn i { display: block; width: 16px; height: 2px; background: var(--ink); box-shadow: 0 5px 0 var(--ink), 0 -5px 0 var(--ink); }
.tabs-btn[aria-expanded="true"] { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.tabs-btn[aria-expanded="true"] i { background: #fff; box-shadow: 0 5px 0 #fff, 0 -5px 0 #fff; }
.tabs { flex: 1 0 100%; min-width: 0; }
.tabs ul {
  position: relative;
  list-style: none; margin: 0; padding: 6px 0 12px;
  display: flex; flex-direction: column;
}
.tabs a {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  min-height: 46px; padding: 0 14px;
  color: var(--ink-2); text-decoration: none;
  font-size: .9rem; letter-spacing: .02em;
  transition: color .2s;
}
.tabs a:hover, .tabs a[aria-current="page"] { color: var(--indigo); }
.tabs a[aria-current="page"] { font-weight: 600; }
.tabs-ink {
  position: absolute; left: 0; top: 0; z-index: 0;
  width: 0; height: 0;
  background: var(--lav);
  border-left: 3px solid var(--indigo);
  border-radius: 3px;
  pointer-events: none;
  opacity: 0;
  transition: transform .28s cubic-bezier(.3, .8, .3, 1), width .28s cubic-bezier(.3, .8, .3, 1), height .28s, opacity .2s;
}
.tabs-ink.is-set { opacity: 1; }
html.js .tabs ul { display: none; }
html.js .tabs ul.is-open { display: flex; }

@media (min-width: 940px) {
  .deskbar-in { flex-wrap: nowrap; padding: 0 16px; }
  .tabs-btn { display: none; }
  .tabs { flex: 0 1 auto; }
  .tabs ul, html.js .tabs ul { display: flex; flex-direction: row; padding: 0; }
  .tabs a { min-height: 58px; padding: 0 16px; }
  .tabs-ink { border-left: 0; border-bottom: 3px solid var(--indigo); border-radius: 3px 3px 0 0; }
}

/* ---------- the grid of panes ---------- */
.grid {
  max-width: 1320px; margin: 0 auto; padding: 12px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px;
}
.pane {
  min-width: 0;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.pane-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 14px;
  background: var(--lav);
  border-bottom: 1px solid var(--line);
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.pane-bar span:first-child::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px;
  background: var(--indigo); border-radius: 1px;
}
.pane-bar .up::before { background: var(--green) !important; }
.pane-bar .down::before { background: var(--red) !important; }
.pane-body { padding: 20px 16px 22px; flex: 1 1 auto; }
.pane-body--tight { padding: 14px; }
.pane-body > h2 { margin-bottom: 12px; }
.pane-body > h1 { margin-bottom: 18px; }
.lede { font-size: 1.05rem; max-width: 62ch; }
.muted { color: var(--ink-2); }
.cap { margin: 10px 0 0; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 18px;
  background: var(--indigo); color: #fff;
  border: 1px solid var(--indigo); border-radius: 4px;
  font: inherit; font-size: .9rem; letter-spacing: .04em; text-decoration: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn:hover { background: var(--indigo-deep); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn--line { background: var(--white); color: var(--indigo); }
.btn--line:hover { background: var(--lav); color: var(--indigo-deep); }

.scope {
  margin-top: 20px; padding: 12px 14px;
  background: var(--lav);
  border: 1px solid var(--line); border-left: 4px solid var(--indigo);
  border-radius: 3px;
}
.scope b { font-family: var(--head); font-stretch: 100%; }

/* decorative charts: shapes only */
.viz { display: block; width: 100%; max-width: 100%; height: auto; }
.viz-wrap { background: linear-gradient(var(--line-soft) 1px, transparent 1px) 0 0 / 100% 25%; border: 1px solid var(--line-soft); border-radius: 3px; }
.heat { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; margin-top: 12px; }
.heat i { display: block; aspect-ratio: 1; background: var(--lav); border-radius: 2px; }
.heat i:nth-child(3n) { background: #D6D9FB; }
.heat i:nth-child(5n) { background: #A9A4EC; }
.heat i:nth-child(7n) { background: var(--indigo); }
.heat i:nth-child(11n) { background: #BBE5CB; }
.heat i:nth-child(13n) { background: #F6C4C4; }

/* link panes (home) */
.pane--link .pane-body { display: flex; flex-direction: column; }
.pane--link .glyph { width: 100%; height: 64px; margin-bottom: 14px; }
.pane--link p { color: var(--ink-2); }
.go { margin-top: auto; padding-top: 10px; font-weight: 600; }
.go::after { content: " ->"; white-space: pre; }

/* ladder rows (steps) */
.ladder { list-style: none; margin: 0; padding: 0; counter-reset: rung; }
.ladder li {
  counter-increment: rung;
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
}
.ladder li:first-child { border-top: 0; padding-top: 0; }
.ladder li::before {
  content: counter(rung, decimal-leading-zero);
  display: grid; place-items: center; height: 30px;
  background: var(--lav); border: 1px solid var(--line); border-radius: 3px;
  color: var(--indigo); font-size: .85rem; font-weight: 600;
}
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 0 0 10px 24px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; border: 2px solid var(--indigo); border-radius: 2px; }
.ticks li:last-child { padding-bottom: 0; }

/* key/value rows */
.kv { margin: 0; }
.kv > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.kv > div:first-child { border-top: 0; padding-top: 0; }
.kv dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.kv dd { margin: 0; overflow-wrap: anywhere; }

/* spec cards inside a pane */
.cells { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); }
.cell { background: var(--white); padding: 16px; min-width: 0; }
.cell h3 { margin-bottom: 6px; }
.cell .tag { display: inline-block; margin-bottom: 8px; padding: 1px 8px; background: var(--lav); border: 1px solid var(--line); border-radius: 3px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--indigo-deep); }

/* flow diagram (data integration) */
.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.flow li { position: relative; min-width: 0; padding: 14px; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--indigo); border-radius: 4px; }
.flow li:nth-child(3) { border-top-color: var(--green); }
.flow li + li::before {
  content: ""; position: absolute; left: 50%; top: -24px; width: 2px; height: 18px; background: var(--indigo);
}
.flow li + li::after {
  content: ""; position: absolute; left: 50%; top: -14px; width: 8px; height: 8px; margin-left: -3px;
  border-right: 2px solid var(--indigo); border-bottom: 2px solid var(--indigo); transform: rotate(45deg);
}
.flow h3 { margin-bottom: 4px; }

/* mock dashboard (reporting) - shapes only */
.mock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mock > div { border: 1px solid var(--line); border-radius: 4px; padding: 10px; background: var(--white); min-width: 0; }
.mock .tile b { display: block; height: 8px; width: 55%; background: var(--line); border-radius: 2px; margin-bottom: 10px; }
.mock .tile u { display: block; height: 20px; width: 78%; background: var(--ink); border-radius: 2px; }
.mock .tile s { display: block; height: 6px; width: 40%; margin-top: 10px; background: var(--green); border-radius: 2px; }
.mock .tile:nth-child(2) s { background: var(--red); width: 28%; }
.mock .wide { grid-column: 1 / -1; }
.mock .rows i { display: block; height: 9px; margin: 9px 0; background: var(--lav); border-radius: 2px; }
.mock .rows i:nth-child(odd) { width: 86%; }
.mock .rows i:first-child { background: var(--line); width: 100%; }

/* ---------- calculators ---------- */
.calc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; background: var(--line); }
.calc { background: var(--white); padding: 20px 16px 22px; min-width: 0; }
.calc h3 { font-size: 1.2rem; margin-bottom: 4px; }
.calc > p { color: var(--ink-2); margin-bottom: 16px; }
.inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.inp label, .lbl { display: block; margin-bottom: 4px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.inp input {
  width: 100%; min-height: 46px;
  padding: 8px 10px;
  font: inherit; font-size: 1.05rem; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line); border-bottom: 2px solid var(--ink);
  border-radius: 3px;
}
.inp input:focus { border-color: var(--indigo); outline: 3px solid rgba(67, 56, 202, .3); outline-offset: 0; }
.modes { border: 0; margin: 14px 0 0; padding: 0; min-width: 0; }
.modes legend { padding: 0; }
.seg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); font-size: .9rem; }
.seg input:checked + span { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--indigo); outline-offset: 2px; }
.seg label:hover span { border-color: var(--indigo); }
.readout { margin: 16px 0 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.readout > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 12px; border-top: 1px solid var(--line-soft); }
.readout > div:first-child { border-top: 0; }
.readout dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.readout dd { margin: 0; font-size: 1.1rem; font-weight: 600; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.readout .total { background: var(--lav); }
.readout .is-up { color: var(--green-text); }
.readout .is-down { color: var(--red); }
.fine { margin: 12px 0 0; font-size: .85rem; color: var(--ink-2); }

/* ---------- contact form ---------- */
.fld { margin-bottom: 16px; }
.fld label { display: block; margin-bottom: 4px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 46px;
  padding: 9px 10px;
  font: inherit; color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line); border-bottom: 2px solid var(--ink);
  border-radius: 3px;
}
.fld textarea { min-height: 190px; resize: vertical; line-height: 1.6; }
.fld input:focus, .fld select:focus, .fld textarea:focus { border-color: var(--indigo); outline: 3px solid rgba(67, 56, 202, .3); outline-offset: 0; }
.fld.has-error input, .fld.has-error textarea { border-color: var(--red); background: #FEF4F4; }
.fld-msg { margin: 5px 0 0; font-size: .9rem; color: #B91C1C; }
.form-note { margin: 14px 0 0; font-size: .9rem; color: var(--ink-2); }
.form-out { margin: 14px 0 0; padding: 10px 12px; background: var(--lav); border: 1px solid var(--line); border-left: 4px solid var(--indigo); border-radius: 3px; font-size: .95rem; }

/* ---------- status bar footer ---------- */
.statusbar { margin-top: 12px; background: var(--ink); color: #E4E7F5; }
.statusbar a { color: #C9CCFF; }
.statusbar a:hover { color: #fff; }
.statusbar-in { max-width: 1320px; margin: 0 auto; padding: 28px 16px 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.statusbar h2 { font-size: 1.25rem; color: #fff; margin-bottom: 8px; }
.statusbar .lbl { color: #A7AED0; }
.sb-rows { list-style: none; margin: 0; padding: 0; }
.sb-rows li { display: grid; grid-template-columns: minmax(0, 1fr); padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .14); overflow-wrap: anywhere; }
.sb-rows li > span:first-child { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: #A7AED0; }
.sb-links { list-style: none; margin: 0; padding: 0; }
.sb-links a { display: inline-flex; align-items: center; min-height: 40px; }
.sb-tape { grid-column: 1 / -1; margin: 0; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; color: #A7AED0; }

@media (min-width: 620px) {
  .cells { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kv > div { grid-template-columns: 150px minmax(0, 1fr); gap: 12px; }
  .seg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sb-rows li { grid-template-columns: 170px minmax(0, 1fr); gap: 12px; }
}
@media (min-width: 940px) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); padding: 16px; }
  .grid > * { grid-column: 1 / -1; }
  .w3 { grid-column: span 3; }
  .w4 { grid-column: span 4; }
  .w5 { grid-column: span 5; }
  .w6 { grid-column: span 6; }
  .w7 { grid-column: span 7; }
  .w8 { grid-column: span 8; }
  .h2 { grid-row: span 2; }
  .pane-body { padding: 24px 22px 26px; }
  .pane-body--tight { padding: 16px; }
  .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .calc { padding: 24px 22px 26px; }
  .cells--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cells--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
  .flow li + li::before { left: -26px; top: 50%; width: 20px; height: 2px; }
  .flow li + li::after { left: -14px; top: 50%; margin: -4px 0 0; transform: rotate(-45deg); }
  .statusbar-in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) minmax(0, .6fr); gap: 40px; padding: 36px 16px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, .tabs-ink { transition: none !important; }
}
