/* ToolCaptain.com — shared styles */
:root {
  --bg: #0f172a;
  --bg2: #1e293b;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --accent: #0ea5e9;
  --accent2: #0369a1;
  --ok: #16a34a;
  --err: #dc2626;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 6, 23, .35);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: #f1f5f9;
  color: var(--ink);
  line-height: 1.6;
}

/* header */
.site-header {
  background: var(--bg);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.site-header .wrap {
  max-width: 1100px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo {
  color: #fff; font-size: 1.35rem; font-weight: 800; text-decoration: none;
  letter-spacing: -.5px;
}
.logo span { color: var(--accent); }
.logo .mark { margin-right: 6px; }
.site-header nav a {
  color: #cbd5e1; text-decoration: none; margin-left: 18px; font-size: .95rem;
}
.site-header nav a:hover { color: #fff; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* hero */
.hero {
  background: linear-gradient(135deg, var(--bg) 0%, #16233f 60%, var(--accent2) 100%);
  color: #fff; text-align: center; padding: 72px 20px 84px;
}
.hero h1 { font-size: 2.6rem; letter-spacing: -1px; margin-bottom: 14px; }
.hero h1 span { color: #7dd3fc; }
.hero p { max-width: 640px; margin: 0 auto 10px; color: #cbd5e1; font-size: 1.1rem; }
.hero .badge {
  display: inline-block; margin-top: 18px; padding: 7px 16px; border-radius: 999px;
  background: rgba(125, 211, 252, .12); border: 1px solid rgba(125, 211, 252, .35);
  color: #7dd3fc; font-size: .88rem; font-weight: 600;
}

/* tool grid */
.section-title { text-align: center; margin: 56px 0 8px; font-size: 1.9rem; letter-spacing: -.5px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 34px; }
.tool-grid {
  display: grid; gap: 22px; padding-bottom: 70px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.tool-card {
  background: var(--card); border-radius: var(--radius); padding: 26px 24px;
  box-shadow: 0 2px 10px rgba(2,6,23,.06); border: 1px solid #e2e8f0;
  text-decoration: none; color: inherit; display: block;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tool-card .icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.6rem; background: #e0f2fe; margin-bottom: 14px;
}
.tool-card h3 { font-size: 1.15rem; margin-bottom: 6px; }
.tool-card p { color: var(--muted); font-size: .93rem; }
.tool-card .go { color: var(--accent2); font-weight: 700; font-size: .9rem; margin-top: 12px; display: inline-block; }

/* tool page layout */
.tool-main { max-width: 880px; margin: 0 auto; padding: 44px 20px 80px; }
.tool-main h1 { font-size: 2.1rem; letter-spacing: -.8px; margin-bottom: 8px; }
.tool-main .lede { color: var(--muted); margin-bottom: 30px; font-size: 1.05rem; }
.panel {
  background: var(--card); border-radius: var(--radius); border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(2,6,23,.05); padding: 28px;
}
.dropzone {
  border: 2px dashed #94a3b8; border-radius: var(--radius); padding: 44px 20px;
  text-align: center; color: var(--muted); cursor: pointer; transition: .15s;
  background: #f8fafc;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: #f0f9ff; color: var(--accent2); }
.dropzone strong { display: block; font-size: 1.1rem; margin-bottom: 6px; color: var(--ink); }

.row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 18px; align-items: center; }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; font-weight: 600; color: #334155; }
input[type=number], input[type=text], textarea, select {
  padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: .95rem;
  font-family: inherit; background: #fff; min-width: 0;
}
textarea { width: 100%; min-height: 130px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent); border-color: var(--accent); }

.btn {
  display: inline-block; border: 0; cursor: pointer; border-radius: 10px;
  background: var(--accent); color: #fff; font-weight: 700; font-size: .95rem;
  padding: 11px 22px; text-decoration: none; transition: .15s;
}
.btn:hover { background: var(--accent2); }
.btn:disabled { background: #94a3b8; cursor: not-allowed; }
.btn.secondary { background: #e2e8f0; color: var(--ink); }
.btn.secondary:hover { background: #cbd5e1; }
.btn.ghost { background: transparent; color: var(--accent2); border: 1px solid var(--accent); padding: 9px 18px; }
.btn.ghost:hover { background: #f0f9ff; }

.filelist { margin-top: 18px; width: 100%; border-collapse: collapse; font-size: .92rem; }
.filelist th, .filelist td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #e2e8f0; }
.filelist th { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; }
.filelist .ok { color: var(--ok); font-weight: 600; }
.filelist .err { color: var(--err); font-weight: 600; }
.mono { font-family: Consolas, "Courier New", monospace; font-size: .85rem; }

.result-box {
  margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-size: .92rem;
  background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; display: none;
}
.result-box.show { display: block; }
.result-box.error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.privacy-note {
  margin-top: 26px; display: flex; gap: 12px; align-items: flex-start;
  background: #eff6ff; border: 1px solid #bfdbfe; border-radius: var(--radius); padding: 16px 18px;
  font-size: .92rem; color: #1e40af;
}
.privacy-note .pi { font-size: 1.4rem; line-height: 1.2; }

/* tool article (SEO text) */
.article { margin-top: 46px; color: #334155; font-size: .98rem; }
.article h2 { color: var(--ink); margin: 28px 0 10px; font-size: 1.4rem; }
.article p { margin-bottom: 12px; }
.article ul { margin: 0 0 14px 22px; }
.article li { margin-bottom: 6px; }

/* footer */
.site-footer { background: var(--bg); color: #94a3b8; padding: 34px 20px; margin-top: 40px; font-size: .9rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.site-footer a { color: #cbd5e1; text-decoration: none; margin-left: 16px; }
.site-footer a:hover { color: #fff; }

/* misc widgets */
.strength { height: 8px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin-top: 8px; }
.strength > div { height: 100%; width: 0; transition: width .2s, background .2s; }
#qr-out { margin-top: 20px; display: grid; place-items: center; min-height: 220px; background: #fff; border: 1px solid #e2e8f0; border-radius: var(--radius); padding: 16px; }
#qr-out img, #qr-out canvas { border-radius: 6px; }
.checkrow { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; }
.checkrow label { display: flex; gap: 7px; align-items: center; font-size: .92rem; font-weight: 500; color: #334155; cursor: pointer; }
input[type=range] { accent-color: var(--accent); }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.9rem; }
  .site-header nav a { margin-left: 10px; font-size: .85rem; }
  .tool-main h1 { font-size: 1.6rem; }
}
