/* --- fonts ---------------------------------------------------------------
   Self-hosted. These used to load from fonts.googleapis.com, which meant every
   visitor's IP reached Google on every page load, before anything else ran.
   Nothing third-party is contacted for type any more.

   Fraunces and Inter Tight are variable: ONE file covers the whole weight range
   below, which is why the same file is not repeated per weight. The range is
   exactly what was requested from Google, because the axis in the file is
   subset to it — claiming 100..900 would let the browser ask for a weight the
   file cannot produce.

   unicode-range is copied verbatim from Google's own CSS and is load-bearing:
   it is what stops a visitor downloading latin-ext when the page has no
   characters that need it. Portuguese accents live in the latin subset, so in
   practice only the latin files travel.

   Regenerate with: python3 website-src/fetch_fonts.py
   Fraunces, Instrument Serif and Inter Tight are all SIL Open Font License 1.1;
   see assets/fonts/OFL.txt.
   ------------------------------------------------------------------------- */

/* Fraunces — latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('assets/fonts/fraunces-normal-latin-ext.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;
}

/* Fraunces — latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('assets/fonts/fraunces-normal-latin.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;
}

/* Instrument Serif — latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrument-serif-italic-latin-ext.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;
}

/* Instrument Serif — latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrument-serif-italic-latin.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;
}

/* Instrument Serif — latin-ext */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrument-serif-normal-latin-ext.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;
}

/* Instrument Serif — latin */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/instrument-serif-normal-latin.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;
}

/* Inter Tight — latin-ext */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/inter-tight-normal-latin-ext.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;
}

/* Inter Tight — latin */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('assets/fonts/inter-tight-normal-latin.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;
}

/* ==========================================================================
   Kairos — kairoswealth.tech
   Converted from the Claude Design canvas document (Kairos Website v3) to
   plain static HTML/CSS: no React, no runtime, no client-side rendering.
   Values are the design's own; departures from it are commented where made.
   ========================================================================== */

:root {
  --ink:      #04302A;  /* page background            */
  --ink-2:    #053A32;  /* alternating section band   */
  --sand:     #EDEFE9;  /* primary text               */
  --gold:     #E8AE47;  /* accent / CTA               */
  --gold-hi:  #F3C878;  /* accent hover               */
  --green:    #5D9E7E;  /* secondary accent — borders, glows, hover        */
  /* #5D9E7E only reaches 4.02:1 on the --ink-2 band, so small green labels
     use this slightly lighter tint (4.90:1 on band, 5.56:1 on ink). */
  --green-text: #6FAE8E;
  --mint:     #7FBF9F;  /* the fund's status badge    */
  /* Not in the design: the questionnaire's error state (5.72:1 on ink,
     5.05:1 on band). */
  --danger:   #E58C7A;

  --line:     rgba(237, 239, 233, .1);   /* section edges            */
  --rule:     rgba(237, 239, 233, .14);  /* rules inside a section   */
  --line-2:   rgba(237, 239, 233, .18);
  --body:     rgba(237, 239, 233, .78);
  --soft:     rgba(237, 239, 233, .72);
  --muted:    rgba(237, 239, 233, .62);
  /* Small uppercase labels. The design uses .55, which is 4.2:1 on the band
     and fails AA at 12px; .6 clears it on both backgrounds. */
  --label:    rgba(237, 239, 233, .6);

  --serif:    'Fraunces', Georgia, 'Times New Roman', serif;
  --italic:   'Instrument Serif', Georgia, serif;
  --sans:     'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --pad:      clamp(20px, 5vw, 40px);   /* section side padding */
  --shell:    1400px;                   /* content max width    */
  --rail:     240px;                    /* label column width   */
}

/* --- base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;     /* clear the sticky bar on anchor jumps */
  -webkit-text-size-adjust: 100%;
}

/* line-height stays `normal`, as in the design: every running paragraph sets
   its own, and buttons, pills and labels are sized by the font's metrics. */
body {
  margin: 0;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--sans);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* height:auto is required — the width/height attributes on <img> (kept to
   reserve layout space and avoid shift) are presentational hints that would
   otherwise override any CSS width we set. */
img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--gold);
  text-decoration: none;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}
a:hover { color: var(--gold-hi); }

::selection { background: var(--gold); color: var(--ink); }

