:root {
  --ink: #151b1a;
  --muted: #5d6663;
  --paper: #ffffff;
  --soft: #f3f5f2;
  --green: #1d7a58;
  --green-dark: #10543c;
  --coral: #ef6849;
  --sky: #dcecf2;
  --line: #d9dfdc;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

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

svg { width: 1.1rem; height: 1.1rem; stroke-width: 2; }

.site-header {
  height: 70px;
  padding: 0 max(24px, calc((100% - var(--max)) / 2));
  display: flex;
  align-items: center;
  gap: 36px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
  font-size: 1.08rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--green);
  border-radius: 6px;
  font-weight: 900;
}

.header-cta, .icon-command {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 750;
}

.header-cta { margin-left: auto; color: var(--green-dark); }
.header-apify-logo { width: 78px; height: auto; }
.language-switcher { display: inline-flex; align-items: center; gap: 2px; margin-left: 12px; border-left: 1px solid var(--line); padding-left: 12px; font-size: .76rem; font-weight: 800; }
.language-switcher a { min-width: 30px; padding: 7px 6px; color: var(--muted); text-align: center; text-decoration: none; }
.language-switcher a:hover { color: var(--green-dark); }
.language-switcher a[aria-current="page"] { color: white; background: var(--green-dark); }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.quick-links a { border-bottom: 1px solid var(--ink); color: var(--ink); font-weight: 750; text-decoration: none; }
.evidence-note { margin-top: 22px; padding: 16px 18px; border-left: 3px solid var(--coral); background: #fff; color: var(--muted); }

.library-nav { position: relative; z-index: 15; border-bottom: 1px solid var(--line); background: #f7f8f6; }
.library-nav .section-inner { position: relative; }
.library-menu { margin: 0; border: 0; }
.library-menu > summary {
  min-height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  cursor: pointer;
}

.library-menu > summary::-webkit-details-marker { display: none; }
.library-menu > summary::after { content: none; }
.library-trigger { display: inline-flex; align-items: center; gap: 8px; color: var(--green-dark); font-size: .8rem; font-weight: 850; }
.current-path { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .76rem; font-weight: 650; }
.current-path svg { width: 13px; height: 13px; }
.menu-chevron { margin-left: auto; transition: transform .18s ease; }
.library-menu[open] .menu-chevron { transform: rotate(180deg); }

.mega-menu {
  position: absolute;
  top: 48px;
  left: 0;
  width: 100%;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 18px 38px rgba(21, 27, 26, .14);
}

.mega-menu section { padding-top: 16px; border-top: 3px solid var(--ink); }
.menu-topic-heading { margin-bottom: 16px; display: flex; align-items: center; gap: 9px; color: var(--green-dark); }
.menu-topic-heading h2 { margin: 0; color: var(--ink); font-size: 1.05rem; }
.mega-menu section > span, .mega-menu section > a {
  padding: 10px 0;
  display: block;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
  text-decoration: none;
}

.mega-menu .menu-current { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--green-dark); font-weight: 800; }
.menu-current span { padding: 2px 5px; border: 1px solid var(--green); font-size: .58rem; text-transform: uppercase; }
.menu-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .72rem; }

.article-hero { padding: 0 0 34px; }
.article-masthead { padding-top: 28px; padding-bottom: 28px; }
.breadcrumbs {
  margin: 0 0 34px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .78rem;
}

.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--green-dark); }
.breadcrumbs svg { width: 14px; height: 14px; }

