/* ScrapNel by Lowlands — teal and lavender brand palette */
:root {
  --cream: #f7f4f0;
  --ink: #2a2a2a;
  --card: #ffffff;
  --line: #c8bce0;
  --lavender: #b8a8dc;
  --muted: #887898;
  --teal: #289c94;
  --teal-soft: #4cb4ac;
  --teal-ink: #1e7a74;
  --blush: #f0a8b8;
  --shadow: 0 8px 24px rgba(42, 42, 42, 0.06);
  --radius: 14px;
  --max: 1100px;
  --sticky-header-height: 60px;
  --scroll-offset: 128px;
}
@media (max-width: 699px) {
  :root { --sticky-header-height: 0px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-ink); }
a:hover { color: var(--teal); }
.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: #fff; padding: 8px 12px; z-index: 20;
}
.skip:focus { left: 12px; top: 12px; }

/* Preview ribbon */
.ribbon {
  background: #ebe4f6;
  color: #5a4a78;
  text-align: center;
  font-size: 0.82rem;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}
.ribbon strong { font-weight: 650; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--cream) 92%, white);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}
.header-inner, .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: inherit;
  font-weight: 750; letter-spacing: -0.03em; font-size: 1.15rem;
}
.brand img { width: 36px; height: 36px; border-radius: 50%; }

/* Nav character: subtle CSS-only bob + periodic teeth-laugh flourish */
.brand-face {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  transform-origin: 50% 80%;
  animation: brand-bob 7s ease-in-out infinite;
}
.brand-face img {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.brand-face-laugh {
  opacity: 0;
  animation: brand-grin 7s ease-in-out infinite;
}
@keyframes brand-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-2px) rotate(-2.5deg); }
  50% { transform: translateY(1px) rotate(2deg); }
  75% { transform: translateY(-1px) rotate(-1.5deg); }
}
@keyframes brand-grin {
  0%, 84%, 93%, 100% { opacity: 0; }
  86%, 91% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-face,
  .brand-face-laugh { animation: none; }
  .brand-face-laugh { opacity: 0; }
}
nav { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: flex-end; }
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  padding: 6px 0;
}
nav a:hover, nav a[aria-current="page"] { color: var(--ink); }

/* Hero — follows Iris mockup */
.hero {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px 28px;
}
.face {
  width: min(280px, 62vw);
  height: auto;
  /* GIF is opaque cream #f7f4f0 with a painted shadow; a CSS drop-shadow would box it. */
}
h1 {
  font-size: clamp(2.15rem, 6.5vw, 3.4rem);
  margin: 22px 0 8px;
  letter-spacing: -0.03em;
  font-weight: 750;
  line-height: 1.05;
}
.tag {
  color: var(--teal);
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  font-weight: 550;
  margin: 0 0 10px;
  max-width: 28rem;
}
.lede {
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto;
  font-size: 1.02rem;
}
.hero-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: center; margin-top: 28px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--line);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}
.btn-primary:hover { background: var(--teal-ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); }