/* Keyboard focus must stay visible — the design defines no focus state. */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 12px 20px;
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  color: var(--ink);
}

/* --- navigation ---------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: 14px var(--pad);
  background: rgba(4, 48, 42, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sand);
  flex: 0 0 auto;
}
.nav__brand:hover { color: var(--sand); }
.nav__brand img { width: 34px; height: 34px; object-fit: contain; }

.wordmark {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  letter-spacing: .16em;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 12px 26px;
  font-size: 13.5px;
  letter-spacing: .06em;
  color: var(--soft);
}
.nav__links > a { color: inherit; white-space: nowrap; }
.nav__links > a:not(.nav__cta):hover { color: var(--gold); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  border: 1px solid var(--gold);
  border-radius: 999px;
}
.nav__links > .nav__cta { color: var(--gold); }
.nav__links > .nav__cta:hover { background: var(--gold); color: var(--ink); }

/* --- language switcher --------------------------------------------------- */
/* Two static documents, one per language (/ = English, /pt/ = pt-BR), so the
   switch is a plain link — no JS, no cookie, no client-side text swapping.
   The design's PT-then-EN order is the same on both pages, so the pill never
   reorders as you cross between them. */

.lang {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(237, 239, 233, .22);
  border-radius: 999px;
  flex: 0 0 auto;
}
.lang__opt {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--soft);
}
.lang__opt[aria-current] { background: var(--gold); color: var(--ink); }
a.lang__opt:hover { color: var(--gold); }

/* --- layout primitives --------------------------------------------------- */

.section { padding: clamp(80px, 9vw, 120px) var(--pad); }
.section--rule { border-top: 1px solid var(--line); }
.section--band {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* label rail on the left, content on the right; the two stack by themselves
   once the content column can no longer keep its 560px basis */
.row {
  max-width: var(--shell);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 28px 60px;
}
.row__label { flex: 0 0 var(--rail); }
.row__content { flex: 1 1 560px; min-width: 0; }

.eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green-text);
}

.note {
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

.h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(44px, 6vw, 88px);
  line-height: 1.02;
  letter-spacing: -.02em;
}
.h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.14;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.h2--sm { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.16; letter-spacing: 0; }
.h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
}

.w-820 { max-width: 820px; }
.w-860 { max-width: 860px; }

.accent {
  font-family: var(--italic);
  font-style: italic;
  color: var(--gold);
}

.lead {
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--body);
  text-wrap: pretty;
}

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 15px;
  border: 1px solid transparent;
}
.btn--solid {
  background: var(--gold);
  color: var(--ink);
  font-weight: 500;
  letter-spacing: .02em;
}
.btn--solid:hover { background: var(--gold-hi); color: var(--ink); }
.btn--ghost {
  border-color: rgba(237, 239, 233, .3);
  color: var(--sand);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green); }

/* --- hero ---------------------------------------------------------------- */

/* content-box, as in the design: max-width is the CONTENT width, so the hero
   lines up with the 1400px rows below. Under border-box the padding came out
   of the 1400px and the hero sat 20–40px inside every other section. */
.hero {
  box-sizing: content-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 60px;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(80px, 10vw, 130px) var(--pad) clamp(70px, 9vw, 110px);
}
.hero__text { flex: 1 1 540px; min-width: 0; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 34px;
  padding: 7px 16px;
  border: 1px solid rgba(232, 174, 71, .4);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex: 0 0 auto;
}

.hero__copy {
  max-width: 580px;
  margin: 32px 0 0;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
}

/* The design shows the logo JPEG on its own #024139 square, blended with
   `screen`. The published mark is keyed to transparency instead (see
   website-src/README.md), so it floats on the glow with no visible tile. */
.hero__mark {
  flex: 1 1 300px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__mark::before {
  content: '';
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 158, 126, .28), transparent 68%);
}
/* Size the <picture>, not the <img>: <picture> is the flex item, and left to
   itself it takes the image's 512px natural width, so a 420px image sat at
   its left edge, 46px off centre. position:relative paints it above the glow. */
.hero__mark picture {
  position: relative;
  width: min(420px, 100%);
}
.hero__mark img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

/* --- about --------------------------------------------------------------- */

.about { max-width: 860px; }
.pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 28px 44px;
  margin-top: 48px;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--body);
}
.pair p { margin: 0; text-wrap: pretty; }

