@font-face {
  font-family: iranyekan;
  src: url(iranyekan.woff2) format("woff2");
  font-display: swap;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { color: #eee; font: 13px iranyekan, Tahoma, sans-serif; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }

#banner-content {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 6px;
  padding: 8px 10px;
  background: #0f172a url(bg.webp) center / cover;
  border-radius: 12px;
}

#brand, .title { display: flex; align-items: center; }
#brand { justify-content: space-between; gap: 10px; }
#logoLink { padding: 5px 0; flex: none; }
h1 { font-size: 13px; }

#cards, .card, .product { height: 100%; min-width: 0; }
.product {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid #4656fa;
  border-radius: 11px;
  background: #0f172a;
}
.box-art { width: 32px; height: 32px; object-fit: contain; flex: none; }
.title { gap: 5px; }
h2 { font-size: 13px; }
.risk {
  padding: 1px 6px;
  color: #b4bcff;
  background: #4656fa26;
  border-radius: 8px;
  font-size: 10px;
  white-space: nowrap;
}
.description { font-size: 11px; line-height: 1.55; text-align: right; }
#controls { display: flex; }
#cta { display: grid; min-height: 40px; place-items: center; }
a:focus-visible { outline: 2px solid #b4bcff; outline-offset: -2px; }

@media (max-height: 120px) and (min-width: 530px) {
  #banner-content {
    grid-template: auto minmax(0, 1fr) / minmax(0, 1fr) 82px;
    gap: 3px 8px;
    align-items: stretch;
    padding: 5px 8px;
  }
  #brand { grid-column: 1 / -1; justify-content: flex-start; }
  #logoLink { padding: 0; }
  #controls { align-items: center; }
  h1 { text-align: center; font-size: 11px; }
  #cta { min-height: 39px; }
}

#cards {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  overflow: hidden;
  border-radius: 11px;
}
.card { grid-area: 1 / 1; }
.card[inert] { pointer-events: none; }

#intro {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 2;
}
#introBox {
  width: clamp(60px, 54vh, 130px);
  height: auto;
}
#introTitle {
  position: absolute;
  top: 70%;
  transform: translateY(-50%);
  display: grid;
  opacity: 0;
  color: #4656fa;
  font-size: 21px;
  line-height: 1.35;
  text-align: center;
}
#introTitle strong { color: #fff; font-size: 32px; }

@media (max-height: 120px) {
  #introTitle { top: 72%; font-size: 13px; }
  #introTitle strong { font-size: 17px; }
}

#carousel {
  display: grid;
  direction: ltr;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 0;
}
#cards { direction: rtl; }
.arrow {
  padding: 0;
  width: 28px;
  height: 44px;
  border: 1px solid #4656fa;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font: 24px/1 Tahoma, sans-serif;
  cursor: pointer;
}
.arrow:focus-visible { outline: 2px solid #b4bcff; outline-offset: -3px; }
.annual-return {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #4656fa26;
}
.annual-return strong {
  color: #b4bcff;
  font-size: 32px;
  line-height: 1;
  white-space: nowrap;
}
.annual-return span { color: #d3d9f0; font-size: 10px; }

@media (max-height: 120px) and (min-width: 530px) {
  .product {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 2px 8px;
    padding: 3px 8px;
  }
  .box-art { width: 25px; height: 25px; }
  .annual-return { padding: 2px 6px; }
  .annual-return strong { font-size: 24px; }
  .description { grid-column: 1 / -1; font-size: 10px; line-height: 1.35; }
}

@media (max-width: 285px) {
  .product { padding-inline: 6px; }
  .annual-return strong { font-size: 28px; }
}
