/* IHPBR · Curso ao vivo — inscrição e obrigado */
:root {
  --ink-0: #00070F;
  --ink-1: #000C18;
  --ink-2: #001428;
  --ink-3: #0B2840;
  --line: rgba(160, 205, 225, .14);
  --line-2: rgba(160, 205, 225, .26);
  --teal: #33798D;
  --teal-2: #5CB8CF;
  --amber: #FFBB00;
  --amber-ink: #1A1200;
  --text: #EAF2F6;
  --muted: #9AB0BF;
  --danger: #FF6B6B;
  --f-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 20px;
  --gutter: clamp(16px, 4vw, 40px);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink-1); color: var(--text); font-family: var(--f-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

/* Topo */
.bar { background: var(--teal); color: #fff; text-align: center; font-family: var(--f-display); font-weight: 800; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; padding: 10px 16px; }
.top { padding-block: 22px; }
.top img { height: 40px; width: auto; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--ink-1) 0%, rgba(0,12,24,.92) 45%, rgba(0,12,24,.4) 100%), linear-gradient(0deg, var(--ink-1) 0%, transparent 35%); }
.hero .container { max-width: 1320px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 330px) minmax(340px, 400px); grid-template-areas: "content person form"; column-gap: clamp(16px, 2.4vw, 32px); align-items: center; }
.hero__content { position: relative; z-index: 2; grid-area: content; padding-bottom: clamp(48px, 6vw, 80px); }
@media (min-width: 861px) {
  .hero h1 { font-size: clamp(2.6rem, 3.9vw, 4rem); }
  .hero__sub { font-size: clamp(1.15rem, 1.6vw, 1.5rem); }
  .hero__lead { font-size: 1.02rem; }
  .hero .when { flex-wrap: nowrap; }
  .hero .when div { padding: 10px 14px; }
  .hero .when b { font-size: 1.1rem; white-space: nowrap; }
}
.hero__grid > .card { grid-area: form; margin-bottom: clamp(48px, 6vw, 80px); z-index: 2; }
.hero__person { grid-area: person; align-self: end; margin: 0 -40px 0 -60px; position: relative; z-index: 1; }
.hero__person::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 0; height: 70%; border-radius: 50% 50% 0 0; background: radial-gradient(60% 60% at 50% 60%, rgba(92,184,207,.35), transparent 70%); z-index: -1; }
.hero__person img { width: 100%; height: auto; max-height: min(78svh, 640px); object-fit: contain; object-position: bottom; filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)); }
.hero__person::after { content: ""; position: absolute; left: -20%; right: -20%; bottom: 0; height: 18%; background: linear-gradient(0deg, var(--ink-1), transparent); }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 99px; background: rgba(255,187,0,.12); border: 1px solid rgba(255,187,0,.45); color: var(--amber); font-family: var(--f-display); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(255,187,0,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(255,187,0,0); } }
h1 { margin: 0 0 .35em; font-family: var(--f-display); font-stretch: 75%; font-weight: 900; text-transform: uppercase; font-size: clamp(2.3rem, 5.4vw, 4.4rem); line-height: .95; letter-spacing: -.01em; color: var(--teal-2); text-wrap: balance; }
.hero__sub { font-family: var(--f-display); font-stretch: 80%; font-weight: 800; font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.15; margin-bottom: .7em; }
.hero__lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: #CFDDE5; max-width: 52ch; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.4rem 0 0; padding: 0; list-style: none; }
.topics li { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--teal-2); font-size: .88rem; font-weight: 500; }
.when { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.when div { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-radius: 14px; background: rgba(11,40,64,.7); border: 1px solid var(--line); }
.when svg { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.when b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; line-height: 1.1; }
.when small { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

/* Formulário */
.card { position: relative; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: linear-gradient(165deg, rgba(14,40,62,.92), rgba(2,14,28,.95)); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0,0,0,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.card h2 { margin: 0 0 4px; font-family: var(--f-display); font-stretch: 80%; font-weight: 900; text-transform: uppercase; font-size: 1.6rem; line-height: 1.05; }
.card > p { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: 6px; color: #D7E4EB; }
.field input, .field select { width: 100%; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0,7,15,.6); color: var(--text); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--teal-2) 50%), linear-gradient(135deg, var(--teal-2) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; }
.field select option { background: var(--ink-2); }
.field input::placeholder { color: #5E7586; }
.field input:focus, .field select:focus { outline: none; border-color: var(--teal-2); box-shadow: 0 0 0 3px rgba(92,184,207,.2); }
.field.is-error input, .field.is-error select { border-color: var(--danger); }
.field .err { display: none; color: var(--danger); font-size: .78rem; margin-top: 5px; }
.field.is-error .err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 24px; border: 0; border-radius: 99px; background: var(--amber); color: var(--amber-ink); font-family: var(--f-display); font-weight: 800; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; cursor: pointer; box-shadow: 0 12px 36px -12px rgba(255,187,0,.6); transition: transform .2s, box-shadow .2s, opacity .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(255,187,0,.8); }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn--ghost:hover { border-color: var(--teal-2); box-shadow: none; }
.btn__ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.form-msg { display: none; margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: rgba(255,107,107,.12); border: 1px solid rgba(255,107,107,.4); color: #FFC9C9; font-size: .88rem; }
.form-msg.is-on { display: block; }
.privacy { margin: 12px 0 0; font-size: .74rem; color: var(--muted); text-align: center; }

/* Sobre */
.section { padding-block: clamp(56px, 8vw, 96px); }
.about { background: var(--ink-2); }
.about__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.about__photo { position: relative; aspect-ratio: 4 / 4.4; border-radius: var(--radius); overflow: hidden; background: radial-gradient(70% 60% at 50% 35%, rgba(92,184,207,.38), transparent 70%), linear-gradient(170deg, #134457, var(--ink-3) 55%, var(--ink-1)); border: 1px solid var(--line); }
.about__photo picture { position: absolute; left: 50%; bottom: 0; height: 94%; transform: translateX(-50%); }
.about__photo picture img { height: 100%; width: auto; max-width: none; }
.eyebrow { font-family: var(--f-display); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--teal-2); margin-bottom: 10px; }
h2.title { margin: 0 0 .5em; font-family: var(--f-display); font-stretch: 75%; font-weight: 900; text-transform: uppercase; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: .98; text-wrap: balance; }
.about p { color: #C3D3DC; }
.about strong { color: #fff; }
.learn { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.learn li { padding: 18px; border-radius: 14px; background: rgba(11,40,64,.6); border: 1px solid var(--line); font-weight: 600; line-height: 1.35; }
.learn li span { display: block; font-family: var(--f-display); font-weight: 900; font-size: 1.4rem; color: var(--amber); margin-bottom: 6px; }

/* Galeria */
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 14px; border: 1px solid var(--line); }

/* CTA final */
.final { text-align: center; }
.final .title { max-width: 820px; margin-inline: auto; }
.final p { color: var(--muted); }
.final .btn { width: auto; min-width: 280px; margin-top: 10px; }

.footer { padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--ink-0); font-size: .78rem; color: #5E7586; text-align: center; }

/* Obrigado */
.thanks { min-height: 100svh; display: flex; flex-direction: column; }
.thanks main { flex: 1; display: grid; place-items: center; padding-block: 32px 64px; }
.thanks__main { position: relative; isolation: isolate; max-width: 1180px; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); column-gap: clamp(24px, 4vw, 56px); padding-bottom: 0 !important; }
.thanks__box { max-width: 640px; text-align: center; padding-bottom: 64px; }
.thanks__person { position: relative; margin: 0; align-self: end; justify-self: center; width: min(100%, 420px); }
.thanks__person::before { content: ""; position: absolute; left: 5%; right: 5%; bottom: 0; height: 75%; border-radius: 50% 50% 0 0; background: radial-gradient(60% 60% at 50% 60%, rgba(92,184,207,.35), transparent 70%); z-index: -1; }
.thanks__person::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: 0; height: 18%; background: linear-gradient(0deg, var(--ink-1), transparent); }
.thanks__person img { width: 100%; height: auto; max-height: min(80svh, 680px); object-fit: contain; object-position: bottom; filter: drop-shadow(0 30px 50px rgba(0,0,0,.55)); }
.check { width: 84px; height: 84px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,187,0,.12); border: 2px solid var(--amber); }
.check svg { width: 40px; height: 40px; fill: none; stroke: var(--amber); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.thanks h1 { color: #fff; }
.thanks h1 em { font-style: normal; color: var(--teal-2); }
.thanks__lead { color: #CFDDE5; font-size: 1.1rem; }
.thanks .when { justify-content: center; margin: 22px 0 26px; }
.steps { text-align: left; margin: 0 0 26px; padding: 18px 22px; border-radius: 16px; background: rgba(11,40,64,.6); border: 1px solid var(--line); list-style: none; counter-reset: s; }
.steps li { position: relative; padding-left: 36px; margin: 8px 0; color: #C3D3DC; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #fff; font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.actions { display: grid; gap: 10px; }

@media (max-width: 1080px) and (min-width: 861px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr) 210px minmax(310px, 340px); column-gap: 14px; }
  .hero__person { margin: 0 -30px 0 -40px; }
  .hero h1 { font-size: 2.5rem; }
  .card { padding: 22px; }
  .hero .when { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 860px) {
  .thanks__main { grid-template-columns: 1fr; padding-top: 8px !important; }
  .thanks__person { order: -1; width: min(56vw, 230px); margin-bottom: -46px; z-index: 0; }
  .thanks__person::after { height: 40%; }
  .thanks__box { position: relative; z-index: 1; }
  .about__grid { grid-template-columns: 1fr; }
  .hero__grid { grid-template-columns: 1fr; grid-template-areas: "content" "person" "form"; }
  .hero__content { padding-bottom: 8px; }
  .hero__person { margin: 0 auto -110px; width: min(68vw, 300px); }
  .hero__person img { max-height: none; }
  .hero__person::after { height: 45%; }
  .hero::after { background: linear-gradient(180deg, rgba(0,12,24,.75) 0%, var(--ink-1) 60%); }
  .about__photo { max-width: 420px; }
  .learn { grid-template-columns: 1fr; }
  .photos { grid-template-columns: 1fr 1fr; }
  .photos img:last-child { display: none; }
}
@media (max-width: 480px) {
  .when { gap: 8px; }
  .when div { flex: 1 1 0; min-width: 0; padding: 10px 12px; gap: 10px; }
  .when svg { width: 22px; height: 22px; }
  .when b { font-size: 1rem; }
  .topics li { font-size: .8rem; padding: 6px 11px; }
  .final .btn { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
