@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap");

:root {
  color-scheme: light;
  --bg: #F5F5F5;
  --card: #FFFFFF;
  --text: #1A1A1A;
  --muted: #8C8C8C;
  --accent: #108081;
  --accent-soft: #E8F4F4;
  --danger: #B22348;
  --border: #E0E0E0;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 "Montserrat", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
.wrap { max-width: 820px; margin: 0 auto; padding: 0 16px; }

/* Header */
header.top {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
header.top .wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 20px;
}
.logo img { width: 36px; height: 36px; }

/* Language switch — segmented control */
nav.langs {
  display: flex;
  padding: 3px;
  background: var(--accent-soft);
  border-radius: 12px;
}
nav.langs button {
  border: 0;
  background: transparent;
  color: var(--accent);
  border-radius: 10px;
  padding: 6px 12px;
  font: 600 13px/1 "Montserrat", sans-serif;
  cursor: pointer;
}
nav.langs button[aria-pressed="true"] { background: var(--accent); color: #FFFFFF; }

/* Content card */
main.card {
  margin: 20px auto 24px;
  max-width: 820px;
  padding: 32px 28px;
  background: var(--card);
  border-radius: 16px;
}
@media (max-width: 852px) { main.card { margin: 16px 16px 24px; padding: 24px 18px; } }

h1 { font-size: 26px; line-height: 1.3; font-weight: 700; margin: 0 0 6px; }
h2 {
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  margin: 28px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.updated {
  display: inline-block;
  margin: 4px 0 18px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
}
p { margin: 0 0 12px; }
b { font-weight: 600; }
a { color: var(--accent); font-weight: 500; text-decoration-thickness: 1px; text-underline-offset: 2px; }

ul { list-style: none; padding-left: 0; margin: 0 0 12px; }
ul li { position: relative; padding-left: 20px; margin: 6px 0; }
ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
ul ul { margin-top: 6px; }
ul ul li::before { background: transparent; border: 1.5px solid var(--accent); width: 6px; height: 6px; }

/* Numbered steps */
ol.steps { list-style: none; padding: 0; margin: 0 0 12px; counter-reset: step; }
ol.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 60px;
  margin: 8px 0;
  background: var(--bg);
  border-radius: 12px;
}
ol.steps li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.danger { color: var(--danger); }

/* Footer */
footer {
  max-width: 820px;
  margin: 0 auto 32px;
  padding: 0 16px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 8px 20px;
  flex-wrap: wrap;
}
footer a { color: var(--muted); font-weight: 500; text-decoration: none; }
footer a:hover { color: var(--accent); }

[data-lang] { display: none; }
[data-lang].active { display: block; }

/* Home */
.hero { display: flex; align-items: center; gap: 24px; }
.hero img { width: 150px; height: auto; flex-shrink: 0; }
.hero p { color: var(--muted); font-size: 16px; }
@media (max-width: 520px) { .hero { flex-direction: column-reverse; text-align: center; } }
.links { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.links li { padding: 0; margin: 0; }
.links li::before { display: none; }
.links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  background: var(--bg);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.links a::after { content: "›"; color: var(--muted); font-size: 22px; line-height: 1; }
.links a:hover { background: var(--accent-soft); }
