/* Agentwatch. Same tokens as the Hookjar page so the two read as one site.
   Single dark theme on purpose, like the rest of comiza.lighting. */

:root {
  --bg:      #0c0d0e;
  --panel:   #141617;
  --panel-2: #1b1e1f;
  --line:    #262a2b;
  --text:    #e8e9e7;
  --muted:   #8f9694;
  --accent:  #60a5fa;
  --accent-ink: #0a1424;
  --good:    #6fcf8e;
  --warn:    #e8b563;
  --bad:     #ef7a72;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --wrap: 940px;
  --gut: clamp(1.25rem, 5vw, 2rem);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; font-weight: 550; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }
ol, ul, dl, dd, dt { margin: 0; padding: 0; }
a { color: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.skip { position: absolute; left: -9999px; background: var(--accent);
        color: var(--accent-ink); padding: .7rem 1rem; border-radius: 8px; }
.skip:focus { left: 1rem; top: 1rem; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
code { font-family: var(--mono); font-size: .92em; }

/* ------------------------------------------------------------ header */

.top {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
}
.top__inner { display: flex; align-items: center; gap: 1.5rem; height: 58px; }
.brand {
  display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  font-family: var(--mono); font-size: .95rem; color: var(--accent);
  letter-spacing: .02em;
}
.brand img { width: 20px; height: 20px; }
.top nav { margin-left: auto; display: flex; gap: 1.35rem; font-size: .9rem; }
.top nav a { color: var(--muted); text-decoration: none; transition: color .18s var(--ease); }
.top nav a:hover { color: var(--text); }

@media (max-width: 620px) {
  .top nav { gap: .9rem; font-size: .82rem; }
  .top nav a[href="/hookjar/"] { display: none; }
}

/* -------------------------------------------------------------- hero */

section { padding-block: clamp(3rem, 7vw, 5rem); }
section + section { border-top: 1px solid var(--line); }

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  letter-spacing: -.035em;
  max-width: 18ch;
}
.lede { margin-top: 1.5rem; color: var(--muted); max-width: 66ch; font-size: 1.02rem; }
.sub { margin-top: .9rem; color: var(--muted); max-width: 66ch; }
.note { margin-top: .85rem; color: var(--muted); font-size: .86rem; max-width: 60ch; }

/* -------------------------------------------------------------- form */

.scan { margin-top: 2rem; }
.fieldlabel { display: block; font-size: .8rem; color: var(--muted); margin-bottom: .5rem; }
.fieldlabel + .urlbox--block { margin-bottom: 1rem; }
.copyrow { display: flex; gap: .5rem; }

.urlbox {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-size: .9rem;
  background: var(--bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: .6rem .8rem;
}
.urlbox--block { display: block; width: 100%; }
.urlbox::placeholder { color: #5c6462; }

.btn {
  font: inherit; font-size: .92rem; font-weight: 550;
  background: var(--accent); color: var(--accent-ink);
  border: 1px solid transparent; border-radius: 8px;
  padding: .55rem 1.05rem; cursor: pointer; white-space: nowrap;
  text-decoration: none; display: inline-block;
  transition: filter .18s var(--ease), transform .12s var(--ease);
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: default; }

.buyrow { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem; margin-top: 1.4rem; }
.buyrow__note { color: var(--muted); font-size: .85rem; }

/* ------------------------------------------------------------ result */

.result { margin-top: 2.25rem; }
.result[hidden] { display: none; }

.verdict {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem;
  align-items: center;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); padding: 1.15rem 1.25rem;
}
.verdict__score {
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 1.5rem; font-weight: 600;
  border: 2px solid currentColor;
}
.verdict h3 { font-size: 1.05rem; }
.verdict p { color: var(--muted); font-size: .9rem; margin-top: .3rem; }
.verdict__meta { color: var(--muted); font-size: .8rem; font-family: var(--mono); margin-top: .5rem; }

.s-blocked { color: var(--bad); }
.s-partial { color: var(--warn); }
.s-ready   { color: var(--good); }

.findings { margin-top: 1.25rem; display: grid; gap: .6rem; list-style: none; }
.finding {
  border: 1px solid var(--line); border-left: 3px solid var(--line);
  border-radius: 8px; background: var(--panel); padding: .85rem 1rem;
}
.finding--critical { border-left-color: var(--bad); }
.finding--warning  { border-left-color: var(--warn); }
.finding--good     { border-left-color: var(--good); }
.finding--info     { border-left-color: var(--muted); }

.finding__head { display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; }
.finding__tag {
  font-family: var(--mono); font-size: .7rem; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted);
}
.finding--critical .finding__tag { color: var(--bad); }
.finding--warning  .finding__tag { color: var(--warn); }
.finding--good     .finding__tag { color: var(--good); }
.finding__title { font-weight: 550; font-size: .96rem; }
.finding__detail { color: var(--muted); font-size: .89rem; margin-top: .35rem; max-width: 74ch; }
.finding__fix {
  margin-top: .55rem; font-size: .86rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px;
  padding: .5rem .7rem;
}
.finding__fix b { font-weight: 550; color: var(--accent); }
.finding__evidence {
  margin-top: .5rem; font-family: var(--mono); font-size: .78rem;
  color: var(--muted); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; padding: .45rem .6rem;
  overflow-x: auto; white-space: pre;
}

.result__error {
  border: 1px solid var(--line); border-left: 3px solid var(--bad);
  border-radius: 8px; background: var(--panel); padding: .9rem 1rem;
  color: var(--text); font-size: .93rem;
}

.result__more {
  margin-top: 1rem; font-size: .86rem; color: var(--muted);
}
.result__more button {
  font: inherit; background: none; border: 0; color: var(--accent);
  cursor: pointer; padding: 0; text-decoration: underline;
}

.working { color: var(--muted); font-family: var(--mono); font-size: .85rem; }
.working::after {
  content: ""; display: inline-block; width: 6px; height: 6px;
  margin-left: .4rem; border-radius: 50%; background: var(--accent);
  vertical-align: middle;
}
@media (prefers-reduced-motion: no-preference) {
  .working::after { animation: blink 1.2s ease-in-out infinite; }
}
@keyframes blink { 0%, 100% { opacity: 1 } 50% { opacity: .2 } }

/* ------------------------------------------------------------ content */

.facts { display: grid; gap: 1.5rem; margin-top: 1.75rem; }
.facts dt { font-weight: 550; }
.facts dd { margin-top: .4rem; color: var(--muted); max-width: 72ch; }

.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 1.75rem; }
.cols h3 { font-size: .95rem; color: var(--muted); font-weight: 500; }
@media (max-width: 720px) { .cols { grid-template-columns: 1fr; } }

