/* ═══════════════════════════════════════════════════════════
   HEICCONVERT — DESIGN SYSTEM
   Nordic minimalism · Premium · Calm · Trustworthy
   ═══════════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────────── */
:root {
  /* Core palette */
  --color-bg:           #f8f6f3;
  --color-bg-alt:       #f0ede8;
  --color-surface:      #ffffff;
  --color-surface-raised: #ffffff;
  --color-border:       #e8e3db;
  --color-border-mid:   #d5cec4;

  /* Text */
  --color-text:         #18160f;
  --color-text-mid:     #57524b;
  --color-text-muted:   #928b81;

  /* Accent — Nordic blue */
  --color-accent:       #3d7fa8;
  --color-accent-hover: #2e6b92;
  --color-accent-deep:  #1e4f6e;
  --color-accent-light: #eaf2f8;
  --color-accent-ring:  rgba(61, 127, 168, 0.22);

  /* Status */
  --color-success:      #3d8a62;
  --color-success-bg:   #eaf4ef;
  --color-error:        #b84e44;
  --color-error-bg:     #fdf0ef;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Helvetica, Arial, sans-serif;

  --text-xs:   0.6875rem;   /* 11px */
  --text-sm:   0.8125rem;   /* 13px */
  --text-base: 0.9375rem;   /* 15px */
  --text-md:   1rem;        /* 16px */
  --text-lg:   1.125rem;    /* 18px */
  --text-xl:   1.375rem;    /* 22px */
  --text-2xl:  1.75rem;     /* 28px */
  --text-3xl:  2.25rem;     /* 36px */
  --text-4xl:  2.875rem;    /* 46px */

  /* Spacing */
  --s1:  0.25rem;
  --s2:  0.5rem;
  --s3:  0.75rem;
  --s4:  1rem;
  --s5:  1.25rem;
  --s6:  1.5rem;
  --s8:  2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --s20: 5rem;
  --s24: 6rem;

  /* Radii */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   18px;
  --r-xl:   26px;
  --r-2xl:  36px;
  --r-full: 9999px;

  /* Shadows — very soft, layered */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05), 0 3px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06), 0 6px 20px rgba(0,0,0,0.05);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.07), 0 12px 40px rgba(0,0,0,0.07);
  --shadow-accent: 0 4px 20px rgba(61, 127, 168, 0.22);

  /* Transitions */
  --ease:       cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in:    cubic-bezier(0.55, 0, 1, 0.45);
  --t-fast:     140ms;
  --t-normal:   240ms;
  --t-slow:     400ms;

  /* Layout */
  --container-max: 860px;
  --pad: clamp(1.25rem, 6vw, 2.5rem);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
ul, ol   { list-style: none; }
button   { font-family: inherit; cursor: pointer; }

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
a:hover { color: var(--color-accent-hover); }
a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Utilities ──────────────────────────────────────────── */
.sr-only, .visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100%; left: var(--s4);
  background: var(--color-accent); color: #fff;
  padding: var(--s2) var(--s5); border-radius: var(--r-sm);
  font-size: var(--text-sm); font-weight: 500; z-index: 1000;
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--s4); }

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--color-text);
}

h1 { font-size: clamp(var(--text-2xl), 5.5vw, var(--text-4xl)); }
h2 { font-size: clamp(var(--text-xl), 3vw, var(--text-2xl)); margin-bottom: var(--s6); }
h3 { font-size: var(--text-md); font-weight: 600; margin-bottom: var(--s2); }

p { color: var(--color-text-mid); }
p + p { margin-top: var(--s4); }
strong { color: var(--color-text); font-weight: 600; }

/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 246, 243, 0.88);
  backdrop-filter: blur(16px) saturate(1.5);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border-bottom: 1px solid rgba(232, 227, 219, 0.7);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  height: 52px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  text-decoration: none;
}
.logo-icon { flex-shrink: 0; }
.logo-text {
  font-size: var(--text-md);
  font-weight: 650;
  color: var(--color-text);
  letter-spacing: -0.03em;
}
.logo:hover .logo-text { color: var(--color-accent); }

/* PNG-logo */
.logo--img { gap: 0; }
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity var(--t-fast) var(--ease);
}
.logo--img:hover .logo-img { opacity: 0.8; }
.logo-img--footer {
  height: 34px;
  opacity: 0.75;
}

