/* ==========================================================================
   Phone Prism — app showcase (catalogue + app pages)
   Loaded after site.css. Reuses :root tokens from site.css.
   ========================================================================== */

/* ---------- Hero CTA tidy ---------- */
.hero-cta .status-chip {
  margin-bottom: 0
}

/* ---------- App page hero (VideoTop) ---------- */
.app-hero {
  padding: 78px 0 68px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line)
}

.app-hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center
}

.app-hero h1 {
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  margin: 16px 0;
  max-width: 18ch
}

.app-hero .lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
  line-height: 1.7
}

.app-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px
}

.app-hero-visual {
  justify-self: center;
  width: 100%;
  max-width: 350px
}

.shot-frame {
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  background: #0B1120
}

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

.phone-img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 34px 44px rgba(11, 17, 32, .28)) drop-shadow(0 6px 12px rgba(11, 17, 32, .14))
}

/* ---------- Download badge (the single download button) ---------- */
.dl-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #0B1120;
  color: #fff;
  border-radius: 16px;
  padding: 13px 22px;
  font-weight: 600;
  transition: transform .15s, box-shadow .15s, background .15s
}

.dl-badge:hover {
  transform: translateY(-2px);
  background: #1B2437;
  box-shadow: 0 22px 40px -24px rgba(11, 17, 32, .6)
}

.dl-badge .ico {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .12);
  display: grid;
  place-items: center;
  flex: none;
  color: #FF9257
}

.dl-badge .txt {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left
}

.dl-badge .txt small {
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .7;
  font-weight: 700
}

.dl-badge .txt b {
  font-family: 'Sora', sans-serif;
  font-size: 1.02rem
}

.dl-badge .arr {
  font-weight: 700;
  color: #FF9257;
  transition: transform .15s
}

.dl-badge:hover .arr {
  transform: translateX(3px)
}

.dl-note {
  margin-top: 16px;
  font-size: .8rem;
  color: var(--muted)
}

/* ---------- Showcase rows ---------- */
.show-rows {
  padding: 8px 0
}

.show-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 52px 0
}

.show-row+.show-row {
  border-top: 1px solid var(--line)
}

.show-row .show-visual {
  justify-self: center;
  width: 100%;
  max-width: 350px
}

.show-row.flip .show-copy {
  order: 2
}

.show-row.flip .show-visual {
  order: 1
}

.show-copy h3 {
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  margin: 12px 0;
  max-width: 20ch
}

.show-copy p {
  color: var(--muted);
  max-width: 48ch;
  line-height: 1.75
}

/* ---------- Closing band (privacy + contact) ---------- */
.dl-band {
  background: var(--bg-soft);
  color: var(--ink);
  border-top: 1px solid var(--line)
}

.dl-band-inner {
  padding: 70px 0 74px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center
}

.dl-appicon {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  box-shadow: 0 24px 44px -26px rgba(11, 17, 32, .35)
}

.dl-band .eyebrow {
  color: var(--accent);
  margin-top: 26px
}

.dl-band h2 {
  color: var(--ink);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  margin: 14px 0 12px
}

.dl-band .band-text {
  color: var(--muted);
  max-width: 56ch;
  line-height: 1.75
}

.dl-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 30px
}

.btn-light {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  border-radius: 14px;
  padding: 13px 24px;
  font-weight: 600;
  font-size: .92rem;
  transition: transform .15s, box-shadow .15s, background .15s
}

.btn-light:hover {
  transform: translateY(-2px);
  background: var(--accent-dark);
  box-shadow: 0 22px 40px -24px rgba(255, 106, 43, .55)
}

.btn-light .arrow {
  color: #fff;
  transition: transform .15s
}

.btn-light:hover .arrow {
  transform: translateX(3px)
}

.btn-ghost-dark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  padding: 13px 24px;
  font-weight: 600;
  font-size: .92rem;
  transition: border-color .15s, transform .15s
}

.btn-ghost-dark:hover {
  border-color: var(--ink);
  transform: translateY(-2px)
}

.dl-band .dl-note {
  color: var(--muted);
  margin-top: 22px
}

