/* Pixloc design system — "épuré premium"
   One accent, warm neutrals, tight type, quiet interactions. */

:root {
  --bg: #fafaf9;
  --bg-inset: #f4f4f3;
  --surface: #ffffff;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --faint: #a1a1aa;
  --border: #e5e4e1;
  --border-strong: #d6d5d1;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef2ff;
  --accent-border: #c7d2fe;
  --ok: #16a34a;
  --ok-soft: #f0fdf4;
  --err: #dc2626;
  --err-soft: #fef2f2;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(24, 24, 27, .04);
  --shadow-md: 0 1px 2px rgba(24, 24, 27, .04), 0 8px 24px -8px rgba(24, 24, 27, .08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101012;
    --bg-inset: #17171a;
    --surface: #1b1b1f;
    --ink: #f4f4f5;
    --ink-2: #d4d4d8;
    --muted: #9d9da6;
    --faint: #6b6b74;
    --border: #29292e;
    --border-strong: #3a3a41;
    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-soft: rgba(99, 102, 241, .12);
    --accent-border: rgba(129, 140, 248, .35);
    --ok: #4ade80;
    --ok-soft: rgba(34, 197, 94, .1);
    --err: #f87171;
    --err-soft: rgba(239, 68, 68, .1);
    --shadow-sm: none;
    --shadow-md: 0 12px 32px -12px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15.5px; line-height: 1.7;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--accent-soft); }

/* ---------- header ---------- */
header.site {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 650; font-size: 16px; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo svg { flex: none; display: block; }
.lang-nav { display: flex; gap: 6px; }
.lang-switch {
  font-size: 12.5px; font-weight: 550; color: var(--muted);
  border: 1px solid var(--border); border-radius: 99px;
  padding: 4px 11px; transition: color .15s, border-color .15s;
}
.lang-switch:hover { color: var(--ink); border-color: var(--border-strong); text-decoration: none; }

/* ---------- hero ---------- */
main { padding: 56px 0 72px; }
.hero { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  border-radius: 99px; padding: 4px 13px; margin-bottom: 20px;
}
.eyebrow svg { display: block; }
h1 {
  font-size: clamp(30px, 5vw, 44px); line-height: 1.12;
  letter-spacing: -0.025em; font-weight: 650; margin: 0 0 14px;
  text-wrap: balance;
}
.tagline {
  color: var(--muted); margin: 0 0 36px; font-size: 16.5px;
  max-width: 640px; text-wrap: pretty;
}

/* ---------- tool card ---------- */
.tool {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
  box-shadow: var(--shadow-md);
}
#drop-zone {
  border: 1.5px dashed var(--border-strong); border-radius: var(--r-md);
  padding: 44px 24px; text-align: center; cursor: pointer; outline: none;
  transition: border-color .15s, background .15s;
}
#drop-zone:hover, #drop-zone:focus-visible, #drop-zone.drag {
  border-color: var(--accent); background: var(--accent-soft);
}
#drop-zone:focus-visible { box-shadow: 0 0 0 3px var(--accent-soft); }
/* animated photo-stack illustration */
.dz-scene { position: relative; width: 132px; height: 68px; margin: 0 auto 16px; }
.dz-ring {
  position: absolute; left: 50%; top: 50%; width: 74px; height: 74px;
  margin: -37px 0 0 -37px; border-radius: 99px;
  border: 1.5px solid var(--accent-border); opacity: 0;
  animation: dz-ring 3.2s ease-out infinite;
}
.dz-card { position: absolute; top: 10px; left: 50%; }
.dz-card .c-bg { fill: var(--surface); stroke: var(--border-strong); stroke-width: 1.5; }
.dz-card .c-sun { fill: var(--accent); }
.dz-card .c-mnt { fill: var(--accent-border); }
.dz-c2 .c-bg { fill: var(--accent-soft); stroke: var(--accent-border); }
.dz-c2 .c-mnt { fill: var(--accent); opacity: .55; }
.dz-c1 { --tf: translateX(-128%) rotate(-13deg) scale(.8); z-index: 1;
         transform: var(--tf); animation: dz-float 3.6s ease-in-out .5s infinite; }
.dz-c2 { --tf: translateX(-50%) translateY(-3px); z-index: 3;
         transform: var(--tf); animation: dz-float 3.2s ease-in-out infinite; }
.dz-c3 { --tf: translateX(28%) rotate(13deg) scale(.8); z-index: 2;
         transform: var(--tf); animation: dz-float 3.6s ease-in-out 1s infinite; }