/* Sections */
section { padding: 56px 0; }
section h2 {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.section-lead {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 40rem;
}
.what-grid, .how-grid, .price-grid {
  display: grid;
  gap: 16px;
}
.what-grid { grid-template-columns: 1fr; }
.how-grid { grid-template-columns: 1fr; }
.price-grid { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .what-grid { grid-template-columns: repeat(3, 1fr); }
  .how-grid { grid-template-columns: repeat(4, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.panel h3 { margin: 0 0 8px; font-size: 1.05rem; }
.panel p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: #ebe4f6; color: var(--teal-ink);
  font-weight: 700; font-size: 0.85rem;
  margin-bottom: 10px;
}

/* Actor grid */
.toolbar {
  display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 22px;
}
.search {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 11px 16px;
  font: inherit;
  color: var(--ink);
}
.search:focus { outline: 2px solid var(--teal-soft); outline-offset: 2px; }
.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
  appearance: none; border: 1px solid var(--line); background: #fff;
  color: var(--muted); border-radius: 999px;
  padding: 6px 12px; font: inherit; font-size: 0.8rem;
  cursor: pointer;
}
.chip:hover { color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
.card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
  min-height: 100%;
}
a.card, a.card:visited, a.card:hover { color: inherit; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card .name { color: var(--ink); }
.card .name { font-weight: 650; margin: 0 0 6px; letter-spacing: -0.01em; }
.card .desc {
  font-size: 0.9rem; color: var(--muted); line-height: 1.45;
  margin: 0 0 14px; flex: 1;
}
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.pill {
  display: inline-block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}
.cat-block { margin-bottom: 40px; }
.cat-block h3 {
  font-size: 1.15rem;
  margin: 0 0 14px;
  letter-spacing: -0.015em;
}
.cat-count { color: var(--muted); font-weight: 500; font-size: 0.9rem; }
.empty { color: var(--muted); padding: 12px 0 32px; display: none; }
#count-line { color: var(--muted); font-size: 0.92rem; margin: 0 0 8px; }

/* Pricing */
.placeholder-flag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6a4070;
  background: #f6e8ef;
  border-radius: 999px;
  padding: 3px 8px;
  margin-left: 8px;
  vertical-align: middle;
}
.price .panel h3 { color: var(--ink); }
.fine { font-size: 0.85rem; color: var(--muted); margin-top: 18px; }

/* FAQ */
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--teal);
  font-weight: 500;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 10px 0 4px; }

