/* imagecheck.net — single shared stylesheet.
   Palette: ink / paper / amber, red reserved for diff-bits & blocked states.
   Type: mono display (the product's own vernacular: hashes, commands),
   system body. No external requests of any kind — the privacy page's
   "static files, no third parties" claim depends on it staying that way. */

:root {
  --ink:    #0e1116;
  --panel:  #151a21;
  --panel2: #1a2029;
  --line:   #262d38;
  --paper:  #e9e5dc;
  --dim:    #97a0ac;
  --amber:  #e2a53f;
  --amber2: #f0bc66;
  --red:    #d0685c;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --body: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.65;
}
img, svg { max-width: 100%; }
a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber2); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }
code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  white-space: nowrap;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- header / footer shell ---------- */

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(6px);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 3.6rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--mono); font-weight: 600; font-size: 1.02rem;
  color: var(--paper); letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: var(--paper); }
.brand .tld { color: var(--dim); font-weight: 400; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.site-nav a {
  font-family: var(--mono); font-size: 0.86rem; color: var(--dim);
}
.site-nav a:hover { color: var(--paper); text-decoration: none; }
.site-nav a.active { color: var(--paper); }

.btn {
  display: inline-block;
  font-family: var(--mono); font-size: 0.9rem; font-weight: 600;
  padding: 0.55rem 1.05rem; border-radius: 6px;
  border: 1px solid var(--amber);
  white-space: nowrap;
}
.btn-solid { background: var(--amber); color: var(--ink); }
.btn-solid:hover { background: var(--amber2); border-color: var(--amber2); color: var(--ink); text-decoration: none; }
.btn-ghost { color: var(--amber); }
.btn-ghost:hover { background: color-mix(in srgb, var(--amber) 12%, transparent); text-decoration: none; }
.site-nav .btn { padding: 0.4rem 0.85rem; font-size: 0.82rem; }

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 5rem;
  padding: 2.2rem 0 2.6rem;
  color: var(--dim); font-size: 0.9rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; align-items: center; }
.site-footer nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.site-footer a { color: var(--dim); font-family: var(--mono); font-size: 0.84rem; }
.site-footer a:hover { color: var(--paper); }
.site-footer .foot-brand { margin-right: auto; display: flex; align-items: center; gap: 0.5rem; font-family: var(--mono); }

/* ---------- shared section furniture ---------- */

.eyebrow {
  font-family: var(--mono); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber);
  margin: 0 0 0.8rem;
}
section { padding: 4.2rem 0 0; }
h1, h2, h3 { font-family: var(--mono); letter-spacing: -0.015em; line-height: 1.25; }
h2 { font-size: 1.7rem; margin: 0 0 1rem; }
h3 { font-size: 1.06rem; margin: 0 0 0.4rem; }
.lede { color: var(--dim); max-width: 46rem; margin: 0; }

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

.hero { padding: 5rem 0 1rem; }
.hero .wrap { display: flex; gap: 3.5rem; align-items: center; }
.hero-copy { flex: 1.15; }
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  margin: 0 0 1.1rem;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero .lede { font-size: 1.08rem; margin-bottom: 1.8rem; }
.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
.hero-note { font-size: 0.82rem; color: var(--dim); margin-top: 1rem; font-family: var(--mono); }

