/* ==========================================================================
   Styles for /tools/ pages (QR generator etc.). Self-contained, brand colors.
   Loaded alongside /css/styles.css and /css/site-nav.css.
   ========================================================================== */
.tool-head { max-width: 720px; }
.tool-head .eyebrow { color: #1B4FD8; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.tool-head h1 { font-family: 'Sora', system-ui, sans-serif; color: #0D1426; font-weight: 700; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin-top: 10px; }
.tool-head p { color: #3D4A6B; margin-top: 12px; line-height: 1.7; }

.tool-privacy {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 8px;
  background: #EEF1F8; border: 1px solid #DDE2EF; border-radius: 9999px;
  padding: 7px 14px; font-size: 13px; color: #3D4A6B; font-weight: 500;
}
.tool-privacy svg { flex-shrink: 0; color: #16A34A; }

/* Layout: form + live preview */
.tool-grid { display: grid; gap: 28px; margin-top: 36px; align-items: start; }
@media (min-width: 900px) { .tool-grid { grid-template-columns: 1fr 360px; gap: 40px; } }

.tool-card { background: #fff; border: 1px solid #DDE2EF; border-radius: 16px; padding: 24px; box-shadow: 0 4px 6px rgba(13,20,38,.05), 0 2px 4px rgba(13,20,38,.04); }

.field { margin-bottom: 16px; }
.field:last-child { margin-bottom: 0; }
.field > label { display: block; font-size: 13px; font-weight: 600; color: #0D1426; margin-bottom: 6px; }
.field input[type=text], .field input[type=url], .field input[type=email], .field input[type=tel],
.field input[type=number], .field select, .field textarea {
  width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; color: #0D1426;
  background: #fff; border: 1px solid #DDE2EF; border-radius: 10px; padding: 10px 12px;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #1B4FD8; box-shadow: 0 0 0 3px rgba(27,79,216,.15);
}
.field-check { display: flex; align-items: center; gap: 8px; }
.field-check input { width: 16px; height: 16px; accent-color: #1B4FD8; }
.field-check label { margin: 0; font-weight: 500; color: #3D4A6B; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.qr-fields[hidden] { display: none; }

/* Preview */
.tool-preview { position: sticky; top: 96px; }
#qr-preview {
  display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1 / 1; width: 100%; max-width: 320px; margin: 0 auto;
  background: #fff; border: 1px solid #DDE2EF; border-radius: 16px; padding: 16px;
}
#qr-preview svg { width: 100%; height: auto; display: block; }
.qr-hint { color: #8893AB; font-size: 14px; text-align: center; padding: 24px; }

#qr-error { margin-top: 14px; color: #B91C1C; background: #FEF2F2; border: 1px solid #FECACA; border-radius: 10px; padding: 10px 12px; font-size: 14px; }

#qr-actions { margin-top: 18px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tool-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .01em; cursor: pointer;
  border-radius: 9999px; padding: 10px 20px; border: 1px solid transparent; text-decoration: none;
  transition: background .2s, transform .15s, border-color .2s;
}
.tool-btn--primary { background: linear-gradient(135deg, #1B4FD8 0%, #1640B0 100%); color: #fff; box-shadow: 0 4px 20px rgba(27,79,216,.35); }
.tool-btn--primary:hover { background: linear-gradient(135deg, #1640B0 0%, #1035A0 100%); transform: translateY(-2px); }
.tool-btn--ghost { background: #fff; color: #1B4FD8; border-color: #DDE2EF; }
.tool-btn--ghost:hover { border-color: #1B4FD8; }

/* Tools landing cards */
.tools-list { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 640px) { .tools-list { grid-template-columns: repeat(2, 1fr); } }
.tool-link-card { display: block; background: #fff; border: 1px solid #DDE2EF; border-radius: 16px; padding: 24px; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.tool-link-card:hover { border-color: #1B4FD8; box-shadow: 0 10px 25px rgba(13,20,38,.08); transform: translateY(-2px); }
.tool-link-card h3 { font-family: 'Sora', system-ui, sans-serif; color: #0D1426; font-weight: 700; font-size: 19px; }
.tool-link-card p { color: #3D4A6B; margin-top: 8px; font-size: 14px; line-height: 1.6; }
.tool-link-card .tool-ico { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: rgba(27,79,216,.08); color: #1B4FD8; margin-bottom: 14px; }
