/* ==========================================================================
   ImprimeTuQR — styles.css
   ========================================================================== */

/* ---- 1. Tokens ---------------------------------------------------------- */
:root {
  --bg: #F7F5F0;
  --bg-alt: #EFEBE2;
  --ink: #1B1B22;
  --ink-soft: #4B4A52;
  --line: #DCD7CB;
  --card: #FFFFFF;
  --accent: #FF6B35;
  --accent-ink: #7A2E0C;
  --accent-soft: #FFE4D6;
  --ok: #1D7A4C;
  --warn: #B4590A;
  --err: #C4331E;
  --cream: #F7F5F0;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --gutter: clamp(1.1rem, 4vw, 2.5rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --shadow-s: 0 1px 2px rgba(27,27,34,.06), 0 1px 1px rgba(27,27,34,.04);
  --shadow-m: 0 8px 24px rgba(27,27,34,.08), 0 2px 6px rgba(27,27,34,.05);
  --shadow-l: 0 20px 50px rgba(27,27,34,.14);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16151A;
    --bg-alt: #1D1C22;
    --ink: #F3F1EA;
    --ink-soft: #B9B6AE;
    --line: #34333B;
    --card: #201F26;
    --accent: #FF7A46;
    --accent-ink: #FFD9C4;
    --accent-soft: #3A241B;
    --shadow-s: 0 1px 2px rgba(0,0,0,.3);
    --shadow-m: 0 8px 24px rgba(0,0,0,.35);
    --shadow-l: 0 20px 50px rgba(0,0,0,.5);
  }
}
:root[data-theme="dark"] {
  --bg: #16151A; --bg-alt: #1D1C22; --ink: #F3F1EA; --ink-soft: #B9B6AE;
  --line: #34333B; --card: #201F26; --accent: #FF7A46; --accent-ink: #FFD9C4;
  --accent-soft: #3A241B;
}

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

.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: 500;
}
.skip-link:focus { top: 1rem; }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---- 3. Header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: .9rem;
}
.logo { display: flex; align-items: center; gap: .5rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.logo svg { width: 28px; height: 28px; color: var(--accent); }
.header-nav { display: flex; align-items: center; gap: 1.4rem; font-size: .92rem; color: var(--ink-soft); }
.header-nav a:hover { color: var(--ink); }
@media (max-width: 539px) { .header-nav { display: none; } }

/* ---- 4. Hero + tool card --------------------------------------------------- */
.hero { padding-block: clamp(1.6rem, 5vw, 3rem) 1rem; }
.hero-top { display: grid; grid-template-columns: 1fr; gap: clamp(1.4rem, 4vw, 2.4rem); align-items: center; margin-bottom: clamp(1.2rem, 3vw, 2rem); }
@media (min-width: 900px) { .hero-top { grid-template-columns: 1.05fr .95fr; } }
.hero-head { max-width: 760px; margin-bottom: 0; }
.hero-image { border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-m); border: 1px solid var(--line); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3/2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft);
  padding: .3rem .7rem; border-radius: 999px; margin-bottom: .9rem;
}
.hero h1 { font-size: clamp(1.7rem, 4.2vw, 2.7rem); margin-bottom: .7rem; }
.hero .lede { font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--ink-soft); max-width: 58ch; }

.tool-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-m);
  padding: clamp(1.1rem, 3vw, 1.8rem);
  display: grid;
  gap: clamp(1.2rem, 3vw, 1.8rem);
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .tool-card { grid-template-columns: 1.05fr .95fr; align-items: start; }
}

/* --- controls column --- */
.controls { display: flex; flex-direction: column; gap: 1.2rem; }
.field-group { display: flex; flex-direction: column; gap: .5rem; }
.field-group > label, .field-label {
  font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: .03em;
}
.input, textarea.input {
  width: 100%; padding: .75rem .9rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-s);
  background: var(--bg); color: var(--ink); font-size: .98rem;
  transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out);
}
.input:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }

.segmented { display: inline-flex; background: var(--bg-alt); padding: 3px; border-radius: var(--radius-s); gap: 2px; }
.segmented button {
  padding: .5rem .95rem; border-radius: calc(var(--radius-s) - 3px);
  font-size: .88rem; font-weight: 600; color: var(--ink-soft);
  transition: background .15s var(--ease-out), color .15s var(--ease-out);
}
.segmented button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow-s); }

