/* Numen site pages (privacy, security, terms, faq, open banking, contact).
   Same tokens, type and theming as the landing page (index.html). */
:root {
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --bg: #fafaf8;
  --bg2: #f2f2ef;
  --fg: #0b0b0c;
  --soft: rgba(11, 11, 12, 0.66);
  --fg-82: rgba(11, 11, 12, 0.82);
  --line: rgba(11, 11, 12, 0.14);
  --sel: rgba(11, 11, 12, 0.07);
  --inv-bg: #0b0b0c;
  --inv-fg: #fafaf8;
  --green: #00e27a;
  --money: #00e27a;
  --on-green: #0b0b0c;
  --over: #e5484d;
  --blue: #6c97ff;
  --f-head: "Bricolage Grotesque", system-ui, sans-serif;
  --f-sec: "Jost", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, sans-serif;
  --gx: max(56px, calc((100% - 1440px) / 2 + 56px));
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0b0c;
    --bg2: #131315;
    --fg: #fafaf8;
    --soft: rgba(250, 250, 248, 0.66);
    --fg-82: rgba(250, 250, 248, 0.82);
    --line: rgba(250, 250, 248, 0.16);
    --sel: rgba(250, 250, 248, 0.09);
    --inv-bg: #fafaf8;
    --inv-fg: #0b0b0c;
    --green: #00e27a;
    --money: #00e27a;
    --on-green: #0b0b0c;
    --over: #e5484d;
    --blue: #6c97ff;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0b0c;
  --bg2: #131315;
  --fg: #fafaf8;
  --soft: rgba(250, 250, 248, 0.66);
  --fg-82: rgba(250, 250, 248, 0.82);
  --line: rgba(250, 250, 248, 0.16);
  --sel: rgba(250, 250, 248, 0.09);
  --inv-bg: #fafaf8;
  --inv-fg: #0b0b0c;
  --green: #00e27a;
  --money: #00e27a;
  --on-green: #0b0b0c;
  --over: #e5484d;
  --blue: #6c97ff;
  color-scheme: dark;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
a {
  color: inherit;
}
.lnk {
  text-decoration: none;
  transition: opacity 240ms var(--ease);
}
.lnk:hover {
  opacity: 0.5;
}
:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--inv-bg);
  color: var(--inv-fg);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 16px;
}

/* header, as on the landing page */
.hd {
  height: 84px;
  padding: 0 var(--gx);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.nav {
  display: flex;
  gap: 36px;
  font-size: 16px;
  font-weight: 500;
}
.nav a {
  padding: 10px 0;
}
.dgrp {
  display: none;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.js .dgrp {
  display: inline-flex;
}
.dbtn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: transparent;
  color: var(--soft);
  transition:
    background 280ms var(--ease),
    color 280ms var(--ease);
}
.dbtn[aria-pressed="true"] {
  background: var(--inv-bg);
  color: var(--inv-fg);
}

/* page head */
.ph {
  padding: clamp(56px, 8vw, 120px) var(--gx) clamp(48px, 6vw, 88px);
  display: grid;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}
.ph h1 {
  margin: 0;
  font-family: var(--f-sec);
  font-weight: 400;
  font-size: clamp(52px, 8.3vw, 120px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  text-wrap: balance;
  max-width: 12ch;
}
.lede {
  margin: 0;
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--fg-82);
  max-width: 34em;
}
.meta {
  margin: 0;
  font-size: 15px;
  color: var(--soft);
}

/* long documents: contents on the left, text on the right */
.doc {
  padding: clamp(48px, 6vw, 96px) var(--gx) clamp(80px, 10vw, 150px);
  display: grid;
  grid-template-columns: minmax(220px, 3fr) minmax(0, 8fr);
  gap: clamp(40px, 6vw, 104px);
  align-items: start;
}
.toc {
  position: sticky;
  top: 28px;
  max-height: calc(100vh - 56px);
  overflow: auto;
  font-size: 15px;
}
.toc summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  padding: 6px 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.toc summary::-webkit-details-marker {
  display: none;
}
.toc summary svg {
  transition: transform 240ms var(--ease);
}
.toc[open] summary svg {
  transform: rotate(45deg);
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
}
.toc a {
  display: block;
  padding: 6px 0;
  color: var(--soft);
  text-decoration: none;
  line-height: 1.35;
  transition: color 200ms var(--ease);
}
.toc a:hover {
  color: var(--fg);
}
.prose {
  max-width: 720px;
  min-width: 0;
}
.prose h2 {
  font-family: var(--f-sec);
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 64px 0 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
  text-wrap: balance;
}
.prose > h2:first-child {
  margin-top: 0;
}
.prose h2 .n {
  color: var(--soft);
}
.prose h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 8px;
}
.prose p,
.prose li {
  color: var(--fg-82);
}
.prose p {
  margin: 0 0 16px;
}
.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 22px;
}
.prose li {
  margin-bottom: 8px;
}
.prose strong {
  color: var(--fg);
  font-weight: 600;
}
.prose a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 200ms var(--ease);
}
.prose a:hover {
  text-decoration-color: var(--fg);
}
.tw {
  overflow-x: auto;
  margin: 8px 0 24px;
}
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.5;
}
.tbl th {
  text-align: left;
  font-weight: 600;
  color: var(--fg);
  padding: 0 20px 12px 0;
  border-bottom: 1px solid var(--fg);
}
.tbl td {
  padding: 14px 20px 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--fg-82);
  vertical-align: top;
}
.tbl td:first-child {
  color: var(--fg);
  font-weight: 500;
  white-space: nowrap;
}

