:root {
  --green-950: #21361d;
  --green-900: #315b2a;
  --green-800: #477c38;
  --green-700: #668f3a;
  --green-500: #9ab84d;
  --green-300: #b5ca61;
  --green-200: #e4ecbd;
  --cream: #f7f8f0;
  --white: #ffffff;
  --yellow: #f2c612;
  --text: #21361d;
  --muted: #67745f;
  --line: rgba(49, 89, 42, 0.18);
  --shadow: 0 24px 60px rgba(47, 74, 36, 0.16);
  --shadow-soft: 0 14px 34px rgba(47, 74, 36, 0.11);
  font-family: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--cream); }
button, input { font: inherit; }

button {
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 24px;
  color: var(--white);
  background: var(--green-800);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}
button:hover:not(:disabled) { transform: translateY(-2px); background: var(--green-900); box-shadow: 0 12px 24px rgba(49,89,42,.18); }
button:disabled { cursor: not-allowed; opacity: .42; }

.site-shell { min-height: 100svh; overflow: hidden; background: var(--cream); }

.hero {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: 2048 / 1150;
  overflow: hidden;
  isolation: isolate;
  background-image: url("../img/kv-final-aprovado.png");
  background-size: contain;
  background-position: center top;
  background-repeat: no-repeat;
  background-color: #f4f5ef;
  border-bottom: 0;
}
.hero::after { display: none; }
.hero__shade { display: none; }

/* O KV ja contem as assinaturas e marcas; mantemos os elementos no DOM sem duplica-los visualmente. */
.brand-bar { position: absolute; inset: 0 auto auto 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.eyebrow, .stage__kicker {
  margin: 0 0 10px;
  color: var(--green-700);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.access-strip {
  position: relative;
  padding: clamp(28px, 4vw, 52px) 20px;
  background: var(--green-300);
  border-top: 8px solid var(--green-700);
  overflow: hidden;
}
.access-strip::before,
.access-strip::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.access-strip::before {
  width: 210px; height: 210px;
  left: -90px; bottom: -120px;
  background: rgba(255,255,255,.20);
}
.access-strip::after {
  width: 90px; height: 90px;
  right: 5vw; top: -42px;
  background: var(--yellow);
}
.access-form {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(24px, 3vw, 34px) clamp(24px, 4vw, 44px);
  border: 0;
  border-radius: 26px;
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-soft);
  animation: riseIn 720ms ease-out both;
}
.access-form .eyebrow { margin-bottom: 8px; }
.access-form label { display: block; margin: 16px 0 8px; color: var(--green-950); font-size: clamp(1.05rem,1.6vw,1.3rem); line-height: 1.15; font-weight: 400; }
.access-form label:first-of-type { margin-top: 0; }
.access-form__row { display: grid; grid-template-columns: minmax(0,1fr) 150px; gap: 14px; }
input {
  min-height: 52px;
  width: 100%;
  border: 1px solid rgba(49,89,42,.28);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--text);
  background: #f8faef;
  outline: none;
}
input::placeholder { color: #8a9583; }
input:focus { border-color: var(--green-700); box-shadow: 0 0 0 4px rgba(181,202,97,.28); }
.form-help, .stage__note { margin: 12px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }

/* Campo honeypot: invisivel para pessoas, mas presente no DOM (bots que
   preenchem tudo automaticamente costumam cair nele). */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { min-height: 1.35em; margin: 10px 0 0; color: #a92b2b; font-weight: 700; }

.experience {
  position: relative;
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px,8vw,96px) 0 clamp(70px,9vw,110px);
}
.experience::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  left: -260px;
  top: 80px;
  background: var(--green-300);
  opacity: .55;
  pointer-events: none;
}
.experience::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  right: -180px;
  bottom: 90px;
  background: var(--yellow);
  opacity: .16;
  pointer-events: none;
}

.stage, .quiz {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 34px 34px 34px 10px;
  padding: clamp(28px,4vw,46px);
  background: rgba(255,255,255,.9);
  box-shadow: var(--shadow-soft);
  animation: riseIn 520ms ease-out both;
}

h1,h2,p { margin-top: 0; }
.stage h1, .quiz h1 { max-width: 820px; margin-bottom: 14px; color: var(--green-950); font-size: clamp(2.15rem,5vw,4.8rem); line-height: .98; font-weight: 400; letter-spacing: -.035em; }
.selected-video h2 { margin: 0; color: var(--green-950); font-size: clamp(1.8rem,3vw,3.1rem); line-height: 1; font-weight: 400; }
.stage p { max-width: 760px; color: var(--muted); font-size: clamp(1rem,1.5vw,1.2rem); line-height: 1.5; }
.stage__header, .selected-video__header { display: flex; justify-content: space-between; gap: 20px; align-items: start; margin-bottom: 28px; }

