/* =========================================================
   josefuret.com — sistema visual comum («Contraste»)
   Branco frio e preto, Geist, um azul-cobalto, secções escuras.
   Usado por todas as páginas. Sem dependências; tipos de letra
   alojados localmente (OFL).
   ========================================================= */

@font-face { font-family: "Geist"; src: url("/fonts/Geist.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/fonts/IBMPlexMono.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --head: var(--sans);
  --serif: var(--sans);
  --mono: "Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --shell: 1240px;
  --gutter: clamp(20px, 5vw, 48px);
  --bar-h: 64px;
  --ink: #0b0b0c;
  --cobalt: #2a44f5;
  color-scheme: light;
}

/* Claro por omissão; .t-ink para as secções escuras.
   As antigas cores por área (--web, --app, --sec) apontam todas para o cobalto. */
.t-paper, body {
  --bg: #f6f6f3; --bg-2: #ececE8; --bg-3: #ffffff;
  --fg: #0b0b0c; --fg-2: #43454a; --fg-3: #67696f;
  --line: #e1e1dc; --line-2: #c9c9c3;
  --acc: #2a44f5; --acc-soft: #e7eaff;
  --web: var(--acc); --app: var(--acc); --sec: var(--acc);
  background: var(--bg); color: var(--fg);
}
.t-ink {
  --bg: #0b0b0c; --bg-2: #141416; --bg-3: #1c1c1f;
  --fg: #f4f4f1; --fg-2: #b4b5b9; --fg-3: #8d8e93;
  --line: #242427; --line-2: #37373b;
  --acc: #9aa6ff; --acc-soft: #1b1e33;
  --web: var(--acc); --app: var(--acc); --sec: var(--acc);
  background: var(--bg); color: var(--fg);
}
.band { background: var(--bg-2); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 24px); background: #f6f6f3; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 2px solid var(--acc, currentColor); outline-offset: 3px; }
[hidden] { display: none !important; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.skip2 { position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 6px; font-size: 15px; text-decoration: none; }
.skip2:focus { top: 12px; }

/* ---------- Cabeçalho: barra clara, filete fino ---------- */
.island {
  position: sticky; top: 0; z-index: 100; height: var(--bar-h);
  display: flex; align-items: center; gap: 8px;
  padding: 0 max(var(--gutter), calc((100% - var(--shell)) / 2 + var(--gutter)));
  color: var(--ink); background: rgba(246, 246, 243, .88); border-bottom: 1px solid #e1e1dc;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.isl-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16.5px; letter-spacing: -.02em; margin-right: auto; white-space: nowrap; min-height: 44px; }
.isl-mark { width: 20px; height: 20px; flex: none; }
.isl-mark .m1 { fill: var(--cobalt); }
.isl-mark .m2, .isl-mark .m3 { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.isl-mark .m3 { opacity: .45; }
.isl-nav { display: flex; align-items: center; gap: 4px; }
.isl-nav a {
  position: relative; display: inline-flex; align-items: center; height: 44px; padding: 0 12px;
  font-size: 15px; color: #43454a; text-decoration: none; transition: color .2s ease;
}
.isl-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px; background: var(--cobalt); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.isl-nav a:hover { color: var(--ink); }
.isl-nav a.is-current, .isl-nav a[aria-current="page"] { color: var(--ink); }
.isl-nav a.is-current::after, .isl-nav a[aria-current="page"]::after { transform: scaleX(1); }
.isl-cta {
  display: inline-flex; align-items: center; height: 40px; padding: 0 18px; margin-left: 10px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease;
}
.isl-cta:hover { background: var(--cobalt); }
.isl-menu { display: none; width: 44px; height: 44px; margin-left: 4px; border-radius: 50%; border: 1px solid #c9c9c3; background: none; color: inherit; cursor: pointer; place-items: center; }
.isl-menu svg { width: 18px; height: 18px; }
.isl-menu .l1, .isl-menu .l2 { transition: transform .3s var(--ease); transform-origin: 9px 9px; transform-box: view-box; }
.island.is-open .isl-menu .l1 { transform: translateY(2.5px) rotate(45deg); }
.island.is-open .isl-menu .l2 { transform: translateY(-2.5px) rotate(-45deg); }

/* Seletor de língua: na barra, a bandeira da língua atual; ao abrir, a lista das duas línguas. */
.isl-lang { position: relative; margin-left: 6px; }
.isl-lang::before { content: ""; position: absolute; left: -4px; top: 14px; bottom: 14px; width: 1px; background: #d6d6d0; }
.isl-lang summary { display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 8px 0 10px; border-radius: 8px; list-style: none; cursor: pointer; color: #43454a; transition: color .2s ease; }
.isl-lang summary::-webkit-details-marker { display: none; }
.isl-lang summary:hover, .isl-lang[open] summary { color: var(--ink); }
.lg-flag { display: block; flex: none; width: 21px; height: 14px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(11, 11, 12, .14); }
.lg-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.lg-chev { flex: none; width: 10px; height: 6px; transition: transform .2s var(--ease); }
.lg-chev path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.isl-lang[open] .lg-chev { transform: rotate(180deg); }
.lg-menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 176px; padding: 6px; background: #fbfbf9; border: 1px solid #e1e1dc; border-radius: 10px; box-shadow: 0 24px 40px -24px rgba(11, 11, 12, .35); }
.isl-nav .lg-opt { position: static; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border: 0; border-radius: 6px; font-size: 15px; font-weight: 400; letter-spacing: 0; color: #43454a; text-decoration: none; }
.isl-nav a.lg-opt::after { display: none; }
.isl-nav a.lg-opt:hover { background: #efefea; color: var(--ink); }
.isl-nav .lg-opt[aria-current] { color: var(--ink); font-weight: 500; }
.isl-nav .lg-opt[aria-current]::after { content: ""; width: 5px; height: 9px; margin: 0 4px 0 auto; border: solid var(--cobalt); border-width: 0 1.6px 1.6px 0; transform: translateY(-2px) rotate(45deg); }

@media (max-width: 880px) {
  .isl-menu { display: grid; }
  .isl-cta { height: 44px; padding: 0 16px; }
  .isl-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 18px; background: #f6f6f3; border-bottom: 1px solid #e1e1dc;
    box-shadow: 0 24px 40px -28px rgba(11, 11, 12, .35);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s ease, transform .3s var(--ease), visibility 0s linear .3s;
  }
  .island.is-open .isl-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .isl-nav a { height: 56px; padding: 0; font-size: 22px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); border-bottom: 1px solid #ececE8; }
  .isl-nav a::after { display: none; }
  .isl-lang { margin: 4px 0 0; }
  .isl-lang::before { display: none; }
  .isl-lang summary { gap: 12px; height: 52px; padding: 0; border-radius: 0; font-size: 17px; font-weight: 500; }
  .lg-name { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .lg-menu { position: static; min-width: 0; padding: 0 0 6px; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .isl-nav .lg-opt { gap: 12px; height: 46px; padding: 0 0 0 33px; font-size: 17px; }
  .isl-nav a.lg-opt:hover { background: none; }
}
@media (max-width: 400px) { .isl-brand span { display: none; } .isl-brand { min-width: 44px; } }

/* ---------- Botões ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent; font: inherit; font-size: 15.5px; font-weight: 500; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.pill--solid { background: var(--fg); color: var(--bg); }
.pill--solid:hover { background: var(--acc); color: #fff; }
.t-ink .pill--solid:hover { color: var(--ink); }
.pill--ghost { border-color: var(--line-2); color: var(--fg); background: transparent; }
.pill--ghost:hover { border-color: var(--fg); }
.pill--sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.pill .arr { display: inline-block; transition: transform .25s var(--ease); }
.pill:hover .arr { transform: translateX(3px); }
.pill:hover .arr--down { transform: translateY(2px); }

/* ---------- Texto utilitário ---------- */
.kicker { display: inline-flex; flex-wrap: nowrap; align-items: flex-start; gap: 10px; margin: 0; font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); }
.kicker i { width: 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: var(--acc); flex: none; }
.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-2); white-space: nowrap;
}
.tag--acc { border-color: color-mix(in srgb, var(--acc) 50%, transparent); color: var(--acc); background: var(--acc-soft); }
.sheet { position: relative; }

/* ---------- Revelação ao scroll: discreta ---------- */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .6s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Aviso breve ---------- */
.toast2 {
  position: fixed; left: 50%; bottom: 22px; z-index: 150; translate: -50% 0; margin: 0; max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 14.5px;
  box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s ease, transform .3s var(--ease);
}
.toast2.is-on { opacity: 1; transform: none; }

/* ---------- Rodapé ---------- */
.foot2 { padding: clamp(56px, 7vw, 88px) 0 36px; font-size: 14.5px; color: var(--fg-3); background: var(--bg); border-top: 1px solid var(--ink); }
.foot2-top { display: grid; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid var(--line-2); }
.foot2-brand { margin: 0; font-weight: 600; font-size: clamp(28px, 3vw, 40px); line-height: 1; letter-spacing: -.045em; color: var(--fg); }
.foot2-desc { margin: 12px 0 0; max-width: 30ch; color: var(--fg-2); }
.foot2-cols { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 24px; }
.foot2-h { margin: 0 0 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-3); }
.foot2-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot2-list a { color: var(--fg-2); text-decoration: none; transition: color .2s ease; }
.foot2-list a:hover { color: var(--acc); }
.foot2-legal { display: grid; gap: 14px; padding-top: 24px; }
.foot2-legal p { margin: 0; max-width: 78ch; }
.foot2-legal strong { color: var(--fg-2); font-weight: 500; }
@media (min-width: 900px) {
  .foot2-top { grid-template-columns: 1.2fr 2fr; align-items: start; }
  .foot2-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot2-legal { grid-template-columns: 1fr auto; align-items: end; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Cabeçalho de secção — o mesmo em todas as páginas:
   etiqueta numerada, título grande, uma frase curta.
   ========================================================= */
.act-head { margin-bottom: clamp(40px, 5vw, 64px); }
.act-idx { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.act-idx b { font-weight: 400; color: var(--acc); }
.act-idx b::before { content: "("; } .act-idx b::after { content: ")"; }
.act-title { margin: 0; max-width: 13em; font-size: clamp(36px, 5.2vw, 72px); font-weight: 600; line-height: 1; letter-spacing: -.05em; text-wrap: balance; }
.act-title em { font: inherit; color: inherit; }
.act-lead { margin: 20px 0 0; max-width: 32em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--fg-2); text-wrap: pretty; }
.act-head--sub .act-title { font-size: clamp(30px, 3.8vw, 52px); }
