/* ─── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── Tokens ─────────────────────────────────────────────────────── */
:root {
  --bg:          #fafaf9;
  --surface:     #ffffff;
  --border:      #e8e6e1;
  --text:        #1a1916;
  --muted:       #706e69;
  --accent:      #d97706;        /* warm amber — intentionally not purple */
  --accent-dim:  #fef3c7;
  --radius:      10px;
  --font:        "Georgia", "Times New Roman", serif;   /* no Inter */
  --font-ui:     system-ui, -apple-system, sans-serif;
}

/* ─── Base ───────────────────────────────────────────────────────── */
html { height: 100%; }

body {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Header ─────────────────────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-bottom: 1px solid var(--border);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.version-badge {
  font-family: "SF Mono", "Fira Code", ui-monospace, monospace;
  font-size: 12px;
  color: var(--muted);
  background: var(--border);
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

/* ─── Main ───────────────────────────────────────────────────────── */
main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  max-width: 380px;
  width: 100%;
}

.download-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── Tiny Language Picker ──────────────────────────────────────── */
.language-picker {
  align-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 18px;
}

.language-picker label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.select-wrap {
  position: relative;
  min-width: 196px;
}

.select-wrap select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f7f3 100%);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  padding: 11px 30px 11px 10px;
  min-height: 40px;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.select-wrap select:hover {
  border-color: #d5d1c7;
  background: linear-gradient(180deg, #ffffff 0%, #f4f1e9 100%);
}

.select-wrap select:focus-visible {
  outline: none;
  border-color: #ca8a04;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.18);
}

.select-wrap::after {
  content: "";
  position: absolute;
  right: 11px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid #8a867e;
  border-bottom: 2px solid #8a867e;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

/* ─── Icon ───────────────────────────────────────────────────────── */
.icon-lockup {
  color: var(--text);
  margin-bottom: 28px;
}

/* ─── Typography ─────────────────────────────────────────────────── */
h1 {
  font-family: var(--font);
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 400;              /* intentionally normal — no giant bold hero */
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 8px;
}

.subtitle {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 36px;
  letter-spacing: 0.01em;
}

/* ─── Download Button ────────────────────────────────────────────── */
/*
  NO: gradient fill, glow shadow, shimmer animation, pill shape,
      huge padding, emoji, confetti, "FREE DOWNLOAD" all-caps.
  YES: solid, understated, confident.
*/
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  margin-bottom: 36px;
}

.download-btn:hover {
  background: #2e2c28;
}

.download-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.download-btn:active {
  transform: translateY(1px);
}

/* ─── Meta Table ─────────────────────────────────────────────────── */
/*
  NO: cards with drop shadows, colored pills for every field,
      animated counters, fake "4.9 ★ rating" social proof.
*/
dl.meta {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
}

dl.meta > div {
  flex: 1;
  padding: 14px 12px;
  text-align: center;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

dl.meta > div:last-child { border-right: none; }

dl.meta dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
  font-weight: 500;
}

dl.meta dd {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  font-family: "SF Mono", "Fira Code", ui-monospace, monospace;
}

/* ─── Footer ─────────────────────────────────────────────────────── */
footer {
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}

/* ─── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  header { padding: 16px 20px; }
  main   { padding: 32px 16px; }
  footer { padding: 16px 20px; }

  .language-picker {
    align-self: center;
    align-items: center;
  }

  .select-wrap {
    min-width: 204px;
  }

  dl.meta {
    flex-direction: column;
  }
  dl.meta > div {
    border-right: none;
    border-bottom: 1px solid var(--border);
    text-align: left;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  dl.meta > div:last-child { border-bottom: none; }
  dl.meta dt { margin-bottom: 0; }
}
