:root {
  --color-navy: #115c6f;
  --color-navy-light: #0e4d5d;
  --color-gold: #115c6f;
  --color-gold-dark: #0e4d5d;
  --color-bg: #f5f6f9;
  --color-surface: #ffffff;
  --color-border: #e2e5ea;
  --color-text: #1a1f2b;
  --color-text-muted: #6b7280;
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
}

.fc-header {
  background: var(--color-navy);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-header img {
  height: 32px;
  width: auto;
}

.fc-header img.fc-header-logo-lg {
  height: 44px;
  width: auto;
}

.fc-hero {
  max-width: 640px;
  margin: 56px auto 0;
  padding: 0 20px;
  text-align: center;
}

.fc-hero h1 {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0 0 8px;
}

.fc-hero p {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  margin: 0 0 28px;
}

/* Fundo do hero público: gradiente da marca (mesmo do header oficial) +
   decoração sazonal de Thanksgiving clonada do site oficial (assets reais:
   streaks/sparks/pumpkins/branch/cluster/folhas caindo). */
.fc-hero-glow {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  padding-bottom: 64px;
  background: radial-gradient(105.38% 309.82% at 100% 50%, #3D94B5 0%, #2E7089 100%);
}

/* Faz o hero ocupar o espaço disponível até o rodapé, sem sobrar
   branco e sem precisar rolar — mas sem forçar 100vh fixo (isso
   causava o vazio grande em monitores altos, corrigido na v0.4.4). */
.fc-secureid-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}
.fc-secureid-body .fc-hero-glow { flex: 1 0 auto; }
.fc-secureid-body .fc-footer { flex-shrink: 0; }

.fc-hero-glow .fc-header { position: relative; z-index: 3; }

.fc-hero-glow .fc-hero {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin-top: 104px;
}

.fc-hero-glow .fc-hero h1 { font-size: 38px; margin-bottom: 12px; }
.fc-hero-glow .fc-hero p { font-size: 17px; margin-bottom: 36px; }

.fc-hero-glow .fc-resultados {
  position: relative;
  z-index: 3;
  margin-top: 32px;
  margin-bottom: 0;
}

.fc-hero-glow .fc-hero h1 { color: #fff; }
.fc-hero-glow .fc-hero p { color: rgba(255, 255, 255, .8); }

.fc-hero-glow .fc-busca-form { max-width: 560px; }
.fc-hero-glow .fc-busca-input,
.fc-hero-glow .fc-busca-btn { height: 52px; }
.fc-hero-glow .fc-busca-input { font-size: 16px; }
.fc-hero-glow .fc-busca-btn { font-size: 15px; }

.fc-hero-glow .fc-busca-btn {
  background: #fff;
  color: var(--color-navy);
}
.fc-hero-glow .fc-busca-btn:hover { background: #e5f3f6; }

.fc-hero-glow .fc-card {
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 12px 32px rgba(3, 12, 22, .28);
}

/* Streaks: imagem com transparência, cobre a parte de cima do hero */
.fc-tg-streaks {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  transform: scale(1.06);
  mask-image: linear-gradient(#000 66%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-image: linear-gradient(#000 66%, rgba(0, 0, 0, 0) 100%);
  animation: fc-tg-streaks-drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes fc-tg-streaks-drift {
  0%   { transform: scale(1.06) translate(-1.2%); }
  100% { transform: scale(1.06) translate(1.2%, -.6%); }
}

.fc-tg-sparks {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.fc-tg-spark {
  position: absolute;
  border-radius: 999px;
  opacity: .3;
  background: radial-gradient(circle, rgba(255, 246, 220, .98) 0%, rgba(240, 214, 160, .6) 40%, rgba(240, 214, 160, 0) 72%);
  animation: fc-tg-twinkle var(--tw, 4s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes fc-tg-twinkle {
  0%, 100% { opacity: .2; transform: scale(.7); }
  50%      { opacity: 1; transform: scale(1.15); }
}

.fc-tg-art {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}
.fc-tg-art img { display: block; width: 100%; height: auto; }

.fc-tg-sway { transform-origin: 100% 0; animation: fc-tg-sway 9s ease-in-out infinite alternate; }

@keyframes fc-tg-sway {
  0%   { transform: rotate(1.4deg); }
  100% { transform: rotate(-1.6deg); }
}

.fc-tg-leaves { position: absolute; inset: 0; z-index: 1; pointer-events: none; }

.fc-tg-leaf {
  position: absolute;
  opacity: 0;
  animation: fc-tg-drift var(--dur, 14s) ease-in-out var(--delay, 0s) infinite;
}
.fc-tg-leaf img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 6px 8px rgba(2, 20, 28, .35));
}

@keyframes fc-tg-drift {
  0%   { opacity: 0; transform: translateY(-24px) rotate(0deg); }
  12%  { opacity: 1; }
  50%  { transform: translate3d(calc(var(--dx) * -.4), calc(var(--dy) * .45), 0) rotate(calc(var(--rot) * .5)); }
  88%  { opacity: 1; }
  100% { transform: translate3d(var(--dx), var(--dy), 0) rotate(var(--rot)); opacity: 0; }
}

@media (max-width: 1549px) {
  .fc-tg-art, .fc-tg-leaves { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fc-tg-streaks, .fc-tg-spark, .fc-tg-sway, .fc-tg-leaf { animation: none; }
}

/* Frascos flutuantes (mesmas imagens/animação do hero oficial da Peptora,
   escalados pro tamanho deste hero) */
.fc-vial-stage {
  position: absolute;
  z-index: 2;
  top: 90px;
  right: -48px;
  width: 560px;
  height: 485px;
  pointer-events: none;
  opacity: .92;
}

.fc-vial-item { position: absolute; }

.fc-vial-item img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
  transform: rotate(var(--rot));
  animation: fc-vial-float var(--dur, 12s) ease-in-out var(--delay, 0s) infinite both;
  will-change: transform;
}

.fc-vial-shadow {
  position: absolute;
  z-index: 0;
  top: 97%;
  left: 50%;
  width: 85%;
  aspect-ratio: 3 / 1;
  border-radius: 50%;
  filter: blur(8px);
  transform: translateX(-50%);
  background: radial-gradient(rgba(3, 12, 22, .32) 0%, rgba(3, 12, 22, .16) 45%, rgba(3, 12, 22, 0) 70%);
}

@keyframes fc-vial-float {
  0%, 100% { transform: translateY(calc(-1 * var(--amp))) rotate(calc(var(--rot) - 1deg)); }
  50%      { transform: translateY(var(--amp)) rotate(calc(var(--rot) + 1deg)); }
}

@media (max-width: 1549px) {
  .fc-vial-stage { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .fc-vial-item img { animation: none; }
}

.fc-busca-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.fc-busca-input {
  flex: 1;
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: var(--text-base);
  background: var(--color-surface);
  -webkit-appearance: none;
  appearance: none;
}

.fc-busca-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(17,92,111,.15);
}

.fc-busca-btn {
  height: 46px;
  padding: 0 24px;
  background: var(--color-gold);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}

.fc-busca-btn:hover { background: var(--color-gold-dark); }

@media (max-width: 480px) {
  .fc-busca-form { flex-direction: column; }
  /* Empilhado, flex:1 (flex-basis:0%) passa a valer pra altura em vez
     de largura e encolhe o campo — volta a usar a altura explícita. */
  .fc-busca-input { flex: none; width: 100%; }
}

.fc-resultados {
  max-width: 640px;
  margin: 32px auto 60px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fc-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-gold);
  border-radius: 8px;
  padding: 16px 20px;
}

.fc-card-nome {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 4px;
}

.fc-card-linha {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.fc-card-linha strong { color: var(--color-text); font-weight: 600; }

.fc-card-no-autentico {
  border-left-color: #dc2626;
  background: #fef2f2;
}

.fc-texto-erro { color: #dc2626; }

.empty-state {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-base);
  padding: 32px 0;
}

.fc-loading { text-align: center; color: var(--color-text-muted); font-size: var(--text-sm); padding: 12px 0; }

.fc-footer {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  padding: 20px 0 32px;
}