/* Header logo (liten, vänster) */
.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo-img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity var(--t-fast) var(--ease);
}
.header-logo:hover .header-logo-img { opacity: 0.7; }

/* H1 i header — SEO-rubrik, visuellt subtil */
.header-tagline {
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--color-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: left;
  line-height: 1;
  /* Nollställ h1-default-marginaler */
  margin: 0;
}
.header-tagline a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease);
}
.header-tagline a:hover { color: var(--color-text-mid); }

@media (max-width: 560px) {
  .header-tagline { display: none; }
}

.site-nav { display: flex; gap: var(--s6); }
.site-nav--full { justify-content: flex-end; width: 100%; }
.site-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.005em;
}
.site-nav a:hover { color: var(--color-text-mid); }

/* Hero logo — stor, centrerad, dominerar */
.hero-logo {
  display: inline-block;
  margin-bottom: var(--s8);
  text-decoration: none;
}
.hero-logo-img {
  width: auto;
  height: clamp(80px, 18vw, 148px);
  object-fit: contain;
  display: block;
  margin-inline: auto;
  transition: opacity var(--t-fast) var(--ease);
}
.hero-logo:hover .hero-logo-img { opacity: 0.8; }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.hero {
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 50% -10%,
    rgba(61, 127, 168, 0.07) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.hero-text { max-width: 540px; }

.hero h1 {
  margin-bottom: var(--s4);
  background: linear-gradient(160deg, var(--color-text) 40%, var(--color-text-mid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  font-weight: 400;
  margin-bottom: var(--s8);
  letter-spacing: -0.01em;
}

/* Trust pills */
.trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s2) var(--s3);
}
.trust-pills li {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-full);
  padding: 5px var(--s3);
  box-shadow: var(--shadow-xs);
}

/* ══════════════════════════════════════════════════════════
   CONVERTER SECTION
══════════════════════════════════════════════════════════ */
.converter-section { padding-bottom: var(--s16); }

/* ── Drop Zone ── */
.drop-zone {
  position: relative;
  background: var(--color-surface);
  border: 1.5px dashed var(--color-border-mid);
  border-radius: var(--r-2xl);
  padding: clamp(2.5rem, 8vw, 4.5rem) var(--s8);
  text-align: center;
  cursor: pointer;
  transition:
    border-color var(--t-normal) var(--ease),
    background   var(--t-normal) var(--ease),
    box-shadow   var(--t-normal) var(--ease),
    transform    var(--t-normal) var(--ease);
  box-shadow: var(--shadow-sm);
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Inner glow pattern — subtle grid dots */
.drop-zone::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(
    circle, var(--color-border) 1px, transparent 1px
  );
  background-size: 28px 28px;
  opacity: 0.4;
  pointer-events: none;
  transition: opacity var(--t-normal) var(--ease);
}

.drop-zone:hover,
.drop-zone:focus {
  border-color: var(--color-accent);
  border-style: solid;
  background: var(--color-accent-light);
  box-shadow: 0 0 0 4px var(--color-accent-ring), var(--shadow-md);
  transform: translateY(-1px);
  outline: none;
}
.drop-zone:hover::before,
.drop-zone.drag-active::before { opacity: 0.18; }

.drop-zone.drag-active {
  border-color: var(--color-accent);
  border-style: solid;
  background: var(--color-accent-light);
  box-shadow: 0 0 0 5px var(--color-accent-ring), var(--shadow-lg);
  transform: translateY(-2px);
}

.drop-zone-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s3);
  pointer-events: none;
  position: relative;
  z-index: 1;
  transition: opacity var(--t-normal) var(--ease);
}
#select-files-btn { pointer-events: all; }

/* Upload icon */
.drop-icon {
  width: 64px;
  height: 64px;
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s2);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}
.drop-zone:hover .drop-icon,
.drop-zone.drag-active .drop-icon {
  transform: translateY(-5px) scale(1.04);
  box-shadow: var(--shadow-md), 0 0 0 3px var(--color-accent-ring);
}

.drop-primary {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.drop-secondary-inline {
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text-muted);
  margin-left: var(--s2);
}
.drop-hint {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--s1);
}

.link-btn {
  background: none; border: none; padding: 0; font: inherit;
  color: var(--color-accent); font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
  transition: text-decoration-color var(--t-fast);
}
.link-btn:hover { text-decoration-color: var(--color-accent); }

