/* =============================================================
   QuickPixel — Free Online Image Tools
   Single stylesheet, organized by section. Mobile-first.
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-alt: #f1f3f9;
  --border: #e2e5ee;
  --text: #171a2b;
  --text-soft: #565b73;
  --text-faint: #8790a8;
  --accent: #3457ee;
  --accent-dark: #2340c4;
  --accent-soft: #eaefff;
  --success: #16a34a;
  --success-soft: #e9f9ef;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --warn: #b45309;
  --warn-soft: #fff4e0;
  --ad-bg: #f3f1ea;
  --ad-border: #d8d2bd;
  --ad-text: #8a7f5f;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(23, 26, 43, 0.06);
  --shadow: 0 8px 24px rgba(23, 26, 43, 0.08);
  --shadow-lg: 0 20px 48px rgba(23, 26, 43, 0.14);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: 1180px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -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 { text-wrap: balance; line-height: 1.15; letter-spacing: -0.01em; font-weight: 700; }
ul, ol { padding-left: 1.2em; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); color: var(--accent-dark); }
: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(--text); color: #fff;
  z-index: 9999; border-radius: 8px; font-weight: 600;
  transition: top .2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1.25rem; }
.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;
}
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section--tight { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--accent);
}
.lede { color: var(--text-soft); font-size: 1.05rem; max-width: 62ch; }
.center { text-align: center; margin-inline: auto; }
.stack { display: flex; flex-direction: column; gap: 1rem; }
.hidden { display: none !important; }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(1.5rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.15rem; }
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head h2 { margin-top: .5rem; }

/* =============================================================
   5. Components
   ============================================================= */

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out), background .15s var(--ease-out), opacity .15s;
  white-space: nowrap;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover:not(:disabled) { background: var(--accent-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn--secondary:hover { border-color: var(--accent); color: var(--accent-dark); }
.btn--ghost { background: transparent; color: var(--accent-dark); padding-inline: .6rem; }
.btn--ghost:hover { background: var(--accent-soft); }
.btn--block { width: 100%; }
.btn--sm { padding: .5rem .9rem; font-size: .85rem; }
.btn--danger { background: var(--danger-soft); color: var(--danger); }

/* --- Cards --- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

/* --- Header / nav --- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 248, 251, 0.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--bg); } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), #7c5cff);
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 1.6rem; list-style: none; padding: 0; }
.main-nav a { font-weight: 600; font-size: .92rem; color: var(--text-soft); transition: color .15s; }
.main-nav a:hover { color: var(--accent-dark); }
.header-cta { display: none; }
.nav-toggle {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface);
}
.mobile-nav {
  position: fixed; inset: 0; z-index: 50; background: var(--bg);
  padding: 1.25rem; display: none; overflow-y: auto;
}
.mobile-nav.is-open { display: block; }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.mobile-nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav a { display: block; padding: .85rem .25rem; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
.mobile-nav__group-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); margin: 1.25rem 0 .4rem; font-weight: 700; }

@media (min-width: 960px) {
  .main-nav { display: block; }
  .header-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* --- Hero --- */
.hero { padding-block: clamp(1.1rem, 5vw, 3.5rem) 0; text-align: center; }
.hero__title { max-width: 22ch; margin-inline: auto; }
.hero__lede { margin-top: .6rem; font-size: .95rem; }
.hero__badges { display: none; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 1.4rem; }
.pill {
  display: inline-flex; align-items: center; gap: .4em; padding: .45rem .85rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: .82rem; font-weight: 600; color: var(--text-soft);
}
.pill svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--success); }

