/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #F6F5F1;
  --surface: #FFFFFF;
  --surface-2: #FBFAF7;
  --ink: #15171C;
  --ink-2: #2A2E36;
  --muted: #5F6571;
  --line: #E5E2DA;
  --line-2: #D6D2C7;
  --accent: #F0592A;
  --accent-ink: #FFFFFF;
  --accent-soft: #FDECE4;
  --accent-deep: #C9431A;
  --ok: #1D7F52;
  --ok-soft: #E5F4EC;
  --warn: #9A6200;
  --warn-soft: #FDF3DD;
  --bad: #B42318;
  --bad-soft: #FDE8E6;
  --ok-ink: #0F5135; --ok-line: #BFE3CF;
  --warn-ink: #5B3B00; --warn-line: #F1DDB0;
  --bad-ink: #7A1710; --bad-line: #F5C7C1;
  --header-bg: rgba(246,245,241,.92);
  --viewer-1: #FFFFFF; --viewer-2: #ECEAE4; --viewer-3: #E2DFD7;
  --ad-a: #F1EFE9; --ad-b: #EEECE5; --ad-label: #9A968C;
  --swatch-line: rgba(0,0,0,.14);

  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(21,23,28,.05), 0 8px 28px -12px rgba(21,23,28,.16);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131417; --surface: #1C1E23; --surface-2: #18191D;
    --ink: #EEECE7; --ink-2: #D2CFC8; --muted: #9EA2AC;
    --line: #2B2E35; --line-2: #3C404A;
    --accent: #FF6B3D; --accent-ink: #FFFFFF; --accent-soft: #3A2219; --accent-deep: #FF9470;
    --ok: #52C892; --ok-soft: #132A20; --warn: #E4AE52; --warn-soft: #2C2313; --bad: #FF7468; --bad-soft: #301715;
    --ok-ink: #A8E6C8; --ok-line: #24503A; --warn-ink: #F2D59E; --warn-line: #5A4520; --bad-ink: #FFC2BB; --bad-line: #5E2621;
    --header-bg: rgba(19,20,23,.9);
    --viewer-1: #2A2D33; --viewer-2: #1E2025; --viewer-3: #18191D;
    --ad-a: #1D1F24; --ad-b: #212329; --ad-label: #6F737C;
    --swatch-line: rgba(255,255,255,.22);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131417; --surface: #1C1E23; --surface-2: #18191D;
  --ink: #EEECE7; --ink-2: #D2CFC8; --muted: #9EA2AC;
  --line: #2B2E35; --line-2: #3C404A;
  --accent: #FF6B3D; --accent-ink: #FFFFFF; --accent-soft: #3A2219; --accent-deep: #FF9470;
  --ok: #52C892; --ok-soft: #132A20; --warn: #E4AE52; --warn-soft: #2C2313; --bad: #FF7468; --bad-soft: #301715;
  --ok-ink: #A8E6C8; --ok-line: #24503A; --warn-ink: #F2D59E; --warn-line: #5A4520; --bad-ink: #FFC2BB; --bad-line: #5E2621;
  --header-bg: rgba(19,20,23,.9);
  --viewer-1: #2A2D33; --viewer-2: #1E2025; --viewer-3: #18191D;
  --ad-a: #1D1F24; --ad-b: #212329; --ad-label: #6F737C;
  --swatch-line: rgba(255,255,255,.22);
  color-scheme: dark;
}

/* =============================================================
   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 { 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: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .6rem 1rem; background: var(--ink); color: var(--bg); z-index: 9999; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 1rem; }
.muted { color: var(--muted); }

/* =============================================================
   4. Header / hero
   ============================================================= */