/* Drag-over overlay */
.drop-zone-drag-over {
  position: absolute; inset: 0; border-radius: inherit;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--s3);
  background: var(--color-accent-light);
  pointer-events: none; opacity: 0; z-index: 2;
  transition: opacity var(--t-normal) var(--ease);
}
.drop-zone-drag-over p {
  font-size: var(--text-xl);
  font-weight: 650;
  color: var(--color-accent);
  letter-spacing: -0.03em;
}
.drop-zone.drag-active .drop-zone-drag-over  { opacity: 1; }
.drop-zone.drag-active .drop-zone-inner       { opacity: 0; }

/* ── Quality Row ── */
.quality-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  margin-top: var(--s4);
  padding: var(--s4) var(--s5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}

/* Format toggle */
.format-toggle {
  display: flex;
  gap: 2px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--r-sm);
  padding: 2px;
  flex-shrink: 0;
}
.format-btn {
  padding: 4px 14px;
  border-radius: calc(var(--r-sm) - 2px);
  border: none;
  background: transparent;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
  cursor: pointer;
}
.format-btn--active {
  background: var(--color-surface);
  color: var(--color-accent);
  box-shadow: var(--shadow-xs);
}
.format-btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* Quality inner (hidden when PNG) */
.quality-inner {
  display: flex;
  align-items: center;
  gap: var(--s3) var(--s5);
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
  transition: opacity var(--t-normal) var(--ease);
}
.quality-inner.hidden-quality {
  opacity: 0.3;
  pointer-events: none;
}

.quality-label {
  font-size: var(--text-sm); font-weight: 500;
  color: var(--color-text-mid); white-space: nowrap;
}
.quality-value { font-weight: 650; color: var(--color-accent); min-width: 2.2ch; }

.quality-slider {
  flex: 1; min-width: 120px; height: 4px;
  border-radius: var(--r-full);
  -webkit-appearance: none; appearance: none;
  background: linear-gradient(
    to right, var(--color-accent) 0%, var(--color-accent) 84%,
    var(--color-border) 84%
  );
  cursor: pointer; outline: none;
}
.quality-slider:focus-visible {
  box-shadow: 0 0 0 3px var(--color-accent-ring);
}
.quality-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.quality-slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  box-shadow: var(--shadow-md), 0 0 0 3px var(--color-accent-ring);
}
.quality-slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-sm); cursor: pointer;
}

.quality-hint {
  font-size: var(--text-xs); color: var(--color-text-muted); width: 100%;
}

/* ── Progress ── */
.progress-area {
  margin-top: var(--s5);
  padding: var(--s5) var(--s6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--s3);
}
.progress-label { font-size: var(--text-sm); font-weight: 500; color: var(--color-text-mid); }
.progress-count { font-size: var(--text-xs); color: var(--color-text-muted); }

.progress-bar-track {
  height: 5px;
  background: var(--color-border);
  border-radius: var(--r-full);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent) 0%, #75b8d8 100%);
  border-radius: var(--r-full);
  width: 0%;
  transition: width var(--t-normal) var(--ease);
}

