:root {
  --ink: #111418;
  --muted: #56606b;
  --line: #dce2e7;
  --soft: #f5f7f8;
  --teal: #007f79;
  --teal-dark: #006560;
  --coral: #f25f4c;
  --yellow: #f2b705;
  --max: 1240px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
a { color: inherit; }
button, input { font: inherit; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); position: sticky; top: 0; z-index: 20; }
.header-inner { min-height: 66px; display: flex; align-items: center; gap: 38px; }
.brand { font-size: 25px; font-weight: 800; text-decoration: none; }
.nav { display: flex; align-items: center; gap: 24px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { padding: 23px 0 19px; border-bottom: 3px solid transparent; text-decoration: none; white-space: nowrap; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal-dark); border-bottom-color: var(--teal); }

.hero { padding: 52px 0 28px; }
.eyebrow { margin: 0 0 10px; color: var(--teal-dark); font-size: 13px; font-weight: 750; text-transform: uppercase; }
h1 { max-width: 850px; margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.02; letter-spacing: 0; }
.lede { max-width: 770px; margin: 18px 0 0; color: #374151; font-size: 19px; line-height: 1.55; }
.search-wrap { max-width: 820px; margin-top: 30px; position: relative; }
.search-wrap svg { position: absolute; left: 17px; top: 17px; width: 20px; color: var(--muted); }
.search { width: 100%; height: 54px; border: 1px solid #bfc9d2; padding: 0 18px 0 49px; border-radius: 6px; outline: none; }
.search:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,127,121,.13); }

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 24px; }
.filter { min-height: 40px; padding: 0 15px; border: 1px solid #cbd4db; border-radius: 5px; background: #fff; cursor: pointer; }
.filter:hover, .filter.active { color: var(--teal-dark); border-color: var(--teal); background: #f1fbfa; }

.section { padding: 20px 0 54px; }
.section[id] { scroll-margin-top: 86px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.section h2 { margin: 0; font-size: 27px; }
.section-note { color: var(--muted); margin: 7px 0 0; line-height: 1.5; }
.result-count { color: var(--muted); white-space: nowrap; }

.tool-table { border-top: 1px solid var(--line); }
.tool-row { display: grid; grid-template-columns: minmax(230px, 1.1fr) minmax(270px, 1.5fr) 120px 120px 135px; align-items: center; gap: 22px; min-height: 79px; padding: 12px 5px; border-bottom: 1px solid var(--line); }
.tool-row.header { min-height: 45px; color: var(--muted); font-size: 13px; }
.tool-name { display: flex; align-items: center; gap: 13px; min-width: 0; }
.tool-name img { width: 44px; height: 44px; border-radius: 7px; object-fit: cover; flex: 0 0 auto; }
.tool-initial { width: 44px; height: 44px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; background: var(--teal); color: #fff; font-size: 13px; font-weight: 800; }
.tool-initial.coral { background: var(--coral); }
.tool-initial.yellow { background: var(--yellow); color: #332900; }
.tool-name strong { display: block; line-height: 1.3; }
.tool-copy, .tool-source, .tool-price { color: #374151; line-height: 1.45; }
.price-quantity { display: block; font-size: 12px; color: var(--muted); }
.tool-link { color: var(--teal-dark); font-weight: 700; text-decoration: none; white-space: nowrap; }
.tool-link:hover { text-decoration: underline; }
.empty { display: none; padding: 40px 0; color: var(--muted); text-align: center; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.category { min-height: 190px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.category:hover { background: var(--soft); }
.category-mark { width: 38px; height: 7px; margin-bottom: 27px; background: var(--teal); }
.category:nth-child(2n) .category-mark { background: var(--coral); }
.category:nth-child(3n) .category-mark { background: var(--yellow); }
.category h3 { margin: 0 0 9px; font-size: 21px; }
.category p { margin: 0; color: var(--muted); line-height: 1.5; }
.category span { display: inline-block; margin-top: 20px; color: var(--teal-dark); font-weight: 700; }

.mcp-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft); }
.mcp-inner { padding: 36px 0; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.mcp-inner h2 { margin: 0; font-size: 25px; }
.mcp-inner p { max-width: 720px; margin: 8px 0 0; color: var(--muted); line-height: 1.5; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 17px; border-radius: 5px; background: var(--teal); color: #fff; font-weight: 750; text-decoration: none; white-space: nowrap; }
.button:hover { background: var(--teal-dark); }

.site-footer { padding: 28px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--teal-dark); }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.guide-card { min-height: 260px; padding: 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.guide-card:hover { background: var(--soft); }
.guide-card .eyebrow { margin-bottom: 20px; }
.guide-card h2 { margin: 0 0 12px; font-size: 23px; line-height: 1.2; }
.guide-card p { color: var(--muted); line-height: 1.55; }
.guide-card span { display: inline-block; margin-top: 14px; color: var(--teal-dark); font-weight: 750; }

.article-shell { width: min(calc(100% - 40px), 1100px); margin-inline: auto; }
.article-hero { padding: 48px 0 34px; border-bottom: 1px solid var(--line); }
.article-hero h1 { max-width: 900px; font-size: clamp(38px, 5vw, 58px); }
.article-cover { margin: 30px 0 0; overflow: hidden; border-radius: 7px; }
.article-cover img { display: block; width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }
.article-meta { margin-top: 21px; color: var(--muted); font-size: 14px; }
.article-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 64px; padding: 42px 0 70px; }
.toc { position: sticky; top: 94px; align-self: start; border-top: 3px solid var(--teal); padding-top: 15px; }
.toc strong { display: block; margin-bottom: 10px; }
.toc a { display: block; padding: 6px 0; color: var(--muted); font-size: 14px; text-decoration: none; }
.toc a:hover { color: var(--teal-dark); }
.article-body { min-width: 0; }
.article-body h2 { margin: 44px 0 13px; font-size: 29px; line-height: 1.2; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin: 28px 0 10px; font-size: 20px; }
.article-body p, .article-body li { color: #303842; font-size: 17px; line-height: 1.7; }
.article-body ul, .article-body ol { padding-left: 23px; }
.article-body li { margin: 7px 0; }
.article-body code { padding: 2px 5px; background: #eef2f3; border-radius: 3px; font-size: .92em; }
.article-body pre { overflow-x: auto; margin: 18px 0; padding: 18px; border-left: 4px solid var(--teal); background: #11171a; color: #e8f0ef; border-radius: 3px; line-height: 1.55; }
.article-body pre code { padding: 0; background: transparent; color: inherit; }
.callout { margin: 24px 0; padding: 18px 20px; border: 1px solid #b8d9d6; background: #f2fbfa; }
.callout strong { display: block; margin-bottom: 6px; }
.field-table { width: 100%; border-collapse: collapse; margin: 18px 0; }
.field-table th, .field-table td { padding: 11px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.field-table th { color: var(--muted); font-size: 13px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 17px 0; }
.faq summary { cursor: pointer; font-weight: 750; }
.faq p { margin-bottom: 0; }
.article-cta { margin-top: 42px; padding: 26px; border: 1px solid var(--line); }
.article-cta h2 { margin-top: 0; }

@media (max-width: 860px) {
  .guide-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; }
}

@media (max-width: 980px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 0; padding-top: 14px; }
  .nav { width: 100%; }
  .tool-row { grid-template-columns: minmax(210px, 1fr) minmax(260px, 1.4fr) 110px 120px; }
  .tool-row > :nth-child(3) { display: none; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding-top: 36px; }
  h1 { font-size: 39px; }
  .lede { font-size: 17px; }
  .section-head, .mcp-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
  .tool-row.header { display: none; }
  .tool-row { grid-template-columns: 1fr auto; gap: 8px 14px; padding: 17px 2px; }
  .tool-name { grid-column: 1 / -1; }
  .tool-copy { grid-column: 1 / -1; font-size: 14px; }
  .tool-source { display: none; }
  .tool-price { font-size: 14px; }
  .category-grid { grid-template-columns: 1fr; }
  .category { min-height: 160px; }
  .article-shell { width: min(calc(100% - 28px), 1100px); }
  .article-hero { padding-top: 34px; }
  .article-cover img { aspect-ratio: 16 / 9; }
  .article-body p, .article-body li { font-size: 16px; }
  .field-table { display: block; overflow-x: auto; }
}

@media (max-width: 760px) {
  .product-page .linkedin-hero-layout { grid-template-columns: minmax(0, 1fr) 92px; align-items: start; gap: 14px; }
  .product-page .linkedin-hero-media img { aspect-ratio: 1 / 1; }
  .product-page .hero-actions { grid-column: 1 / -1; }
}

/* Neuton Scrapes directory */
.header-inner { gap: 34px; }
.brand { white-space: nowrap; }
.header-action { margin-left: auto; min-height: 38px; display: inline-flex; align-items: center; gap: 8px; padding: 0 13px; border: 1px solid #aeb8c0; border-radius: 5px; font-size: 14px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.header-action:hover { border-color: var(--ink); }

.directory-hero { border-bottom: 1px solid var(--line); padding: 38px 0 30px; }
.hero-layout { display: grid; grid-template-columns: minmax(390px, .88fr) minmax(520px, 1.12fr); align-items: center; gap: 44px; }
.hero-layout > * { min-width: 0; max-width: 100%; }
.hero-copy h1 { max-width: none; font-size: 64px; line-height: 1; }
.hero-copy .lede { max-width: 620px; margin-top: 14px; font-size: 18px; }
.hero-media { min-width: 0; margin: 0; overflow: hidden; }
.hero-media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.directory-hero .hero-media { width: 100%; max-width: 500px; justify-self: end; }
.directory-hero .hero-media img { aspect-ratio: 1 / 1; object-fit: contain; }
.search-label { display: block; margin-top: 28px; color: var(--muted); font-size: 13px; font-weight: 750; }
.directory-hero .search-wrap { width: 100%; max-width: 660px; margin-top: 7px; }
.directory-hero .filters { margin: 12px 0 0; gap: 7px; }
.directory-hero .filter { min-height: 36px; padding: 0 12px; font-size: 13px; }
.directory-hero .filter.active { background: var(--teal); color: #fff; }
.portfolio-hero .hero-layout { grid-template-columns: minmax(0, 1fr); }
.portfolio-hero .hero-copy .lede { max-width: 810px; }
.portfolio-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 20px 0; }
.portfolio-sources img { display: block; width: 56px; height: 56px; object-fit: contain; }
.portfolio-hero .hero-actions a { gap: 8px; }
@media (max-width: 680px) {
  .portfolio-hero .hero-copy .lede { font-size: 16px; line-height: 1.5; }
  .portfolio-hero .hero-actions { margin-top: 18px; }
  .portfolio-hero .hero-actions a { padding-inline: 12px; }
  .portfolio-sources { gap: 12px; margin: 16px 0; }
  .portfolio-sources img { width: 40px; height: 40px; }
  .portfolio-hero .search-label { margin-top: 18px; }
}
@media (max-width: 380px) {
  .portfolio-page .header-action { display: none; }
  .portfolio-page .header-inner { gap: 8px; }
  .portfolio-hero .hero-copy h1 { font-size: 34px; }
  .portfolio-hero .hero-actions a { font-size: 14px; padding-inline: 10px; }
  .portfolio-sources { gap: 8px; }
}

.directory-section { padding-top: 30px; scroll-margin-top: 72px; }
.tool-row { grid-template-columns: minmax(240px, 1.15fr) minmax(300px, 1.6fr) minmax(145px, .75fr) 115px 50px; }
.tool-source { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.category-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: var(--teal); }
.category-dot.company, .category-dot.compliance, .category-dot.reviews { background: var(--coral); }
.category-dot.research, .category-dot.finance, .category-dot.uk { background: var(--yellow); }
.category-dot.developer { background: var(--ink); }
.tool-open { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 5px; font-size: 20px; text-decoration: none; }
.tool-open:hover { border-color: var(--teal); color: var(--teal-dark); }
.show-all { min-height: 44px; margin: 24px auto 0; display: block; padding: 0 18px; border: 1px solid var(--ink); border-radius: 5px; background: #fff; color: var(--ink); cursor: pointer; font-weight: 750; }
.show-all:hover { background: var(--ink); color: #fff; }
.show-all[hidden] { display: none; }

.collections-section { padding-top: 40px; border-top: 1px solid var(--line); background: var(--soft); scroll-margin-top: 72px; }
.collection-rail { border-top: 1px solid #cfd6dc; }
.collection { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; align-items: center; gap: 22px; min-height: 112px; padding: 18px 4px; border-bottom: 1px solid #cfd6dc; text-decoration: none; }
.collection:hover { background: #fff; }
.collection-code { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; background: var(--teal); color: #fff; font-size: 13px; font-weight: 800; }
.collection-code.coral { background: var(--coral); }
.collection-code.yellow { background: var(--yellow); color: #2d2600; }
.collection h3 { margin: 0; font-size: 20px; }
.collection p { margin: 6px 0 0; color: var(--muted); line-height: 1.45; }
.collection strong { color: var(--teal-dark); font-size: 14px; white-space: nowrap; }

.blog-preview { padding-top: 54px; }
.text-link { color: var(--teal-dark); font-weight: 750; text-decoration: none; white-space: nowrap; }
.text-link:hover { text-decoration: underline; }
.article-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.article-card { min-width: 0; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; }
.article-card:hover { background: var(--soft); }
.article-card img { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; border-radius: 5px; }
.article-card > img { aspect-ratio: 1 / 1; object-fit: contain; background: #f6f8fb; }
.article-card div { padding-top: 17px; }
.article-card span { color: var(--teal-dark); font-size: 12px; font-weight: 750; }
.article-card h3 { margin: 9px 0 8px; font-size: 19px; line-height: 1.25; }
.article-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.mcp-band { scroll-margin-top: 72px; }
.mcp-inner { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(420px, 1.15fr) auto; }
.mcp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.mcp-steps li { min-height: 58px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border-left: 1px solid #cfd6dc; font-size: 13px; font-weight: 700; }
.mcp-steps b { color: var(--teal-dark); }
.footer-inner { align-items: center; }

.blog-hero { padding: 54px 0 35px; border-bottom: 1px solid var(--line); }
.blog-hero h1 { max-width: 780px; font-size: 56px; }
.blog-hero .lede { max-width: 700px; }
.blog-list { padding-top: 38px; }
.blog-list .article-grid { grid-template-columns: repeat(2, 1fr); }
.blog-list .article-card { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; min-height: 220px; }
.blog-list .article-card img { aspect-ratio: 1 / 1; }

.linkedin-hero { border-bottom: 1px solid var(--line); }
.linkedin-hero-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); align-items: center; gap: 52px; }
.linkedin-hero-media { margin: 0; }
.linkedin-hero-media img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 7px; }
.youtube-hero-layout { grid-template-columns: minmax(360px, .82fr) minmax(520px, 1.18fr); }
.youtube-hero-media img { aspect-ratio: 16 / 9; }
.youtube-decision-grid a:last-child { grid-column: span 2; }
.youtube-article-grid { grid-template-columns: minmax(280px, 520px); }
.workflow-table td:first-child { font-weight: 750; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.secondary-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid #aeb8c0; border-radius: 5px; color: var(--ink); font-weight: 750; text-decoration: none; }
.secondary-button:hover { border-color: var(--ink); }
.decision-section { padding-top: 48px; background: var(--soft); }
.decision-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #cfd6dc; border-left: 1px solid #cfd6dc; }
.decision-grid a { min-height: 230px; padding: 24px; border-right: 1px solid #cfd6dc; border-bottom: 1px solid #cfd6dc; text-decoration: none; }
.decision-grid a:hover { background: #fff; }
.decision-grid span, .evidence-grid span { color: var(--teal-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.decision-grid h3 { margin: 18px 0 10px; font-size: 20px; line-height: 1.3; }
.decision-grid p, .evidence-grid p { margin: 0; color: var(--muted); line-height: 1.55; }
.collection-search { margin: 0 0 24px; }
.evidence-band { border-top: 1px solid var(--line); background: var(--soft); padding: 40px 0; }
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 42px; }
.evidence-grid strong { display: block; margin: 9px 0 7px; font-size: 19px; }

@media (max-width: 1120px) {
  .hero-layout { grid-template-columns: .9fr 1.1fr; gap: 28px; }
  .hero-copy h1 { font-size: 54px; }
  .header-inner { gap: 24px; }
  .nav { gap: 18px; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
  .mcp-inner { grid-template-columns: 1fr; }
  .decision-grid { grid-template-columns: repeat(2, 1fr); }
  .mcp-steps li:first-child { border-left: 0; }
}

@media (max-width: 980px) {
  .header-inner { flex-direction: row; align-items: center; flex-wrap: wrap; padding-top: 0; }
  .nav { order: 3; width: 100%; }
  .header-action { margin-left: auto; }
  .hero-layout { grid-template-columns: 1fr; }
  .hero-media { max-height: 390px; }
  .directory-hero .hero-media { width: min(390px, 100%); max-height: none; justify-self: center; }
  .tool-row { grid-template-columns: minmax(230px, 1fr) minmax(290px, 1.4fr) 110px 50px; }
  .tool-row > :nth-child(3) { display: none; }
  .linkedin-hero-layout { grid-template-columns: 1fr; }
  .linkedin-hero-media { max-width: 420px; }
  .youtube-hero-media { max-width: none; }
  .youtube-decision-grid a:last-child { grid-column: auto; }
}

@media (max-width: 680px) {
  .brand { font-size: 21px; }
  .header-action { min-height: 34px; font-size: 12px; }
  .directory-hero { padding-top: 30px; }
  .hero-copy h1 { font-size: 44px; }
  .hero-media { width: calc(100% + 28px); max-width: none; margin-inline: -14px; }
  .directory-hero .hero-media { width: min(340px, 84vw); margin-inline: auto; }
  .directory-hero .filters { width: 100%; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .directory-hero .filter { flex: 0 0 auto; }
  .tool-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .tool-row > :nth-child(4) { display: block; }
  .collection { grid-template-columns: 48px minmax(0, 1fr); }
  .collection strong { grid-column: 2; }
  .article-grid, .blog-list .article-grid { grid-template-columns: 1fr; }
  .blog-list .article-card { grid-template-columns: 110px minmax(0, 1fr); min-height: 160px; }
  .mcp-steps { grid-template-columns: repeat(2, 1fr); }
  .mcp-steps li:nth-child(3) { border-left: 0; border-top: 1px solid #cfd6dc; }
  .mcp-steps li:nth-child(4) { border-top: 1px solid #cfd6dc; }
  .blog-hero h1 { font-size: 44px; }
  .decision-grid, .evidence-grid { grid-template-columns: 1fr; }
  .decision-grid a { min-height: 190px; }
  .freelance-page .linkedin-hero { padding: 24px 0 14px; }
  .freelance-page .linkedin-hero-layout { grid-template-columns: minmax(0, 1fr) 90px; align-items: start; gap: 12px; }
  .freelance-page .linkedin-hero-media { width: 90px; max-width: none; }
}
