/* Conceito "ecossistema": o azul-noite da capa e as cores das lâmpadas
   (laranja, verde, azul e vermelho) como sinais de cada ideia. */
:root {
  --night: #0d1526;
  --night-2: #142038;
  --night-3: #1c2b4a;
  --line-night: #26365a;
  --ink: #111a2e;
  --muted: #5d6b82;
  --muted-night: #a9b6cc;
  --bg: #ffffff;
  --tint: #f3f6fb;
  --line: #e2e8f2;
  --orange: #f7941d;
  --orange-deep: #e07d06;
  --green: #3fb36b;
  --blue: #2f86e0;
  --red: #e5484d;
  --radius: 18px;
  --shadow: 0 24px 60px -28px rgba(13, 21, 38, .45);
  --display: 'Sora', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.fine { font-size: .8rem; color: var(--muted); margin: .9em 0 0; }
.eyebrow { font: 700 .76rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--orange-deep); margin-bottom: 1rem; }
.h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.c-orange { --c: var(--orange); }
.c-green { --c: var(--green); }
.c-blue { --c: var(--blue); }
.c-red { --c: var(--red); }

/* Seções noturnas */
.night { position: relative; background: var(--night); color: #dfe6f2; overflow: hidden; }
.night h1, .night h2, .night h3, .night .h2 { color: #fff; }
.night .eyebrow { color: var(--orange); }
.night .muted { color: var(--muted-night); }
.night a:not(.btn) { color: #8cc4ff; }
.tint { background: var(--tint); }
.orbs { position: absolute; inset: 0; pointer-events: none; }
.orbs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.orbs .o1 { width: 420px; height: 420px; background: #f7941d55; right: -120px; top: -120px; }
.orbs .o2 { width: 360px; height: 360px; background: #3fb36b44; left: -140px; bottom: -160px; }
.orbs .o3 { width: 300px; height: 300px; background: #2f86e04d; left: 40%; bottom: -200px; }
.night > .wrap { position: relative; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(13, 21, 38, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-night); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font: 700 1.05rem var(--display); color: #fff; text-decoration: none; }
.brand-dots { display: inline-flex; gap: 3px; }
.brand-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.brand-dots i:nth-child(2) { background: var(--green); }
.brand-dots i:nth-child(3) { background: var(--blue); }
.lang { display: flex; gap: 2px; border: 1px solid var(--line-night); border-radius: 999px; padding: 3px; }
.lang button { font: 600 .78rem var(--sans); border: 0; background: none; color: var(--muted-night); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.lang button:hover { color: #fff; }
.lang button[aria-pressed="true"] { background: var(--orange); color: #fff; }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 1rem var(--sans); padding: 14px 26px; border-radius: 12px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 12px 26px -12px rgba(247, 148, 29, .85); }
.btn-primary:hover { background: var(--orange-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: #c6d0e0; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; padding: 12px 16px; font-size: .92rem; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-outline-light:hover { background: #fff; color: var(--night); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 92px) 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.hero-grid > *, .hero-copy > * { min-width: 0; }
.hero-copy { display: grid; grid-template-columns: 1fr 220px; column-gap: 32px; align-items: start; }
.hero-copy > :not(.checks):not(.hero-cover) { grid-column: 1 / -1; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.lead { font-size: 1.16rem; color: #c6d1e3; max-width: 48ch; }
.checks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 34px; }
.checks li::before { content: ''; position: absolute; left: 4px; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px rgba(247, 148, 29, .2); }
.checks li:nth-child(2)::before { background: var(--green); box-shadow: 0 0 0 5px rgba(63, 179, 107, .2); }
.checks li:nth-child(3)::before { background: var(--blue); box-shadow: 0 0 0 5px rgba(47, 134, 224, .2); }
.hero-cover { margin: 6px 0 0; }
.hero-cover img { border-radius: 6px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); transform: rotate(2deg); transition: transform .4s; }
.hero-cover:hover img { transform: rotate(0); }

/* Cartão / formulário */
.card { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(24px, 3.5vw, 36px); }
.card h2, .card h3 { color: var(--ink) !important; }
.card .muted { color: var(--muted) !important; }
.form-card { position: sticky; top: 88px; border-top: 5px solid var(--orange); }
.form-card h2 { font-size: 1.55rem; }
form { display: grid; gap: 14px; margin-top: 18px; }
label { display: grid; gap: 6px; font-size: .86rem; font-weight: 600; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { font: 400 1rem var(--sans); color: var(--ink); width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcfe; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(47, 134, 224, .18); }
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; padding: 10px 14px; border-radius: 10px; background: #fdecea; color: #a12a1c; font-size: .9rem; }
.success-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; margin-bottom: 16px; }
.email-note { background: var(--tint); border-radius: 10px; padding: 10px 14px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }

/* Caminhos */
.paths { padding: 28px 0 0; }
.paths-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.path { display: grid; gap: 4px; padding: 22px 24px; border-radius: var(--radius); background: var(--tint); color: var(--ink); text-decoration: none; border: 1px solid transparent; transition: border-color .15s, transform .15s; }
.path:hover { border-color: var(--c, var(--orange)); transform: translateY(-2px); }
.path strong { font: 700 1.1rem var(--display); }
.path span:last-child { color: var(--muted); font-size: .95rem; }
.path-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--c); color: #fff; display: grid; place-items: center; font-size: 1.1rem; margin-bottom: 8px; }

/* Seções */
.section { padding: clamp(68px, 9vw, 112px) 0; }

/* Capítulos */
.chapters { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.chapters li { background: var(--tint); border-radius: var(--radius); padding: 26px 24px; position: relative; overflow: hidden; }
.chapters li::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); }
.chapters li:nth-child(1) { --c: var(--orange); }
.chapters li:nth-child(2) { --c: var(--green); }
.chapters li:nth-child(3) { --c: var(--blue); }
.chapters li:nth-child(4) { --c: var(--red); }
.ch-n { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--c); color: #fff; font: 700 1rem var(--display); margin-bottom: 14px; }
.chapters h3 { font-size: 1.18rem; }
.chapters p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Jornada */
.steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 40px 0 18px; position: relative; }
.steps::before { content: ''; position: absolute; left: 7%; right: 7%; top: 22px; height: 2px; background: linear-gradient(90deg, var(--orange), var(--green), var(--blue)); opacity: .5; }
.steps button { position: relative; display: grid; justify-items: center; gap: 10px; border: 0; background: none; color: var(--muted-night); cursor: pointer; font: 600 .86rem/1.25 var(--sans); padding: 0 2px 6px; text-align: center; }
.steps b { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--night-2); border: 2px solid var(--line-night); color: #fff; font: 700 1.05rem var(--display); transition: all .2s; }
.steps button:hover b { border-color: var(--orange); }
.steps button[aria-selected="true"] { color: #fff; }
.steps button[aria-selected="true"] b { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 7px rgba(247, 148, 29, .18); }
.step-panel { background: var(--night-2); border: 1px solid var(--line-night); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); max-width: 860px; margin: 0 auto; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.step-panel h3 { font-size: 1.5rem; }
.step-panel p { font-size: 1.06rem; }
.sp-need { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line-night); color: var(--muted-night); font-size: .98rem !important; }
.sp-need b { display: block; color: var(--green); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }

/* CERNE */
.cerne-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.cerne-detail { margin-top: 22px; }
.cd { background: var(--tint); border-left: 4px solid var(--blue); border-radius: 0 14px 14px 0; padding: 18px 22px; animation: fade .3s ease; }
.cd h3 { font-size: 1.12rem; margin-bottom: .35em; }
.cd p { margin: 0; color: var(--muted); }
.stairs { display: grid; gap: 10px; }
.stair { display: flex; align-items: center; gap: 14px; border: 0; border-radius: 14px; padding: 18px 22px; color: #fff; font: 600 1rem var(--sans); cursor: pointer; text-align: left; transition: transform .2s, box-shadow .2s, opacity .2s; opacity: .78; }
.stair b { font: 700 1.6rem var(--display); }
.stair[aria-pressed="true"] { opacity: 1; transform: translateX(-8px); box-shadow: 0 16px 30px -16px rgba(13, 21, 38, .6); }
.stair:hover { opacity: 1; }
.s1 { background: var(--red); margin-right: 36%; }
.s2 { background: #e0a21b; margin: 0 24% 0 12%; }
.s3 { background: var(--green); margin: 0 12% 0 24%; }
.s4 { background: var(--blue); margin-left: 36%; }

/* Tipos */
.types { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.types li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.ty-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: color-mix(in srgb, var(--c) 14%, white); color: var(--c); font-size: 1.3rem; margin-bottom: 14px; }
.types h3 { font-size: 1.05rem; }
.types p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Depoimentos */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.quote { margin: 0; background: var(--tint); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.quote.featured { grid-column: 1 / -1; background: var(--night); color: #e6ecf5; padding: clamp(28px, 5vw, 48px); }
.quote blockquote { margin: 0; font: 500 1.08rem/1.6 var(--sans); }
.quote.featured blockquote { font: 600 clamp(1.15rem, 2.2vw, 1.5rem)/1.5 var(--display); letter-spacing: -.01em; color: #fff; }
.quote figcaption { display: grid; gap: 2px; font-size: .9rem; border-top: 1px solid var(--line); padding-top: 14px; }
.quote.featured figcaption { border-color: var(--line-night); }
.quote figcaption span { color: var(--muted); }
.quote.featured figcaption span { color: var(--muted-night); }
.quote-name { font-weight: 700; color: var(--ink); }
.testi-cta { display: flex; align-items: center; justify-content: center; gap: 12px 20px; flex-wrap: wrap; margin-top: 32px; text-align: center; }
.testi-cta p { margin: 0; }

/* Autor */
.author { display: grid; grid-template-columns: 380px 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.author-media { display: grid; gap: 16px; min-width: 0; }
.author-photo img { border-radius: var(--radius); aspect-ratio: 1; object-fit: cover; box-shadow: var(--shadow); }
.stats { list-style: none; padding: 0; margin: 24px 0 0; display: flex; gap: 32px; flex-wrap: wrap; }
.stats li { display: grid; }
.stats b { font: 700 2rem var(--display); color: var(--orange); }
.stats span { color: var(--muted-night); font-size: .88rem; }
.social { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-night); color: #dfe6f2 !important; font-size: .86rem; font-weight: 600; text-decoration: none; transition: border-color .15s; }
.social a:hover { border-color: var(--orange); }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* Reels */
.reels { min-width: 0; }
.reels-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); }
.reels-track::-webkit-scrollbar { display: none; }
.reel { flex: 0 0 100%; scroll-snap-align: center; display: flex; justify-content: center; align-items: flex-start; min-width: 0; }
.reel .instagram-media { margin: 0 !important; min-width: 0 !important; width: 100% !important; background: #fff; border-radius: var(--radius) !important; }
.reel iframe { border-radius: var(--radius) !important; }
.reels-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; }
.reels-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-night); background: var(--night-2); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.reels-dots { display: flex; gap: 6px; }
.reels-dots button { width: 9px; height: 9px; padding: 0; border: 0; border-radius: 50%; background: var(--line-night); cursor: pointer; }
.reels-dots button[aria-current="true"] { background: var(--orange); }

/* Apoie */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.support-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.support-card h3 { font-size: 1.35rem; }
.support-card .btn { margin-top: 6px; }
#intl-donate { margin-top: 12px; }
.pix-qr { width: 180px; height: auto; margin: 8px 0 12px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.seg { display: inline-flex; gap: 4px; margin: 16px 0 8px; background: var(--tint); border-radius: 999px; padding: 4px; }
.seg button { font: 600 .85rem var(--sans); border: 0; background: none; color: var(--muted); padding: 6px 16px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--night); color: #fff; }
.donate-panel { margin-top: 8px; }
.bank-fields { margin: 0; display: grid; gap: 2px; font-size: .9rem; }
.bank-fields dt { color: var(--muted); font-size: .8rem; margin-top: 8px; }
.bank-fields dd { margin: 0; display: flex; align-items: baseline; gap: 10px; word-break: break-word; }
.copy-btn { flex: none; font: inherit; font-size: .8rem; color: var(--blue); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; cursor: pointer; }
code { font-size: .85rem; background: var(--tint); padding: 2px 6px; border-radius: 6px; word-break: break-all; }

/* CTA final */
.final { padding: clamp(80px, 10vw, 112px) 0; }
.final .h2 { margin-bottom: 28px; }
.contact-cta { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line-night); }
.contact-cta h3 { font-size: 1.35rem; }
.contact-cta p { margin-bottom: 20px; color: #c6d1e3; }

/* Rodapé */
.footer { padding: 32px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--orange-deep); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--night); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: .92rem; z-index: 50; }

/* Modais */
.modal { width: min(560px, 100% - 32px); max-height: calc(100dvh - 32px); padding: clamp(24px, 4vw, 36px); border: 0; border-top: 5px solid var(--orange); border-radius: var(--radius); background: #fff; color: var(--ink); box-shadow: var(--shadow); overflow: auto; }
.modal::backdrop { background: rgba(13, 21, 38, .65); backdrop-filter: blur(3px); }
.modal h2 { font-size: 1.45rem; padding-right: 32px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--tint); color: var(--ink); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.modal-done { text-align: center; }
.modal-done .success-icon { margin-inline: auto; }
body:has(dialog[open]) { overflow: hidden; }

/* Entrada suave ao rolar */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* Responsivo */
@media (max-width: 1000px) {
  .chapters { grid-template-columns: 1fr 1fr; }
  .types { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .hero-grid, .author, .cerne-grid { grid-template-columns: 1fr; }
  .form-card { position: static; }
  .author-photo, .author-media { max-width: 420px; }
  .steps { display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; margin-inline: -16px; padding: 0 16px 6px; }
  .steps::-webkit-scrollbar { display: none; }
  .steps button { flex: 0 0 104px; scroll-snap-align: center; }
  .steps::before { left: 16px; right: auto; width: calc(7 * 112px - 16px); }
}
@media (max-width: 760px) {
  .paths-grid, .chapters, .quotes, .support-grid, .types { grid-template-columns: 1fr; }
  .hero-copy { grid-template-columns: 1fr; }
  .hero-cover { order: -1; width: 170px; margin: 0 auto 28px; }
  .hero-copy > .eyebrow { order: -2; text-align: center; }
  .row2 { grid-template-columns: 1fr; }
  .s1, .s2, .s3, .s4 { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .path, .hero-cover img, .stair { transition: none; }
  .step-panel, .cd { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