@keyframes dz-float {
  0%, 100% { transform: var(--tf) translateY(0); }
  50% { transform: var(--tf) translateY(-5px); }
}
@keyframes dz-ring {
  0% { transform: scale(.55); opacity: .5; }
  70%, 100% { transform: scale(1.22); opacity: 0; }
}
#drop-zone.drag .dz-card, #drop-zone:hover .dz-card { animation-duration: 1.8s; }
@media (prefers-reduced-motion: reduce) {
  .dz-card, .dz-ring { animation: none !important; }
  .dz-ring { display: none; }
}
.dz-main { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.dz-sub { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.fmt-chip {
  font-size: 11px; font-weight: 600; letter-spacing: .05em;
  color: var(--muted); background: var(--bg-inset);
  border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px;
}
.dz-note { margin-top: 10px; font-size: 12.5px; color: var(--faint); }

/* controls */
.controls {
  display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center;
  margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border);
}
.ctl-label { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.seg { display: inline-flex; background: var(--bg-inset); border: 1px solid var(--border); border-radius: 10px; padding: 3px; }
.seg label {
  position: relative; padding: 5px 15px; border-radius: 7px;
  font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: color .12s;
}
.seg input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.seg label:has(input:checked) {
  color: var(--ink); background: var(--surface);
  box-shadow: 0 1px 2px rgba(24,24,27,.08), 0 0 0 1px var(--border);
}
.seg label:hover { color: var(--ink); }
#quality-wrap input[type="range"] { accent-color: var(--accent); width: 120px; }
#quality-val { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; min-width: 38px; font-size: 13px; }
.controls input[type="number"] {
  font: inherit; font-size: 13.5px; width: 96px;
  padding: 6px 10px; border-radius: var(--r-sm);
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  transition: border-color .15s;
}
.controls input[type="number"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* file list */
#file-list:not(:empty) { margin-top: 18px; border-top: 1px solid var(--border); }
.file-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 2px; border-bottom: 1px solid var(--border);
}
.file-thumb {
  width: 42px; height: 42px; flex: none; border-radius: var(--r-sm);
  border: 1px solid var(--border); object-fit: cover;
  background: conic-gradient(var(--bg-inset) 0 25%, transparent 0 50%, var(--bg-inset) 0 75%, transparent 0) 0 0/14px 14px;
}
.file-thumb:not([src]) { visibility: hidden; }
.file-info { min-width: 0; flex: 1; }
.file-name {
  display: block; font-weight: 550; font-size: 14px; letter-spacing: -0.005em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-meta { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.file-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.file-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.file-status::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--faint); }
.st-busy::before { background: var(--accent); animation: pulse 1s ease-in-out infinite; }
.st-ok { color: var(--ok); } .st-ok::before { background: var(--ok); }
.st-err { color: var(--err); } .st-err::before { background: var(--err); }
@keyframes pulse { 50% { opacity: .3; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: #fff;
  border: none; border-radius: 10px; padding: 9px 18px;
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: -0.005em;
  cursor: pointer; text-decoration: none;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: translateY(1px); }
@media (prefers-color-scheme: dark) { .btn { color: #101012; } }
.btn-small { padding: 6px 13px; font-size: 13px; border-radius: var(--r-sm); }
.btn-ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-inset); border-color: var(--border-strong); color: var(--ink); }
#batch-actions { margin-top: 16px; display: flex; gap: 10px; }

/* trust row under the tool */
.trust {
  display: flex; flex-wrap: wrap; gap: 10px 32px;
  margin-top: 22px; padding: 0 4px;
}
.trust div { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); }
.trust svg { color: var(--accent); flex: none; }

/* ---------- ads ---------- */
.ad-slot {
  margin: 44px 0; min-height: 96px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--bg-inset);
  display: flex; align-items: center; justify-content: center;
  color: var(--faint); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
}

/* ---------- article ---------- */
article.seo { max-width: 720px; }
article.seo h2 {
  font-size: 21px; font-weight: 650; letter-spacing: -0.02em;
  margin: 48px 0 14px;
}
article.seo h3 { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; margin: 26px 0 6px; }
article.seo p, article.seo li { color: var(--ink-2); font-size: 15px; }
article.seo strong { color: var(--ink); }

ol.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
ol.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 14px 44px; margin: 0;
}
ol.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 1px;
  width: 26px; height: 26px; border-radius: 99px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 650;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-border);
}

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  font-weight: 550; font-size: 15px; color: var(--ink);
  padding: 15px 34px 15px 2px;
  transition: color .12s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint);
  transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -1px; }
.faq summary:hover { color: var(--accent); }
.faq details p { margin: 0 0 16px; padding-left: 2px; }

/* related pills */
.related { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.related a {
  font-size: 13px; font-weight: 550; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 99px; padding: 6px 15px;
  transition: border-color .15s, color .15s;
}
.related a:hover { border-color: var(--accent-border); color: var(--accent); text-decoration: none; }

/* home tool grid */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tool-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 15px 17px; text-decoration: none; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.tool-card:hover { border-color: var(--accent-border); box-shadow: var(--shadow-md); text-decoration: none; }
.tool-card b { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 2px; }
.tool-card b svg { color: var(--faint); }
.tool-card span { color: var(--muted); font-size: 12.5px; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--border); padding: 28px 0 40px; }
footer.site .wrap {
  display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: space-between;
  color: var(--muted); font-size: 13px;
}
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--ink); }
.fnav { display: flex; flex-wrap: wrap; gap: 4px 20px; }

@media (max-width: 560px) {
  main { padding: 36px 0 56px; }
  .tool { padding: 16px; }
  #drop-zone { padding: 32px 14px; }
  .controls { gap: 12px 18px; }
}
