/* The static pages (about, FAQ, privacy, terms, why-account, privacy-check, 404)
   in the «Registro» look of the public company pages (functions/empresa/_bridgePage.js):
   one sheet on a ground, the site bar on top, IBM Plex, teal links. Light or dark
   follows the system, as the homepage does (see the dark block at the end).
   `optional` never blocks a paint and never moves the page: a first-time visitor
   keeps the system face, a returning one gets Plex from cache. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: optional;
  src: url('/fonts/ibm-plex-sans-latin-v23.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300 700;
  font-display: optional;
  src: url('/fonts/ibm-plex-sans-latin-ext-v23.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: optional;
  src: url('/fonts/ibm-plex-mono-500-latin-v20.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0f172a;
  --mut: #526077;
  --line: #e1e6ec;
  --bg: #f3f5f7;
  --brand: #0f766e;
  --brand-ink: #115e59;
  --brand-line: #9fcfc8;
  --brand-wash: #eef7f5;
  --surface: #fff;
  --foot: #f8fafb;
  --on-brand: #fff;
  --sheet: 860px;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 var(--sans);
  color: var(--ink);
  background: var(--bg);
}

a { color: var(--brand-ink); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }

/* Site bar: the same header as the company pages. */
.site-bar { background: var(--surface); border-bottom: 1px solid var(--line); }
.site { display: flex; align-items: center; gap: 8px 20px; max-width: var(--sheet); margin: 0 auto; padding: 14px 20px; }
.site .brand { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.site .mark { width: 24px; height: 24px; border-radius: 22%; flex: 0 0 auto; }
.site nav { display: flex; align-items: center; gap: 18px; font-size: 14px; font-weight: 600; }
.site nav a { color: var(--mut); text-decoration: none; white-space: nowrap; padding: 6px 0; }
.site nav a:hover { color: var(--brand-ink); text-decoration: underline; }
.site nav .opt { display: none; }

/* The sheet: a white page on the grey ground, topped by the brand-mark gradient. */
main {
  position: relative;
  max-width: var(--sheet);
  margin: 0 auto 3rem;
  padding: 32px 20px 0;
  background: var(--surface);
  border-block: 1px solid var(--line);
  overflow-wrap: anywhere;
}
/* Pages without a footer band (privacy, terms, 404) keep a bottom margin inside the sheet. */
main:not(:has(> footer)) { padding-bottom: 40px; }
main::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto;
  height: 3px;
  background: linear-gradient(90deg, #14b8a6, #0f766e);
}
h1, h2, h3 { color: var(--ink); text-wrap: balance; }

/* Page head: the homepage's teal overline, a large title and a lead line. */
.eyebrow {
  margin: 0 0 10px;
  font: 700 12px/1.4 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -.025em;
}
main > h1 + .muted {
  margin: 12px 0 0;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  font-size: 18px;
  line-height: 1.55;
}

/* Sections: a short teal rule above each heading instead of a grey line. */
h2 {
  margin: 2.75rem 0 .85rem;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.015em;
}
h2::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: var(--brand);
}
h3 { margin: 1.75rem 0 .5rem; font-size: 17px; line-height: 1.35; font-weight: 600; }
p, li { text-wrap: pretty; }
ul, ol { padding-left: 1.25rem; }
li { margin-bottom: .5rem; }
main ul > li::marker { color: var(--brand); }
.muted { color: var(--mut); }

/* Numbered lists: the homepage's mono step circles, joined by a thin line. */
main ol { list-style: none; margin: 1.5rem 0; padding: 0; counter-reset: step; }
main ol > li { position: relative; margin: 0; padding: 0 0 1.25rem 46px; counter-increment: step; }
main ol > li::before {
  content: counter(step);
  position: absolute;
  top: -1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--brand-line);
  border-radius: 50%;
  background: var(--surface);
  font: 500 13.5px/1 var(--mono);
  color: var(--brand-ink);
}
main ol > li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 31px;
  bottom: 2px;
  left: 14px;
  width: 1px;
  background: var(--line);
}

/* Boxes: an amber notice (the homepage's caution box) and a teal aside. */
.notice, .aside {
  margin: 1.25rem 0;
  padding: 16px 20px;
  border: 1px solid;
  border-radius: 8px;
}
.notice { border-color: rgba(180, 83, 9, .4); background: rgba(180, 83, 9, .07); }
.aside { border-color: var(--brand-line); background: var(--brand-wash); }
.notice > :first-child, .aside > :first-child { margin-top: 0; }
.notice > :last-child, .aside > :last-child { margin-bottom: 0; }

