/*
  What every miyoapp.io page shares (Figma "Miyo Assets" › Website): colours,
  type, buttons, the Download app menu, nav and footer. Mobile first; the
  media queries are the tablet (768) and desktop (1440) designs.
*/
:root {
  --ink: #121212;
  --muted: #6b6b6b;
  --alt: #f6f4f1;
  --fill: #d07392;
  --danger: #c8372d;
  --pad: 20px;
}

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

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

body {
  font-family: 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: #fff;
  color: var(--ink);
  line-height: normal;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; }

.wrap { max-width: calc(1200px + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 18px 32px;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  border: 0;
  font-family: inherit;
}
.btn-sm { padding: 12px 22px; font-size: 15px; }
.btn-light { background: #fff; color: var(--ink); }
.btn:focus-visible, .dl-menu a:focus-visible, .links a:focus-visible, .back:focus-visible { outline: 2px solid var(--fill); outline-offset: 3px; }

/* Download app: a store link on a phone, both stores on a computer. */
.dl { position: relative; display: inline-block; }
.dl-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 200px;
  padding: 12px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14);
}
.dl-menu[hidden] { display: none; }
.dl-menu a {
  display: block;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}
.dl-end .dl-menu { left: auto; right: 0; }
.dl-center .dl-menu { left: 50%; transform: translateX(-50%); }

.lang { font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; }
/* EN · UA: the active language is black, the other one a grey link. */
.lang [aria-current] { color: var(--ink); }
.lang a:hover { color: var(--ink); }
.lang a:focus-visible { outline: 2px solid var(--fill); outline-offset: 3px; }

/* ── Nav ── */
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.wordmark { position: relative; display: block; width: 64px; height: 40px; }
.wordmark span {
  position: absolute;
  left: 0;
  top: 3.59px;
  font-size: 28.3px;
  font-weight: 800;
  letter-spacing: -0.85px;
  color: #141414;
  line-height: normal;
}
.wordmark svg { position: absolute; left: 23.92px; top: 8.37px; width: 11.94px; height: 6.77px; }
.nav-actions { display: flex; align-items: center; gap: 28px; }
.nav-actions .lang { display: none; }

/* ── Footer ── */
footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-size: 15px;
  font-weight: 600;
}
.motto { color: var(--muted); }
.links { display: flex; flex-wrap: wrap; column-gap: 20px; row-gap: 10px; }

/* ── Tablet (768) ── */
@media (min-width: 700px) {
  :root { --pad: 40px; }
  .nav { padding-top: 20px; padding-bottom: 20px; }
  .nav-actions .lang { display: inline; }
  footer .wrap { flex-direction: row; align-items: center; justify-content: space-between; gap: 36px; }
  .links { flex-wrap: nowrap; column-gap: 28px; }
}

/* ── Desktop (1440): max content width 1200, side padding 120 ── */
@media (min-width: 1100px) {
  :root { --pad: clamp(40px, calc((100vw - 1200px) / 2), 120px); }
  .nav { padding-top: 24px; padding-bottom: 24px; }
  footer .wrap { padding-top: 40px; padding-bottom: 40px; gap: 48px; }
}