/* the signature: image → 8×8 fingerprint → hex */
.hash-demo { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.9rem; }
.pipeline { display: flex; align-items: center; gap: 1.1rem; }
.pipeline .arrow { font-family: var(--mono); color: var(--dim); font-size: 1.3rem; }
.thumb {
  width: 74px; height: 74px; border-radius: 10px; flex: none;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 30%, #4a6c8c 0 28%, transparent 32%),
    radial-gradient(circle at 68% 62%, #7c5a44 0 22%, transparent 26%),
    linear-gradient(160deg, #2c3a4a, #202836 55%, #33272b);
}
.bits {
  display: grid; grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr); gap: 3px;
  width: 190px; aspect-ratio: 1; flex: none;
}
.bits i { background: var(--line); border-radius: 2px; }
.bits i.on { background: var(--amber); }
.bits i.x { box-shadow: 0 0 0 2px var(--red); position: relative; z-index: 1; }
.bits-sm { width: 150px; gap: 2px; }
.hash-hex { font-family: var(--mono); font-size: 0.88rem; color: var(--dim); letter-spacing: 0.08em; }
.hash-hex b { color: var(--amber); font-weight: 600; }

/* load flicker on the hero grid only */
.hero .bits i { opacity: 0; animation: bit 0.5s ease forwards; }
.hero .bits i:nth-child(8n+1) { animation-delay: 0.05s; }
.hero .bits i:nth-child(8n+2) { animation-delay: 0.30s; }
.hero .bits i:nth-child(8n+3) { animation-delay: 0.15s; }
.hero .bits i:nth-child(8n+4) { animation-delay: 0.40s; }
.hero .bits i:nth-child(8n+5) { animation-delay: 0.10s; }
.hero .bits i:nth-child(8n+6) { animation-delay: 0.35s; }
.hero .bits i:nth-child(8n+7) { animation-delay: 0.20s; }
.hero .bits i:nth-child(8n)   { animation-delay: 0.25s; }
@keyframes bit { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero .bits i { animation: none; opacity: 1; }
}

/* ---------- how it works ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.8rem; }
.step {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.25rem 1.3rem;
}
.step .n {
  font-family: var(--mono); color: var(--amber); font-size: 0.8rem;
  letter-spacing: 0.14em; display: block; margin-bottom: 0.5rem;
}
.step p { margin: 0; color: var(--dim); font-size: 0.95rem; }

/* ---------- match demo ---------- */

.match-band {
  margin-top: 2.6rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 2rem 1.6rem;
  display: flex; flex-wrap: wrap; gap: 2rem; align-items: center; justify-content: center;
}
.match-side { text-align: center; }
.match-side .cap { font-family: var(--mono); font-size: 0.78rem; color: var(--dim); margin-top: 0.7rem; }
.match-verdict { max-width: 20rem; }
.match-verdict .vs { font-family: var(--mono); color: var(--dim); font-size: 0.85rem; margin-bottom: 0.6rem; }
.verdict-line {
  font-family: var(--mono); font-size: 0.92rem; line-height: 2;
  border-left: 2px solid var(--amber); padding-left: 0.9rem;
}
.verdict-line .blocked { color: var(--red); font-weight: 600; }
.match-verdict p { color: var(--dim); font-size: 0.92rem; }

/* ---------- federation / features ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 1.8rem; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  padding: 1.25rem 1.3rem;
}
.card p { margin: 0; color: var(--dim); font-size: 0.93rem; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- privacy strip ---------- */

.privacy-strip {
  margin-top: 4.2rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--panel2);
  padding: 2.6rem 0;
}
.privacy-strip ul {
  list-style: none; margin: 1.4rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.9rem 2.4rem;
}
.privacy-strip li { color: var(--dim); padding-left: 1.4rem; position: relative; font-size: 0.97rem; }
.privacy-strip li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 0.55em; height: 0.55em; border-radius: 2px; background: var(--amber);
}
.privacy-strip li b { color: var(--paper); font-weight: 600; }

/* ---------- docs & article pages ---------- */

.page-head { padding: 3.4rem 0 0.4rem; }
.page-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.3rem); margin: 0 0 0.6rem; }

article.legal, .docs { max-width: 46rem; }
article.legal h2, .docs h2 { margin-top: 3rem; font-size: 1.3rem; border-bottom: 1px solid var(--line); padding-bottom: 0.45rem; }
article.legal p, article.legal li { color: var(--dim); }
article.legal b, article.legal strong { color: var(--paper); }
.docs p, .docs li { color: var(--dim); }
.docs b, .docs strong { color: var(--paper); }
.meta { color: var(--dim); font-family: var(--mono); font-size: 0.85rem; }

.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: 0.93rem; }
th, td { border: 1px solid var(--line); padding: 0.55rem 0.7rem; text-align: left; vertical-align: top; }
th { background: var(--panel); font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.05em; }
td { color: var(--dim); }
td:first-child { white-space: nowrap; }

.cmd-list { margin: 1.2rem 0 0; padding: 0; list-style: none; }
.cmd-list li {
  display: grid; grid-template-columns: minmax(15rem, 0.9fr) 1.6fr; gap: 0.4rem 1.2rem;
  padding: 0.55rem 0; border-bottom: 1px solid var(--line);
  color: var(--dim); font-size: 0.94rem;
}
.cmd-list li:first-child { border-top: 1px solid var(--line); }
.cmd-list code { background: none; border: none; padding: 0; color: var(--paper); white-space: normal; }

.callout {
  background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--amber);
  border-radius: 8px; padding: 0.9rem 1.1rem; color: var(--dim); font-size: 0.94rem;
  margin: 1.4rem 0;
}

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

.contact-form { max-width: 34rem; margin-top: 1.4rem; }
.contact-form label {
  display: block; font-family: var(--mono); font-size: 0.8rem;
  letter-spacing: 0.06em; color: var(--dim); margin: 1.1rem 0 0.35rem;
}
.contact-form input, .contact-form textarea {
  width: 100%; background: var(--panel); border: 1px solid var(--line);
  border-radius: 6px; color: var(--paper); font: inherit;
  padding: 0.6rem 0.75rem;
}
.contact-form textarea { min-height: 9rem; resize: vertical; }
.contact-form button {
  margin-top: 1.3rem; cursor: pointer;
  background: var(--amber); border: 1px solid var(--amber); color: var(--ink);
  font-family: var(--mono); font-weight: 600; font-size: 0.9rem;
  padding: 0.6rem 1.3rem; border-radius: 6px;
}
.contact-form button:hover { background: var(--amber2); border-color: var(--amber2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { color: var(--dim); font-size: 0.85rem; margin-top: 1rem; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero .wrap { flex-direction: column; gap: 2.6rem; }
  .steps, .cards { grid-template-columns: 1fr; }
  .privacy-strip ul { grid-template-columns: 1fr; }
  .cmd-list li { grid-template-columns: 1fr; }
  .site-nav { gap: 0.9rem; }
  .site-nav a { font-size: 0.8rem; }
}
