/* AnyDroid — app detail pages. Uses the tokens and shared parts from styles.css. */

:root { --text: #3c4043; }
@media (prefers-color-scheme: dark) {
  :root { --text: #c9ced6; }
}

/* Hero */
.app-hero { padding: 48px 0 56px; }
.app-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 48px;
  align-items: center;
}
.crumbs { margin-bottom: 26px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span { margin: 0 8px; }
.app-hero-head { display: flex; align-items: center; gap: 18px; }
.app-hero-head img { width: 84px; height: 84px; border-radius: 24px; box-shadow: var(--shadow); }
.app-hero h1 {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}
.app-hero .app-title { margin-top: 2px; }
.tagline {
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 600;
  line-height: 1.35;
}
.app-hero .lede { margin-top: 16px; max-width: 36em; }
.app-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 30px;
}
.app-hero-art {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 48px 40px;
  border-radius: var(--radius);
  background: var(--tone);
}
.app-hero-art::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -140px;
  right: -140px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 36px solid var(--tone-ring);
}
.app-hero-art .app-scene {
  position: static;
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  margin: 0 auto;
}

/* Fact chips under the hero */
.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}
.fact { padding: 14px 16px; border-radius: 18px; background: var(--surface); }
.fact b { display: block; font-family: var(--display); font-size: 18px; letter-spacing: -.01em; }
.fact span { font-size: 14px; color: var(--muted); }

/* Sections */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section h2 {
  margin-bottom: 20px;
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
}
.section h3 {
  margin: 30px 0 10px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.015em;
}
.prose { max-width: 66ch; color: var(--text); }
.prose p { margin: 0 0 16px; line-height: 1.7; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--green-ink); font-weight: 600; }
.note { font-size: 14px; color: var(--muted); }

.app-features.two-col { grid-template-columns: 1fr 1fr; gap: 10px 40px; max-width: 900px; }
.app-features li { color: var(--text); }

.steps { display: grid; gap: 14px; max-width: 760px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; }
.steps li::before {
  content: counter(step);
  counter-increment: step;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-ink);
  font-family: var(--display);
  font-weight: 700;
}
.steps { counter-reset: step; }
.steps b { display: block; font-family: var(--display); font-size: 18px; margin-bottom: 2px; }
.steps span { color: var(--text); line-height: 1.6; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip-list li { padding: 8px 14px; border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 600; }

/* Screenshot strip: scrolls sideways, snaps per shot */
.shots {
  display: flex;
  gap: 18px;
  margin: 0 calc(-1 * var(--gutter));
  padding: 6px var(--gutter) 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.shots figure {
  flex: 0 0 auto;
  width: 224px;
  margin: 0;
  scroll-snap-align: start;
}
.shots img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--surface);
}
.shots figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

/* Closing call to action */
.cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  margin: 24px 0 96px;
  padding: 44px 48px;
  border-radius: var(--radius);
  background: var(--green-soft);
}
.cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -120px;
  top: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 30px solid var(--green-ring);
}
.cta h2 {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.cta p { margin-top: 8px; color: var(--muted); }

@media (max-width: 860px) {
  .app-hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .app-hero-art { order: -1; padding: 32px 24px; }
  .app-hero-art .app-scene { max-width: 300px; }
  .app-features.two-col { grid-template-columns: 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding: 32px 26px; }
}

@media (max-width: 600px) {
  .app-hero { padding: 28px 0 40px; }
  .app-hero-head img { width: 64px; height: 64px; border-radius: 18px; }
  .app-hero-actions .btn { width: 100%; }
  .section { padding: 44px 0; }
  .cta .btn { width: 100%; }
}
