/* CrawlSign site: the Apotropic look (ring mark, forest greens, one yellow eyespot). */
@import "tokens.css";

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 400 1.0625rem/1.65 var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(60rem 36rem at 100% -10%, var(--glow), transparent 70%),
    var(--paper);
  overflow-x: hidden;
}

/* Dot lattice that fades out down the page. */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 52rem;
  background-image: radial-gradient(circle, var(--dots) 1.2px, transparent 1.6px);
  background-size: 28px 28px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--accent-strong);
}

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

p,
h1,
h2,
h3,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88em;
}

section[id] {
  scroll-margin-top: 1.5rem;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.9rem;
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 999px;
  font-weight: 600;
  z-index: 40;
}

.skip-link:focus {
  top: 0.75rem;
  color: var(--on-ink);
}

.shell {
  width: 100%;
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

main {
  flex: 1;
}

/* ---- The mark: seven segments painted tail to head, each outlined in --mark-gap ---- */
.mark .seg {
  stroke: var(--mark-gap);
  stroke-width: 2.4;
}

.mark .s0 { fill: var(--seg-0); }
.mark .s1 { fill: var(--seg-1); }
.mark .s2 { fill: var(--seg-2); }
.mark .s3 { fill: var(--seg-3); }
.mark .s4 { fill: var(--seg-4); }
.mark .s5 { fill: var(--seg-5); }
.mark .s6 { fill: var(--seg-6); }

.mark .iris {
  fill: var(--eye);
  stroke: var(--eye-line);
  stroke-width: 2.2;
}

.mark .pupil {
  fill: var(--eye-line);
}

/* Single-colour version for solid tiles: segments in currentColor, eye cut out of the head. */
.mark-mono .seg,
.mark-mono .iris {
  fill: currentColor;
}

.mark-mono .iris {
  stroke: var(--mark-gap);
}

.mark-mono .pupil {
  fill: var(--mark-gap);
}

/* ---- Header ---- */
.site-header {
  position: relative;
  z-index: 20;
  padding-top: 1.25rem;
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font: 700 1.5rem/1 var(--font-body);
  letter-spacing: -0.04em;
}

.wordmark:hover {
  color: var(--ink);
}

.wordmark .mark {
  width: 2.25rem;
  height: 2.25rem;
  transition: transform 400ms var(--ease-spring);
}

.wordmark:hover .mark {
  transform: rotate(-14deg);
}

.wordmark-name {
  /* Optical nudge: the x-height sits low against the round mark. */
  padding-bottom: 0.12em;
}

.wordmark-by {
  align-self: flex-end;
  padding-bottom: 0.35em;
  margin-left: -0.3rem;
  font: 600 0.75rem/1 var(--font-body);
  letter-spacing: 0;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font: 600 0.9375rem/1 var(--font-body);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-links a:hover {
  background: var(--surface);
  color: var(--ink);
}

.nav-links a[aria-current="page"] {
  background: var(--ink);
  color: var(--on-ink);
}

.nav-cta {
  margin-left: 0.5rem;
  padding: 0.7rem 1.1rem;
  font-size: 0.875rem;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0 0.7rem;
  border: 1.5px solid var(--rule-strong);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 200ms var(--ease-out), opacity 160ms ease;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Type ---- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.5rem;
  font: 700 0.75rem/1.4 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* A tiny eyespot: dark ring, yellow iris, pupil looking left. */
.kicker::before {
  content: "";
  flex: none;
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 55%, #0e1f18 0 26%, #ffc93c 29% 64%, #0e1f18 67%);
}

h1,
h2,
h3 {
  font-family: var(--font-body);
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.6rem, 6.6vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 750;
}

h3 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 em,
h2 em {
  font-style: normal;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--eye);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.12em;
  text-decoration-skip-ink: none;
}

.lede {
  font-size: clamp(1.125rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 38rem;
  margin-top: 1.75rem;
}

:not(pre) > code {
  padding: 0.08em 0.38em;
  border-radius: 0.35rem;
  background: var(--rule);
  color: var(--ink);
  font-size: 0.84em;
}

/* ---- Buttons ---- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  font: 700 0.9375rem/1 var(--font-body);
  text-decoration: none;
  white-space: nowrap;
  border: 1.5px solid var(--ink);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease,
    transform 160ms var(--ease-out);
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--ink);
  color: var(--on-ink);
}

.button-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.button-quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule-strong);
}

.button-quiet:hover {
  border-color: var(--ink);
  color: var(--ink);
}

/* ---- Hero ---- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-top: clamp(3rem, 8vw, 6rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  margin-top: 1.75rem;
  list-style: none;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
}

.proof li,
.facts li {
  position: relative;
  padding-left: 1.05rem;
}

.proof li::before,
.facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Hero card: the demo on a white tile with the brand's concentric rings. */
.hero-card {
  --mark-gap: var(--surface);
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  background:
    repeating-radial-gradient(circle at 100% 0%, transparent 0 34px, var(--ring) 34px 35px),
    var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.scan-url-label,
.label {
  display: block;
  margin-bottom: 0.5rem;
  font: 700 0.6875rem/1.4 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.scan-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem;
}

.scan-url {
  min-width: 0;
  width: 100%;
  padding: 0.8rem 1.1rem;
  border: 1.5px solid var(--rule);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: 400 0.875rem/1.2 var(--font-mono);
}

.scan-btn {
  padding: 0.8rem 1.4rem;
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font: 700 0.9375rem/1 var(--font-body);
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, opacity 160ms ease;
}

.scan-btn:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  transform: translateY(-1px);
}

.scan-btn:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.result-card {
  transition: opacity 160ms ease, transform 160ms var(--ease-out);
}

.result-card.is-scanning {
  opacity: 0.6;
  transform: translateY(2px);
}

.result-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.score {
  font: 500 0.8125rem/1 var(--font-mono);
  color: var(--muted);
}

.hero-card figcaption {
  display: grid;
  gap: 0.35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.hero-card figcaption b {
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.sample-link {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: 700 0.875rem/1.5 var(--font-body);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: var(--eye);
  text-underline-offset: 0.25em;
  cursor: pointer;
}

.sample-link:hover {
  color: var(--accent-strong);
}

/* ---- Decision pills ---- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.75rem;
  border-radius: 999px;
  font: 600 0.75rem/1 var(--font-mono);
  letter-spacing: 0.02em;
}

.status-pill::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
}

.status-stop { background: var(--stop-bg); color: var(--stop-ink); }
.status-quarantine { background: var(--quarantine-bg); color: var(--quarantine-ink); }
.status-log { background: var(--log-bg); color: var(--log-ink); }
.status-continue { background: var(--continue-bg); color: var(--continue-ink); }

/* ---- Code panels: dark in both themes ---- */
pre {
  position: relative;
  margin: 0;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: var(--radius-md);
  font: 400 0.84rem/1.7 var(--font-mono);
  white-space: pre;
  scrollbar-width: thin;
  scrollbar-color: rgb(230 240 234 / 0.25) transparent;
}

pre code {
  display: block;
  min-width: max-content;
  padding-right: 2.5rem;
  font-size: inherit;
}

.tok-key,
.tok-command { color: var(--code-key); }
.tok-string { color: var(--code-str); }
.tok-number { color: var(--code-num); }
.tok-option { color: var(--code-opt); }
.tok-keyword,
.tok-tag { color: var(--code-kw); }
.tok-name { color: var(--code-name); }
.tok-comment { color: var(--code-comment); font-style: italic; }

.pre-copy-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--code-rule);
  border-radius: 0.6rem;
  background: rgb(230 240 234 / 0.06);
  color: var(--code-ink);
  cursor: pointer;
  opacity: 0;
  transition: opacity 160ms ease, background-color 160ms ease, color 160ms ease;
}

pre:hover .pre-copy-btn,
pre:focus-within .pre-copy-btn {
  opacity: 1;
}

.pre-copy-btn:hover {
  background: rgb(230 240 234 / 0.14);
}

.pre-copy-btn.copied {
  color: var(--code-key);
}

/* ---- Sections, headed like the brand sheet: green number, bold title, tracked tag ---- */
.section {
  padding-top: clamp(3.5rem, 8vw, 6.5rem);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-bottom: 1rem;
}

.section-head h2 {
  max-width: 40rem;
}

.num {
  margin-right: 0.7em;
  font: 500 0.36em/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--accent);
  vertical-align: 0.5em;
}

.tag {
  font: 700 0.75rem/1.4 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-intro {
  margin: 0 0 2.25rem;
  max-width: 40rem;
  color: var(--ink-soft);
}

.card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* 01: why it matters */
.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  counter-reset: principle;
}

.principles li {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  counter-increment: principle;
}

.principles li::before {
  content: counter(principle, decimal-leading-zero);
  display: block;
  margin-bottom: 2.5rem;
  font: 500 0.875rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--accent);
}

.principles h3 {
  margin-bottom: 0.75rem;
}

.principles p {
  color: var(--ink-soft);
}

/* 02-03: integration tabs */
.integration-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 1rem;
  padding: 0.3rem;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow);
}