.style-grid, .format-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem;
}
.format-grid { grid-template-columns: repeat(3, 1fr); }
.pick-card {
  display: flex; flex-direction: column; align-items: center; gap: .45rem;
  padding: .7rem .5rem; border: 1.5px solid var(--line); border-radius: var(--radius-s);
  background: var(--bg); font-size: .82rem; font-weight: 600; color: var(--ink-soft);
  transition: border-color .15s var(--ease-out), background .15s var(--ease-out), color .15s var(--ease-out);
}
.pick-card svg { width: 26px; height: 26px; }
.pick-card[aria-pressed="true"] {
  border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink);
}
.pick-card:hover { border-color: var(--ink-soft); }

.color-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.color-field { display: flex; flex-direction: column; gap: .4rem; flex: 1; min-width: 130px; }
.color-swatch-input {
  display: flex; align-items: center; gap: .6rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-s);
  padding: .4rem .6rem; background: var(--bg);
}
.color-swatch-input input[type="color"] {
  appearance: none; -webkit-appearance: none; width: 34px; height: 34px;
  border: none; border-radius: 8px; padding: 0; background: none; cursor: pointer;
}
.color-swatch-input input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.color-swatch-input input[type="color"]::-webkit-color-swatch { border: 1px solid var(--line); border-radius: 8px; }
.color-swatch-input code { font-family: var(--mono); font-size: .82rem; color: var(--ink-soft); }
.swap-colors-btn {
  align-self: flex-end; display: inline-flex; align-items: center; gap: .35rem;
  font-size: .8rem; font-weight: 600; color: var(--ink-soft); padding: .3rem .2rem;
}
.swap-colors-btn:hover { color: var(--accent-ink); }
.swap-colors-btn svg { width: 15px; height: 15px; }

.center-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: .3rem; max-width: 320px; }
.emoji-btn {
  font-size: 1.15rem; padding: .35rem 0; border-radius: 8px; text-align: center;
  border: 1.5px solid transparent;
}
.emoji-btn:hover { background: var(--bg-alt); }
.emoji-btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.upload-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .55rem .9rem; border: 1.5px dashed var(--line); border-radius: var(--radius-s);
  font-size: .85rem; font-weight: 600; color: var(--ink-soft);
}
.upload-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.remove-center-btn { font-size: .82rem; color: var(--ink-soft); text-decoration: underline; }
.remove-center-btn:hover { color: var(--err); }

/* --- preview column --- */
.preview-col { display: flex; flex-direction: column; gap: 1rem; }
.preview-stack { display: flex; flex-direction: column; gap: .9rem; }
.preview-2d {
  aspect-ratio: 1; background: var(--bg-alt); border-radius: var(--radius-m);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border: 1px solid var(--line); max-width: 260px; margin-inline: auto;
}
.preview-2d canvas, .preview-2d img { max-width: 100%; max-height: 100%; }

.preview-3d-wrap {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-m);
  background: linear-gradient(160deg, var(--bg-alt), var(--bg));
  border: 1px solid var(--line); overflow: hidden;
}
.preview-3d-wrap canvas { width: 100% !important; height: 100% !important; }
.preview-3d-status {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: .5rem; font-size: .85rem; color: var(--ink-soft); text-align: center; padding: 1rem;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
}
.preview-3d-wrap[data-ready="true"] .preview-3d-status { display: none; }
.spin {
  width: 26px; height: 26px; border-radius: 50%;
  border: 3px solid var(--line); border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.drag-hint { position: absolute; bottom: .6rem; right: .8rem; font-size: .72rem; color: var(--ink-soft);
  background: color-mix(in srgb, var(--card) 80%, transparent); padding: .25rem .55rem; border-radius: 999px; }

.warnings { display: flex; flex-direction: column; gap: .45rem; }
.warning-line {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .82rem; padding: .5rem .65rem; border-radius: var(--radius-s);
  background: var(--bg-alt); color: var(--ink-soft);
}
.warning-line svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: .1rem; }
.warning-line.ok { color: var(--ok); }
.warning-line.warn { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, var(--bg-alt)); }
.warning-line.err { color: var(--err); background: color-mix(in srgb, var(--err) 12%, var(--bg-alt)); }

.text3d-field { display: flex; flex-direction: column; gap: .4rem; }

