:root {
  --bg: #f7f9fc;
  --card: #fff;
  --text: #333;
  --muted: #666;
  --border: #e5e8ef;
  --focus: #4a90e2;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  background: var(--card);
  padding: 2rem;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  max-width: 860px;
  width: min(92%, 860px);
  margin: 24px auto;
  transition: box-shadow 0.25s ease;
}
.container:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.12); }

h1 {
  text-align: center;
  margin: 0 0 0.75rem;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.lead {
  text-align: center;
  color: #555;
  margin: -0.1rem 0 1.25rem;
}

/* Header / Nav */
.site-header {
  width: 100%;
  max-width: 1100px;
  margin: 16px auto 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-weight: 700; font-size: 1.15rem; color: #111; text-decoration: none; }
.nav a { margin-left: 12px; color: #333; text-decoration: none; font-weight: 600; }
.nav a:hover { text-decoration: underline; }

/* Tool grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 0.5rem;
}
.tool-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.tool-card:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(0,0,0,0.1); }
.tool-card h2 { margin: 0 0 6px; font-size: 1.05rem; }
.tool-card p { margin: 0 0 10px; color: #555; }
.tool-card .cta { font-weight: 700; color: var(--focus); }

/* FAQ + footer */
.faq { margin-top: 1.5rem; }
.faq h3 { margin-bottom: 6px; }
.site-footer { text-align: center; color: #777; margin: 12px 0 24px; }

/* Reusable textarea + controls for tool pages */
textarea {
  width: 100%;
  height: 240px;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  resize: vertical;
  font-size: 1rem;
  outline: none;
  background: #fafbfe;
  transition: border-color 0.15s, background 0.15s;
}
textarea:focus { border-color: var(--focus); background: #fff; }

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.75rem 0;
}
.controls button, .file-label {
  padding: 0.6rem 1rem;
  background: var(--focus);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.controls button:hover, .file-label:hover { filter: brightness(0.95); }

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-weight: 600;
  color: #222;
  background: #f1f4f9;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

.status { margin-top: 0.75rem; font-size: 0.92rem; color: var(--muted); min-height: 1.2em; }
