/* ImprimeQR — estilos */
:root {
  --ink: #14161c;
  --ink-2: #3b3f4a;
  --muted: #6b7080;
  --line: #e4e2dc;
  --bg: #f7f6f2;
  --card: #ffffff;
  --accent: #f25c1f;
  --accent-ink: #c2410c;
  --ok: #15803d;
  --warn: #b45309;
  --bad: #b91c1c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,22,28,.05), 0 8px 24px rgba(20,22,28,.06);
  --font: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
img, canvas, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--accent-ink); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: #fff; padding: 8px 12px; z-index: 50; }
.muted { color: var(--muted); font-weight: 500; }

/* header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand b { color: var(--accent); }
.brand-mark { width: 30px; height: 30px; }
.nav { display: flex; gap: 20px; font-size: 14.5px; font-weight: 600; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--accent-ink); }

/* hero */
.hero { padding: 26px 0 14px; }
.hero h1 { margin: 0 0 6px; font-size: clamp(27px, 4.4vw, 44px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; }
.lead { margin: 0; max-width: 760px; color: var(--ink-2); font-size: clamp(15px, 1.7vw, 17.5px); }

/* tool grid */
.tool {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
  grid-template-areas: "content" "prev2d" "design" "obj" "prev3d";
}
@media (min-width: 960px) {
  .tool {
    grid-template-columns: minmax(0, 1fr) 430px;
    grid-template-areas: "content prev2d" "design prev2d" "obj prev3d";
    align-items: start;
  }
}
.p-content { grid-area: content; } .p-prev2d { grid-area: prev2d; } .p-design { grid-area: design; }
.p-obj { grid-area: obj; } .p-prev3d { grid-area: prev3d; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); min-width: 0; }
.step-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 18px; letter-spacing: -.01em; }
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; }
.lbl { display: block; font-size: 14px; font-weight: 700; margin: 12px 0 6px; }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.inp { width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 16px; outline: none; transition: border-color .15s; }
.inp:focus { border-color: var(--ink); }
.inp-sm { width: auto; padding: 8px 10px; font-size: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 10px 0; cursor: pointer; }
.check.small { font-size: 13px; padding: 6px 0 0; color: var(--ink-2); }
.field { margin-top: 4px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 2D preview */
.qr-stage { background: repeating-conic-gradient(#efede7 0% 25%, #fbfaf7 0% 50%) 50% / 18px 18px; border-radius: 12px; padding: 16px; display: grid; place-items: center; }
#qr-canvas { width: min(100%, 300px); height: auto; aspect-ratio: 1; border-radius: 4px; }
.meta { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.dl-row { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.dl-row .btn-dark { flex: 1; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; padding: 11px 16px; font-weight: 700; font-size: 15px; border: 1.5px solid transparent; cursor: pointer; transition: transform .08s, background .15s; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2d36; }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #e14d12; }
.btn-big { width: 100%; padding: 15px; font-size: 17px; margin-top: 10px; }
.btn[disabled] { opacity: .55; cursor: progress; }
.btn-file { position: relative; overflow: hidden; font-size: 14px; }
.btn-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent-ink); font-weight: 700; text-decoration: underline; cursor: pointer; font-size: 14px; }

/* styles */
.styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.style-opt { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 4px 6px; cursor: pointer; display: grid; justify-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; }
.style-opt canvas { width: 46px; height: 46px; }
.style-opt.is-on, .fmt.is-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.colors { margin-top: 10px; }
.color { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 14px; font-weight: 600; cursor: pointer; background: #fff; }
input[type="color"] { -webkit-appearance: none; appearance: none; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0; background: none; cursor: pointer; flex: none; }
input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 6px; }
.emojis { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.emojis button { width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 20px; cursor: pointer; line-height: 1; }
.emojis button.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #fff4ee; }
.emoji-inp { width: 70px; height: 40px; padding: 6px 8px; text-align: center; }
.emojis-sm { margin-top: 8px; gap: 4px; font-size: 13px; }
.emojis-sm button { width: 34px; height: 34px; font-size: 17px; }
.logo-row { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }

/* formats */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.fmt { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 10px 6px; cursor: pointer; display: grid; justify-items: center; text-align: center; gap: 2px; color: var(--ink); }
.fmt svg { width: 46px; height: 34px; color: var(--accent-ink); margin-bottom: 4px; }
.fmt b { font-size: 14px; }
.fmt small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.fil-group { display: grid; gap: 8px; }
.fil { display: grid; grid-template-columns: 110px 1fr auto; align-items: center; gap: 8px; }
.fil-name { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.swatches { display: flex; flex-wrap: wrap; gap: 5px; }
.sw { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); cursor: pointer; padding: 0; }
.sw.is-on { outline: 2.5px solid var(--ink); outline-offset: 2px; }

/* 3D preview */
.v3d { position: relative; height: 330px; border-radius: 12px; background: radial-gradient(ellipse at 50% 38%, #ffffff 0%, #ebe9e3 75%); overflow: hidden; cursor: grab; touch-action: pan-y; }
.v3d.is-dragging { cursor: grabbing; }
.v3d-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.v3d-msg { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center; font-size: 14px; color: var(--muted); }
.v3d-hint { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; font-size: 12px; color: var(--muted); pointer-events: none; }
.sub-dl { margin: 10px 0 0; font-size: 13.5px; text-align: center; }
.tip { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); background: #f5f4ef; border-radius: 10px; padding: 10px 12px; }
.tip:empty { display: none; }

/* warnings */
.warns { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.warns li { font-size: 13px; padding: 7px 10px; border-radius: 8px; line-height: 1.4; }
.warns .ok { background: #ecfdf3; color: var(--ok); }
.warns .warn { background: #fff7e6; color: var(--warn); }
.warns .bad { background: #fdecec; color: var(--bad); font-weight: 600; }
.privacy { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); text-align: center; }
.noscript { background: #fff7e6; padding: 14px; border-radius: 10px; }

/* ads (placeholders) */
.ad-slot { display: grid; place-items: center; border: 2px dashed #cfccc3; border-radius: 10px; background: repeating-linear-gradient(45deg, #f3f1eb, #f3f1eb 10px, #efede6 10px, #efede6 20px); color: #9a968a; font-weight: 800; letter-spacing: .18em; font-size: 13px; }
.ad-leaderboard { min-height: 100px; margin: 28px auto 0; max-width: 970px; }
.ad-incontent { min-height: 260px; max-width: 728px; margin: 8px auto 0; }
.ad-popup-slot { width: 300px; max-width: 100%; height: 250px; margin: 6px auto 14px; }
.ad-toast-slot { width: 280px; height: 90px; }
.ad-pop { border: 0; border-radius: 16px; padding: 22px 22px 18px; width: min(360px, calc(100% - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); text-align: center; }
.ad-pop::backdrop { background: rgba(20,22,28,.55); }
.ad-pop-ok { margin: 0 0 8px; font-weight: 700; }
.ad-pop-x, .ad-toast-x { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: #f1efe9; cursor: pointer; font-size: 14px; }
.ad-toast { position: fixed; right: 16px; bottom: 16px; z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px 10px 10px; box-shadow: 0 12px 34px rgba(0,0,0,.16); animation: toastIn .3s ease-out; }
@keyframes toastIn { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

/* content sections */
.section { padding: 46px 0 6px; }
.section h2 { font-size: clamp(23px, 3vw, 31px); letter-spacing: -.02em; margin: 0 0 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps h3 { margin: 10px 0 4px; font-size: 17px; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }
.step-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff1ea; color: var(--accent-ink); }
.step-ico svg { width: 24px; height: 24px; }
.ideas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.idea { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.idea-emoji { font-size: 28px; }
.idea h3 { margin: 6px 0 4px; font-size: 16.5px; }
.idea p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.prose { max-width: 820px; }
.prose p, .prose li { color: var(--ink-2); }
.prose h3 { margin: 26px 0 8px; font-size: 19px; }
.prose li { margin-bottom: 6px; }
.faq { display: grid; gap: 8px; max-width: 860px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; position: relative; padding-right: 26px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 22px; color: var(--accent-ink); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }
.site-footer { margin-top: 56px; border-top: 1px solid var(--line); background: var(--card); padding: 24px 0 90px; font-size: 14px; color: var(--muted); }
.footer-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-in p { margin: 0; }
.legal { max-width: 760px; padding: 30px 0; }

@media (max-width: 760px) {
  .nav { display: none; }
  .hero { padding: 16px 0 10px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -14px; padding-inline: 14px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .lbl { margin-top: 10px; }
  .panel { padding: 14px; }
  .steps, .ideas { grid-template-columns: 1fr; }
  .fil { grid-template-columns: 1fr auto; }
  .fil-name { grid-column: 1 / -1; }
  .v3d { height: 290px; }
  #qr-canvas { width: min(100%, 240px); }
  .qr-stage { padding: 12px; }
  .ad-toast { left: 12px; right: 12px; bottom: 12px; }
  .ad-toast-slot { width: 100%; }
}
@media (max-width: 420px) {
  .row2 { grid-template-columns: 1fr; }
  .styles { gap: 6px; }
  .fmt small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ad-toast { animation: none; } }
