@font-face { font-family: "Display"; src: url("../fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Body"; src: url("../fonts/instrument-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

/* Neutral charcoal carries the page. Teal is for actions; coral marks "offline". */
:root {
  color-scheme: dark;
  --bg: #101114; --surface: #191b20; --raised: #22252c; --line: #2f323b;
  --text: #eeeef0; --muted: #a2a5b0; --teal: #17a39a; --teal-hover: #35bdb3; --coral: #ff8a6b; --danger: #e5646e;
  --display: "Display", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 1.0625rem/1.6 "Body", system-ui, sans-serif; overflow-wrap: anywhere; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5rem; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 1.3rem + 5.2vw, 4.8rem); font-weight: 750; letter-spacing: -.03em; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 .8rem; }
a { color: var(--teal-hover); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.wrap { width: min(1080px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--muted); font-size: .95rem; }
.warn { color: var(--coral); }
.lead { font-size: 1.22rem; color: var(--muted); max-width: 30rem; margin-bottom: 1.6rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 9; background: var(--raised); padding: .5rem 1rem; }

.button { display: inline-block; background: var(--teal); color: #04201e; border: 1px solid var(--teal); border-radius: 999px; padding: .75rem 1.4rem; font: 650 1rem/1.2 "Body", system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--teal-hover); border-color: var(--teal-hover); }
.button--small { padding: .45rem .95rem; font-size: .92rem; }
.button--quiet { background: transparent; color: var(--text); border-color: #555965; }
.button--quiet:hover { background: var(--raised); border-color: #555965; }
.button--danger { background: transparent; color: var(--danger); border-color: var(--danger); }
.button--danger:hover { background: var(--danger); border-color: var(--danger); color: #23070a; }

.top { border-bottom: 1px solid var(--line); }
.top__inner { display: flex; align-items: center; justify-content: space-between; min-height: 4.25rem; gap: .75rem; flex-wrap: wrap; }
.brand { color: var(--text); font: 750 1.4rem var(--display); text-decoration: none; }
.brand img { height: 2rem; display: block; }
.top nav { display: flex; align-items: center; gap: 1.2rem; }
.top nav > a:not(.button) { color: var(--muted); text-decoration: none; }
.top nav > a:not(.button):hover { color: var(--text); }
.top nav > a.button { color: #04201e; }

.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; padding-block: 4.5rem; }
.hero__shots { display: flex; justify-content: center; align-items: flex-start; }
.hero__shots .phone { width: min(55%, 240px); }
.hero__shots .phone--behind { margin: 3.5rem 0 0 -2rem; }
.phone { display: block; width: 100%; max-width: 240px; aspect-ratio: 9 / 19; object-fit: cover; border-radius: 28px; border: 6px solid var(--raised); background: var(--surface); }
span.missing { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: .75rem; gap: .4rem; color: var(--muted); font-size: .88rem; position: relative; }
span.missing code { font-size: .66rem; }

.section { padding-block: 3.5rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.steps li { counter-increment: step; border-top: 3px solid var(--teal); padding: 1.1rem 1.5rem 0 0; }
.steps li.offline { border-top: 3px dashed var(--coral); }
.steps h3::before { content: counter(step) ". "; color: var(--muted); }
.steps p { color: var(--muted); }

.features { list-style: none; padding: 0; margin: 1.75rem 0 3rem; display: grid; grid-template-columns: repeat(2, 1fr); column-gap: 3rem; }
.features li { border-top: 1px solid var(--line); padding-block: 1.2rem .4rem; }
.features p { color: var(--muted); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; justify-items: center; }

.release, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.6rem; margin-block: 1.5rem; }
.release header { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.release header p { margin-bottom: .2rem; }
.count { color: var(--muted); }
.count strong { display: block; color: var(--text); font: 750 2.4rem/1 var(--display); }
.notes { white-space: pre-line; margin-top: 1rem; }
.apks { list-style: none; padding: 0; margin: 1rem 0 0; }
.apks li { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; border-top: 1px solid var(--line); padding-block: 1.1rem; }
.apks li:last-child { padding-bottom: 0; }
.apks h4 { font-size: 1.1rem; }
.apks p { margin-bottom: .3rem; white-space: pre-line; }
.apks details, .apks code { font-size: .82rem; color: var(--muted); }
.older-title { margin-top: 2rem; }
.older { list-style: none; padding: 0; margin-bottom: 1.5rem; }
.older li { border-top: 1px solid var(--line); padding-top: .8rem; }
.older p { margin-bottom: .4rem; }
.older a { margin-right: 1.25rem; }

.faq details { border-top: 1px solid var(--line); max-width: 46rem; }
.faq summary { cursor: pointer; font-weight: 650; padding-block: 1rem; }
.faq details p { color: var(--muted); }

.foot { border-top: 1px solid var(--line); padding-block: 2rem; color: var(--muted); font-size: .88rem; }

.admin { padding-block: 2rem 3rem; max-width: 760px; }
.admin h1 { font-size: 2rem; }
.admin h2 { font-size: 1.3rem; }
.admin__head, .row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.row { justify-content: flex-start; }
label { display: block; font-weight: 600; margin-bottom: 1rem; }
input:not([type="hidden"]), select, textarea { display: block; width: 100%; margin-top: .3rem; background: var(--bg); color: var(--text); border: 1px solid #484c57; border-radius: 10px; padding: .65rem .8rem; font: inherit; font-weight: 400; }
label small { display: block; color: var(--muted); font-weight: 400; margin-top: .25rem; }
.apk-edit { border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-bottom: 1rem; }
.panel form + form { margin-top: 1rem; }
.login { max-width: 22rem; margin-inline: auto; }
.notice { background: #12302d; border-left: 3px solid var(--teal); padding: .75rem 1rem; border-radius: 6px; }
ul.notice { padding-left: 2rem; }
.notice--error { background: #361b1f; border-color: var(--danger); }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .65rem .75rem .65rem 0; border-bottom: 1px solid var(--line); }

@media (max-width: 760px) {
  .hero, .steps, .features { grid-template-columns: 1fr; }
  .hero { padding-block: 2.5rem; gap: 2rem; }
  .steps li { border-top: 0; border-left: 3px solid var(--teal); padding: 0 0 .75rem 1rem; }
  .steps li.offline { border-top: 0; border-left: 3px dashed var(--coral); }
  .gallery { display: flex; overflow-x: auto; }
  .gallery .phone { flex: 0 0 62%; }
  .apks li { flex-direction: column; align-items: stretch; text-align: left; }
  .apks .button { text-align: center; }
  .top nav { gap: .85rem; }
}
