/* WhatsApp Photo Date Fixer — styles. Clean, modern, responsive. */

:root {
  --bg: #f7f9f8;
  --surface: #ffffff;
  --ink: #1a2b22;
  --muted: #5b6f64;
  --line: #e3eae6;
  --accent: #16a34a;
  --accent-dark: #15803d;
  --accent-soft: #e8f7ee;
  --warn: #b45309;
  --warn-soft: #fef3e2;
  --danger: #dc2626;
  --danger-soft: #fdecec;
  --radius: 14px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 18px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; text-decoration: none; color: var(--ink); }
.brand svg { width: 30px; height: 30px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent); color: #fff;
  border: 0; border-radius: 10px;
  padding: 12px 22px; font-size: 16px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background .15s ease;
}
.btn:hover { background: var(--accent-dark); }
.btn:disabled { background: #b9c8bf; cursor: not-allowed; }
.btn-ghost {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: #f0f4f2; }
.btn-small { padding: 8px 14px; font-size: 14px; border-radius: 8px; }
.link-btn {
  background: none; border: 0; padding: 0;
  color: var(--accent-dark); font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: underline;
}

/* ---------- hero ---------- */
.hero { text-align: center; padding: 72px 20px 40px; }
.hero-badge {
  display: inline-block; font-size: 13px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent-dark);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.5px; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-trust { margin-top: 22px; font-size: 14px; color: var(--muted); }
.hero-trust span { margin: 0 8px; white-space: nowrap; }

/* ---------- privacy strip ---------- */
.privacy-strip {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: var(--maxw); margin: 8px auto 0; padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  font-size: 15px;
}
.privacy-strip svg { width: 22px; height: 22px; flex: none; color: var(--accent-dark); }
.privacy-strip strong { font-weight: 700; }

/* ---------- tool ---------- */
.tool-section { padding: 36px 0 8px; }
.tool-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  box-shadow: 0 6px 24px rgba(20, 40, 30, .05);
}
.tool-card h2 { margin: 0 0 6px; font-size: 22px; }
.tool-card .sub { color: var(--muted); margin: 0 0 18px; font-size: 15px; }

.dropzone {
  border: 2px dashed #b9c8bf; border-radius: var(--radius);
  padding: 44px 20px; text-align: center; cursor: pointer;
  background: #fbfdfc; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--accent-soft); }
.dropzone:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.dropzone .dz-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.dropzone .dz-hint { color: var(--muted); font-size: 14px; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 8px; align-items: center; }
.status-line { font-size: 14px; color: var(--muted); margin: 6px 0 12px; min-height: 22px; }

.file-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.empty-state {
  text-align: center; color: var(--muted); font-size: 14px;
  padding: 26px; border: 1px dashed var(--line); border-radius: 10px;
}
.hidden { display: none !important; }

.file-row {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px;
  background: #fff;
}
.thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; background: #eef2f0; }
.thumb-none {
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 12px; font-weight: 700;
}
.file-meta { flex: 1; min-width: 0; }
.file-name { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-sub { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.row-dates { font-size: 13px; display: flex; gap: 14px; flex-wrap: wrap; }
.row-dates em { color: var(--muted); font-style: normal; font-size: 12px; }
.row-error { font-size: 13px; color: var(--danger); }
.row-note { font-size: 13px; color: var(--warn); }
.file-status { flex: none; }

.badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  border-radius: 999px; padding: 4px 10px; white-space: nowrap;
}
.st-analyzing { background: #eef2f0; color: var(--muted); }
.st-ready { background: var(--accent-soft); color: var(--accent-dark); }
.st-skip { background: #eef2f0; color: var(--muted); }
.st-fixed { background: var(--accent); color: #fff; }
.st-error { background: var(--danger-soft); color: var(--danger); }
.st-unsupported { background: var(--warn-soft); color: var(--warn); }

/* ---------- how / faq ---------- */
.section { padding: 56px 0 8px; }
.section h2 { text-align: center; font-size: 28px; margin: 0 0 8px; }
.section .section-sub { text-align: center; color: var(--muted); margin: 0 0 30px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.step .n {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px;
}
.step h3 { margin: 0 0 8px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px 18px; margin-bottom: 10px;
}
.faq summary { font-weight: 700; cursor: pointer; font-size: 16px; }
.faq summary::marker { color: var(--accent-dark); }
.faq p { margin: 10px 0 0; color: var(--muted); font-size: 15px; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 64px; border-top: 1px solid var(--line);
  padding: 28px 0 36px; color: var(--muted); font-size: 13px;
}
.site-footer .wrap { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* ---------- paywall overlay ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 25, 20, .55);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.pay-card {
  background: #fff; border-radius: 16px; max-width: 440px; width: 100%;
  padding: 32px; text-align: center; position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.pay-card h3 { margin: 0 0 10px; font-size: 22px; }
.pay-card p { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.pay-card .price { font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 16px; }
.pay-actions { display: flex; flex-direction: column; gap: 10px; }
.pay-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--muted);
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .nav a.nav-link { display: none; }
  .hero { padding-top: 48px; }
  .tool-card { padding: 18px; }
  .file-row { flex-wrap: wrap; }
  .file-status { width: 100%; }
}