.downloads { display: flex; flex-direction: column; gap: .6rem; }
.downloads-2d { display: flex; gap: .6rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.2rem; border-radius: var(--radius-s); font-weight: 600; font-size: .95rem;
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background .15s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; }
.btn-secondary { background: var(--bg-alt); color: var(--ink); flex: 1; }
.btn-secondary:hover { background: var(--line); }
.btn-primary {
  background: var(--accent); color: #fff; box-shadow: var(--shadow-s);
}
.btn-primary:hover { box-shadow: var(--shadow-m); transform: translateY(-1px); }
.btn-primary .size-hint { font-weight: 500; opacity: .85; font-size: .84em; }
.btn-ghost { color: var(--ink-soft); font-size: .85rem; text-decoration: underline; align-self: flex-start; }
.btn-ghost:hover { color: var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

.privacy-badge {
  display: flex; align-items: center; gap: .5rem; font-size: .84rem; color: var(--ink-soft);
  padding-top: .3rem;
}
.privacy-badge svg { width: 16px; height: 16px; color: var(--ok); flex-shrink: 0; }
.limits-line { font-size: .78rem; color: var(--ink-soft); opacity: .85; }

/* no-js fallback */
.no-js-note {
  display: none; background: var(--bg-alt); border: 1px dashed var(--line);
  border-radius: var(--radius-m); padding: 1.2rem; font-size: .9rem; color: var(--ink-soft);
}
html.no-js .no-js-note { display: block; }
html.no-js .tool-card { display: none; }

/* ---- 5. Publicidad propia: Ballixart ------------------------------------- */
:root {
  --ballix-navy: #00147E;
  --ballix-cyan: #008ACD;
  --ballix-navy-soft: #E8EAF6;
}
.ballix-ad {
  display: flex; align-items: center; gap: 1.1rem;
  background: linear-gradient(135deg, #fff, var(--ballix-navy-soft));
  border: 1px solid color-mix(in srgb, var(--ballix-navy) 18%, var(--line));
  border-radius: var(--radius-m);
  padding: 1rem 1.3rem;
  transition: box-shadow .2s var(--ease-out), transform .2s var(--ease-out);
}
.ballix-ad:hover { box-shadow: var(--shadow-m); transform: translateY(-2px); }
.ballix-ad-logo { width: 56px; height: 56px; flex-shrink: 0; border-radius: 12px; }
.ballix-ad-eyebrow {
  display: block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ballix-cyan); margin-bottom: .2rem; font-family: "Archivo", var(--display);
}
.ballix-ad-copy h3 {
  font-family: "Archivo", var(--display); font-weight: 700; letter-spacing: .01em;
  color: var(--ballix-navy); font-size: 1.02rem; margin-bottom: .2rem;
}
.ballix-ad-copy p { font-family: "Montserrat", var(--sans); color: var(--ink-soft); font-size: .86rem; margin: 0; }
.ballix-ad-contact {
  display: flex; flex-direction: column; gap: .15rem; margin-left: auto; padding-left: 1rem;
  border-left: 1px solid color-mix(in srgb, var(--ballix-navy) 15%, transparent);
  font-family: "Montserrat", var(--sans); font-size: .78rem; font-weight: 600; color: var(--ballix-navy);
  white-space: nowrap; text-align: right; flex-shrink: 0;
}
@media (max-width: 720px) {
  .ballix-ad { flex-wrap: wrap; }
  .ballix-ad-contact { margin-left: 0; padding-left: 0; border-left: none; text-align: left; flex-direction: row; flex-wrap: wrap; gap: .6rem; width: 100%; }
}

.ballix-ad--banner { min-height: auto; margin-block: clamp(1.6rem, 4vw, 2.6rem); }
.ballix-ad--square { max-width: 640px; margin-inline: auto; margin-block: clamp(1.6rem, 4vw, 2.6rem); }
.ballix-ad--square .ballix-ad-contact { display: none; }
@media (min-width: 560px) { .ballix-ad--square .ballix-ad-contact { display: flex; } }

.ballix-ad--popup { flex-direction: column; text-align: center; padding: 1.3rem; }
.ballix-ad--popup .ballix-ad-logo { width: 64px; height: 64px; }
.ballix-ad--popup .ballix-ad-contact { margin-left: 0; padding-left: 0; border-left: none; align-items: center; text-align: center; }

.ballix-ad--corner { padding: .7rem .9rem; gap: .7rem; }
.ballix-ad--corner .ballix-ad-logo { width: 38px; height: 38px; }
.ballix-ad--corner .ballix-ad-copy h3 { font-size: .88rem; margin-bottom: 0; }
.ballix-ad--corner .ballix-ad-copy p { font-size: .76rem; }

/* huecos de anuncio (Google AdSense / genéricos) — se mantienen por si se usan en el futuro */
.ad-slot {
  border: 1.5px dashed var(--line); border-radius: var(--radius-m);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); font-size: .78rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; background: var(--bg-alt);
}
.ad-slot--leaderboard { min-height: 90px; margin-block: clamp(1.6rem, 4vw, 2.6rem); }
.ad-slot--incontent { min-height: 250px; margin-block: clamp(1.6rem, 4vw, 2.6rem); max-width: 728px; margin-inline: auto; }

