.app-page { max-width: var(--measure); margin-inline: auto; padding: clamp(48px, 7vw, 104px) var(--gutter) clamp(64px, 8vw, 128px); }

.app-intro { display: grid; gap: var(--space-12); padding-bottom: clamp(48px, 6vw, 88px); border-bottom: 1px solid var(--foreground); }
@media (min-width: 960px) {
  .app-intro { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(48px, 7vw, 120px); align-items: start; }
}
.app-intro-copy .legal-title { max-width: 13ch; }
.app-intro-copy .doc-lead { max-width: 54ch; }

.app-release { margin: var(--space-8) 0 var(--space-4); padding-block: var(--space-6); border-block: 1px solid var(--border-strong); max-width: 54ch; }
.app-release p { margin: 0 0 var(--space-4); }
.app-release p:last-child, .app-release .btn:last-child { margin-bottom: 0; }
#release-status { font-size: 1.1875rem; line-height: 1.4; font-weight: 500; }
#apk-download { margin-bottom: var(--space-4); }
.app-alt { margin: var(--space-6) 0 0; max-width: 54ch; }

.app-overview h2 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); font-weight: 500; margin-bottom: var(--space-6); }
.app-overview ol { list-style: none; counter-reset: setup; margin: 0 0 var(--space-6); padding: 0; border-top: 1px solid var(--border-strong); }
.app-overview li { counter-increment: setup; display: flex; align-items: baseline; gap: var(--space-4); padding-block: var(--space-4); border-bottom: 1px solid var(--border); font-size: 1.125rem; }
.app-overview li::before { content: counter(setup); flex: none; width: 1.5rem; font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--primary); }
.app-overview a { display: block; width: fit-content; padding-block: var(--space-2); font-weight: 650; }

.app-body { display: block; }
.app-main { min-width: 0; }
@media (min-width: 1100px) {
  .app-body { display: grid; grid-template-columns: minmax(0, 820px) minmax(260px, 340px); justify-content: space-between; gap: var(--space-12); align-items: start; }
  .app-body:has(#release-info[hidden]) { grid-template-columns: minmax(0, 820px); }
  .app-aside { position: sticky; top: var(--space-6); }
}
.app-overview-shot { margin: var(--space-8) 0 0; }
.app-overview-shot img { display: block; width: 100%; height: auto; max-width: 240px; border: 1px solid var(--border-strong); border-radius: var(--radius-device); background: var(--surface-sunk); }
.app-overview-shot figcaption { margin-top: var(--space-3); font-size: 0.9375rem; line-height: 1.45; color: var(--muted); max-width: 30ch; }

.app-guide, .app-help, .app-video, .app-release-info { padding-top: clamp(48px, 6vw, 88px); scroll-margin-top: var(--space-6); }
.app-section-heading { max-width: 60ch; margin-bottom: var(--space-8); }
.app-section-heading h2, .app-help h2, .app-video h2, .app-release-info h2 { font-size: clamp(1.875rem, 3.4vw, 2.75rem); line-height: 1.04; letter-spacing: -0.025em; font-weight: 400; margin-bottom: var(--space-4); }
.app-steps { list-style: none; counter-reset: install; margin: 0; padding: 0; max-width: 820px; border-top: 1px solid var(--foreground); }
.app-steps > li { counter-increment: install; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--space-4); padding-block: var(--space-6); border-bottom: 1px solid var(--border); }
.app-steps > li::before { content: counter(install); font-family: var(--font-display); font-size: 2.5rem; line-height: 1; letter-spacing: -0.03em; color: var(--primary); }
.app-steps h3 { font-size: 1.375rem; font-weight: 500; margin: 0 0 var(--space-2); }
.app-steps p { margin: 0 0 var(--space-3); max-width: 62ch; }
.app-steps p:last-child { margin-bottom: 0; }

.app-video video::cue { font-family: var(--font-body); font-size: 80%; line-height: 1.3; color: #ffffff; background-color: rgb(20 17 14 / .86); }
.app-video video { display: block; width: 100%; max-width: 820px; max-height: 70vh; aspect-ratio: 16 / 9; object-fit: contain; background: #1b1815; }

.app-help { max-width: 820px; }
.app-help details { border-bottom: 1px solid var(--border); }
.app-help details:first-of-type { border-top: 1px solid var(--foreground); }
.app-help summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); min-height: 64px; padding-block: var(--space-4); font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; }
.app-help summary::-webkit-details-marker { display: none; }
.app-help summary::after { content: "+"; content: "+" / ""; flex: none; width: 32px; height: 32px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 1.125rem; color: var(--primary); border: 1px solid var(--border-strong); border-radius: 50%; }
.app-help details[open] summary::after { content: "−"; content: "−" / ""; }
.app-help summary:hover { color: var(--primary); }
.app-help details p { max-width: 62ch; margin: 0 0 var(--space-4); color: var(--muted); }
.app-help details[open] { padding-bottom: var(--space-4); }

.app-release-info { max-width: 820px; }
.app-release-info dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); align-items: baseline; gap: 0 var(--space-8); margin: 0; border-top: 1px solid var(--foreground); }
.app-release-info dt, .app-release-info dd { padding-block: var(--space-3); border-bottom: 1px solid var(--border); margin: 0; }
.app-release-info dt { font-weight: 650; }
.app-aside .app-release-info dl { grid-template-columns: minmax(0, 1fr); }
.app-aside .app-release-info dt { border-bottom: 0; padding-bottom: 0; }
.app-release-info dd { font-family: var(--font-mono); font-size: 0.875rem; overflow-wrap: anywhere; }
.app-contact { margin: clamp(48px, 6vw, 88px) 0 0; font-size: 1.125rem; }

@media (max-width: 640px) {
  .app-steps > li { grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-3); }
  .app-steps > li::before { font-size: 2rem; }
  .app-release-info dl { grid-template-columns: 1fr; }
  .app-release-info dt { border-bottom: 0; padding-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.app-alt a, .app-contact a, .app-help a { display: inline; }
.app-overview a { min-height: 48px; padding-block: 12px; box-sizing: border-box; }
