/* Instituto Cordada · versão elegante · páginas internas
   Traduz as peças da primeira versão (page-hero, facts, ways, steps, formulário de uma pergunta por tela)
   para o visual novo: papel, grafite, fio terracota, Newsreader. */

.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* abertura das páginas */
.page-hero { padding: 220px 0 90px; }
.page-hero h1 { font-size: clamp(54px, 7.4vw, 112px); line-height: .98; max-width: 14ch; }
.lead { font-size: 18px; color: var(--muted); max-width: 52ch; margin: 30px 0 0; }
main > section:not(.climb):not(.page-head):not(.page-hero):not(.s):not(.final):not(.form-page) { padding: 70px 0; }
main > section h2 { font-size: clamp(38px, 4.4vw, 64px); margin-bottom: 26px; }
.page-hero .btn, .page-hero .link { margin-top: 40px; }
.sec-label { font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }
.split { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px 100px; align-items: start; }

/* lista de dados: termo à esquerda, valor à direita, com fios finos */
dl.facts { display: grid; grid-template-columns: minmax(180px, 1fr) 2fr; margin: 10px 0 0; border-top: 1px solid var(--ink); }
dl.facts dt, dl.facts dd { padding: 18px 0; border-bottom: 1px solid var(--line); margin: 0; }
dl.facts dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 21px; padding-right: 24px; }
dl.facts dd { font-size: 16px; }
dl.facts a { color: var(--accent); }
.ph { font-style: italic; color: var(--muted); }
span.ph { background: none; overflow: visible; position: static; }

/* formas de doar */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.way { padding: 34px 32px 34px 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.way + .way { padding-left: 32px; border-left: 1px solid var(--line); }
.way .n { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.way h3 { font-size: 36px; }
.way p { margin: 0 0 10px; color: var(--muted); }
.way dl.facts { width: 100%; grid-template-columns: 1fr 1.6fr; border-top-color: var(--line); }

/* passos e listas de regras */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); counter-reset: s; }
.step { padding: 30px 28px 0 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s, upper-roman); display: block; font-family: var(--display); font-style: italic; font-size: 22px; color: var(--muted); margin-bottom: 14px; }
.step h3 { font-size: 28px; margin-bottom: 10px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.checks li { padding: 16px 0 16px 26px; border-bottom: 1px solid var(--line); position: relative; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 27px; width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--accent); }
.checks li strong, .checks li b { color: var(--ink); font-weight: 500; }
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; filter: grayscale(.25); }
.photo.wide img { aspect-ratio: 21 / 9; }
.photo figcaption { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 10px; }
section.photo-band { padding: 0 !important; }
.cta { text-align: center; padding: 120px 0 160px !important; }
.cta h2 { font-size: clamp(48px, 6.6vw, 100px); max-width: 14ch; margin: 0 auto 10px; }
.cta .actions, .cta .wrap > div { justify-content: center; display: flex; gap: 18px 36px; flex-wrap: wrap; margin-top: 36px; }

/* sobre nós */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.story .ph { aspect-ratio: 4 / 5; }
.story p { color: var(--muted); max-width: 52ch; }
.facts-list.wide { max-width: 860px; }

/* ---------- formulário: uma pergunta por tela ---------- */
section.form-page.wizard-page { padding: 170px 0 120px; min-height: 100vh; }
.wiz-progress { height: 1px; background: var(--line); max-width: 760px; }
.wiz-progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .6s var(--ease); }
.wizard { max-width: 760px; padding-top: 9vh; position: relative; }
.wizard.js .wiz-step { display: none; }
.wizard.js .wiz-step.on { display: grid; gap: 18px; animation: wizIn .6s var(--ease) both; }
@keyframes wizIn { from { opacity: 0; transform: translateY(var(--from, 20px)); } to { opacity: 1; transform: none; } }
.wizard h1 { font-size: clamp(54px, 7vw, 100px); }
.wiz-sec { margin: 0; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }
.wiz-q { font-family: var(--display); font-weight: 300; font-size: clamp(34px, 4.6vw, 56px); line-height: 1.06; margin: 0; }
.opt { font-family: var(--body); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); vertical-align: middle; margin-left: 10px; }
.wiz-help { margin: -4px 0 0; color: var(--muted); }
.wizard input[type=text], .wizard input[type=number], .wizard input[type=tel], .wizard input[type=email], .wizard textarea {
  font: inherit; font-family: var(--display); font-size: clamp(24px, 2.8vw, 32px); font-weight: 300; background: transparent; color: var(--ink); border: 0; border-bottom: 1px solid var(--ink);
  padding: 10px 0; border-radius: 0; outline: none; width: 100%; transition: border-color .3s; }
