/* Additions on top of the design's own styles: desktop/mobile switch, language switch, form states, privacy page on phones. */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
[id] { scroll-margin-top: 12px; }

.v-m { display: none; }
@media (max-width: 760px) { .v-d { display: none; } .v-m { display: block; } }

.hd-right { display: flex; align-items: center; gap: 14px; }
.lang-sw { display: inline-flex; align-items: center; gap: 7px; color: inherit; text-decoration: none; font-size: 16px; line-height: 1; padding: 10px 14px; border-radius: 999px; border: 1px solid rgba(244, 238, 228, .28); white-space: nowrap; }
.lang-sw:hover, .lang-sw:focus-visible { color: #FDC555; border-color: #FDC555; }
.lang-sw[lang="en"] { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 15px; }
@media (max-width: 760px) { .lang-sw { padding: 9px 11px; font-size: 14px; } .lang-sw[lang="en"] { font-size: 13px; } .lang-sw svg { display: none; } }

.lang-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px; background: #08142A; color: #F4EEE4; font-size: 15px; padding: 10px 44px 10px 16px; position: relative; font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; }
.lang-bar[lang="bn"] { font-family: Kalpurush, 'Noto Serif Bengali', serif; font-size: 16px; }
.lang-bar[hidden] { display: none; }
.lang-bar a { color: #FDC555; text-decoration: underline; text-underline-offset: 3px; }
.lang-bar button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; color: #B9C4D6; font-size: 22px; line-height: 1; cursor: pointer; border-radius: 8px; }
.lang-bar button:hover { color: #fff; }

.store.soon { cursor: default; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 16px; line-height: 1.6; min-height: 0; }
.form-status:empty { display: none; }
.form-status.is-sent { color: #17683F; background: rgba(30, 122, 76, .09); border-radius: 12px; padding: 12px 14px; }
.form-status.is-failed, .form-status.is-invalid { color: #A3261B; background: rgba(196, 50, 30, .08); border-radius: 12px; padding: 12px 14px; }
.form-status.is-sending { color: #5F6C84; }
button[disabled] { opacity: .6; cursor: progress !important; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #FDC555; outline-offset: 3px; border-radius: 6px; }

/* privacy page on tablets and phones (the design is drawn for desktop) */
@media (max-width: 900px) {
  .privacy header { padding: 16px 20px !important; flex-wrap: wrap; }
  .privacy header + div { padding: 24px 20px 48px !important; }
  .privacy h1 { font-size: 38px !important; }
  .pv-wrap { flex-direction: column; gap: 28px !important; padding: 40px 20px 72px !important; }
  .pv-toc { position: static !important; flex: none !important; width: 100%; }
  .pv-wrap > article { max-width: 100% !important; }
  .privacy footer { padding: 56px 20px 28px !important; }
}
@media (max-width: 560px) {
  .privacy header img { width: 44px !important; height: 39px !important; }
  .privacy header span { font-size: 24px !important; }
  .privacy .hd-right { gap: 8px; }
  .privacy .hd-right > a:last-child { padding: 9px 12px !important; font-size: 15px !important; }
  .privacy h1 { font-size: 32px !important; }
}

/* very narrow phones (360 px and below): keep logo, language, download and menu on one line */
@media (max-width: 400px) {
  .v-m header { padding-left: 14px !important; padding-right: 14px !important; gap: 8px !important; }
  .v-m header > a:first-child { gap: 8px !important; }
  .v-m header > a:first-child img { width: 40px !important; height: 35px !important; }
  .v-m header > a:first-child span { font-size: 21px !important; }
  .v-m header > div { gap: 6px !important; }
  .v-m header > div > a[href="#m-download"] { padding: 9px 12px !important; font-size: 14px !important; }
  .v-m header > div > button { width: 40px !important; height: 40px !important; }
  .lang-sw { padding: 8px 9px; }
}
@media (max-width: 340px) { .v-m header > div > a[href="#m-download"] { display: none !important; } }