.eyebrow, .section-kicker {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1, h2, h3 { line-height: 1.12; letter-spacing: 0; }

h1 {
  max-width: 940px;
  margin: 0;
  font-size: 3.4rem;
  font-weight: 880;
}

.hero-copy {
  max-width: 760px;
  margin: 16px 0 20px;
  color: #36403d;
  font-size: 1.08rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button-primary { color: white; background: var(--green); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { color: var(--ink); background: rgba(255,255,255,.86); border-color: #aeb7b3; }
.button-dark { color: white; background: var(--ink); white-space: nowrap; }

.affiliate-note {
  max-width: 680px;
  margin: 10px 0 0;
  color: #4e5855;
  font-size: .78rem;
}

.workflow-visual {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  background: white;
}

.workflow-caption { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.workflow-caption span { color: var(--green-dark); font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.workflow-caption strong { font-size: .9rem; }
.workflow-stages {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px minmax(0, .8fr) 54px minmax(0, 1.1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.workflow-stage { min-width: 0; min-height: 220px; padding: 18px; }
.input-stage { background: var(--sky); }
.actor-stage { background: #192522; color: white; text-align: center; }
.output-stage { background: #fff3ef; }
.stage-heading { display: flex; align-items: center; gap: 9px; font-size: .78rem; }
.stage-heading > span { color: var(--coral); font-weight: 900; }
.stage-heading code { margin-left: auto; color: var(--muted); font-size: .7rem; }
.actor-stage .stage-heading { text-align: left; }
.actor-stage .stage-heading > span, .actor-stage > p { color: #74d0aa; }
.input-stage dl { margin: 16px 0 0; }
.input-stage dl > div { padding: 8px 0; border-top: 1px solid rgba(21,27,26,.13); }
.input-stage dt { color: var(--muted); font-family: "Cascadia Code", Consolas, monospace; font-size: .68rem; }
.input-stage dd { margin: 2px 0 0; font-size: .82rem; font-weight: 800; }
.workflow-connector { display: grid; place-items: center; color: var(--green-dark); background: white; }
.actor-process-icon { width: 48px; height: 48px; margin: 18px auto 12px; display: grid; place-items: center; border: 1px solid #5d6a65; color: #74d0aa; }
.actor-process-icon svg { width: 25px; height: 25px; }
.actor-stage h3 { margin: 0 0 4px; font-size: 1.05rem; }
.actor-stage > code { color: #aebbb6; font-size: .65rem; }
.actor-stage > p { margin: 14px 0 0; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: .76rem; font-weight: 800; }
.mini-table { margin-top: 22px; border: 1px solid #edc4b8; background: white; overflow: hidden; }
.mini-table > div { display: grid; grid-template-columns: 1.1fr .8fr 1fr; }
.mini-table > div + div { border-top: 1px solid #efd8d1; }
.mini-table strong, .mini-table span { min-width: 0; padding: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; }
.mini-table strong { background: #f3ddd6; text-transform: uppercase; }
.workflow-visual figcaption { padding: 8px 2px; color: var(--muted); font-size: .75rem; }

.section-inner { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

.home-intro { padding: 38px 0 30px; border-bottom: 1px solid var(--line); }
.home-intro-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 54px; align-items: end; }
.home-intro h1 { font-size: 3rem; }
.home-intro p { max-width: 720px; margin: 14px 0 0; color: var(--muted); }
.guide-search { display: grid; gap: 8px; }
.guide-search label { font-size: .78rem; font-weight: 800; color: var(--green-dark); }
.guide-search-field { min-height: 50px; padding: 0 14px; display: flex; align-items: center; gap: 10px; border: 1px solid #aeb7b3; background: white; }
.guide-search-field input { min-width: 0; width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font: inherit; }
.directory { padding: 18px 0 64px; }
.category-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 54px; }
.category-group { padding: 32px 0; border-bottom: 1px solid var(--line); }
.category-group-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.category-group-heading h2 { margin: 0; font-size: 1.75rem; }
.category-group-heading a { flex: 0 0 auto; color: var(--green-dark); font-size: .78rem; font-weight: 800; text-decoration: none; }
.article-list { margin: 0; padding: 0; list-style: none; }
.article-list li + li { border-top: 1px solid var(--line); }
.article-list a { padding: 13px 0; display: grid; grid-template-columns: 1fr auto; gap: 18px; text-decoration: none; }
.article-list strong { display: block; line-height: 1.3; }
.article-list span { color: var(--muted); font-size: .78rem; }
.article-list svg { margin-top: 3px; color: var(--green-dark); }
.trust-band { padding: 42px 0; background: var(--sky); }
.trust-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 34px; }
.trust-grid h2 { grid-column: 1 / -1; margin-bottom: 0; font-size: 2.2rem; }
.trust-grid article { padding-top: 14px; border-top: 2px solid var(--ink); }
.trust-grid h3 { margin: 0 0 7px; font-size: 1rem; }
.trust-grid p { margin: 0; color: var(--muted); font-size: .88rem; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: .76rem; }
.legal-nav a { color: var(--green-dark); }
[data-directory-item][hidden] { display: none; }
.directory-empty { display: none; padding: 28px 0; color: var(--muted); }
.directory-empty.is-visible { display: block; }

.outcome-band { background: var(--sky); padding: 54px 0; }

.actor-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  align-items: start;
  gap: 42px;
}

h2 { margin: 0 0 14px; font-size: 3.15rem; }
.actor-description > p, .section-heading > p, .final-cta p { color: var(--muted); max-width: 680px; }
.actor-description .actor-id { margin: -8px 0 18px; color: var(--green-dark); }
.actor-id code, .recipe-heading code { overflow-wrap: anywhere; word-break: break-word; }

.maintainer {
  margin: 22px 0 18px;
  padding: 18px 0;
  display: flex;
  gap: 16px;
  border-top: 1px solid rgba(21, 27, 26, .16);
  border-bottom: 1px solid rgba(21, 27, 26, .16);
}

.maintainer-mark {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font-weight: 900;
}

.maintainer span { display: block; color: var(--muted); font-size: .75rem; }
.maintainer strong { display: block; font-size: 1.1rem; }
.maintainer strong a { text-decoration-color: rgba(21, 27, 26, .35); }
.maintainer p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-dark);
  font-weight: 800;
}

.actor-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(21, 27, 26, .16);
  background: rgba(255,255,255,.72);
}

.actor-stats > div {
  min-height: 96px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 1px solid rgba(21, 27, 26, .14);
}

.actor-stats > div:nth-child(odd) { border-right: 1px solid rgba(21, 27, 26, .14); }
.actor-stats strong { font-size: 1.55rem; line-height: 1.1; }
.actor-stats span { margin-top: 5px; color: var(--muted); font-size: .78rem; }
.actor-stats .stat-main { background: var(--ink); color: white; }
.actor-stats .stat-main svg { margin-bottom: 8px; color: #ffcf5c; fill: #ffcf5c; }
.actor-stats .stat-main span { color: #cbd5d1; }
.stats-date { grid-column: 1 / -1; margin: 0; padding: 12px 16px; color: var(--muted); font-size: .72rem; }

.output-summary {
  margin-top: 40px;
  padding-top: 26px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  border-top: 1px solid rgba(21, 27, 26, .18);
}

.output-summary h3 { margin: 0; font-size: 1.35rem; }

.field-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  list-style: none;
}

.field-list li {
  min-height: 46px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid rgba(21, 27, 26, .12);
  border-radius: 6px;
  font-weight: 700;
}

.field-list svg { color: var(--coral); }

.value-section { padding: 64px 0; }
.answer-section { padding: 46px 0; border-bottom: 1px solid var(--line); background: #f7faf8; }
.answer-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 54px; align-items: start; }
.answer-layout h2 { margin: 5px 0 14px; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.answer-layout p { margin: 0; }
.answer-layout p + p { margin-top: 12px; }
.answer-facts { margin: 0; border-top: 3px solid var(--ink); }
.answer-facts div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.answer-facts dt { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.answer-facts dd { min-width: 0; margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.answer-facts code { font-size: .78rem; }
.value-heading { max-width: 860px; margin-bottom: 34px; }
.value-heading > p:last-child { color: var(--muted); max-width: 760px; }
.method-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.method-comparison article { padding: 24px; border: 1px solid var(--line); border-radius: 8px; }
.method-comparison .method-actor { border-color: var(--green); background: #eef8f3; }
.method-title { display: flex; align-items: center; gap: 11px; }
.method-title svg { color: var(--coral); }
.method-actor .method-title svg { color: var(--green); }
.method-title h3 { margin: 0; font-size: 1.25rem; }
.method-comparison ul { margin: 16px 0 0; padding-left: 20px; color: var(--muted); }
.method-comparison li + li { margin-top: 8px; }
.platform-value {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.platform-value > div { padding: 20px 24px 20px 0; }
.platform-value > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.platform-value strong, .platform-value span { display: block; }
.platform-value span { margin-top: 4px; color: var(--muted); font-size: .85rem; }

.guide { padding: 72px 0; }
.section-heading { max-width: 750px; margin-bottom: 36px; }
.section-heading.compact { margin-bottom: 24px; }

.recipe {
  margin-bottom: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #192522;
  color: white;
  overflow: hidden;
}

.recipe-heading {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #46524f;
  color: #74d0aa;
  font-size: .78rem;
  font-weight: 850;
}

.recipe-heading code { color: white; font-size: .88rem; }

.input-tabs { padding: 0 20px; display: flex; gap: 4px; border-bottom: 1px solid #46524f; }
.input-tab {
  min-height: 48px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #aebbb6;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font: inherit;
  font-size: .86rem;
  font-weight: 800;
  cursor: pointer;
}

.input-tab.is-active { color: white; border-bottom-color: #74d0aa; }
.input-panel[hidden] { display: none; }
.input-form-grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; }
.input-form-grid > div { padding: 16px 20px; border-bottom: 1px solid #46524f; }
.input-form-grid > div:nth-child(odd) { border-right: 1px solid #46524f; }
.input-form-grid dt { color: #aebbb6; font-size: .78rem; }
.input-form-grid dt code { display: block; margin-top: 3px; color: #74d0aa; }
.input-form-grid dd { margin: 9px 0 0; font-weight: 850; }
.input-form-grid small { display: block; margin-top: 2px; color: #899690; }
.recipe-note { margin: 0; padding: 14px 20px; color: #d3dcd8; font-size: .9rem; }
.cost-helper { margin-top: 18px; padding: 14px 0 0; border-top: 1px solid var(--line); color: var(--muted); }

.comparison-table th:first-child { width: 24%; }
.comparison-table td { vertical-align: top; }
.comparison-table td strong { display: block; margin-bottom: 4px; }
.comparison-table .table-preferred { background: #eef8f3; }
.verdict-strip { padding: 22px 0; border-top: 1px solid rgba(21,27,26,.16); border-bottom: 1px solid rgba(21,27,26,.16); }
.verdict-strip p { max-width: 900px; margin: 0; color: var(--muted); }
.verdict-strip strong { color: var(--ink); }
.comparison-chooser { display: grid; grid-template-columns: minmax(320px,.8fr) minmax(0,1.2fr); border: 1px solid var(--line); background: white; }
.chooser-controls { padding: 24px; border-right: 1px solid var(--line); }
.chooser-controls label { display: block; color: var(--muted); font-size: .78rem; font-weight: 750; }
.chooser-controls label + label { margin-top: 15px; }
.chooser-controls select, .chooser-controls input[type="number"] { width: 100%; height: 44px; margin-top: 6px; padding: 0 11px; border: 1px solid #aeb8b3; border-radius: 4px; background: white; color: var(--ink); font: inherit; font-weight: 750; }
.chooser-check { min-height: 44px; padding: 0 12px; display: flex !important; align-items: center; gap: 9px; border: 1px solid var(--line); color: var(--ink) !important; }
.chooser-check input { width: 17px; height: 17px; accent-color: var(--green); }
.chooser-result { padding: 28px; display: flex; flex-direction: column; justify-content: center; background: #192522; color: white; }
.chooser-result span { color: #9fb0aa; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.chooser-result strong { margin-top: 6px; font-size: 2rem; }
.chooser-result p { margin: 12px 0 0; color: #d3dcd8; }
.price-snapshot { margin-top: 28px; }
.source-note { margin: 14px 0 0; color: var(--muted); font-size: .78rem; }
.recommendation-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.recommendation-list li { padding: 20px 0; display: grid; grid-template-columns: 150px 1fr; gap: 24px; border-bottom: 1px solid var(--line); }
.recommendation-list strong { color: var(--green-dark); }

.code-toolbar {
  min-height: 48px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #46524f;
  color: #aebbb6;
  font-size: .8rem;
}

.copy-code {
  min-height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #5b6863;
  border-radius: 6px;
  background: transparent;
  color: white;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.recipe pre { margin: 0; padding: 20px 24px; overflow-x: auto; background: #111916; color: #d9ebe3; line-height: 1.65; }
.recipe pre code { font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; font-size: .88rem; }

.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.step-number { color: var(--coral); font-size: 1.05rem; font-weight: 900; }
.steps h3 { margin: 0 0 9px; font-size: 1.35rem; }
.steps p { margin: 0; color: var(--muted); max-width: 780px; }

.sample-section { padding: 64px 0; background: var(--soft); }
.field-test-section { padding: 64px 0; background: #fff; border-top: 1px solid var(--line); }
.field-test-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 48px; align-items: end; }
.field-test-heading h2 { margin: 5px 0 0; max-width: 700px; }
.field-test-heading > p { margin: 0; color: var(--muted); }
.field-test-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 34px; }
.field-test-metrics div { padding-top: 16px; border-top: 3px solid var(--ink); }
.field-test-metrics strong { display: block; font-size: clamp(1.55rem, 2.4vw, 2.25rem); line-height: 1; }
.field-test-metrics span { display: block; margin-top: 7px; color: var(--muted); font-weight: 700; }
.field-test-findings { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 34px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.field-test-findings div { min-width: 0; padding: 18px; border-right: 1px solid var(--line); background: var(--soft); }
.field-test-findings div:last-child { border-right: 0; }
.field-test-findings strong, .field-test-findings span, .field-test-findings small { display: block; }
.field-test-findings strong { font-size: 1.35rem; }
.field-test-findings span { margin-top: 3px; font-weight: 750; }
.field-test-findings small { margin-top: 7px; color: var(--muted); }
.field-test-note { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 0; color: var(--muted); font-size: .88rem; }
.field-test-note svg { flex: 0 0 auto; width: 18px; color: var(--green); }
.sample-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.sample-toolbar h2 { font-size: 2.65rem; margin-bottom: 0; }
.icon-command { min-height: 42px; color: var(--green-dark); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: white; }
table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
th { background: #e5ebe7; font-size: .78rem; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
.sample-caption { margin: 12px 0 0; color: var(--muted); font-size: .78rem; }

.cost-section { padding: 68px 0; background: #edf1ee; }
.cost-heading {
  margin-bottom: 32px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.cost-heading h2 { margin-bottom: 0; }
.cost-heading > p { max-width: 500px; margin: 0; color: var(--muted); }
.calculator {
  display: grid;
  grid-template-columns: minmax(380px, .85fr) minmax(0, 1.15fr);
  border: 1px solid #bbc5c0;
  background: white;
}

.cost-controls { padding: 24px; border-right: 1px solid #bbc5c0; }
.control-heading { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.control-heading h3 { margin: 0; }
.reset-calculator {
  min-height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--green-dark);
  font: inherit;
  font-size: .76rem;
  font-weight: 800;
  cursor: pointer;
}

.number-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.number-controls label { color: var(--muted); font-size: .76rem; font-weight: 750; }
.number-controls input {
  width: 100%;
  height: 44px;
  margin-top: 6px;
  padding: 0 11px;
  border: 1px solid #aeb8b3;
  border-radius: 4px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
}

.toggle-controls { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toggle-controls label {
  min-height: 44px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 750;
}

.toggle-controls input { width: 17px; height: 17px; accent-color: var(--green); }
.advanced-costs { margin-top: 18px; border: 0; border-top: 1px solid var(--line); }
.advanced-costs > summary { padding: 18px 28px 14px 0; position: relative; list-style: none; cursor: pointer; font-size: .84rem; font-weight: 850; }
.advanced-costs > summary::-webkit-details-marker { display: none; }
.advanced-costs > summary::after { content: "+"; position: absolute; right: 2px; color: var(--green); font-size: 1.1rem; }
.advanced-costs[open] > summary::after { content: "−"; }
.cost-results { min-width: 0; padding: 24px; background: #192522; color: white; }
.recommendation { margin-bottom: 18px; padding: 16px; border-left: 4px solid #74d0aa; background: #24332f; }
.recommendation span { color: #aebbb6; font-size: .72rem; text-transform: uppercase; font-weight: 800; }
.recommendation strong { display: block; margin-top: 3px; font-size: 1.45rem; }
.recommendation p { margin: 3px 0 0; color: #d3dcd8; font-size: .84rem; }
.cost-table-wrap { overflow-x: auto; border: 1px solid #46524f; }
.cost-table { min-width: 660px; color: white; }
.cost-table th, .cost-table td { padding: 13px 14px; border-color: #46524f; }
.cost-table thead th { background: #111916; color: #aebbb6; }
.cost-table tbody th { background: #111916; color: white; text-align: left; }
.cost-table tr.is-recommended { background: #294b3e; }
.pricing-notes { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pricing-notes p { margin: 0; color: var(--muted); font-size: .78rem; }
.pricing-notes a { color: var(--green-dark); font-weight: 750; }

.use-cases { padding: 72px 0; }
.sources-section { padding: 58px 0; border-top: 1px solid var(--line); background: #fff; }
.sources-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr); gap: 54px; }
.sources-layout h2 { margin: 5px 0 12px; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.sources-layout p { margin: 0; color: var(--muted); }
.source-list { margin: 0; padding: 0; list-style: none; border-top: 3px solid var(--ink); }
.source-list li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.source-list strong { font-size: .84rem; }
.source-list a { display: inline-flex; align-items: center; gap: 6px; color: var(--green-dark); font-weight: 700; }
.source-list span { color: var(--muted); }
.use-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.use-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 8px; }
.use-grid svg { width: 24px; height: 24px; color: var(--green); }
.use-grid h3 { margin: 18px 0 8px; }
.use-grid p { margin: 0; color: var(--muted); }

.ethics-note { margin-top: 30px; padding: 20px 0; display: flex; gap: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ethics-note > svg { flex: 0 0 auto; width: 25px; height: 25px; color: var(--coral); }
.ethics-note h3, .ethics-note p { margin: 0; }
.ethics-note p { color: var(--muted); margin-top: 5px; }

.faq-section { padding: 68px 0; background: #192522; color: white; }
.faq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 56px; }
.faq-section .section-kicker { color: #74d0aa; }
.faq-list { border-top: 1px solid #46524f; }
.faq-list details { border-bottom: 1px solid #46524f; }
.faq-list summary { padding: 18px 38px 18px 0; cursor: pointer; font-weight: 750; position: relative; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; font-size: 1.4rem; color: #74d0aa; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 40px 20px 0; color: #c5cfcb; }

.final-cta { padding: 58px 0; background: #f1b7a9; }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.apify-wordmark { width: 112px; height: auto; margin-bottom: 13px; }
.final-cta h2 { max-width: 700px; }

footer { padding: 36px 0; border-top: 1px solid var(--line); }
.footer-layout { display: flex; justify-content: space-between; gap: 48px; }
.footer-layout p { max-width: 560px; color: var(--muted); font-size: .86rem; }
.footer-brand { margin-bottom: 12px; }
.menu-topic-heading a { color: inherit; text-decoration: none; }
.menu-topic-heading a:hover { color: var(--green); }
.legal-nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; }
.legal-nav a { color: var(--green-dark); font-size: .82rem; font-weight: 700; }
.legal-nav button, .privacy-settings-inline { padding: 0; border: 0; background: transparent; color: var(--green-dark); font: inherit; font-size: .82rem; font-weight: 700; text-decoration: underline; cursor: pointer; }
.policy-page { padding: 50px 0 70px; }
.policy-layout { display: grid; grid-template-columns: minmax(0, 720px) minmax(220px, 300px); gap: 64px; align-items: start; }
.policy-content h2 { margin: 38px 0 12px; font-size: 1.55rem; }
.policy-content p, .policy-content li { color: var(--muted); }
.policy-content ul { padding-left: 20px; }
.policy-aside { border-top: 3px solid var(--ink); padding-top: 18px; }
.policy-aside p { color: var(--muted); font-size: .9rem; }
.privacy-settings-inline { font-size: inherit; }
.consent-banner { position: fixed; z-index: 1000; right: 0; bottom: 0; left: 0; border-top: 1px solid var(--ink); background: #fff; box-shadow: 0 -10px 30px rgb(18 28 25 / 12%); }
.consent-banner[hidden] { display: none; }
.consent-layout { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 18px; }
.consent-layout p { display: grid; gap: 4px; max-width: 760px; margin: 0; }
.consent-layout p span { color: var(--muted); font-size: .88rem; }
.consent-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.consent-actions button { min-height: 44px; white-space: nowrap; }
body.consent-visible { padding-bottom: 104px; }

@media (max-width: 820px) {
  .article-masthead { padding-top: 26px; padding-bottom: 24px; }
  .breadcrumbs { margin-bottom: 26px; }
  h1 { font-size: 2.7rem; }
  h2 { font-size: 2.2rem; }
  .sample-toolbar h2 { font-size: 2.1rem; }
  .actor-overview, .faq-layout { grid-template-columns: 1fr; gap: 30px; }
  .answer-layout, .sources-layout { grid-template-columns: 1fr; gap: 28px; }
  .output-summary { grid-template-columns: 1fr; gap: 20px; }
  .mega-menu { grid-template-columns: 1fr 1fr; }
  .workflow-caption { align-items: flex-start; flex-direction: column; gap: 3px; }
  .workflow-stages { grid-template-columns: 1fr; }
  .workflow-stage { min-height: 0; }
  .workflow-connector { min-height: 42px; }
  .workflow-connector svg { transform: rotate(90deg); }
  .method-comparison { grid-template-columns: 1fr; }
  .home-intro-grid, .category-directory { grid-template-columns: 1fr; }
  .home-intro-grid { gap: 24px; }
  .trust-grid { grid-template-columns: 1fr; gap: 24px; }
  .platform-value { grid-template-columns: 1fr; }
  .platform-value > div { padding: 20px 0; }
  .platform-value > div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .field-test-heading { grid-template-columns: 1fr; gap: 16px; }
  .field-test-metrics { grid-template-columns: repeat(2, 1fr); }
  .field-test-findings { grid-template-columns: repeat(2, 1fr); }
  .field-test-findings div { border-bottom: 1px solid var(--line); }
  .field-test-findings div:nth-child(2n) { border-right: 0; }
  .field-test-findings div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .cost-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .calculator { grid-template-columns: 1fr; }
  .comparison-chooser { grid-template-columns: 1fr; }
  .chooser-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .cost-controls { border-right: 0; border-bottom: 1px solid #bbc5c0; }
  .pricing-notes { grid-template-columns: 1fr; gap: 12px; }
  .use-grid { grid-template-columns: 1fr; }
  .final-cta-inner, .footer-layout { align-items: flex-start; flex-direction: column; }
  .policy-layout { grid-template-columns: 1fr; gap: 28px; }
  .consent-layout { align-items: stretch; flex-direction: column; gap: 14px; }
  .consent-actions { align-self: stretch; }
  .consent-actions button { flex: 1; }
  body.consent-visible { padding-bottom: 190px; }
}

@media (min-width: 821px) and (max-width: 1100px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.7rem; }
  .mega-menu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
  .site-header { height: 62px; padding-inline: 18px; }
  .site-header > .brand > span:last-child { display: none; }
  .header-cta { width: auto; height: 42px; gap: 5px; }
  .header-apify-logo { width: 62px; }
  .header-cta svg { display: none; }
  .language-switcher { margin-left: 6px; padding-left: 6px; }
  .language-switcher a { min-width: 26px; padding-inline: 4px; }
  .current-path { display: none; }
  .mega-menu { max-height: 72vh; padding: 22px; grid-template-columns: 1fr; overflow-y: auto; }
  .article-hero { padding-bottom: 26px; }
  .article-masthead { padding-top: 22px; padding-bottom: 22px; }
  .breadcrumbs { gap: 5px; font-size: .7rem; }
  h1 { font-size: 2.35rem; }
  .hero-copy { font-size: 1rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .section-inner { width: calc(100% - 36px); }
  .workflow-visual { width: calc(100% - 36px); }
  .field-list { grid-template-columns: 1fr; }
  .field-test-metrics { gap: 18px; }
  .field-test-findings { grid-template-columns: 1fr; }
  .field-test-findings div, .field-test-findings div:nth-child(2n) { border-right: 0; }
  .field-test-findings div:last-child { grid-column: auto; }
  .answer-facts div, .source-list li { grid-template-columns: 1fr; gap: 4px; }
  .answer-section, .outcome-band, .value-section, .field-test-section, .sample-section, .cost-section, .sources-section, .faq-section { padding: 46px 0; }
  .number-controls, .toggle-controls { grid-template-columns: 1fr; }
  .cost-controls, .cost-results { padding: 22px; }
  .cost-table { min-width: 0; font-size: .78rem; }
  .cost-table th, .cost-table td { padding: 11px 9px; }
  .cost-table th:nth-child(2), .cost-table td:nth-child(2),
  .cost-table th:nth-child(3), .cost-table td:nth-child(3) { display: none; }
  .recipe-heading { align-items: flex-start; flex-direction: column; }
  .input-form-grid { grid-template-columns: 1fr; }
  .input-form-grid > div:nth-child(odd) { border-right: 0; }
  .guide, .use-cases { padding: 56px 0; }
  .steps li { grid-template-columns: 48px 1fr; gap: 12px; }
  .sample-toolbar { align-items: flex-start; flex-direction: column; }
  .final-cta { padding: 46px 0; }
  .button-dark { width: 100%; }
  .recommendation-list li { grid-template-columns: 1fr; gap: 6px; }
  .consent-actions { flex-direction: column-reverse; }
  body.consent-visible { padding-bottom: 260px; }
}

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