/* ───────────────────────────────────────────────────────────
   Adsbot Lens — How it Works page (marketing redesign)
   Built on lens/lens.css + landing/landing.css component language.
   ─────────────────────────────────────────────────────────── */

/* ── Hero (text-forward, no illustration) ── */
.hiw-hero { padding: 88px 0 76px; position: relative; overflow: hidden; }
.hiw-hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(54% 44% at 50% -8%, rgba(70,163,170,.10), transparent 70%),
    linear-gradient(180deg, var(--teal-soft) 0%, var(--bg) 50%);
}
.hiw-hero-grid {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(62% 50% at 50% 0%, #000 28%, transparent 74%);
          mask-image: radial-gradient(62% 50% at 50% 0%, #000 28%, transparent 74%);
}
.hiw-hero-copy { max-width: 760px; margin: 0 auto; text-align: center; }
.hiw-hero-copy .h1 { margin: 20px 0 0; }
.hiw-hero-copy .lede { margin: 20px auto 0; max-width: 600px; }
.hiw-hero-cta { margin-top: 30px; }
.hiw-hero-cta .btn { padding: 14px 24px; font-size: 15px; }

/* ── 3-step horizontal flow ── */
.steps3 {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch;
  gap: 8px; margin-top: 52px;
}
.step3 {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  padding: 32px 30px; box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column;
}
.step3-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.step3-ic {
  width: 52px; height: 52px; border-radius: 14px; background: var(--teal-soft);
  display: grid; place-items: center; color: var(--teal-600); flex-shrink: 0;
}
.step3-ic i { font-size: 26px; line-height: 1; }
.step3-num {
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: var(--teal-500); border-radius: var(--r-pill);
  padding: 6px 14px; box-shadow: var(--shadow-teal);
}
.step3 h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; color: var(--fg-strong); margin: 0 0 11px; line-height: 1.15; }
.step3 p { font-size: 14.5px; color: var(--fg-muted); line-height: 1.6; margin: 0; }
.step3 p .credit-note { display: block; margin-top: 12px; font-size: 13px; color: var(--teal-700); font-weight: 600; }
.step3-arrow { display: grid; place-items: center; color: var(--teal-400); }
.step3-arrow svg { display: block; }
@media (max-width: 880px){
  .steps3 { grid-template-columns: 1fr; gap: 6px; max-width: 440px; margin-inline: auto; }
  .step3-arrow { transform: rotate(90deg); padding: 4px 0; }
}

/* ── What we track — feature grid ── */
.track-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; }
@media (max-width: 920px){ .track-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px){ .track-grid { grid-template-columns: 1fr; } }
.track-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-xs);
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.track-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--teal-200); }
.track-ic {
  width: 46px; height: 46px; border-radius: 12px; background: var(--teal-soft);
  display: grid; place-items: center; color: var(--teal-600); margin-bottom: 18px;
}
.track-ic i { font-size: 23px; line-height: 1; }
.track-card h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.015em; color: var(--fg-strong); margin: 0 0 8px; }
.track-card p { font-size: 14px; color: var(--fg-muted); line-height: 1.55; margin: 0; }

/* ── KPI grid ("Every metric that matters") ── */
.kpi-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 44px; }
.kpi-card {
  flex: 0 1 186px;
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 18px 18px 16px; box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column; min-height: 124px;
}
.kpi-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.kpi-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-subtle);
  line-height: 1.25;
}
.kpi-label i { font-size: 14px; line-height: 1; color: var(--teal-600); }
@media (max-width: 640px){ .kpi-card { flex-basis: calc(50% - 7px); } }
@media (max-width: 400px){ .kpi-card { flex-basis: 100%; } }
.kpi-info { color: var(--fg-faint); flex-shrink: 0; cursor: default; }
.kpi-info svg { display: block; }
.kpi-val {
  font-size: 28px; font-weight: 800; color: var(--fg-strong); letter-spacing: -0.025em;
  line-height: 1; font-variant-numeric: tabular-nums; margin-top: auto;
}
.kpi-val.pos { font-size: 22px; color: var(--success); }
.kpi-val .unit { font-size: 15px; font-weight: 700; color: var(--fg-faint); }
.kpi-help { font-size: 12px; color: var(--fg-subtle); margin-top: 8px; line-height: 1.4; }

