/* seecolor — dark theme with a color-spectrum accent.
   Mobile-first, system font stack, no external dependencies. */

:root {
  --bg: #0b1020;
  --bg-soft: #101736;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #e9edff;
  --muted: #a3abce;
  --faint: #7d86ad;
  --accent-a: #22d3ee;
  --accent-b: #818cf8;
  --good: #4ade80;
  --bad: #f87171;
  --warn: #fbbf24;
  --info: #7dd3fc;
  --spectrum: linear-gradient(
    90deg,
    #f43f5e,
    #f97316,
    #facc15,
    #34d399,
    #38bdf8,
    #818cf8,
    #a855f7
  );
  --gradient-btn: linear-gradient(135deg, #22d3ee, #818cf8);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 18px 44px rgba(2, 6, 23, 0.55);
  --font:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

/* The hidden attribute lives in the UA stylesheet, so any author
 * `display` (buttons, .field, panels) would silently override it. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(
      1100px 520px at 88% -12%,
      rgba(129, 140, 248, 0.16),
      transparent 60%
    ),
    radial-gradient(
      900px 480px at -12% 6%,
      rgba(34, 211, 238, 0.12),
      transparent 55%
    ),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* Color-spectrum hairline at the very top of the page. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--spectrum);
  z-index: 20;
  pointer-events: none;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px 56px;
}

a {
  color: var(--info);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 2px solid #7dd3fc;
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.grad-text {
  background: linear-gradient(92deg, #38bdf8, #818cf8, #a855f7, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------------ Header */

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 18px;
  padding: 30px 0 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  flex: 0 0 auto;
  filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.35));
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-tag {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* -------------------------------------------------------------------- Hero */

.hero {
  padding: 44px 0 30px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 5.4vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero-sub {
  margin: 0 0 22px;
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.04rem;
}

.privacy-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.08);
  color: #b7f7cd;
  font-size: 0.92rem;
  font-weight: 600;
}

    .privacy-badge .icon {
      color: var(--good);
      flex: 0 0 auto;
    }

    /* Hero tool picker: four parallel paths (iLovePDF style).
     * 2x2 on phones, one row of four on desktop. */

    .tools {
      margin: 4px 0 34px;
    }

    .tool-grid {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }

    .tool-card {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 7px;
      min-height: 100%;
      padding: 15px 16px;
      border: 1px solid var(--border);
      border-radius: var(--radius);
      background: var(--panel);
      box-shadow: var(--shadow);
      color: var(--text);
      font: inherit;
      text-align: left;
      cursor: pointer;
      transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        transform 0.15s ease;
    }

    .tool-card:hover,
    .tool-card:focus-visible {
      border-color: var(--accent-a);
      background: rgba(255, 255, 255, 0.05);
      transform: translateY(-2px);
    }

    .tool-card.is-active {
      border-color: rgba(34, 211, 238, 0.55);
      background: rgba(34, 211, 238, 0.06);
    }

    .tool-icon {
      color: var(--accent-a);
      flex: 0 0 auto;
      margin-bottom: 2px;
    }

    .tool-name {
      font-size: 0.98rem;
      font-weight: 750;
      letter-spacing: -0.01em;
    }

    .tool-desc {
      margin: 0;
      color: var(--muted);
      font-size: 0.8rem;
      line-height: 1.45;
    }

.noscript-note {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  border-radius: var(--radius-sm);
  background: rgba(251, 191, 36, 0.08);
  color: #fde68a;
}

/* -------------------------------------------------------------------- Tool */

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.tool {
  padding: 18px;
}

/* Engine status badge */

.engine-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  padding: 7px 13px;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--panel-strong);
  color: var(--muted);
  font-size: 0.85rem;
}

.engine-badge::before {
  content: "";
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.engine-badge.is-loading {
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.35);
}

.engine-badge.is-loading::before {
  animation: pulse 1.1s ease-in-out infinite;
}

.engine-badge.is-pilalow {
  color: #a7f3c4;
  border-color: rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.07);
}

.engine-badge.is-stock {
  color: #bae6fd;
  border-color: rgba(125, 211, 252, 0.35);
}

