/* Brilha Capão: landing page temporária
   Cores e fonte vêm do design do Google Stitch. */

:root {
  --red-950: #450a0a;
  --red-900: #7f1d1d;
  --red-800: #991b1b;
  --red-700: #b91c1c;

  --gold-300: #fde68a;
  --gold-400: #facc15;
  --gold-500: #ca8a04;   /* dourado do Stitch, usado em superfícies e bordas */
  --gold-700: #a16207;   /* dourado escuro, usado em texto e botões (contraste) */
  --gold-800: #854d0e;

  --cream-50: #fffbeb;
  --cream-100: #fef3c7;
  --cream-200: #fde68a;

  --ink: #451a03;        /* marrom do texto principal */
  --ink-soft: #78350f;   /* marrom do texto de apoio */

  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow-sm: 0 2px 6px -2px rgb(69 26 3 / .12);
  --shadow-md: 0 12px 28px -12px rgb(69 26 3 / .28);
  --shadow-lg: 0 24px 48px -20px rgb(69 26 3 / .35);

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
}

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

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream-50);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--gold-400); color: var(--red-950); }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

a { color: var(--gold-700); text-underline-offset: .2em; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Topo ---------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(3rem, env(safe-area-inset-top)) 1rem 4rem;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(120% 70% at 50% 0%, rgb(250 204 21 / .12), transparent 60%),
    linear-gradient(180deg, var(--red-950) 0%, var(--red-900) 35%, var(--red-800) 75%, var(--red-700) 100%);
}

.sparkles { position: absolute; inset: 0; pointer-events: none; }

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 6px #fff, 0 0 12px var(--gold-300);
  opacity: 0;
  animation: twinkle 4s var(--ease-out) infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(.4); }
  50% { opacity: 1; transform: scale(1); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 56rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -.01em;
}

.brand__star { width: 1.75rem; height: 1.75rem; fill: var(--gold-400); filter: drop-shadow(0 2px 8px rgb(250 204 21 / .5)); }

.hero__title {
  display: flex;
  flex-direction: column;
  font-size: clamp(2.6rem, 8vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-shadow: 0 4px 24px rgb(69 10 10 / .45);
}

.hero__title-gold { color: var(--gold-300); }

.hero__lead {
  max-width: 38rem;
  font-size: clamp(1rem, 2.2vw, 1.175rem);
  color: #fef3c7;
}

/* Contagem regressiva */

.countdown {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.countdown__title {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--gold-300);
}

.countdown__clock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.5rem, 2vw, 1rem);
}

.countdown__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  min-width: clamp(4.25rem, 18vw, 7rem);
  padding: clamp(.75rem, 2.5vw, 1.25rem) .5rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(69 10 10 / .55), rgb(69 10 10 / .35));
  border: 1px solid rgb(253 230 138 / .35);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .08), 0 10px 24px -12px rgb(0 0 0 / .5);
}

.countdown__num {
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.countdown__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.countdown__note { font-size: .95rem; color: #fef3c7; }

/* Quando as inscrições abrem, a contagem vira um aviso */
.countdown--open .countdown__clock { display: none; }
.countdown--open .countdown__title {
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: -.01em;
  color: #fff;
}

/* ---------- Conteúdo ---------- */

.content {
  background: linear-gradient(180deg, var(--cream-100) 0%, var(--cream-50) 40rem);
  padding: clamp(3.5rem, 8vw, 6rem) 1rem clamp(3rem, 6vw, 5rem);
}

.section {
  max-width: 60rem;
  margin: 0 auto;
}

.section + .section { margin-top: clamp(4.5rem, 10vw, 7rem); }

.section__head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
}

.section__title--xl { font-size: clamp(2.25rem, 6vw, 3.5rem); letter-spacing: -.03em; }

.section__lead {
  max-width: 40rem;
  margin: 0 auto;
  font-size: 1.075rem;
  color: var(--ink-soft);
}

.section__lead strong { color: var(--gold-700); }

/* Abas de categoria */

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 2rem;
}

.tabs__btn {
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  min-height: 2.75rem;
  padding: .6rem 1.4rem;
  border: 1px solid var(--cream-200);
  border-radius: 999px;
  background: rgb(255 255 255 / .7);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), box-shadow .2s var(--ease-out);
}

.tabs__btn[aria-selected="true"] {
  background: var(--gold-700);
  border-color: var(--gold-700);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* Cartão de prêmios */

.prize-card {
  max-width: 34rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: clamp(1.75rem, 5vw, 2.5rem);
  text-align: center;
  border: 2px solid var(--gold-500);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #fffef5 0%, var(--cream-50) 45%, var(--cream-100) 100%);
  box-shadow: var(--shadow-lg);
  animation: fade-up .5s var(--ease-out);
}

.prize-card__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgb(202 138 4 / .15);
}

.prize-card__icon svg {
  width: 2.25rem;
  height: 2.25rem;
  fill: none;
  stroke: var(--gold-700);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.prize-card__title { font-size: 1.35rem; font-weight: 700; }

.prize-card__who { max-width: 28rem; color: var(--ink-soft); }

.prize-card__grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: .5rem;
}

.prize-area {
  padding: 1.25rem 1rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--cream-200);
}

.prize-area__name {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .75rem;
}

.prize-area__list { margin: 0; display: flex; flex-direction: column; gap: .6rem; }
.prize-area__list div { display: flex; flex-direction: column; }
.prize-area__list dt { font-size: .875rem; font-weight: 600; color: var(--ink-soft); }
.prize-area__list dd {
  margin: 0;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--gold-700);
  font-variant-numeric: tabular-nums;
}