/* --- Tool App shell --- */
.tool-app {
  margin-top: 1.1rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
.tool-app__inner { padding: clamp(1rem, 3vw, 1.75rem); }

.dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius); background: var(--surface-alt);
  padding: clamp(1.1rem, 5vw, 3rem) 1.1rem; text-align: center; cursor: pointer;
  transition: border-color .15s var(--ease-out), background .15s var(--ease-out);
}
.dropzone:hover, .dropzone:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.is-dragover { border-color: var(--accent); background: var(--accent-soft); }
.dropzone__icon {
  width: 56px; height: 56px; margin: 0 auto .9rem; border-radius: 16px; background: var(--accent-soft);
  display: grid; place-items: center; color: var(--accent);
}
.dropzone__title { font-weight: 700; font-size: 1.05rem; }
.dropzone__title .link { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.dropzone__hint { color: var(--text-faint); font-size: .85rem; margin-top: .4rem; }
.dropzone noscript p { color: var(--danger); font-weight: 600; margin-top: .75rem; }

.tool-workspace { margin-top: 1.5rem; }

/* file thumbnails row */
.file-strip { display: flex; gap: .7rem; overflow-x: auto; padding-bottom: .4rem; margin-bottom: 1.25rem; }
.file-thumb {
  position: relative; flex: 0 0 auto; width: 74px; height: 74px; border-radius: var(--radius-sm);
  overflow: hidden; border: 2px solid transparent; background: var(--surface-alt); cursor: pointer;
}
.file-thumb img { width: 100%; height: 100%; object-fit: cover; }
.file-thumb.is-active { border-color: var(--accent); }
.file-thumb__remove {
  position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(23,26,43,.7); color: #fff; display: grid; place-items: center; font-size: .8rem; line-height: 1;
}
.file-strip__add {
  flex: 0 0 auto; width: 74px; height: 74px; border-radius: var(--radius-sm); border: 2px dashed var(--border);
  display: grid; place-items: center; color: var(--text-faint); font-size: 1.4rem;
}

/* tool tabs */
.tool-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.tool-tab {
  padding: .55rem 1rem; border-radius: 999px; font-weight: 600; font-size: .88rem;
  background: var(--surface-alt); color: var(--text-soft); border: 1px solid transparent;
}
.tool-tab.is-active { background: var(--accent); color: #fff; }
.tool-tab:hover:not(.is-active) { border-color: var(--accent); color: var(--accent-dark); }

/* tool panels */
.tool-panel__section { display: none; }
.tool-panel__section.is-active { display: block; animation: fadeIn .25s var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--text-soft); }
.field input[type="text"], .field input[type="number"], .field select {
  padding: .65rem .8rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface);
  font-size: .95rem;
}
.field input:focus-visible, .field select:focus-visible { border-color: var(--accent); }
.field__note { font-size: .78rem; color: var(--text-faint); }

.check-row { display: flex; align-items: center; gap: .55rem; font-size: .9rem; font-weight: 600; color: var(--text-soft); }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }

.slider-row { display: flex; align-items: center; gap: .9rem; }
.slider-row input[type="range"] { flex: 1; accent-color: var(--accent); }
.slider-row output { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 3.4ch; text-align: right; }

.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.chip {
  padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--border); font-size: .82rem; font-weight: 600;
  background: var(--surface); color: var(--text-soft);
}
.chip.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }

.unit-toggle { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.unit-toggle button { padding: .5rem 1rem; font-size: .85rem; font-weight: 600; color: var(--text-soft); }
.unit-toggle button.is-active { background: var(--accent); color: #fff; }

.tool-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.25rem; }

.progress-track { height: 8px; border-radius: 999px; background: var(--surface-alt); overflow: hidden; margin-top: 1rem; }
.progress-fill { height: 100%; width: 0%; background: var(--accent); transition: width .2s var(--ease-out); }
.tool-status { font-size: .85rem; color: var(--text-soft); margin-top: .5rem; min-height: 1.2em; }
.tool-status.is-error { color: var(--danger); font-weight: 600; }

/* rotate/flip buttons */
.transform-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.transform-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: .4rem; padding: .9rem 1.1rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); font-size: .8rem; font-weight: 600;
  color: var(--text-soft); min-width: 88px;
}
.transform-btn:hover { border-color: var(--accent); color: var(--accent-dark); }
.transform-btn svg { width: 22px; height: 22px; }

/* single active preview (rotate/flip/convert/compress single-image view) */
.active-preview { display: flex; flex-direction: column; align-items: center; gap: .75rem; margin: 1.25rem 0; }
.active-preview img { max-height: 340px; width: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0/16px 16px; }