.pull {
  margin: 48px 0 0;
  font-family: var(--italic);
  font-style: italic;
  font-size: clamp(23px, 2.4vw, 28px);
  line-height: 1.4;
  color: var(--gold);
  max-width: 640px;
  text-wrap: pretty;
}

/* --- investment philosophy ----------------------------------------------- */

.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 0 56px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}
.principle {
  display: flex;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid var(--rule);
}
.principle__num {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.principle > div { min-width: 0; }
.principle .h3 { margin: 0 0 10px; font-size: 23px; line-height: 1.25; }
.principle p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--soft);
  text-wrap: pretty;
}

/* --- Kairos FIA ---------------------------------------------------------- */

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 22px 0 0;
  padding: 6px 14px;
  border: 1px solid rgba(93, 158, 126, .55);
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mint);
}
.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  flex: 0 0 auto;
}
.status + .note { margin-top: 18px; }

.fund__lede {
  margin: 28px 0 0;
  max-width: 760px;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.7;
  color: rgba(237, 239, 233, .82);
  text-wrap: pretty;
}
.fund__sub {
  margin: 16px 0 0;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 0 48px;
  margin: 56px 0 0;
  border-top: 1px solid var(--rule);
}
.facts div {
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
}
.facts dt {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--label);
}
.facts dd {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.35;
}

/* Not in the v3 design: the regulatory note under the key facts — the fund's
   launch and Kairos's asset management both depend on CVM approval. */
.fund__obs {
  margin: 28px 0 0;
  max-width: 760px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}
.fund__obs strong { font-weight: 500; color: var(--sand); }

.signup {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  margin-top: 56px;
}
.signup p {
  flex: 1 1 360px;
  margin: 0;
  font-family: var(--italic);
  font-style: italic;
  font-size: clamp(23px, 2.4vw, 28px);
  line-height: 1.35;
  color: var(--sand);
  text-wrap: pretty;
}

/* --- vision -------------------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  margin: 30px 0 0;
  font-family: var(--italic);
  font-style: italic;
  font-size: 24px;
  color: rgba(237, 239, 233, .6);
}
.chips .is-gold { color: var(--gold); }

.label {
  margin: 60px 0 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--label);
}
.becomes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 0 40px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.becomes li {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.4;
}

/* --- values -------------------------------------------------------------- */

.values__title { margin-bottom: 46px; }
.values__list {
  display: grid;
  grid-template-columns: clamp(46px, 8vw, 90px) 1fr;
  gap: 0 clamp(16px, 3vw, 34px);
  align-items: baseline;
}
.values__letter {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(38px, 4.4vw, 52px);
  line-height: 1;
  color: var(--gold);
}
.values__item {
  margin: 0;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}
.values__list > .values__item:last-child { border-bottom: 0; }
.values__item .h3 { margin: 0 0 8px; font-size: 24px; }
/* the Portuguese gloss beside each English value name (pt/ only) */
.values__gloss {
  margin-left: 10px;
  font-family: var(--italic);
  font-style: italic;
  font-weight: 400;
  font-size: 21px;
  color: rgba(237, 239, 233, .6);
}
.values__item p {
  margin: 0;
  max-width: 640px;
  font-size: 16.5px;
  line-height: 1.65;
  color: rgba(237, 239, 233, .7);
}

/* --- team ---------------------------------------------------------------- */

.team {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 48px;
  align-items: flex-start;
}
.team__photo {
  box-sizing: content-box;      /* 280px of photo, the border outside it */
  flex: 0 1 280px;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  border: 1px solid var(--line-2);
  overflow: hidden;
  background: var(--ink);
}
.team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.team__bio { flex: 1 1 320px; min-width: 0; }
.team__name { font-size: 32px; }
.team__role {
  margin: 8px 0 0;
  font-size: 14px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
}
.team__lead,
.team__more {
  margin: 26px 0 0;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  text-wrap: pretty;
}
.team__more { margin-top: 20px; color: rgba(237, 239, 233, .64); }
.team__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  font-size: 15px;
}

/* --- contact ------------------------------------------------------------- */

.contact {
  padding: clamp(90px, 10vw, 130px) var(--pad);
  text-align: center;
}
.contact__inner { max-width: 820px; margin-inline: auto; }
.contact .h2 {
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
}
.contact p {
  margin: 24px auto 0;
  max-width: 600px;
  font-size: 18px;
  line-height: 1.65;
  color: rgba(237, 239, 233, .74);
}
.contact .actions { justify-content: center; }
.contact .btn { padding: 16px 32px; }
.contact .btn--solid { letter-spacing: 0; }

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

