/* ==========================================================================
   App detail page (/our-apps/<slug>)
   Sits on the shared marketing shell (.zt-header / .zt-section / .zt-cta) and
   tints itself with the app's own accent via --oad-accent. Logical properties
   throughout so RTL and LTR need no separate rules.
   ========================================================================== */

.oad-hero {
  --oad-accent: #3b82f6;
  padding-block: 150px 90px;
}

.oad-breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .6);
  margin-block-end: 28px;
}

.oad-breadcrumbs a {
  color: rgba(255, 255, 255, .78);
  text-decoration: none;
}

.oad-breadcrumbs a:hover {
  color: #fff;
  text-decoration: underline;
}

.oad-breadcrumbs [aria-current="page"] {
  color: #fff;
  font-weight: 700;
}

.oad-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.oad-hero-logo {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  background: #fff;
}

.oad-hero-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.oad-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.3;
}

.oad-hero-sub {
  margin: 0;
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.95;
  color: rgba(255, 255, 255, .82);
}

.oad-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
}

.oad-platform {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
}

.oad-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-block-start: 6px;
}

.oad-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: transform .25s ease, filter .25s ease, background .25s ease;
}

.oad-btn:hover {
  transform: translateY(-2px);
}

.oad-btn-primary {
  background: var(--oad-accent);
  color: #fff !important;
  box-shadow: 0 12px 30px -10px var(--oad-accent);
}

.oad-btn-primary:hover {
  filter: brightness(1.08);
}

.oad-btn-ghost {
  background: rgba(255, 255, 255, .1);
  border: 1.5px solid rgba(255, 255, 255, .3);
  color: #fff !important;
}

.oad-btn-ghost:hover {
  background: rgba(255, 255, 255, .18);
}

.oad-btn i {
  font-size: 12px;
}

.oad-hero-media {
  margin-block-start: 46px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .12);
}

.oad-hero-media img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Intro --------------------------------------------------------------- */

.oad-intro-inner {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.oad-prose {
  color: #4b5567;
  font-size: 1.02rem;
  line-height: 2.05;
}

.oad-prose p {
  margin: 0 0 14px;
}

.oad-prose p:last-child {
  margin-bottom: 0;
}

/* ---- Features ------------------------------------------------------------ */

.oad-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.oad-feature {
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: 16px;
  padding: 26px 22px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.oad-feature:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--oad-accent, #3b82f6) 35%, #e8ecf3);
  box-shadow: 0 16px 36px rgba(15, 23, 42, .1);
}

.oad-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--oad-accent, #3b82f6) 12%, #fff);
  color: var(--oad-accent, #3b82f6);
  font-size: 19px;
  margin-block-end: 16px;
}

.oad-feature h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #16213e;
}

.oad-feature p {
  margin: 0;
  color: #5a6478;
  font-size: 14.5px;
  line-height: 1.9;
}

/* ---- Steps --------------------------------------------------------------- */

.oad-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  max-width: 860px;
  margin-inline: auto;
  counter-reset: oad-step;
}

.oad-step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: 16px;
  padding: 22px;
}

.oad-step-num {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  background: var(--oad-accent, #3b82f6);
  color: #fff;
}

.oad-step-body h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #16213e;
}

.oad-step-body p {
  margin: 0;
  color: #5a6478;
  font-size: 14.5px;
  line-height: 1.9;
}

/* ---- Gallery ------------------------------------------------------------- */

.oad-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.oad-shot {
  margin: 0;
}

.oad-shot-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid #e4e9f2;
  border-radius: 16px;
  overflow: hidden;
  background: #f6f8fc;
  cursor: zoom-in;
  transition: transform .25s ease, box-shadow .25s ease;
}

.oad-shot-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .14);
}

.oad-shot-btn img {
  width: 100%;
  height: auto;
  display: block;
}

.oad-shot figcaption {
  margin-block-start: 10px;
  font-size: 13.5px;
  color: #6b7488;
  text-align: center;
}

/* ---- Lightbox ------------------------------------------------------------ */

.oad-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 10, 22, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.oad-lightbox[hidden] {
  display: none;
}

.oad-lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

.oad-lb-close,
.oad-lb-nav {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}

.oad-lb-close:hover,
.oad-lb-nav:hover {
  background: rgba(255, 255, 255, .25);
}

.oad-lb-close {
  inset-block-start: 24px;
  inset-inline-end: 24px;
}

.oad-lb-prev {
  inset-inline-start: 24px;
}

.oad-lb-next {
  inset-inline-end: 24px;
}

/* ---- FAQ ----------------------------------------------------------------- */

.oad-faq {
  max-width: 860px;
  margin-inline: auto;
  display: grid;
  gap: 12px;
}

.oad-faq-item {
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: 14px;
  overflow: hidden;
}

.oad-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 700;
  color: #16213e;
  font-size: 15.5px;
  list-style: none;
}

.oad-faq-item summary::-webkit-details-marker {
  display: none;
}

.oad-faq-item summary i {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--oad-accent, #3b82f6);
  transition: transform .25s ease;
}

.oad-faq-item[open] summary i {
  transform: rotate(180deg);
}

.oad-faq-answer {
  padding: 0 22px 20px;
  color: #5a6478;
  font-size: 14.5px;
  line-height: 2;
}

.oad-faq-answer p {
  margin: 0 0 10px;
}

.oad-faq-answer p:last-child {
  margin-bottom: 0;
}

/* ---- Related apps -------------------------------------------------------- */

.oad-related {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.oad-related-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid #e8ecf3;
  background: #fff;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}

.oad-related-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .1);
}

.oad-related-card img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex: 0 0 auto;
}

.oad-related-card span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.oad-related-card strong {
  color: #16213e;
  font-size: 15px;
}

.oad-related-card small {
  color: #6b7488;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .oad-hero {
    padding-block: 120px 60px;
  }

  .oad-step {
    flex-direction: column;
    gap: 12px;
  }

  .oad-lightbox {
    padding: 16px;
  }

  .oad-lb-close {
    inset-block-start: 12px;
    inset-inline-end: 12px;
  }

  .oad-lb-prev {
    inset-inline-start: 8px;
  }

  .oad-lb-next {
    inset-inline-end: 8px;
  }
}

/* ---- Live demo (iframed from the app's own site) ------------------------- */

.oad-demo-note {
  margin: 8px 0 0;
  color: #6b7488;
  font-size: 14.5px;
}

.oad-demo-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e4e9f2;
  background: #fff;
  box-shadow: 0 20px 50px -24px rgba(15, 23, 42, .35);
}

.oad-demo-frame iframe {
  display: block;
  width: 100%;
  border: 0;
  /* Height is set inline and then corrected by the frame's own height report. */
  transition: height .3s ease;
}

/* Tighter rhythm than the marketing sections elsewhere: these pages stack many
   short blocks, and the site default leaves too much air between them. */
.app-detail-page .zt-section {
  padding-block: 56px;
}

.app-detail-page .zt-section-header {
  margin-block-end: 28px;
}

.app-detail-page .oad-demo-section {
  padding-block: 34px 40px;
}

@media (max-width: 640px) {
  .app-detail-page .zt-section {
    padding-block: 40px;
  }
}
