/*
 * capabilities/seo — page extras on top of components/kosh-page.css (layout and motion live there).
 * Only .kp-x-seo-* classes: the SERP mockup, the compare columns, the dark mid banner and a few small tags.
 */

/* Plain sections that follow another plain section share its padding */
.kp-x-seo-flush { padding-top: 0; }

/* Big numbers: the unit after the number in the accent colour */
.kp-stat__n em,
.kp-x-seo-banner__n em { font-style: normal; color: var(--color-secondary); }

/* Numbers strips: three across under the hero, four across with a top rule further down */
.kp-x-seo-stats3 .kp-stats__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kp-x-seo-stats4 { border-top: 1px solid var(--line); }
.kp-x-seo-stats4 .kp-stats__row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kp-x-seo-stats4 .kp-stat__label { line-height: 1.5; }

/* Intro: copy under the heading */
.kp-x-seo-intro .kp-split { align-items: center; }
.kp-x-seo-intro .kp-copy { margin-top: 26px; max-width: 480px; }

/* SERP mockup — a browser window with an AI Overview over the organic results */
.kp-x-seo-serp {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-img);
  box-shadow: 0 30px 60px -36px rgba(20, 18, 16, .35), 0 1px 3px rgba(20, 18, 16, .05);
}
.kp-x-seo-serp__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  background: #F5F5F5;
  border-bottom: 1px solid var(--line);
}
.kp-x-seo-dot { width: 8px; height: 8px; border-radius: 50%; }
.kp-x-seo-dot--r { background: #FF5F57; }
.kp-x-seo-dot--y { background: #FEBC2E; }
.kp-x-seo-dot--g { background: #28C840; }
.kp-x-seo-serp__field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 20px;
  margin-left: 10px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 11px;
  color: #444;
  white-space: nowrap;
  overflow: hidden;
}
.kp-x-seo-ai { padding: 16px 20px; background: #F8F9FF; border-bottom: 1px solid #DDE0FF; }
.kp-x-seo-ai__label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: var(--fw-medium);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #4F46E5;
}
.kp-x-seo-ai__orb { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, #7C3AED, #2563EB); }
.kp-x-seo-ai .kp-x-seo-ai__text { margin-bottom: 10px; font-size: 12px; line-height: 1.6; color: #202124; }
.kp-x-seo-ai__text strong { font-weight: var(--fw-medium); }
.kp-x-seo-ai__cites { display: flex; flex-wrap: wrap; gap: 6px; }
.kp-x-seo-cite {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px 3px 4px;
  background: #fff;
  border: 1px solid #DDE0FF;
  border-radius: 12px;
  font-size: 10px;
  color: #4F46E5;
}
.kp-x-seo-cite b {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #4F46E5;
  font-size: 8px;
  font-weight: var(--fw-medium);
  color: #fff;
}
.kp-x-seo-cite.kp-x-seo-ours { color: var(--color-secondary); font-weight: var(--fw-medium); }
.kp-x-seo-cite.kp-x-seo-ours b { background: var(--color-secondary); }
.kp-x-seo-organic { padding: 6px 20px 10px; }
.kp-x-seo-org { display: flex; flex-direction: column; gap: 3px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kp-x-seo-org:last-child { border-bottom: 0; }
.kp-x-seo-org__url { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #666; }
.kp-x-seo-org__url i { width: 10px; height: 10px; border-radius: 2px; background: var(--line); }
.kp-x-seo-org__title { font-size: 14px; line-height: 1.3; color: #1A0DAB; }
.kp-x-seo-org__desc { font-size: 11px; line-height: 1.5; color: #4D5156; }
.kp-x-seo-org.kp-x-seo-ours .kp-x-seo-org__url,
.kp-x-seo-org.kp-x-seo-ours .kp-x-seo-org__title { color: var(--color-secondary); }
.kp-x-seo-org.kp-x-seo-ours .kp-x-seo-org__url i { background: var(--color-secondary); }
.kp-x-seo-note { margin-top: 12px; font-size: 12px; text-align: center; color: var(--text-tertiary); }

/* Process: intro line under the heading, and each phase's timing */
.kp-x-seo-lead { margin-top: 22px; max-width: 320px; font-size: var(--fs-body); color: var(--text-secondary); }
.kp-x-seo-when {
  display: inline-block;
  margin-top: 16px;
  padding: 5px 10px;
  border: 1px solid rgba(20, 18, 16, .18);
  font-size: 10px;
  font-weight: var(--fw-medium);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Compare: the old playbook is muted, how we work keeps the maroon dash */
.kp-x-seo-kicker-out { color: var(--text-tertiary); background-image: linear-gradient(var(--line), var(--line)); }
.kp-x-seo-out li { color: var(--text-tertiary); }
.kp-x-seo-out li::before { background: rgba(20, 18, 16, .22); }

/* Dark mid banner: statement with one big number, over a faint rising line */
.kp-x-seo-banner { position: relative; overflow: hidden; }
.kp-x-seo-banner__art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 70%; pointer-events: none; }
.kp-x-seo-banner__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.kp-dark .kp-statement__text { color: #fff; }
.kp-dark .kp-statement__text em { color: var(--color-tertiary); }
.kp-x-seo-banner__stat { padding-left: clamp(24px, 3vw, 40px); border-left: 1px solid var(--line-on-dark); }
.kp-x-seo-banner__n {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(56px, 6vw, 88px);
  line-height: 1;
  color: #fff;
}
.kp-x-seo-banner__n em { color: var(--color-tertiary); }
.kp-x-seo-banner__l {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: var(--fw-medium);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-on-dark-3);
}

/* Agency cards: the small tag above each title */
.kp-x-seo-tag {
  font-size: 10px;
  font-weight: var(--fw-medium);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-secondary);
}

/* Final CTA: the italic word stays white on the maroon band */

@media (max-width: 1100px) {
  .kp-x-seo-stats3 .kp-stats__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .kp-x-seo-stats3 .kp-stats__row { grid-template-columns: 1fr; row-gap: 22px; }
  .kp-x-seo-stats3 .kp-stat:nth-child(n) { padding: 0; border-left: 0; }
  .kp-x-seo-stats4 .kp-stats__row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .kp-x-seo-banner__grid { grid-template-columns: 1fr; align-items: start; }
  .kp-x-seo-banner__stat { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line-on-dark); }
  .kp-x-seo-lead { max-width: 520px; }
}
@media (max-width: 860px) {
  .kp-x-seo-when { grid-column: 2; justify-self: start; margin-top: 12px; }
}