/* crop editor */
.crop-editor { display: grid; gap: 1.25rem; }
.crop-stage {
  position: relative; margin-inline: auto; max-width: 100%; touch-action: none; user-select: none;
  background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0/16px 16px; border-radius: var(--radius-sm); overflow: hidden;
  border: 1px solid var(--border);
}
.crop-stage img { display: block; max-width: 100%; pointer-events: none; }
.crop-box {
  position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 999px rgba(23,26,43,.55); cursor: move;
}
.crop-handle {
  position: absolute; width: 16px; height: 16px; background: #fff; border: 2px solid var(--accent); border-radius: 50%;
  transform: translate(-50%, -50%);
}
.crop-handle--nw { top: 0; left: 0; cursor: nwse-resize; }
.crop-handle--ne { top: 0; left: 100%; cursor: nesw-resize; }
.crop-handle--sw { top: 100%; left: 0; cursor: nesw-resize; }
.crop-handle--se { top: 100%; left: 100%; cursor: nwse-resize; }

/* results grid */
.results { margin-top: 1.75rem; }
.results__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.results__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.result-card { padding: 1rem; }
.result-card__images { display: flex; gap: .6rem; margin-bottom: .8rem; }
.result-card__img-wrap { flex: 1; min-width: 0; }
.result-card__img-wrap img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0/12px 12px;
}
.result-card__label { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-faint); font-weight: 700; margin-bottom: .3rem; }
.result-card__name { font-size: .85rem; font-weight: 700; margin-bottom: .3rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-card__meta { display: flex; align-items: center; gap: .5rem; font-size: .82rem; color: var(--text-soft); flex-wrap: wrap; }
.badge-reduction { background: var(--success-soft); color: var(--success); font-weight: 700; padding: .15rem .5rem; border-radius: 999px; font-size: .78rem; }
.badge-reduction.is-negative { background: var(--warn-soft); color: var(--warn); }
.result-card__actions { margin-top: .8rem; }

/* pdf result */
.pdf-result { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.1rem; }
.pdf-result__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--danger-soft); color: #c0392b; display: grid; place-items: center; flex-shrink: 0; }

/* privacy badge */
.privacy-badge {
  display: flex; align-items: flex-start; gap: .65rem; margin-top: 1.5rem; padding: .9rem 1.1rem;
  background: var(--success-soft); border: 1px solid #c9ecd6; border-radius: var(--radius-sm); font-size: .88rem; color: #14532d;
}
.privacy-badge svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: .1rem; }
.privacy-badge strong { display: block; margin-bottom: .15rem; }
.limits-note { font-size: .8rem; color: var(--text-faint); margin-top: .6rem; }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: .7rem; max-width: 52rem; }
.faq-item { padding: 0; overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.1rem 1.25rem; font-weight: 700; display: flex;
  justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); flex-shrink: 0; transition: transform .2s var(--ease-out); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item__body { padding: 0 1.25rem 1.1rem; color: var(--text-soft); }

/* --- how it works --- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.step { padding: 1.5rem; position: relative; }
.step__num {
  width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dark);
  display: grid; place-items: center; font-weight: 800; margin-bottom: .9rem;
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--text-soft); font-size: .92rem; }

/* --- why us --- */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.1rem; }
.benefit { padding: 1.25rem; }
.benefit__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: .75rem; }
.benefit h3 { font-size: 1rem; margin-bottom: .3rem; }
.benefit p { font-size: .88rem; color: var(--text-soft); }

/* --- more tools --- */
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.tool-card-link { padding: 1.15rem; display: flex; align-items: flex-start; gap: .8rem; transition: transform .15s var(--ease-out), box-shadow .15s var(--ease-out); }
.tool-card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tool-card-link__icon { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.tool-card-link h3 { font-size: .95rem; margin-bottom: .2rem; }
.tool-card-link p { font-size: .82rem; color: var(--text-soft); }

/* --- SEO text block --- */
.prose { max-width: 68ch; color: var(--text-soft); }
.prose h2 { color: var(--text); margin-top: 0; }
.prose p { margin-bottom: 1rem; }
.prose ul { margin-bottom: 1rem; color: var(--text-soft); }

/* --- content + sidebar layout (for sidebar ad) --- */
.content-with-rail { display: grid; gap: 2.5rem; }
.content-rail__aside { display: none; }

@media (min-width: 960px) {
  .content-with-rail { grid-template-columns: 1fr 300px; align-items: start; }
  .content-rail__aside { display: block; position: sticky; top: 90px; }
}

/* =============================================================
   6. Ad slots
   ============================================================= */
.ad-slot {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--ad-bg); border: 1px dashed var(--ad-border); border-radius: var(--radius-sm);
  color: var(--ad-text); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
}
.ad-slot__wrap { padding-block: 1.25rem; }
.ad-slot--banner { min-height: 90px; }
.ad-slot--incontent { min-height: 250px; max-width: 336px; margin-inline: auto; }
.ad-slot--rect { min-height: 250px; }
.ad-slot--popup { min-height: 250px; width: 100%; }
.ad-slot--corner { min-height: 60px; width: 100%; }