.engine-badge.is-error {
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.08);
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

/* Drop zone */

.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 190px;
  padding: 26px 18px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.drop-zone:hover,
.drop-zone:focus-visible {
  border-color: var(--accent-a);
  color: var(--text);
}

.drop-zone.is-over {
  border-color: var(--accent-a);
  background: rgba(34, 211, 238, 0.09);
  transform: translateY(-1px);
  color: var(--text);
}

.drop-icon {
  color: var(--accent-a);
  margin-bottom: 4px;
}

.drop-title {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--text);
}

.drop-sub {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Mode bar: segmented control with the same four tools as the hero */

.mode-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

.mode-tab {
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition:
color 0.15s ease,
background-color 0.15s ease;
}

.mode-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.mode-tab.is-active {
  background: var(--gradient-btn);
  color: #081022;
}

.mode-desc {
  margin: 10px 2px 0;
  color: var(--faint);
  font-size: 0.84rem;
}

/* Settings */

.settings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-label {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.quality-value {
  min-width: 34px;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--gradient-btn);
  color: #081022;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.field-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--faint);
}

.control {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-soft);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
}

.control:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.control-range {
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--accent-a);
  height: 28px;
  cursor: pointer;
}

.field-check {
  gap: 4px;
}

.field-check .field-label {
  font-weight: 600;
  font-size: 0.92rem;
}

.control-check {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  accent-color: var(--accent-b);
  cursor: pointer;
}

.field-check .field-label {
  display: inline;
}

/* Colors mode replaces the whole settings form with this muted note. */

.colors-note {
  margin: 18px 0;
  padding: 12px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.9rem;
}

.link-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--info);
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  cursor: pointer;
}

.link-btn:hover,
.link-btn:focus-visible {
  color: var(--accent-a);
}

/* Queue */

.queue {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.queue-empty {
  padding: 22px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  color: var(--faint);
  font-size: 0.92rem;
  text-align: center;
}

.queue-empty p {
  margin: 0;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel-strong);
}

.card-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
}

.thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid var(--border);
  object-fit: cover;
  /* Checkerboard so transparent PNGs read as such. */
  background:
    repeating-conic-gradient(rgba(255, 255, 255, 0.09) 0 25%, transparent 0 50%)
    0 0 / 12px 12px,
    var(--bg-soft);
}

.card-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.card-name {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--muted);
}

.status {
  padding: 1px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.status-waiting {
  color: #c7d0f5;
}
.status-working {
  color: #7dd3fc;
  border-color: rgba(125, 211, 252, 0.45);
  animation: pulse 1.1s ease-in-out infinite;
}
.status-done {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.45);
}
.status-error {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.5);
}

/* Colors mode: palette analysis completed (nothing was compressed). */
.status-analyzed {
  color: #a5f3fc;
  border-color: rgba(34, 211, 238, 0.45);
}

.fmt-chip {
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: #a5f3fc;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.err-msg {
  color: #fca5a5;
  font-size: 0.8rem;
  min-width: 0;
}

.size-arrow {
  color: var(--faint);
}

.saved-pill {
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.saved-pos {
  color: #052e12;
  background: var(--good);
}

.saved-neg {
  color: #450a0a;
  background: var(--bad);
}

.saved-zero {
  color: var(--muted);
  background: var(--panel-strong);
  border: 1px solid var(--border-strong);
}

.was-optimal {
  color: var(--faint);
  font-size: 0.78rem;
  font-style: italic;
}

/* Inline palette panel ("Colores" button) */

.palette {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.palette-title {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.84rem;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.swatch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 3px 12px 3px 3px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.swatch:hover,
.swatch:focus-visible {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.06);
}

.swatch-chip {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  flex: 0 0 auto;
}

.swatch-hex {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  font-weight: 650;
  white-space: nowrap;
}

.swatch-hex.is-copied {
  color: var(--good);
  font-weight: 800;
}

.swatch-pct {
  color: var(--faint);
  font-size: 0.78rem;
  white-space: nowrap;
}

.palette-note {
  margin: 0;
  color: var(--faint);
  font-size: 0.8rem;
}

.palette-error {
  margin: 0;
  color: #fca5a5;
  font-size: 0.8rem;
}

.palette-loading {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.codec-note {
  flex-basis: 100%;
  margin: 0;
  text-align: right;
  color: var(--faint);
  font-size: 0.7rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Summary bar */

.summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 22px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 0;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
  font-weight: 700;
}

.stat dd {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 750;
}

.stat dd.is-good {
  color: var(--good);
}
.stat dd.is-bad {
  color: var(--bad);
}

.summary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition:
    filter 0.15s ease,
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--gradient-btn);
  color: #081022;
}

.btn-primary:not(:disabled):hover {
  filter: brightness(1.12);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:not(:disabled):hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.btn-small {
  padding: 7px 13px;
  font-size: 0.84rem;
  background: var(--gradient-btn);
  color: #081022;
  border-radius: 999px;
}

.btn-small:hover {
  filter: brightness(1.12);
}

/* Secondary "Colores" button: ghost version of btn-small. */
.btn-colors {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
  border-radius: 999px;
}

.btn-colors:not(:disabled):hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.05);
}

