/* SPDX-License-Identifier: MIT */
/* The page for banks, insurers and asset managers, over site.css: the vault drawn beside the top, the path a request
   takes to the models the firm contracted, the price per person as the firm grows, the DORA register entry filled
   in, each reviewer's answers with their status, the trust pack and the address to share. Logical properties only;
   classes start with fin-. */

/* The top's empty half, drawn in marker (page.js's VAULT): a vault's door, its glint and tilde in sunflower. On a
   wide window only. */
.fin-vault { display: none; align-self: center; inline-size: 100%; block-size: auto; aspect-ratio: 360 / 300; overflow: visible; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.fin-vault path { vector-effect: non-scaling-stroke; }
.fin-vault .is-felt { stroke: var(--felt-line); stroke-width: 3.2; }
.fin-vault .is-tilde { stroke: var(--felt); stroke-width: 4.5; }
:dir(rtl) .fin-vault { scale: -1 1; }
@media (min-width: 64rem) {
  .fin-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: clamp(2rem, 5vw, 4rem); }
  .fin-vault { display: block; }
}

/* The AI you approved: the path a request takes, the arrows by hand and our servers struck through */
.fin-path { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--site-pane); background: var(--room); }
.fin-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 0.75rem; align-items: stretch; }
.fin-sides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
.fin-node { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.9rem 1rem; border: 1.5px solid var(--ink); border-radius: 0.9rem; min-inline-size: 0; }
.fin-node b { font-weight: 600; }
.fin-node small { color: var(--ink-soft); font-size: 0.8125rem; line-height: 1.4; }
.fin-sides .fin-node { border-style: dashed; border-color: var(--line-strong); }
.fin-sides .fin-node.is-none { color: var(--ink-soft); }
.fin-arrow { align-self: center; display: flex; }
.fin-arrow .felt-across { inline-size: 3rem; block-size: 2rem; }
.fin-path figcaption { color: var(--ink-soft); font-size: 0.875rem; }

/* One price for the whole firm: the same a year at every size, less per person as it grows */
.fin-price { inline-size: 100%; max-inline-size: 44rem; border-collapse: collapse; font-size: 0.95rem; }
.fin-price caption { padding-block-end: 0.5rem; text-align: start; color: var(--ink-soft); font-size: 0.875rem; }
.fin-price :is(th, td) { padding-block: 0.6rem; padding-inline: 1.25rem 0; border-block-start: 1px solid var(--line); text-align: end; }
.fin-price :is(th, td):first-child { padding-inline-start: 0; text-align: start; }
.fin-price thead th { border-block-start: 0; color: var(--ink-soft); font-size: 0.8125rem; font-weight: 600; }
.fin-price tbody th { font-weight: 400; font-variant-numeric: tabular-nums; }
.fin-price tbody td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.fin-price tbody td:last-child { font-weight: 600; }

/* The register entry, as a record on a sheet: each field's name above its value, the one that matters circled */
.fin-entry { display: flex; flex-direction: column; gap: 0.25rem; max-inline-size: 44rem; padding: 1.25rem 1.5rem; border: 1.5px solid var(--ink); border-radius: 0.9rem; background: var(--room); }
.fin-entry figcaption { padding-block-end: 0.5rem; color: var(--ink-soft); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; }
.fin-entry dl > div { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 0.25rem 1.5rem; padding-block: 0.7rem; border-block-start: 1px dashed var(--line-strong); }
.fin-entry dt { color: var(--ink-soft); font-size: 0.875rem; }
.fin-entry dd { margin: 0; font-weight: 600; }
.fin-entry .felt.is-circle { padding-inline: 0.2rem; }

/* What each reviewer will ask: each group's answers with their status, as the page for IT shows them */
.fin-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
.fin-group { display: flex; flex-direction: column; gap: 0.75rem; min-inline-size: 0; }
.fin-answers { border: 1px solid var(--line); border-radius: var(--site-pane); background: var(--room); overflow: hidden; }
.fin-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 1rem; align-items: baseline; padding: 1rem 1.25rem; border-block-start: 1px solid var(--line); }
.fin-row:first-child { border-block-start: 0; }
.fin-row dt { font-weight: 600; }
.fin-row dd { margin: 0; color: var(--ink-soft); }
.fin-row dd:not(:last-child) { grid-column: 1 / -1; grid-row: 2; }
.fin-row dd:last-child { grid-column: 2; grid-row: 1; }
.fin-status { white-space: nowrap; padding: 0.15rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.fin-status.is-built { background: var(--site-fill); color: var(--site-on-fill); }
.fin-status.is-key { box-shadow: inset 0 0 0 1.5px var(--flame); color: var(--ink); }
.fin-status.is-design { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.fin-status.is-not { border: 1px dashed var(--line-strong); color: var(--ink-soft); }

/* The trust pack */
.fin-docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.fin-docs a { display: flex; flex-direction: column; gap: 0.3rem; block-size: 100%; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--site-pane); background: var(--site-side); color: var(--ink); text-decoration: none; }
.fin-docs a:hover h4 { text-decoration: underline; }
.fin-docs h4 { font-size: inherit; font-weight: 600; }
.fin-docs span { color: var(--ink-soft); font-size: 0.875rem; }

/* Share it with the risk committee */
.fin-address { position: relative; max-inline-size: 100%; padding: 0.6rem 1rem; border-radius: 0.75rem; background: var(--site-side); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; user-select: all; direction: ltr; }
.fin-address .felt-point { position: absolute; inset-inline-end: calc(100% + 0.75rem); inset-block-start: -1.5rem; inline-size: 5rem; block-size: 3.3rem; }
.site-end .site-cta { justify-content: center; }

/* A tablet, a phone, or any narrow window: one column */
@media (max-width: 60rem) {
  .fin-groups { grid-template-columns: minmax(0, 1fr); }
  .fin-docs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 52rem) {
  .fin-flow, .fin-sides, .fin-docs { grid-template-columns: minmax(0, 1fr); }
  .fin-arrow { justify-self: center; transform: rotate(90deg); }
  .fin-entry dl > div { grid-template-columns: minmax(0, 1fr); }
  .fin-address .felt-point { display: none; }
}
@media (forced-colors: active) {
  .fin-vault { display: none; }
  .fin-status { border: 1px solid CanvasText; }
  .fin-node, .fin-entry { border-color: CanvasText; }
  .fin-sides .fin-node.is-none b { text-decoration: line-through; }
}
