/* ZeroFee Tools family theme - QRFree */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue: #1d4ed8; --purple: #7c3aed; --ink: #1e293b; --muted: #64748b;
  --line: #e2e8f0; --bg: #f8fafc; --card: #ffffff; --ok: #16a34a;
  --warn: #d97706; --bad: #dc2626;
}
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }

/* header */
#siteHeader { background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; padding: 26px 0 0; }
.header-inner { display: flex; align-items: center; }
.brand { display: flex; gap: 14px; align-items: center; }
.hub-link { color: #fff; text-decoration: none; font-size: .85rem; opacity: .85; display: block; margin-bottom: 2px; }
.hub-link:hover { opacity: 1; text-decoration: underline; }
.brand-name { font-size: 1.7rem; line-height: 1.1; }
.brand-tag { opacity: .9; font-size: .9rem; }
.free-banner { text-align: center; font-size: .82rem; padding: 10px 16px 14px; opacity: .95; }

/* layout */
#main { padding: 30px 0 10px; }
.intro h2 { font-size: 1.5rem; margin-bottom: 6px; }
.intro { margin-bottom: 20px; }

.type-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.type-tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font-size: .92rem; cursor: pointer; color: var(--ink); }
.type-tab.active { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }

.builder-grid { display: grid; grid-template-columns: 1fr 380px; gap: 26px; align-items: start; }
@media (max-width: 900px) { .builder-grid { grid-template-columns: 1fr; } }

.type-panel { display: none; }
.type-panel.active { display: block; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 14px; }
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font-weight: 400;
}
textarea { resize: vertical; font-family: inherit; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--blue); border-color: var(--blue); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.check-row { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.check-row input { width: auto; margin: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-top: 18px; }
.card legend { font-weight: 700; padding: 0 8px; }
.options label { margin-bottom: 12px; }
.color-row { display: flex; gap: 18px; }
.color-row label { display: flex; align-items: center; gap: 8px; margin-bottom: 0; }
input[type="color"] { width: 44px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }

/* preview */
.preview-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; position: sticky; top: 18px; text-align: center; box-shadow: 0 6px 28px rgba(15,23,42,.08); }
.qr-box { display: flex; justify-content: center; align-items: center; min-height: 300px; background: #fff; border-radius: 12px; margin-bottom: 14px; }
.qr-box svg, .qr-box canvas, .qr-box img { max-width: 100%; height: auto; border-radius: 6px; }
.qr-error { color: var(--bad); font-size: .88rem; margin-bottom: 10px; }
.dl-row { display: flex; gap: 10px; justify-content: center; margin-bottom: 10px; }
.btn { border: none; border-radius: 10px; padding: 11px 22px; font-size: .95rem; font-weight: 700; cursor: pointer; }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: #eef2ff; color: var(--blue); }
.btn-ghost:hover { background: #e0e7ff; }

/* honesty + faq */
.honesty { margin: 34px 0 8px; }
.honesty h2 { margin-bottom: 10px; font-size: 1.25rem; }
.honesty p { color: #475569; }
.faq-sec { margin: 34px 0 40px; }
.faq-sec h2 { margin-bottom: 14px; font-size: 1.3rem; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { padding: 14px 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+ "; color: var(--blue); font-weight: 700; }
.faq[open] summary::before { content: "− "; }
.faq p { padding: 0 18px 16px; color: #475569; }

#siteFooter { border-top: 1px solid var(--line); padding: 24px 0 34px; color: var(--muted); font-size: .88rem; text-align: center; background: #fff; }

.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px); background: #1e293b; color: #fff; padding: 12px 20px; border-radius: 12px; font-size: .9rem; opacity: 0; pointer-events: none; transition: .25s; z-index: 50; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
