/* =============================================================
   QR3D — Generador de códigos QR para imprimir en 3D
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f6f7f9;
  --surface:   #ffffff;
  --surface-2: #f1f3f6;
  --ink:       #14161c;
  --ink-2:     #4b5261;
  --ink-3:     #7b8394;
  --line:      #e2e6ec;
  --line-2:    #cfd5df;
  --accent:    #2f6bff;
  --accent-d:  #1f4fd0;
  --accent-sf: #eaf0ff;
  --ok:        #0f8a52;
  --warn:      #a8620a;
  --warn-bg:   #fff6e6;
  --danger:    #c4341c;
  --danger-bg: #fdeeeb;
  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 1px 2px rgba(16,20,30,.05), 0 8px 24px -12px rgba(16,20,30,.14);
  --shadow-lg: 0 2px 6px rgba(16,20,30,.06), 0 26px 60px -24px rgba(16,20,30,.28);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(1rem, 4vw, 2rem);
  --maxw: 1180px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0e1016;
    --surface:   #171a22;
    --surface-2: #1f232d;
    --ink:       #eef1f6;
    --ink-2:     #b3bccb;
    --ink-3:     #838d9e;
    --line:      #272c37;
    --line-2:    #343a48;
    --accent:    #6c96ff;
    --accent-d:  #9dbaff;
    --accent-sf: #1b2338;
    --ok:        #4ec98b;
    --warn:      #e6ab5b;
    --warn-bg:   #2a2213;
    --danger:    #ff8a72;
    --danger-bg: #2e1a16;
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 6px rgba(0,0,0,.5), 0 26px 60px -24px rgba(0,0,0,.75);
  }
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.14; letter-spacing: -0.022em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.15rem + 2.6vw, 2.85rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem); }
h3 { font-size: 1.1rem; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: 860px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }

/* =============================================================
   4. Header
   ============================================================= */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1rem;
  min-height: 60px;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); font-weight: 800; letter-spacing: -0.03em; font-size: 1.06rem; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center;
}
.brand-mark svg { width: 17px; height: 17px; }
.header-nav { margin-left: auto; display: flex; gap: 1.1rem; align-items: center; font-size: .9rem; }
.header-nav a { color: var(--ink-2); font-weight: 500; }
.header-nav a:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 639px) { .header-nav .hide-xs { display: none; } }

/* =============================================================
   5. Hero + tool
   ============================================================= */
.hero { padding: clamp(1.4rem, 1rem + 2vw, 2.6rem) 0 .5rem; text-align: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .02em;
  color: var(--accent-d); background: var(--accent-sf);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  padding: .3rem .7rem; border-radius: 999px; margin-bottom: .9rem;
}
.hero h1 { margin-bottom: .6rem; }
.hero .lead { color: var(--ink-2); font-size: clamp(1rem, .95rem + .3vw, 1.13rem); max-width: 64ch; margin-inline: auto; }

.tool { padding-bottom: 1.2rem; }
.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-lg);
  overflow: clip;
}
/* Móvil: enlace → resultado → resto de ajustes (el resultado no queda enterrado).
   Escritorio: dos columnas, con el resultado ocupando toda la altura a la derecha. */
.tool-grid { display: grid; grid-template-columns: 1fr; }
.panel { padding: clamp(1rem, .8rem + 1vw, 1.6rem); }
.panel-out, .panel-b { border-top: 1px solid var(--line); }
@media (min-width: 960px) {
  .tool-grid {
    grid-template-columns: minmax(0,1fr) minmax(0,1.02fr);
    grid-template-areas: "a out" "b out";
    align-items: start;
  }
  .panel-a { grid-area: a; }
  .panel-b { grid-area: b; }
  .panel-out {
    grid-area: out; align-self: stretch;
    background: var(--surface-2);
    border-top: 0; border-left: 1px solid var(--line);
  }
  .panel-b { border-top: 1px solid var(--line); }
  /* El resultado y el botón de descarga acompañan al usuario mientras ajusta. */
  .out-sticky { position: sticky; top: 76px; }
}