.site-header { border-bottom: 1px solid var(--line); background: var(--header-bg); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; backdrop-filter: saturate(1.4) blur(8px); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.02em; }
.brand-mark { width: 28px; height: 28px; }
.site-nav { display: none; gap: 22px; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.site-nav a { text-decoration: none; }
.site-nav a:hover { color: var(--accent-deep); }

.hero { padding-top: 18px; padding-bottom: 14px; }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(1.55rem, 1.05rem + 2.3vw, 2.6rem); }
.hero-sub { margin-top: 6px; color: var(--muted); font-size: clamp(.95rem, .9rem + .3vw, 1.08rem); max-width: 60ch; }
.hero-sub strong { color: var(--ink-2); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 10px 18px; border-radius: var(--r);
  font-weight: 700; text-decoration: none; transition: background .2s var(--ease-out), border-color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -8px rgba(240,89,42,.7); }
.btn-primary:hover:not(:disabled) { background: var(--accent-deep); }
.btn-ghost { background: var(--surface); border: 1.5px solid var(--line-2); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink-2); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: .88rem; border-radius: var(--r-sm); }
.btn-xl { width: 100%; min-height: 62px; font-size: 1.05rem; justify-content: center; }
.btn-xl svg { width: 26px; height: 26px; flex: none; }
.btn-xl span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.btn-xl small { font-weight: 600; opacity: .85; font-size: .8rem; }
.link-btn { color: var(--accent-deep); font-weight: 700; font-size: .88rem; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link-btn:hover { color: var(--ink); }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.field-label, .ctrl-label { font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.field-label small, .ctrl-label small { font-weight: 500; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line-2); background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
#in-link { font-size: 1.02rem; }
.field-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.field-row > .field { flex: 1 1 180px; }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; font-weight: 600; font-size: .9rem; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.hint { font-size: .82rem; color: var(--muted); margin-top: 6px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font-size: .86rem; font-weight: 600; transition: border-color .15s, background .15s; }
.chip:hover { border-color: var(--ink-2); }
.chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* =============================================================
   6. Tool card
   ============================================================= */
.tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 12px; }
.noscript { padding: 16px; color: var(--warn-ink); background: var(--warn-soft); border-radius: var(--r); font-weight: 600; margin-bottom: 12px; }
.tool-grid {
  display: grid; gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "c" "p" "d" "o" "x";
}
.panel { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; min-width: 0; }
.panel-content { grid-area: c; }
.panel-design { grid-area: d; }
.panel-object { grid-area: o; }
.preview-col { display: contents; }
.panel-preview { grid-area: p; }
.panel-download { grid-area: x; }
.panel-title { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.01em; }
.step-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 800; flex: none; }

.ctrl { margin-bottom: 16px; }
.ctrl:last-child { margin-bottom: 0; }
.ctrl-label { display: block; margin-bottom: 8px; }

/* style presets */
.styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.style-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: var(--surface); font-size: .76rem; font-weight: 700; transition: border-color .15s, background .15s; }
.style-btn svg { width: 30px; height: 30px; fill: var(--ink); }
.style-btn:hover { border-color: var(--ink-2); }
.style-btn.is-active { border-color: var(--accent); background: var(--accent-soft); }

/* colors */
.color-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name name" "sw custom"; gap: 6px 8px; align-items: center; margin-bottom: 10px; }
.color-name { grid-area: name; font-size: .8rem; font-weight: 600; color: var(--muted); }
.swatches { grid-area: sw; display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--swatch-line); 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(--accent); }
.color-custom { grid-area: custom; position: relative; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; border: 1.5px dashed var(--line-2); background: conic-gradient(#f44, #fd4, #4d4, #4df, #44f, #f4f, #f44); cursor: pointer; }
.color-custom input { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); opacity: 0; cursor: pointer; }

/* emojis */
.emojis { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.emoji-btn { width: 38px; height: 38px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--surface); font-size: 1.25rem; line-height: 1; display: grid; place-items: center; transition: border-color .15s, background .15s; }
.emoji-btn:hover { border-color: var(--ink-2); }
.emoji-btn.is-active { border-color: var(--accent); background: var(--accent-soft); }
.emoji-btn.none { font-size: .7rem; font-weight: 700; color: var(--muted); }
.center-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.emoji-input { width: 96px; min-height: 36px; padding: 6px 10px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); background: var(--surface); font-size: .9rem; }
.emoji-input:focus { outline: none; border-color: var(--accent); }
.emoji-mini { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 14px; }
.emoji-mini button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 1rem; }
.emoji-mini button:hover { border-color: var(--ink-2); }

