/* ============================================================
   RestoreFix — shared styles
   System fonts only. No external requests. Works fully offline.
   ============================================================ */
:root {
  --bg: #0e1116;
  --bg-soft: #161b22;
  --surface: #1c2230;
  --border: #2a3140;
  --text: #e6edf3;
  --text-dim: #9aa7b8;
  --accent: #3fb950;        /* green = "it works / free" */
  --accent-2: #58a6ff;
  --danger: #f85149;
  --warn: #d29922;
  --radius: 14px;
  --maxw: 920px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ---------- header / nav ---------- */
header.site {
  border-bottom: 1px solid var(--border);
  background: rgba(14, 17, 22, 0.85);
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(8px);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 700; font-size: 18px; letter-spacing: -0.3px; color: var(--text); }
.brand .dot { color: var(--accent); }
.nav-links { display: flex; gap: 22px; font-size: 14px; }
.nav-links a { color: var(--text-dim); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; text-align: center; }
.badge {
  display: inline-block; font-size: 12px; letter-spacing: 0.5px;
  color: var(--accent); border: 1px solid var(--accent);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 22px; text-transform: uppercase;
}
.hero h1 {
  font-size: 40px; line-height: 1.15; margin: 0 0 14px;
  letter-spacing: -0.8px; font-weight: 800;
}
.hero h1 .free { color: var(--accent); }
.hero p.sub { font-size: 18px; color: var(--text-dim); max-width: 620px; margin: 0 auto 30px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; padding: 13px 24px;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  transition: transform .08s ease, opacity .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #06210d; }
.btn-primary:hover { opacity: .92; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-dim); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- trust strip ---------- */
.trust { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }
.trust .item { color: var(--text-dim); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.trust .item b { color: var(--text); font-weight: 600; }

/* ---------- cards / sections ---------- */
section.block { padding: 44px 0; border-top: 1px solid var(--border); }
.section-title { font-size: 26px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.4px; }
.section-lead { color: var(--text-dim); margin: 0 0 26px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.step .n { color: var(--accent); font-weight: 700; font-size: 13px; }
.step h3 { margin: 8px 0 6px; font-size: 16px; }
.step p { margin: 0; color: var(--text-dim); font-size: 14px; }

.faq-item { border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; background: var(--bg-soft); }
.faq-item h4 { margin: 0 0 6px; font-size: 15px; }
.faq-item p { margin: 0; color: var(--text-dim); font-size: 14px; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--border); padding: 30px 0; color: var(--text-dim); font-size: 13px; }
footer.site .row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* ---------- repair tool ---------- */
.dropzone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 40px 24px; text-align: center; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  background: var(--bg-soft);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: #11251a; }
.dropzone .big { font-size: 17px; font-weight: 600; }
.dropzone .hint { color: var(--text-dim); font-size: 13px; margin-top: 6px; }

.field { margin: 18px 0; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field .opt { color: var(--text-dim); font-weight: 400; }

.filechip {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 14px; font-size: 14px;
}
.filechip .x { cursor: pointer; color: var(--danger); font-weight: 700; }

.progress { height: 8px; background: var(--surface); border-radius: 999px; overflow: hidden; margin: 18px 0; display: none; }
.progress > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s ease; }
.status { font-size: 14px; color: var(--text-dim); min-height: 20px; }

.result { display: none; margin-top: 22px; }
.result .preview-box {
  background: #000; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); max-width: 480px;
}
.result video { width: 100%; display: block; }
.paybar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-top: 18px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 20px;
}
.paybar .meta { font-size: 14px; color: var(--text-dim); }
.paybar .meta b { color: var(--text); }
.locked-note { font-size: 13px; color: var(--warn); margin-top: 10px; }
.notice {
  background: #1a2330; border: 1px solid var(--border); border-left: 3px solid var(--accent-2);
  border-radius: 8px; padding: 12px 16px; font-size: 13px; color: var(--text-dim); margin: 16px 0;
}
.notice b { color: var(--text); }

code.kbd { background: var(--surface); border: 1px solid var(--border); border-radius: 5px; padding: 1px 6px; font-size: 13px; }

ul.clean { padding-left: 20px; }
ul.clean li { margin: 6px 0; color: var(--text-dim); }
ul.clean li b { color: var(--text); }

/* ---------- article ---------- */
article.doc { max-width: 760px; margin: 0 auto; padding: 40px 20px 70px; }
article.doc h1 { font-size: 34px; letter-spacing: -0.6px; line-height: 1.2; }
article.doc h2 { font-size: 24px; margin-top: 40px; letter-spacing: -0.3px; }
article.doc h3 { font-size: 18px; margin-top: 26px; }
article.doc p, article.doc li { color: #cdd6e0; }
article.doc .meta { color: var(--text-dim); font-size: 13px; margin-bottom: 24px; }
.cta-card {
  margin: 30px 0; padding: 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); text-align: center;
}
.cta-card .price { font-size: 28px; font-weight: 800; color: var(--accent); }

@media (max-width: 720px) {
  .hero h1 { font-size: 30px; }
  .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