.wizard textarea { min-height: 150px; resize: vertical; line-height: 1.3; }
.wizard input:focus, .wizard textarea:focus { border-bottom-color: var(--accent); }
.wizard input::placeholder, .wizard textarea::placeholder { color: color-mix(in srgb, var(--muted) 55%, transparent); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 12px 18px; border: 1px solid var(--line); font-size: 15px; transition: border-color .3s, background-color .3s, color .3s; }
.choice input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.choice input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 3px; }
.choices.stack { display: grid; gap: 8px; max-width: 560px; }
.choices.stack .choice span { display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 20px; font-size: 16.5px; }
.choices.stack .choice span::before { content: ""; flex: none; width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 50%; opacity: .6; }
.choices.stack .choice input[type=checkbox] + span::before { border-radius: 1px; }
.choices.stack .choice:hover span { border-color: var(--ink); }
.choices.stack .choice input:checked + span { background: transparent; color: var(--ink); border-color: var(--ink); }
.choices.stack .choice input:checked + span::before { background: var(--accent); border-color: var(--accent); opacity: 1; }
.consent { display: flex; gap: 14px; align-items: flex-start; font-size: 16px; color: var(--muted); max-width: 620px; }
.consent input { margin-top: 5px; width: 16px; height: 16px; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent); }
.minor { display: none; border-left: 1px solid var(--accent); padding: 4px 0 4px 20px; }
.minor.on { display: grid; gap: 16px; }
.wiz-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 30px; }
.wiz-nav[hidden], .wiz-nav [hidden] { display: none !important; }
.wiz-hint { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wiz-count { margin-left: auto; font-family: var(--display); font-size: 20px; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.wiz-back { background: none; border: 0; color: var(--muted); font: inherit; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; padding: 6px 0; }
.wiz-back:hover { color: var(--ink); }
.error { color: #9b2c1c; font-size: 14px; margin: 16px 0 0; min-height: 1.2em; }
.done { display: none; max-width: 700px; }
.done.on { display: block; }
.done h2 { font-size: clamp(44px, 5.4vw, 80px); }
.wiz-closed { margin-top: 28px; padding: 6px 0 6px 22px; border-left: 1px solid var(--accent); max-width: 620px; color: var(--muted); }
button.btn { background: var(--accent); border: 0; cursor: pointer; }
button.btn:hover { background: var(--accent-dark); }

@media (max-width: 1000px) {
  .split, .story { grid-template-columns: 1fr; gap: 50px; }
  .ways, .steps { grid-template-columns: 1fr; }
  .way + .way, .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .step { padding-bottom: 26px; }
}
@media (max-width: 640px) {
  .page-hero { padding: 170px 0 60px; }
  dl.facts { grid-template-columns: 1fr; }
  dl.facts dt { border-bottom: 0; padding-bottom: 0; }
  section.form-page.wizard-page { padding-top: 150px; }
  .wiz-hint { display: none; }
}

/* inscrições */
.plist.apply li { grid-template-columns: 1.1fr 1.6fr 1.1fr; }
.plist.apply .go { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
#mentor .split > div:last-child p { color: var(--muted); }
@media (max-width: 1000px) { .plist.apply li { grid-template-columns: 1fr; } }
