/* QRForge app styles */
:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #4f46e5;
  --accent-2: #7c3aed;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.06);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.5;
}
a {
  color: var(--accent);
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
header.site {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
header.site .wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.logo span {
  color: var(--accent);
}
nav.types {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-left: auto;
}
nav.types a {
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  border: 1px solid transparent;
}
nav.types a:hover {
  background: #eef2ff;
  color: var(--accent);
}
nav.types a.active {
  background: var(--accent);
  color: #fff;
}
main {
  padding: 28px 0 64px;
}
.hero {
  text-align: center;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 32px;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.hero p {
  color: var(--muted);
  margin: 0;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 880px) {
  .grid {
    grid-template-columns: 1fr;
  }
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}
.panel h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 12px;
}
.field {
  margin-bottom: 12px;
}
.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 4px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  background: #fff;
  color: var(--ink);
}
.field textarea {
  min-height: 80px;
  resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.row3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.preview {
  text-align: center;
}
.preview .qr {
  display: inline-block;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: 100%;
}
.preview .qr svg {
  width: 280px;
  height: auto;
  max-width: 100%;
  display: block;
}
.err {
  color: #b91c1c;
  font-size: 13px;
  margin-top: 8px;
  min-height: 1em;
}
.btns {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 14px;
}
button:hover {
  border-color: var(--accent);
}
button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
button.primary:hover {
  background: var(--accent-2);
  border-color: var(--accent-2);
}
details.acc {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
details.acc summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  list-style: none;
}
details.acc summary::after {
  content: '▾';
  float: right;
  color: var(--muted);
}
details.acc[open] summary::after {
  transform: rotate(180deg);
}
.swatch {
  display: flex;
  align-items: center;
  gap: 8px;
}
.swatch input[type='color'] {
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}
.batch textarea {
  min-height: 120px;
}
.note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
footer.site {
  border-top: 1px solid var(--line);
  background: var(--panel);
  padding: 20px 0;
  color: var(--muted);
  font-size: 13px;
}
.ad-slot {
  text-align: center;
  margin: 24px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fcfcfd;
}
.content-info {
  max-width: 760px;
  margin: 40px auto 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.content-info h2 {
  color: var(--ink);
  font-size: 20px;
  margin: 24px 0 8px;
}
.content-info p {
  margin: 0 0 12px;
}
.faq h3 {
  font-size: 16px;
  color: var(--ink);
  margin: 16px 0 4px;
}
