:root {
  --ink: #1c1c1f;
  --muted: #4c4c55;
  --soft: #606069;
  --line: #d3d3da;
  --surface: #ffffff;
  --ground: #f7f7f9;
  --green: #f9457e;
  --deep: #1c1c1f;
  --focus: #7126e3;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--ground);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { letter-spacing: -0.03em; text-wrap: balance; }

.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; font-size: 21px; font-weight: 800; letter-spacing: -0.035em; }
.brand small { font-size: 11px; letter-spacing: 0; margin-left: 3px; vertical-align: top; }
.brand-accent { color: #a82054; }
.brand-mark { width: 25px; display: grid; gap: 3px; transform: rotate(-25deg); }
.brand-mark i { height: 5px; display: block; border-radius: 2px; background: #f9457e; }
.brand-mark i:nth-child(2) { width: 21px; margin-left: 2px; }
.brand-mark i:nth-child(3) { width: 17px; margin-left: 4px; }
.topbar nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 700; }
.topbar nav > a:hover, .footer-cookie-button:hover { color: #6121be; }
.nav-cta { border: 1px solid #aaaab5; border-radius: 8px; padding: 11px 16px; }

.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); align-items: center; gap: clamp(36px, 6vw, 84px); padding-block: clamp(70px, 8vw, 110px); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 13px; font-weight: 700; color: #5a21b6; }
.eyebrow-dot, .live-dot { width: 8px; height: 8px; border-radius: 50%; background: #f9457e; flex: 0 0 auto; }
.hero h1 { max-width: 680px; margin: 22px 0 22px; font-size: clamp(3rem, 5.1vw, 5.15rem); line-height: 1.04; letter-spacing: -0.035em; }
.hero-lead { max-width: 54ch; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 32px; }
.hero-actions > span { color: var(--muted); font-size: 13px; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; border: 0; border-radius: 8px; padding: 15px 20px; font-size: 14px; font-weight: 700; line-height: 1.25; transition: background-color .2s cubic-bezier(.25,1,.5,1), color .2s cubic-bezier(.25,1,.5,1); }
.button.primary { background: #7126e3; color: white; }
.button.primary:hover { background: #5820aa; }

.sample-quote { min-width: 0; padding: 30px; border-radius: 12px; background: var(--deep); color: #fff; }
.sample-head, .sample-facts, .sample-row, .sample-total { display: flex; justify-content: space-between; gap: 16px; }
.sample-head { color: #ffc5d8; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.sample-head span:last-child { color: #d1d1da; }
.sample-title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 20px; }
.sample-title span { font-size: 27px; font-weight: 700; letter-spacing: -.025em; }
.sample-title strong { padding: 5px 8px; border: 1px solid #a983e9; border-radius: 4px; color: #e2d0ff; font-size: 11px; }
.sample-facts { justify-content: flex-start; gap: 25px; margin-top: 14px; color: #d7d7de; font-size: 13px; }
.sample-facts strong { color: white; }
.sample-rule { height: 1px; background: #666670; margin: 20px 0 18px; }
.sample-row { margin: 13px 0; color: #e4e4eb; font-size: 14px; }
.sample-row strong { color: white; font-variant-numeric: tabular-nums; }
.sample-total { align-items: baseline; gap: 10px; padding-top: 18px; margin-top: 20px; border-top: 1px solid #666670; font-weight: 700; }
.sample-total strong { color: #ff7aa5; font-size: clamp(29px, 3vw, 42px); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.sample-quote > p { margin: 20px 0 0; color: #d7d7de; font-size: 12px; }

.calculator-section { padding-block: 78px 110px; border-top: 1px solid var(--line); }
.section-intro { display: flex; justify-content: space-between; align-items: end; gap: 36px; margin-bottom: 34px; }
.section-intro h2 { max-width: 650px; margin: 0; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.1; }
.section-intro > p { max-width: 37ch; margin: 0 0 4px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.calc-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr); gap: 24px; align-items: start; }
.form-card, .result-card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.form-card { padding: 34px; }
.form-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 25px; }
.step-num { min-width: 36px; padding: 9px 7px; border-radius: 5px; background: #fce5ee; color: #982352; font-size: 12px; font-weight: 800; text-align: center; }
.form-head h3 { margin: 0; font-size: 21px; line-height: 1.25; }
.form-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; }
.field-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field.wide { grid-column: 1 / -1; }
.field > span, .dimension-heading > span:first-child { color: var(--ink); font-size: 13px; font-weight: 700; line-height: 1.35; }
.field small, .dimension-heading small { margin-left: 3px; color: var(--soft); font-size: 12px; font-weight: 500; }
.field input, .field select { width: 100%; min-width: 0; height: 46px; border: 1px solid #adaeb9; border-radius: 7px; background: #fff; padding: 0 12px; color: var(--ink); outline: none; font-size: 15px; }
.field input:focus, .field select:focus, .margin-control input:focus { border-color: var(--focus); box-shadow: 0 0 0 3px #7126e344; }
.field input::placeholder { color: #55555e; opacity: 1; }
.input-prefix, .input-suffix { position: relative; }
.input-prefix b, .input-suffix b { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 12px; font-weight: 700; pointer-events: none; }
.input-prefix b { left: 12px; }
.input-prefix input { padding-left: 37px; }
.input-suffix b { right: 12px; }
.input-suffix input { padding-right: 38px; }
.dimension-heading { display: flex; align-items: center; gap: 8px; margin: 27px 0 12px; }
.hint-icon { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #eee5ff; color: #5920ac; font-size: 11px; font-weight: 700; cursor: help; }
.field-note { max-width: 65ch; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-divider { height: 1px; margin: 34px 0; background: var(--line); }
.advanced { margin-top: 27px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.advanced summary { display: flex; justify-content: space-between; align-items: center; list-style: none; padding: 16px 0; color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.advanced summary::-webkit-details-marker { display: none; }
.advanced-chevron { width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s cubic-bezier(.25,1,.5,1); }
.advanced[open] .advanced-chevron { transform: rotate(225deg); }
.advanced-body { padding: 0 0 20px; }
.advanced-body > p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.margin-area { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 27px; padding: 20px; border-radius: 8px; background: #f1eafd; }
.margin-area label { font-size: 15px; font-weight: 700; }
.margin-area p { max-width: 37ch; margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.margin-control { position: relative; flex: 0 0 80px; }
.margin-control input { width: 100%; height: 47px; border: 1px solid #a47ae6; border-radius: 6px; padding: 0 27px 0 10px; background: white; color: var(--ink); font-size: 18px; font-weight: 700; outline: none; }
.margin-control span { position: absolute; right: 11px; top: 12px; color: #5a21b6; font-weight: 700; }
.form-error { margin-top: 16px; padding: 12px 14px; border-radius: 7px; background: #fcebe7; color: #932b25; font-size: 13px; }

.result-card { position: sticky; top: 20px; overflow: hidden; }
.result-top { position: relative; padding: 30px; background: var(--deep); color: #fff; }
.result-kicker { display: flex; align-items: center; gap: 9px; color: #ffc5d8; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.live-dot { background: #f9457e; }
.result-top h3 { margin: 22px 0 8px; font-size: 20px; font-weight: 500; }
.price { max-width: 100%; color: #ff7aa5; font-size: clamp(2.5rem, 4vw, 3.8rem); font-weight: 800; line-height: 1.15; letter-spacing: -.035em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.result-top p { margin: 12px 0 0; color: #e5e5eb; font-size: 12px; line-height: 1.45; }
.result-body { padding: 28px 30px; }
.breakdown-title { margin-bottom: 18px; color: var(--muted); font-size: 12px; font-weight: 700; }
.breakdown-row, .breakdown-total { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 14px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.breakdown-row strong, .breakdown-total strong { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.breakdown-total { padding-top: 19px; margin-top: 18px; border-top: 1px solid var(--line); color: var(--ink); font-size: 15px; font-weight: 700; }
.profit-row strong { color: #6222bf; }
.copy-button { width: 100%; margin-top: 10px; background: #fbdce7; color: #4d1d9d; }
.copy-button:hover { background: #f9c6d8; }
.result-disclaimer { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

.how-section { padding: 80px 0; border-top: 1px solid var(--line); background: #f0eff4; }
.how-layout { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(44px, 8vw, 110px); }
.how-heading h2 { max-width: 12ch; margin: 0; font-size: clamp(2.2rem, 3.8vw, 3.2rem); line-height: 1.14; }
.how-heading p { max-width: 38ch; margin: 20px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.how-steps { list-style: none; margin: 0; padding: 0; }
.how-steps li { display: grid; grid-template-columns: 48px minmax(0,1fr) 64px; align-items: center; gap: 18px; padding: 20px 0; border-top: 1px solid #c3c1cb; }
.how-steps li:last-child { border-bottom: 1px solid #c3c1cb; }
.how-number { padding-top: 2px; color: #6222bf; font-size: 13px; font-weight: 800; }
.how-steps h3 { margin: 0 0 7px; font-size: 19px; }
.how-steps p { max-width: 52ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.closing { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-block: 54px; padding: 44px 50px; border-radius: 12px; background: var(--deep); color: #fff; }
.closing h2 { max-width: 16ch; margin: 0; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.14; }
.closing p { margin: 12px 0 0; color: #e5e5eb; font-size: 14px; }
.button.light { background: #f9457e; color: #1c1c1f; }
.button.light:hover { background: #ffb8d0; }
.footer { min-height: 112px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; border-top: 1px solid var(--line); }
.footer p, .footer > span { margin: 0; color: var(--muted); font-size: 12px; }
.footer-cookie-button { border: 0; background: none; padding: 6px 0; color: #6222bf; font-size: 12px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.cookie-banner { position: fixed; z-index: 30; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(920px, calc(100% - 32px)); max-height: min(80dvh, 500px); overflow: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 24px; border-radius: 12px; background: #fff; box-shadow: 0 6px 24px #1c1c1f35; }
.cookie-copy { max-width: 600px; }
.cookie-label { color: #6222bf; font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.cookie-copy h2 { margin: 5px 0 8px; font-size: 20px; }
.cookie-copy p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.cookie-copy .cookie-detail { margin-top: 8px; font-size: 12px; }
.cookie-actions { display: flex; flex-shrink: 0; gap: 9px; }
.cookie-actions button { padding: 12px 15px; border-radius: 7px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.cookie-reject { border: 1px solid #9b9ba7; background: #fff; color: var(--ink); }
.cookie-accept { border: 1px solid #7126e3; background: #7126e3; color: #fff; }
.cookie-reject:hover { background: #f2effb; }
.cookie-accept:hover { background: #5820aa; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 42px; }
  .hero h1 { max-width: 13ch; }
  .sample-quote { max-width: 640px; }
  .calc-layout { grid-template-columns: 1fr; }
  .result-card { position: static; }
  .how-layout { gap: 40px; }
}
@media (max-width: 650px) {
  .wrap { width: min(100% - 32px, 1160px); }
  .topbar { min-height: 68px; }
  .topbar nav > a:first-child { display: none; }
  .nav-cta { padding: 10px 11px; font-size: 12px; }
  .hero { padding-block: 58px 66px; }
  .hero h1 { font-size: clamp(2.65rem, 10.5vw, 3.8rem); }
  .hero-lead { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 11px; }
  .sample-quote { padding: 24px; }
  .sample-title { margin-top: 28px; }
  .calculator-section { padding-block: 65px 78px; }
  .section-intro { display: block; }
  .section-intro > p { margin-top: 14px; }
  .form-card { padding: 22px 18px; }
  .field-grid { gap: 18px 12px; }
  .field small { display: block; margin-left: 0; }
  .result-top, .result-body { padding: 24px; }
  .how-section { padding: 66px 0; }
  .how-layout { display: block; }
  .how-heading { margin-bottom: 30px; }
  .how-heading h2 { max-width: 16ch; }
  .closing { display: block; margin-block: 34px; padding: 30px 24px; }
  .closing .button { margin-top: 23px; }
  .footer { padding-block: 28px; }
  .cookie-banner { align-items: stretch; flex-direction: column; gap: 17px; padding: 20px; }
  .cookie-actions { width: 100%; }
  .cookie-actions button { flex: 1; }
}
@media (max-width: 400px) {
  .brand { font-size: 18px; }
  .brand-mark { width: 20px; }
  .field-grid:not(.three) { grid-template-columns: 1fr; }
  .field-grid.three { gap: 8px; }
  .field-grid.three .field > span { font-size: 12px; }
  .field-grid.three .field input { padding-left: 7px; padding-right: 25px; }
  .field-grid.three .input-suffix b { right: 5px; font-size: 10px; }
  .sample-head { font-size: 9px; }
  .sample-facts { flex-wrap: wrap; gap: 8px 18px; }
  .sample-total { flex-direction: column; }
  .cookie-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .advanced-chevron { transition: none; }
}

/* Ilustrações de produção: movimentos curtos e ligados à impressão. */
.printer-stage { margin-top: 22px; padding: 8px 12px 10px; border-radius: 9px; background: #29292f; }
.printer-stage svg { display: block; width: 100%; height: auto; overflow: visible; }
.printer-stage > span { display: block; padding: 0 7px 4px; color: #d7d7de; font-size: 11px; font-weight: 600; }
.printer-frame { fill: #25252b; stroke: #777780; stroke-width: 5; }
.printer-rail { fill: none; stroke: #a8a8b2; stroke-width: 6; stroke-linecap: round; }
.filament-path { fill: none; stroke: #f9457e; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 9 8; animation: filament-flow 3.8s linear infinite; }
.spool-large { transform-origin: 68px 100px; animation: spool-turn 12s linear infinite; }
.printer-head { animation: head-scan 3.8s cubic-bezier(.45,0,.55,1) infinite alternate; }
.printed-piece { animation: layers-build 7.6s cubic-bezier(.25,1,.5,1) infinite; }
.printer-point { animation: nozzle-glow 1.9s ease-in-out infinite alternate; }
.step-illustration { display: block; width: 64px; height: 64px; flex: 0 0 auto; }
.step-spool { transform-origin: 32px 32px; animation: spool-turn 14s linear infinite; }
.step-head { animation: step-head-scan 3.4s cubic-bezier(.45,0,.55,1) infinite alternate; }
.step-margin { transform-origin: 19px 42px; animation: margin-fill 4.8s cubic-bezier(.25,1,.5,1) infinite; }
@keyframes spool-turn { to { transform: rotate(360deg); } }
@keyframes filament-flow { to { stroke-dashoffset: -34; } }
@keyframes head-scan { from { transform: translateX(-17px); } to { transform: translateX(17px); } }
@keyframes layers-build { 0%, 8% { clip-path: inset(55% 0 0 0); } 70%, 95% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(55% 0 0 0); } }
@keyframes nozzle-glow { from { opacity: .3; } to { opacity: 1; } }
@keyframes step-head-scan { from { transform: translateX(-6px); } to { transform: translateX(6px); } }
@keyframes margin-fill { 0%, 10% { transform: scaleX(.35); } 60%, 90% { transform: scaleX(1); } 100% { transform: scaleX(.35); } }
@media (max-width: 650px) {
  .printer-stage { padding: 6px 8px 9px; }
  .how-steps li { grid-template-columns: 34px minmax(0,1fr) 56px; gap: 11px; }
  .step-illustration { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .filament-path, .spool-large, .printer-head, .printed-piece, .printer-point, .step-spool, .step-head, .step-margin { animation: none; }
}