.itab {
  padding: 0.6rem 1.1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font: 600 0.9375rem/1 var(--font-body);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}

.itab:hover {
  background: var(--paper);
  color: var(--ink);
}

.itab.active {
  background: var(--ink);
  color: var(--on-ink);
}

.integration {
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.integration h3 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.integration p {
  color: var(--ink-soft);
}

.integration-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  align-items: baseline;
  gap: 0.75rem clamp(1.5rem, 4vw, 3rem);
}

.integration-copy h3 {
  margin-bottom: 0;
}

.integration-copy .adapter-link {
  grid-column: 2;
  justify-self: start;
}

.adapter-link {
  font-weight: 700;
  text-decoration-color: var(--eye);
}

/* 04: what gets caught */
.caught-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.caught-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.caught-markup {
  flex: 1;
  padding: 1.25rem 1.25rem 1rem;
}

.caught-markup pre {
  padding: 1rem 1.1rem;
  font-size: 0.78rem;
  line-height: 1.6;
}

.caught-result {
  padding: 1rem 1.25rem 1.35rem;
  border-top: 1px solid var(--rule);
}

.caught-result .result-topline {
  margin-bottom: 0.85rem;
}

.caught-reasons {
  display: grid;
  gap: 0.4rem;
  list-style: none;
  font-size: 0.875rem;
}

