/* Página de orçamento — mesma identidade do site, em tom de documento comercial */
:root {
  --bg: #0B0912; --surface: #14111E; --surface-2: #1C1828; --text: #F5F3FF; --muted: #A9A3BF;
  --primary: #8B5CF6; --secondary: #EC4899; --accent: #C6F432;
  --cta-bg: linear-gradient(120deg, #8B5CF6, #EC4899); --cta-text: #fff;
  --font-h: 'Bricolage Grotesque', system-ui, sans-serif; --font-b: 'Plus Jakarta Sans', system-ui, sans-serif; --font-a: 'Instrument Serif', Georgia, serif;
  --line: color-mix(in srgb, var(--text) 10%, transparent);
  --line-2: color-mix(in srgb, var(--text) 18%, transparent);
  --shadow: 0 30px 60px -30px rgb(0 0 0 / .55);
  --ok: #34D399; --bad: #F87171;
  --r: 22px;
}
.theme-light { --shadow: 0 30px 60px -30px color-mix(in srgb, var(--primary) 30%, transparent); --ok: #059669; --bad: #DC2626; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 16px/1.65 var(--font-b); -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; transition: background-color .5s, color .5s; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.i { width: 1em; height: 1em; flex: none; }
h1, h2, h3 { font-family: var(--font-h); line-height: 1.08; letter-spacing: -0.025em; text-wrap: balance; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.hl { font-family: var(--font-a); font-style: italic; font-weight: 400; letter-spacing: -0.01em; background: linear-gradient(100deg, var(--primary), var(--secondary)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }

/* fundo vivo */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg span { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(90px); opacity: .2; animation: drift 28s ease-in-out infinite alternate; }
.bg span:nth-child(1) { background: var(--primary); top: -20vmax; left: -14vmax; }
.bg span:nth-child(2) { background: var(--secondary); top: 35vh; right: -22vmax; animation-duration: 34s; }
.bg span:nth-child(3) { background: var(--accent); bottom: -28vmax; left: 30vw; opacity: .08; animation-duration: 40s; }
.theme-light .bg span { opacity: .26; }
.theme-light .bg span:nth-child(3) { opacity: .16; }
.bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); opacity: .35; }
@keyframes drift { 50% { transform: translate(6vw, 8vh) scale(1.08); } 100% { transform: translate(-4vw, -4vh) scale(.95); } }

#loader { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: var(--bg); transition: opacity .5s, visibility .5s; }
#loader span { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--line-2); border-top-color: var(--primary); animation: spin .9s linear infinite; }
#loader.done { opacity: 0; visibility: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }

/* topo */
.top { position: sticky; top: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.top.scrolled { background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(14px) saturate(1.3); border-color: var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-mark { width: 38px; height: 38px; border-radius: 12px; background: var(--cta-bg); color: #fff; display: grid; place-items: center; font-family: var(--font-h); font-weight: 700; overflow: hidden; flex: none; }
.logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.logo strong { display: block; font-family: var(--font-h); font-size: 1.02rem; line-height: 1.1; }
.logo small { display: block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: .85em 1.4em; border-radius: 999px; font-weight: 700; font-size: .95rem; border: 1px solid var(--line-2); transition: transform .2s, box-shadow .3s, background .3s, border-color .3s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 50%, var(--line-2)); }
.btn.primary { background: var(--cta-bg); color: var(--cta-text); border-color: transparent; box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--primary) 80%, transparent); position: relative; overflow: hidden; }
.btn.primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .35) 50%, transparent 70%); transform: translateX(-120%); animation: shine 3.6s ease-in-out infinite; }
@keyframes shine { 60%, 100% { transform: translateX(120%); } }
.btn.wa { background: #25D366; color: #06240F; border-color: transparent; }
.btn.sm { padding: .6em 1em; font-size: .84rem; }
.btn.ghost { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* seletor de tema (igual ao site) */
.theme-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 70%, transparent); backdrop-filter: blur(10px); isolation: isolate; }
.theme-switch button { display: inline-flex; align-items: center; justify-content: center; padding: .5rem .65rem; border-radius: 999px; color: var(--muted); transition: color .3s; }
.theme-switch button[aria-pressed="true"] { color: var(--cta-text); }
.ts-thumb { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--cta-bg); transition: transform .45s cubic-bezier(.5,1.6,.4,1); }
.theme-switch[data-mode="clean"] .ts-thumb { transform: translateX(100%); }

