@font-face {
  font-family: "PP Editorial New";
  src: url("/pp editorial new/PPEditorialNew-Bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PP Editorial New";
  src: url("/pp editorial new/PPEditorialNew-Regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "PP Editorial New";
  src: url("/pp editorial new/PPEditorialNew-UltralightItalic.woff2") format("woff2");
  font-weight: 200; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Margem";
  src: url("/margem condensed/Margem-CondensedRegular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Margem";
  src: url("/margem condensed/Margem-CondensedItalic.woff2") format("woff2");
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Margem";
  src: url("/margem condensed/Margem-CondensedLight.woff2") format("woff2");
  font-weight: 300; font-style: normal; font-display: swap;
}

:root {
  --preto: #141414;
  --branco: #fafafa;
  --verde: #7b8f70;
  --cinza: #ededed;
  --fs-h1: 48px;
  --fs-h2: 32px;
  --fs-b1: 24px;
  --fs-b2: 18px;
  --fs-b3: 18px;
  --serif: "PP Editorial New", "Times New Roman", serif;
  --sans-condensed: "Margem", "Roboto Condensed", "Barlow Condensed", system-ui, sans-serif;
  --sans-light: "Margem", system-ui, sans-serif;
  --linha: 1px solid rgba(20, 20, 20, 0.35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--branco);
  color: var(--preto);
  font-family: var(--sans-condensed);
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { min-height: 100vh; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Nav ---------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 56px;
  font-family: var(--sans-condensed);
  font-size: var(--fs-b2);
  font-weight: 400;
  position: sticky;
  top: 0;
  background: var(--branco);
  z-index: 10;
}
.nav__left { display: flex; gap: 56px; }
.nav a { transition: opacity .2s ease; }
.nav a:hover { opacity: .6; }

.nav__right a {
  border: 0.5px solid var(--preto);
  border-radius: 100px;
  padding: 4px 16px;
  font-size: var(--fs-b2);
  transition: background .25s ease, color .25s ease, opacity .25s ease;
}
.nav__right a:hover {
  opacity: 1;
  background: var(--preto);
  color: var(--branco);
}

.nav__hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; margin: -6px; order: 0;
}
.nav__hamburger span {
  display: block; width: 22px; height: 1.5px; background: var(--preto);
  transition: transform .25s ease, opacity .15s ease; border-radius: 1px;
}
.nav--open .nav__hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav--open .nav__hamburger span:nth-child(2) { opacity: 0; }
.nav--open .nav__hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- Briefing layout ---------- */
.briefing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: 80px 56px 120px;
  align-items: start;
}

.briefing__intro { position: sticky; top: 120px; }

.briefing__title {
  font-family: var(--serif);
  font-weight: 200;
  font-style: italic;
  font-size: var(--fs-h1);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.briefing__text {
  font-family: var(--sans-condensed);
  font-size: var(--fs-b1);
  line-height: 1.5;
  max-width: 480px;
}
.briefing__text p + p { margin-top: 18px; }
.briefing__text a {
  border-bottom: 0.5px solid var(--preto);
  transition: opacity .2s ease;
}
.briefing__text a:hover { opacity: .6; }

/* ---------- Form ---------- */
.briefing__form {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-height: calc(100vh - 260px);
  max-width: 520px;
}

.briefing__step-meta {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 200;
  font-size: 20px;
  color: var(--preto);
  opacity: .55;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}

.form-step {
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: fadeUp .35s ease both;
}
.form-step[hidden] { display: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
}

.step-back {
  background: none;
  border: none;
  font-family: var(--sans-condensed);
  font-size: var(--fs-b2);
  color: var(--preto);
  opacity: .45;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .2s ease;
}
.step-back:hover { opacity: .85; }

/* Progress bar — pinned to the bottom of the form column */
.briefing__progress-wrap {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.briefing__progress {
  height: 1.5px;
  background: rgba(20, 20, 20, 0.15);
  border-radius: 1px;
  overflow: hidden;
}

.briefing__progress-fill {
  height: 100%;
  width: 0%;
  background: var(--preto);
  border-radius: 1px;
  transition: width 0.45s cubic-bezier(.4,0,.2,1);
}

.briefing__progress-label {
  font-family: var(--sans-condensed);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--preto);
  opacity: .45;
  font-variant-numeric: tabular-nums;
}

.field { display: flex; flex-direction: column; gap: 12px; }

.field__label {
  font-family: var(--sans-condensed);
  font-size: 28px;
  line-height: 1.25;
  color: var(--preto);
}

.field__hint {
  font-family: var(--sans-condensed);
  font-weight: 300;
  font-size: var(--fs-b2);
  line-height: 1.4;
  color: var(--preto);
  opacity: .6;
  margin-top: -4px;
}

.field__input,
.field__textarea {
  width: 100%;
  font-family: var(--sans-condensed);
  font-size: var(--fs-b1);
  color: var(--preto);
  background: transparent;
  border: none;
  border-bottom: 0.5px solid var(--preto);
  padding: 10px 0;
  outline: none;
  transition: border-color .2s ease;
  font-stretch: 75%;
  font-variation-settings: "wdth" 75;
}
.field__input:focus,
.field__textarea:focus { border-bottom-color: var(--verde); }

.field__textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.4;
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: var(--preto);
  opacity: .35;
}

/* Choice (radio/checkbox) — same visual */
.choices { display: flex; flex-direction: column; gap: 10px; }

.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-family: var(--sans-condensed);
  font-size: var(--fs-b2);
  line-height: 1.4;
  color: var(--preto);
}
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box {
  width: 16px; height: 16px; flex-shrink: 0;
  border: 0.5px solid var(--preto);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .15s ease;
}
.choice input[type="radio"] + .choice__box { border-radius: 50%; }
.choice input:checked + .choice__box { background: var(--preto); }
.choice input:checked + .choice__box::after {
  content: '';
  width: 6px; height: 6px;
  background: var(--branco);
  border-radius: 50%;
}
.choice input[type="checkbox"]:checked + .choice__box::after { border-radius: 0; }
.choice:hover .choice__box { border-color: var(--verde); }

.subfield { margin-top: 14px; padding-left: 28px; }
.subfield[hidden] { display: none; }

.briefing__submit {
  align-self: flex-start;
  font-family: var(--sans-condensed);
  font-size: var(--fs-b2);
  background: none;
  color: var(--preto);
  border: 0.5px solid var(--preto);
  border-radius: 100px;
  padding: 8px 22px;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, opacity .25s ease;
}
.briefing__submit:hover { background: var(--preto); color: var(--branco); }
.briefing__submit:disabled { opacity: .4; cursor: default; }

.briefing__status {
  font-family: var(--sans-condensed);
  font-size: var(--fs-b2);
  color: var(--preto);
  opacity: .7;
  min-height: 1.4em;
}
.briefing__status.is-error { color: #b04545; opacity: 1; }

/* Confirmation */
.briefing__done { display: none; }
.briefing.is-done .briefing__form { display: none; }
.briefing.is-done .briefing__done {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.briefing__done-title {
  font-family: var(--serif);
  font-weight: 200;
  font-style: italic;
  font-size: var(--fs-h1);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.briefing__done-text {
  font-family: var(--sans-condensed);
  font-size: var(--fs-b1);
  line-height: 1.5;
  max-width: 480px;
}

/* ---------- Footer ---------- */
.page-wrap {
  position: relative;
  z-index: 1;
  background: var(--branco);
  isolation: isolate;
}

.footer-logo {
  position: sticky;
  bottom: 0;
  z-index: 0;
  border-top: var(--linha);
  background: var(--branco);
  padding: 56px 56px calc(64px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-logo a { display: block; width: 100%; }
.footer-logo svg, .footer-logo img { width: 100%; height: auto; display: block; }

@media (max-width: 1024px) {
  .nav { padding: 24px 32px; }
  .nav__left { gap: 32px; }
  .briefing { padding: 64px 32px 80px; gap: 40px; }
  .footer-logo { padding: 40px 32px calc(48px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 768px) {
  .nav { padding: 20px 24px; gap: 16px; flex-wrap: wrap; }
  .nav__hamburger { display: flex; order: 1; }
  .nav__right { order: 2; margin-left: auto; }
  .nav__left {
    display: none; width: 100%; flex-direction: column; gap: 0 !important;
    flex-wrap: nowrap !important; order: 3; padding: 4px 0 12px;
    border-top: 0.5px solid rgba(20,20,20,.12); margin-top: 8px; text-align: left;
  }
  .nav__left li { padding: 8px 0; }
  .nav--open .nav__left { display: flex; }

  .briefing { grid-template-columns: 1fr; gap: 32px; padding: 48px 24px 72px; }
  .briefing__intro { position: static; }
  .briefing__title { font-size: 32px; }
  .briefing__text { font-size: 20px; max-width: 100%; }
  .briefing__form { min-height: auto; gap: 32px; max-width: 100%; }
  .briefing__progress-wrap { padding-top: 24px; }
  .form-step { gap: 24px; }
  .field__label { font-size: 22px; }
  .briefing__done-title { font-size: 32px; }
}

@media (max-width: 480px) {
  .nav { padding: 20px 24px; }
  .briefing { padding: 36px 20px 60px; }
  .briefing__title { font-size: 26px; }
  .footer-logo { padding: 32px 20px calc(48px + env(safe-area-inset-bottom, 0px)); }
}