.caught-reasons code {
  overflow-wrap: anywhere;
}

.no-reasons {
  color: var(--muted);
}

.caught-card-wide {
  grid-column: 1 / -1;
  flex-direction: row;
}

.caught-card-wide .caught-result {
  flex: 0 0 38%;
  border-top: 0;
  border-left: 1px solid var(--rule);
  padding-top: 1.25rem;
}

/* 05: decision path, on the dark panel. It re-scopes the colour tokens. */
.panel-dark {
  --ink: #e6f0ea;
  --ink-soft: #bfd0c6;
  --muted: #8fa79b;
  --rule: rgb(230 240 234 / 0.12);
  --rule-strong: rgb(230 240 234 / 0.3);
  --on-ink: #0e1f18;
  --accent: #4cc38a;
  --accent-strong: #7ad9aa;
  --on-accent: #0e1f18;
  --stop-bg: #3d1f17;
  --stop-ink: #ffb39e;
  --quarantine-bg: #3a3014;
  --quarantine-ink: #ffd66b;
  --log-bg: rgb(230 240 234 / 0.1);
  --log-ink: #c3d2ca;
  --continue-bg: #143829;
  --continue-ink: #7ad9aa;
  background: var(--panel);
  color: var(--ink);
  border: 1px solid rgb(76 195 138 / 0.14);
  border-radius: var(--radius-lg);
}

.path {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.25rem);
  list-style: none;
}

.steps li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

.stage {
  display: block;
  margin-bottom: 1.5rem;
  font: 500 0.875rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--accent);
}

.steps h3 {
  margin-bottom: 0.6rem;
  font-size: 1.25rem;
}