/* download popup (dialog) */
.ad-popup { border: none; border-radius: var(--radius-l); padding: 0; max-width: 380px; width: calc(100% - 2rem); box-shadow: var(--shadow-l); }
.ad-popup::backdrop { background: rgba(20,19,16,.45); backdrop-filter: blur(2px); }
.ad-popup-inner { padding: 1.2rem; display: flex; flex-direction: column; gap: .8rem; }
.ad-popup-head { display: flex; align-items: center; justify-content: space-between; }
.ad-popup-head span { font-size: .8rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.ad-popup-close { font-size: 1.1rem; line-height: 1; padding: .2rem .5rem; border-radius: 6px; color: var(--ink-soft); }
.ad-popup-close:hover { background: var(--bg-alt); color: var(--ink); }
.ad-popup-continue { align-self: center; font-size: .85rem; font-weight: 600; color: var(--accent-ink); }

/* corner toast */
.ad-corner {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 50;
  width: min(280px, calc(100vw - 2rem)); border-radius: var(--radius-m);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-l);
  padding: .8rem; display: flex; flex-direction: column; gap: .5rem;
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: transform .35s var(--ease-out), opacity .35s var(--ease-out);
}
.ad-corner.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.ad-corner-head { display: flex; align-items: center; justify-content: space-between; }
.ad-corner-head span { font-size: .7rem; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.ad-corner-close { font-size: 1rem; line-height: 1; color: var(--ink-soft); padding: .1rem .4rem; border-radius: 6px; }
.ad-corner-close:hover { background: var(--bg-alt); }

/* ---- 6. Content sections ----------------------------------------------------- */
section { padding-block: clamp(2rem, 5vw, 3.6rem); }
.section-head { max-width: 640px; margin-bottom: clamp(1.4rem, 3.5vw, 2.2rem); }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-bottom: .5rem; }
.section-head p { color: var(--ink-soft); }

.steps-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem;
}
.step-num {
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700;
}
.step-card h3 { font-size: 1.05rem; }
.step-card p { color: var(--ink-soft); font-size: .92rem; }

.seo-copy { max-width: 74ch; color: var(--ink-soft); display: flex; flex-direction: column; gap: 1rem; }
.seo-copy h2 { color: var(--ink); font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-top: .6rem; }
.seo-copy strong { color: var(--ink); }

.usos-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .usos-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .usos-grid { grid-template-columns: repeat(3, 1fr); } }
.uso-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 1.3rem; display: flex; flex-direction: column; gap: .6rem;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.uso-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); }
.uso-photo {
  display: block; width: calc(100% + 2.6rem); margin: -1.3rem -1.3rem 0;
  border-radius: var(--radius-m) var(--radius-m) 0 0; overflow: hidden; aspect-ratio: 1/1;
}
.uso-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.uso-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
}
.uso-icon svg { width: 22px; height: 22px; }
.uso-card h3 { font-size: 1rem; }
.uso-card p { color: var(--ink-soft); font-size: .9rem; }

.faq-list { display: flex; flex-direction: column; gap: .7rem; max-width: 780px; }
.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: .2rem 1.1rem;
}
.faq-item summary {
  padding: 1rem 0; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev { width: 18px; height: 18px; color: var(--ink-soft); transition: transform .2s var(--ease-out); flex-shrink: 0; }
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item p { padding-bottom: 1.1rem; color: var(--ink-soft); font-size: .93rem; }

/* ---- 7. Footer ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); padding-block: 2rem; margin-top: 2rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .85rem; color: var(--ink-soft); }
.footer-links a:hover { color: var(--ink); }
.footer-note { font-size: .8rem; color: var(--ink-soft); opacity: .8; max-width: 60ch; }

/* legal pages */
.legal-page { padding-block: 3rem; max-width: 74ch; }
.legal-page h1 { font-size: 1.8rem; margin-bottom: 1.2rem; }
.legal-page h2 { font-size: 1.15rem; margin-top: 1.6rem; margin-bottom: .5rem; }
.legal-page p, .legal-page li { color: var(--ink-soft); margin-bottom: .7rem; }
.legal-page ul { list-style: disc; padding-left: 1.3rem; }

/* ---- 8. reveal-on-scroll (subtle) ----------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(14px); }
[data-reveal].is-revealed { opacity: 1; transform: none; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
