/* ScraperPro marketing + legal pages. Spreadsheet-ledger identity. */
:root {
  --paper: #FFFFFF;
  --sheet: #F3F5F8;
  --rule: #DCE1E8;
  --rule-2: #C5CCD6;
  --ink: #0E1525;
  --ink-2: #485468;
  --ink-3: #6B7588;
  --cobalt: #2346E8;
  --cobalt-ink: #1A36BD;
  --mark: #FFE24A;
  --mark-ink: #3A3000;
  --ok: #0B8A4E;
  --bad: #C42B1C;
  --sel: rgba(35, 70, 232, .08);
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0C1220; --sheet: #121A2B; --rule: #222D42; --rule-2: #33405A;
    --ink: #EAF0FA; --ink-2: #A9B4C7; --ink-3: #7E8AA0;
    --cobalt: #5B7BFF; --cobalt-ink: #8CA2FF; --mark: #FFE24A; --mark-ink: #2A2300;
    --ok: #3DD68C; --bad: #FF7A6B; --sel: rgba(91, 123, 255, .14);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0C1220; --sheet: #121A2B; --rule: #222D42; --rule-2: #33405A;
  --ink: #EAF0FA; --ink-2: #A9B4C7; --ink-3: #7E8AA0;
  --cobalt: #5B7BFF; --cobalt-ink: #8CA2FF; --mark: #FFE24A; --mark-ink: #2A2300;
  --ok: #3DD68C; --bad: #FF7A6B; --sel: rgba(91, 123, 255, .14);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; }
h3 { font-size: 19px; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--cobalt); text-underline-offset: 3px; }
a:hover { color: var(--cobalt-ink); }
code { font-family: var(--mono); font-size: .86em; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 6px; z-index: 50; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 8px; border: 1px solid transparent;
  font: 600 16px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-sm { height: 38px; padding: 0 14px; font-size: 14.5px; }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-ink); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--rule-2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-mark { background: var(--mark); color: var(--mark-ink); }
.btn-mark:hover { background: #F5D52A; color: var(--mark-ink); }
.btn[disabled] { opacity: .65; cursor: progress; }
.link { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.link:hover { color: var(--ink); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--rule); }
.top-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 28px; height: 28px; flex: none; }
.top-nav { display: flex; gap: 24px; }
.top-nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; }
.top-nav a:hover { color: var(--ink); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }
@media (max-width: 760px) { .top-nav { display: none; } .top-actions { gap: 12px; } }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-title { font-size: clamp(40px, 6.4vw, 78px); line-height: 1.02; letter-spacing: -.045em; max-width: 15ch; }
.hero-lead { margin-top: 22px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 58ch; }

.probe { margin-top: 36px; display: flex; gap: 10px; max-width: 640px; }
.probe-field {
  flex: 1; display: flex; align-items: center; height: 56px; min-width: 0;
  background: var(--paper); border: 1px solid var(--rule-2); border-radius: 8px; position: relative;
}
/* The cell cursor: a selected-cell outline with a fill handle */
.probe-field:focus-within { border-color: var(--cobalt); box-shadow: 0 0 0 1px var(--cobalt); }
.probe-field:focus-within::after {
  content: ''; position: absolute; right: -4px; bottom: -4px; width: 7px; height: 7px;
  background: var(--cobalt); border: 1.5px solid var(--paper);
}
.probe-prefix { padding-left: 16px; color: var(--ink-3); font: 400 16px var(--mono); user-select: none; }
.probe-field input {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ink);
  font: 500 17px var(--mono); padding: 0 14px 0 2px;
}
.probe-field input::placeholder { color: var(--ink-3); opacity: .7; }
.probe .btn { height: 56px; }
.probe-note { margin-top: 12px; font-size: 14.5px; color: var(--ink-3); min-height: 1.5em; }
.probe-note.bad { color: var(--bad); }
@media (max-width: 560px) { .probe { flex-direction: column; } .probe-field { flex: none; } .probe .btn { width: 100%; } .grid .c-n, .grid .c-img, .grid .cols th:nth-child(2), .grid .head th:nth-child(2) { display: none; } .grid .c-title { max-width: 190px; } }

