/*
 * Shared styles for PixelLab content pages (product pages, About, FAQ).
 * Tokens mirror the inline styles in /index.html so every page looks the same.
 */
:root {
  --accent: #ff5b52;
  --accent-tint: #ff9b8f;
  --accent-soft: #3a1f1c;
  --accent-rgb: 255, 91, 82;
  --bg: #121110;
  --surface: #1b1918;
  --text: #f4f1ee;
  --text-secondary: #a29a93;
  --border: #2c2926;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", -apple-system, sans-serif;
  line-height: 1.6;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.narrow {
  max-width: 760px;
}

/* header (same as homepage) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 0;
  background: rgba(18, 16, 15, 0.72);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}
.brand img {
  height: 32px;
  width: 32px;
  border-radius: 8px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.site-header nav a {
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(var(--accent-rgb), 0.1);
}
.site-header nav a.nav-cta {
  color: var(--accent);
  border: 1.5px solid var(--accent);
  margin-left: 6px;
}
.site-header nav a.nav-cta:hover {
  background: var(--accent);
  color: #1a0e0c;
}
@media (max-width: 620px) {
  .site-header nav a:not(.nav-cta) {
    display: none;
  }
}

/* breadcrumb */
.crumbs {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 28px 0 0;
}
.crumbs a {
  color: var(--accent);
  font-weight: 600;
}
.crumbs a:hover {
  text-decoration: underline;
}

/* page hero */
.page-hero {
  padding: 28px 0 36px;
}
.page-hero .kicker,
.section .kicker {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
}
.page-hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  text-wrap: balance;
}
.page-hero p.sub {
  font-size: 17px;
  color: var(--text-secondary);
  margin: 0 0 24px;
  max-width: 60ch;
}
.app-hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.app-hero img.icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  flex-shrink: 0;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.5);
}
@media (max-width: 560px) {
  .app-hero {
    flex-direction: column;
  }
}
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.stats li {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
}
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #1a0e0c;
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 24px;
  border-radius: 10px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* content sections */
.section {
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.section h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.section h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 6px;
}
.section p,
.section li {
  color: var(--text-secondary);
  font-size: 15.5px;
}
.section p {
  margin: 0 0 14px;
}
.section ul {
  padding-left: 20px;
  margin: 0 0 14px;
}
.section strong {
  color: var(--text);
}
.section a {
  color: var(--accent);
  font-weight: 600;
}
.section a:hover {
  text-decoration: underline;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 8px 0 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.section a.card {
  color: var(--text);
  font-weight: inherit;
  transition: border-color 0.2s ease;
}
.section a.card:hover {
  text-decoration: none;
  border-color: rgba(var(--accent-rgb), 0.4);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 15.5px;
}
.card p {
  margin: 0;
  font-size: 14px;
}

/* app cards: same look as the homepage "What we build" cards */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  perspective: 1200px;
  margin: 8px 0 0;
}
.app-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 24px 50px -34px rgba(0, 0, 0, 0.5);
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.25s ease;
}
.app-card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
}
.app-card .holo {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 119, 115, 0.7) 8%, rgba(255, 237, 95, 0.7) 18%, rgba(151, 255, 95, 0.7) 28%, rgba(95, 255, 240, 0.7) 38%, rgba(120, 148, 255, 0.7) 48%, rgba(216, 117, 255, 0.7) 58%, transparent 68%, transparent 100%);
  background-size: 300% 300%;
  background-position: var(--px, 50%) var(--py, 50%);
  mix-blend-mode: color-dodge;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.app-card:hover .holo {
  opacity: 0.85;
}
@media (prefers-reduced-motion: reduce) {
  .app-card .holo {
    display: none;
  }
}
.app-card img.icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.5);
  margin-bottom: 18px;
  transform: translateZ(26px);
}
.app-card .stat {
  font-size: 12.5px;
  color: var(--text-secondary);
  font-weight: 600;
  margin: 0 0 10px;
}
.app-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 10px;
  letter-spacing: -0.01em;
  transform: translateZ(12px);
}
.app-card h3 a {
  color: var(--text);
  font-weight: inherit;
}
.app-card h3 a:hover {
  color: var(--accent);
  text-decoration: none;
}
.app-card p.desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  margin: 0 0 20px;
}
.app-card .store-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
  transform: translateZ(12px);
  transition: gap 0.2s ease;
}
.app-card .store-link:hover {
  text-decoration: underline;
  gap: 10px;
}
@media (max-width: 820px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
}
/* inside a narrow text column, let the card grid break out to full site width */
@media (min-width: 821px) {
  .narrow .app-grid {
    --grid-w: min(1032px, calc(100vw - 48px));
    width: var(--grid-w);
    position: relative;
    left: 50%;
    margin-left: calc(var(--grid-w) / -2);
  }
}

/* FAQ */
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 20px;
  margin: 0 0 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
  font-weight: 800;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  margin: 0 0 16px;
}

/* footer (same as homepage) */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
  padding: 40px 0 56px;
}
.site-footer .brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}
.site-footer .brand-row img {
  height: 24px;
  width: 24px;
  border-radius: 6px;
}
.site-footer p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0 0 14px;
}
.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13.5px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}
.site-footer a {
  color: var(--accent);
  font-weight: 600;
}
.site-footer a:hover {
  text-decoration: underline;
}
.site-footer .fine {
  font-size: 12.5px;
  margin-top: 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
