* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --brand: #5FBB56;
  --brand-dark: #2f7a2c;
  --bg: #f7f8f6;
  --text: #1a1a1a;
  --muted: #666;
  --border: #e7e8e4;
  --card: #fff;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #eef8ec 0, var(--bg) 42%);
  color: var(--text);
  line-height: 1.7;
}
body.home {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card {
  position: relative;
  text-align: center;
  padding: 54px 32px 34px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(30, 60, 20, 0.08);
  max-width: 440px;
  width: calc(100% - 40px);
  margin: 24px;
}
.icon, .logo-icon {
  background: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.icon {
  width: 86px;
  height: 86px;
  border-radius: 24px;
  font-size: 44px;
  margin: 0 auto 22px;
  box-shadow: 0 12px 28px rgba(95, 187, 86, 0.28);
}
.app-icon {
  width: 128px;
  height: 128px;
  display: block;
  margin: 0 auto 20px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
h1 {
  font-size: clamp(30px, 5vw, 42px);
  font-weight: 760;
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.card p {
  color: var(--muted);
  margin-bottom: 30px;
  font-size: 17px;
}
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
a, button { font: inherit; }
a {
  color: var(--brand-dark);
  text-decoration: none;
}
a:hover { text-decoration: underline; }
.links a {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.links a:hover { transform: translateY(-1px); }
.primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 10px 22px rgba(95, 187, 86, 0.24);
}
.secondary {
  background: #f1f3ef;
  color: #2d342b;
}
.language-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-bottom: 22px;
}
.card .language-switch {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
}
.language-switch button {
  border: 1px solid var(--border);
  background: #fff;
  color: #576153;
  border-radius: 999px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.language-switch button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 34px 24px 80px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 38px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.logo-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 25px;
}
.markdown {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(24px, 5vw, 44px);
  box-shadow: 0 20px 60px rgba(30, 60, 20, 0.06);
}
.markdown h1 {
  margin-bottom: 8px;
}
.markdown h2 {
  font-size: 20px;
  margin-top: 34px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.markdown p, .markdown ul, .markdown ol {
  margin-bottom: 16px;
  color: #333;
}
.markdown ul, .markdown ol { padding-left: 22px; }
.markdown li { margin-bottom: 6px; }
.markdown strong { color: #162114; }
.markdown blockquote {
  background: #edf7ec;
  border-left: 4px solid var(--brand);
  padding: 16px 18px;
  border-radius: 0 14px 14px 0;
  margin: 24px 0;
  color: var(--brand-dark);
}
footer {
  margin-top: 44px;
  font-size: 13px;
  color: #90958d;
  text-align: center;
}
footer a { color: #7b8276; }
.error {
  color: #8a1f11;
  background: #fff1ed;
  border: 1px solid #ffd6cc;
  padding: 16px;
  border-radius: 12px;
}
@media (max-width: 560px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .topbar .language-switch { justify-content: flex-start; }
}
