:root {
  --fmd-green: #22c55e;
  --fmd-green-dark: #15803d;
  --ink: #111827;
  --bg: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

/* Brand */
.brand {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--ink);
  line-height: 1;
}

/* Hero — the placeholder PNG already has its own rounded green frame,
   so we don't add a border-radius here (would clip the frame). */
.hero {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
}

/* CTA — bilingual prompt that sits between the hero and the download row */
.cta {
  text-align: center;
  margin: 0;
}

.cta__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

.cta__subtitle {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
}

@media (max-width: 540px) {
  .cta__title {
    font-size: 18px;
  }
  .cta__subtitle {
    font-size: 16px;
  }
}

/* Download buttons — always horizontal.
   Each link shares the row equally with flex:1 1 0, so the three buttons
   shrink together instead of wrapping when the viewport gets narrow. */
.downloads {
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 2vw, 16px);
}

.downloads__link {
  flex: 1 1 0;
  min-width: 0;
  max-width: 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: linear-gradient(
    180deg,
    rgba(34, 197, 94, 0.35) 0%,
    rgba(21, 128, 61, 0.35) 100%
  );
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 22px;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.15);
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}

.downloads__link img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.downloads__link:hover {
  transform: translateY(-2px);
  border-color: var(--fmd-green);
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.22);
}

.downloads__link:active {
  transform: translateY(0);
  opacity: 0.9;
}

.downloads__link:focus-visible {
  outline: 2px solid var(--fmd-green);
  outline-offset: 3px;
}

/* Phone tuning — tighter padding, smaller brand. Buttons stay horizontal
   because the flex:1 1 0 row already scales them down with the viewport. */
@media (max-width: 540px) {
  .page {
    padding: 28px 16px 48px;
    gap: 24px;
  }

  .brand {
    font-size: 28px;
  }

  .downloads__link {
    padding: 6px;
    border-radius: 18px;
  }

  .downloads__link img {
    border-radius: 12px;
  }
}