.field { margin-bottom: 1rem; }
.field:last-child { margin-bottom: 0; }
.field > label, .field-label {
  display: block; font-size: .82rem; font-weight: 650; color: var(--ink-2);
  margin-bottom: .38rem; letter-spacing: .005em;
}
.hint { font-size: .78rem; color: var(--ink-3); margin-top: .35rem; }

input[type="text"], input[type="url"], input[type="password"], select, textarea {
  width: 100%; padding: .62rem .75rem;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  transition: border-color .18s var(--ease-out), box-shadow .18s var(--ease-out);
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 17px) 55%, calc(100% - 12px) 55%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2rem;
}

.seg { display: flex; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); padding: 4px; border-radius: 11px; }
.seg button {
  flex: 1; padding: .45rem .3rem; border-radius: 8px; font-size: .85rem; font-weight: 600;
  color: var(--ink-2); transition: background .16s var(--ease-out), color .16s var(--ease-out);
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.styles-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.style-opt {
  border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface);
  padding: .5rem .25rem .4rem; text-align: center; font-size: .72rem; font-weight: 600; color: var(--ink-2);
  transition: border-color .16s var(--ease-out), background .16s var(--ease-out);
}
.style-opt svg { width: 30px; height: 30px; margin: 0 auto .25rem; color: var(--ink); }
.style-opt:hover { background: var(--surface-2); }
.style-opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-sf); color: var(--accent-d); }
.style-opt[aria-pressed="true"] svg { color: var(--accent-d); }

.colors-row { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.color-field { display: flex; align-items: center; gap: .55rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: .32rem .5rem; background: var(--bg); }
.color-field input[type="color"] { width: 30px; height: 30px; padding: 0; border: 1px solid var(--line-2); border-radius: 7px; background: none; cursor: pointer; flex: none; }
.color-field input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.color-field input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 5px; }
.color-field .cf-txt { font-size: .78rem; font-weight: 600; color: var(--ink-2); line-height: 1.25; }
.color-field .cf-hex { font-family: var(--mono); font-size: .7rem; color: var(--ink-3); text-transform: uppercase; }

.emoji-row { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.emoji-btn {
  width: 36px; height: 36px; font-size: 19px; line-height: 1; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center;
  transition: transform .14s var(--ease-out), border-color .14s var(--ease-out);
}
.emoji-btn:hover { transform: translateY(-1px); }
.emoji-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-sf); }

.file-btn {
  display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600;
  padding: .45rem .7rem; border: 1px dashed var(--line-2); border-radius: 9px; color: var(--ink-2);
  background: var(--surface);
}
.file-btn:hover { border-color: var(--accent); color: var(--accent-d); }
.file-btn svg { width: 15px; height: 15px; }
.link-btn { font-size: .78rem; font-weight: 600; color: var(--ink-3); text-decoration: underline; }
.link-btn:hover { color: var(--danger); }

.range-row { display: flex; align-items: center; gap: .7rem; }
.range-row input[type="range"] { flex: 1; accent-color: var(--accent); }
.range-val { font-family: var(--mono); font-size: .78rem; color: var(--ink-2); min-width: 5.2em; text-align: right; }

