/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --surface-2: #FBFAF7;
  --ink: #17171C;
  --muted: #5F5F69;
  --line: #E4E1D8;
  --line-strong: #D3CFC3;
  --accent: #E5481B;
  --accent-hover: #C93C12;
  --accent-soft: #FDEDE6;
  --ok: #1D7A45;
  --ok-soft: #E6F4EC;
  --warn: #9A5B00;
  --warn-soft: #FFF3DC;
  --bad: #B3261E;
  --bad-soft: #FCE8E6;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(23, 23, 28, .04), 0 8px 24px -12px rgba(23, 23, 28, .12);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 16px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; line-height: 1.1; letter-spacing: -0.02em; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: #fff; border-radius: 8px;
}
.skip-link:focus { top: 1rem; }
[hidden] { display: none !important; }

/* =============================================================
   4. Header
   ============================================================= */
.site-header { border-bottom: 1px solid var(--line); background: rgba(246, 245, 241, .9); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; }
.brand b { color: var(--accent); font-weight: 800; }
.brand-mark { width: 28px; height: 28px; }
.site-nav { display: none; gap: 22px; font-size: .93rem; font-weight: 500; color: var(--muted); }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--ink); }

/* =============================================================
   5. Hero
   ============================================================= */
.hero { padding-top: 22px; padding-bottom: 14px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(1.75rem, 6vw, 3rem); }
.hero-sub { margin-top: 8px; color: var(--muted); font-size: clamp(.95rem, 2.6vw, 1.08rem); max-width: 60ch; }
.hero-sub strong { color: var(--ink); font-weight: 600; }

/* =============================================================
   6. Tool
   ============================================================= */
.tool { padding-bottom: 8px; }
.noscript { padding: 16px; background: var(--warn-soft); border-radius: var(--radius-sm); margin-bottom: 12px; }
.tool-grid { display: flex; flex-direction: column; gap: 14px; }
.tool-col { display: contents; }
.panel-content { order: 1; }
.panel-2d { order: 2; }
.panel-design { order: 3; }
.panel-object { order: 4; }
.panel-3d { order: 5; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.panel-title { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.15rem; font-weight: 800; margin-bottom: 14px; }
.step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--sans); font-size: .82rem; font-weight: 700; flex: none; }

/* Tabs */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: 12px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; padding: 8px 12px; border-radius: 9px; font-size: .9rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background .2s, color .2s; }
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }

/* Fields */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field-label { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field-label small { font-weight: 400; color: var(--muted); }
.field-label output { font-weight: 700; color: var(--accent); }
input[type="url"], input[type="text"], select, textarea {
  width: 100%; min-width: 0;
  padding: 11px 13px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 1rem;
  transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,23,28,.08); }
.input-prefix { display: flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); padding-left: 13px; }
.input-prefix > span { color: var(--muted); font-weight: 600; }
.input-prefix input { border: 0; box-shadow: none !important; padding-left: 4px; }
.input-prefix:focus-within { border-color: var(--ink); }
.row-2 { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 500; margin-bottom: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.hint b { color: var(--ink); }

input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; }

/* Colors */
.color-input { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: 6px 10px 6px 6px; background: var(--surface); }
.color-input input[type="color"] { width: 34px; height: 34px; border: 0; border-radius: 8px; padding: 0; background: none; cursor: pointer; }
.color-input input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-input input[type="color"]::-webkit-color-swatch { border: 1px solid rgba(0,0,0,.15); border-radius: 8px; }
.color-input code { font-size: .88rem; color: var(--muted); }

/* Style segmented */
.seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.seg button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px 8px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-size: .78rem; font-weight: 600; color: var(--muted); transition: border-color .2s, color .2s, background .2s; }
.seg button:hover { border-color: var(--line-strong); color: var(--ink); }
.seg button.is-active { border-color: var(--ink); color: var(--ink); background: var(--surface-2); }
.sty { width: 26px; height: 26px; display: block; background-size: 13px 13px; }
.sty-clasico { background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)); background-size: 11px 11px; background-repeat: no-repeat; background-position: 0 0, 100% 100%; }
.sty-redondeado { position: relative; }
.sty-redondeado::before, .sty-redondeado::after { content: ""; position: absolute; width: 11px; height: 11px; border-radius: 4px; background: var(--ink); }
.sty-redondeado::before { left: 0; top: 0; } .sty-redondeado::after { right: 0; bottom: 0; }
.sty-puntos { background-image: radial-gradient(circle, var(--ink) 4.5px, transparent 5px); background-size: 13px 13px; }
.sty-elegante { position: relative; }
.sty-elegante::before, .sty-elegante::after { content: ""; position: absolute; width: 11px; height: 11px; background: var(--ink); border-radius: 0 6px 0 6px; }
.sty-elegante::before { left: 0; top: 0; } .sty-elegante::after { right: 0; bottom: 0; }