.btn-colors.is-analyzing::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------------------------------------------------------- How it works */

.how {
  margin-top: 54px;
}

.libraries {
  margin-top: 54px;
}

/* Library transparency table: Acción / Librería / Qué hace.
 * Collapses into one card per row on narrow screens. */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.lib-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.lib-table th,
.lib-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.lib-table thead th {
  padding-top: 13px;
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.lib-table tbody tr:last-child th,
.lib-table tbody tr:last-child td {
  border-bottom: 0;
}

.lib-table tbody th {
  white-space: nowrap;
  font-weight: 700;
}

.lib-table td {
  color: var(--muted);
}

.note-box {
  margin: 16px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-left: 4px solid var(--info);
  border-radius: var(--radius-sm);
  background: rgba(125, 211, 252, 0.07);
  color: var(--muted);
  font-size: 0.9rem;
}

.note-box strong {
  color: var(--text);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.section-title::before {
  content: "";
  width: 30px;
  height: 4px;
  border-radius: 999px;
  background: var(--spectrum);
  flex: 0 0 auto;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  counter-reset: step;
}

.step {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gradient-btn);
  color: #081022;
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.step-title {
  margin: 0 0 6px;
  font-size: 1.06rem;
}

.step-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* -------------------------------------------------------------------- FAQ */

.faq {
  margin-top: 42px;
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--panel);
}

.faq-item summary {
  cursor: pointer;
  padding: 13px 16px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
  list-style-position: outside;
}

.faq-item summary:hover {
  color: var(--accent-a);
}

.faq-item[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-item p {
  margin: 0;
  padding: 12px 16px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* ---------------------------------------------------------------- Privacy */

.privacy {
  margin-top: 42px;
  padding: 22px 24px;
}

.privacy p {
  margin: 0;
  color: var(--muted);
  max-width: 60rem;
}

/* ----------------------------------------------------------------- Footer */

.site-footer {
  margin-top: 64px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--faint);
  font-size: 0.86rem;
}

/* Action bar mirroring the tool's global actions, above the credits. */

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.btn-footer {
  padding: 7px 14px;
  font-size: 0.82rem;
  border-radius: 999px;
}

.site-footer p {
  margin: 0 0 8px;
}

.footer-brand .grad-text {
  font-weight: 800;
}

/* ------------------------------------------------------------- Responsive */

@media (min-width: 700px) {
  .tool {
    padding: 24px;
  }

  .settings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
  }

  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 920px) {
  .settings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .field-check {
    grid-column: span 1;
  }
}

@media (min-width: 900px) {
  .tool-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Library table: one card per row on phones. */
@media (max-width: 699px) {
  .lib-table {
    display: block;
  }

  .lib-table thead {
    display: none;
  }

  .lib-table tbody {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .lib-table tr {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
  }

  .lib-table th,
  .lib-table td {
    display: block;
    padding: 0;
    border-bottom: 0;
  }

  .lib-table tbody th {
    font-size: 0.98rem;
  }

  .lib-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 1px;
    color: var(--faint);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
  }
}

/* ------------------------------------------------------- Reduced motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
