/* ── Free tools (/tools/*) — shared look for every tool page ──────────── */
.tool-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; max-width: 640px; }
.tool-form .audit-input { flex: 1; min-width: 240px; }
.tool-form .btn-l { white-space: nowrap; }
.tool-hint { margin-top: 12px; color: var(--faint); font-size: 13px; }
.tool-hint a { color: var(--mut); }

.tool-result { margin-top: clamp(28px, 4vw, 44px); }
.tool-result[hidden] { display: none; }
.tool-verdict { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); padding: clamp(20px, 2.6vw, 28px) clamp(22px, 2.8vw, 32px); }
.tool-verdict .tile { width: 44px; height: 44px; flex: none; }
.tool-verdict .tile svg { width: 56%; height: 56%; fill: none; stroke: #0a0a0c; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.tool-verdict.bad .tile { background: linear-gradient(160deg, #ffd9de, #ff8a9a 78%); }
.tool-verdict.mixed .tile { background: linear-gradient(160deg, #ffefc7, #f6c453 78%); }
.tool-verdict.good .tile { background: linear-gradient(160deg, #d8ffe9, #6fe3a5 78%); }
.tool-verdict h2 { font-family: "Space Grotesk", sans-serif; font-size: clamp(19px, 2vw, 24px); line-height: 1.2; }
.tool-verdict p { margin-top: 4px; color: var(--mut); font-size: 13.5px; }
.tool-verdict .tv-copy { flex: 1; min-width: 240px; }
.tool-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.tool-stat { border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.25); padding: 9px 13px; font-size: 12.5px; color: var(--faint); }
.tool-stat b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 16px; color: var(--ink); }

.tool-board { margin-top: 16px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008)); overflow: hidden; }
.tool-head { display: grid; grid-template-columns: minmax(150px, 1.2fr) 100px 1.4fr 1.1fr; gap: 14px; padding: 12px clamp(18px, 2.4vw, 28px); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); }
.tool-row { display: grid; grid-template-columns: minmax(150px, 1.2fr) 100px 1.4fr 1.1fr; gap: 14px; align-items: center; padding: 14px clamp(18px, 2.4vw, 28px); border-bottom: 1px solid rgba(255,255,255,.06); font-size: 13.5px; color: var(--mut); }
.tool-row:last-child { border-bottom: 0; }
.tool-row b { color: var(--ink); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 14.5px; }
.tool-row .role { font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.tool-row small { display: block; margin-top: 2px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 11.5px; color: var(--faint); overflow-wrap: anywhere; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 5px 11px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--mut); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { color: #6fe3a5; border-color: rgba(111,227,165,.35); }
.pill.bad { color: #ff8a9a; border-color: rgba(255,138,154,.35); }
.pill.warn { color: #f6c453; border-color: rgba(246,196,83,.35); }
.tool-foot { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 14px clamp(18px, 2.4vw, 28px); border-top: 1px solid var(--line); color: var(--faint); font-size: 12.5px; }
.tool-foot b { color: var(--ink); }

.tool-fix { margin-top: 16px; border: 1px solid rgba(183,170,255,.25); border-radius: 18px; background: rgba(139,124,255,.06); padding: clamp(18px, 2.4vw, 26px); }
.tool-fix h3 { font-family: "Space Grotesk", sans-serif; font-size: 16px; }
.tool-fix ul { margin: 10px 0 0; padding-left: 20px; color: var(--mut); font-size: 14px; line-height: 1.7; }
.tool-fix code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; color: var(--ink); background: rgba(0,0,0,.3); padding: 2px 6px; border-radius: 6px; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tool-error { margin-top: 18px; color: #ff8a9a; font-size: 14px; }
.tool-loading { margin-top: 26px; color: var(--mut); font-size: 14px; }
.tool-loading i { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #8b7cff; animation: tool-pulse 1s ease-in-out infinite; }
@keyframes tool-pulse { 50% { opacity: .25; } }

.tool-btn { border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.04); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; padding: 11px 16px; cursor: pointer; }
.tool-btn:hover { border-color: rgba(255,255,255,.3); }
.llms-pre { margin-top: 14px; max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.35); padding: 16px 18px; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }

/* bot verifier: log line + two fields */
.bot-form { flex-direction: column; max-width: 760px; }
.bot-form textarea.audit-input { resize: vertical; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; line-height: 1.5; }
.bot-fields { display: flex; flex-wrap: wrap; gap: 12px; width: 100%; }
.bot-fields .audit-input { flex: 1; min-width: 160px; }
.bot-fields .audit-input:nth-child(2) { flex: 2; min-width: 240px; }
.tool-row .mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; color: var(--ink); }

/* what-ai-sees: two views side by side */
.sees-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.sees-col { border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.008)); padding: 18px 20px; }
.sees-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--faint); }
.sees-sample { margin-top: 14px; font-size: 13.5px; line-height: 1.7; color: var(--mut); overflow-wrap: anywhere; }
@media (max-width: 760px) { .sees-grid { grid-template-columns: 1fr; } }

/* /tools hub */
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool-card { padding: 24px; }
.tool-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tool-card h3 { margin-top: 18px; font-family: "Space Grotesk", sans-serif; font-size: 19px; line-height: 1.25; }
.tool-card p { margin-top: 10px; color: var(--mut); font-size: 14px; line-height: 1.65; flex: 1; }
.tool-card-meta { display: block; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.07); font-size: 12px; color: var(--faint); }
.tool-card.soon { opacity: .72; }
.tool-card.soon:hover { transform: none; border-color: var(--line); }
.tool-card.explore h3 { max-width: none; position: relative; z-index: 1; }
.tool-card.explore .tool-card-meta { position: relative; z-index: 1; color: var(--mut); }
@media (max-width: 1020px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tools-grid { grid-template-columns: 1fr; } }

.tool-faq { margin-top: clamp(40px, 6vw, 72px); }
.tool-faq h2 { font-family: "Space Grotesk", sans-serif; font-size: clamp(22px, 2.4vw, 30px); }
.tool-faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.tool-faq details:last-child { border-bottom: 1px solid var(--line); }
.tool-faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; }
.tool-faq summary::-webkit-details-marker { display: none; }
.tool-faq p { margin-top: 10px; color: var(--mut); font-size: 15px; line-height: 1.7; max-width: 70ch; }

@media (max-width: 760px) {
  .tool-head { display: none; }
  .tool-row { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .tool-row > :first-child { grid-column: 1 / -1; }
}
