/* Goat Team — formulário de vagas. Mesmos tokens da LP (css/style.css). */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #F3F1EC;
  --bg-2: #E9E6DF;
  --ink: #0B0B0B;
  --ink-2: #4A4A48;
  --muted: #A19E96;
  --orange: #F5A03A;
  --orange-deep: #E08A1E;
  /* Destaque: trocar por Goat Gold (#F8B133 / #D8911D) quando a LP migrar */
  --accent: var(--orange);
  --accent-deep: var(--orange-deep);
  --line: rgba(11, 11, 11, 0.14);
  --gutter: 5vw;
  --bar-h: 78px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --font-display: 'Unbounded', 'Arial Black', Impact, sans-serif;
  --font-mono: 'Fira Mono', ui-monospace, 'Courier New', monospace;
  --font-body: 'Inter', system-ui, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }
body {
  min-height: 100svh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, .opt:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
::selection { background: var(--accent); color: var(--ink); }

/* ── Helpers da LP ─────────────────────────────── */
.display {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.mono {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.55;
}
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.04em;
  background: var(--accent);
  color: var(--ink);
  padding: 0.14em 0.42em 0.1em;
  margin-right: 0.65em;
  vertical-align: 1px;
  white-space: nowrap;
}
.tag.dark { background: var(--ink); color: var(--bg); }
.tag.line { background: transparent; outline: 1px solid currentColor; outline-offset: -1px; }
.btn {
  display: inline-flex; align-items: center; gap: 0.8rem;
  background: var(--ink); color: var(--bg);
  padding: 1.05rem 1.7rem;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none;
  transition: background .3s, color .3s, opacity .3s;
}
.btn i { width: 8px; height: 8px; background: var(--accent); transition: background .3s; flex: none; }
.btn:hover { background: var(--accent); color: var(--ink); }
.btn:hover i { background: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); outline: 1px solid var(--ink); outline-offset: -1px; }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.ghost:hover i { background: var(--accent); }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn kbd { font: inherit; opacity: 0.55; margin-left: 0.2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Topo ──────────────────────────────────────── */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem var(--gutter);
  background: linear-gradient(var(--bg) 70%, rgba(243, 241, 236, 0));
}
.top-logo img { height: 30px; width: auto; }
.top-center { position: absolute; left: 50%; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink-2); }
.top-center .tick { width: 1px; height: 14px; background: var(--ink); }
.lang { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); }
.lang button { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--muted); padding: 0.4rem 0.1rem; display: inline-flex; align-items: center; gap: 0.4rem; }
.lang button::before { content: ''; width: 6px; height: 6px; background: transparent; transition: background .25s; }
.lang button.on { color: var(--ink); font-weight: 700; }
.lang button.on::before { background: var(--accent); }

/* ── Estrutura ─────────────────────────────────── */
.shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 6vw;
  max-width: 1560px;
  margin: 0 auto;
  min-height: 100svh;
  padding: 132px var(--gutter) calc(var(--bar-h) + 64px);
}
.shell.solo { grid-template-columns: minmax(0, 1fr); }
.shell.solo .readout { display: none; }
.stage { position: relative; min-width: 0; outline: none; }
.decor {
  position: fixed; right: -6vw; bottom: calc(var(--bar-h) - 2px);
  width: min(62vw, 900px);
  color: rgba(11, 11, 11, 0.13);
  pointer-events: none; z-index: -1;
}