.footer {
  padding: 44px var(--pad);
  border-top: 1px solid rgba(237, 239, 233, .12);
  font-size: 13px;
  color: rgba(237, 239, 233, .6);
}
.footer__inner { max-width: var(--shell); margin-inline: auto; }
.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 24px;
  align-items: center;
  justify-content: space-between;
}
.footer__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.footer__brand img { width: 26px; height: 26px; object-fit: contain; }
.footer__brand .wordmark {
  font-size: 13px;
  color: rgba(237, 239, 233, .85);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
}
.footer__links a { color: inherit; }
.footer__links a:hover { color: var(--sand); }

.disclaimer {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  max-width: 1000px;
  /* RCVM 175 art. 59 wants these warnings "em destaque". They were 12px at .58
     alpha, the smallest and faintest type on the page, qualifying a claim set at
     17-19px: raised to the body size and colour the regulatory note already uses. */
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}

/* --- registration of interest (/interest/, /pt/interesse/) ---------------
   Not in the design. The only pages not served as static files — PHP renders
   them (interest/lib/view.php) because the answers must be stored — but they
   keep the site's rules: native controls only, no script of our own, no
   inline style (their Content-Security-Policy forbids it). Everything below
   reuses the tokens above; nothing here touches the static pages. */

.q-intro { padding-bottom: clamp(48px, 6vw, 72px); }
.q-facts { margin-top: 44px; }
.q-facts dd {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}

.q-form,
.q-confirm { color-scheme: dark; }   /* native radios and checkboxes, dark */

.q-section { padding: clamp(56px, 7vw, 88px) var(--pad); }
.q-num {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.q-heading { font-weight: 400; }
.q-section .note { margin-top: 14px; }

.q-stack {
  display: grid;
  gap: 48px;
  max-width: 860px;
}

/* fieldset and legend are reset so a question reads like the rest of the
   page, not like a boxed form control */
.q-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.q-label {
  display: block;
  padding: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2vw, 23px);
  line-height: 1.3;
  color: var(--sand);
  text-wrap: pretty;
}
.q-hint {
  margin: 8px 0 0;
  max-width: 680px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
.q-error {
  margin: 10px 0 0;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--danger);
}

/* 16px text keeps iOS from zooming in on focus */
.q-input {
  display: block;
  width: 100%;
  max-width: 520px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(237, 239, 233, .04);
  color: var(--sand);
  font: inherit;
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.q-input:hover { border-color: rgba(237, 239, 233, .32); }
.q-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(232, 174, 71, .25);
}
/* Browser autofill paints its own light background; keep the field dark. */
.q-input:-webkit-autofill {
  -webkit-text-fill-color: var(--sand);
  box-shadow: 0 0 0 1000px #0B3D35 inset;
  caret-color: var(--sand);
}
.q-field--error .q-input { border-color: var(--danger); }

.q-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 10px;
  margin-top: 16px;
}
.q-choices--stack { grid-template-columns: 1fr; }

.q-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(237, 239, 233, .025);
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--body);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.q-choice:hover { border-color: rgba(232, 174, 71, .5); }
.q-choice input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--gold);
  cursor: pointer;
}
/* The checked card lights up. Browsers without :has() still show the native
   control checked — the cue is extra, never the only one. */