/* Output side */
.out-block + .out-block { margin-top: 1.15rem; }
.out-head { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .55rem; }
.out-head h2, .out-head h3 { font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.out-head .flag { margin-left: auto; font-size: .73rem; color: var(--ink-3); font-family: var(--mono); }

.qr-stage {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; display: grid; place-items: center; min-height: 200px;
}
.qr-stage canvas, .qr-stage svg { width: 100%; height: auto; max-width: 240px; border-radius: 6px; }

.view3d-shell {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; min-height: 220px;
}
.view3d-shell canvas { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.view3d-shell canvas:active { cursor: grabbing; }
.view3d-msg {
  position: absolute; inset: 0; display: grid; place-content: center; gap: .45rem;
  text-align: center; padding: 1.2rem; font-size: .87rem; color: var(--ink-2);
  background: var(--surface);
}
.view3d-msg[hidden] { display: none; }
.view3d-hint {
  position: absolute; left: 10px; bottom: 9px; font-size: .72rem; color: var(--ink-3);
  background: color-mix(in srgb, var(--surface) 82%, transparent); padding: .16rem .45rem;
  border-radius: 6px; pointer-events: none;
}
.view3d-dims {
  position: absolute; right: 10px; top: 9px; font-size: .71rem; font-family: var(--mono);
  color: var(--ink-3); background: color-mix(in srgb, var(--surface) 82%, transparent);
  padding: .16rem .45rem; border-radius: 6px; pointer-events: none;
}
.spin { width: 22px; height: 22px; margin: 0 auto; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Checks / warnings */
.checks { display: grid; gap: .4rem; margin-top: .75rem; }
.check {
  display: flex; gap: .5rem; align-items: flex-start; font-size: .8rem; line-height: 1.45;
  padding: .45rem .6rem; border-radius: 9px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink-2);
}
.check svg { width: 15px; height: 15px; flex: none; margin-top: .17rem; }
.check.is-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 28%, transparent); background: color-mix(in srgb, var(--ok) 8%, transparent); }
.check.is-warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 32%, transparent); background: var(--warn-bg); }
.check.is-bad { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 32%, transparent); background: var(--danger-bg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .68rem 1.05rem; border-radius: 11px; font-weight: 650; font-size: .93rem;
  border: 1px solid transparent;
  transition: transform .14s var(--ease-out), background .16s var(--ease-out), box-shadow .16s var(--ease-out);
  text-align: center;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-primary:hover { background: var(--accent-d); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: color-mix(in srgb, var(--ink) 86%, var(--bg)); }
.btn-ghost { background: var(--surface); color: var(--ink-2); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-3); }
.btn-lg { padding: .85rem 1.2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-col { flex-direction: column; gap: .12rem; }
.btn-sub { font-weight: 500; font-size: .74rem; opacity: .82; }

.dl-grid { display: grid; gap: .5rem; }
.dl-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }

.privacy-badge {
  display: flex; align-items: center; gap: .5rem; justify-content: center;
  margin-top: .95rem; font-size: .82rem; color: var(--ink-2); text-align: center;
}
.privacy-badge svg { width: 15px; height: 15px; flex: none; color: var(--ok); }

.nojs-note { display: none; }
.no-js .nojs-note {
  display: block; margin-top: 1rem; padding: .8rem 1rem; border-radius: var(--radius);
  background: var(--warn-bg); color: var(--warn); font-size: .88rem;
  border: 1px solid color-mix(in srgb, var(--warn) 32%, transparent);
}

/* =============================================================
   6. Ad slots (placeholders — el dueño pega aquí su código)
   ============================================================= */
.ad-slot {
  display: grid; place-items: center;
  border: 1px dashed var(--line-2); border-radius: var(--radius);
  background: repeating-linear-gradient(135deg, transparent, transparent 9px, color-mix(in srgb, var(--line) 45%, transparent) 9px, color-mix(in srgb, var(--line) 45%, transparent) 18px);
  color: var(--ink-3); font-size: .7rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase;
}
.ad-leaderboard { min-height: 100px; margin: 1.4rem 0; }
@media (min-width: 720px) { .ad-leaderboard { min-height: 110px; } }
.ad-incontent { min-height: 250px; margin: 2rem 0; }
.ad-modal-slot { min-height: 250px; width: 100%; margin-top: .85rem; }

.ad-dialog {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0;
  background: var(--surface); color: var(--ink); max-width: min(92vw, 400px); width: 100%;
  box-shadow: var(--shadow-lg);
}
.ad-dialog::backdrop { background: rgba(10, 12, 18, .55); }
.ad-dialog-in { padding: 1.1rem; }
.ad-dialog-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .15rem; }
.ad-dialog-head strong { font-size: 1rem; }
.ad-dialog-close {
  margin-left: auto; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  color: var(--ink-3); border: 1px solid var(--line);
}
.ad-dialog-close:hover { color: var(--ink); background: var(--surface-2); }
.ad-dialog-close svg { width: 15px; height: 15px; }