/* capa */
.hero { padding: clamp(36px, 7vw, 84px) 0 clamp(28px, 4vw, 44px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 60%, transparent); font-size: .82rem; font-weight: 600; }
.eyebrow b { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.8rem); margin: 22px 0 14px; }
.hero .lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: var(--muted); max-width: 640px; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 34px; }
.meta div { padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); backdrop-filter: blur(8px); }
.meta small { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.meta strong { font-family: var(--font-h); font-size: 1.15rem; }
.meta .warn { color: var(--secondary); }

/* blocos */
section.block { padding: clamp(24px, 4vw, 40px) 0; }
.label { display: flex; align-items: center; gap: 12px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 18px; }
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.block h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin-bottom: 22px; }
.card { background: color-mix(in srgb, var(--surface) 78%, transparent); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.letter { padding: clamp(22px, 4vw, 36px); display: grid; gap: 16px; font-size: 1.05rem; }
.letter p { white-space: pre-line; }
.sign { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px dashed var(--line-2); }
.sign .logo-mark { width: 44px; height: 44px; }
.sign strong { font-family: var(--font-a); font-style: italic; font-size: 1.5rem; font-weight: 400; line-height: 1; }
.sign small { color: var(--muted); display: block; font-size: .82rem; }

/* itens */
.items { display: grid; gap: 12px; }
.item { display: grid; grid-template-columns: 52px 1fr auto; gap: 18px; align-items: start; padding: 20px 22px; transition: transform .3s, border-color .3s; }
.item:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 40%, var(--line)); }
.item-n { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-family: var(--font-h); font-weight: 700; font-size: 1.1rem; background: color-mix(in srgb, var(--primary) 16%, transparent); color: var(--primary); border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); }
.item h3 { font-size: 1.2rem; margin-bottom: 4px; }
.item p { color: var(--muted); font-size: .95rem; white-space: pre-line; }
.item .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.tag { font-size: .76rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }
.item .price { text-align: right; font-family: var(--font-h); font-weight: 700; font-size: 1.25rem; white-space: nowrap; }
.item .price small { display: block; font-family: var(--font-b); font-weight: 500; font-size: .78rem; color: var(--muted); }

/* planos */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.plan { position: relative; padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; text-align: left; transition: transform .3s, border-color .3s, box-shadow .3s; cursor: pointer; }
.plan:hover { transform: translateY(-4px); }
.plan.featured { border-color: color-mix(in srgb, var(--primary) 55%, transparent); }
.plan.chosen { border-color: var(--primary); box-shadow: 0 0 0 2px var(--primary), var(--shadow); }
.plan .badge { position: absolute; top: -12px; left: 24px; padding: 4px 12px; border-radius: 99px; background: var(--cta-bg); color: #fff; font-size: .74rem; font-weight: 700; }
.plan h3 { font-size: 1.35rem; }
.plan .p-price { font-family: var(--font-h); font-size: 2rem; font-weight: 700; }
.plan .p-price small { font-family: var(--font-b); font-size: .9rem; color: var(--muted); font-weight: 500; }
.plan ul { list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: .94rem; }
.plan li { display: flex; gap: 10px; }
.plan li .i { color: var(--primary); margin-top: 5px; }
.plan .pick { margin-top: auto; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .9rem; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; }
.plan.chosen .radio { border-color: var(--primary); }
.plan.chosen .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }

/* etapas */
.steps { display: grid; gap: 0; position: relative; }
.step { display: grid; grid-template-columns: 44px 1fr auto; gap: 18px; align-items: center; padding: 14px 0; position: relative; }
.step::before { content: ""; position: absolute; left: 21px; top: 0; bottom: 0; width: 2px; background: var(--line-2); }
.step:first-child::before { top: 50%; }
.step:last-child::before { bottom: 50%; }
.step .dot { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--primary); font-family: var(--font-h); font-weight: 700; }
.step strong { font-size: 1.05rem; }
.step .days { font-weight: 700; color: var(--muted); white-space: nowrap; }

/* investimento */
.invest { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: stretch; }
.invest > * { min-width: 0; }
.totals { padding: clamp(22px, 3.5vw, 32px); display: grid; gap: 10px; align-content: start; }
.trow { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); }
.trow span:last-child { color: var(--text); font-weight: 600; }
.trow.disc span:last-child { color: var(--ok); }
.grand { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line-2); display: grid; gap: 4px; }
.grand small { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.grand strong { font-family: var(--font-h); font-size: clamp(2.2rem, 5vw, 3.2rem); letter-spacing: -0.03em; line-height: 1; background: linear-gradient(100deg, var(--text), color-mix(in srgb, var(--primary) 70%, var(--text))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grand span { color: var(--muted); }
.terms { padding: clamp(22px, 3.5vw, 32px); display: grid; gap: 16px; align-content: start; }
.terms h3 { font-size: 1.05rem; display: flex; gap: 8px; align-items: center; }
.terms h3 .i { color: var(--primary); }
.terms p { color: var(--muted); white-space: pre-line; font-size: .95rem; }
.pix { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; border-radius: 14px; border: 1px dashed var(--line-2); }
.pix code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .9rem; }

/* resposta */
.decide { padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; text-align: center; justify-items: center; position: relative; overflow: hidden; }
.decide::before { content: ""; position: absolute; inset: -40% -20% auto; height: 80%; background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 28%, transparent), transparent); pointer-events: none; }
.decide > * { position: relative; }
.decide h2 { margin: 0; }
.decide p { color: var(--muted); max-width: 520px; }
.decide form { width: min(520px, 100%); display: grid; gap: 12px; text-align: left; }
.decide label { display: grid; gap: 6px; font-weight: 600; font-size: .88rem; }
.decide input, .decide textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--bg) 60%, transparent); outline: 0; }
.decide input:focus, .decide textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent); }
.decide .acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.decide .err { color: var(--bad); font-weight: 600; min-height: 1.4em; text-align: center; }
.done-ico { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); animation: popin .6s cubic-bezier(.2,1.6,.4,1); }
.done-ico.bad { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
@keyframes popin { from { transform: scale(.4); opacity: 0; } }

.preview-bar { position: sticky; top: 0; z-index: 30; background: var(--cta-bg); color: #fff; text-align: center; font-size: .85rem; font-weight: 600; padding: 8px 16px; }

footer { padding: 40px 0 calc(48px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: .9rem; }
.foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; padding-top: 24px; border-top: 1px solid var(--line); }
.foot .contacts { display: flex; gap: 16px; flex-wrap: wrap; }
.foot .contacts span { display: inline-flex; gap: 6px; align-items: center; }

.missing { min-height: 80vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.missing .card { padding: 40px 28px; max-width: 480px; display: grid; gap: 14px; justify-items: center; }

/* animação de entrada */
.js-reveal .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.js-reveal .reveal.in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .invest { grid-template-columns: 1fr; }
  .item { grid-template-columns: 1fr; gap: 10px; }
  .item-n { width: 40px; height: 40px; border-radius: 12px; font-size: .95rem; }
  .item .price { text-align: left; }
  .top-actions .btn.wa span { display: none; }
  .logo small { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .js-reveal .reveal { opacity: 1; transform: none; } }

@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #f6f6f6; --text: #16121F; --muted: #5E5670; --line: #e5e1ec; --line-2: #d6d0df; }
  body { background: #fff; }
  .bg, .top, .preview-bar, .decide form, .no-print, #loader { display: none !important; }
  .card { box-shadow: none; backdrop-filter: none; break-inside: avoid; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  .grand strong { color: #16121F; background: none; }
  .hero { padding-top: 0; }
}
