/* Free AI product page checker (tools-src/build_tools.py). Uses the tokens from styles.css and guide.css.
   Brand kit (produkto-site/brand-kit): the result is a terminal at night. Midnight + dot grid, Plex Mono for what
   "speaks" (commands, labels, numbers, URLs), Geist for what explains. Signal green = done, alert red = missing,
   used sparingly; haze blue for "needs work"; steel for captions. */
.pc { --k-mid: #07101f; --k-navy: #0b1b35; --k-panel: #0a1529; --k-line: #1c2b45; --k-green: #2fbf71; --k-red: #e5484d;
      --k-steel: #8a96a8; --k-haze: #9fb3d6; --k-soft: #c7d2e4; --k-text: #dde3ec; }

/* ---------- Hero form: a command line ---------- */
.pc-form { max-width: 720px; margin: 32px auto 0; text-align: left; }
.pc-label { display: block; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--k-steel); margin-bottom: 10px; }
.pc-row { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; background: rgba(7, 16, 31, .72); border: 1px solid #2a3c5e; border-radius: 14px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6); }
.pc-row:focus-within { border-color: var(--k-haze); box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6), 0 0 0 3px rgba(159, 179, 214, .2); }
.pc-prompt { font-family: var(--font-mono); font-weight: 700; color: var(--k-green); }
.pc-row input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--font-mono); font-size: .95rem; color: #fff; padding: 0 6px; height: 48px; caret-color: var(--k-green); }
.pc-row input::placeholder { color: #5d6b82; }
.pc-row .btn { height: 48px; background: #fff; color: var(--ink); }
.pc-row .btn:hover { background: #e9edf4; }
.pc-row .btn[disabled] { opacity: .6; cursor: progress; }
.pc-note { margin-top: 12px; font-family: var(--font-mono); font-size: .76rem; color: var(--k-steel); text-align: center; }

/* ---------- Output: the terminal ---------- */
.pc-out { max-width: 900px; margin: 32px auto 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.pc-term { position: relative; overflow: hidden; border-radius: var(--radius-xl); color: #fff; border: 1px solid var(--k-line);
  background: radial-gradient(#1d2d4a 1px, transparent 1.4px) 0 0 / 14px 14px, radial-gradient(90% 60% at 50% 0%, #10224a 0%, var(--k-mid) 70%);
  box-shadow: var(--shadow-lg); }
.pc-term-bar { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--k-line); background: rgba(7, 16, 31, .7); }
.pc-dots { display: flex; gap: 6px; flex: none; }
.pc-dots i { width: 9px; height: 9px; border-radius: 2px; background: var(--k-line); }
.pc-term-bar code { font-family: var(--font-mono); font-size: .8rem; color: var(--k-steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.pc-term-bar code span { color: var(--k-green); margin-right: 4px; }

.pc-log { padding: 26px 24px 30px; font-family: var(--font-mono); font-size: .92rem; line-height: 2; color: var(--k-soft); min-height: 150px; }
.pc-log p { min-height: 2em; }
.pc-caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 3px; vertical-align: -.2em; background: #fff; animation: pc-blink 1s steps(1) infinite; }
@keyframes pc-blink { 50% { opacity: 0; } }
.pc-term-error .pc-log { min-height: 0; }
.pc-bad { color: var(--k-red); font-weight: 700; }
.pc-msg { font-family: var(--font-sans); font-size: 1rem; line-height: 1.6; color: var(--k-text); }

.pc-head { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; padding: 24px; border-bottom: 1px solid var(--k-line); }
.pc-head img, .pc-noimg { width: 64px; height: 64px; border-radius: 12px; object-fit: contain; padding: 4px; background: #fff; display: block; }
.pc-prod { min-width: 0; }
.pc-prod b { display: block; color: #fff; font-weight: 600; font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pc-prod a { display: inline-block; margin-top: 6px; font-family: var(--font-mono); font-size: .78rem; color: var(--k-haze); text-decoration: underline; text-decoration-color: rgba(159, 179, 214, .4); text-underline-offset: 3px; overflow-wrap: anywhere; }
.pc-prod a:hover { color: #fff; }
.pc-score { text-align: right; }
.pc-score b { display: block; font-family: var(--font-mono); font-weight: 700; font-size: 2.6rem; line-height: 1; color: #fff; letter-spacing: -.04em; }
.pc-score b span { font-size: 1.1rem; color: var(--k-steel); font-weight: 500; letter-spacing: 0; }
.pc-score > span { display: block; margin-top: 6px; font-family: var(--font-mono); font-size: .72rem; color: var(--k-steel); }
.pc-matrix { display: flex; gap: 5px; margin-top: 10px; justify-content: flex-end; }
.pc-matrix i { width: 10px; height: 10px; border-radius: 2px; background: rgba(238, 242, 248, .08); box-shadow: inset 0 0 0 1px rgba(238, 242, 248, .12); }
.pc-matrix i.is-pass { background: var(--k-green); box-shadow: none; animation: pc-light .5s var(--ease) both; animation-delay: var(--d, 0s); }
.pc-matrix i.is-fail { background: var(--k-red); box-shadow: none; }
.pc-matrix i.is-warn { box-shadow: inset 0 0 0 1.5px var(--k-haze); }
@keyframes pc-light { from { background: rgba(238, 242, 248, .08); } }
.pc-lead { padding: 20px 24px 0; font-family: var(--font-mono); font-size: .82rem; color: var(--k-steel); }

.pc-checks { list-style: none; margin: 0; padding: 4px 24px 8px; }
.pc-check { padding: 22px 0; border-bottom: 1px solid var(--k-line); }
.pc-check:last-child { border-bottom: 0; }
.pc-check-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.pc-check h3 { font-size: 1.1rem; font-weight: 600; color: #fff; letter-spacing: -.01em; line-height: 1.35; }
.pc-pill { flex: none; font-family: var(--font-mono); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 4px 9px; border-radius: 6px; border: 1px solid; }
.is-pass .pc-pill { color: var(--k-green); border-color: rgba(47, 191, 113, .45); background: rgba(47, 191, 113, .08); }
.is-warn .pc-pill { color: var(--k-haze); border-color: rgba(159, 179, 214, .4); background: rgba(159, 179, 214, .07); }
.is-fail .pc-pill { color: var(--k-red); border-color: rgba(229, 72, 77, .45); background: rgba(229, 72, 77, .08); }
.pc-sum { margin-top: 10px; color: var(--k-soft); line-height: 1.65; }
.pc-quote { margin: 14px 0 0; padding: 12px 16px; border-left: 2px solid var(--k-haze); background: rgba(7, 16, 31, .6); border-radius: 0 10px 10px 0; font-family: var(--font-mono); color: var(--k-haze); font-size: .84rem; line-height: 1.7; }
.pc-quote span { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; color: var(--k-steel); margin-bottom: 6px; }
.pc-fix { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--k-panel); border: 1px solid var(--k-line); }
.pc-fix b { font-family: var(--font-mono); font-size: .68rem; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--k-green); }
.pc-fix p { margin-top: 6px; color: var(--k-text); line-height: 1.65; font-size: .95rem; }
.pc-fix-soft b { color: var(--k-steel); }
.pc-fix-soft p { color: var(--k-soft); }
.pc-details { margin-top: 12px; }
.pc-details summary { cursor: pointer; font-family: var(--font-mono); font-size: .76rem; color: var(--k-steel); width: fit-content; }
.pc-details summary:hover { color: #fff; }
.pc-details ul { display: grid; gap: 6px; margin-top: 10px; }
.pc-details li { display: grid; grid-template-columns: 20px 1fr; gap: 6px; font-size: .9rem; line-height: 1.45; color: var(--k-soft); overflow-wrap: anywhere; }
.pc-details li > span:first-child { font-family: var(--font-mono); font-weight: 700; }
.pc-details li.ok > span:first-child { color: var(--k-green); }
.pc-details li.no > span:first-child { color: var(--k-red); }
.pc .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pc-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 18px 24px 22px; border-top: 1px solid var(--k-line); }
.pc-ghost { background: transparent; color: #fff; border: 1px solid #2a3c5e; font-family: var(--font-mono); font-size: .82rem; }
.pc-ghost:hover { border-color: var(--k-haze); background: rgba(159, 179, 214, .08); }
.pc-next { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 24px; border-top: 1px solid var(--k-line); background: rgba(7, 16, 31, .75); }
.pc-next b { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; letter-spacing: -.01em; }
.pc-next p { margin-top: 6px; color: var(--k-soft); line-height: 1.55; font-size: .95rem; }
.pc-next .btn-primary { background: #fff; color: var(--ink); flex: none; }

/* ---------- Explainer cards: green numbers, like the brand kit's section labels ---------- */
.pc-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pc-icon { width: 56px; height: 70px; margin-top: -12px; flex: none; }
.pc-card { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.pc-card:hover { border-color: var(--g-tint-line); }

/* Hero extras: the example link and the engines whose crawlers we check (brand kit: logos in white) */
.pc-example { background: none; border: 0; padding: 0; font: inherit; color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: 3px; cursor: pointer; }
.pc-example:hover { text-decoration-color: #fff; }
.pc-engines { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; margin-top: 22px; font-family: var(--font-mono); font-size: .74rem; color: var(--k-steel); }
.pc-engines > span:first-child { letter-spacing: .08em; text-transform: uppercase; font-size: .66rem; }
.pc-eng { display: inline-flex; align-items: center; gap: 7px; color: #dde3ec; }
.pc-eng img, .pc-bot-logo { filter: brightness(0) invert(1); opacity: .85; }
.pc-bot-logo { display: inline-block; vertical-align: -2px; margin-right: 7px; opacity: .7; }
.pc .g-card .g-kicker b { color: #1f9a5a; font-weight: 500; }
.pc .g-card .g-kicker + h4 { margin-top: 10px; }

@media (max-width: 600px) {
  .pc-hero > .g-agents, .g-anim .pc-hero > .g-agents.g-r { opacity: .28; }          /* the text spans the whole card on a phone: agents stay behind it */
  .pc-row { flex-wrap: wrap; padding: 8px 8px 8px 14px; }
  .pc-row input { flex: 1 1 0; height: 44px; font-size: .88rem; }
  .pc-row .btn { flex: 1 0 100%; }
  .pc-term { border-radius: var(--radius-lg); }
  .pc-term-bar { padding: 12px 16px; }
  .pc-log { padding: 20px 16px 24px; font-size: .84rem; }
  .pc-head { grid-template-columns: 52px 1fr; padding: 18px 16px; }
  .pc-head img, .pc-noimg { width: 52px; height: 52px; }
  .pc-score { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; text-align: left; }
  .pc-score b { font-size: 2rem; }
  .pc-score > span { margin-top: 0; }
  .pc-matrix { margin: 0 0 0 auto; }
  .pc-lead { padding: 16px 16px 0; }
  .pc-checks { padding: 0 16px 4px; }
  .pc-actions { padding: 14px 16px 18px; }
  .pc-actions .btn { flex: 1; }
  .pc-next { flex-direction: column; align-items: stretch; padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) { .pc-caret { animation: none; } .pc-matrix i.is-pass { animation: none; } }