.ad-toast {
  position: fixed; right: 14px; bottom: 14px; z-index: 60;
  width: min(84vw, 290px); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .7rem;
  display: grid; gap: .5rem;
  transform: translateY(14px); opacity: 0; pointer-events: none;
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out);
}
.ad-toast.is-in { transform: none; opacity: 1; pointer-events: auto; }
.ad-toast[hidden] { display: none; }
.ad-toast-head { display: flex; align-items: center; gap: .4rem; font-size: .66rem; font-weight: 700; letter-spacing: .18em; color: var(--ink-3); text-transform: uppercase; }
.ad-toast-close { margin-left: auto; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: var(--ink-3); }
.ad-toast-close:hover { color: var(--ink); background: var(--surface-2); }
.ad-toast-close svg { width: 13px; height: 13px; }
.ad-toast .ad-slot { min-height: 96px; }

/* =============================================================
   7. Content sections
   ============================================================= */
.section { padding: clamp(2rem, 1.4rem + 2.6vw, 3.4rem) 0; }
.section-head { max-width: 64ch; margin-bottom: 1.6rem; }
.section-head h2 { margin-bottom: .5rem; }
.section-head p { color: var(--ink-2); }

.steps { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; box-shadow: var(--shadow);
}
.step-n {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--ink); color: var(--bg); font-weight: 800; font-size: .85rem; margin-bottom: .7rem;
}
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--ink-2); font-size: .92rem; }

.uses { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .uses { grid-template-columns: repeat(3, 1fr); } }
.use {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.05rem 1.1rem; box-shadow: var(--shadow);
}
.use-ico { font-size: 1.5rem; line-height: 1; margin-bottom: .55rem; }
.use h3 { margin-bottom: .3rem; font-size: 1.02rem; }
.use p { color: var(--ink-2); font-size: .9rem; }
.use .use-tag { display: inline-block; margin-top: .6rem; font-size: .71rem; font-weight: 650; color: var(--accent-d); background: var(--accent-sf); border-radius: 999px; padding: .16rem .55rem; }

.prose { max-width: 74ch; }
.prose h2 { margin: 2rem 0 .7rem; }
.prose h3 { margin: 1.5rem 0 .45rem; font-size: 1.05rem; }
.prose p { margin-bottom: .9rem; color: var(--ink-2); }
.prose ul { margin: 0 0 1rem 1.15rem; color: var(--ink-2); }
.prose li { margin-bottom: .35rem; }
.prose strong { color: var(--ink); font-weight: 650; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 1rem 0 1.4rem; }
.spec-table th, .spec-table td { text-align: left; padding: .55rem .7rem; border-bottom: 1px solid var(--line); }
.spec-table th { font-size: .73rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.spec-table td:first-child { font-weight: 650; color: var(--ink); }
.spec-wrap { overflow-x: auto; }

.faq { display: grid; gap: .55rem; max-width: 860px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 1rem;
}
.faq summary {
  cursor: pointer; list-style: none; padding: .9rem 0; font-weight: 650;
  display: flex; align-items: center; gap: .7rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; margin-left: auto; width: 9px; height: 9px; flex: none;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details > div { padding: 0 0 1rem; color: var(--ink-2); font-size: .93rem; }
.faq details > div p + p { margin-top: .6rem; }

.cta-band {
  background: var(--ink); color: var(--bg); border-radius: calc(var(--radius) + 4px);
  padding: clamp(1.4rem, 1rem + 2vw, 2.2rem); text-align: center;
}
.cta-band h2 { color: var(--bg); margin-bottom: .5rem; }
.cta-band p { color: color-mix(in srgb, var(--bg) 72%, var(--ink)); max-width: 54ch; margin: 0 auto 1.1rem; }
.cta-band .btn-primary { background: var(--bg); color: var(--ink); box-shadow: none; }
.cta-band .btn-primary:hover { background: color-mix(in srgb, var(--bg) 88%, var(--ink)); }

/* =============================================================
   8. Footer
   ============================================================= */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; margin-top: 1rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .87rem; }
.footer-links a { color: var(--ink-2); }
.footer-links a:hover { color: var(--ink); }
.footer-note { width: 100%; font-size: .78rem; color: var(--ink-3); }

/* =============================================================
   9. Reveals (functional, not intrusive)
   ============================================================= */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =============================================================
   10. Reduced motion — only intrusive effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spin { animation-duration: 1.8s; }
}