/* formats */
.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.format-btn { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 10px 4px 8px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: var(--surface); transition: border-color .15s, background .15s; color: var(--ink); }
.format-btn svg { width: 44px; height: 36px; color: var(--ink); margin-bottom: 2px; }
.format-btn strong { font-size: .84rem; line-height: 1.2; }
.format-btn small { font-size: .7rem; color: var(--muted); line-height: 1.2; }
.format-btn:hover { border-color: var(--ink-2); }
.format-btn.is-active { border-color: var(--accent); background: var(--accent-soft); }
.format-btn.is-active svg { color: var(--accent-deep); }

/* sliders */
.sliders { display: grid; gap: 12px; margin-bottom: 14px; }
.slider { display: flex; flex-direction: column; gap: 4px; }
.slider-top { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.slider-top output { font-variant-numeric: tabular-nums; color: var(--ink); }
.slider input[type="range"] { width: 100%; accent-color: var(--accent); height: 28px; }

.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.specs div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; min-width: 0; }
.specs dt { font-size: .72rem; color: var(--muted); font-weight: 600; }
.specs dd { margin: 0; font-weight: 800; font-size: .92rem; font-variant-numeric: tabular-nums; }
.specs .is-bad dd { color: var(--bad); }
.specs .is-ok dd { color: var(--ok); }
.specs .wide { grid-column: 1 / -1; }

/* preview */
.preview-pair { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 8px; align-items: start; }
.pv-2d, .pv-3d { margin: 0; min-width: 0; }
.pv-2d figcaption, .pv-3d figcaption { font-size: .76rem; font-weight: 700; text-align: center; margin-top: 6px; color: var(--ink-2); line-height: 1.35; }
@media (max-width: 539px) { .pv-2d figcaption .muted, .pv-3d figcaption .muted { display: block; font-weight: 600; font-size: .7rem; } }
.qr-box { width: 100%; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; }
.qr-box canvas, .qr-box svg { width: 100% !important; height: 100% !important; }
.viewer { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; background: radial-gradient(120% 90% at 50% 20%, var(--viewer-1) 0%, var(--viewer-2) 70%, var(--viewer-3) 100%); border: 1px solid var(--line); 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: grid; place-items: center; padding: 16px; text-align: center; font-size: .88rem; font-weight: 600; color: var(--muted); pointer-events: none; }
.viewer[data-v="ready"] .viewer-msg { display: none; }
.viewer[data-v="busy"] .viewer-msg { display: grid; place-items: end center; padding-bottom: 10px; font-size: .75rem; }
.viewer-reset { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-size: 1.1rem; display: none; }
.viewer[data-v="ready"] .viewer-reset, .viewer[data-v="busy"] .viewer-reset { display: grid; place-items: center; }

