:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #111827;
  --muted: #64748b;
  --line: #dbe3ef;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --success: #0f9f6e;
  --danger: #dc2626;
  --shadow: 0 18px 50px rgba(15, 23, 42, .09);
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(37,99,235,.12), transparent 28rem),
    radial-gradient(circle at 90% 10%, rgba(16,185,129,.09), transparent 26rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans SC", Arial, sans-serif;
  min-height: 100vh;
}
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.shell { width: min(1220px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(219,227,239,.86);
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 850; letter-spacing: -.03em; }
.brand img { width: 40px; height: 40px; }
.brand-copy small { display: block; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; margin-top: 2px; }
.language-switcher { display: flex; align-items: center; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.lang-btn { border: 0; background: transparent; color: var(--muted); border-radius: 9px; padding: 8px 10px; font-weight: 750; }
.lang-btn[aria-current="true"] { background: var(--ink); color: white; }
.hero { padding: 60px 0 30px; text-align: center; }
.eyebrow { margin: 0 0 13px; color: var(--brand); font-weight: 850; font-size: 13px; letter-spacing: .11em; text-transform: uppercase; }
.hero h1 { margin: 0 auto; max-width: 850px; font-size: clamp(38px, 6vw, 68px); line-height: 1.02; letter-spacing: -.055em; }
.hero p { max-width: 720px; margin: 20px auto 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.75; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.trust-pill { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.72); color: #334155; font-size: 13px; font-weight: 720; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(15,159,110,.12); }
.app-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 22px; align-items: start; padding-bottom: 70px; }
.panel { background: var(--surface); border: 1px solid rgba(219,227,239,.9); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel-head { padding: 24px 26px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.panel-head p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.type-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 18px 20px 0; }
.type-btn { border: 1px solid var(--line); background: var(--surface-soft); color: #334155; min-height: 48px; border-radius: 13px; font-weight: 800; transition: .18s ease; }
.type-btn:hover { border-color: #94a3b8; transform: translateY(-1px); }
.type-btn.active { color: white; border-color: var(--ink); background: var(--ink); box-shadow: 0 8px 22px rgba(17,24,39,.18); }
.form-area { padding: 22px 26px 28px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field.full { grid-column: 1 / -1; }
.field label, .control-label { font-size: 13px; font-weight: 800; color: #334155; }
.field input, .field textarea, .field select, .control select, .control input[type="number"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: var(--ink);
  outline: none;
  padding: 12px 13px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 170px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus, .control select:focus, .control input:focus { border-color: #60a5fa; box-shadow: 0 0 0 4px rgba(37,99,235,.10); }
.field-note { color: var(--muted); font-size: 12px; line-height: 1.55; }
.inline-check { display: inline-flex; align-items: center; gap: 9px; color: #334155; font-size: 14px; font-weight: 700; }
.inline-check input { width: 17px; height: 17px; accent-color: var(--brand); }
.preview-panel { position: sticky; top: 94px; }
.preview-wrap { padding: 25px; }
.preview-stage {
  min-height: 390px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(45deg, #f8fafc 25%, transparent 25%),
    linear-gradient(-45deg, #f8fafc 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f8fafc 75%),
    linear-gradient(-45deg, transparent 75%, #f8fafc 75%),
    white;
  background-size: 24px 24px;
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  overflow: hidden;
  padding: 22px;
}
#qrCanvas { width: min(100%, 360px); min-height: 300px; display: grid; place-items: center; }
#qrCanvas canvas, #qrCanvas svg { max-width: 100%; height: auto; display: block; }
.status-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; margin-top: 13px; }
.status-ok { color: var(--success); font-weight: 800; }
.status-error { color: var(--danger); font-weight: 800; }
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.btn { border: 0; border-radius: 13px; min-height: 47px; padding: 11px 14px; font-weight: 850; display: inline-flex; justify-content: center; align-items: center; gap: 8px; transition: transform .16s, background .16s, opacity .16s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { background: #eef2ff; color: #3730a3; }
.btn-ghost { background: var(--surface-soft); color: #334155; border: 1px solid var(--line); }
.btn:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.controls { border-top: 1px solid var(--line); padding: 24px 25px 26px; }
.controls-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.controls-title h3 { margin: 0; font-size: 17px; }
.reset-btn { border: 0; background: transparent; color: var(--brand); font-weight: 800; padding: 5px; }
.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.control { display: grid; gap: 8px; }
.color-wrap { display: grid; grid-template-columns: 42px 1fr; gap: 9px; align-items: center; }
.color-wrap input[type="color"] { width: 42px; height: 42px; border: 1px solid var(--line); padding: 3px; border-radius: 10px; background: white; }
.range-line { display: flex; align-items: center; gap: 10px; }
.range-line input[type="range"] { width: 100%; accent-color: var(--brand); }
.range-value { min-width: 52px; text-align: right; font-weight: 800; color: #334155; font-size: 13px; }
.upload-box { grid-column: 1 / -1; border: 1px dashed #94a3b8; border-radius: 14px; padding: 14px; background: var(--surface-soft); }
.upload-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.file-input { max-width: 100%; font-size: 13px; }
.logo-actions { display: flex; gap: 8px; margin-top: 10px; }
.content-section { padding: 70px 0; }
.content-section h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.04em; }
.content-section > .shell > p { max-width: 760px; color: var(--muted); line-height: 1.8; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.feature-card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: rgba(255,255,255,.76); }
.feature-card b { display: block; font-size: 17px; margin-bottom: 8px; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 14px; }
.faq { margin-top: 28px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 15px; background: white; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 820; padding: 18px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); line-height: 1.75; padding-bottom: 18px; margin: 0; }
.site-footer { border-top: 1px solid var(--line); background: rgba(255,255,255,.7); padding: 28px 0; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 100; background: #111827; color: white; border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); transition: .2s ease; font-weight: 750; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
@media (max-width: 920px) {
  .app-grid { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .shell { width: min(100% - 20px, 1220px); }
  .site-header { position: static; }
  .header-inner { min-height: 64px; }
  .brand-copy small { display: none; }
  .language-switcher { gap: 2px; padding: 3px; }
  .lang-btn { padding: 7px 8px; font-size: 12px; }
  .hero { padding: 42px 0 24px; }
  .type-tabs { grid-template-columns: 1fr 1fr; }
  .field-grid, .control-grid { grid-template-columns: 1fr; }
  .field.full, .upload-box { grid-column: auto; }
  .form-area, .panel-head, .preview-wrap, .controls { padding-left: 18px; padding-right: 18px; }
  .preview-stage { min-height: 330px; padding: 15px; }
  .action-row { grid-template-columns: 1fr; }
}

/* Product navigation added in QRcode 1 v2. */
.header-actions { display: flex; align-items: center; gap: 12px; }
.product-nav { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.76); }
.product-link { text-decoration: none; color: var(--muted); border-radius: 8px; padding: 8px 11px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.product-link:hover { color: var(--ink); }
.product-link.active { background: #eef2ff; color: #3730a3; }
@media (max-width: 1050px) { .product-nav { display: none; } }
.color-wrap input[type="text"] {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--ink);
  outline: none;
  padding: 10px 11px;
}
.color-wrap input[type="text"]:focus { border-color: #60a5fa; box-shadow: 0 0 0 4px rgba(37,99,235,.10); }