.prize-area__list div + div dd { font-size: clamp(1.2rem, 3.5vw, 1.5rem); }

/* Etapas */

.steps__layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.step-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: 2.25rem 2rem 2rem;
  border-radius: var(--radius-lg);
  background: rgb(255 255 255 / .75);
  border: 1px solid var(--cream-200);
  box-shadow: var(--shadow-md);
  color: var(--ink-soft);
  animation: fade-up .45s var(--ease-out);
}

.step-panel__badge {
  position: absolute;
  top: -.8rem;
  left: 2rem;
  padding: .25rem .8rem;
  border-radius: 999px;
  background: var(--gold-700);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.step-panel__badge:empty { display: none; }

.step-panel__title { font-size: 1.5rem; font-weight: 700; color: var(--ink); }
.step-panel__date { font-weight: 700; color: var(--gold-700); }

.step-panel__dates {
  list-style: none;
  margin: .25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.step-panel__dates li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: .75rem;
  padding-top: .5rem;
  border-top: 1px solid var(--cream-200);
}

.step-panel__dates strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.steps__nav { display: flex; flex-direction: column; gap: .5rem; }

.steps__btn {
  font: inherit;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 3.5rem;
  padding: .75rem 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-soft);
  text-align: left;
  cursor: pointer;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out);
}

.steps__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--cream-200);
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 1.1rem;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out);
}

.steps__btn[aria-selected="true"] {
  background: rgb(202 138 4 / .14);
  border-color: var(--gold-500);
  color: var(--gold-800);
  font-weight: 700;
}

.steps__btn[aria-selected="true"] .steps__num { background: var(--gold-700); color: #fff; }

/* Edital */

.edital__box {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--red-900);
  color: #fef3c7;
  box-shadow: var(--shadow-lg);
}

.edital__icon {
  width: 3rem;
  height: 3rem;
  fill: none;
  stroke: var(--gold-300);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.edital__text { display: flex; flex-direction: column; gap: .35rem; }
.edital__title { font-size: 1.5rem; font-weight: 700; color: #fff; }
.edital__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Dúvidas frequentes */

.faq { max-width: 46rem; }

.faq__group + .faq__group { margin-top: 2.5rem; }

.faq__group-title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-800);
  margin-bottom: .75rem;
}

.faq__item {
  border-radius: var(--radius);
  background: rgb(255 255 255 / .75);
  border: 1px solid var(--cream-200);
  box-shadow: var(--shadow-sm);
}

.faq__item + .faq__item { margin-top: .6rem; }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}

.faq__item summary::-webkit-details-marker { display: none; }

/* Sinal de "+" que vira "−" quando a resposta abre */
.faq__item summary::after {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  background:
    linear-gradient(var(--gold-700), var(--gold-700)) center / 100% 2px no-repeat,
    linear-gradient(var(--gold-700), var(--gold-700)) center / 2px 100% no-repeat;
  transition: transform .25s var(--ease-out);
}

.faq__item[open] summary::after { transform: rotate(180deg); background-size: 100% 2px, 2px 0; }

.faq__answer {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 0 1.25rem 1.25rem;
  color: var(--ink-soft);
  animation: fade-up .35s var(--ease-out);
}

.faq__answer ul,
.faq__answer ol { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: .3rem; }

.faq__answer strong { color: var(--ink); }

/* Botões */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s var(--ease-out), transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}

.btn:active { transform: scale(.97); }

.btn--primary {
  background: var(--gold-400);
  color: var(--red-950);
  box-shadow: 0 6px 16px -6px rgb(0 0 0 / .4);
}

.btn--ghost {
  color: #fff;
  border: 1px solid rgb(253 230 138 / .5);
}

@media (hover: hover) {
  .tabs__btn:not([aria-selected="true"]):hover { background: var(--cream-200); color: var(--ink); }
  .steps__btn:not([aria-selected="true"]):hover { background: rgb(253 230 138 / .45); }
  .btn--primary:hover { background: var(--gold-300); }
  .btn--ghost:hover { background: rgb(255 255 255 / .1); }
  .faq__item summary:hover { background: rgb(253 230 138 / .3); }
  a:hover { color: var(--gold-800); }
}

/* Rodapé */

.footer {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: 2.5rem 1rem max(2.5rem, env(safe-area-inset-bottom));
  text-align: center;
  font-size: .9rem;
  color: var(--ink-soft);
  background: rgb(120 53 15 / .08);
}

.footer strong { color: var(--ink); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Telas menores ---------- */

@media (max-width: 760px) {
  .steps__layout { grid-template-columns: 1fr; }
  .steps__nav {
    order: -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps__btn { gap: .6rem; padding: .6rem .75rem; font-size: .95rem; }
  .steps__num { width: 2rem; height: 2rem; font-size: .95rem; }
  .step-panel { padding: 2rem 1.25rem 1.5rem; }
  .step-panel__badge { left: 1.25rem; }

  .edital__box { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 2rem 1.25rem; }
  .edital__actions { justify-content: center; }
}

@media (max-width: 420px) {
  .tabs { gap: .5rem; }
  .tabs__btn { padding: .6rem 1rem; font-size: .9rem; }
  .prize-card__grid { grid-template-columns: 1fr; }
  .countdown__unit { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sparkle { animation: none; opacity: .7; }
  .prize-card, .step-panel, .faq__answer { animation: none; }
  .faq__item summary::after { transition: none; }
}