.ad-corner {
  position: fixed; right: 14px; bottom: 14px; z-index: 30; width: 180px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow);
  padding: .6rem; transition: transform .25s var(--ease-out), opacity .25s;
}
.ad-corner.is-hidden { transform: translateY(20px); opacity: 0; pointer-events: none; }
.ad-corner__close {
  position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--text); color: #fff; display: grid; place-items: center; font-size: .75rem; box-shadow: var(--shadow-sm);
}

dialog.ad-popup {
  border: none; border-radius: var(--radius); padding: 0; width: min(92vw, 380px); box-shadow: var(--shadow-lg);
  position: fixed; margin: auto; inset: 0;
}
dialog.ad-popup::backdrop { background: rgba(23, 26, 43, 0.55); }
.ad-popup__inner { position: relative; padding: 1.5rem 1.25rem 1.25rem; }
.ad-popup__close {
  position: absolute; top: .6rem; right: .6rem; width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-alt); display: grid; place-items: center; font-size: 1rem; font-weight: 700; z-index: 2;
}
.ad-popup__title { font-size: .95rem; font-weight: 700; margin-bottom: .9rem; padding-right: 2rem; }

.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--surface); border-top: 1px solid var(--border); box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.25rem; transform: translateY(110%); transition: transform .35s var(--ease-out);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__inner {
  max-width: var(--container); margin-inline: auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; justify-content: space-between;
}
.cookie-banner__text { flex: 1 1 320px; font-size: .88rem; color: var(--text-soft); }
.cookie-banner__text a { color: var(--accent-dark); font-weight: 600; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: .6rem; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; } }

/* =============================================================
   7. Footer
   ============================================================= */
.site-footer { border-top: 1px solid var(--border); padding-block: 2.5rem; background: var(--surface); margin-top: 3rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 2rem; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); margin-bottom: .9rem; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { font-size: .9rem; color: var(--text-soft); }
.footer-col a:hover { color: var(--accent-dark); }
.footer-brand p { color: var(--text-soft); font-size: .88rem; margin-top: .6rem; max-width: 32ch; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: .75rem; font-size: .82rem; color: var(--text-faint);
}

/* =============================================================
   8. Legal pages
   ============================================================= */
.legal-page { padding-block: 3rem; max-width: 72ch; }
.legal-page h1 { margin-bottom: .5rem; }
.legal-page .updated { color: var(--text-faint); font-size: .85rem; margin-bottom: 2rem; }
.legal-page h2 { margin-top: 2rem; margin-bottom: .75rem; font-size: 1.2rem; }
.legal-page p, .legal-page li { color: var(--text-soft); margin-bottom: .85rem; }
.legal-page ul { margin-bottom: 1rem; }

/* =============================================================
   9. Responsive breakpoints
   ============================================================= */
@media (min-width: 540px) {
  .transform-row { gap: .8rem; }
  .hero { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
  .hero__lede { margin-top: 1rem; font-size: 1.1rem; }
  .hero__badges { display: flex; margin-top: 1.4rem; }
  .tool-app { margin-top: 2.2rem; }
  .dropzone { padding: clamp(1.75rem, 5vw, 3rem) 1.25rem; }
}
@media (min-width: 720px) {
  .field-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1280px) {
  .container { padding-inline: 2rem; }
}

/* =============================================================
   10. Reduced motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .progress-fill { transition: none; }
}
