:root {
  --bg: #F6F2EC; --card: #FFFFFF; --ink: #1F1D1A; --muted: #5F5A52; --line: #E6DFD4; --line2: #D9D0C3;
  --accent: #6B3F26; --accent-ink: #FFFFFF; --soft: #EDE6DB;
  --ok-bg: #E3EFE5; --ok: #22582F; --warn-bg: #F6EBD3; --warn: #7A4F00; --risk-bg: #F7E1DD; --risk: #8E2E22; --info-bg: #F3ECE3; --info: #6B3F26;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'DM Sans', system-ui, sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: var(--accent); }
h1, h2, h3 { font-family: 'Outfit', sans-serif; font-weight: 600; letter-spacing: -0.3px; margin: 0; }
h1 { font-size: 26px; line-height: 1.15; }
h2 { font-size: 18px; }
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); padding: 14px 16px 10px; }
.brand { display: flex; flex-direction: column; max-width: 560px; margin: 0 auto 10px; }
.brand .by { font-size: 13px; font-weight: 600; color: var(--accent); }
.brand .name { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 22px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: #E8E0D4; padding: 4px; border-radius: 14px; max-width: 560px; margin: 0 auto; }
.steps button { min-height: 40px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; }
.steps button[aria-current="step"] { background: #FFF; color: var(--ink); }
.steps button:disabled { opacity: 0.5; cursor: default; }
main { max-width: 560px; margin: 0 auto; padding: 20px 16px 64px; display: flex; flex-direction: column; gap: 22px; outline: none; }
.section { display: flex; flex-direction: column; gap: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.45; }
.small { font-size: 13px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[inputmode] { min-height: 46px; width: 100%; border: 1px solid var(--line2); border-radius: 12px; padding: 0 12px; font-size: 16px; color: var(--ink); background: #FFF; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid #C9A88F; outline-offset: 2px; }
.pill { flex: 1 1 0; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line2); background: #FFF; color: var(--ink); font-size: 14px; font-weight: 600; }
.pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn { min-height: 52px; border: 0; border-radius: 14px; background: var(--accent); color: var(--accent-ink); font-size: 16px; font-weight: 600; padding: 0 18px; }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn.ghost { background: #FFF; color: var(--ink); border: 1px solid var(--line2); }
.btn.small { min-height: 44px; font-size: 14px; }
.link { background: none; border: 0; color: var(--accent); font-weight: 600; padding: 8px 0; text-align: left; }
.toggle { display: flex; align-items: flex-start; gap: 12px; text-align: left; background: #FFF; border: 2px solid var(--line); border-radius: 16px; padding: 14px; color: var(--ink); width: 100%; }
.toggle[aria-pressed="true"] { border-color: var(--accent); }
.switch { flex: 0 0 auto; width: 42px; height: 24px; border-radius: 12px; background: #CFC6B8; position: relative; margin-top: 1px; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 9px; background: #FFF; transition: left .15s; }
.toggle[aria-pressed="true"] .switch { background: var(--accent); }
.toggle[aria-pressed="true"] .switch::after { left: 21px; }
.t-title { font-size: 15px; font-weight: 600; display: block; }
.t-text { font-size: 14px; color: var(--muted); line-height: 1.4; display: block; margin-top: 3px; }
.stat { background: #FFF; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.stat b { display: block; font-family: 'Outfit', sans-serif; font-size: 20px; }
.stat span { font-size: 12px; color: var(--muted); line-height: 1.3; }
.aviso { border-radius: 14px; padding: 13px 14px; display: flex; gap: 10px; font-size: 14px; line-height: 1.45; }
.aviso::before { content: ''; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 4px; margin-top: 6px; background: currentColor; }
.aviso span { color: #2F2B26; }
.aviso.ok { background: var(--ok-bg); color: var(--ok); } .aviso.atencao { background: var(--warn-bg); color: var(--warn); }
.aviso.risco { background: var(--risk-bg); color: var(--risk); } .aviso.info { background: var(--info-bg); color: var(--info); }
.list { background: #FFF; border: 1px solid var(--line); border-radius: 18px; padding: 2px 16px; }
.li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #F0EAE1; }
.li:last-child { border-bottom: 0; }
.li .main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.li .main b { font-size: 15px; } .li .main span { font-size: 13px; color: var(--muted); }
.li .end { flex: 0 0 auto; font-weight: 600; font-size: 14px; }
.qty { flex: 0 0 auto; min-width: 40px; height: 30px; padding: 0 6px; border-radius: 8px; background: #F3ECE3; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.sobra-sw { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 10px; background: repeating-linear-gradient(45deg, #E9C9B5 0 4px, #F7EDE6 4px 8px); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; color: #5A2A1A; }
.drawing { display: block; width: 100%; height: auto; }
.lock { position: relative; overflow: hidden; }
.lock .blur { filter: blur(5px); user-select: none; pointer-events: none; }
.paywall { background: #1F1D1A; color: #FFF; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.paywall h2 { color: #FFF; font-size: 22px; }
.paywall ul { margin: 0; padding-left: 18px; line-height: 1.6; color: #E9E2D6; font-size: 15px; }
.paywall .price { font-family: 'Outfit', sans-serif; font-size: 34px; font-weight: 600; }
.paywall .btn { background: #FFF; color: var(--ink); }
.testbar { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.qr img { width: 220px; height: 220px; image-rendering: pixelated; border-radius: 12px; border: 1px solid var(--line); background: #FFF; }
.code { width: 100%; font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; background: #F3ECE3; border-radius: 10px; padding: 10px; max-height: 84px; overflow: auto; text-align: left; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid #E8E0D4; border-top-color: var(--accent); animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.waiting { display: flex; gap: 12px; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; }
.modelo { display: flex; gap: 14px; align-items: flex-start; text-align: left; background: #FFF; border: 2px solid var(--line); border-radius: 18px; padding: 12px; color: var(--ink); width: 100%; }
.modelo[aria-pressed="true"] { border-color: var(--accent); }
.modelo .info { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 12px; color: #3D3830; line-height: 1.35; }
.modelo .info b { font-family: 'Outfit', sans-serif; font-size: 19px; color: var(--ink); }
.modelo .info .marca { font-size: 14px; color: var(--muted); }
.ill { flex: 0 0 auto; width: 96px; height: 108px; border-radius: 12px; background: #EFE8DD; position: relative; overflow: hidden; }
.ill .r { position: absolute; display: flex; gap: 2px; }
.ill .d { flex: 1 1 0; border: 1px solid rgba(0,0,0,.18); position: relative; }
.ill .h { position: absolute; border-radius: 1px; }
.swatch { min-height: 64px; border-radius: 14px; border: 2px solid var(--line); background: #FFF; padding: 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ink); font-size: 12px; font-weight: 600; text-align: center; }
.swatch[aria-pressed="true"] { border-color: var(--accent); }
.swatch i { width: 100%; height: 26px; border-radius: 8px; border: 1px solid var(--line2); display: block; }
.janela { display: flex; flex-direction: column; gap: 10px; }
.err { background: var(--risk-bg); color: #5A2A1A; border-radius: 14px; padding: 14px; font-size: 14px; line-height: 1.45; }
.etapa { background: #FFF; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.etapa h3 { font-size: 16px; margin-bottom: 6px; }
.etapa ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; color: #2F2B26; }
.actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #1F1D1A; color: #FFF; padding: 12px 16px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; }
@media (max-width: 380px) { .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .actions { grid-template-columns: 1fr; } }

.li .main .preco { margin-top: 6px; font-size: 14px; color: var(--ink); }
.li .main .preco b { font-size: 15px; }
.li .main .preco.sem { color: var(--muted); font-size: 13px; }
.li .main .lojas { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; align-items: flex-start; }
.btn.comprar { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; font-size: 14px; }
.lojas details { font-size: 13px; color: var(--muted); }
.lojas summary { cursor: pointer; padding: 4px 0; }
.lojas .outra { display: flex; gap: 10px; justify-content: space-between; min-width: 220px; padding: 4px 0; }
.lojas .outra span { color: var(--ink); font-weight: 600; }
.card.total { display: flex; flex-direction: column; gap: 4px; }
.card.total b { font-family: 'Outfit', sans-serif; font-size: 28px; }
.card.total .eco { color: var(--ok); font-weight: 600; font-size: 14px; }

.card.salvar { display: flex; flex-direction: column; gap: 10px; }
.consultoria { background: #1F1D1A; color: #FFF; border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.consultoria h2 { color: #FFF; font-size: 22px; }
.consultoria p { margin: 0; color: #E9E2D6; font-size: 15px; line-height: 1.5; }
.consultoria .valor { font-family: 'Outfit', sans-serif; font-size: 22px; color: #FFF; font-weight: 600; }
.consultoria .small { color: #CFC7BB; }
.btn.whats { background: #25D366; color: #0B2E17; display: flex; align-items: center; justify-content: center; text-decoration: none; }
.consultoria ul { margin: 0; padding-left: 18px; line-height: 1.6; color: #E9E2D6; font-size: 15px; }
.msgdemo { background: #2B2825; border-radius: 12px; padding: 12px; font-size: 13px; color: #E9E2D6; }
.msgdemo pre { white-space: pre-wrap; font-family: inherit; margin: 8px 0 0; color: #FFF; font-size: 14px; }
.msgdemo pre { word-break: break-word; overflow-wrap: anywhere; }
.li.compra { align-items: flex-start; }
.li .foto { position: relative; flex: 0 0 auto; width: 72px; }
.li .foto .thumb { width: 72px; height: 72px; border-radius: 12px; object-fit: contain; background: #FFF; border: 1px solid var(--line); display: block; }
.li .foto .qty { position: absolute; right: -6px; top: -6px; min-width: 30px; height: 24px; background: var(--accent); color: #FFF; font-size: 12px; }
.reembolso { margin: 0; text-align: center; }
.reembolso .link { font-size: 13px; color: var(--muted); font-weight: 500; text-decoration: underline; }
.reembolso-confirma { display: flex; flex-direction: column; gap: 10px; }
.rodape { max-width: 560px; margin: 0 auto; padding: 0 16px 32px; text-align: center; font-size: 13px; color: var(--muted); }
.rodape a { color: var(--muted); }
.aceite { display: flex; gap: 10px; align-items: flex-start; background: #FFF; border: 1px solid var(--line2); border-radius: 14px; padding: 12px; font-size: 14px; line-height: 1.45; color: var(--ink); }
.aceite input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--accent); }

.compra .opcao { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--bg, #F6F2EC); font-size: 13px; line-height: 1.45; color: #4A443D; }
.compra .opcao .link { font-weight: 600; }

/* detalhamento visual */
.drawing.corte { max-height: 260px; }
.pecas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.peca-card { display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.peca-top { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.peca { width: 100%; max-height: 120px; }
.tag { align-self: flex-start; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.tag.base { background: #EFE8DD; color: #6B5B45; }
.tag.painel { background: #F3E3D6; color: #6B3F26; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 6px 10px; border-radius: 99px; background: #FFFFFF; border: 1px solid #E6DFD4; }
.dica-corte { background: #FFF8EA; border: 1px solid #F0DDB5; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.dica-corte ul { margin: 6px 0 0; padding-left: 18px; }
details.etapa { border-bottom: 1px solid #E6DFD4; padding: 10px 0; }
details.etapa summary { font-weight: 600; cursor: pointer; }
details.etapa ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: #3D3830; }

h3.grupo { font-size: 15px; margin: 14px 0 6px; color: #6B3F26; }
ul.ajuste { margin: 0; padding-left: 16px; font-size: 13px; color: #3D3830; }
input:disabled { background: #F1ECE4; color: #8C8478; }
a.nome-link { color: inherit; text-decoration: underline; text-decoration-color: #C9B8A6; text-underline-offset: 3px; }
