:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --accent-soft: #eff6ff;
  --green: #15803d;
  --green-bg: #f0fdf4;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--text);
}
.logo span {
  color: var(--accent);
  font-weight: 400;
  margin: 0 2px;
}

/* Hero */
.hero {
  text-align: center;
  padding: 48px 0 28px;
}
.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 16px;
}
.privacy-badge {
  display: inline-block;
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}
.card h2 {
  margin-top: 0;
  font-size: 1.4rem;
}

/* Dropzone */
.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: var(--radius);
  padding: 44px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #fbfdff;
}
.dropzone:hover, .dropzone:focus {
  border-color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}
.dropzone.dragging {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone-icon { font-size: 2.4rem; margin-bottom: 8px; }
.dropzone-title { font-size: 1.1rem; font-weight: 600; margin: 0 0 4px; }
.dropzone-title code {
  background: var(--accent-soft);
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.95em;
}
.dropzone-sub { color: var(--muted); margin: 0; }

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

/* Status */
.status {
  min-height: 1.6em;
  margin: 14px 0 0;
  font-weight: 600;
}
.status.error { color: #b91c1c; }
.status.ok { color: var(--green); }

/* Options */
.options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 18px;
}
.options fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0;
}
.options legend {
  font-weight: 700;
  padding: 0 8px;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 8px 12px;
}
.checkbox-grid label, .radio {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}
.radio { margin: 6px 0; }
.hint { color: var(--muted); font-size: 0.85rem; }

/* Preview */
.preview-wrap { margin-top: 20px; }
.muted { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.85rem;
  white-space: nowrap;
}
th, td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
th {
  background: #f8fafc;
  font-weight: 700;
  position: sticky;
  top: 0;
}
tr:last-child td { border-bottom: none; }

/* Buttons */
.actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.btn {
  border: none;
  border-radius: 8px;
  padding: 12px 26px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
.btn:active { transform: scale(0.98); }
.btn.primary {
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn.ghost:hover { background: #f8fafc; }

.sample-line {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 18px 0 0;
}

/* Steps & features */
.steps { padding-left: 22px; }
.steps li { margin-bottom: 10px; }
.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { margin-bottom: 12px; padding-left: 4px; }

/* FAQ */
details {
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
}
summary {
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  background: #fbfdff;
}
summary:hover { background: var(--accent-soft); }
details p {
  padding: 0 18px 16px;
  margin: 0;
  color: #334155;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 28px 0 36px;
  margin-top: 12px;
  text-align: center;
}
.site-footer p { margin: 6px 0; }

/* Mobile */
@media (max-width: 600px) {
  .hero { padding: 32px 0 20px; }
  .hero h1 { font-size: 1.8rem; }
  .card { padding: 20px 16px; }
  .dropzone { padding: 32px 14px; }
  .btn { width: 100%; }
  .actions { flex-direction: column; }
}
