/* Landing page: a full-width banner and menu bar over a centred white reading column. No side menu. */
@font-face {
  font-family: "Vazirmatn";
  src: url("/assets/fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --gold: #d6ad3f;
  --navy: #000a6b;
  --blue: #0000a0;
  --ink: #000;
  --page: #adadad;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Vazirmatn", "Times New Roman", Times, serif;
  font-size: 15px;
  line-height: 1.9;
}

:lang(en) body,
html[lang="en"] body {
  font-family: "Times New Roman", Times, serif;
  line-height: 1.5;
}

.skip {
  position: absolute;
  inset-inline-start: 8px;
  top: -48px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus {
  top: 8px;
}

.page {
  background: #fff;
}

/* banner: the picture staff upload in the panel, nothing else */
.banner {
  background: radial-gradient(circle at 20% 30%, #1a2fb0 0, var(--navy) 55%, #00054a 100%);
}
.banner__link {
  display: block;
}
.banner__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
}

/* menu bar */
.menu {
  background: #00054a;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 22px;
  padding: 6px 12px;
}
.menu a {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  padding: 4px 2px;
}
.menu a:hover,
.menu a[aria-current] {
  color: #4a7dff;
}
.menu .menu__lang {
  color: #4a7dff;
}
.menu a:focus-visible,
.cta a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* content */
.content {
  padding: 8px 15px 28px;
}

.h1,
.h2 {
  text-align: center;
  font-weight: 700;
  margin: 12px 0;
  line-height: 1.5;
}
.h1 {
  font-size: 26px;
}
.h2 {
  font-size: 21px;
  margin-top: 26px;
}
.h2--narrow {
  max-width: 440px;
  margin-inline: auto;
}

p {
  margin: 0 0 16px;
}
.center {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
}
.strong {
  font-weight: 700;
}

.pic {
  margin: 14px 0;
}
.pic img {
  display: block;
  width: 100%;
  height: auto;
}
.pic--narrow {
  max-width: 480px;
  margin-inline: auto;
}

.bullets {
  max-width: 560px;
  margin: 8px auto 20px;
  padding-inline-start: 28px;
}
.bullets--italic li {
  font-style: italic;
  font-weight: 700;
}
.bullets--bold li {
  font-weight: 700;
}

.quote {
  margin: 20px 0;
  text-align: center;
  font-size: 18px;
}
.quote p {
  margin: 0 0 8px;
}
.quote__text {
  font-style: italic;
  font-weight: 700;
}
.quote--plain {
  font-size: 15px;
  font-style: italic;
}

/* call to action */
.cta {
  text-align: center;
  margin: 24px 0;
}
.cta p {
  margin: 8px 0;
}
.gold,
.blue {
  display: inline-block;
  padding: 11px 20px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.gold {
  background: var(--gold);
  color: var(--blue);
}
.blue {
  background: var(--blue);
  color: #fff;
  margin-top: 6px;
}
.soon {
  color: #7a1f1f;
  font-weight: 700;
}

/* footer badge strip */
.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 8px;
  background: #767676;
  border: 1px solid #ccc;
  padding: 8px;
}
.badges span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #222;
  color: #fff;
  border: 2px solid #ddd;
  font:
    700 11px/1 "Times New Roman",
    serif;
}
.badges .round {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}
.badges .icon {
  width: 44px;
  height: 44px;
  padding: 0;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
}
.badges .icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.badges .shield {
  width: 44px;
  height: 40px;
  border-radius: 4px 4px 22px 22px;
}

.footer {
  max-width: none;
  margin: 0 auto;
  padding: 14px 12px 28px;
  text-align: center;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 8px;
}
.footer__links a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
}
.footer__trust {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}
.trust--empty {
  border: 1px dashed #fff;
  padding: 6px 12px;
}
.footer__rights {
  margin: 0;
  text-transform: uppercase;
}

@media (min-width: 900px) {
  body {
    font-size: 17px;
  }
  .banner__img {
    max-height: 420px;
  }
  .menu {
    gap: 4px 34px;
    padding: 10px 12px;
  }
  .menu a {
    font-size: 15px;
  }
  .content {
    padding: 16px clamp(40px, 6vw, 120px) 48px;
  }
  .h1 {
    font-size: 32px;
  }
  .h2 {
    font-size: 25px;
  }
  .center,
  .h2--narrow {
    max-width: none;
  }
  .bullets {
    width: fit-content;
    max-width: 100%;
  }
  .pic--narrow {
    max-width: 720px;
  }
  .quote {
    font-size: 20px;
  }
  .quote--plain {
    font-size: 17px;
  }
}

@media (max-width: 520px) {
  .h1 {
    font-size: 22px;
  }
  .h2 {
    font-size: 18px;
  }
}

/* download popup */
.dl {
  max-height: 92vh;
  overflow-y: auto;
  border: 0;
  padding: 0;
  max-width: min(92vw, 380px);
  width: 100%;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
.dl::backdrop {
  background: rgba(0, 0, 10, 0.55);
}
.dl__box {
  padding: 22px;
  text-align: center;
}
.dl__box h2 {
  margin: 0 0 6px;
  color: var(--navy);
}
.dl__option {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  padding: 12px 14px;
  border: 2px solid #ccc;
  cursor: pointer;
  font-weight: 700;
}
.dl__option:has(input:checked) {
  border-color: var(--gold);
  background: #fbf3dc;
}
.dl__option small {
  margin-inline-start: auto;
  font-weight: 400;
  color: #555;
}
.dl__help {
  margin-top: 12px;
  text-align: start;
}
.dl__help[hidden] {
  display: none;
}
.dl__help summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}
.dl__help p {
  margin: 8px 0;
  font-size: 0.9rem;
}
.dl__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.dl__steps img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
}
.dl__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 16px;
}
.dl__actions .gold[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
}
.dl__close {
  padding: 11px 16px;
  border: 1px solid #999;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

/* Product list with prices (filled from /api/landing/; hidden until there is at least one). */
.products[hidden] {
  display: none;
}

.products__list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
}

.product {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid #d9d9d9;
  border-radius: 0.5rem;
  background: #fff;
}

.product img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.product__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.product__text small {
  color: #555;
}

.product__price {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}
