/* A 100% us app's own pages: /apps/<id>, /apps/<id>/privacy, /apps/<id>/support.
   Same site, same type; the app brings its colours through --app-bg, --app-c and --app-t. */
.app-page { --app-bg: #1C1C22; --app-c: var(--lime); --app-t: #C9C8C3; }

.app-nav { display: flex; flex-wrap: wrap; gap: 0.25rem; max-width: 1440px; margin: 0 auto; padding: 0.5rem var(--gutter) 0; }
.app-nav a {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.app-nav a:hover { color: var(--bone); background: var(--ink-3); }
.app-nav a[aria-current="page"] { color: var(--ink); background: var(--app-c); }

.app-hero {
  position: relative; overflow: hidden;
  width: calc(100% - 2 * var(--gutter)); max-width: 1440px; margin: 1.5rem auto 0; padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 5vw, 4.5rem);
  border-radius: 2.25rem; background: var(--app-bg);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
@media (max-width: 860px) { .app-hero { grid-template-columns: minmax(0, 1fr); } }
.app-hero__icon { width: 7rem; height: 7rem; border-radius: 1.6rem; box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.7); }
.app-hero h1 {
  margin: 1.75rem 0 0; font-family: var(--display); font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 5rem); line-height: 0.95; letter-spacing: -0.04em;
}
.app-hero__tag { margin: 1rem 0 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--app-c); }
.app-hero__text { margin: 1.25rem 0 0; max-width: 32rem; font-size: 1.1rem; color: var(--app-t); }
.app-stores { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }
.app-store {
  display: inline-flex; flex-direction: column; justify-content: center; min-height: 3.5rem; padding: 0 1.4rem; border-radius: 1rem;
  background: var(--app-c); color: var(--app-bg); text-decoration: none; font-weight: 700; font-size: 1.05rem; line-height: 1.1;
  transition: transform 0.4s var(--spring);
}
.app-store small { font-weight: 500; font-size: 0.72rem; opacity: 0.8; }
.app-store:hover { transform: translateY(-2px); }
.app-hero__shots { display: flex; justify-content: center; align-items: flex-end; gap: 1rem; }
.app-hero__shots img {
  width: min(42%, 15rem); height: auto; border-radius: 1.6rem;
  box-shadow: 0 0 0 0.35rem rgba(255, 255, 255, 0.06), 0 40px 70px -30px rgba(0, 0, 0, 0.9);
  animation: app-rise 0.9s var(--ease) both;
}
.app-hero__shots img:nth-child(1) { transform: rotate(-5deg); animation-delay: 0.1s; }
.app-hero__shots img:nth-child(2) { transform: rotate(6deg) translateY(-1.5rem); animation-delay: 0.25s; }
@keyframes app-rise { from { opacity: 0; translate: 0 2.5rem; } }

.app-sec { max-width: 1440px; margin: 0 auto; padding: clamp(4rem, 10vh, 7rem) var(--gutter) 0; }
.app-sec h2 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.03em; }
.app-sec__lede { margin: 1rem 0 0; max-width: 40rem; font-size: 1.1rem; color: #C9C8C3; }

.app-screens { display: flex; gap: 1.25rem; margin-top: 2rem; overflow-x: auto; padding-bottom: 1rem; scroll-snap-type: x mandatory; }
.app-screens figure { flex: none; width: min(15rem, 62vw); margin: 0; scroll-snap-align: start; }
.app-screens img { display: block; width: 100%; height: auto; border-radius: 1.6rem; background: var(--app-bg); }
.app-screens figcaption { margin-top: 0.8rem; font-size: 0.92rem; color: var(--muted); }

.app-features { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.app-features li { padding: 1.4rem 1.5rem; border-radius: 1.4rem; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); color: #C9C8C3; }
.app-features b { display: block; margin-bottom: 0.4rem; color: var(--bone); font-weight: 600; }

/* Privacy and support: a readable column */
.app-doc { max-width: 46rem; margin: 0 auto; padding: clamp(3rem, 8vh, 5rem) var(--gutter) 0; }
.app-doc__head { display: flex; align-items: center; gap: 1rem; }
.app-doc__head img { width: 3.5rem; height: 3.5rem; border-radius: 0.9rem; }
.app-doc h1 { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; line-height: 1.05; }
.app-doc__date { margin: 1rem 0 0; font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.app-doc h2 { margin: 2.75rem 0 0; font-size: 1.25rem; font-weight: 600; }
.app-doc p, .app-doc li { color: #C9C8C3; }
.app-doc p { margin: 0.8rem 0 0; }
.app-doc ul { margin: 0.8rem 0 0; padding-left: 1.2rem; }
.app-doc li { margin-top: 0.4rem; }
.app-doc a { color: var(--app-c); }
.app-mail {
  display: inline-flex; align-items: center; margin-top: 1.25rem; min-height: 3.25rem; padding: 0 1.5rem; border-radius: 999px;
  background: var(--app-c); color: var(--app-bg) !important; font-weight: 600; text-decoration: none;
}

.app-foot { max-width: 1440px; margin: clamp(5rem, 12vh, 8rem) auto 0; padding: 1.5rem var(--gutter) 2.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; font-size: 0.88rem; color: var(--muted); }
.app-foot a { color: var(--muted); text-decoration: none; }
.app-foot a:hover { color: var(--bone); }
.app-foot span:last-child { margin-left: auto; }
@media (max-width: 640px) { .app-foot span:last-child { margin-left: 0; } }
