/* Layout: tool card = controls column + sticky preview column (2D over 3D); content sections below. */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --ink: #15171c;
  --muted: #5a606c;
  --line: #dfe2e7;
  --accent: #d9480f;
  --accent-ink: #ffffff;
  --accent-soft: #fde8de;
  --ok: #1d7a46;
  --warn: #9a5b00;
  --warn-bg: #fff4e0;
  --bad: #b3261e;
  --bad-bg: #fde7e5;
  --viewer: #e9ebef;
  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(20, 24, 32, .06), 0 8px 24px rgba(20, 24, 32, .06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111317; --surface: #1a1d22; --surface-2: #23272e; --ink: #eceef2; --muted: #a2a8b3;
    --line: #2e333b; --accent: #ff7a3d; --accent-ink: #1a0d06; --accent-soft: #3a2116;
    --ok: #5fd08f; --warn: #f2b84b; --warn-bg: #332712; --bad: #ff8a80; --bad-bg: #3a1b19;
    --viewer: #22262d; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111317; --surface: #1a1d22; --surface-2: #23272e; --ink: #eceef2; --muted: #a2a8b3;
  --line: #2e333b; --accent: #ff7a3d; --accent-ink: #1a0d06; --accent-soft: #3a2116;
  --ok: #5fd08f; --warn: #f2b84b; --warn-bg: #332712; --bad: #ff8a80; --bad-bg: #3a1b19;
  --viewer: #22262d; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); font-weight: 400; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap {
  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));
}

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); text-decoration: none; }
.brand span { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -.01em; }
.header-nav { display: flex; gap: 18px; }
.header-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.header-nav a:hover { color: var(--ink); }
@media (max-width: 560px) { .header-nav { display: none; } }

/* Hero */
.hero { padding-block: 28px 18px; display: grid; gap: 10px; }
.hero h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 800; letter-spacing: -.02em; }
.lede { color: var(--muted); max-width: 68ch; font-size: 1.05rem; }
.lede strong { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) { .hero { padding-block: 18px 12px; } .lede { font-size: .98rem; } }

