/* FitSize — shared styles */
:root {
  --bg: #0a0c11;
  --panel: #12161f;
  --panel-2: #171d29;
  --line: #232b3a;
  --text: #e8edf7;
  --muted: #94a1b8;
  --accent: #7c5cff;
  --accent-2: #a78bfa;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 14px;
  --maxw: 960px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -200px, #1a1533 0%, var(--bg) 60%);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 18px; color: var(--text); letter-spacing: -0.3px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #4f7cff);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #fff;
}
.nav-links { display: flex; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: 48px 0 30px; text-align: center; }
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -1px;
  font-weight: 800;
}
.hero p.lede {
  margin: 0 auto 8px;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
}
.badge-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.badge {
  font-size: 12.5px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; background: rgba(255,255,255,.02);
}
.badge strong { color: var(--ok); font-weight: 600; }

/* ---------- tool ---------- */
.tool {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin: 26px 0 10px;
  box-shadow: 0 20px 60px -30px rgba(0,0,0,.8);
}
.tool-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.tool-title { font-size: 15px; font-weight: 650; }
.tool-title span { color: var(--muted); font-weight: 400; }

.target-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.target-row label { font-size: 13px; color: var(--muted); margin-right: 2px; }
.chip {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 9px;
  padding: 7px 13px;
  font-size: 13px;
  cursor: pointer;
  transition: .15s;
  font-family: inherit;
}
.chip:hover { border-color: #3a4560; }
.chip.active { border-color: var(--accent); background: rgba(124,92,255,.16); color: #fff; }
.chip.custom { display: inline-flex; align-items: center; gap: 6px; }
.chip.custom input {
  width: 56px; background: transparent; border: 0; color: var(--text);
  font: inherit; font-size: 13px; outline: none; text-align: right;
}
.chip.custom input::-webkit-outer-spin-button,
.chip.custom input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.dropzone {
  border: 1.5px dashed #2b3446;
  border-radius: var(--radius);
  padding: 34px 20px;
  text-align: center;
  cursor: pointer;
  transition: .18s;
  background: rgba(255,255,255,.012);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: rgba(124,92,255,.07); }
.dropzone .dz-icon { font-size: 26px; opacity: .9; }
.dropzone .dz-main { margin-top: 8px; font-weight: 600; }
.dropzone .dz-sub { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.dropzone input[type=file] { display: none; }

.privacy-note {
  display: flex; align-items: center; gap: 8px;
  margin-top: 14px; font-size: 12.5px; color: var(--muted);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 3px rgba(52,211,153,.15); }

.files { margin-top: 18px; display: grid; gap: 8px; }
.file-row {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  gap: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px 12px;
}
.file-row img { width: 40px; height: 40px; object-fit: cover; border-radius: 7px; background: #0b0e14; }
.file-name { font-size: 13.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.file-meta .ok { color: var(--ok); font-weight: 600; }
.file-meta .warn { color: var(--warn); }
.file-actions { display: flex; align-items: center; gap: 8px; }

.btn {
  font-family: inherit;
  border: 0; border-radius: 9px; cursor: pointer;
  font-size: 13px; font-weight: 600;
  padding: 8px 14px;
  background: var(--accent); color: #fff;
  transition: .15s;
}
.btn:hover { filter: brightness(1.12); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: #3a4560; }
.btn.small { padding: 5px 10px; font-size: 12px; }

.tool-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.hint { font-size: 12.5px; color: var(--muted); }

/* ---------- sections ---------- */
section { padding: 44px 0; }
h2 { font-size: clamp(22px, 3vw, 29px); letter-spacing: -0.5px; margin: 0 0 8px; font-weight: 750; }
.section-sub { color: var(--muted); margin: 0 0 26px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.card h3 { margin: 0 0 8px; font-size: 15.5px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.plan {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px -25px rgba(124,92,255,.5); }
.plan-name { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.plan-price { font-size: 34px; font-weight: 800; letter-spacing: -1px; margin: 6px 0 2px; }
.plan-price small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 9px; }
.plan li { font-size: 14px; color: var(--muted); padding-left: 22px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.plan .btn { margin-top: auto; text-align: center; padding: 11px; font-size: 14px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; }
details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 18px;
}
details[open] { border-color: #2f3a52; }
summary { cursor: pointer; font-weight: 600; font-size: 14.5px; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 30px 0 50px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 13px;
}
.foot-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------- pro banner / unlock ---------- */
.pro-banner {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding: 10px 14px;
  background: rgba(251,191,36,.07);
  border: 1px solid rgba(251,191,36,.26);
  border-radius: 10px;
  font-size: 13px; color: #f2e3bd;
}
.unlock { margin-top: 12px; text-align: center; }
.linklike {
  background: none; border: 0; padding: 0;
  color: var(--muted); font: inherit; font-size: 12.5px;
  cursor: pointer; text-decoration: underline;
}
.linklike:hover { color: var(--text); }
#unlockBox { display: flex; gap: 8px; margin-top: 10px; }
#unlockBox input {
  flex: 1; min-width: 0;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px;
  color: var(--text); font: inherit; font-size: 13px;
  text-transform: uppercase;
}
#unlockBox input:focus { outline: none; border-color: var(--accent); }

/* ---------- prose (legal pages) ---------- */
.prose { max-width: 720px; margin: 0 auto; padding: 20px 0 60px; }
.prose h1 { font-size: 30px; letter-spacing: -0.7px; }
.prose h2 { font-size: 19px; margin-top: 32px; }
.prose p, .prose li { color: #c3cddf; font-size: 14.5px; }
.prose .updated { color: var(--muted); font-size: 13px; }

@media (max-width: 560px) {
  .nav-links { gap: 14px; font-size: 13px; }
  .tool { padding: 16px; }
  .file-row { grid-template-columns: 34px 1fr; }
  .file-row img { width: 34px; height: 34px; }
  .file-actions { grid-column: 1 / -1; justify-content: flex-end; }
}
