h1 {
  margin-top: 32px;
  margin-bottom: 8px;
  font-size: 2rem;
}

.lede {
  color: var(--muted);
  margin-top: 0;
  margin-bottom: 28px;
  max-width: 60ch;
}

.tool {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.tool__controls { display: flex; flex-direction: column; }

label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

textarea, select, input[type="color"] {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
}

textarea { resize: vertical; margin-bottom: 16px; }

input[type="color"] { padding: 4px; height: 40px; cursor: pointer; }

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field { margin-bottom: 4px; }

.tool__output {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.qr-holder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.qr-holder canvas { max-width: 100%; height: auto; }

.downloads {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  width: 100%;
}

button {
  flex: 1;
  font: inherit;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
}

button:hover { filter: brightness(1.08); }

.hint {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 10px;
}

.faq { margin-top: 48px; max-width: 70ch; }

.faq h2 { font-size: 1.3rem; margin-top: 32px; }

details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

details summary {
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 640px) {
  .tool { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr 1fr; }
}
