/* APK download site — mobile-first, no web fonts, no external requests */
:root {
  --ink: #0f1f1a;
  --ink-2: #3d4f48;
  --muted: #6b7c75;
  --bg: #f6f5f0;
  --paper: #ffffff;
  --line: #e3e1d8;
  --deep: #0b3d2e;
  --deep-2: #0f5a41;
  --accent: #12a150;
  --accent-ink: #0d7a3c;
  --accent-soft: #e3f5ea;
  --warn: #fff4d6;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(15, 31, 26, .06), 0 8px 24px rgba(15, 31, 26, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  --bottomnav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--bg); padding-bottom: var(--bottomnav-h); }
img { max-width: 100%; height: auto; }
a { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.85rem, 5.6vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); font-weight: 800; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }
code { background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.wrap-narrow { width: min(780px, 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--paper); padding: 8px 12px; border-radius: 8px; }

/* In-app browser banner */
.inapp { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 20px; background: var(--warn); border-bottom: 1px solid #f0dfa6; font-size: .95rem; }
.inapp[hidden] { display: none; }
.inapp p { margin: 0; }
.inapp-btn { flex: none; font-weight: 700; color: var(--ink); background: #fff; border: 1px solid #e4cf86; border-radius: 999px; padding: 6px 14px; text-decoration: none; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(246, 245, 240, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.1rem; margin-right: auto; }
.brand img { border-radius: 10px; object-fit: cover; }
.nav { display: none; gap: 4px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.nav a:hover { background: #ecebe4; }
.nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent-soft); }

/* Breadcrumb */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 18px; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .12s ease, background-color .15s ease, border-color .15s ease; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .chip:focus-visible, .card-link:focus-visible { outline: 3px solid #8fd8ad; outline-offset: 2px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: .92rem; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 1.08rem; border-radius: 14px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(18, 161, 80, .28); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #c9c6b8; }
.btn-light { background: #fff; color: var(--deep); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { border-color: #fff; }
.btn-wa { background: #25d366; color: #073b1d; }
.btn-tg { background: #2aabee; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Home hero */
.hero { padding: 36px 0 52px; background: radial-gradient(900px 420px at 85% -10%, rgba(18, 161, 80, .14), transparent 60%), linear-gradient(180deg, #fbfaf6, var(--bg)); }
.hero-in { display: grid; gap: 32px; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 36em; }
.hero .btn-row { margin: 24px 0 12px; }
.hero .btn-row .btn-primary { flex: 1 1 220px; }
.device-note { font-size: .95rem; color: var(--muted); min-height: 1.6em; margin: 0; }
.device-note.is-ok { color: var(--accent-ink); font-weight: 600; }
.device-note.is-warn { color: #8a5a00; font-weight: 600; }
.hero-banner { border-radius: 20px; overflow: hidden; background: var(--deep); box-shadow: 0 24px 50px rgba(11, 61, 46, .22); aspect-ratio: 1200 / 630; }
.hero-banner img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Shortcut chips */
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 24px; }
.chip { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem; transition: border-color .15s, transform .12s; }
.chip:hover { border-color: #a9dfbf; transform: translateY(-1px); }
.chip svg { flex: none; color: var(--accent-ink); }

/* Page hero (inner pages) */
.page-hero { padding: 22px 0 40px; }
.page-hero .lead { margin-bottom: 0; }
.page-hero .btn-row { margin-top: 22px; }

/* Sections */
.section { padding: 60px 0; }
.section-tight { padding: 40px 0; }
.section-alt { background: var(--paper); border-block: 1px solid var(--line); }
.section-dark { background: linear-gradient(160deg, var(--deep-2), var(--deep)); color: #e7f6ee; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #b9e2cc; }
.section-head { max-width: 46em; margin-bottom: 30px; }
.section-head p { color: var(--ink-2); margin: 0; }
.section-dark .section-head p { color: #b9e2cc; }
.label { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
.section-dark .label { color: #6fe0a2; }

/* Feature split */
.split { display: grid; gap: 32px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 14px; }
.feature-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.feature-list .dot { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800; }
.feature-list strong { display: block; }
.feature-list span { color: var(--ink-2); font-size: .97rem; }
.feature-visual { display: none; place-items: center; padding: 34px; border-radius: 24px; background: radial-gradient(circle at 30% 20%, #1c7a57, var(--deep)); min-height: 280px; }
.feature-visual img { width: 132px; height: 132px; border-radius: 30px; background: #fff; object-fit: cover; box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }

/* Link cards */
.cards { display: grid; gap: 14px; }
.card-link { display: block; position: relative; padding: 22px 22px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .12s, border-color .15s; }
.card-link:hover { transform: translateY(-2px); border-color: #a9dfbf; }
.card-link .card-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 14px; }
.card-link h3 { margin-bottom: 6px; }
.card-link p { color: var(--ink-2); margin: 0 0 12px; font-size: .97rem; }
.card-link .more { font-weight: 700; color: var(--accent-ink); font-size: .95rem; }

/* Phone mockup */
.phone { width: 250px; margin-inline: auto; padding: 46px 24px 32px; border-radius: 40px; text-align: center; background: linear-gradient(170deg, #12704f, #082c21); color: #e7f6ee; box-shadow: 0 30px 60px rgba(0, 0, 0, .35), inset 0 0 0 8px #062219; position: relative; }
.phone-notch { position: absolute; top: 16px; left: 50%; width: 70px; height: 8px; margin-left: -35px; border-radius: 99px; background: #062219; }
.phone-logo { border-radius: 22px; background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); object-fit: cover; }
.phone-name { margin: 16px 0 2px; font-weight: 800; font-size: 1.25rem; color: #fff; }
.phone-sub { margin: 0; color: #a8d9bf !important; font-size: .9rem; }
.phone-bar { margin: 26px auto 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.phone-bar span { display: block; height: 100%; width: 100%; background: #3ddc84; border-radius: inherit; animation: fill 2.4s ease-out both; }
@keyframes fill { from { width: 0; } }
.mini-steps { list-style: none; counter-reset: m; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; }
.mini-steps li { counter-increment: m; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; }
.mini-steps li::before { content: counter(m); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #3ddc84; color: #062219; font-weight: 800; }

/* Download methods */
.methods { display: grid; gap: 16px; }
.method { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px 24px; box-shadow: var(--shadow); }
.method p { color: var(--ink-2); }
.method-main { border-color: #a9dfbf; background: linear-gradient(180deg, #f3fbf6, #fff); }
.method-num { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: 12px; border-radius: 10px; background: var(--deep); color: #fff; font-weight: 800; }
.qr { width: 184px; height: 184px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.qr svg { display: block; width: 100%; height: 100%; }
.share { display: flex; flex-wrap: wrap; gap: 10px; }
.copied { margin: 12px 0 0; color: var(--accent-ink); font-weight: 600; }
.checklist { margin: 0 0 18px; padding-left: 1.2em; color: var(--ink-2); }
.checklist li { margin-bottom: 6px; }

/* Info table */
.info { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: .98rem; }
.info th, .info td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.info tr:last-child th, .info tr:last-child td { border-bottom: 0; }
.info th { width: 42%; color: var(--muted); font-weight: 600; background: #fbfaf7; }

/* Steps */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 32px; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding: 20px 20px 18px 74px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.section-alt .steps li { background: var(--bg); }
.steps li::before { content: counter(s); position: absolute; left: 20px; top: 20px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; }
.steps p { margin: 0; color: var(--ink-2); }

.callout { padding: 20px 22px; border-radius: var(--radius); background: var(--warn); border: 1px solid #f0dfa6; margin: 24px 0; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-green { background: var(--accent-soft); border-color: #bfe7cf; }

/* Brand table */
.brands { display: grid; gap: 12px; margin: 18px 0 8px; }
.brand-card { padding: 18px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.brand-card h3 { font-size: 1.02rem; margin-bottom: 4px; }
.brand-card p { margin: 0; color: var(--ink-2); font-size: .96rem; }

/* Trouble list */
.trouble dl { margin: 0; }
.trouble dt { font-weight: 700; margin-top: 16px; }
.trouble dt:first-child { margin-top: 0; }
.trouble dd { margin: 4px 0 0; color: var(--ink-2); }

/* Article + TOC */
.article-layout { display: grid; gap: 28px; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; align-self: start; }
.toc h2 { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 6px 0; font-size: .96rem; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--accent-ink); text-decoration: underline; }
.prose { color: var(--ink-2); font-size: 1.04rem; }
.prose h2 { color: var(--ink); font-size: clamp(1.3rem, 3.4vw, 1.6rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--ink); margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose img { border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose strong { color: var(--ink); }
.updated { font-size: .92rem; color: var(--muted); }

.keywords { margin-top: 36px; padding: 18px 20px; border-radius: 12px; background: var(--paper); border: 1px dashed var(--line); }
.keywords h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.keywords p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* FAQ */
.faq-group { margin-bottom: 34px; }
.faq-group > h2 { font-size: 1.25rem; margin-bottom: 14px; }
details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; }
.section-alt details { background: var(--bg); }
summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 700; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--accent-ink); }
details[open] summary::after { content: "–"; }
details > div, details > p { margin: 0; padding: 0 20px 20px; color: var(--ink-2); }
details > div p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band { display: grid; gap: 20px; justify-items: start; }
.cta-band img { border-radius: 16px; background: #fff; object-fit: cover; }
.cta-band h2 { margin-bottom: .2em; }
.cta-band p { margin: 0; }

/* Footer */
.footer { background: #0a271e; color: #a9c7b9; padding: 44px 0 24px; font-size: .95rem; }
.footer .brand { color: #fff; margin: 0 0 12px; }
.footer-grid { display: grid; gap: 28px; }
.footer-about p { max-width: 30em; margin: 0; }
.footer-h { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #6fe0a2; margin-bottom: 10px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-links a, .footer-base a { color: #dcefe5; text-decoration: none; }
.footer-links a:hover, .footer-base a:hover { text-decoration: underline; }
.footer-base { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .88rem; }
.footer-base p { margin: 0 0 4px; }
.footer .muted { color: #7e9c8f; }

/* Bottom navigation (mobile) */
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: var(--bottomnav-h); display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(15, 31, 26, .06); padding-bottom: env(safe-area-inset-bottom); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: .72rem; font-weight: 600; }
.bottomnav a[aria-current="page"] { color: var(--accent-ink); }
.bottomnav a:nth-child(2) { color: #fff; }
.bottomnav a:nth-child(2) svg { width: 24px; height: 24px; padding: 11px; margin-top: -26px; border-radius: 50%; background: var(--accent); box-shadow: 0 8px 18px rgba(18, 161, 80, .4); border: 3px solid #fff; box-sizing: content-box; }
.bottomnav a:nth-child(2) span { color: var(--accent-ink); }

@media (max-width: 420px) {
  .topbar .btn-sm span { display: none; }
  .topbar .btn-sm { padding: 0 11px; }
}
@media (min-width: 760px) {
  .methods, .cards { grid-template-columns: repeat(2, 1fr); }
  .brands { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: auto 1fr auto; align-items: center; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (min-width: 980px) {
  body { padding-bottom: 0; }
  .bottomnav { display: none; }
  .nav { display: flex; }
  .hero { padding: 60px 0 76px; }
  .hero-in { grid-template-columns: 1.05fr .95fr; }
  .hero .btn-row .btn-primary { flex: 0 0 auto; }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .feature-visual { display: grid; }
  .split-rev > :first-child { order: 2; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
  .article-layout { grid-template-columns: 260px 1fr; gap: 48px; }
  .toc { position: sticky; top: 88px; }
  .page-hero { padding: 26px 0 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone-bar span { animation: none; }
}

/* steps inside prose */
.prose .steps { padding-left: 0; }
.prose .steps h3 { margin-top: 0; }
.prose .steps li { margin-bottom: 0; }
@media (max-width: 520px) {
  .steps li { padding: 18px 16px 16px 62px; }
  .steps li::before { left: 14px; top: 18px; width: 34px; height: 34px; }
}

/* generator additions */
.kw-list { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kw-list li { margin: 0 !important; padding: 4px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.see-also h3 { margin-top: 0 !important; }
.see-also ul { margin: 0; }
.custom-intro { margin-bottom: 1.5em; }
@media (min-width: 760px) { .footer-grid-4 { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.ref-code { font-size: 1.15rem; padding: 4px 12px; letter-spacing: .08em; user-select: all; }
.toc .btn-primary { color: #fff; text-decoration: none; }