.week-progress { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.week-progress__track { position: relative; width: min(220px, 40vw); height: 8px; border-radius: 999px; background: rgba(95,141,67,.15); overflow: hidden; }
.week-progress__fill { position: absolute; inset: 0; width: 0%; border-radius: 999px; background: var(--green-700); transition: width 420ms ease; }
.week-progress__label { color: var(--green-800); font-size: .84rem; font-weight: 700; white-space: nowrap; }
.stage__header-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

button.text-button {
  min-height: 0;
  border: 0;
  padding: 0;
  color: var(--green-700);
  background: none;
  font-size: .84rem;
  font-weight: 700;
  text-decoration: underline;
}
button.text-button:hover:not(:disabled) { color: var(--green-900); background: none; transform: none; box-shadow: none; }

.participant-pill, .progress-pill, .status-pill {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(95,141,67,.22);
  border-radius: 999px;
  padding: 0 15px;
  color: var(--green-800);
  background: #eef4d7;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
}

.week-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin-bottom: clamp(32px,5vw,56px); }
.week-card {
  position: relative;
  display: grid;
  min-height: 156px;
  align-content: space-between;
  justify-items: start;
  border: 1px solid rgba(95,141,67,.18);
  border-radius: 24px 24px 24px 8px;
  padding: 18px;
  color: var(--green-950);
  background: #f7f9ec;
  text-align: left;
  box-shadow: none;
  transition: background-color 180ms ease, box-shadow 180ms ease, border-color 180ms ease, transform 180ms ease;
}
.week-card:hover:not(:disabled) { background: #f1f5dc; box-shadow: 0 12px 26px rgba(49,89,42,.10); transform: translateY(-2px); }
.week-card.is-selected { border-color: var(--green-500); background: var(--green-300); color: var(--green-950); box-shadow: 0 14px 30px rgba(49,89,42,.16); }
.week-card.is-unavailable { color: #94a08d; background: #f6f6f0; }
.week-card.is-unavailable:hover:not(:disabled) { transform: none; box-shadow: none; background: #f6f6f0; }
.week-card.is-answered:not(.is-selected) { border-color: rgba(95,141,67,.32); background: #f1f5dc; }
.week-card span.week-card__day { color: var(--green-700); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.week-card.is-selected span.week-card__day { color: var(--green-950); }
.week-card strong { margin: 10px 0 14px; font-size: 1rem; line-height: 1.2; text-wrap: balance; }

.week-card__check {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
}
.week-card__check svg { width: 13px; height: 13px; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 4px 10px 4px 8px;
  font-size: .76rem;
  font-weight: 700;
}
.status-badge svg { width: 13px; height: 13px; flex: none; }
.status-badge--pending { color: var(--green-900); background: rgba(255,255,255,.6); }
.week-card.is-selected .status-badge--pending { background: rgba(255,255,255,.55); }
.status-badge--answered { color: var(--green-800); background: rgba(255,255,255,.6); }
.status-badge--soon { color: #7c8874; background: rgba(124,136,116,.12); }

.selected-video { border-top: 1px solid var(--line); padding-top: clamp(28px,4vw,44px); }
.video-frame { position: relative; overflow: hidden; border: 8px solid #eef4d7; border-radius: 30px 30px 30px 10px; box-shadow: var(--shadow); background: #102810; aspect-ratio: 16/9; }
.video-frame video, .video-frame #player { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); background: radial-gradient(circle at 30% 20%, rgba(181,202,97,.55), transparent 30%), linear-gradient(135deg,#5f8d43,#31592a); }
.video-placeholder p { margin: 0; color: var(--white); font-size: clamp(1.4rem,3vw,2.5rem); }
.video-actions { display: flex; align-items: center; gap: 18px; margin-top: 20px; }
.secondary-button { border: 1px solid rgba(49,89,42,.22); color: var(--green-800); background: #eef4d7; }
.secondary-button:hover:not(:disabled) { background: #e3edbd; }

.quiz { display: grid; gap: 20px; }
#quizQuestions { display: grid; gap: 18px; }
.question { margin: 0; border: 1px solid rgba(95,141,67,.18); border-radius: 24px 24px 24px 8px; padding: 24px; background: #f7f9ec; }
.question legend { padding: 0 8px; color: var(--green-950); font-size: clamp(1.12rem,1.6vw,1.35rem); font-weight: 800; }
.question label { display: flex; min-height: 48px; align-items: center; gap: 12px; color: #4e5d48; line-height: 1.35; cursor: pointer; }
.question input { width: 18px; min-height: 18px; accent-color: var(--green-700); }
.quiz__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.score { display: inline-flex; margin-top: 20px; border: 0; border-radius: 999px; padding: 17px 22px; color: var(--green-950); background: var(--green-300); font-size: clamp(1.1rem,2vw,1.5rem); font-weight: 800; }
.done-back { display: block; margin-top: 24px; }
.is-hidden { display: none; }

@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1100px) {
  .hero { background-position: center center; }
}
@media (max-width: 920px) {
  .week-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .video-actions { display: grid; }
}
@media (max-width: 760px) {
  .hero {
    aspect-ratio: 2048 / 1150;
    background-size: contain;
    background-position: center top;
  }
  .access-strip { padding: 24px 16px 30px; border-top-width: 6px; }
  .access-form { padding: 22px; border-radius: 22px; }
  .access-form__row { grid-template-columns: 1fr; }
  button { width: 100%; }
  .participant-pill, .progress-pill, .status-pill { justify-self: start; }
  .stage__header-actions { align-items: flex-start; }
  .experience { width: min(100% - 28px, 1160px); padding-top: 42px; }
  .stage, .quiz { border-radius: 26px 26px 26px 8px; padding: 22px; }
  .week-grid { grid-template-columns: 1fr; }
  .week-card { min-height: 112px; }
  .question { padding: 18px; }
  .stage__header, .selected-video__header { display: grid; grid-template-columns: 1fr; }
}