/* Tiles: short items set as a grid of cards. */
main ul.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
}
.tiles > li { margin: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font-weight: 500; line-height: 1.45; }

/* Side by side: two short lists compared (why-account: without / with an account). */
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 1.25rem 0; }
.compare > div { padding: 18px 20px 6px; border: 1px solid var(--line); border-radius: 8px; }
.compare > div.plus { border-color: var(--brand-line); background: var(--brand-wash); }
.compare h3 { margin: 0 0 .6rem; }
.compare ul { margin: 0 0 .75rem; }

/* FAQ: each question opens a block of its own. */
main.faq h3 { margin: 2rem 0 .5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 18px; }
main.faq > h1 + .muted + h3 { margin-top: 1.75rem; padding-top: 0; border-top: 0; }

code {
  padding: .1em .35em;
  border-radius: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: .88em;
}

/* About: the coverage figures, set in Plex Mono like the registry references. */
.stats { display: flex; flex-wrap: wrap; gap: 0; margin: 1.5rem 0; border-block: 1px solid var(--line); }
.stat-card { flex: 1 1 180px; padding: 1rem 1rem 1.1rem 0; }
.stat-card .number { display: block; font-family: var(--mono); font-size: 1.6rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--brand-ink); }
.stat-card .label { display: block; margin-top: .25rem; font-size: .85rem; color: var(--mut); }

/* Buttons: one primary (filled teal) and one quiet (outlined). */
.btn {
  display: inline-block;
  margin: .5rem 0 0;
  padding: .7rem 1.3rem;
  border-radius: 8px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { background: var(--brand-ink); }
.consent-btn {
  padding: .55rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--brand-line);
  background: var(--surface);
  color: var(--brand-ink);
  font: 600 .95rem var(--sans);
  cursor: pointer;
}
.consent-btn:hover { background: var(--brand-wash); }

.note { color: var(--mut); font-size: .85rem; margin-top: -.5rem; }

footer {
  margin: 3rem -20px 0;
  padding: 22px 20px 26px;
  border-top: 1px solid var(--line);
  background: var(--foot);
  font-size: .85rem;
  color: var(--mut);
}
footer a { display: inline-block; margin-right: 1.25rem; color: var(--mut); }
footer a:hover { color: var(--brand-ink); }
footer .fine { margin: .75rem 0 0; font-size: .78rem; }

/* 404: a short sheet, centred. */
.not-found { max-width: 32rem; margin-top: 12vh; text-align: center; }
.not-found .code { margin: 0; font-family: var(--mono); font-size: 3rem; font-weight: 500; color: var(--brand-ink); }
.not-found h1 { border: 0; padding: 0; margin: .5rem 0 .25rem; font-size: 1.25rem; }
.not-found p { color: var(--mut); margin: .25rem 0 1.5rem; }
.not-found .links a { margin: 0 .5rem; text-decoration: none; }
.not-found .links a:hover { text-decoration: underline; }

@media (min-width: 640px) {
  .site { padding: 20px 24px; }
  .site .brand { font-size: 18px; gap: 10px; }
  .site .mark { width: 26px; height: 26px; }
  .site nav { gap: 24px; font-size: 15px; }
  .site nav .opt { display: inline; }
  main { margin-top: 28px; padding: 48px 56px 0; border: 1px solid var(--line); border-radius: 6px; }
  main::before { border-radius: 6px 6px 0 0; }
  h1 { font-size: 40px; }
  footer { margin-inline: -56px; padding-inline: 56px; border-radius: 0 0 6px 6px; }
}

/* Dark system: the homepage's navy (index.html follows prefers-color-scheme on the landing),
   so a page opened from the footer keeps the visitor's theme. Same sheet, same rules. */
@media screen and (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #e6edf7;
    --mut: #a9b8cf;
    --line: rgba(255, 255, 255, .09);
    --bg: #0a0e1a;
    --surface: #0f1320;
    --foot: #0c101c;
    --brand-ink: #2dd4bf;
    --brand-line: rgba(20, 184, 166, .35);
    --brand-wash: rgba(20, 184, 166, .08);
  }
  .btn:hover { background: #115e59; }
}

@media print {
  body { background: #fff; }
  .site nav { display: none; }
  main { border: 0; margin: 0; padding: 0; }
  main::before { display: none; }
}