/* The sheet */
.sheet { margin: 48px 0 0; border: 1px solid var(--rule-2); border-radius: 10px; overflow: hidden; background: var(--paper); }
.sheet-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--sheet); border-bottom: 1px solid var(--rule); font-size: 13.5px; }
.sheet-file { font-family: var(--mono); color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-status { color: var(--ink-3); flex: none; }
.sheet-scroll { overflow-x: auto; }
.grid { width: 100%; border-collapse: collapse; font: 400 13.5px/1.35 var(--mono); }
.grid th, .grid td { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 0 12px; height: 46px; text-align: left; white-space: nowrap; }
.grid th:last-child, .grid td:last-child { border-right: 0; }
.grid tbody tr:last-child td, .grid tbody tr:last-child th { border-bottom: 0; }
.grid .cols th { height: 26px; background: var(--sheet); color: var(--ink-3); font-weight: 400; font-size: 12px; text-align: center; }
.grid .head th { background: var(--sheet); color: var(--ink); font-weight: 500; font-family: var(--sans); font-size: 13.5px; }
.grid .rn { width: 44px; min-width: 44px; text-align: center; background: var(--sheet); color: var(--ink-3); font-weight: 400; font-size: 12px; padding: 0; }
.grid .c-title { max-width: 380px; overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-family: var(--sans); font-size: 14.5px; }
.grid .c-vendor, .grid .c-type { color: var(--ink-2); max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.grid .c-num, .grid .c-n { text-align: right; font-variant-numeric: tabular-nums; }
.grid th.c-n { text-align: right; }
.grid .c-img { width: 56px; padding: 0 12px; }
.grid .c-img img { display: block; width: 32px; height: 32px; object-fit: cover; border-radius: 4px; background: var(--sheet); }
.swatch { display: block; width: 32px; height: 32px; border-radius: 4px; background: repeating-linear-gradient(135deg, var(--sheet) 0 6px, var(--rule) 6px 7px); }
.grid tbody tr:hover td { background: var(--sel); }
/* Highlight the price column header: the field resellers care about first */
.grid .head th:nth-child(6) { background: var(--mark); color: var(--mark-ink); }
@media (prefers-reduced-motion: no-preference) {
  .grid tbody tr.in { animation: fill .35s ease-out both; }
  @keyframes fill { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 760px) { .grid .c-vendor, .grid .c-type { display: none; } }
.sheet-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 12px 14px; background: var(--sheet); border-top: 1px solid var(--rule); font-size: 14.5px; color: var(--ink-2); }

/* Sections */
.section { padding: 96px 0; }
.band { padding: 96px 0; background: var(--sheet); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.lead { margin-top: 14px; color: var(--ink-2); max-width: 52ch; }
.two { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; gap: 36px; } .section, .band { padding: 72px 0; } }

/* Column map */
.colmap { margin: 0; border: 1px solid var(--rule-2); border-radius: 10px; background: var(--paper); overflow: hidden; }
.colmap > div { display: grid; grid-template-columns: 110px 1fr; border-bottom: 1px solid var(--rule); }
.colmap > div:last-child { border-bottom: 0; }
.colmap dt { padding: 16px; font-weight: 600; font-size: 15px; border-right: 1px solid var(--rule); background: var(--sheet); }
.colmap dd { margin: 0; padding: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.colmap code { padding: 4px 8px; border: 1px solid var(--rule); border-radius: 5px; color: var(--ink); background: var(--paper); font-size: 13px; }
@media (max-width: 520px) { .colmap > div { grid-template-columns: 1fr; } .colmap dt { border-right: 0; border-bottom: 1px solid var(--rule); padding: 10px 12px; } }

/* Steps */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); counter-reset: s; }
.steps li { padding: 28px 28px 0 0; counter-increment: s; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.steps li::before { content: counter(s); display: block; font: 500 14px var(--mono); color: var(--cobalt); margin-bottom: 14px; }
.steps p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--rule); }
}

/* Options */
.opts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-2); }
.opts li { display: grid; grid-template-columns: 220px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule-2); }
.opts b { font-weight: 600; }
.opts span { color: var(--ink-2); }
@media (max-width: 600px) { .opts li { grid-template-columns: 1fr; gap: 4px; } }

/* Pricing table */
.price-scroll { margin-top: 40px; overflow-x: auto; border: 1px solid var(--rule-2); border-radius: 10px; }
.price { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15.5px; }
.price th, .price td { padding: 16px 20px; border-bottom: 1px solid var(--rule); text-align: left; }
.price tbody th { font-weight: 500; color: var(--ink-2); width: 36%; }
.price thead th, .price td { width: 32%; }
.price thead th { vertical-align: bottom; padding-top: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--rule-2); }
.price tfoot th, .price tfoot td { border-bottom: 0; padding-top: 20px; padding-bottom: 24px; }
.p-name { display: block; font-weight: 600; font-size: 16px; }
.p-amt { display: block; margin-top: 10px; font-size: 36px; font-weight: 600; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.p-per { display: block; margin-top: 6px; font-weight: 400; color: var(--ink-3); font-size: 14px; }
.price td { font-variant-numeric: tabular-nums; }
/* The recommended column is "selected", like a highlighted spreadsheet column */
.price .pick { background: var(--sel); box-shadow: inset 2px 0 0 var(--cobalt), inset -2px 0 0 var(--cobalt); }
.price thead .pick { box-shadow: inset 2px 0 0 var(--cobalt), inset -2px 0 0 var(--cobalt), inset 0 2px 0 var(--cobalt); }
.price tfoot .pick { box-shadow: inset 2px 0 0 var(--cobalt), inset -2px 0 0 var(--cobalt), inset 0 -2px 0 var(--cobalt); }
.fine { margin-top: 14px; font-size: 14px; color: var(--ink-3); }

/* FAQ */
.faq { border-top: 1px solid var(--rule-2); }
.faq details { border-bottom: 1px solid var(--rule-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 64ch; }

/* Closing */
.close-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.close h2 { max-width: 20ch; }

/* Footer */
.foot { border-top: 1px solid var(--rule); padding: 28px 0 40px; font-size: 14.5px; color: var(--ink-3); }
.foot-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -.04em; line-height: 1.05; }
.legal .updated { margin-top: 12px; color: var(--ink-3); font-size: 15px; }
.legal h2 { font-size: 22px; margin-top: 44px; letter-spacing: -.015em; }
.legal p, .legal li { color: var(--ink-2); margin-top: 12px; max-width: 68ch; }
.legal ul { padding-left: 20px; }