.q-choice:has(input:checked) {
  border-color: var(--gold);
  background: rgba(232, 174, 71, .09);
  color: var(--sand);
}
.q-choice:has(input:focus-visible) {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.q-choice input:focus-visible { outline: none; }
.q-field--error .q-choice { border-color: rgba(229, 140, 122, .55); }
.q-choice--ack { font-size: 15px; line-height: 1.55; }

/* the honeypot: off-screen for people, still in the markup for scripts */
.q-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.q-details {
  margin-top: -20px;   /* sits with the acknowledgements, not as its own row */
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}
.q-details summary {
  width: fit-content;
  color: var(--gold);
  cursor: pointer;
}
.q-details summary:hover { color: var(--gold-hi); }
.q-privacy {
  margin: 16px 0 0;
  max-width: 760px;
  border-top: 1px solid var(--rule);
}
.q-privacy div {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.q-privacy dt {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--label);
}
.q-privacy dd { margin: 6px 0 0; color: var(--body); }

.q-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.q-submit .btn { border: 0; font-family: inherit; cursor: pointer; }
.q-submit__note {
  flex: 1 1 260px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.q-summary {
  max-width: 860px;
  margin: 0 0 44px;
  padding: 22px 24px;
  border: 1px solid var(--danger);
  border-radius: 16px;
  background: rgba(229, 140, 122, .08);
}
.q-summary__lead,
.q-summary__title {
  margin: 0;
  font-weight: 500;
  line-height: 1.55;
  color: var(--sand);
}
.q-summary__lead + .q-summary__title { margin-top: 12px; }
.q-summary ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
}
.q-summary a,
.q-leave a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* --- the result, thank-you and failure pages --- */

.q-narrow { max-width: 860px; }
.q-result .fund__lede { margin-top: 24px; }

.q-profile {
  margin-top: 40px;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: rgba(237, 239, 233, .03);
}
.q-profile__label {
  margin: 0;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--label);
}
.q-profile__name {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(32px, 3.6vw, 42px);
  line-height: 1.1;
  color: var(--gold);
}
.q-profile__desc {
  margin: 12px 0 0;
  max-width: 640px;
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--body);
}
.q-levels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 0 28px;
  margin: 24px 0 0;
  border-top: 1px solid var(--rule);
}
.q-levels div {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.q-levels dt {
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--label);
}
.q-levels dd {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: 19px;
}
.q-profile__rule {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.q-subhead {
  margin: 44px 0 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--label);
}
.q-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.q-list li {
  padding: 14px 18px;
  border-left: 2px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: rgba(237, 239, 233, .035);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  text-wrap: pretty;
}
.q-list--reasons li { border-left-color: var(--danger); }

.q-confirm {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.q-confirm__saved {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.q-confirm .q-error { margin: 0 0 12px; }
.q-actions { margin-top: 28px; }
.q-actions .btn { font-family: inherit; cursor: pointer; }
.q-actions .btn--solid { border: 0; }
.q-actions .btn--ghost { background: none; }
.q-leave { margin: 20px 0 0; font-size: 14.5px; }
.q-leave a { color: var(--soft); }
.q-leave a:hover { color: var(--sand); }
.q-indicative {
  margin: 44px 0 0;
  max-width: 760px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}

.q-next {
  display: grid;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.q-next li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0 14px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--body);
}
.q-next li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  color: var(--gold);
}

/* --- entrance animation -------------------------------------------------- */

@keyframes kfRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
[data-rise] { animation: kfRise .9s cubic-bezier(.2, .7, .2, 1) both; }
[data-rise="2"] { animation-delay: .08s; }
[data-rise="3"] { animation-delay: .16s; }

/* ==========================================================================
   Responsive. The v3 design reflows by itself (flex-wrap, auto-fit grids,
   clamp()); these rules cover only what it leaves to chance.
   ========================================================================== */

/* The design lets the bar wrap, which on a phone stacks the brand, five
   links and the switcher into a sticky block a third of the screen tall.
   Instead the section links go (the footer keeps them) and the bar stays one
   line. Child selector, not descendant: the .lang links are nested and must
   stay. Portuguese labels are the longer set, so test this against /pt/:
   measured, the full PT bar needs 868px, so 920px leaves ~50px of slack. */
@media (max-width: 920px) {
  .nav__links > a:not(.nav__cta) { display: none; }
  .nav__links { gap: 14px; }
}

@media (max-width: 560px) {
  /* brand · CTA · language is still too wide for 375px: drop the wordmark.
     The mark alone carries the brand up top; the footer shows the lockup. */
  .nav { gap: 12px; }
  .nav__brand .wordmark { display: none; }
}

@media (max-width: 480px) {
  /* "Accountability · Responsabilidade" has no break opportunity — the gloss
     is joined by a no-break space — so below ~415px it forced the values
     column 38px past the screen edge, where it was clipped. On a phone the
     Portuguese gloss takes its own line instead. */
  .values__gloss { display: block; margin: 4px 0 0; }
}

@media (max-width: 420px) {
  .actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .pill { letter-spacing: .12em; }
}

/* --- motion / print ------------------------------------------------------ */

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

@media print {
  .nav { position: static; }
  body { background: #fff; color: #000; }
}