.ticks { list-style: none; margin-top: .9rem; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.4rem; color: var(--muted); font-size: .93rem; }
.ticks li::before {
  content: "→"; position: absolute; left: 0; color: var(--accent);
  font-family: var(--mono);
}

.tablewrap { margin-top: 1.75rem; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; min-width: 560px; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 500; font-size: .82rem; }
td code { color: var(--accent); font-size: .86rem; }
.purpose { font-family: var(--mono); font-size: .76rem; text-transform: uppercase;
           letter-spacing: .05em; }
.purpose--search { color: var(--accent); }
.purpose--user_fetch { color: var(--accent); }
.purpose--training { color: var(--muted); }
.table--limits td:not(:first-child) { font-family: var(--mono); font-size: .85rem; }
.table--limits td:first-child { color: var(--muted); }

/* --------------------------------------------------- reference pages */

/* Paragrafele au margin 0 global, ceea ce e bun pentru blocurile de o
   propozitie din pagina principala si prost pentru textul continuu de aici. */
section p + p { margin-top: .9rem; }

/* O propozitie intreaga intr-un tabel de rezumat nu se citeste cu font
   monospaced; celula asta e proza, nu o valoare. */
.table--limits td.prose { font-family: var(--sans); font-size: .92rem; }

.crumbs {
  font-size: .82rem; color: var(--muted); margin-bottom: 1.1rem;
  font-family: var(--mono);
}
.crumbs a { color: var(--accent); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.hero h1 code, h1 code { font-size: .9em; }

.snippet {
  margin: .75rem 0 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .9rem 1.05rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: .86rem;
  line-height: 1.7;
  color: var(--text);
}
.snippet code { font-size: inherit; white-space: pre; }

.h3--spaced { margin-top: 2.75rem; font-size: .95rem; color: var(--muted);
              font-weight: 500; }

/* The row for the crawler whose page this is, so the reader can place
   themselves in the vendor's family at a glance. */
tr.is-this { background: color-mix(in srgb, var(--accent) 8%, transparent); }
tr.is-this td:first-child { color: var(--text); }

.crawlerlist {
  list-style: none; margin-top: 1.5rem;
  display: grid; gap: .5rem;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.crawlerlist li {
  display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 8px;
  padding: .6rem .8rem; background: var(--panel);
}
.crawlerlist a { color: var(--accent); text-decoration: none; }
.crawlerlist a:hover { text-decoration: underline; }
.crawlerlist code { color: inherit; }
.crawlerlist__vendor { color: var(--muted); font-size: .8rem; margin-left: auto; }
.crawlerlist--wide { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* ------------------------------------------------------------- footer */

.foot { border-top: 1px solid var(--line); padding-block: 1.5rem; }
.foot__inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .75rem;
  color: var(--muted); font-size: .85rem;
}
.foot code { color: var(--accent); }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }

.btn--ghost {
  background: transparent; color: var(--text); border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--muted); filter: none; }

/* ---------------------------------------------------------- study page */

/* Limitele studiului stau sus, nu la subsol. Un studiu care isi ascunde
   marimea esantionului cere sa fie crezut; asta cere sa fie verificat. */
.callout {
  margin-top: 2rem;
  border: 1px solid var(--line); border-left: 3px solid var(--warn);
  border-radius: 10px; background: var(--panel); padding: 1rem 1.15rem;
}
.callout h2 { font-size: .95rem; color: var(--warn); }
.callout p { margin-top: .5rem; color: var(--muted); font-size: .92rem; max-width: 68ch; }

.num { font-family: var(--mono); font-weight: 600; }
.num--bad  { color: var(--bad); }
.num--warn { color: var(--warn); }
.num--good { color: var(--good); }
tr.is-muted td { color: var(--muted); }

.steps { margin-top: 1.5rem; display: grid; gap: .7rem; padding-left: 1.2rem; }
.steps li { color: var(--muted); max-width: 74ch; }
.steps li::marker { color: var(--accent); font-family: var(--mono); }
.steps strong { color: var(--text); font-weight: 550; }

/* Un avertisment care contrazice randul de deasupra lui. Trebuie sa fie
   imposibil de ratat de cine citeste doar tabelul. */
tr.is-caveat td {
  color: var(--muted); font-size: .88rem; line-height: 1.6;
  background: color-mix(in srgb, var(--warn) 7%, transparent);
  border-left: 3px solid var(--warn);
}
tr.is-caveat strong { color: var(--warn); }