/* four facts in a row, as in the landing page's security section */
.facts {
  padding: clamp(48px, 6vw, 88px) var(--gx) 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px;
}
.fact {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
}
.fact small {
  display: block;
  font-size: 16px;
  font-weight: 400;
  color: var(--soft);
  margin-top: 10px;
  line-height: 1.5;
}

/* buttons */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: transform 280ms var(--ease);
}
.pill:hover {
  transform: translateY(-2px);
}
.pill-g {
  background: var(--green);
  color: var(--on-green);
}
.pill-o {
  background: transparent;
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* sections on the FAQ, open banking and contact pages */
.sec {
  padding: clamp(72px, 9vw, 150px) var(--gx);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.sec:not(.alt) + .sec:not(.alt) {
  padding-top: 0;
}
.sec.alt {
  background: var(--bg2);
  padding-top: clamp(72px, 9vw, 150px);
}
.sec h2 {
  margin: 0;
  font-family: var(--f-sec);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.sec .side {
  display: grid;
  gap: 24px;
  align-content: start;
}
.sec .side p {
  margin: 0;
  color: var(--fg-82);
  font-size: 18px;
  line-height: 1.5;
  max-width: 26em;
}

/* FAQ */
.qa {
  border-top: 1px solid var(--line);
}
.qa:last-child {
  border-bottom: 1px solid var(--line);
}
.qa summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  font-family: var(--f-sec);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary svg {
  flex: none;
  transition: transform 240ms var(--ease);
}
.qa[open] summary svg {
  transform: rotate(45deg);
}
.qa .ans {
  padding: 0 0 28px;
  max-width: 40em;
}
.qa .ans p {
  margin: 0 0 14px;
  color: var(--fg-82);
}
.qa .ans a {
  color: var(--fg);
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
}

/* open banking: numbered steps, can and can't */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 40px;
}
.steps li {
  border-top: 1px solid var(--fg);
  padding-top: 20px;
  display: grid;
  gap: 10px;
}
.steps b {
  font-family: var(--f-sec);
  font-weight: 400;
  font-size: clamp(56px, 5vw, 80px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--money);
}
.steps strong {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.steps span {
  color: var(--fg-82);
}
.cmp {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}
.cmp h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cmp ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cmp li {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  color: var(--fg-82);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.who {
  display: grid;
  gap: 0;
}
.who div {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.who div:last-child {
  border-bottom: 1px solid var(--line);
}
.who b {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.who span {
  color: var(--fg-82);
}
.prose-sm p {
  margin: 0 0 16px;
  color: var(--fg-82);
  max-width: 40em;
}
.prose-sm a {
  color: var(--fg);
  text-underline-offset: 4px;
  text-decoration-color: var(--line);
}

/* contact */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
}
.card {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.card h2 {
  margin: 0;
  font-family: var(--f-sec);
  font-weight: 400;
  font-size: clamp(28px, 2.6vw, 36px);
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.card p {
  margin: 0;
  color: var(--fg-82);
  max-width: 30em;
}
.mail {
  font-family: var(--f-sec);
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.01em;
  color: var(--money);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.mail:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* closing call to action */
.cta {
  background: var(--bg2);
  padding: clamp(72px, 9vw, 150px) var(--gx);
  display: grid;
  gap: 28px;
  justify-items: start;
}
.cta h2 {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.cta h2 span {
  color: var(--money);
}

@media (max-width: 1280px) {
  :root {
    --gx: 48px;
  }
}
@media (max-width: 1080px) {
  :root {
    --gx: 40px;
  }
  .doc,
  .sec {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
    max-height: none;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .toc ol {
    padding-bottom: 12px;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .ftg {
    grid-template-columns: 1fr 1fr 1fr !important;
  }
  .ftg > :first-child {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  :root {
    --gx: 20px;
  }
  .nav {
    display: none;
  }
  .facts,
  .steps,
  .cmp,
  .cards {
    grid-template-columns: 1fr;
  }
  .who div {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .ftg {
    grid-template-columns: 1fr 1fr !important;
  }
  .tbl td:first-child {
    white-space: normal;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