/* Contact */
.contact-box { max-width: 36rem; }
.placeholder { color: var(--muted); }

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
footer .by { margin-top: 6px; }
.note { font-size: 0.75rem; color: #b0a0b8; margin-top: 10px; }

@media (max-width: 699px) {
  .site-header { position: static; }
  nav { display: none; }
  .hero { min-height: auto; padding-top: 32px; }
}


/* Status colour coding, category strips, legend, X pitch, sticky chip bar */
.chips {
  position: sticky;
  top: var(--sticky-header-height, 60px);
  z-index: 8;
  background: color-mix(in srgb, var(--cream) 94%, white);
  backdrop-filter: blur(10px);
  padding: 8px 0 10px;
  margin-left: -4px;
  margin-right: -4px;
  padding-left: 4px;
  padding-right: 4px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}
@media (max-width: 699px) {
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    top: 0;
  }
  .chips .chip { flex: 0 0 auto; }
}
.cat-block,
#grid-top,
.card[id^="actor-"] {
  scroll-margin-top: var(--scroll-offset);
}
.card {
  position: relative;
  padding-left: 24px;
  border-left-color: var(--cat-strip, var(--line));
  border-left-width: 4px;
}
.card::before {
  content: "";
  position: absolute;
  left: -1px;
  top: -1px;
  bottom: -1px;
  width: 4px;
  background: var(--cat-strip, var(--line));
  border-radius: var(--radius) 0 0 var(--radius);
}
article.card,
.card:not(a) {
  cursor: default;
}
article.card:hover,
.card:not(a):hover {
  transform: none;
  box-shadow: none;
}
.pill-ready {
  color: var(--teal-ink);
  border-color: color-mix(in srgb, var(--teal) 50%, var(--line));
  background: color-mix(in srgb, var(--teal) 12%, #fff);
}
.pill-key {
  color: #5a4a78;
  border-color: color-mix(in srgb, var(--lavender) 75%, var(--line));
  background: #ebe4f6;
}
.pill-fix {
  color: #7a3040;
  border-color: color-mix(in srgb, var(--blush) 75%, var(--line));
  background: color-mix(in srgb, var(--blush) 24%, #fff);
}
.pill-soon {
  color: var(--muted);
  border-color: var(--line);
  background: #f3f0f6;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: 1px;
  background: currentColor;
}
.pill-ready .status-dot { background: var(--teal); }
.pill-key .status-dot { background: var(--lavender); }
.pill-fix .status-dot { background: var(--blush); }
.pill-soon .status-dot { background: var(--muted); }
.pill-note {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  align-self: center;
}
.legend {
  margin: 4px 0 22px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.legend-item {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
}
.legend-note {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.x-pitch {
  padding: 12px 0 8px;
}
.x-pitch-panel {
  border-color: color-mix(in srgb, var(--lavender) 70%, var(--line));
  background: linear-gradient(180deg, #f4f0fa 0%, #fff 70%);
}
.x-pitch-panel h2 {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
}
.x-pitch-panel .x-line {
  margin: 0 0 8px;
  font-size: 1.02rem;
  color: var(--ink);
}
.x-pitch-panel .x-disclaimer {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--muted);
}
.x-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.x-links a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-ink);
  background: #fff;
  border: 1px solid var(--line);
}
.x-links a:hover {
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: var(--shadow);
}
#grid-top { height: 0; }

/* Category left-edge colours — teal / lavender / blush family */
.cat-public-data-government, .card-cat-public-data-government { --cat-strip: #1e7a74; }
.cat-property-real-estate, .card-cat-property-real-estate { --cat-strip: #289c94; }
.cat-finance-commodities, .card-cat-finance-commodities { --cat-strip: #4cb4ac; }
.cat-jobs-hiring, .card-cat-jobs-hiring { --cat-strip: #3a8b9c; }
.cat-e-commerce-products, .card-cat-e-commerce-products { --cat-strip: #7b9bc4; }
.cat-developer-tools, .card-cat-developer-tools { --cat-strip: #8f9ad0; }
.cat-websites-seo, .card-cat-websites-seo { --cat-strip: #b8a8dc; }
.cat-security-compliance, .card-cat-security-compliance { --cat-strip: #9b8cc8; }
.cat-health-research, .card-cat-health-research { --cat-strip: #c9a0c4; }
.cat-transit-maps, .card-cat-transit-maps { --cat-strip: #5aa8a0; }
.cat-crypto-markets, .card-cat-crypto-markets { --cat-strip: #2f8f88; }
.cat-media-apps, .card-cat-media-apps { --cat-strip: #d9a0b4; }
.cat-news-social, .card-cat-news-social { --cat-strip: #f0a8b8; }
.cat-documents-data, .card-cat-documents-data { --cat-strip: #a898c8; }
.cat-api-scrapers, .card-cat-api-scrapers { --cat-strip: #8b6cc4; }


/* Actor detail pages */
.detail { padding: 28px 0 64px; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 22px;
}
.breadcrumb a { text-decoration: none; color: var(--teal-ink); }
.breadcrumb a:hover { color: var(--teal); }
.crumb-sep { color: var(--line); }
.breadcrumb [aria-current="page"] {
  color: var(--ink);
  max-width: 100%;
}
.detail-head { margin: 0 0 28px; }
.detail-kicker {
  margin: 0 0 8px;
  font-size: 0.8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal-ink);
  font-weight: 650;
}
.detail-head h1 {
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
  font-weight: 750;
  line-height: 1.15;
  text-align: left;
}
.detail-head .lede {
  margin: 14px 0 0;
  max-width: 42rem;
  text-align: left;
}
.detail-grid {
  display: grid;
  gap: 16px;
}
.detail-grid .panel h2 {
  font-size: 1.08rem;
  margin: 0 0 10px;
}
.field-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.field-list li {
  margin: 0;
}
.field-name {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.82rem;
  color: var(--ink);
}
.price-line {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--teal-ink);
  margin: 0 0 8px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 10px;
}
.fine-cta, .muted { color: var(--muted); }
.detail-head .pills { margin-top: 4px; gap: 8px; align-items: center; }
@media (min-width: 800px) {
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid .panel:first-child { grid-column: 1 / -1; }
}

.card-price {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--teal-ink);
  margin: 0 0 10px;
}
#access-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#access-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--ink);
}
#access-form input,
#access-form textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
#access-form button { align-self: flex-start; }
