/* === FEATURES PAGE (Figma full layout) === */

.template-features .site-main {
  padding-bottom: 0;
}

.features-page {
  overflow-x: hidden;
}

.btn-pill {
  border-radius: var(--radius-pill);
  padding: 14px 32px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 1rem;
}

.fp-section {
  padding: 80px 0;
}

.fp-section__title {
  margin: 0 0 48px;
  text-align: center;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

/* === HERO === */

.fp-hero {
  padding: 56px 0 80px;
  position: relative;
}

.fp-hero::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -80px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(45, 140, 255, 0.16), transparent 68%);
  pointer-events: none;
}

.fp-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.fp-hero__title {
  margin: 0;
  font-size: clamp(2.125rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.fp-hero__subtitle {
  margin: 24px 0 0;
  max-width: 500px;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}

.fp-hero__actions {
  margin-top: 32px;
}

.fp-hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fp-hero__image,
.fp-hero__visual .hero-visual__img {
  width: min(100%, 560px);
  height: auto;
  display: block;
  margin: 0 auto;
}

.fp-hero__image {
  border-radius: 24px;
}

/* === APP PREVIEW === */

.fp-app {
  padding-top: 0;
}

.fp-app__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 64px;
  align-items: center;
}

.fp-app__visual {
  display: flex;
  justify-content: center;
}

.fp-app-hub__img {
  width: min(100%, 420px);
  height: auto;
  display: block;
}

/* Highlights list */

.fp-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.fp-highlight {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.fp-highlight__icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
}

.fp-highlight__icon-img {
  width: 52px;
  height: 52px;
  display: block;
  object-fit: contain;
}

.fp-highlight__title {
  margin: 0 0 6px;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.fp-highlight__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.fp-app__cta {
  display: inline-block;
  margin-top: 36px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-link);
  text-decoration: none;
}

.fp-app__cta:hover {
  text-decoration: underline;
}

/* === AUDIENCE === */

.fp-audience {
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.4) 40%, transparent);
}

.fp-audience__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.fp-audience-card {
  padding: 28px 20px 24px;
  border-radius: 20px;
  background: rgba(21, 29, 51, 0.75);
  border: 1px solid var(--color-border);
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.fp-audience-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 140, 255, 0.35);
}

.fp-audience-card__avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fp-audience-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fp-audience-card__title {
  margin: 0 0 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
}

.fp-audience-card__text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

/* === Z-PATTERN SHOWCASE === */

.fp-showcase {
  padding-top: 0;
}

.fp-showcase__list {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.fp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.fp-row--reverse .fp-row__text {
  order: 1;
}

.fp-row--reverse .fp-row__media {
  order: 2;
}

.fp-row__num {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: rgba(45, 140, 255, 0.35);
}

.fp-row__title {
  margin: 0 0 16px;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.fp-row__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  max-width: 440px;
}

.fp-row__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Feature visual mockup */

.feature-visual {
  width: min(100%, 480px);
}

.feature-visual__frame {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  background: linear-gradient(145deg, #2d8cff 0%, #1a5fcc 45%, #0d3d8c 100%);
  border: 1px solid rgba(91, 196, 255, 0.35);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(45, 140, 255, 0.15);
}

.feature-visual__accent {
  position: absolute;
  top: -30%;
  right: -20%;
  width: 70%;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 65%);
  pointer-events: none;
}

.feature-visual__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-visual__placeholders {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 32px;
  height: 100%;
  box-sizing: border-box;
  align-content: center;
}

.feature-visual__block {
  display: block;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.feature-visual__block--hero {
  width: 72%;
  height: 58%;
  margin: 0 auto;
}

.feature-visual__block--wide {
  width: 100%;
  height: 36%;
}

.feature-visual__block--md {
  width: 58%;
  height: 28%;
}

.feature-visual__block--sm {
  width: 36%;
  height: 28%;
}

.feature-visual__block--tall {
  width: 42%;
  height: 72%;
}

.feature-visual--2 .feature-visual__placeholders {
  align-content: flex-start;
  padding-top: 28px;
}

.feature-visual--3 .feature-visual__placeholders {
  flex-direction: row;
  align-items: stretch;
}

/* === BOTTOM CTA === */

.fp-cta {
  padding: 0 0 96px;
}

.fp-cta__inner {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.fp-cta__title {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.fp-cta__subtitle {
  margin: 0 0 28px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* === RESPONSIVE === */

@media (max-width: 1100px) {
  .fp-audience__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .fp-hero__grid,
  .fp-app__grid,
  .fp-row,
  .fp-row--reverse .fp-row__text,
  .fp-row--reverse .fp-row__media {
    grid-template-columns: 1fr;
    order: unset;
  }

  .fp-hero__visual {
    order: -1;
  }

  .fp-app__visual {
    order: -1;
  }

  .fp-app-hub__img {
    max-width: 320px;
  }
}

@media (max-width: 600px) {
  .fp-section {
    padding: 56px 0;
  }

  .fp-hero {
    padding: 32px 0 56px;
  }

  .fp-audience__grid {
    grid-template-columns: 1fr;
  }

  .fp-showcase__list {
    gap: 48px;
  }

  .feature-visual {
    max-width: 360px;
  }

  .fp-cta {
    padding-bottom: 64px;
  }
}
