/* ── Free tools (/verktyg/*, /tools/*) ───────────────────────────────────────
 * Only the result needs styling: the form reuses .lead from styles.css, and
 * the markup is the same contract the company site's tools use (ids verdict,
 * boards, fix, fix-none, cta — see tools-check.js), in this site's own light
 * palette instead of that one's dark one.
 */
.tool-hint { margin-top: 12px; color: var(--mute); font-size: 13.5px; max-width: 70ch; }
.tool-loading, .tool-error { margin-top: 14px; font-size: 14px; }
.tool-loading { color: var(--mute); display: flex; align-items: center; gap: 10px; }
.tool-loading i { width: 14px; height: 14px; border: 2px solid var(--accent); border-right-color: transparent; border-radius: 50%; animation: tool-spin .7s linear infinite; }
@keyframes tool-spin { to { transform: rotate(360deg); } }
.tool-error { color: var(--yours); }
.tool-loading[hidden], .tool-error[hidden], .tool-result[hidden], .tool-fix[hidden] { display: none; }

.tool-result { margin-top: clamp(26px, 4vw, 40px); }
.tool-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); box-shadow: 0 24px 60px -40px rgba(14, 12, 26, .5); padding: clamp(20px, 2.6vw, 28px); }
.tool-verdict .tile { width: 42px; height: 42px; flex: none; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); }
.tool-verdict .tile svg { width: 56%; height: 56%; fill: none; stroke: var(--accent-2); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tool-verdict.good .tile { background: var(--on-soft); } .tool-verdict.good .tile svg { stroke: var(--on); }
.tool-verdict.mixed .tile { background: var(--yours-soft); } .tool-verdict.mixed .tile svg { stroke: var(--yours); }
.tool-verdict.bad .tile { background: rgba(190, 18, 60, .1); } .tool-verdict.bad .tile svg { stroke: #be123c; }
.tool-verdict .tv-copy { flex: 1; min-width: 240px; }
.tool-verdict h2 { font: 700 clamp(19px, 2vw, 23px)/1.2 var(--display); margin: 0; }
.tool-verdict p { margin: 5px 0 0; color: var(--mute); font-size: 13.5px; overflow-wrap: anywhere; }

.tool-board { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); overflow: hidden; }
.tool-head { display: flex; justify-content: space-between; gap: 14px; padding: 12px clamp(16px, 2.2vw, 24px); border-bottom: 1px solid var(--line); background: var(--bg-2); font: 600 11px/1 var(--body); letter-spacing: .07em; text-transform: uppercase; color: var(--mute); }
.tool-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 10px 16px; padding: 13px clamp(16px, 2.2vw, 24px); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.tool-row:last-child { border-bottom: 0; }
.tool-row > span:first-child { flex: 1; min-width: 220px; }
.tool-row b { display: block; font: 600 14px/1.45 var(--body); color: var(--ink); overflow-wrap: anywhere; }
.tool-row small { display: block; margin-top: 3px; font: 12px/1.5 var(--mono); color: var(--mute); overflow-wrap: anywhere; }

.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 11px; font: 600 12px/1 var(--body); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--mute); white-space: nowrap; }
.pill.ok { color: var(--on); border-color: rgba(21, 128, 61, .3); background: var(--on-soft); }
.pill.warn { color: var(--yours); border-color: rgba(180, 83, 9, .3); background: var(--yours-soft); }
.pill.bad { color: #be123c; border-color: rgba(190, 18, 60, .3); background: rgba(190, 18, 60, .08); }

.tool-fix { margin-top: 16px; border: 1px solid rgba(109, 77, 230, .25); border-radius: var(--radius); background: var(--accent-soft); padding: clamp(18px, 2.4vw, 26px); }
.tool-fix h3 { font: 700 16px/1.3 var(--display); margin: 0; }
.tool-fix ul { margin: 12px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; line-height: 1.75; }
.tool-fix li + li { margin-top: 8px; }
.tool-fix small { display: block; color: var(--mute); font-size: 13px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
