/* Identidade do banner da campanha: céu azul com retícula, amarelo forte, preto,
   etiqueta branca e as bandeiras do Brasil e da Alemanha.
   Estrutura inspirada no landing de curso online do Behance: hero com foto da pessoa,
   cards arredondados, linhas de etapas com miniatura, bilhetes de valor e FAQ em cartões. */
/* fontes hospedadas no próprio site. Bricolage Grotesque e Anton vêm do Fontsource (licença OFL).
   Havock é a fonte dos títulos do banner: coloque o arquivo em assets/fonts/havock.woff2 (ou .otf).
   Enquanto ele não existir, os títulos caem na Anton. */
/* A Havock desenha as maiúsculas com 1,5 vez a altura do em (a Anton usa 0,86). O size-adjust de 57%
   deixa as duas do mesmo tamanho, assim line-height e tamanhos valem para qualquer uma.
   local() usa a Havock instalada no computador enquanto o arquivo não estiver no projeto. */
@font-face {
  font-family: "Havock"; font-style: normal; font-weight: 400; font-display: swap; size-adjust: 57%;
  src: url("fonts/havock.woff2") format("woff2"), url("fonts/havock.otf") format("opentype"), url("fonts/havock.ttf") format("truetype"),
       local("Havock"), local("Havock Regular"), local("Havock-Regular");
}
@font-face { font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/anton-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/bricolage-grotesque-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/bricolage-grotesque-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  /* cores da bandeira da Alemanha */
  --ink: #0A0A0A;         /* preto */
  --ink-2: #262626;
  --red: #DD0000;         /* vermelho */
  --red-deep: #A80000;
  --gold: #FFCE00;        /* ouro */
  --gold-2: #FFDD4D;      /* hover */
  --gold-deep: #D9A900;   /* sombra do ouro */
  /* apoio */
  --sky: #3FA9DE;         /* céu das fotos, só como cor de fundo enquanto a imagem carrega */
  --pr-green: #0F8A3C;    /* verde da bandeira do Paraná */
  --soft: #F6F3EA;        /* faixas claras, um creme quente */
  --text: #161616;
  --text-soft: #55524B;
  --white: #FFFFFF;
  --line: rgba(10, 10, 10, .12);

  --f-display: "Havock", "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --f-body: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --dots: radial-gradient(rgba(255, 255, 255, .2) 1px, transparent 1.4px);
  --dots-dark: radial-gradient(rgba(10, 10, 10, .08) 1px, transparent 1.4px);

  --r-xl: 36px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-pill: 999px;
  --max: 1200px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--sky);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 {
  font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(40px, 6.2vw, 78px); line-height: .95; letter-spacing: .005em;
}
h3 { font: 800 20px/1.25 var(--f-body); letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wrap {
  max-width: var(--max); margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.t-gold { color: var(--gold); }
.t-ink { color: var(--ink); }
/* destaque de palavra: marca-texto amarelo atrás */
.hl { background: linear-gradient(transparent 58%, var(--gold) 58%, var(--gold) 92%, transparent 92%); padding: 0 .08em; }
.hl--white { background: none; color: var(--white); }
.hl--red { background: none; color: var(--red); }
/* etiqueta branca do banner */
.label {
  display: inline-block; background: var(--white); color: var(--ink);
  font: 800 clamp(18px, 2.2vw, 28px)/1.15 var(--f-body); letter-spacing: -0.02em;
  padding: .38em .6em; box-shadow: 0 10px 30px rgba(10, 10, 10, .22);
}

/* ============ LIQUID GLASS (recriação web do GlassView do expo-glass-effect) ============
   Camadas: vidro com tint leve + refração/aberração cromática (liquid-glass.js, Chromium)
   + borda especular + brilho de toque (isInteractive). Só na barra e nos botões. */
.glass {
  --lx: 50%; --ly: 0%;
  --tint: rgba(255, 255, 255, .18);
  position: relative;
  isolation: isolate;
  background: var(--tint);
  -webkit-backdrop-filter: blur(14px) saturate(180%) brightness(1.06);
  backdrop-filter: blur(14px) saturate(180%) brightness(1.06);
  border: 0;
  box-shadow:
    inset 1.5px 1.5px 0 -0.5px rgba(255, 255, 255, .55),
    inset -1px -1px 0 -0.5px rgba(255, 255, 255, .30),
    inset 0 0 0 1px rgba(255, 255, 255, .10),
    inset 0 0 14px rgba(255, 255, 255, .06),
    0 1px 2px rgba(10, 10, 10, .25),
    0 10px 28px rgba(10, 10, 10, .30);
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), box-shadow .3s ease, background-color .3s ease;
  will-change: transform;
}
.glass[data-glass="clear"] { --tint: rgba(255, 255, 255, .04); }
/* borda especular: luz vinda de cima à esquerda, reflexo fraco embaixo à direita */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  padding: 1.25px;
  background:
    conic-gradient(from 210deg at 50% 50%,
      rgba(255,255,255,.95) 0deg, rgba(255,255,255,.15) 60deg, rgba(255,255,255,0) 110deg,
      rgba(255,255,255,.45) 180deg, rgba(255,255,255,0) 250deg, rgba(255,255,255,.15) 300deg, rgba(255,255,255,.95) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .75;
}
/* brilho de toque do isInteractive */
.glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(90px 90px at var(--lx) var(--ly), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: plus-lighter;
  opacity: 0; transition: opacity .35s ease;
}
.glass.is-hover::after { opacity: .28; }
.glass.is-pressed::after { opacity: .85; transition-duration: .12s; }
.glass.is-pressed {
  transition: transform .18s cubic-bezier(.2, .8, .3, 1), box-shadow .2s ease;
  box-shadow:
    inset 1.5px 1.5px 0 -0.5px rgba(255, 255, 255, .75),
    inset -1px -1px 0 -0.5px rgba(255, 255, 255, .45),
    inset 0 0 0 1px rgba(255, 255, 255, .16),
    inset 0 0 22px rgba(255, 255, 255, .14),
    0 2px 4px rgba(10, 10, 10, .25),
    0 16px 40px rgba(10, 10, 10, .38);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { --tint: rgba(255, 255, 255, .92); }
  .btn--gold.glass { --tint: var(--gold); }
}


/* ============ BOTÕES ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 22px;
  border-radius: var(--r-pill); border: 0;
  font: 800 15px/1 var(--f-body);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  color: var(--ink);
  transition: transform .2s ease, background-color .2s ease;
}
.btn--lg { min-height: 56px; padding: 16px 30px; font-size: 16.5px; }
.btn--sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn--gold { --tint: rgba(255, 206, 0, .95); color: var(--ink); }
.btn--gold:not(.glass) { background: var(--gold); }
.btn--gold.is-hover { --tint: rgba(255, 221, 77, .97); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--ink-2); }
.btn--line { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }
.btn--line:hover { background: rgba(17, 17, 17, .06); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; overflow-wrap: anywhere; text-align: left; }

/* ============ NAV ============ */
.nav-wrap {
  position: fixed; z-index: 50; left: 0; right: 0;
  top: calc(clamp(12px, 1.6vw, 26px) + env(safe-area-inset-top, 0px));
  padding: 0 max(12px, env(safe-area-inset-left, 0px)) 0 max(12px, env(safe-area-inset-right, 0px));
}
.nav {
  max-width: 1080px; margin: 0 auto; border-radius: var(--r-pill);
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 22px;
  --tint: rgba(255, 255, 255, .26);
}
.brand { font: 400 24px/1 var(--f-display); text-transform: uppercase; text-decoration: none; letter-spacing: .02em; color: var(--ink); }
.brand span { color: var(--gold); -webkit-text-stroke: 1px var(--ink); }
.nav-links { list-style: none; display: flex; gap: 2px; margin: 0 0 0 auto; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 14.5px; text-decoration: none; color: var(--ink);
}
.nav-links a:hover { background: rgba(255, 255, 255, .45); }
@media (max-width: 900px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ============ HERO ============ */
/* composição do banner: céu e palácio ao fundo, bandeiras do Paraná e da Alemanha, recorte do Habynner na frente */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  /* céu em cima e o palácio descendo até as bandeiras, como no banner */
  background:
    /* o céu cobre a borda de cima da foto do palácio e some devagar, sem deixar linha de corte */
    linear-gradient(180deg, #9ED9F3 0%, #4FB3E3 36%, rgba(63, 169, 222, .92) 46%, rgba(63, 169, 222, .55) 54%, rgba(63, 169, 222, .2) 60%, rgba(63, 169, 222, 0) 66%),
    url("img/palacio.webp") center bottom -19vw / 100% auto no-repeat,
    var(--sky);
  padding-top: calc(clamp(96px, 7vw, 120px) + env(safe-area-inset-top, 0px));
  min-height: clamp(720px, 100svh, 960px);
  display: flex; flex-direction: column; justify-content: flex-end;
}
/* retícula do banner + véu de céu para o texto ler bem */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    var(--dots) 0 0 / 5px 5px,
    radial-gradient(60% 55% at 12% 8%, rgba(255, 244, 200, .75), rgba(255, 244, 200, 0) 70%),
    linear-gradient(180deg, rgba(10, 10, 10, 0) 70%, rgba(10, 10, 10, .12) 100%);
}
.hero-in {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(12px, 3vw, 48px); align-items: end; position: relative; z-index: 2; width: 100%;
}
.hero-copy { container-type: inline-size; position: relative; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(8px, 1.5vw, 24px) 0 96px; align-self: center; max-width: 620px; }
.hero-pre {
  font: 800 clamp(20px, 2.2vw, 30px)/1.1 var(--f-body); letter-spacing: -0.03em;
  background: linear-gradient(90deg, #7A5300, #241800); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title {
  font: 400 64px/.8 var(--f-display); text-transform: uppercase; letter-spacing: -0.005em;
  display: flex; flex-direction: column; width: 100%;
}
.hero-title span { white-space: nowrap; display: block; }
/* cada linha ocupa a largura da coluna, como no banner. O main.js recalcula com a fonte carregada. */
.hero-title .t-gold { font-size: calc(100cqi / 4.1); }
.hero-title .t-ink { font-size: calc(100cqi / 5.24); }
.hero-title .t-gold { text-shadow: 0 2px 0 var(--gold-deep), 0 18px 40px rgba(90, 60, 0, .3); }
.hero-title .t-ink { text-shadow: 0 18px 40px rgba(0, 30, 60, .3); }
.hero .label { margin-top: 4px; transform: rotate(-1.2deg); }
.lead {
  font-size: clamp(15.5px, 1.25vw, 17.5px); line-height: 1.5; color: var(--ink); max-width: 56ch; font-weight: 500;
  background: rgba(255, 255, 255, .78); padding: 14px 18px; border-radius: var(--r-md);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas--center { justify-content: center; }

.hero-art { position: relative; order: -1; align-self: end; height: clamp(440px, 58vw, 790px); }
.hero-person { position: absolute; z-index: 2; left: 50%; bottom: 0; transform: translateX(-50%); height: 100%; width: auto; max-width: none; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .3)); }
.flag { position: absolute; pointer-events: none; max-width: none; }
.flag--pr { z-index: 1; width: 115%; left: -48%; bottom: 4%; transform: rotate(-6deg); filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .25)); }
.flag--de { z-index: 1; width: min(44vw, 760px); right: -9vw; bottom: -24%; pointer-events: none;
  /* o topo da bandeira se dissolve no céu para DA ALEMANHA não sumir sobre o preto */
  -webkit-mask: linear-gradient(transparent 4%, rgba(0, 0, 0, .35) 26%, #000 46%); mask: linear-gradient(transparent 4%, rgba(0, 0, 0, .35) 26%, #000 46%); }
.hero-fade { position: absolute; inset: auto 0 0; height: 80px; z-index: 4; background: linear-gradient(transparent, var(--white)); pointer-events: none; }

@media (max-width: 860px) {
  .hero { min-height: 0; background-size: auto, auto 62%, auto; background-position: 0 0, 35% 100%, 0 0; }
  .hero::before { background: var(--dots) 0 0 / 5px 5px; }
  /* no celular a foto vem primeiro; a base dela some e o texto entra por cima, sobre um véu desfocado sem borda */
  .hero-in { display: flex; flex-direction: column; gap: 0; padding-bottom: 96px; }
  .hero-art { order: -1; align-self: stretch; height: clamp(340px, 92vw, 500px); margin-top: 4px; }
  .hero-person { -webkit-mask: linear-gradient(#000 74%, transparent 98%); mask: linear-gradient(#000 74%, transparent 98%); }
  .hero-copy { padding: 0; margin-top: -40px; max-width: none; align-self: stretch; }
  .hero-copy::before {
    content: ""; position: absolute; inset: -36px -16px -24px; z-index: -1; pointer-events: none;
    background: rgba(200, 232, 250, .3);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    -webkit-mask: linear-gradient(transparent, #000 14%, #000 88%, transparent); mask: linear-gradient(transparent, #000 14%, #000 88%, transparent);
  }
  .flag--pr { width: 100%; height: auto; left: -18%; bottom: 22%; }
  .flag--de { width: 96vw; right: -42vw; bottom: -4%; }
}

/* ============ TERMÔMETRO ============ */
.goal-band { background: var(--white); padding: 0 0 clamp(36px, 5vw, 56px); position: relative; }
.goal {
  background: var(--white); color: var(--ink); border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: center;
  transform: translateY(-34px); margin-bottom: -34px; position: relative; z-index: 3;
  box-shadow: 0 24px 60px rgba(10, 10, 10, .22), 0 0 0 1px var(--line);
}
.goal-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.goal-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.goal-kicker { font-size: 14px; font-weight: 700; color: var(--text-soft); }
.goal-value { font: 400 clamp(44px, 5.6vw, 72px)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.goal-of { color: var(--text-soft); font-weight: 700; font-variant-numeric: tabular-nums; }
.bar { height: 16px; border-radius: var(--r-pill); background: #E9EEF2; overflow: hidden; display: flex; }
.bar-fill { display: block; height: 100%; width: 0; min-width: 0; transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.bar-fill--pix { background: var(--gold); border-radius: var(--r-pill) 0 0 var(--r-pill); }
.bar-fill--vk { background: var(--red); order: 2; border-radius: 0 var(--r-pill) var(--r-pill) 0; }
.bar.is-empty::before { content: ""; width: 14px; height: 100%; border-radius: var(--r-pill); background: var(--gold); }
.goal-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.goal-foot strong { color: var(--ink); }
.goal-split { display: inline-flex; align-items: center; gap: 7px; }
.key { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.key--pix { background: var(--gold); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.key--vk { background: var(--red); }
.goal-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pix {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 10px 10px 18px;
  border: 0; border-radius: var(--r-md); background: var(--gold); color: var(--ink); cursor: pointer; text-align: left;
  font: inherit; transition: background-color .2s ease, transform .2s ease;
}
.pix:hover { background: var(--gold-2); }
.pix:active { transform: scale(.98); }
.pix-label { font: 400 15px/1 var(--f-display); text-transform: uppercase; letter-spacing: .03em; }
.pix code { font: 500 14px/1.3 var(--f-mono); flex: 1; min-width: 0; overflow-wrap: anywhere; }
.pix-action { font-weight: 800; font-size: 14px; padding: 10px 14px; border-radius: var(--r-pill); background: var(--ink); color: var(--white); white-space: nowrap; }
.goal-note { font-size: 13.5px; color: var(--text-soft); line-height: 1.45; }
@media (max-width: 860px) { .goal { grid-template-columns: minmax(0, 1fr); } }

/* ============ FAIXA ============ */
.ribbon { background: var(--gold); color: var(--ink); overflow: hidden; padding: 16px 0; transform: rotate(-1.6deg); margin: 30px -2vw 0; position: relative; z-index: 2; box-shadow: 0 -10px 0 var(--ink), 0 10px 0 var(--red); }
.ribbon-track { display: flex; align-items: center; gap: 30px; width: max-content; animation: ticker 32s linear infinite; }
.ribbon span { font: 400 clamp(28px, 3.6vw, 44px)/1 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.ribbon i { font-style: normal; font-size: clamp(20px, 2.4vw, 28px); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ============ FAIXAS ============ */
.band { padding-block: clamp(76px, 10vw, 128px); }
.band--tight { padding-block: clamp(40px, 6vw, 72px); }
.band--soft { background: var(--soft); }
.band--gold { background: var(--dots-dark) 0 0 / 5px 5px, var(--gold); color: var(--ink); }
.band--ink { background: var(--ink); color: var(--white); }
.section-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--text-soft); max-width: 56ch; font-size: 18px; font-weight: 500; }
.band--gold .section-head p { color: var(--ink-2); }
.band--ink .section-head p { color: rgba(255, 255, 255, .75); }
.section-head--left { align-items: flex-start; text-align: left; }

/* fotos com espaço reservado enquanto não chegam */
.photo {
  position: relative; margin: 0; overflow: hidden; border-radius: var(--r-lg);
  background: var(--soft); border: 2px dashed rgba(10, 10, 10, .25);
  display: flex; align-items: center; justify-content: center;
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.photo:has(img) { border-style: solid; border-color: transparent; }
.photo-label { color: var(--text-soft); text-align: center; font-size: 15px; padding: 14px; line-height: 1.4; }
.photo-label small { font-family: var(--f-mono); font-size: 12px; }
.photo--tall { aspect-ratio: 4 / 5; }

/* história */
.intro { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.intro-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.intro-text p { color: var(--text-soft); font-size: 18px; max-width: 58ch; }
.intro-text h2 { margin-bottom: 6px; }
@media (max-width: 800px) { .intro { grid-template-columns: minmax(0, 1fr); } .photo--tall { max-width: 420px; } }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: clamp(48px, 7vw, 88px); }
.stat { background: var(--ink); color: var(--white); border-radius: var(--r-lg); padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.stat-n { font: 400 clamp(52px, 6vw, 78px)/1 var(--f-display); color: var(--gold); font-variant-numeric: tabular-nums; }
.stat-t { color: rgba(255, 255, 255, .78); font-size: 15px; max-width: 24ch; }
.stat--gold { background: var(--gold); color: var(--ink); }
.stat--gold .stat-n { color: var(--ink); }
.stat--gold .stat-t { color: var(--ink-2); }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .stats { grid-template-columns: minmax(0, 1fr); } }

/* trajetória: linhas com miniatura */
.steps { list-style: none; margin: 0 auto; padding: 0; display: flex; flex-direction: column; gap: 12px; max-width: 1000px; }
.step {
  background: var(--white); border-radius: var(--r-lg); padding: 10px 26px 10px 10px;
  display: grid; grid-template-columns: 150px 120px minmax(0, 1fr); gap: 22px; align-items: center;
  box-shadow: 0 10px 30px rgba(10, 10, 10, .12);
}
.photo--thumb { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
.photo--thumb .photo-label { padding: 6px; }
.step-year { font: 400 clamp(30px, 3.2vw, 42px)/1 var(--f-display); text-transform: uppercase; color: var(--ink); }
.step-body { display: flex; flex-direction: column; gap: 6px; padding-block: 10px; }
.step-body p { color: var(--text-soft); font-size: 15.5px; }
.step--next { background: var(--ink); color: var(--white); grid-template-columns: 120px minmax(0, 1fr) auto; padding: 22px 26px; }
.step--next .step-year { color: var(--gold); }
.step--next .step-body p { color: rgba(255, 255, 255, .78); }
/* conquistas: selos de medalha, quadro por olimpíada e o que veio além das medalhas */
.medals { list-style: none; margin: 2px 0 4px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.medal {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 7px; border-radius: 999px;
  background: var(--soft); color: var(--ink); font-size: 13.5px; font-weight: 700; line-height: 1.2;
}
.medal b { font-weight: 500; color: var(--ink-2); }
.medal::before { content: ""; width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); }
.medal--ouro::before { background: radial-gradient(circle at 35% 30%, #FFE680, #E0A800); }
.medal--prata::before { background: radial-gradient(circle at 35% 30%, #F4F6F8, #9AA3AD); }
.medal--bronze::before { background: radial-gradient(circle at 35% 30%, #F0B583, #A45F2A); }
.medal--mencao::before { background: var(--white); border: 2px solid var(--ink); box-shadow: none; box-sizing: border-box; }
.medal--feito::before { background: var(--red); }

.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 1000px; margin: 0 auto clamp(28px, 4vw, 44px); }
.board-card { background: var(--ink); color: var(--white); border-radius: var(--r-lg); padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.board-k { font: 400 clamp(34px, 3.6vw, 46px)/1 var(--f-display); color: var(--gold); text-transform: uppercase; }
.board-name { font-size: 14px; color: rgba(255, 255, 255, .7); min-height: 2.8em; }
.board-card .medal { background: rgba(255, 255, 255, .1); color: var(--white); }
.board-card .medal b { color: rgba(255, 255, 255, .75); }
@media (max-width: 760px) { .board { grid-template-columns: minmax(0, 1fr); } .board-name { min-height: 0; } }

.extras-title { max-width: 1000px; margin: clamp(36px, 5vw, 56px) auto 14px; font-size: clamp(22px, 2.4vw, 28px); }
.extras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 1000px; margin: 0 auto; }
.extra { background: var(--white); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: 0 10px 30px rgba(10, 10, 10, .12); display: flex; flex-direction: column; gap: 6px; }
.extra-k { font-weight: 800; font-size: 17px; }
.extra p:not(.extra-k) { color: var(--text-soft); font-size: 15px; }
@media (max-width: 760px) { .extras { grid-template-columns: minmax(0, 1fr); } }

@media (max-width: 720px) {
  .step { grid-template-columns: 96px minmax(0, 1fr); gap: 4px 16px; padding: 10px 16px 10px 10px; }
  .step .photo--thumb { grid-row: span 2; align-self: start; }
  .step-year { font-size: 26px; padding-top: 6px; }
  .step-body { padding-block: 0 8px; }
  .step--next { grid-template-columns: minmax(0, 1fr); padding: 22px; gap: 8px; }
  .step--next .btn { justify-self: start; }
}

/* hoje */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.role { border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.role-tag { font: 400 15px/1 var(--f-display); letter-spacing: .04em; background: var(--gold); padding: 7px 12px; border-radius: var(--r-pill); }
.role p:not(.role-tag) { color: var(--text-soft); font-size: 15.5px; }
.role-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.role .role-when { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.role--wide { grid-column: 1 / -1; background: var(--ink); color: var(--white); border-color: var(--ink); }
.role--wide p:not(.role-tag) { color: rgba(255, 255, 255, .78); max-width: 70ch; }
.role--wide .role-when { color: var(--gold); }
.role-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; width: 100%; }
.role-list li { background: rgba(255, 255, 255, .08); border-radius: var(--r-md); padding: 12px 14px 12px 36px; position: relative; font-size: 15px; font-weight: 500; }
.role-list li::before { content: ""; position: absolute; left: 14px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }

/* mannheim */
.mannheim { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.mannheim-text { display: flex; flex-direction: column; gap: 18px; }
.mannheim-text p { color: rgba(255, 255, 255, .8); font-size: 18px; max-width: 56ch; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 0; }
.facts div { border-top: 2px solid var(--gold); padding-top: 12px; }
.facts dt { font-size: 13px; color: rgba(255, 255, 255, .6); font-weight: 700; }
.facts dd { margin: 4px 0 0; font: 400 clamp(22px, 2.6vw, 30px)/1.1 var(--f-display); text-transform: uppercase; color: var(--gold); }
.route {
  border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); padding-top: clamp(140px, 18vw, 220px); color: var(--white);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, .55) 45%, rgba(10, 10, 10, .92) 100%), var(--sky) url("img/palacio-m.webp") center 30% / cover no-repeat;
}
.route-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.route-list li { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 34px; position: relative; }
.route-list li:last-child { padding-bottom: 0; }
.route-list li:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 26px; bottom: 0; width: 2px; background: repeating-linear-gradient(to bottom, var(--white) 0 6px, transparent 6px 12px); }
.dot { flex: none; width: 22px; height: 22px; border-radius: 50%; margin-top: 4px; border: 3px solid var(--white); box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.dot--br { background: var(--pr-green); }
.dot--rj { background: var(--white); box-shadow: inset 0 0 0 5px var(--ink), 0 4px 12px rgba(0, 0, 0, .2); }
.dot--de { background: linear-gradient(var(--ink) 0 33%, var(--red) 33% 66%, var(--gold) 66%); }
.dot--br { background: linear-gradient(135deg, var(--pr-green) 0 35%, var(--white) 35% 65%, var(--pr-green) 65%); }
.route-city { font: 400 clamp(24px, 2.8vw, 32px)/1.1 var(--f-display); text-transform: uppercase; }
.route-note { color: rgba(255, 255, 255, .8); font-size: 15px; font-weight: 600; }
@media (max-width: 860px) { .mannheim { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .facts { grid-template-columns: minmax(0, 1fr); } }

/* custos: lista com ícones + cartão da meta */
.costs { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.cost-list { list-style: none; margin: 0; padding: 8px 0; background: var(--soft); border-radius: var(--r-lg); }
.cost { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 22px; }
.cost + .cost { border-top: 1px solid var(--line); }
.cost-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--white); display: grid; place-items: center; }
.cost-ic svg { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cost p:not(.cost-v) { color: var(--text-soft); font-size: 15px; }
.cost-v { font: 400 22px/1 var(--f-display); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cost-total { container-type: inline-size; background: var(--gold); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 12px; position: relative; overflow: hidden; }
/* a foto ocupa o espaço livre no topo do cartão e se dissolve no ouro antes do texto */
.cost-total-photo {
  flex: 1 1 0; min-height: 260px; width: calc(100% + 2 * clamp(24px, 4vw, 40px)); max-width: none;
  margin: calc(-1 * clamp(24px, 4vw, 40px)) calc(-1 * clamp(24px, 4vw, 40px)) 0;
  object-fit: cover; object-position: 45% 30%;
  -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent);
}
.cost-total-k { font-weight: 800; }
.cost-total-v { font: 400 min(calc(100cqi / 3.9), 104px)/.9 var(--f-display); white-space: nowrap; }
.cost-total-t { color: var(--ink-2); max-width: 32ch; font-size: 15.5px; }
@media (max-width: 860px) { .costs { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .cost { grid-template-columns: 44px minmax(0, 1fr); } .cost-ic { width: 44px; height: 44px; } .cost-v { grid-column: 2; } }

/* bilhetes (cartão de embarque) */
.tickets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ticket {
  --notch: 14px;
  position: relative; display: flex; flex-direction: column; background: var(--white); color: var(--ink);
  border-radius: var(--r-lg);
  -webkit-mask: radial-gradient(circle var(--notch) at 0 calc(100% - 132px), #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% calc(100% - 132px), #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle var(--notch) at 0 calc(100% - 132px), #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle var(--notch) at 100% calc(100% - 132px), #0000 98%, #000) right / 51% 100% no-repeat;
}
.ticket-main { padding: 24px 22px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ticket-route { font: 400 15px/1 var(--f-display); letter-spacing: .08em; color: var(--text-soft); }
.ticket-route span { color: var(--red); margin: 0 4px; }
.ticket-v { font: 400 clamp(44px, 4.4vw, 58px)/1 var(--f-display); text-transform: uppercase; }
.ticket-t { color: var(--text-soft); font-size: 14.5px; }
.ticket-tag { align-self: flex-start; font-weight: 800; font-size: 12.5px; background: var(--ink); color: var(--gold); padding: 6px 10px; border-radius: var(--r-pill); }
.ticket-stub {
  height: 132px; border-top: 2px dashed rgba(17, 17, 17, .22); margin: 0 var(--notch);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px;
}
.qr { width: 96px; height: 96px; flex: none; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr svg rect[fill="white"], .qr svg rect[fill="#ffffff"] { fill: transparent; }
.ticket--hot { background: var(--gold); }
.ticket--hot .ticket-route, .ticket--hot .ticket-t { color: var(--ink-2); }
.tickets-note { margin: 22px auto 0; text-align: center; font-size: 15px; color: rgba(255, 255, 255, .78); max-width: 70ch; }
@media (max-width: 1040px) {
  .tickets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* com 2 colunas sobra um bilhete no fim; ele ocupa a linha inteira */
  .ticket:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .tickets { grid-template-columns: minmax(0, 1fr); }
  .qr { display: none; }
  .ticket-stub { height: 76px; justify-content: flex-end; }
  .ticket { -webkit-mask: none; mask: none; }
}
@media (hover: none) and (max-width: 860px) { .qr { display: none; } }

.help { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: clamp(32px, 5vw, 48px); }
.help-card { background: rgba(255, 255, 255, .07); color: var(--white); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.help-card p { color: rgba(255, 255, 255, .75); font-size: 15.5px; flex: 1; }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.band--ink .help-card .btn--ink { background: var(--white); color: var(--ink); }
.band--ink .help-card .btn--line { color: var(--white); box-shadow: inset 0 0 0 2px var(--white); }
.band--ink .help-card .btn--line:hover { background: rgba(255, 255, 255, .1); }

/* instagram: cartão de perfil */
.insta {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center;
  padding: clamp(24px, 4vw, 48px); border-radius: var(--r-xl); overflow: hidden; text-decoration: none; color: var(--white);
  background: var(--ink);
}
.insta::before {
  content: ""; position: absolute; width: 46%; aspect-ratio: 1; right: -12%; top: -50%;
  border-radius: 50%; background: radial-gradient(circle, rgba(221, 0, 0, .4), rgba(221, 0, 0, 0) 65%);
}
.insta-avatar {
  width: clamp(120px, 18vw, 220px); aspect-ratio: 1; border-radius: 50%; padding: 6px; position: relative;
  background: conic-gradient(var(--ink), var(--red), var(--gold), var(--red), var(--ink));
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.insta-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 8%; border: 5px solid var(--ink); background: var(--gold); }
.insta:hover .insta-avatar { transform: rotate(-4deg) scale(1.03); }
.insta-copy { container-type: inline-size; position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; min-width: 0; }
.insta-pre { font-weight: 800; font-size: 17px; color: rgba(255, 255, 255, .8); }
.insta-handle { font: 400 min(calc(100cqi / 8.4), 84px)/1 var(--f-display); text-transform: uppercase; color: var(--gold); white-space: nowrap; }
@media (max-width: 600px) { .insta { grid-template-columns: minmax(0, 1fr); justify-items: start; } }

/* dúvidas */
.faq-wrap { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 800px) { .faq-wrap { grid-template-columns: minmax(0, 1fr); } }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--white); border-radius: var(--r-md); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 64px; padding: 18px 60px 18px 22px; position: relative;
  font: 800 17.5px/1.35 var(--f-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 14px; top: 50%; width: 34px; height: 34px; margin-top: -17px;
  display: grid; place-items: center; border-radius: 50%; background: var(--gold);
  font: 400 22px/1 var(--f-display); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-soft); padding: 0 22px 22px; max-width: 62ch; }

/* cta final: pátio do palácio ao fundo */
.final {
  position: relative; overflow: hidden; text-align: center; color: var(--white);
  padding-block: clamp(90px, 12vw, 160px);
  background:
    linear-gradient(180deg, rgba(10, 10, 10, .2) 0%, rgba(10, 10, 10, .55) 55%, rgba(10, 10, 10, .9) 100%),
    var(--sky) url("img/palacio.webp") center 40% / cover no-repeat;
}
.final-in { container-type: inline-size; position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.final .hero-pre { background: none; color: var(--white); }
.final-title { font: 400 min(calc(100cqi / 6.3), 140px)/.9 var(--f-display); text-transform: uppercase; display: flex; flex-direction: column; }
.final-title span { white-space: nowrap; }
.final-title .t-gold { text-shadow: 0 2px 0 var(--gold-deep); }
.final-title .t-ink { color: var(--white); }
.final .label { transform: rotate(-1.2deg); margin-bottom: 10px; }
.final .btn--ink { background: var(--red); }
.final .btn--ink:hover { background: var(--red-deep); }

/* rodapé */
.footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding-block: 40px calc(56px + env(safe-area-inset-bottom, 0px)); }
.footer-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; font-size: 15px; }
.brand--foot { margin: 0; color: var(--white); }
.brand--foot span { -webkit-text-stroke: 0; }
.footer-small { font-family: var(--f-mono); font-size: 13px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  z-index: 70; padding: 12px 20px; border-radius: var(--r-pill); max-width: calc(100vw - 32px); text-align: center;
  background: var(--ink); color: var(--gold); font-weight: 800; font-size: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glass, .glass::after, .bar-fill { transition: none; }
  .ribbon-track { animation: none; }
}

/* ============ COMPARTILHAR ============ */
.final-share { margin-top: 18px; color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.share { border: 0; padding: 0; background: transparent; max-width: min(980px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); }
.share::backdrop { background: rgba(10, 10, 10, .72); }
.share-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; background: var(--white); color: var(--ink); border-radius: var(--r-xl); padding: 28px; max-height: calc(100dvh - 24px); overflow: auto; }
.share-x { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--soft); font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
.share-x:hover { background: #ECE7DA; }
.share-art { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.share-tabs { display: inline-flex; align-self: flex-start; background: var(--soft); border-radius: var(--r-pill); padding: 4px; gap: 4px; }
.share-tabs button { border: 0; background: none; font: 700 15px/1 var(--f-body); padding: 10px 18px; border-radius: var(--r-pill); cursor: pointer; color: var(--ink); }
.share-tabs button[aria-selected="true"] { background: var(--ink); color: var(--white); }
.share-preview { display: flex; align-items: center; justify-content: center; background: var(--soft); border-radius: var(--r-lg); aspect-ratio: 4 / 5; overflow: hidden; }
.share-preview--story { aspect-ratio: 9 / 16; max-height: 62dvh; align-self: center; width: auto; height: 62dvh; }
.share-preview img { width: 100%; height: 100%; object-fit: contain; display: block; }
.share-preview span { color: var(--text-soft); font-size: 15px; padding: 20px; text-align: center; }
.share-side { display: flex; flex-direction: column; gap: 14px; padding-top: 52px; min-width: 0; }
.share-side h3 { font-size: clamp(24px, 2.6vw, 30px); }
.share-side > p { color: var(--text-soft); font-size: 15.5px; }
.share-main { display: flex; flex-wrap: wrap; gap: 10px; }
.share-k { font-weight: 800; font-size: 14px; margin-top: 8px; color: var(--ink) !important; }
.share-links { display: flex; flex-wrap: wrap; gap: 8px; }
.share-link { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: var(--r-pill); background: var(--soft); color: var(--ink); font: 700 14.5px/1 var(--f-body); text-decoration: none; border: 0; cursor: pointer; }
.share-link:hover { background: #ECE7DA; }
@media (max-width: 760px) {
  .share-in { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; gap: 18px; }
  .share-side { padding-top: 0; }
  .share-preview--story { height: 56dvh; }
}
.btn--light { background: var(--white); color: var(--ink); box-shadow: 0 10px 24px rgba(0, 30, 60, .16); }
.btn--light:hover { background: var(--soft); }
