/*
 * Feature pages of the 2026-11 redesign: /features/knowledge-engine (Figma
 * "05 Knowledge", 5842:181) and /features/ai-contacts (Figma "06 AI Contacts",
 * 5842:3270). Both are a centered text hero followed by bands built from the
 * shared v3.css blocks; this file only holds what the Figma sizes differently.
 */

/* Skip link: site.css used to style .skip; no shared v3 rule exists yet. */
.v3 .skip {
  position: fixed;
  z-index: 200;
  top: 12px;
  left: 16px;
  padding: 10px 18px;
  border-radius: 100px;
  background: var(--k-button);
  color: #fff;
  font: 600 15px/1.2 var(--k-font-text);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--k-dur-ui) var(--k-ease);
}

.v3 .skip:focus {
  transform: none;
}

/*
 * v3.css sets `.v3 a { color: inherit }`, which outranks `.v3-btn` and
 * `.v3-link` when they are anchors (button text turns ink on ink). Restore
 * their colours here until the shared rule is fixed.
 */
.v3 a.v3-btn {
  color: #fff;
}

.v3 a.v3-btn.is-secondary {
  color: var(--k-ink);
}

.v3 a.v3-link {
  color: var(--k-green);
}

/* ---------- hero: centered copy, no image ---------- */
.feat-hero {
  padding-bottom: 112px;
}

.feat-hero-stack {
  gap: 32px;
}

.feat-hero-title {
  max-width: 900px;
  font-size: clamp(38px, 4.4vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.feat-hero-title.is-wide {
  max-width: 1100px;
}

.feat-hero-lead {
  max-width: 620px;
}

/* ---------- bands ---------- */
.feat-band {
  padding-top: 112px;
  padding-bottom: 112px;
}

/* Heading, then content 40px below. */
.feat-section {
  display: grid;
  gap: 40px;
}

.feat-small {
  margin: 0;
  color: var(--k-ink-body);
  font-size: 15px;
  line-height: 1.5;
}

/* Copy column, then a product screenshot at the Figma 640/680 widths. */
.feat-split {
  grid-template-columns: minmax(0, 460px) minmax(0, 640px);
  justify-content: space-between;
}

.feat-split.is-narrow-copy {
  grid-template-columns: minmax(0, 420px) minmax(0, 680px);
}

.feat-split .v3-body {
  max-width: 440px;
}

.feat-shot {
  aspect-ratio: 16 / 10;
}

.feat-shot img {
  height: 100%;
  object-fit: cover;
}

/* Knowledge: three grey cards on white, 24px padding, 20px rhythm. */
.feat-kind {
  gap: 20px;
  padding: 24px;
}

/* Contacts: three white cards on grey, numbered. */
.feat-origin {
  gap: 14px;
  padding: 28px;
}

.feat-origin .v3-num {
  font-size: 32px;
}

/* Knowledge: numbered habit list under its heading. */
.feat-habit {
  display: grid;
  gap: 48px;
  max-width: 560px;
}

.feat-habit .v3-step .v3-num {
  color: var(--k-num);
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .feat-hero {
    padding-bottom: 88px;
  }

  .feat-band {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .feat-split,
  .feat-split.is-narrow-copy {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 639px) {
  .feat-hero-stack {
    gap: 24px;
  }

  .feat-hero-lead {
    font-size: 18px;
  }

  .feat-section,
  .feat-habit {
    gap: 32px;
  }

  .feat-habit .v3-steps {
    gap: 32px;
  }

  .feat-habit .v3-step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 16px;
  }

  .feat-habit .v3-step .v3-num {
    font-size: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v3 .skip {
    transition: none;
  }
}
