/* ==========================================================================
   Home / Knight IDS recoil pad landing — page styles
   Loaded after base.css
   ========================================================================== */

/* --- Hero ---------------------------------------------------------------- */
.hero {
  padding: 88px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "head graph"
    "desc graph";
  gap: 24px 56px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.hero__head { grid-area: head; }
.hero__desc { grid-area: desc; align-self: end; }
.hero__graph { grid-area: graph; }

.hero__badges {
  display: flex;
  gap: 10px;
  margin-bottom: var(--space-5);
  flex-wrap: wrap;
}

.hero__title {
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.04;
}

.hero__sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 46ch;
  margin: 0 0 var(--space-6);
}

.hero__cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* --- Recoil-IQ readout card --------------------------------------------- */
.readout { padding: 22px 22px 18px; }

.readout__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.readout__label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.readout__status {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--color-text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
}

.readout__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-data-on);
  display: inline-block;
}

.readout__chart {
  display: block;
  overflow: visible;
}

.readout__legend {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--color-divider);
  gap: var(--space-3);
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 11.5px;
  color: var(--color-text-muted);
}

.legend-item__swatch {
  width: 16px;
  height: 2px;
  display: inline-block;
  flex: none;
}
.legend-item__swatch--off { background: var(--color-data-off); }
.legend-item__swatch--on { background: var(--color-data-on); }

.readout__delta {
  font-size: 11.5px;
  color: var(--color-accent);
}

/* --- How it works -------------------------------------------------------- */
.how {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
}

.how__sticky {
  position: sticky;
  top: 110px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.how__imgstack {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.how__imgstack img {
  position: absolute;
  width: 82%;
}

.how__caption {
  font-size: 12px;
  color: var(--color-text-dim);
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}

.how__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature {
  border-top: 1px solid var(--color-divider);
  padding: 34px 0;
}

.feature__num {
  font-size: 12px;
  color: var(--color-accent);
  margin-bottom: 10px;
  display: block;
  letter-spacing: 0.04em;
}

.feature__title {
  font-size: 24px;
  margin: 0 0 10px;
}

.feature__body {
  color: var(--color-text-muted);
  font-size: 15px;
  line-height: 1.65;
  max-width: 52ch;
  margin: 0;
}

/* --- Data section -------------------------------------------------------- */
.data__intro {
  max-width: 640px;
  margin-bottom: var(--space-7);
}

.data__title {
  font-size: clamp(28px, 4vw, 42px);
  margin: 14px 0 var(--space-4);
}

.data__lede {
  color: var(--color-text-muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

.data__panel {
  padding: 36px;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 36px;
  align-items: center;
  margin-bottom: 64px;
}

.data__key {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.data__key-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-text);
}

.data__key-swatch {
  width: 22px;
  height: 3px;
  display: inline-block;
  flex-shrink: 0;
}

.data__note {
  color: var(--color-text-muted);
  font-size: 11.5px;
  line-height: 1.5;
  margin: 0;
}

.stat-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.stat { padding: 30px 26px; }

.stat__value {
  font-size: clamp(28px, 3.2vw, 40px);
  color: var(--color-accent);
  display: flex;
  align-items: baseline;
  gap: var(--space-1);
  font-weight: 600;
}
.stat__arrow { font-size: 0.5em; }

.stat__label {
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 10px 0 6px;
}

.stat__detail {
  font-size: 12.5px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- What the results mean ---------------------------------------------- */
.meaning-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.meaning {
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.meaning__icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.meaning__icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-accent);
}

.meaning__title {
  font-family: var(--font-body);
  text-transform: none;
  font-size: 16px;
  line-height: 1.3;
  margin: 0;
}

.meaning__body {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

/* --- Spec strip ---------------------------------------------------------- */
.specs {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}

.specs__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
}

.spec {
  padding: 26px 24px;
  display: flex;
  gap: 14px;
  align-items: center;
  border-left: 1px solid var(--color-divider);
}

.spec__num {
  color: var(--color-accent);
  font-size: 13px;
  font-weight: 600;
}

.spec__text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-muted);
  margin: 0;
}

/* --- Offer --------------------------------------------------------------- */
.offer {
  border-color: var(--color-accent);
  padding: var(--space-7);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}

.offer__flag {
  position: absolute;
  top: -1px;
  left: 32px;
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.offer__title {
  font-size: clamp(24px, 3.2vw, 34px);
  margin: 22px 0 0;
}

.offer__price-row {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
  margin: 20px 0 10px;
}

.offer__price {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 60px;
  color: var(--color-accent);
}

.offer__price-note { font-size: 13px; color: var(--color-text-muted); }

.offer__limit {
  font-size: 13px;
  color: var(--color-text-muted);
  margin: 0 0 26px;
}

.offer__facts {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.offer__fact {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: 14px;
}
.offer__fact svg {
  width: 18px;
  height: 18px;
  stroke: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1000px) {
  .how { grid-template-columns: 1fr; gap: 40px; }
  .how__sticky { position: static; }
  .data__panel { grid-template-columns: 1fr; padding: 24px; }
  .offer { grid-template-columns: 1fr; padding: 40px 28px; }
}

@media (max-width: 760px) {
  .hero {
    padding: 48px 0 40px;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "head"
      "graph"
      "desc";
  }
  .offer__price { font-size: 46px; }
  .spec { border-left: 0; border-top: 1px solid var(--color-divider); }
}