.payload-line { margin-top: 10px; font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.payload-line b { color: var(--ink-2); }
.warnings { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.warnings li { font-size: .82rem; line-height: 1.4; padding: 8px 10px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.warnings li.bad { background: var(--bad-soft); color: var(--bad-ink); border-color: var(--bad-line); }
.warnings li.ok { background: var(--ok-soft); color: var(--ok-ink); border-color: var(--ok-line); }

.panel-download { display: grid; gap: 8px; }
.dl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dl-stl { justify-self: center; text-align: center; }
.dl-status { font-size: .8rem; color: var(--muted); text-align: center; min-height: 1.2em; }
.privacy { margin-top: 10px; font-size: .84rem; color: var(--muted); text-align: center; }

/* =============================================================
   7. Ads (placeholders)
   ============================================================= */
.ad-slot {
  display: grid; place-items: center; width: 100%; margin-inline: auto;
  border: 1.5px dashed var(--line-2); border-radius: var(--r); background: repeating-linear-gradient(135deg, var(--ad-a) 0 12px, var(--ad-b) 12px 24px);
}
.ad-label { font-size: .72rem; font-weight: 800; letter-spacing: .18em; color: var(--ad-label); }
.ad-leaderboard { max-width: 728px; min-height: 100px; margin-top: 22px; }
.ad-incontent { max-width: 728px; min-height: 280px; margin-block: 8px; }

.ad-pop { margin: auto; border: 0; padding: 22px 20px 18px; border-radius: var(--r-lg); width: min(360px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); text-align: center; }
.ad-pop::backdrop { background: rgba(21,23,28,.5); }
.ad-pop[open] { animation: popIn .28s var(--ease-out); }
.ad-pop-title { font-weight: 800; margin-bottom: 12px; padding-inline: 24px; }
.ad-pop-slot { min-height: 250px; max-width: 300px; margin-bottom: 14px; }
.ad-pop-x { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; font-size: 1.5rem; line-height: 1; color: var(--muted); }
.ad-pop-x:hover { background: var(--bg); color: var(--ink); }

.ad-toast { position: fixed; right: calc(12px + env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 80; width: min(300px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 8px; animation: toastIn .4s var(--ease-out); }
.ad-toast-slot { min-height: 84px; border-radius: var(--r-sm); }
.ad-toast-x { position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 1rem; line-height: 1; box-shadow: var(--shadow); }

/* Huecos ocultos hasta que AdSense apruebe: quitar data-ads="off" del <html> para mostrarlos */
:root[data-ads="off"] .ad-slot,
:root[data-ads="off"] .ad-toast,
:root[data-ads="off"] .ad-pop { display: none !important; }

@keyframes popIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* =============================================================
   8. Content sections
   ============================================================= */
.section { padding-block: 44px 8px; }
.section-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem); margin-bottom: 18px; }
.steps { list-style: none; padding: 0; display: grid; gap: 12px; counter-reset: none; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.step-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-deep); margin-bottom: 10px; }
.step-icon svg { width: 24px; height: 24px; }
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .94rem; }

.ideas { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.idea { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.idea-emoji { font-size: 1.7rem; display: block; margin-bottom: 6px; }
.idea h3 { font-size: 1.02rem; margin-bottom: 6px; }
.idea p { color: var(--muted); font-size: .93rem; }

.prose { max-width: 820px; }
.prose h3 { font-size: 1.12rem; margin: 22px 0 6px; }
.prose p { color: var(--ink-2); margin-bottom: 10px; }

.faq { display: grid; gap: 8px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 24px 14px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--accent-deep); font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 14px; color: var(--ink-2); }

.site-footer { margin-top: 56px; border-top: 1px solid var(--line); padding-block: 22px; font-size: .88rem; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer-row nav { display: flex; gap: 18px; }
.footer-row a { text-decoration: none; font-weight: 600; }
.footer-row a:hover { color: var(--ink); }

/* Legal pages */
.legal { max-width: 760px; padding-block: 32px; }
.legal h1 { font-family: var(--display); font-size: 2rem; margin-bottom: 16px; }
.legal h2 { font-size: 1.15rem; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--ink-2); margin-bottom: 8px; }
.todo { background: var(--warn-soft); padding: 0 4px; border-radius: 4px; }

/* =============================================================
   9. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .tool-card { padding: 16px; }
  .ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .specs .wide { grid-column: 1 / -1; }
}
@media (min-width: 720px) {
  .site-nav { display: flex; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { padding-top: 28px; }
}
@media (min-width: 960px) {
  .tool-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    grid-template-areas: "c pc" "d pc" "o pc";
    align-items: start;
  }
  .preview-col { display: flex; flex-direction: column; gap: 12px; grid-area: pc; position: sticky; top: 68px; }
  .preview-pair { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); }
  .ideas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .specs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
  .specs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

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