:root {
  --navy: #04142d;
  --navy-2: #0b2142;
  --navy-line: rgba(255, 255, 255, .12);
  --orange: #f87c4f;
  --terracota: #bf3d0d;
  --terracota-2: #a43309;
  --cream: #fdefe3;
  --sand: #f3f0ed;
  --ink: #04142d;
  --muted: #5b6577;
  --line: #e3ddd6;
  --radius: 18px;
  --shadow: 0 24px 60px -20px rgba(4, 20, 45, .45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: #fff; font-family: Inter, system-ui, -apple-system, sans-serif; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a, button { color: inherit; font: inherit; }
a { text-decoration: none; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.accent { color: var(--orange); }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.hint { color: rgba(255, 255, 255, .55); font-size: 14px; font-style: italic; }

/* Botões */
.btn, .btn2 { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: background .2s, transform .2s, box-shadow .2s; }
.btn { background: var(--terracota); color: #fff; box-shadow: 0 10px 24px -10px rgba(191, 61, 13, .8); }
.btn:hover { background: var(--terracota-2); transform: translateY(-1px); }
.btn2 { border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; }
.btn2:hover { border-color: var(--orange); color: var(--orange); }
.sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 20; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 40px; background: rgba(4, 20, 45, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--navy-line); }
.brand, .brand nav, .actions, .switch { display: flex; align-items: center; }
.brand { gap: 40px; }
.brand nav { gap: 28px; }
.brand nav a, .brand nav button { font-size: 15px; color: rgba(255, 255, 255, .8); transition: color .2s; }
.brand nav a:hover, .brand nav button:hover { color: var(--orange); }
.logo img { height: 34px; width: auto; }
.actions { gap: 14px; }
.switch { padding: 4px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; }
.switch a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .75); }
.switch .active { background: var(--orange); color: var(--navy); }

/* Hero */
.hero { position: relative; min-height: 620px; overflow: hidden; isolation: isolate; }
.hero-image { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--navy) 0%, rgba(4, 20, 45, .88) 38%, rgba(4, 20, 45, .35) 100%), url('/assets/img/usina-por-do-sol.png') center 40% / cover; }
.hero-image::after { content: ""; position: absolute; inset: 0; background: url('/assets/img/padronagem.png') left -60px top -40px / 420px auto no-repeat; opacity: .35; }
.hero-inner { max-width: 1280px; min-height: 620px; margin: auto; padding: 64px 80px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.pill { display: inline-flex; padding: 7px 14px; border: 1px solid rgba(248, 124, 79, .55); border-radius: 999px; background: rgba(248, 124, 79, .12); color: var(--orange); font-size: 13px; font-weight: 600; }
.hero h1 { margin: 0; font-size: clamp(36px, 4.2vw, 54px); line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }
.hero .lead { margin: 0; font-size: 20px; color: rgba(255, 255, 255, .9); }
.hero .sub { margin: 0; font-size: 16px; color: var(--orange); font-weight: 500; }
.tagline { font-size: 15px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.tagline::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(248, 124, 79, .25); }

/* Simulador */
.simulator { justify-self: end; width: 100%; max-width: 470px; padding: 32px; display: flex; flex-direction: column; gap: 22px; background: #fff; color: var(--ink); border-radius: 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.simulator::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; border-radius: 24px 24px 0 0; background: linear-gradient(90deg, var(--terracota), var(--orange)); }
.sim-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.sim-head img { width: 44px; height: 44px; object-fit: contain; padding: 8px; border-radius: 12px; background: var(--cream); }
.sim-head strong { display: block; font-size: 17px; }
.sim-head span { font-size: 13px; color: var(--muted); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink); }
.field select, .field input, .field textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font: inherit; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.field textarea { padding: 12px 14px; resize: vertical; }
.field select { appearance: none; padding-right: 38px; text-overflow: ellipsis; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23bf3d0d' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") right 14px center no-repeat; cursor: pointer; }
.field select:focus, .field input:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(248, 124, 79, .18); }
.field.invalid select { border-color: var(--terracota); background-color: #fff6f2; }
.range { padding: 18px; border-radius: 16px; background: var(--sand); }
.range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.range-head label { font-size: 13px; font-weight: 600; }
.range-head output { font-size: 24px; font-weight: 800; color: var(--terracota); letter-spacing: -.02em; white-space: nowrap; }
.range input { --fill: 50%; width: 100%; height: 8px; margin: 0; appearance: none; border-radius: 999px; background: linear-gradient(90deg, var(--terracota), var(--orange)) 0 / var(--fill) 100% no-repeat, #ddd5cc; cursor: pointer; }
.range input::-webkit-slider-thumb { appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 6px solid var(--terracota); box-shadow: 0 4px 10px rgba(4, 20, 45, .25); }
.range input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 6px solid var(--terracota); box-shadow: 0 4px 10px rgba(4, 20, 45, .25); }
.range-scale { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--muted); }
.sim-note { margin: -8px 0 0; text-align: center; font-size: 12px; color: var(--muted); }
.sim-error { margin: -12px 0 0; min-height: 0; text-align: center; font-size: 13px; font-weight: 600; color: var(--terracota); }
.sim-error:empty { display: none; }

/* Simulador: identidade do PDF (navy, gomos, laranja) */
.simulator { gap: 20px; padding: 30px 32px 26px; color: #fff; border-radius: 28px; border: 1px solid rgba(255, 255, 255, .14); background: linear-gradient(165deg, rgba(11, 33, 66, .94) 0%, rgba(4, 20, 45, .96) 70%); backdrop-filter: blur(16px); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .08); }
.simulator::before { inset: 0; height: auto; border-radius: 0; pointer-events: none; background: radial-gradient(420px 180px at 100% 0%, rgba(248, 124, 79, .22), transparent 70%), url('/assets/img/padronagem.png') right -90px top -70px / 280px auto no-repeat; opacity: .9; }
.simulator > * { position: relative; }
.simulator .sim-head { gap: 16px; padding-bottom: 20px; border-bottom-color: rgba(255, 255, 255, .12); }
.simulator .sim-head img { width: auto; height: 34px; padding: 0; border-radius: 0; background: none; }
.simulator .sim-head div { padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .16); }
.simulator .sim-head strong { font-size: 16px; letter-spacing: -.01em; }
.simulator .sim-head span { color: rgba(255, 255, 255, .62); }
.simulator .field > span { color: rgba(255, 255, 255, .7); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.simulator .field select { color: #fff; border-color: rgba(255, 255, 255, .18); background-color: rgba(255, 255, 255, .06); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23f87c4f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.simulator .field select:hover { border-color: rgba(248, 124, 79, .6); }
.simulator .field select:focus { box-shadow: 0 0 0 4px rgba(248, 124, 79, .22); }
.simulator option { color: #fff; background: var(--navy-2); }
.simulator .field.invalid select { border-color: #ff9b76; background-color: rgba(191, 61, 13, .18); }
.simulator .range { border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .04); }
.simulator .range-head label { color: rgba(255, 255, 255, .82); }
.simulator .range-head output { font-size: 28px; color: var(--orange); }
.simulator .range input { background: linear-gradient(90deg, var(--terracota), var(--orange)) 0 / var(--fill) 100% no-repeat, rgba(255, 255, 255, .14); }
.simulator .range input::-webkit-slider-thumb { border-color: var(--orange); box-shadow: 0 0 0 6px rgba(248, 124, 79, .2), 0 4px 10px rgba(0, 0, 0, .4); }
.simulator .range input::-moz-range-thumb { border-color: var(--orange); box-shadow: 0 0 0 6px rgba(248, 124, 79, .2), 0 4px 10px rgba(0, 0, 0, .4); }
.simulator .range-scale, .simulator .sim-note { color: rgba(255, 255, 255, .58); }
.simulator .sim-error { color: #ffb08f; }
@media (max-width: 520px) {
  .simulator { padding: 24px 20px 20px; border-radius: 22px; }
  .simulator .sim-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .simulator .sim-head img { height: 28px; }
  .simulator .sim-head div { padding-left: 0; border-left: 0; }
  .simulator .range-head { flex-direction: column; gap: 2px; }
  .simulator .btn-block { padding: 0 16px; }
}

/* Seções */
.section { max-width: 1280px; margin: auto; padding: 96px 80px; }
.section h2 { margin: 14px 0 0; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.12; font-weight: 800; letter-spacing: -.025em; }
.section h3 { margin: 0; font-size: 20px; }
.section-head { margin-bottom: 48px; max-width: 720px; }
.alt { max-width: none; padding-left: max(80px, calc((100% - 1120px) / 2)); padding-right: max(80px, calc((100% - 1120px) / 2)); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.two-col p { color: rgba(255, 255, 255, .75); font-size: 17px; margin: 20px 0 28px; }

/* Como funciona */
.how { position: relative; }
.how::before { content: ""; position: absolute; right: 0; top: 40px; width: 360px; height: 420px; background: url('/assets/img/padronagem.png') center / contain no-repeat; opacity: .18; pointer-events: none; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.step { position: relative; display: flex; flex-direction: column; gap: 12px; }
.step > img, .step-bill { width: 100%; aspect-ratio: 6 / 5; object-fit: contain; }
.step-bill { position: relative; }
.step-bill img:first-child { position: absolute; left: 6%; top: 8%; width: 62%; transform: rotate(-6deg); }
.step-bill .badge { position: absolute; right: 2%; top: 0; width: 44%; }
.step-bill b { position: absolute; right: 2%; top: 0; width: 44%; aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; line-height: 1.1; text-align: center; }
.step-bill b strong { font-size: 30px; font-weight: 800; }
.num { position: absolute; top: 4px; left: 4px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--terracota); font-weight: 800; }
.step p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 15px; }
.quota-explain { margin: 56px 0 40px; padding: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; align-items: center; border-radius: var(--radius); background: var(--cream); color: var(--ink); }
.quota-explain h3 { margin: 12px 0; font-size: 28px; }
.quota-explain p { margin: 0 0 10px; color: #3b4556; }
.quota-explain .hint { color: #8a7a6c; }
.flow { display: flex; align-items: center; gap: 12px; }
.flow b { flex: 1; padding: 20px 10px; text-align: center; font-size: 14px; border-radius: 14px; background: #fff; border: 1px solid #f0d8c4; box-shadow: 0 8px 20px -14px rgba(191, 61, 13, .6); }
.flow .wide { flex: 1.4; background: var(--terracota); border-color: var(--terracota); color: #fff; }
.flow span { color: var(--terracota); font-size: 22px; font-weight: 700; }

/* Sobre */
.about { background: var(--navy-2); }
.photo { height: 380px; border-radius: 28px 120px 28px 28px; background: center / cover; box-shadow: var(--shadow); }

/* Prova social */
.testimonial-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.quote { padding: 24px; display: flex; flex-direction: column; gap: 10px; border-radius: var(--radius); background: rgba(255, 255, 255, .04); border: 1px dashed rgba(255, 255, 255, .25); }
.quote p { margin: 6px 0; color: rgba(255, 255, 255, .75); }
.quote small { color: rgba(255, 255, 255, .5); }
.avatar { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; border: 1.5px dashed var(--orange); color: var(--orange); font-size: 11px; }

/* Donos de usina */
.owners { background: var(--navy-2); position: relative; overflow: hidden; }
.owners::before { content: ""; position: absolute; left: -80px; bottom: -120px; width: 380px; height: 460px; background: url('/assets/img/padronagem.png') center / contain no-repeat; opacity: .14; pointer-events: none; }
.card-form, .contact { padding: 32px; display: flex; flex-direction: column; gap: 16px; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--terracota); }

/* FAQ */
.faq { max-width: none; background: var(--sand); color: var(--ink); border-radius: 48px 48px 0 0; padding-left: max(80px, calc((100% - 1120px) / 2)); padding-right: max(80px, calc((100% - 1120px) / 2)); }
.faq-list { max-width: 880px; margin: 36px 0; display: flex; flex-direction: column; gap: 12px; }
.faq-list details { border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: border-color .2s; }
.faq-list details[open] { border-color: var(--orange); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; list-style: none; cursor: pointer; font-weight: 600; color: var(--terracota); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 22px; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: 0; padding: 0 22px 18px; color: var(--muted); }
.contact { max-width: 880px; margin-bottom: 24px; background: #fff; box-shadow: none; border: 1px solid var(--line); }
.contact h3 { font-size: 22px; }
.faq .btn2 { border-color: var(--ink); color: var(--ink); }
.faq .btn2:hover { border-color: var(--terracota); color: var(--terracota); }

/* Footer */
.footer { padding: 64px max(80px, calc((100% - 1120px) / 2)) 40px; background: var(--navy); border-top: 1px solid var(--navy-line); display: flex; flex-direction: column; gap: 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.footer-grid b { margin-bottom: 8px; color: var(--orange); font-size: 14px; letter-spacing: .04em; }
.footer-grid a, .footer-grid button { min-height: 30px; font-size: 15px; color: rgba(255, 255, 255, .72); text-align: left; }
.footer-grid a:hover, .footer-grid button:hover { color: #fff; }
.footer-logo { height: 40px; width: auto; }
.footer-grid p { color: rgba(255, 255, 255, .6); margin: 12px 0 0; }
.legal { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--navy-line); }
.legal button { font-size: 14px; color: rgba(255, 255, 255, .6); }
.notice { padding: 16px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .2); font-size: 13px; color: rgba(255, 255, 255, .5); }

/* Responsivo */
@media (max-width: 1100px) {
  .topbar { padding: 0 24px; }
  .brand { gap: 24px; }
  .brand nav { gap: 18px; }
  .actions .btn2 { display: none; }
  .hero-inner, .section { padding-left: 40px; padding-right: 40px; }
  .hero-inner { gap: 40px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .testimonial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .brand nav, .topbar .btn.sm { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding: 56px 20px; }
  .hero-image { background: linear-gradient(180deg, rgba(4, 20, 45, .75), var(--navy) 70%), url('/assets/img/usina-por-do-sol.png') center top / cover; }
  .simulator { justify-self: stretch; max-width: none; padding: 24px; }
  .section, .alt, .faq { padding: 72px 20px; }
  .two-col, .quota-explain { grid-template-columns: 1fr; gap: 32px; }
  .quota-explain { padding: 28px; }
  .flow { flex-wrap: wrap; }
  .flow .wide { flex-basis: 100%; }
  .photo { height: 280px; }
  .footer { padding: 56px 20px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .faq { border-radius: 32px 32px 0 0; }
}
@media (max-width: 520px) {
  .topbar { padding: 0 16px; }
  .logo img { height: 28px; }
  .switch a { padding: 0 12px; font-size: 13px; }
  .fields, .steps, .testimonial-grid, .footer-grid { grid-template-columns: 1fr; }
  .step > img, .step-bill { max-width: 280px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Resultado da simulação (reaproveita tokens) */
.result { max-width: 880px; }
.result h1 { font-size: clamp(32px, 4vw, 48px); margin: 16px 0 8px; letter-spacing: -.02em; }