/* ── Visibility matrix preview ── */
.vm-wrap { max-width: 880px; margin: 42px auto 0; }
.vm-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), 0 40px 80px -50px rgba(28,26,26,.24); overflow: hidden;
}
.vm-table { width: 100%; border-collapse: collapse; }
.vm-table th {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--fg-subtle); text-align: center; padding: 16px 16px; border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.vm-table th.col-plat { text-align: left; }
.vm-table th.col-you { color: var(--teal-700); }
.vm-table td { padding: 15px 16px; text-align: center; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.vm-table tr:last-child td { border-bottom: none; }
.vm-plat { text-align: left; }
.vm-plat .pn { font-size: 14px; font-weight: 700; color: var(--fg-strong); }
.vm-plat .ps { font-size: 11.5px; color: var(--fg-faint); margin-top: 1px; }
.vm-you {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--teal-300); background: var(--teal-soft); border-radius: var(--r-pill);
  padding: 6px 13px; font-size: 14px; font-weight: 800; color: var(--teal-800);
  font-variant-numeric: tabular-nums;
}
.vm-val { display: inline-flex; align-items: center; gap: 5px; font-size: 14.5px; font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.vm-arrow { color: var(--teal-500); display: inline-flex; }
.vm-table tr.vm-overall td { background: var(--bg-muted); font-weight: 800; }
.vm-table tr.vm-overall .vm-cell { font-size: 14.5px; font-weight: 800; color: var(--fg-strong); font-variant-numeric: tabular-nums; }
.vm-table tr.vm-overall .vm-plat .pn { color: var(--fg-strong); }

/* ── Pricing preview ── */
.price-card {
  position: relative; max-width: 480px; margin: 42px auto 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), 0 40px 80px -50px rgba(28,26,26,.22);
  padding: 34px 34px 32px; overflow: hidden; text-align: left;
}
.price-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px;
  background: linear-gradient(90deg, var(--teal-400), var(--teal-600));
}
.price-badge {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700);
  background: var(--teal-soft); border: 1px solid var(--teal-200);
  border-radius: var(--r-pill); padding: 5px 12px;
}
.price-amount { display: flex; align-items: flex-end; gap: 8px; margin: 20px 0 6px; }
.price-amount .num { font-size: 50px; font-weight: 800; color: var(--fg-strong); letter-spacing: -0.035em; line-height: .9; font-variant-numeric: tabular-nums; }
.price-amount .num .cur { font-size: 26px; font-weight: 700; vertical-align: top; margin-right: 1px; }
.price-amount .per { font-size: 14px; color: var(--fg-subtle); font-weight: 500; padding-bottom: 5px; }
.price-credits { font-size: 13.5px; color: var(--fg-muted); }
.price-credits b { color: var(--fg-strong); font-weight: 700; }
.price-feats { display: grid; gap: 12px; margin: 24px 0; padding-top: 22px; border-top: 1px solid var(--hairline); }
.price-feat { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; color: var(--fg); }
.price-feat i { color: var(--teal-600); font-size: 19px; line-height: 1.2; flex-shrink: 0; }
.price-card .btn { width: 100%; justify-content: center; padding: 14px 20px; font-size: 15px; }
.price-link { text-align: center; margin-top: 18px; }
.price-link a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--teal-700);
}
.price-link a:hover { color: var(--teal-800); }

/* ── Platform / AI bot coverage ── */
.platforms { text-align: center; }
.platforms .kicker { display: block; }
.botgrid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 880px; margin: 34px auto 0;
}
@media (max-width: 760px){ .botgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px){ .botgrid { grid-template-columns: repeat(2, 1fr); } }
.botpill {
  display: flex; align-items: center; gap: 11px; padding: 14px 16px; text-align: left;
  background: var(--teal-soft); border: 1px solid var(--teal-200); border-radius: var(--r-md);
}
.botpill .dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--teal-500); flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(70,163,170,.16);
}
.botpill .bot-mark {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  color: #fff; font-size: 12px; font-weight: 800; letter-spacing: -0.02em; flex-shrink: 0;
}
.botpill .bn { font-size: 14px; font-weight: 600; color: var(--fg-strong); line-height: 1.25; }
.botcount { margin-top: 22px; font-size: 13px; color: var(--fg-subtle); }
.botcount b { color: var(--teal-700); font-weight: 700; }
