/* Shared by every page: tokens, reset, type, layout, buttons, navbar, sections, footer,
   legal pages. The colours are the product's (sign-in page of the application, ADR-0032
   of CostooBTP): ink, yellow, steel greys. No colour outside these variables. */

:root {
  --ink: #1F2A30;
  --night: #151D21;
  --panel: #223038;
  --panel-hover: #1A2429;
  --line: rgba(220, 227, 231, .14);
  --line-strong: rgba(220, 227, 231, .35);
  --fog: #C9D3D9;
  --steel: #8FA3AD;
  --pale: #DCE3E7;
  --paper: #F3F4F5;
  --acc: #F5B700;
  --acc-hover: #FFC72C;
  --field-border: #5E6E77;
  --level-green: #2A7A3B;
  --level-orange: #B3661A;
  --level-orange-dot: #E08A2E;
  --level-red: #B3261E;
  --level-dark-red: #7A1410;
  --font-body: "Barlow", system-ui, sans-serif;
  --font-display: "Barlow Semi Condensed", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1240px;
  --gutter: 32px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

/* ------------------------------------------------------------------ reset */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--night);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--acc); }
a:hover { color: var(--acc-hover); }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------- utilities */

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--acc); color: var(--ink); padding: 12px 18px; border-radius: 6px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--ink); }
.ico {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}
.placeholder { color: var(--acc); font-family: var(--font-mono); font-size: .85em; }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 6px; border: 1px solid transparent;
  font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
}
.btn-acc { background: var(--acc); color: var(--ink); }
.btn-acc:hover { background: var(--acc-hover); color: var(--ink); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: #FFFFFF; }
.btn-ghost:hover { border-color: #FFFFFF; color: #FFFFFF; }
.btn-ink { background: var(--ink); color: #FFFFFF; }
.btn-ink:hover { background: #000000; color: #FFFFFF; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------------------------------------------------------------- navbar */

/* Outside the hero, so that it sticks along the whole page; same ground as the hero. */
.navbar {
  position: sticky; top: 0; z-index: 50; background: var(--ink);
  transition: background-color .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled, .navbar[data-solid] { background: rgba(21, 29, 33, .94); border-bottom-color: var(--line); backdrop-filter: blur(8px); }
.navbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; min-height: 80px; }
.lockup { display: flex; align-items: center; gap: 12px; color: #FFFFFF; text-decoration: none; }
.lockup:hover { color: #FFFFFF; }
.lockup__mark { width: 40px; height: 40px; }
.wordmark { font-family: var(--font-display); font-size: 28px; font-weight: 500; letter-spacing: .5px; line-height: 1; }
.wordmark b { font-weight: 700; color: var(--acc); }
.navbar__links { display: flex; align-items: center; gap: 4px 28px; }
.navbar__links a { color: var(--fog); text-decoration: none; font-weight: 500; font-size: 15px; display: inline-block; padding: 12px 0; }
.navbar__links a:hover, .navbar__links a.active { color: #FFFFFF; }
.navbar__end { display: flex; align-items: center; gap: 20px; }
.lang { display: flex; align-items: center; gap: 8px; color: var(--steel); font-size: 14px; font-weight: 600; }
.lang a { color: var(--steel); text-decoration: none; padding: 12px 2px; }
.lang a:hover { color: #FFFFFF; }
.lang [aria-current="true"] { color: #FFFFFF; }
.navbar__burger {
  display: none; width: 48px; height: 48px; border-radius: 6px; border: 1px solid var(--line-strong);
  background: transparent; color: #FFFFFF; cursor: pointer; place-items: center; padding: 0;
}
.navbar__burger .ico { width: 22px; height: 22px; }
.navbar__burger .ico-close { display: none; }
.navbar.is-open .navbar__burger .ico-open { display: none; }
.navbar.is-open .navbar__burger .ico-close { display: block; }
/* The call to action repeats in the mobile menu, where the bar has no room for it. */
.navbar__links .navbar__cta { display: none; }

@media (max-width: 960px) {
  .navbar__burger { display: grid; }
  .navbar__links, .navbar__end .btn { display: none; }
  .navbar.is-open { background: var(--night); border-bottom-color: var(--line); }
  .navbar.is-open .navbar__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--night); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
  }
  .navbar.is-open .navbar__links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
  .navbar.is-open .navbar__links .navbar__cta { display: flex; margin-top: 18px; border-bottom: 0; color: var(--ink); }
}

/* Legal pages and 404: no section links, the way back stays visible on a phone. */
.navbar--simple .navbar__end .btn { display: inline-flex; }

/* -------------------------------------------------------------- sections */

.sec { padding: 128px 0; border-bottom: 1px solid var(--line); }
.sec-alt { background: var(--ink); }
.sec-num {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--acc);
}
.sec-num span { display: block; width: 48px; height: 1px; background: var(--acc); }
.h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(38px, 4.8vw, 68px);
  line-height: .98; letter-spacing: -.005em; text-transform: uppercase; margin-bottom: 26px; max-width: 16em;
}
.sec-lead { font-size: 19px; line-height: 1.6; color: var(--fog); max-width: 40em; }
.split { display: flex; flex-wrap: wrap; gap: 40px 72px; align-items: flex-end; justify-content: space-between; }
.split > * { flex: 1 1 420px; min-width: 0; }

/* ---------------------------------------------------------------- footer */

.foot { border-top: 1px solid var(--line); padding: 48px 0 56px; }
.foot__row { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.foot .lockup__mark { width: 32px; height: 32px; }
.foot .wordmark { font-size: 22px; }
.foot small { color: var(--steel); font-size: 14px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot__links a { color: var(--steel); text-decoration: none; font-size: 14px; display: inline-block; padding: 12px 0; }
.foot__links a:hover { color: #FFFFFF; }

/* ------------------------------------------------------------ legal, 404 */

.page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.crumbs { display: flex; gap: 10px; font-size: 14px; color: var(--steel); margin-bottom: 28px; }
.crumbs a { color: var(--steel); }
.page-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 5vw, 64px); line-height: 1; text-transform: uppercase; }
.page-lead { margin-top: 18px; color: var(--fog); font-size: 19px; max-width: 46em; }
.prose { padding: 56px 0 96px; max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-size: 28px; font-weight: 700; margin: 44px 0 14px; line-height: 1.1; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--fog); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 10px 0; }
.prose address { font-style: normal; color: var(--fog); line-height: 1.7; margin-top: 8px; }
.prose strong { color: #FFFFFF; font-weight: 600; }
.prose-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }

.not-found { min-height: 70vh; display: flex; align-items: center; padding: 96px 0; }
.not-found > .wrap { width: 100%; }
.not-found .not-found__code { font-family: var(--font-mono); color: var(--acc); letter-spacing: .14em; font-size: 14px; margin-bottom: 18px; }
.not-found__title { font-family: var(--font-display); font-size: clamp(44px, 7vw, 96px); font-weight: 700; line-height: .95; text-transform: uppercase; max-width: 12em; }
.not-found p { color: var(--fog); font-size: 19px; margin: 22px 0 32px; }
.not-found .not-found__en { margin: 48px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--steel); font-size: 16px; }

@media (max-width: 720px) {
  :root { --gutter: 16px; }
  .sec { padding: 80px 0; }
  .split { gap: 0; }
  .navbar__inner { min-height: 68px; }
  .wordmark { font-size: 24px; }
  .lockup__mark { width: 34px; height: 34px; }
}
