/* EviaTools — shared styles */
:root {
  --bg: #f7f8fc;
  --card: #ffffff;
  --ink: #161a26;
  --muted: #5b6478;
  --line: #e6e9f2;
  --brand: #4f46e5;
  --brand-dark: #4338ca;
  --accent: #06b6d4;
  --good: #16a34a;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(23, 28, 60, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.nav-shell {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1080px; margin: 0 auto; padding: 14px 20px;
}
.logo { font-weight: 800; font-size: 1.25rem; color: var(--ink); }
.logo span { color: var(--brand); }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }

/* Hero */
.hero {
  text-align: center; padding: 64px 20px 48px;
  background: radial-gradient(700px 320px at 50% -40px, #e0e7ff 0%, transparent 70%);
}
.hero h1 { font-size: 2.4rem; margin: 0 0 12px; letter-spacing: -0.02em; }
.hero h1 span { color: var(--brand); }
.hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }
.badge {
  display: inline-block; background: #eef2ff; color: var(--brand-dark);
  font-weight: 700; font-size: 0.8rem; padding: 6px 14px; border-radius: 999px;
  margin-bottom: 16px; letter-spacing: 0.04em; text-transform: uppercase;
}

/* Tool cards */
.tool-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px; padding: 12px 0 64px;
}
.tool-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex; flex-direction: column;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(23,28,60,.12); }
.tool-card .icon { font-size: 2.2rem; margin-bottom: 10px; }
.tool-card h2, .tool-card h3 { margin: 0 0 8px; font-size: 1.25rem; }
.tool-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.btn {
  display: inline-block; background: var(--brand); color: #fff !important;
  font-weight: 700; padding: 12px 22px; border-radius: 10px; border: 0;
  cursor: pointer; font-size: 1rem; text-align: center;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-ghost {
  background: #eef2ff; color: var(--brand-dark) !important;
}
.btn-ghost:hover { background: #e0e7ff; }

/* Tool workspace */
.workspace {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px; margin: 8px 0 40px;
}
.dropzone {
  border: 2px dashed #c7cdfc; border-radius: var(--radius);
  padding: 48px 20px; text-align: center; cursor: pointer;
  background: #fafbff; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand); background: #f1f4ff; }
.dropzone .big { font-size: 2.4rem; }
.dropzone p { color: var(--muted); margin: 10px 0 0; }
.progress { height: 10px; background: #eef0f7; border-radius: 999px; overflow: hidden; margin: 18px 0 6px; display: none; }
.progress > div { height: 100%; width: 0%; background: linear-gradient(90deg, var(--brand), var(--accent)); transition: width .2s; }
.status { color: var(--muted); font-size: 0.92rem; min-height: 1.6em; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
@media (max-width: 720px) { .result-grid { grid-template-columns: 1fr; } }
.result-box {
  border: 1px solid var(--line); border-radius: 10px; padding: 12px;
  background: #fafbff; text-align: center;
}
.result-box h4 { margin: 6px 0 10px; font-size: 0.95rem; color: var(--muted); }
.result-box img { max-width: 100%; max-height: 380px; border-radius: 8px; }
.checker { background-image: linear-gradient(45deg, #e5e7eb 25%, transparent 25%), linear-gradient(-45deg, #e5e7eb 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e5e7eb 75%), linear-gradient(-45deg, transparent 75%, #e5e7eb 75%); background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0; }
textarea.tool-input {
  width: 100%; min-height: 170px; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; font-size: 1rem; font-family: inherit; resize: vertical;
}
textarea.tool-input:focus { outline: 2px solid #c7cdfc; border-color: var(--brand); }
.tool-actions { display: flex; gap: 12px; margin: 16px 0; flex-wrap: wrap; }
.stat-row { display: flex; gap: 18px; color: var(--muted); font-size: 0.9rem; margin-top: 8px; flex-wrap: wrap; }
.stat-row b { color: var(--ink); }

/* Content sections */
.section { padding: 8px 0 56px; }
.section h2 { font-size: 1.6rem; margin: 0 0 10px; }
.section p, .section li { color: var(--muted); }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.step .n { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; align-items: center; justify-content: center; margin-bottom: 8px; }
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; font-size: 0.93rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--card); margin-top: 20px; }
.foot-shell { max-width: 1080px; margin: 0 auto; padding: 28px 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 0.9rem; }
.foot-shell nav { display: flex; gap: 18px; }