/* ── File List ── */
.file-list {
  margin-top: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.file-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: var(--s4);
  padding: var(--s3) var(--s4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-xs);
  transition:
    border-color var(--t-fast) var(--ease),
    box-shadow   var(--t-fast) var(--ease),
    background   var(--t-fast) var(--ease);
  animation: slideIn 0.22s var(--ease) both;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.file-item.done {
  border-color: #c8dfd2;
  background: #fafdfb;
}
.file-item.error {
  border-color: #e5c0bb;
  background: #fdfaf9;
}

.file-thumb {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  object-fit: cover;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}
.file-thumb-placeholder {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-xs); font-weight: 600;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

.file-info { min-width: 0; }
.file-name {
  font-size: var(--text-sm); font-weight: 500; color: var(--color-text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.file-size { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }
.file-status { font-size: var(--text-xs); margin-top: 4px; }
.file-status.converting { color: var(--color-accent); }
.file-status.done       { color: var(--color-success); font-weight: 500; }
.file-status.error      { color: var(--color-error); }

.file-actions { display: flex; align-items: center; gap: var(--s2); }

.file-download-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px var(--s3);
  border-radius: var(--r-sm);
  font-size: var(--text-xs); font-weight: 500;
  background: var(--color-accent); color: #fff; border: none;
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.file-download-btn:hover {
  background: var(--color-accent-hover);
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

.spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.65s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Batch Actions ── */
.batch-actions {
  display: flex; align-items: center; gap: var(--s3);
  margin-top: var(--s6); flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: 11px var(--s6);
  border-radius: var(--r-md);
  font-size: var(--text-sm); font-weight: 500;
  border: 1.5px solid transparent;
  transition:
    background     var(--t-fast) var(--ease),
    border-color   var(--t-fast) var(--ease),
    transform      var(--t-fast) var(--ease),
    box-shadow     var(--t-fast) var(--ease);
  white-space: nowrap; letter-spacing: -0.01em;
}
.btn:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.btn:active        { transform: translateY(1px); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm), 0 0 0 0 var(--color-accent-ring);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  box-shadow: var(--shadow-accent);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border-color: var(--color-border);
}
.btn-ghost:hover {
  background: var(--color-bg-alt);
  color: var(--color-text-mid);
  text-decoration: none;
}

/* ── Privacy Badge ── */
.privacy-badge {
  display: flex; align-items: flex-start; gap: var(--s3);
  margin-top: var(--s6);
  padding: var(--s4) var(--s5);
  background: var(--color-accent-light);
  border: 1px solid rgba(61, 127, 168, 0.18);
  border-radius: var(--r-lg);
  font-size: var(--text-sm);
  color: var(--color-text-mid);
  line-height: 1.6;
}
.privacy-badge svg { margin-top: 1px; flex-shrink: 0; }

/* ══════════════════════════════════════════════════════════
   AD SLOTS
══════════════════════════════════════════════════════════ */
.ad-slot {
  display: flex; justify-content: center; align-items: center;
}
/* Leaderboard 728×90 — ovanför drop-zonen */
.ad-slot--leaderboard-top {
  margin-bottom: var(--s5);
  min-height: 90px;
}
.ad-inner {
  width: 100%; max-width: 728px;
  display: flex; justify-content: center; align-items: center;
}
.ad-placeholder-label {
  font-size: var(--text-xs);
  color: var(--color-border-mid);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 500;
  display: block;
  padding: var(--s5) var(--s8);
  border: 1px dashed var(--color-border);
  border-radius: var(--r-sm);
  width: 100%;
  text-align: center;
}

/* Privacy note inside drop zone */
.drop-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: var(--text-base);
  color: var(--color-text-mid);
  margin-top: var(--s5);
  font-weight: 500;
  line-height: 1.6;
  text-align: left;
}
.drop-privacy svg { flex-shrink: 0; margin-top: 3px; }
.drop-privacy strong {
  display: block;
  color: var(--color-text);
  font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   PRIVACY / SECURITY SECTION
══════════════════════════════════════════════════════════ */
.section-privacy {
  padding: var(--s12) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}

/* Top: shield icon + heading + lead text */
.privacy-hero {
  display: flex;
  align-items: flex-start;
  gap: var(--s6);
  margin-bottom: var(--s8);
}
.privacy-shield {
  flex-shrink: 0;
  width: 64px; height: 64px;
  background: var(--color-accent-light);
  border: 1px solid rgba(61,127,168,0.2);
  border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center;
  margin-top: 4px;
}
.privacy-hero-text h2 {
  margin-bottom: var(--s3);
}
.privacy-lead {
  font-size: var(--text-base);
  color: var(--color-text-mid);
  line-height: 1.75;
  max-width: 620px;
}

/* The highlighted "works differently" block */
.privacy-highlight {
  background: var(--color-accent-light);
  border: 1px solid rgba(61,127,168,0.22);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--r-md);
  padding: var(--s5) var(--s6);
  margin-bottom: var(--s10);
}
.privacy-highlight p {
  font-size: var(--text-base);
  color: var(--color-text-mid);
  line-height: 1.75;
}
.privacy-highlight strong {
  color: var(--color-accent-deep);
}

/* Four cards */
.privacy-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
}
@media (max-width: 780px) {
  .privacy-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .privacy-cards { grid-template-columns: 1fr; }
  .privacy-hero { flex-direction: column; gap: var(--s4); }
}

.privacy-card {
  padding: var(--s6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  transition: transform var(--t-normal) var(--ease), box-shadow var(--t-normal) var(--ease);
}
.privacy-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.privacy-card-icon {
  width: 44px; height: 44px;
  background: var(--color-accent-light);
  border: 1px solid rgba(61,127,168,0.15);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s4);
}
.privacy-card h3 {
  font-size: var(--text-base);
  letter-spacing: -0.02em;
  margin-bottom: var(--s2);
}
.privacy-card p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-mid);
}

