/* Web app detail pages */
.web-app-page {
  padding-bottom: 4rem;
}

.web-app-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  padding: 1.25rem 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-light);
}
.web-app-breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.web-app-breadcrumb a:hover {
  color: var(--text);
}
.web-app-breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* Hero */
.web-app-hero {
  margin-bottom: 0;
}
.web-app-hero-inner {
  padding: 2rem 0 1.25rem;
  max-width: 720px;
}
.web-app-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0.5rem 0 0.75rem;
}
.web-app-tagline {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}
.web-app-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Preview — original image, no frame or crop */
.web-app-preview-section {
  padding: 0 0 clamp(2rem, 4vw, 3rem);
}
.web-app-preview-section .container {
  width: min(100% - 3rem, 1280px);
}
.web-app-preview-figure {
  margin: 0;
  line-height: 0;
}
.web-app-preview-figure[data-reveal] {
  will-change: opacity;
}
.web-app-preview-img {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  max-width: 1536px;
}

/* Body */
.web-app-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.web-app-main h2,
.web-app-related-title {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}
.web-app-desc {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}
.web-app-features {
  margin: 0;
  padding: 0;
  list-style: none;
}
.web-app-features li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.web-app-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text);
}
.web-app-features li:last-child {
  margin-bottom: 0;
}

.web-app-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}
.web-app-sidebar-card {
  padding: 1.35rem;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.web-app-sidebar-card h3 {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  margin: 0 0 0.85rem;
}
.web-app-companion-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.web-app-companion-link:hover {
  border-color: var(--border-dark);
  box-shadow: var(--shadow);
}
.web-app-companion-link img {
  border-radius: 12px;
  flex-shrink: 0;
}
.web-app-companion-link strong {
  display: block;
  font-size: 0.9375rem;
  margin-bottom: 0.15rem;
}
.web-app-companion-link em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.web-app-related {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}
.web-app-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-web-spotlight-title {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.home-web-spotlight-title:hover {
  color: var(--home-accent, #2563eb);
}
.home-web-spotlight-visual-link {
  display: block;
  transition: transform 0.3s var(--ease-apple);
}
.home-web-spotlight-visual-link:hover {
  transform: scale(1.02);
}

@media (max-width: 1024px) {
  .web-app-body-grid {
    grid-template-columns: 1fr;
  }
  .web-app-sidebar {
    position: static;
  }
  .web-app-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .web-app-hero-actions {
    flex-direction: column;
  }
  .web-app-hero-actions .btn {
    width: 100%;
  }
  .web-app-related-grid {
    grid-template-columns: 1fr;
  }
  .web-app-preview-section .container {
    width: min(100% - 1.5rem, 1280px);
  }
}