/* ---------- Responsive ---------- */
@media (max-width:1020px) {
  .app-hero-inner {
    grid-template-columns: 1fr;
    gap: 42px
  }

  .app-hero-visual {
    max-width: 320px
  }

  .show-row {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 40px 0
  }

  .show-row.flip .show-copy {
    order: 1
  }

  .show-row.flip .show-visual {
    order: 2
  }

  .show-row .show-visual {
    max-width: 320px
  }
}

@media (max-width:760px) {
  .app-hero {
    padding: 60px 0 52px
  }

  .app-hero-actions {
    width: 100%
  }

  .dl-badge {
    width: 100%;
    justify-content: center
  }

  .dl-band-inner {
    padding: 56px 0 60px
  }
}

/* ---------- Header "Apps" dropdown (opens from the word) ---------- */
.nav-drop {
  position: relative
}

.nav-drop::after {
  content: "";
  position: absolute;
  left: -24px;
  right: -24px;
  top: 100%;
  height: 18px
}

.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  transition: color .15s;
  position: relative
}

.nav-drop-btn:hover,
.nav-drop.open .nav-drop-btn {
  color: var(--ink)
}

.nav-drop-btn.active {
  color: var(--ink);
  font-weight: 600
}

.nav-drop-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent)
}

.nav-drop-btn .chev {
  transition: transform .18s;
  margin-top: 1px
}

.nav-drop:hover .nav-drop-btn .chev,
.nav-drop.open .nav-drop-btn .chev {
  transform: rotate(180deg)
}

.nav-drop-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(600px, calc(100vw - 48px));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 80;
}

.nav-drop-panel::after {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg)
}

.nav-drop:hover .nav-drop-panel,
.nav-drop.open .nav-drop-panel,
.nav-drop:focus-within .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-drop-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .95fr);
  align-items: stretch
}

.nd-label {
  font-family: 'Sora', sans-serif;
  font-size: .64rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px 2px
}

.nav-app {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg);
  transition: border-color .15s ease, box-shadow .15s ease
}

/* site.css `.site-nav a` sets padding: 6px 0 and wins on specificity — restore the card padding */
.nav-drop-panel .nav-app {
  padding: 14px
}

.nav-app:hover {
  border-color: rgba(255, 106, 43, .5);
  box-shadow: var(--shadow-sm)
}

.nav-app img {
  border-radius: 13px;
  flex: none;
  margin-top: 4px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 22px -12px rgba(11, 17, 32, .35)
}

.nav-app .t {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1
}

.nav-app .t b {
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  color: var(--ink)
}

.nav-app .t small {
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.5
}

.nd-tags {
  grid-column: 2 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px
}

.nd-tag {
  display: inline-flex;
  align-items: center;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted)
}

.nav-app .go {
  flex: none;
  align-self: center;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .15s ease
}

.nav-app .go svg {
  display: block
}

.nav-app:hover .go {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateX(2px)
}

.nd-main {
  padding: 20px 18px 20px 20px;
  min-width: 0
}

.nd-promo {
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
  border-radius: 0 19px 19px 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-width: 0
}

.nd-promo .nd-label {
  margin-left: 0
}

.nd-promo-text {
  font-size: .84rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1
}

.nd-promo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: .85rem;
  font-weight: 700;
  color: var(--ink)
}

.nd-promo-link:hover {
  color: var(--accent-dark)
}

.nd-promo-link span {
  transition: transform .15s
}

.nd-promo-link:hover span {
  transform: translateX(3px)
}

@media (max-width:760px) {
  .nav-drop {
    width: 100%
  }

  .nav-drop::after {
    display: none
  }

  .nav-drop-btn {
    width: 100%;
    justify-content: space-between;
    padding: 12px 0;
    font-size: .92rem;
    border-bottom: 1px solid var(--line)
  }

  .nav-drop-btn.active::after {
    display: none
  }

  .nav-drop-panel {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    border-radius: 0;
    width: 100%;
    padding: 2px 0 10px 8px
  }

  .nav-drop-panel::after {
    display: none
  }

  .nav-drop-grid {
    grid-template-columns: 1fr
  }

  .nd-main {
    padding: 10px 0 4px
  }

  .nav-drop-panel .nav-app {
    padding: 12px
  }

  .nd-promo {
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
    margin-top: 4px
  }
}