/* ── Leitura (painel escuro) ───────────────────── */
.readout { position: relative; }
.data-card {
  position: sticky; top: 132px;
  background-color: var(--ink);
  background-image: linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--bg);
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.data-card::before { content: ''; position: absolute; left: -9px; top: -9px; width: 9px; height: 9px; border: 1px solid var(--ink); background: var(--accent); }
.dc-head, .dc-foot { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.62rem; color: rgba(243, 241, 236, 0.7); }
.live i { display: inline-block; width: 6px; height: 6px; background: var(--accent); margin-right: 0.45em; animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }
.dc-title { font-size: 1.15rem; margin: 1.4rem 0 0.2rem; line-height: 1; }
.data-card table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: 0.62rem; table-layout: fixed; }
.data-card td { padding: 0.68rem 0; border-top: 1px solid rgba(255, 255, 255, 0.1); vertical-align: top; }
.data-card td:first-child { width: 42%; color: rgba(243, 241, 236, 0.55); padding-right: 0.6rem; }
.data-card td:last-child { text-align: right; color: var(--bg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.data-card td.on { color: var(--accent); }
.dc-bar { display: block; height: 6px; margin: 0.2rem 0 0.9rem; background: rgba(243, 241, 236, 0.08); }
.dc-bar i { display: block; height: 100%; width: var(--w, 0%); background: repeating-linear-gradient(90deg, var(--accent) 0 3px, transparent 3px 6px); transition: width .5s var(--ease); }

/* ── Pergunta ──────────────────────────────────── */
.q-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.2rem; color: var(--ink-2); margin-bottom: 1.6rem; }
.q-meta .sep { color: var(--muted); margin: 0 0.5rem; }
.q-title { font-size: clamp(1.75rem, 3.6vw, 3.5rem); max-width: 17em; line-height: 0.96; }
.q-hint { margin-top: 1.1rem; color: var(--ink-2); max-width: 46em; }
.q-body { margin-top: 2.6rem; max-width: 780px; }
.q-error { min-height: 1.4rem; margin-top: 1.2rem; color: var(--ink); }
.q-error:empty { visibility: hidden; }
.q-error::before { content: 'ERRO'; }
html[lang="en"] .q-error::before { content: 'ERROR'; }
.q-error::before {
  display: inline-block; font-size: 0.58rem; background: var(--ink); color: var(--bg);
  padding: 0.14em 0.42em 0.1em; margin-right: 0.65em; vertical-align: 1px;
}
.shake { animation: shake .38s var(--ease); }
@keyframes shake { 20% { transform: translateX(-7px); } 45% { transform: translateX(6px); } 70% { transform: translateX(-3px); } }

/* Opções */
.opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt {
  position: relative;
  display: flex; align-items: center; gap: 0.95rem;
  min-height: 62px;
  padding: 0.85rem 1rem;
  text-align: left;
  background: linear-gradient(155deg, rgba(233, 230, 223, 0.95) 0%, rgba(220, 216, 206, 0.7) 100%);
  border: 1px solid var(--line);
  transition: border-color .2s, background .25s, color .25s;
}
.opt:hover { border-color: rgba(11, 11, 11, 0.55); }
.opt::before {
  content: ''; position: absolute; left: -5px; top: -5px; width: 9px; height: 9px;
  border: 1px solid var(--ink); background: var(--accent);
  opacity: 0; transform: scale(0.4); transition: opacity .2s, transform .25s var(--ease);
}
.opt-key {
  flex: none; display: grid; place-items: center;
  width: 26px; height: 26px;
  border: 1px solid currentColor;
  font-size: 0.66rem; font-weight: 700;
  color: var(--ink-2);
}
.opt-label { flex: 1; font-size: 1rem; font-weight: 500; line-height: 1.3; }
.opt-check { flex: none; width: 12px; height: 12px; border: 1px solid currentColor; opacity: 0.6; }
.opt.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.opt.on::before { opacity: 1; transform: none; }
.opt.on .opt-key { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.opt.on .opt-check { background: var(--accent); border-color: var(--accent); opacity: 1; }
.other-input { margin-top: 14px; }

/* Campos */
.fields { display: grid; gap: 2rem; }
.field { display: block; }
.field-label { display: block; color: var(--ink-2); margin-bottom: 0.2rem; }
.field input, .other-input {
  width: 100%;
  background: transparent;
  border: 0; border-bottom: 1px solid var(--ink);
  border-radius: 0;
  padding: 0.55rem 0 0.6rem;
  font: 500 clamp(1.2rem, 2vw, 1.65rem)/1.3 var(--font-body);
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.other-input { font-size: 1.1rem; }
.field input::placeholder, .other-input::placeholder, textarea::placeholder { color: rgba(11, 11, 11, 0.26); }
.field input:focus, .other-input:focus { border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.field.err input { border-bottom-color: var(--ink); box-shadow: 0 2px 0 var(--accent); }
.field-err { display: block; min-height: 1.1rem; margin-top: 0.4rem; color: var(--accent-deep); font-size: 0.64rem; }

/* Texto longo */
.area { border: 1px solid var(--ink); background: rgba(233, 230, 223, 0.6); }
.area textarea {
  display: block; width: 100%; min-height: 200px; resize: vertical;
  background: transparent; border: 0; outline: none;
  padding: 1rem 1.1rem;
  font: 400 1.05rem/1.6 var(--font-body); color: var(--ink);
}
.area:focus-within { box-shadow: 0 0 0 1px var(--accent); border-color: var(--accent); }
.area-foot { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 1.1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.62rem; }

/* Anexo */
.drop {
  position: relative; display: flex; align-items: center; gap: 1rem;
  margin-top: 0.4rem; padding: 1.2rem;
  border: 1px dashed rgba(11, 11, 11, 0.45);
  background: rgba(233, 230, 223, 0.5);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.drop:hover, .drop.over { border-color: var(--ink); background: var(--bg-2); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop-icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; background: var(--ink); color: var(--accent); font: 700 1.1rem/1 var(--font-mono); }
.drop-text b { display: block; font-weight: 500; font-size: 0.98rem; margin-bottom: 0.15rem; word-break: break-all; }
.drop-text span { color: var(--ink-2); font-size: 0.62rem; }
.drop-remove { position: relative; z-index: 2; margin-left: auto; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* Vagas (passo 1) */
.jobs { display: grid; gap: 10px; }
.job {
  position: relative; display: block; width: 100%; text-align: left;
  padding: 1.15rem 1.2rem 1.2rem;
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(233, 230, 223, 0.95), rgba(220, 216, 206, 0.6));
  transition: border-color .2s;
}
.job:hover { border-color: rgba(11, 11, 11, 0.55); }
.job::before { content: ''; position: absolute; left: -5px; top: -5px; width: 9px; height: 9px; border: 1px solid var(--ink); background: var(--bg); transition: background .2s; }
.job.on { border-color: var(--ink); background: var(--bg-2); }
.job.on::before { background: var(--accent); }
.job-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; color: var(--ink-2); }
.job-title { display: block; font-size: clamp(1.05rem, 1.7vw, 1.45rem); margin-top: 0.8rem; line-height: 1.02; }
.job-detail { display: none; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.job.on .job-detail { display: block; }
.job-desc { display: block; color: var(--ink-2); line-height: 1.65; max-width: 62ch; }
.reqs { list-style: none; margin-top: 1rem; display: grid; gap: 0.5rem; }
.reqs > * { display: flex; gap: 0.7rem; align-items: baseline; line-height: 1.5; }
.reqs > *::before { content: ''; flex: none; width: 7px; height: 7px; background: var(--accent); transform: translateY(-1px); }
.reqs.plus > *::before { background: transparent; box-shadow: inset 0 0 0 1px var(--accent-deep); }
.reqs.offer > *::before { background: var(--ink); }
.job-sub { display: block; margin-top: 1.2rem; color: var(--ink-2); font-size: 0.64rem; }

/* Revisão */
.review { border-top: 1px solid var(--ink); }
.review-row { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.review-row dt { color: var(--ink-2); }
.review-row dd { line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }
.review-row dd.empty { color: var(--muted); }
.review-edit { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.review-edit:hover { color: var(--ink); }
.consent { display: flex; gap: 0.9rem; align-items: flex-start; margin-top: 1.8rem; cursor: pointer; max-width: 640px; line-height: 1.55; }
.consent input { position: absolute; opacity: 0; pointer-events: none; }
.consent .box { flex: none; width: 20px; height: 20px; margin-top: 1px; border: 1px solid var(--ink); display: grid; place-items: center; transition: background .2s; }
.consent .box::after { content: ''; width: 10px; height: 10px; background: transparent; transition: background .2s; }
.consent input:checked + .box { background: var(--ink); }
.consent input:checked + .box::after { background: var(--accent); }
.consent input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 3px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ── Abertura ──────────────────────────────────── */
.intro-kicker { color: var(--ink-2); margin-bottom: 2rem; }
.intro-title { font-size: clamp(3.1rem, 9.4vw, 9.6rem); line-height: 0.84; display: flex; flex-direction: column; }
.intro-title span:nth-child(2) { padding-left: 8vw; }
.intro-title em { font-style: normal; color: var(--accent); }
.intro-title.job-name { font-size: clamp(2.2rem, 5.6vw, 5.8rem); line-height: 0.9; }
.intro-title.job-name span:nth-child(2) { padding-left: 0; }
.intro-blurbs { display: grid; gap: 0.6rem; margin-top: 2.4rem; color: var(--ink-2); max-width: 520px; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.6rem; }
.intro-note { margin-top: 1.6rem; color: var(--ink-2); }
.intro-note.warn { color: var(--ink); }
.roles { list-style: none; margin-top: 3.6rem; border-top: 1px solid var(--ink); max-width: 980px; }
.roles-head { display: flex; justify-content: space-between; color: var(--ink-2); padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.role {
  display: grid; grid-template-columns: 70px minmax(0, 1fr) auto 28px; gap: 1rem; align-items: center;
  width: 100%; text-align: left; padding: 1.15rem 0; border-bottom: 1px solid var(--line);
  transition: background .25s, padding .3s var(--ease);
}
.role:hover { background: var(--bg-2); padding-left: 0.8rem; padding-right: 0.8rem; }
.role-no { color: var(--ink-2); }
.role-title { font-size: clamp(0.95rem, 1.6vw, 1.35rem); line-height: 1.05; }
.role-meta { color: var(--ink-2); white-space: nowrap; }
.role-arrow { font-family: var(--font-mono); transition: transform .3s var(--ease); }
.role:hover .role-arrow { transform: translateX(5px); color: var(--accent-deep); }
.job-meta { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.6rem; }
.job-meta .tag { margin: 0; font-size: 0.64rem; padding: 0.3em 0.6em 0.26em; }
.intro-desc { margin-top: 2rem; max-width: 62ch; color: var(--ink-2); line-height: 1.7; font-size: 1.05rem; }
.intro .reqs { margin-top: 1.4rem; max-width: 62ch; }
.intro-sub { margin-top: 2.4rem; color: var(--ink-2); }
.loading .dots::after { content: ''; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* ── Sucesso ───────────────────────────────────── */
.done { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4vw; align-items: center; min-height: calc(100svh - 260px); }
.done .intro-title { font-size: clamp(3rem, 7.2vw, 7.6rem); }
.done-text p { margin-top: 2rem; max-width: 42ch; color: var(--ink-2); line-height: 1.7; font-size: 1.05rem; }
.done-ref { display: inline-flex; align-items: center; gap: 1rem; margin-top: 2rem; padding: 0.9rem 1.1rem; border: 1px solid var(--ink); }
.done-ref b { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -0.01em; }
.done-art { position: relative; display: grid; place-items: center; }
.done-art::after {
  content: ''; position: absolute; left: 50%; bottom: 2%; width: 90%; height: 22%; transform: translateX(-50%); z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255, 250, 238, 0.95), rgba(255, 244, 222, 0.45) 42%, rgba(243, 241, 236, 0) 72%);
}
.done-art img { width: min(100%, 440px); height: auto; }

/* ── Barra inferior ────────────────────────────── */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0 var(--gutter);
  background: var(--bg);
  border-top: 1px solid var(--line);
  transition: transform .45s var(--ease);
}
.bar.hide { transform: translateY(105%); }
.progress { position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: transparent; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .5s var(--ease); }
.counter { display: flex; align-items: center; gap: 0.8rem; color: var(--ink-2); letter-spacing: 0.14em; }
.counter b { color: var(--accent-deep); }
.counter .hint { letter-spacing: 0.06em; color: var(--muted); margin-left: 1.2rem; }
.nav { display: flex; gap: 0.6rem; }
.nav .btn { padding: 0.95rem 1.5rem; }

/* ── Responsivo ────────────────────────────────── */
@media (max-width: 1080px) {
  .shell { grid-template-columns: minmax(0, 1fr); padding-top: 112px; }
  .readout { display: none; }
  .done { grid-template-columns: 1fr; }
  .done-art { order: -1; }
  .done-art img { width: min(70vw, 320px); }
}
@media (max-width: 700px) {
  :root { --gutter: 16px; --bar-h: 72px; }
  .top { padding: 0.9rem var(--gutter); }
  .top-logo img { height: 24px; }
  .top-center { display: none; }
  .shell { padding: 92px var(--gutter) calc(var(--bar-h) + 40px); }
  .q-meta { margin-bottom: 1.1rem; }
  .q-body { margin-top: 1.8rem; }
  .opts { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .opt { min-height: 56px; }
  .fields { gap: 1.5rem; }
  .review-row { grid-template-columns: minmax(0, 1fr) auto; }
  .review-row dd { grid-column: 1 / -1; grid-row: 2; }
  .role { grid-template-columns: minmax(0, 1fr) 20px; gap: 0.4rem 0.8rem; }
  .role-no { grid-column: 1 / -1; }
  .role-meta { grid-column: 1; white-space: normal; }
  .role-arrow { grid-column: 2; grid-row: 2 / 4; }
  .role:hover { padding-left: 0; padding-right: 0; }
  .counter .hint { display: none; }
  .nav { flex: 1; justify-content: flex-end; }
  .nav .btn { padding: 0.9rem 1.1rem; }
  .intro-actions .btn { flex: 1 1 auto; justify-content: center; }
  .decor { width: 120vw; right: -40vw; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
