/* Estilos da página de pré-inscrição (/inscricao). A landing page usa landing.css. */
:root {
  --black: #0B0B0B;
  --surface: #1A1A1A;
  --line: #333333;
  --white: #F5F5F5;
  --pure: #FFFFFF;
  --yellow: #FFD700;
  --yellow-hover: #FFCC00;
  --muted: #A6A6A6;
  --display: "Gabarito", "Trebuchet MS", sans-serif;
  --body: "Figtree", "Segoe UI", sans-serif;
  --wrap: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
  --bleed: max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter)));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font: 400 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--yellow); color: var(--black); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--yellow); color: var(--black); padding: 12px 16px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* Header */
.site-header {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; }
.brand img { width: 168px; }
.header-nav { display: flex; align-items: center; gap: 36px; font-weight: 600; font-size: 16px; }
.header-nav a { text-decoration: none; }
.header-nav a:hover { color: var(--yellow); }

/* Button */
.button {
  display: inline-block;
  font: 800 18px/1 var(--display);
  color: var(--black);
  background: var(--yellow);
  border: 0;
  border-radius: 999px;
  padding: 20px 36px;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--yellow-hover); }
.button:disabled { opacity: .6; cursor: wait; }

/* Página de pré-inscrição */
.signup {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(20px, 4vh, 56px) var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 112px);
}
.signup-side { display: flex; flex-direction: column; min-height: 0; }
.signup-copy { padding-bottom: clamp(16px, 3vh, 32px); }
.signup-visual { position: relative; flex: 1; min-height: 260px; container-type: size; }
.signup-visual::before {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: var(--yellow);
  border-radius: clamp(24px, 3vw, 48px) clamp(24px, 3vw, 48px) 0 0;
}
.signup-art {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  height: min(100cqh, 72cqw, 600px);
  width: auto;
  max-width: none;
}
.signup h1 {
  font-weight: 900;
  font-size: clamp(44px, 5.6vw, 88px);
  line-height: .95;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.signup-intro { color: var(--muted); font-size: clamp(17px, 1.3vw, 20px); max-width: 40ch; }
.signup-facts { margin: clamp(20px, 3.5vh, 40px) 0 0; display: grid; }
.signup-facts div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 4px 20px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.signup-facts dt { font: 800 18px/1.4 var(--display); color: var(--yellow); }
.signup-facts dd { margin: 0; }
.signup-card {
  align-self: center;
  margin-bottom: clamp(20px, 4vh, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(22px, 2.6vw, 40px);
}

/* Formulário */
.field-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0 16px; }
label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
input:not([type=checkbox]) {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 16px;
  font: 400 17px var(--body);
  color: var(--white);
  background: var(--black);
  border: 1.5px solid var(--line);
  border-radius: 12px;
}
input:not([type=checkbox]):focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 215, 0, .18); }
select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 44px 12px 16px;
  font: 400 17px var(--body);
  color: var(--white);
  background: var(--black) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23FFD700' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  appearance: none;
  cursor: pointer;
}
select:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 4px rgba(255, 215, 0, .18); }
select:invalid { color: #737373; }
select option { color: var(--white); background: var(--black); }
.school-locked .field-row { grid-template-columns: 1fr; }
input[readonly] { background: var(--surface); color: var(--muted); border-style: dashed; cursor: default; }
input[readonly]:focus { border-color: var(--line); box-shadow: none; }
input::placeholder { color: #737373; }
.trap { position: absolute; left: -9999px; }

.privacy-open {
  display: block;
  margin: 2px 0 12px;
  padding: 0;
  border: 0;
  background: none;
  font: 600 15px var(--body);
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.privacy-open:hover { color: var(--pure); }

.privacy-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  color: var(--white);
  background: var(--surface);
}
.privacy-dialog::backdrop { background: rgba(0, 0, 0, .7); }
.privacy-dialog[open] { animation: dialog-in .2s ease-out; }
.privacy-dialog h2 { font: 800 26px/1.15 var(--display); margin: 0 0 14px; }
.privacy-dialog p { color: #CCCCCC; line-height: 1.6; }
.privacy-dialog p + p { margin-top: 12px; }
.privacy-dialog .button { margin-top: 24px; }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(12px); }
}

.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--yellow); }
form .button { width: 100%; margin-top: 4px; padding-block: 18px; }
#status { font-size: 16px; margin-top: 16px; }
#status:empty { display: none; }
.error { color: #FF8A80; }
.success { color: var(--yellow); font-weight: 600; }

/* Rodapé */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: clamp(36px, 4vw, 56px) var(--bleed) 24px;
  font-size: 16px;
}
.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 14px;
  color: #808080;
}
.footer-legal a:hover { color: var(--yellow); }
.site-footer-slim { padding-top: 0; }
.page-signup { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.page-signup .signup { flex: 1; width: 100%; }
.page-signup .site-header { flex: none; width: 100%; }

@media (max-width: 860px) {
  .signup { grid-template-columns: 1fr; row-gap: 28px; }
  .signup-side, .signup-copy { display: contents; }
  .signup-copy h1 { margin-bottom: -16px; }
  .signup-facts { order: 1; margin: 0; }
  .signup-card { margin: 0; }
  .signup-visual { order: 2; min-height: 0; container-type: normal; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .signup-visual::before { inset: 40% 0 0; }
  .signup-art { position: relative; display: block; left: auto; transform: none; width: min(100%, 520px); height: auto; margin: 0 auto; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .brand img { width: 128px; }
  .header-back { font-size: 15px; }
  .field-row { grid-template-columns: 1fr; }
  .signup-facts div { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .privacy-dialog[open] { animation: none; }
}