.steps p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.panel-dark :not(pre) > code {
  background: rgb(230 240 234 / 0.1);
}

.bands {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 1.5rem 3rem;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid var(--rule);
}

.band-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  list-style: none;
}

.band-strip li {
  display: grid;
  justify-items: start;
  gap: 0.6rem;
  padding: 0.9rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
}

.band-range {
  font: 500 0.875rem/1 var(--font-mono);
  color: var(--ink);
}

.band-note {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.band-note b {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* 06: detection surface. A table that reads like the brand sheet's fact rows. */
.spec {
  padding: clamp(0.5rem, 2vw, 1rem) clamp(1.25rem, 4vw, 2.75rem);
}

.spec-sheet {
  width: 100%;
  border-collapse: collapse;
}

.spec-sheet th,
.spec-sheet td {
  padding: 1.25rem 1rem 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.spec-sheet tbody tr:last-child th,
.spec-sheet tbody tr:last-child td {
  border-bottom: 0;
}

.spec-sheet thead th {
  font: 700 0.6875rem/1.4 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-sheet tbody th {
  width: 22%;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.spec-sheet td {
  color: var(--ink-soft);
}

.spec-sheet td:last-child {
  width: 18%;
  padding-right: 0;
  font: 500 0.8125rem/1.6 var(--font-mono);
  color: var(--accent);
}

/* 07: pilot */
.pilot {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.5rem, 4vw, 3rem);
}

.pilot h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
}

.pilot p {
  color: var(--ink-soft);
}

.facts {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.5rem;
  list-style: none;
  color: var(--ink-soft);
}

.pilot figure {
  align-self: start;
  margin: 0;
}

.pilot figcaption {
  margin-top: 0.75rem;
  font: 400 0.8125rem/1.5 var(--font-mono);
  color: var(--muted);
}

/* 08: FAQ */
.faq-list {
  padding: 0.5rem clamp(1.25rem, 4vw, 2.75rem);
}

.faq-list details {
  border-bottom: 1px solid var(--rule);
}

.faq-list details:last-child {
  border-bottom: 0;
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

/* Plus that turns into a minus. */
.faq-list summary::after {
  content: "";
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 0.75rem 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 0.75rem no-repeat,
    var(--paper);
  transition: transform 260ms var(--ease-out), background-color 160ms ease;
}

.faq-list details[open] summary::after {
  transform: rotate(180deg);
  background:
    linear-gradient(var(--on-accent), var(--on-accent)) center / 0.75rem 2px no-repeat,
    var(--accent);
}

.faq-list details p {
  max-width: 46rem;
  padding-bottom: 1.4rem;
  color: var(--ink-soft);
}

/* ---- Contact: a solid green tile with the single-colour mark ---- */
.contact {
  --ink: #ffffff;
  --ink-soft: rgb(255 255 255 / 0.86);
  --mark-gap: var(--tile);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 3rem;
  align-items: center;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  background: var(--tile);
  color: var(--ink);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.contact p {
  margin-top: 1.25rem;
  color: var(--ink-soft);
  max-width: 36rem;
}

.contact-mail {
  display: inline-block;
  margin-top: 1.75rem;
  color: #ffffff;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration-color: var(--eye);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.25em;
  overflow-wrap: anywhere;
}

.contact-mail:hover {
  color: var(--eye);
}

.contact :focus-visible {
  outline-color: var(--eye);
}

.contact .mark {
  width: clamp(8rem, 18vw, 13rem);
  color: #ffffff;
}

/* ---- Small pages (404) ---- */
.page-head {
  padding-top: clamp(3rem, 8vw, 6rem);
}

.page-head .mark {
  width: 6.5rem;
  margin-bottom: 2rem;
}

.page-head .split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

/* ---- Footer ---- */
.site-footer {
  margin-top: clamp(4rem, 10vw, 7rem);
  padding: 1.75rem 0 2.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 2rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand .mark {
  width: 1.4rem;
  height: 1.4rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-weight: 600;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.footer-note {
  flex-basis: 100%;
  font-size: 0.8125rem;
}

/* ---- Motion: staggered rise for page copy; the large mark grows tail to head, then blinks ---- */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes pop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes blink {
  0%,
  94%,
  100% { transform: scaleY(1); }
  97% { transform: scaleY(0.1); }
}

/* Pixel values are SVG user units here; the pupil stays inside the iris at both ends. */
@keyframes glance {
  0%,
  30% { transform: none; }
  38%,
  62% { transform: translate(8.8px, -1.6px); }
  70%,
  100% { transform: none; }
}

.reveal {
  animation: rise 0.9s var(--ease-out) both;
}

.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.35s; }
.d5 { animation-delay: 0.5s; }

.mark-live .seg,
.mark-live .eye,
.mark-live .pupil {
  transform-box: fill-box;
  transform-origin: center;
}

.mark-live .seg {
  animation: pop 0.6s var(--ease-spring) both;
}

.mark-live .s6 { animation-delay: 0.2s; }
.mark-live .s5 { animation-delay: 0.28s; }
.mark-live .s4 { animation-delay: 0.36s; }
.mark-live .s3 { animation-delay: 0.44s; }
.mark-live .s2 { animation-delay: 0.52s; }
.mark-live .s1 { animation-delay: 0.6s; }
.mark-live .s0 { animation-delay: 0.68s; }

.mark-live .eye {
  animation:
    fade 0.3s ease 1.05s both,
    blink 6s ease-in-out 2.5s infinite;
}

.mark-live .pupil {
  animation: glance 9s var(--ease-out) 3.5s infinite;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .mark-live .seg,
  .mark-live .eye,
  .mark-live .pupil {
    animation: none;
  }

  .button,
  .nav-links a,
  .wordmark .mark,
  .scan-btn,
  .result-card,
  .faq-list summary::after,
  .nav-hamburger span {
    transition: none;
  }
}

/* ---- Layout breakpoints ---- */
@media (max-width: 64rem) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bands {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 60rem) {
  .hero,
  .integration-copy,
  .pilot,
  .principles,
  .page-head .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .principles li::before {
    margin-bottom: 1.25rem;
  }

  .integration-copy .adapter-link {
    grid-column: 1;
  }

  /* Collapse the section links into a dropdown; the CTA stays visible. */
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: var(--gutter);
    right: var(--gutter);
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow), 0 12px 32px -12px rgb(14 31 24 / 0.25);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.85rem 1rem;
  }
}

@media (max-width: 44rem) {
  .caught-grid,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .band-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .caught-card-wide {
    flex-direction: column;
  }

  .caught-card-wide .caught-result {
    border-left: 0;
    border-top: 1px solid var(--rule);
  }

  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact .mark {
    order: -1;
    width: 5.5rem;
  }

  /* The spec table stacks into labelled rows. */
  .spec-sheet thead {
    display: none;
  }

  .spec-sheet,
  .spec-sheet tbody,
  .spec-sheet tr,
  .spec-sheet th,
  .spec-sheet td {
    display: block;
    width: auto;
  }

  .spec-sheet tr {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--rule);
  }

  .spec-sheet tbody tr:last-child {
    border-bottom: 0;
  }

  .spec-sheet th,
  .spec-sheet tbody th,
  .spec-sheet td,
  .spec-sheet td:last-child {
    width: auto;
    padding: 0;
    border: 0;
  }

  .spec-sheet td {
    margin-top: 0.4rem;
  }

  .pre-copy-btn {
    opacity: 1;
  }
}

@media (max-width: 30rem) {
  .wordmark {
    font-size: 1.3rem;
    gap: 0.55rem;
  }

  .wordmark .mark {
    width: 1.9rem;
    height: 1.9rem;
  }

  .wordmark-by {
    display: none;
  }

  .nav-cta {
    margin-left: 0;
    padding: 0.65rem 0.9rem;
  }

  .button {
    flex: 1 1 auto;
  }

  .scan-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .integration-tabs {
    display: flex;
    border-radius: var(--radius);
  }

  .itab {
    flex: 1 1 auto;
  }

  pre {
    padding: 1rem;
    font-size: 0.75rem;
  }
}
