@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/fraunces-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/fraunces-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-400.woff2") format("woff2");
}
@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/source-sans-3-latin-600.woff2") format("woff2");
}

:root {
  --bg: #071016;
  --bg-raise: rgba(10, 26, 34, 0.82);
  --ink: #e8f4f0;
  --muted: #c5ddd4;
  --amber: #f0b45a;
  --amber-deep: #c4842f;
  --ink-on-amber: #1c1408;
  --line: rgba(240, 180, 90, 0.38);
  --sea: #1f8a86;
  --danger: #ffd2cc;
  --ok: #d9fff4;
  --focus: #ffe1a8;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(139, 124, 255, 0.28), transparent 60%),
    radial-gradient(760px 520px at -15% 18%, rgba(31, 138, 134, 0.28), transparent 58%),
    radial-gradient(680px 380px at 50% 115%, rgba(196, 106, 42, 0.22), transparent 52%),
    var(--bg);
}
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: #f3d7a4; }
a:hover { color: #fff4df; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 5;
  background: var(--amber);
  color: var(--ink-on-amber);
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.top { position: sticky; top: 0; z-index: 4; backdrop-filter: blur(14px); background: rgba(7, 16, 22, 0.78); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.bar { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: Fraunces, Georgia, serif; font-weight: 700; letter-spacing: 0.04em; }
.brand img { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); }
.sp { flex: 1; }
.navlink {
  text-decoration: none;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(240, 180, 90, 0.08);
}

.hero { padding: 28px 0 8px; }
.badge {
  display: inline-block;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(#f8d48a, var(--amber-deep));
  color: var(--ink-on-amber);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
h1 { margin: 14px 0 0; font-size: clamp(2.1rem, 7vw, 3.4rem); font-weight: 700; color: #f6d7a2; }
.hero h1 { font-size: clamp(4.2rem, 18vw, 7.4rem); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1, .result h1 {
    background: linear-gradient(#fff7e8, #f0b45a 55%, #d27a3a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}
.sub {
  margin: 4px 0 0;
  font-family: Fraunces, Georgia, serif;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #d7efe8;
  font-size: clamp(0.95rem, 2.4vw, 1.2rem);
}
.rule { width: min(280px, 60%); height: 1px; margin: 16px 0; background: linear-gradient(90deg, var(--amber), transparent); }
.pitch { margin: 0; max-width: 40rem; color: var(--muted); font-size: 1.12rem; }
.cta, button.submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 36rem;
  margin-top: 18px;
  padding: 14px 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(#ffd78a, #e0a03a);
  color: var(--ink-on-amber);
  font: 600 1.05rem/1.35 "Source Sans 3", "Segoe UI", sans-serif;
  text-align: center;
  text-decoration: none;
  text-wrap: balance;
  box-shadow: 0 10px 28px rgba(224, 160, 58, 0.28);
  cursor: pointer;
}
button.submit:disabled { opacity: 0.7; cursor: wait; }
.reassure { max-width: 40rem; color: var(--muted); font-size: 0.98rem; }

.hero-grid { display: grid; gap: 22px; }
.hero-art {
  margin: 8px 0 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #081018;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.hero-art img { display: block; width: 100%; aspect-ratio: 900 / 680; object-fit: cover; }
.hero-art figcaption { padding: 10px 14px 12px; color: var(--muted); font-size: 0.92rem; background: rgba(6, 14, 20, 0.88); }

.section { margin: 36px 0; }
#inscricao, #sistemas, #selecao, #perguntas, #apagar { scroll-margin-top: 84px; }
h2 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 2.5rem); color: #fff4df; }
.section > p, .lead { color: var(--muted); max-width: 42rem; }
.cards { display: grid; gap: 14px; margin-top: 16px; }
.card {
  background: var(--bg-raise);
  border: 1px solid rgba(143, 208, 196, 0.22);
  border-radius: var(--radius);
  padding: 16px 16px 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.card h3 { margin: 0 0 8px; font-size: 1.45rem; color: #f3d7a4; }
.card p { margin: 0 0 8px; color: var(--muted); }
.card ul { margin: 0 0 12px; padding-left: 1.1rem; }
.card li { margin: 6px 0; }
.card li::marker { color: var(--amber); }

.steps { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  background: var(--bg-raise);
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #14343a;
  color: var(--amber);
  font-family: Fraunces, Georgia, serif;
  font-weight: 700;
}

.formbox, .faq {
  background: linear-gradient(rgba(16, 36, 46, 0.94), rgba(8, 18, 26, 0.94));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 16px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
}
label.f, legend { display: block; font-weight: 600; color: #f4ead8; margin: 14px 0 6px; }
.optional { font-weight: 400; color: var(--muted); }
input[type="email"], input[type="text"] {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px 13px;
  min-height: 48px;
}
input[aria-invalid="true"] { border-color: #ffb0a8; }
.fielderror { color: var(--danger); font-weight: 600; margin: 6px 0 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.choices { display: grid; gap: 8px; }
.choice { position: relative; }
.choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.35);
  font-weight: 600;
}
.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.choice input:checked + span {
  border-color: var(--amber);
  background: rgba(240, 180, 90, 0.16);
  color: #ffe7c2;
  box-shadow: 0 0 0 3px rgba(240, 180, 90, 0.16);
}
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; }
.consent input { width: 1.35rem; height: 1.35rem; margin-top: 0.2rem; accent-color: #e2a84a; flex: none; }
.consent label { font-weight: 400; }
.alert, .banner {
  border-radius: 12px;
  padding: 12px 14px;
  margin: 12px 0;
  font-weight: 600;
}
.banner-off, .alert-bad { background: rgba(120, 42, 34, 0.55); color: #ffe8e4; border: 1px solid #e7a598; }
.banner-on, .alert-ok { background: rgba(18, 78, 70, 0.55); color: var(--ok); border: 1px solid #8fd0c4; }
.fine { color: var(--muted); font-size: 0.92rem; }
.codebox {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
}
.codebox p { margin: 0; }
.codebox code {
  display: block;
  margin-top: 8px;
  font-family: ui-monospace, "Source Code Pro", monospace;
  font-size: 0.95rem;
  line-height: 1.4;
  word-break: break-all;
  color: #fff6e4;
}
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.faq details {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 0;
}
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.faq details p { margin: 0 0 10px; color: var(--muted); }

.site-footer { border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 22px 0 36px; color: var(--muted); font-size: 0.95rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.textlink { font-weight: 600; }
.result { padding: 48px 0 64px; }
.result h1 {
  font-size: clamp(2.2rem, 8vw, 4rem);
  margin-top: 12px;
}

@media (min-width: 720px) {
  .hero { padding-top: 42px; }
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 28px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .choices { grid-template-columns: repeat(3, 1fr); }
  .formbox, .faq { padding: 26px 26px 28px; }
  .cta { width: auto; }
  button.submit { width: 100%; max-width: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: drift 8s ease-in-out infinite; }
  @keyframes drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art img { animation: none; }
}