/* ══════════════════════════════════════════════════════════
   CONTENT SECTIONS
══════════════════════════════════════════════════════════ */
.section-content {
  padding: var(--s12) 0;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
}
.content-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s8) var(--s10);
  align-items: start;
}
@media (max-width: 560px) {
  .content-grid { grid-template-columns: 1fr; }
}


.content-block h2 {
  font-size: var(--text-xl);
  margin-bottom: var(--s3);
}
.content-block p { font-size: var(--text-sm); line-height: 1.7; }
.content-block p + p { margin-top: var(--s3); }

.content-list {
  margin-top: var(--s4);
  display: flex; flex-direction: column; gap: var(--s2);
}
.content-list li {
  font-size: var(--text-sm);
  color: var(--color-text-mid);
  padding-left: var(--s5);
  position: relative;
  line-height: 1.6;
}
.content-list li::before {
  content: '';
  position: absolute; left: 0; top: 7px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* ══════════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════════ */
.section-faq {
  padding: var(--s12) 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
}
.section-faq h2 { text-align: center; margin-bottom: var(--s10); }

.faq-list {
  max-width: 640px;
  margin-inline: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  gap: var(--s4);
  padding: var(--s5) var(--s6);
  background: none; border: none; text-align: left;
  font-size: var(--text-sm); font-weight: 500;
  color: var(--color-text);
  transition: background var(--t-fast) var(--ease);
}
.faq-question:hover { background: var(--color-bg); }
.faq-question:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }

.faq-chevron {
  flex-shrink: 0; color: var(--color-text-muted);
  transition: transform var(--t-normal) var(--ease);
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  padding: 0 var(--s6) var(--s5);
  font-size: var(--text-sm); color: var(--color-text-mid); line-height: 1.75;
  animation: fadeDown 0.18s var(--ease);
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: var(--s12) 0 var(--s10);
}
.footer-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: var(--s6); text-align: center;
}
.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 480px;
  text-align: center;
  line-height: 1.7;
}

.footer-nav { display: flex; gap: var(--s6); flex-wrap: wrap; justify-content: center; }
.footer-nav a {
  font-size: var(--text-sm); color: var(--color-text-muted);
  transition: color var(--t-fast) var(--ease);
}
.footer-nav a:hover { color: var(--color-text-mid); }

/* Dissolve branding — centered, logo above tagline */
.footer-dissolve {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s1);
}
.footer-dissolve-link {
  display: inline-flex;
  align-items: center;
  transition: opacity var(--t-fast) var(--ease);
}
.footer-dissolve-link:hover { opacity: 0.65; }
.footer-dissolve-img {
  height: 28px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-dissolve-tagline {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
  margin: 0;
}
.footer-dissolve-copy {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin: 0;
}
.footer-dissolve-copy a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-dissolve-copy a:hover { color: var(--color-text-mid); }

.footer-legal {
  font-size: var(--text-xs); color: var(--color-text-muted);
  line-height: 1.8; max-width: 480px; text-align: center;
}
.footer-legal a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-legal a:hover { color: var(--color-text-mid); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .site-nav { display: none; }

  .drop-zone {
    padding: var(--s12) var(--s5);
    border-radius: var(--r-xl);
  }

  .file-item {
    grid-template-columns: 44px 1fr;
  }
  .file-item .file-actions {
    grid-column: 1 / -1;
    padding-top: var(--s2);
    border-top: 1px solid var(--color-border);
    margin-top: var(--s1);
  }
  .file-thumb, .file-thumb-placeholder { width: 44px; height: 44px; }

  .batch-actions { flex-direction: column; align-items: stretch; }
  .batch-actions .btn { justify-content: center; }

  .quality-hint { display: none; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Print ── */
@media print {
  .site-header, .ad-slot, .batch-actions, .drop-zone, .site-footer { display: none; }
}