/* Emoji chips */
.emoji-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { min-width: 42px; height: 40px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 11px; font-size: 1.15rem; line-height: 1; display: inline-grid; place-items: center; background: var(--surface); transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--line-strong); }
.chip.is-active { border-color: var(--ink); background: var(--surface-2); }
.chip-none { font-size: .82rem; font-weight: 600; color: var(--muted); }
.chip-input { width: 92px; font-size: .95rem; padding: 0 10px; text-align: center; }
.logo-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.logo-name { font-size: .85rem; color: var(--muted); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-btn { font-size: .88rem; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; padding: 4px 0; }
.link-btn:hover { color: var(--accent-hover); }
.link-btn:disabled { color: var(--muted); cursor: progress; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; font-weight: 700; font-size: .95rem; transition: background .2s, transform .15s var(--ease-out), border-color .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover:not(:disabled) { background: #33333d; }
.btn-ghost { border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 7px 12px; font-size: .86rem; }
.btn-lg { padding: 15px 20px; font-size: 1.05rem; border-radius: 14px; width: 100%; }
.btn-lg svg { width: 22px; height: 22px; }
.btn-block { width: 100%; }
.btn.is-busy { cursor: progress; opacity: .8; }

/* 2D preview */
.panel-2d { display: grid; grid-template-columns: minmax(0, 150px) 1fr; gap: 16px; align-items: center; }
.qr2d-wrap { position: relative; aspect-ratio: 1; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.qr2d { width: 100%; height: 100%; display: grid; place-items: center; transition: opacity .2s; }
.qr2d canvas, .qr2d svg { width: 100% !important; height: auto !important; }
.qr-empty { display: none; position: absolute; inset: 0; place-items: center; text-align: center; font-size: .82rem; font-weight: 600; color: var(--muted); padding: 10px; }
.qr2d-wrap.is-empty .qr2d { opacity: .12; }
.qr2d-wrap.is-empty .qr-empty { display: grid; }
.dl2d { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dl-title { width: 100%; font-weight: 700; font-family: var(--display); font-size: 1.05rem; }
.dl2d .hint { width: 100%; margin-top: 0; }

.qr-dest { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: .86rem; min-width: 0; }
.qr-dest-label { font-weight: 600; color: var(--muted); }
.qr-dest a { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; min-width: 0; }
.qr-dest-note { width: 100%; font-size: .8rem; color: var(--muted); }
.qr-dest.is-example { background: var(--warn-soft); }
.qr-dest.is-example .qr-dest-note { color: var(--warn); font-weight: 600; }

/* 3D preview */
.viewer {
  position: relative;
  height: clamp(280px, 70vw, 380px);
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(120% 90% at 50% 20%, #ffffff 0%, #ECEAE3 70%, #E2DFD5 100%);
  touch-action: none;
}
.viewer canvas { width: 100% !important; height: 100% !important; cursor: grab; }
.viewer canvas:active { cursor: grabbing; }
.viewer-msg { position: absolute; inset: 0; display: none; place-items: center; text-align: center; padding: 24px; font-size: .92rem; font-weight: 500; color: var(--muted); }
.viewer[data-state="idle"] .viewer-loading, .viewer[data-state="loading"] .viewer-loading { display: grid; }
.viewer[data-state="nowebgl"] .viewer-nowebgl { display: grid; }
.viewer-loading { grid-auto-flow: column; gap: 10px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.viewer-hint { position: absolute; left: 12px; bottom: 10px; display: flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--muted); background: rgba(255,255,255,.8); padding: 4px 10px; border-radius: 99px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.viewer-hint svg { width: 14px; height: 14px; }
.viewer[data-state="ready"] .viewer-hint { opacity: 1; }

.specs { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: .86rem; color: var(--muted); }
.specs b { color: var(--ink); font-weight: 700; }
.specs b.is-bad { color: var(--bad); }
.specs b.is-warn { color: var(--warn); }
.specs b.is-ok { color: var(--ok); }

.warnings { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.warnings:empty { display: none; }
.warnings li, .warn-line { font-size: .84rem; line-height: 1.45; padding: 8px 11px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); }
.warnings li.bad, .warn-line.bad { background: var(--bad-soft); color: var(--bad); }
.warnings li.info { background: var(--bg); color: var(--muted); }
.warnings li.ok { background: var(--ok-soft); color: var(--ok); }
.warn-line { margin: -4px 0 14px; }

.dl3d { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 14px; }

/* Formats */
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.format { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 6px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); transition: border-color .2s, background .2s, color .2s; }
.format svg { width: 48px; height: 36px; color: var(--ink); }
.format-name { font-weight: 700; font-size: .86rem; color: var(--ink); line-height: 1.2; }
.format-desc { font-size: .72rem; line-height: 1.3; display: none; }
.format:hover { border-color: var(--line-strong); }
.format.is-active { border-color: var(--accent); background: var(--accent-soft); }
.format.is-active svg { color: var(--accent); }

/* Swatches */
.swatches { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); position: relative; transition: transform .15s var(--ease-out); }
.swatch:hover { transform: scale(1.1); }
.swatch.is-active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.swatch-custom { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; border: 1.5px dashed var(--line-strong); position: relative; display: grid; place-items: center; font-size: 1rem; color: var(--muted); }
.swatch-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.swatch-custom.is-active { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); border-style: solid; }

.privacy { margin-top: 14px; font-size: .88rem; color: var(--muted); text-align: center; }

/* =============================================================
   7. Ads (placeholders)
   ============================================================= */
.ad-slot {
  display: grid; place-items: center;
  border: 1.5px dashed var(--line-strong);
  border-radius: 12px;
  background: repeating-linear-gradient(135deg, rgba(0,0,0,.015) 0 10px, transparent 10px 20px), var(--surface-2);
  color: #9B978C;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em;
}
.ad-leaderboard { min-height: 100px; max-width: 970px; margin: 28px auto 0; }
.ad-incontent { min-height: 250px; max-width: 728px; margin: 8px auto 0; }

.ad-popup { margin: auto; border: 0; padding: 22px; border-radius: 20px; width: min(92vw, 380px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); background: var(--surface); color: var(--ink); }
.ad-popup::backdrop { background: rgba(23, 23, 28, .55); backdrop-filter: blur(3px); }
.ad-popup[open] { animation: pop .35s var(--ease-out); }
.ad-popup-title { font-weight: 700; font-size: 1rem; margin: 0 28px 14px 0; }
.ad-popup-slot { height: 250px; margin-bottom: 14px; }
.ad-close { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; line-height: 1; color: var(--muted); background: var(--bg); }
.ad-close:hover { color: var(--ink); background: var(--line); }
.ad-close-sm { top: -10px; right: -10px; width: 26px; height: 26px; font-size: 1.05rem; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); z-index: 1; }

.ad-toast { position: fixed; right: 12px; bottom: 12px; z-index: 40; width: min(300px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 16px 40px -12px rgba(0,0,0,.3); animation: slideup .45s var(--ease-out); }
.ad-toast-slot { height: 100px; }

/* =============================================================
   8. Content sections
   ============================================================= */
.section { padding-top: 56px; }
.section-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 4.5vw, 2.2rem); }
.section-sub { color: var(--muted); margin-top: 6px; }

.steps { list-style: none; padding: 0; display: grid; gap: 14px; margin-top: 22px; counter-reset: none; }
.step-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.step-card svg { width: 40px; height: 40px; color: var(--accent); margin-bottom: 12px; }
.step-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.step-card p { color: var(--muted); font-size: .95rem; }
.step-num { position: absolute; top: 18px; right: 20px; font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--line); }

.prose-grid { display: grid; gap: 14px; margin-top: 22px; }
.prose article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.prose h3 { font-size: 1.1rem; margin-bottom: 8px; }
.prose p { color: #3D3D46; font-size: .97rem; }
.prose strong { color: var(--ink); }
.tips { margin-top: 14px; background: var(--ink); color: #EDEBE4; border-radius: var(--radius); padding: 22px 20px; }
.tips h3 { color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.tips ul { padding-left: 1.1em; display: grid; gap: 6px; font-size: .95rem; }
.tips b { color: #fff; }

.ideas { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 22px; }
.idea { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .25s var(--ease-out), box-shadow .25s; }
.idea:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.idea-emoji { font-size: 1.8rem; display: block; margin-bottom: 8px; }
.idea h3 { font-size: 1.05rem; margin-bottom: 4px; }
.idea p { color: var(--muted); font-size: .93rem; }

.faq { margin-top: 20px; display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--accent); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 16px; color: var(--muted); }

.site-footer { margin-top: 64px; border-top: 1px solid var(--line); padding: 26px 0 90px; font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; flex-direction: column; gap: 10px; }
.footer-inner nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover { color: var(--ink); text-decoration: underline; }

/* Legal pages */
.legal { max-width: 760px; padding-top: 40px; }
.legal h1 { font-family: var(--display); font-size: clamp(1.7rem, 5vw, 2.4rem); margin-bottom: 18px; }
.legal h2 { font-size: 1.2rem; margin: 26px 0 8px; }
.legal p, .legal li { color: #3D3D46; margin-bottom: 8px; }
.legal .todo { background: var(--warn-soft); color: var(--warn); padding: 1px 6px; border-radius: 6px; font-weight: 600; }

/* =============================================================
   9. Effects
   ============================================================= */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes slideup { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* =============================================================
   10. Responsive
   ============================================================= */
@media (min-width: 540px) {
  :root { --gutter: 20px; }
  .row-2 { grid-template-columns: 1fr 1fr; }
  .row-2 > .check { align-self: end; margin-bottom: 26px; }
  .panel-2d { grid-template-columns: 180px 1fr; }
  .format-desc { display: block; }
  .ideas { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 720px) {
  .site-nav { display: flex; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .prose-grid { grid-template-columns: 1fr 1fr; }
  .panel { padding: 20px; }
}
@media (min-width: 960px) {
  .hero { padding-top: 34px; padding-bottom: 20px; }
  .tool-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .tool-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
  .tool-col-right { position: sticky; top: 72px; }
  .panel { order: 0; }
  .viewer { height: clamp(300px, 46vh, 430px); }
  .ideas { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; }
  .site-footer { padding-bottom: 30px; }
}
@media (min-width: 1280px) {
  .tool-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}

/* =============================================================
   11. Reduced motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .ad-popup[open], .ad-toast { animation: none; }
}