/* Tool card */
.tool { padding-block: 4px 8px; }
.noscript { background: var(--warn-bg); color: var(--warn); padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 12px; }
.tool-card {
  display: grid; gap: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  grid-template-areas: "content preview" "design preview" "object preview";
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.panel { padding: 20px 22px; min-width: 0; display: grid; gap: 14px; align-content: start; }
.panel-content { grid-area: content; }
.panel-design { grid-area: design; border-top: 1px solid var(--line); }
.panel-object { grid-area: object; border-top: 1px solid var(--line); }
.panel-preview {
  grid-area: preview; border-left: 1px solid var(--line); background: var(--surface-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.panel-preview > * { position: relative; }
@media (min-width: 921px) {
  .panel-preview { align-self: stretch; }
  .preview-sticky { position: sticky; top: 12px; }
}
@media (max-width: 920px) {
  .tool-card { grid-template-columns: minmax(0, 1fr); grid-template-areas: "content" "preview" "design" "object"; }
  .panel-preview { border-left: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; }
  .panel-design { border-top: 0; }
}
@media (max-width: 560px) { .panel { padding: 16px 14px; } }

.panel-title { font-size: 1.08rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.step {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font: 700 .85rem/1 var(--font-mono);
}

/* Fields */
.field { display: grid; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field > legend { font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: 0; }
fieldset.field > legend { margin-bottom: 6px; }
.field-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.field-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 420px) { .field-row.two { grid-template-columns: minmax(0, 1fr); } }
input[type="text"], select {
  width: 100%; min-width: 0; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; min-height: 44px;
}
input[type="text"]:focus, select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
#in-url { font-size: 1.02rem; }
.hint { color: var(--muted); font-size: .84rem; }
.hint.is-bad { color: var(--bad); }
input[type="range"] { width: 100%; accent-color: var(--accent); min-height: 32px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: 500 .9rem var(--font-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; min-height: 36px;
}
.chip:hover { border-color: var(--muted); }
.chip.is-on { background: var(--ink); color: var(--surface); border-color: var(--ink); }

.styles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .styles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.style-btn {
  display: grid; justify-items: center; gap: 6px; padding: 10px 6px; cursor: pointer;
  font: 500 .84rem var(--font-body); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.style-btn.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.sw { width: 30px; height: 30px; display: block; color: var(--ink);
  background-repeat: no-repeat; background-size: 100% 100%; }
.sw-clasico { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cg fill='%2315171c'%3E%3Cpath d='M1 1h12v12H1zM17 1h4v4h-4zM25 5h4v4h-4zM17 9h4v4h-4zM1 17h4v4H1zM9 21h4v4H9zM17 17h4v4h-4zM21 21h4v4h-4zM25 25h4v4h-4zM5 25h4v4H5z'/%3E%3C/g%3E%3Crect x='4' y='4' width='6' height='6' fill='%23fff'/%3E%3Crect x='5.5' y='5.5' width='3' height='3' fill='%2315171c'/%3E%3C/svg%3E"); }
.sw-redondeado { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cg fill='%2315171c'%3E%3Crect x='1' y='1' width='12' height='12' rx='4'/%3E%3Crect x='17' y='1' width='4' height='4' rx='1.6'/%3E%3Crect x='25' y='5' width='4' height='4' rx='1.6'/%3E%3Crect x='17' y='9' width='4' height='4' rx='1.6'/%3E%3Crect x='1' y='17' width='4' height='4' rx='1.6'/%3E%3Crect x='9' y='21' width='4' height='4' rx='1.6'/%3E%3Crect x='17' y='17' width='8' height='4' rx='1.6'/%3E%3Crect x='21' y='21' width='4' height='8' rx='1.6'/%3E%3Crect x='5' y='25' width='4' height='4' rx='1.6'/%3E%3C/g%3E%3Crect x='4' y='4' width='6' height='6' rx='2' fill='%23fff'/%3E%3Ccircle cx='7' cy='7' r='1.6' fill='%2315171c'/%3E%3C/svg%3E"); }
.sw-puntos { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cg fill='%2315171c'%3E%3Ccircle cx='7' cy='7' r='6'/%3E%3Ccircle cx='19' cy='3' r='2'/%3E%3Ccircle cx='27' cy='7' r='2'/%3E%3Ccircle cx='19' cy='11' r='2'/%3E%3Ccircle cx='3' cy='19' r='2'/%3E%3Ccircle cx='11' cy='23' r='2'/%3E%3Ccircle cx='19' cy='19' r='2'/%3E%3Ccircle cx='23' cy='23' r='2'/%3E%3Ccircle cx='27' cy='27' r='2'/%3E%3Ccircle cx='7' cy='27' r='2'/%3E%3C/g%3E%3Ccircle cx='7' cy='7' r='3.4' fill='%23fff'/%3E%3Ccircle cx='7' cy='7' r='1.8' fill='%2315171c'/%3E%3C/svg%3E"); }
.sw-elegante { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cg fill='%2315171c'%3E%3Crect x='1' y='1' width='12' height='12' rx='4'/%3E%3Cpath d='M17 1h4v2.5A1.5 1.5 0 0 1 19.5 5H17zM25 5h4v2.5A1.5 1.5 0 0 1 27.5 9H25zM17 9h4v4h-2.5A1.5 1.5 0 0 1 17 11.5zM1 17h4v4H2.5A1.5 1.5 0 0 1 1 19.5zM9 21h4v2.5A1.5 1.5 0 0 1 11.5 25H9zM17 17h8v4h-6.5A1.5 1.5 0 0 1 17 19.5zM21 21h4v8h-2.5A1.5 1.5 0 0 1 21 27.5zM5 25h4v4H6.5A1.5 1.5 0 0 1 5 27.5z'/%3E%3C/g%3E%3Crect x='4' y='4' width='6' height='6' rx='2' fill='%23fff'/%3E%3Crect x='5.5' y='5.5' width='3' height='3' fill='%2315171c'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sw { filter: invert(1); } }
:root[data-theme="dark"] .sw { filter: invert(1); }

.color-wrap { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 5px 10px 5px 5px; background: var(--surface); min-height: 44px; }
input[type="color"] { width: 40px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 7px; 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: 5px; }
.color-wrap output { font-size: .88rem; color: var(--muted); }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatches button { width: 26px; height: 26px; border-radius: 50%; background: var(--c); border: 1px solid var(--line); cursor: pointer; padding: 0; }
.swatches button:hover { transform: scale(1.08); }

.emoji-grid { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
@media (max-width: 520px) { .emoji-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.emoji-grid button {
  font-size: 1.3rem; line-height: 1; aspect-ratio: 1; min-height: 40px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; padding: 0;
}
.emoji-grid button.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.logo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

.formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .formats { grid-template-columns: minmax(0, 1fr); } }
.format {
  display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 12px; cursor: pointer;
  color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit;
}
.format svg { width: 42px; height: 28px; flex: none; color: var(--muted); }
.format span { display: grid; min-width: 0; }
.format strong { font-size: .92rem; }
.format small { color: var(--muted); font-size: .78rem; }
.format.is-on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.format.is-on svg { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: 600 .95rem var(--font-body); border-radius: var(--radius-sm); padding: 10px 16px; min-height: 44px;
  border: 1px solid transparent; text-decoration: none; transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { min-height: 38px; padding: 7px 12px; font-size: .88rem; }
.btn-lg { min-height: 54px; font-size: 1.05rem; width: 100%; }
.btn-link, .btn.btn-link { background: none; border: 0; color: var(--accent); padding: 0; font: 600 inherit; font-size: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; min-height: 0; }

/* Preview */
.preview-2d { display: grid; gap: 10px; }
.qr-frame { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: grid; place-items: center; }
.qr-canvas { width: 100%; max-width: 250px; aspect-ratio: 1; display: grid; place-items: center; }
.qr-canvas canvas, .qr-canvas svg { width: 100% !important; height: auto !important; display: block; border-radius: 4px; }
.dl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preview-3d { display: grid; gap: 10px; margin-top: 6px; }
.viewer {
  position: relative; width: 100%; aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius);
  background: radial-gradient(120% 90% at 50% 20%, var(--surface) 0%, var(--viewer) 70%);
  border: 1px solid var(--line); overflow: hidden; touch-action: none; cursor: grab;
}
.viewer:active { cursor: grabbing; }
.viewer canvas { display: block; width: 100% !important; height: 100% !important; }
.viewer-msg { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 16px; color: var(--muted); font-size: .92rem; }
.viewer-hint { position: absolute; left: 10px; bottom: 8px; font-size: .74rem; color: var(--muted); background: color-mix(in srgb, var(--surface) 80%, transparent); padding: 2px 8px; border-radius: 999px; pointer-events: none; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; }
.specs div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 7px 9px; min-width: 0; }
.specs dt { font: 500 .68rem var(--font-body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.specs dd { margin: 0; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.specs dd.is-bad { color: var(--bad); }
.specs dd.is-ok { color: var(--ok); }
.warnings { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.warnings li { font-size: .84rem; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--warn-bg); color: var(--warn); }
.warnings li.bad { background: var(--bad-bg); color: var(--bad); }
.warnings li.ok { background: transparent; color: var(--ok); padding-block: 2px; }
.secondary-dl { font-size: .86rem; color: var(--muted); text-align: center; }

.privacy { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .86rem; padding: 12px 4px 0; max-width: 90ch; }
.privacy svg { flex: none; color: var(--ok); margin-top: 2px; }

/* Ads (placeholders) */
.ad-slot {
  display: grid; place-items: center; border: 1.5px dashed var(--line); border-radius: var(--radius-sm);
  background: repeating-linear-gradient(-45deg, transparent 0 10px, color-mix(in srgb, var(--surface-2) 70%, transparent) 10px 20px);
  color: var(--muted); font: 600 .78rem var(--font-mono); letter-spacing: .18em;
}
.ad-leaderboard { min-height: 100px; margin-block: 24px 8px; max-width: 970px; margin-inline: auto; }
.ad-incontent { min-height: 250px; margin-block: 8px; max-width: 728px; margin-inline: auto; }
@media (max-width: 560px) { .ad-leaderboard { min-height: 100px; } .ad-incontent { min-height: 250px; } }
.ad-dialog {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 18px; width: min(360px, calc(100vw - 32px));
  background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.ad-dialog[open] { display: grid; gap: 14px; }
.ad-dialog::backdrop { background: rgba(10, 12, 16, .55); }
.ad-dialog-title { font-weight: 600; padding-right: 28px; }
.ad-modal { min-height: 250px; }
.ad-close, .ad-toast-close {
  position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0;
}
.ad-toast {
  position: fixed; z-index: 40; width: 300px; max-width: calc(100vw - 32px);
  right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px;
  animation: rise .3s ease-out;
}
.ad-toast-close { top: -12px; right: -10px; width: 28px; height: 28px; font-size: 1.1rem; }
.ad-mini { min-height: 90px; }
@media (max-width: 560px) {
  .ad-toast { width: 190px; padding: 6px; }
  .ad-mini { min-height: 56px; }
  .qr-canvas { max-width: 190px; }
  .specs dd { white-space: normal; font-size: .82rem; }
  .qr-frame { padding: 10px; }
  .chips { gap: 6px; }
  .chip { padding: 6px 12px; min-height: 34px; }
}
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }

.toast {
  position: fixed; z-index: 60; left: 50%; transform: translateX(-50%);
  bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--surface);
  padding: 10px 16px; border-radius: 999px; font-size: .9rem; box-shadow: var(--shadow); max-width: calc(100vw - 32px);
}

/* Content sections */
.section { padding-block: 40px 8px; display: grid; gap: 18px; }
.section > h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); font-weight: 800; letter-spacing: -.015em; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; align-content: start; position: relative; }
.steps li::before { content: "Paso " counter(s); font: 500 .74rem var(--font-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }
.steps svg { width: 30px; height: 30px; color: var(--ink); position: absolute; top: 16px; right: 16px; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--muted); font-size: .95rem; }
.prose { max-width: 760px; }
.prose p { color: var(--ink); max-width: 68ch; }
.prose p + p { margin-top: -4px; }
.ideas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .ideas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ideas { grid-template-columns: minmax(0, 1fr); } }
.idea { border-top: 3px solid var(--ink); padding-top: 12px; display: grid; gap: 6px; align-content: start; }
.idea h3 { font-size: 1.05rem; }
.idea p { color: var(--muted); font-size: .94rem; }
.faq { display: grid; gap: 8px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style-position: outside; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.faq details p { color: var(--muted); padding-bottom: 14px; max-width: 70ch; }

.site-footer { margin-top: 48px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px; font-size: .9rem; color: var(--muted); }
.footer-inner nav { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-inner a { color: var(--muted); }

/* Legal pages */
.legal { padding-block: 32px; max-width: 760px; display: grid; gap: 14px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.2rem; margin-top: 10px; }
.legal p, .legal li { color: var(--ink); max-width: 70ch; }

@media (prefers-reduced-motion: reduce) {
  .ad-toast { animation: none; }
  .btn, .swatches button { transition: none; }
}
