/* Cover — shared styles */
:root {
  --primary: #F6BC14;
  --primary-dark: #CE9A09;
  --on-primary: #1d1d1f;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --bg: #ffffff;
  --border: #d2d2d7;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

main { flex: 1; }

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--primary-dark); }
a:hover { text-decoration: none; }

/* ---------- Header (privacy / terms) ---------- */
.site-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--on-primary);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.header-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: block;
}

.header-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--on-primary);
}

.header-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--on-primary);
  text-decoration: none;
}

/* ---------- Home hero ---------- */
.hero {
  text-align: center;
  padding: 56px 24px 8px;
}

.hero-icon {
  width: 132px;
  height: 132px;
  border-radius: 28px;
  display: block;
  margin: 0 auto 20px;
}

.hero-name {
  font-size: 2.4rem;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 28px;
}

.btn-download {
  display: inline-block;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 32px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.btn-download:hover { background: var(--primary-dark); }

/* ---------- Screenshots ---------- */
.shots {
  padding: 40px 0 8px;
}

.shots-scroller {
  overflow-x: auto;
  padding: 8px 24px 20px;
  scrollbar-width: thin;
}

/* width: max-content + auto margins: centered when it fits,
   margins collapse to 0 and scrolling starts at the first image when it overflows */
.shots-track {
  display: flex;
  gap: 16px;
  width: max-content;
  margin-inline: auto;
}

.shots-track img {
  height: 380px;
  width: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: block;
}

/* ---------- Article content ---------- */
.article {
  padding: 40px 0 64px;
  font-size: 1rem;
}

.article h1 {
  font-size: 1.9rem;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}

.article h2 {
  font-size: 1.35rem;
  margin: 40px 0 12px;
}

.article p { margin: 0 0 14px; }

.article ul,
.article ol { margin: 0 0 14px; padding-left: 24px; }

.article li { margin-bottom: 6px; }

.article code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 5px;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 20px;
}

.copyright { margin: 0; }

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* ---------- Language selector (top-right) ---------- */
.lang-select {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 100;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
  font-size: 0.85rem;
  line-height: 1.2;
  color: var(--text);
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%236e6e73' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 30px 6px 12px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.lang-select:hover { border-color: var(--text-secondary); }

.lang-select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
  .hero { padding-top: 64px; }

  .header-inner { padding-top: 44px; }

  .lang-select {
    top: 10px;
    right: 10px;
    font-size: 0.8rem;
    padding: 4px 26px 4px 10px;
  }

  .hero-icon { width: 104px; height: 104px; border-radius: 22px; }

  .hero-name { font-size: 1.9rem; }

  .hero-subtitle { font-size: 1rem; }

  .shots-track img { height: 260px; }

  .article h1 { font-size: 1.6rem; }

  .article h2 { font-size: 1.2rem; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
