/* App marketing page (/app/) — extends homepage tokens */

.page-app.site-main {
  padding: 0;
}

/* Hero — distinct from homepage gradient; same brand palette */
.page-app .app-hero {
  background: linear-gradient(
    125deg,
    #051a24 0%,
    #0a4d66 42%,
    #008fbd 78%,
    rgba(0, 167, 225, 0.35) 100%
  );
}

.page-app .app-hero__visual {
  max-width: 100%;
}

.page-app .app-hero__image {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: min(26rem, 50vh);
  aspect-ratio: 1330 / 868;
  object-fit: cover;
  object-position: center 35%;
}

@media (min-width: 900px) {
  .page-app .app-hero__image {
    max-height: min(22rem, 48vh);
  }
}

/* Hero badges */
.app-hero__visual {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.app-hero__badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

.app-hero__badge {
  display: inline-block;
  margin-right: 0.5rem;
  padding: 0.2rem 0.65rem;
  border-radius: var(--h2f-radius-pill);
  background: var(--h2f-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.app-hero__badge--buddy {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* Feature grid */
.app-feature-grid {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .app-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .app-feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.app-feature {
  background: var(--h2f-card);
  border: 1px solid var(--h2f-border);
  border-radius: var(--h2f-radius);
  padding: 1.35rem;
  box-shadow: var(--h2f-shadow-sm);
  transition: box-shadow 0.15s, border-color 0.15s;
}

.app-feature:hover {
  border-color: rgba(0, 167, 225, 0.35);
  box-shadow: var(--h2f-shadow-md);
}

.app-feature__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.85rem;
  border-radius: 10px;
  background: var(--h2f-primary-light);
  color: var(--h2f-primary);
}

.app-feature__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.app-feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.app-feature p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--h2f-text-secondary);
  line-height: 1.55;
}

/* Audience */
.app-audience-grid {
  display: grid;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 768px) {
  .app-audience-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.app-audience-card {
  background: var(--h2f-card);
  border: 1px solid var(--h2f-border);
  border-radius: var(--h2f-radius);
  padding: 2rem;
  box-shadow: var(--h2f-shadow-sm);
  border-top: 4px solid var(--h2f-primary);
}

.app-audience-card--owner {
  border-top-color: var(--h2f-primary-dark);
}

.app-audience-card__label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--h2f-primary);
}

.app-audience-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.app-audience-card p {
  margin: 0 0 1rem;
  color: var(--h2f-text-secondary);
}

.app-audience-card__link {
  font-weight: 600;
  text-decoration: none;
}

.app-audience-card__link:hover {
  text-decoration: underline;
}

/* Steps */
.app-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  counter-reset: app-step;
}

@media (min-width: 768px) {
  .app-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.app-step {
  text-align: center;
  padding: 0 0.5rem;
}

.app-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--h2f-primary);
  color: #fff;
  font-family: var(--h2f-font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.app-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.app-step p {
  margin: 0;
  color: var(--h2f-text-secondary);
  font-size: 0.95rem;
}

.app-steps-cta {
  text-align: center;
  margin: 2.5rem 0 0;
}

/* CTA band */
.app-cta-band {
  background: linear-gradient(135deg, #0d1117 0%, #0a3d52 50%, rgba(0, 167, 225, 0.4) 100%);
  color: #fff;
  padding: 3.5rem 1.25rem;
  text-align: center;
}

.app-cta-band__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.app-cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #fff;
}

.app-cta-band p {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.88);
}

.app-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Docs grid */
.app-docs-grid {
  display: grid;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .app-docs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .app-docs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
