/* ─── Variables ───────────────────────────────────────────────────────────── */
:root {
  --bg:          #f1f5f9;
  --surface:     #ffffff;
  --border:      #e2e8f0;
  --text:        #0f172a;
  --text-muted:  #64748b;
  --primary:     #2563eb;
  --primary-dk:  #1d4ed8;
  --success:     #059669;
  --success-bg:  #ecfdf5;
  --warn:        #d97706;
  --warn-bg:     #fffbeb;
  --error:       #dc2626;
  --dark:        #0f172a;
  --radius:      10px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:   0 4px 12px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
}

/* ─── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}
img { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ─── Layout ──────────────────────────────────────────────────────────────── */
.container { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ─── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  max-width: 960px;
  margin: 0 auto;
  min-height: 52px;
  flex-wrap: wrap;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -0.02em;
  padding: 12px 0;
  white-space: nowrap;
}
.nav__brand:hover { text-decoration: none; color: #e2e8f0; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  flex-wrap: wrap;
  padding: 8px 0;
}

.nav__links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: #94a3b8;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .1s, color .1s;
}
.nav__links a:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.nav__links a.active { color: #fff; background: rgba(255,255,255,.12); }

.nav__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(52,211,153,.1);
  border: 1px solid rgba(52,211,153,.2);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ─── Landing Hero ────────────────────────────────────────────────────────── */
.landing-hero {
  background: var(--dark);
  color: #fff;
  padding: 56px 0 60px;
  text-align: center;
}

.landing-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.landing-hero__headline {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.landing-hero__sub {
  font-size: 1.15rem;
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.landing-hero__sub strong { color: #e2e8f0; }

/* ─── Trust Bar ───────────────────────────────────────────────────────────── */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
}

/* ─── Tool Cards (landing page) ───────────────────────────────────────────── */
.tools-section { padding: 56px 0; }

.tools-section .section-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 36px;
}

.tool-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .tool-cards { grid-template-columns: repeat(3, 1fr); }
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .15s;
}

.tool-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.tool-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.tool-card__icon--photo  { background: #eff6ff; color: #2563eb; }
.tool-card__icon--pdf    { background: #fef2f2; color: #dc2626; }
.tool-card__icon--compress { background: #f0fdf4; color: #059669; }

.tool-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.tool-card__desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.tool-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
}

.tool-card__link:hover { text-decoration: underline; }

/* ─── Why Privacy Section ─────────────────────────────────────────────────── */
.why-section {
  background: var(--dark);
  color: #fff;
  padding: 56px 0;
}

.why-section .section-title { color: #fff; margin-bottom: 12px; }
.why-sub { color: #64748b; font-size: 1rem; margin-bottom: 40px; }

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}

.why-item {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255,255,255,.03);
}

.why-item__icon { font-size: 1.5rem; margin-bottom: 12px; }
.why-item__title { font-size: 0.95rem; font-weight: 700; color: #e2e8f0; margin-bottom: 8px; }
.why-item__body  { font-size: 0.84rem; color: #64748b; line-height: 1.65; }

/* ─── Tool Page Header ────────────────────────────────────────────────────── */
.tool-header {
  background: var(--dark);
  color: #fff;
  padding: 36px 0 40px;
}

.tool-header__headline {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.tool-header__sub {
  font-size: 1rem;
  color: #94a3b8;
  margin-bottom: 20px;
  line-height: 1.6;
}

.tool-header__sub strong { color: #e2e8f0; }

/* ─── Ad Slots ────────────────────────────────────────────────────────────── */
.ad-slot {
  min-height: 90px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.ad-slot:empty { display: none; }

/* ─── Main ────────────────────────────────────────────────────────────────── */
.main { padding: 40px 0 60px; }

/* ─── Drop Zone ───────────────────────────────────────────────────────────── */
.dropzone {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
}

.dropzone:hover, .dropzone--over {
  border-color: var(--primary);
  background: #eff6ff;
  box-shadow: 0 0 0 4px rgba(37,99,235,.08);
}

.dropzone__inner { pointer-events: none; }
.dropzone__icon { color: var(--text-muted); margin: 0 auto 16px; }
.dropzone--over .dropzone__icon { color: var(--primary); }
.dropzone__primary { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.dropzone__secondary { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 14px; }
.dropzone__hint { color: var(--text-muted); font-size: 0.82rem; margin-top: 14px; }

.dropzone__privacy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--success);
  font-weight: 600;
  margin-top: 10px;
  background: var(--success-bg);
  padding: 4px 12px;
  border-radius: 999px;
}

/* ─── Compress Controls ───────────────────────────────────────────────────── */
.controls-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
}

.control-group { display: flex; flex-direction: column; gap: 6px; min-width: 140px; }

.control-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.control-group label span { color: var(--primary); }

.slider {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  width: 160px;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

.select {
  font-family: inherit;
  font-size: 0.88rem;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  outline: none;
}
.select:focus { border-color: var(--primary); }

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
label.btn, button.btn, .btn {
  display: inline-block;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  padding: 11px 22px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, box-shadow .15s;
  pointer-events: auto;
}

.btn--primary   { background: var(--primary); color: #fff; box-shadow: 0 1px 3px rgba(37,99,235,.3); }
.btn--primary:hover { background: var(--primary-dk); color: #fff; text-decoration: none; }
.btn--secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn--secondary:hover { background: var(--bg); text-decoration: none; }
.btn--ghost     { background: transparent; color: var(--text-muted); border: 1px solid transparent; }
.btn--ghost:hover { background: var(--bg); text-decoration: none; }
.btn--download  { background: var(--success); color: #fff; font-size: 0.85rem; padding: 9px 18px; }
.btn--download:hover { background: #047857; color: #fff; text-decoration: none; }

/* ─── Results ─────────────────────────────────────────────────────────────── */
.results-section { margin-bottom: 48px; }

.results-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.results-header h2 { font-size: 1.1rem; font-weight: 700; flex: 1; }
.results-actions { display: flex; gap: 8px; }

/* ─── File Cards ──────────────────────────────────────────────────────────── */
.file-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

@media (min-width: 640px) {
  .file-list { grid-template-columns: 1fr 1fr; }
}

.file-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.file-card--processing { opacity: .65; }

.file-card__thumb {
  width: 68px; height: 68px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.file-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.thumb-spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

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

.file-card__body { flex: 1; min-width: 0; }

.file-card__name {
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.file-card__sizes { font-size: 0.77rem; color: var(--text-muted); margin-bottom: 8px; }

.meta-list { display: flex; flex-direction: column; gap: 3px; }

.meta-item {
  font-size: 0.77rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 5px;
  line-height: 1.4;
}

.meta-item::before { content: '–'; flex-shrink: 0; color: var(--border); }
.meta-item--gps { color: var(--warn); font-weight: 600; }
.meta-item--gps::before { content: '⚑'; color: var(--warn); }

.no-meta { font-size: 0.77rem; color: var(--text-muted); margin-top: 6px; }

.file-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-block;
  font-size: 0.71rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.badge--gps     { background: var(--warn-bg);    color: var(--warn); }
.badge--clean   { background: var(--success-bg); color: var(--success); }
.badge--savings { background: #eff6ff;            color: var(--primary); }
.badge--none    { background: var(--bg);          color: var(--text-muted); }

/* ─── Steps ───────────────────────────────────────────────────────────────── */
.steps-section { margin-bottom: 48px; }
.section-title { font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 24px; }

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.step__num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.step__title { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.step__body  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.step__body strong { color: var(--text); }

/* ─── Info Section ────────────────────────────────────────────────────────── */
.info-section { margin-bottom: 16px; }

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 720px) { .info-grid { grid-template-columns: 1fr 280px; } }

.info-main h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 14px; }
.info-main h3 { font-size: 0.95rem; font-weight: 700; margin: 22px 0 12px; }
.info-main p  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 10px; }
.info-main p strong { color: var(--text); }

.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }

.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 999px;
}

/* Privacy card */
.privacy-card {
  background: var(--dark);
  color: #e2e8f0;
  border-radius: var(--radius);
  padding: 26px 22px;
  align-self: start;
}

.privacy-card svg { color: #60a5fa; margin-bottom: 14px; }
.privacy-card h3  { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.privacy-card ul  { display: flex; flex-direction: column; gap: 9px; }

.privacy-card li {
  font-size: 0.82rem;
  color: #94a3b8;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.privacy-card li::before { content: '✓'; position: absolute; left: 0; color: #34d399; font-weight: 700; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: #475569;
  padding: 32px 0;
  font-size: 0.84rem;
}

.footer__inner { display: flex; flex-direction: column; gap: 10px; }

.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.footer__statement { color: #64748b; line-height: 1.6; }
.footer__statement strong { color: #e2e8f0; }
.footer__nav a { color: #60a5fa; }
.footer__nav a:hover { color: #93c5fd; }
.footer__tech { font-size: 0.76rem; color: #334155; line-height: 1.6; }
