:root {
  --brand: #16a34a;
  --brand-strong: #15803d;
  --ink: #10141f;
  --muted: #5b6475;
  --line: #dfe5ef;
  --soft: #f4f7fb;
  --paper: #ffffff;
  --dark: #0f172a;
  --dark-2: #172033;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
}

a {
  color: var(--brand);
  font-weight: 700;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 30;
  padding: 0.75rem 1rem;
  color: #062111;
  background: #22c55e;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 900;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  color: #fff;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 58%, var(--brand) 160%);
}

.topbar {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px min(5vw, 56px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  text-decoration: none;
}

.logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--brand);
  background: #fff;
  font-weight: 900;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

.nav-links a,
.auth-link {
  color: #fff;
  text-decoration: none;
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-link {
  min-height: 38px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 900;
}

.auth-link.register {
  color: #062111;
  background: #22c55e;
  border-color: #22c55e;
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px min(5vw, 56px) 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  align-items: center;
  gap: 26px;
}

.eyebrow {
  color: #b9f7d0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 12px 0 18px;
  font-size: clamp(36px, 7vw, 68px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.18;
}

h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.25;
}

h1,
h2,
h3,
p,
li {
  overflow-wrap: anywhere;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero p {
  max-width: 700px;
  color: #e7edf7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  color: #062111;
  background: #22c55e;
  border-radius: 8px;
  box-shadow: 0 14px 32px rgba(34, 197, 94, 0.28);
  text-decoration: none;
  font-weight: 900;
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

.apk-card {
  color: var(--ink);
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.apk-card p {
  margin-bottom: 0;
}

.apk-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 0;
}

.apk-card dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.apk-card dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.pill {
  display: inline-flex;
  padding: 7px 10px;
  color: var(--muted);
  background: var(--soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px min(5vw, 56px) 60px;
}

.band {
  margin-bottom: 20px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.toc,
.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.toc a,
.keyword-cloud a {
  padding: 9px 12px;
  color: var(--brand);
  background: var(--soft);
  border-radius: 8px;
  text-decoration: none;
}

.keyword-cloud a {
  color: var(--ink);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 320px;
  align-items: start;
  gap: 18px;
}

.card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.card p {
  margin-bottom: 0;
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
}

.step {
  position: relative;
  padding-left: 48px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 3px;
  left: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  font-weight: 900;
}

.content-list {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.content-list li strong {
  color: var(--ink);
}

.score {
  color: var(--brand);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.timeline {
  display: grid;
  gap: 12px;
  padding-left: 18px;
  border-left: 3px solid var(--brand);
}

.faq details,
.faq-item {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.faq summary,
.faq-item summary {
  cursor: pointer;
  font-weight: 900;
}

.faq details p,
.faq-item p {
  margin-bottom: 0;
}

.site-footer {
  padding: 28px min(5vw, 56px);
  color: var(--muted);
  text-align: center;
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.fine-print {
  max-width: 900px;
  margin: 12px auto 0;
  font-size: 14px;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 26px;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .auth-links {
    gap: 6px;
  }

  .auth-link {
    min-height: 36px;
    padding: 8px 10px;
  }

  .apk-card dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-actions {
    width: 100%;
    justify-content: space-between;
  }

  .button,
  .auth-link {
    flex: 1;
  }

  .cta-row .button {
    width: 100%;
  }
}
