/* ============================================================
   APPS — /apps/, /apps/<slug>/, /apps/<slug>/privacy/
   Built only from the v5 tokens (style.css :root) so it stays
   in the black / white / signal-yellow system.
   ============================================================ */

/* breadcrumb links inside the dark hero */
.crumb a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease-expo), border-color 0.25s var(--ease-expo);
}
.crumb a:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

/* ---------- app icon + status ---------- */
.app-icon {
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 22px;
  border: 1px solid var(--ink);
  flex: none;
  background: var(--ink);
}
.app-icon-lg {
  width: 112px;
  height: 112px;
  border-radius: 26px;
  border-color: var(--line-ghost);
}

.app-status {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 0.25rem 0.6rem;
  white-space: nowrap;
}
.app-status.is-live {
  background: var(--yellow);
  color: var(--ink);
}
.app-status.is-coming {
  background: var(--ink);
  color: var(--yellow);
}
.app-status.is-soon {
  background: var(--paper-dim);
  color: var(--grey-700);
}
.page-hero .app-status {
  border-color: var(--yellow);
}

/* ---------- Apps page cards (share the plugin-card language) ---------- */
.app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.2rem);
}

.app-card {
  border: 1px solid var(--ink);
  background: var(--paper);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease-expo), box-shadow 0.3s var(--ease-expo);
}
.app-card:hover {
  transform: translate(-4px, -4px);
  box-shadow: 8px 8px 0 var(--yellow), 8px 8px 0 1px var(--ink);
}

.app-id {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  color: inherit;
  text-decoration: none;
  margin-bottom: 1.1rem;
}
.app-id h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  text-transform: uppercase;
  line-height: 1;
  margin: 0 0 0.35rem;
}
.app-sub {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-500);
}

.app-card > p {
  color: var(--grey-500);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.app-facts {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 1.1rem 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex: 1;
  align-content: flex-start;
}
.app-facts li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 0.3rem 0.55rem;
}

/* placeholder card for apps still to come */
.app-card-next {
  border-style: dashed;
  background: var(--paper-dim);
}
.app-card-next h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}
.app-card-next > p {
  flex: 1;
}

/* ---------- product page hero ---------- */
.app-hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.app-hero-id {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}
.app-hero-note {
  margin-top: 1.2rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--grey-300);
}
.app-stores {
  flex-wrap: wrap;
}
.app-store-soon {
  cursor: default;
  opacity: 0.75;
}
.app-store-soon:hover {
  border-color: var(--line-ghost);
  color: var(--paper);
}
/* on the yellow call-to-action band the "coming soon" label is ink, not white */
.cta-band .app-store-soon,
.cta-band .app-store-soon:hover {
  color: var(--ink);
  border-color: var(--ink);
  opacity: 0.6;
}

.app-hero-phone {
  justify-self: center;
  width: min(100%, 300px);
}

/* ---------- phone frames + screenshot strip ---------- */
.phone-frame {
  border: 1px solid var(--line-ghost);
  border-radius: 34px;
  padding: 10px;
  background: var(--ink-soft);
  box-shadow: 10px 10px 0 var(--yellow);
}
.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 25px;
}

.shot-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 240px);
  gap: clamp(1.4rem, 3vw, 2.2rem);
  overflow-x: auto;
  padding: 0.5rem 1rem 1.8rem 0.2rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.shot-strip figure {
  margin: 0;
  scroll-snap-align: start;
}
.shot-strip .phone-frame {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--yellow), 6px 6px 0 1px var(--ink);
}
.shot-strip figcaption {
  margin-top: 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-700);
}
.shot-strip:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* ---------- privacy page ---------- */
.privacy-summary {
  border: 1px solid var(--ink);
  background: var(--yellow);
  padding: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.privacy-summary .section-tag {
  display: block;
  margin-bottom: 0.6rem;
}
.privacy-summary p {
  margin: 0;
  font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.3rem);
  line-height: 1.5;
  max-width: 60ch;
}
.term-card a {
  color: var(--ink);
  font-weight: 700;
}

/* ---------- responsive (same breakpoints as pages.css) ---------- */
@media (max-width: 1024px) {
  .app-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .app-hero-grid {
    grid-template-columns: 1fr;
  }
  .app-hero-phone {
    width: min(70%, 260px);
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .app-grid {
    grid-template-columns: 1fr;
  }
  .app-card {
    padding: 1.6rem 1.3rem;
  }
  .app-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
  .app-icon-lg {
    width: 88px;
    height: 88px;
    border-radius: 22px;
  }
  .app-hero-phone {
    display: none;
  }
  .shot-strip {
    grid-auto-columns: 62%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-card,
  .app-card:hover {
    transition: none;
    transform: none;
  }
}
