@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800&family=Work+Sans:wght@400;500;600;700&display=swap");

:root {
  --page-bg: #f4f9f4;
  --canvas-bg: #f4f9f4;
  --text: #212121;
  --chip-green: #66ff69;
  --store-bg: rgba(33, 33, 33, 0.6);
  --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.1);
  --font-display: "Outfit", "Avenir Next", "SF Pro Display", "Montserrat", "PingFang SC", "Noto Sans CJK SC", "Hiragino Sans GB", sans-serif;
  --font-body: "Work Sans", "PingFang SC", "Noto Sans CJK SC", "Hiragino Sans GB", "Noto Sans JP", "Noto Sans KR", "Noto Sans Arabic", "Helvetica Neue", "Arial", sans-serif;
}

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

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: var(--canvas-bg);
}

body {
  background: var(--canvas-bg);
  color: var(--text);
  font-family: var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.landing-page {
  width: 100%;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--canvas-bg);
  overflow: hidden;
  padding-top: 96px;
  padding-bottom: calc(68px + env(safe-area-inset-bottom));
}

.top-banner {
  width: min(calc(100% - 24px), 396px);
  height: 60px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  position: fixed;
  top: max(14px, calc(env(safe-area-inset-top) + 8px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
}

.brand-logo {
  width: 100px;
  height: 30px;
  display: block;
  object-fit: contain;
  flex: 0 0 auto;
}

.banner-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-dropdown {
  position: relative;
}

.signup-chip {
  width: 92px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--chip-green);
  color: #000;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lang-chip {
  border: 0;
  background: transparent;
  color: #000;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.lang-arrow {
  width: 12px;
  height: 8px;
  display: inline-block;
  background: #000;
  clip-path: polygon(50% 96%, 6% 14%, 94% 14%);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

.lang-chip[aria-expanded="true"] .lang-arrow {
  transform: rotate(180deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  left: auto;
  width: min(264px, calc(100vw - 24px));
  max-height: 460px;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  background: rgba(238, 242, 239, 0.98);
  border-radius: 20px;
  padding: 10px 8px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1);
  z-index: 140;
}

.lang-menu::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.lang-menu.menu-align-right {
  right: 0;
  left: auto;
}

.lang-menu.menu-align-left {
  left: 0;
  right: auto;
}

.lang-menu[hidden] {
  display: none;
}

.lang-item {
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  color: #111;
}

.lang-item:hover,
.lang-item:focus-visible {
  background: rgba(255, 255, 255, 0.7);
  outline: none;
}

.lang-item.active {
  background: rgba(255, 255, 255, 0.9);
}

.lang-flag {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  flex-shrink: 0;
}

.lang-code {
  min-width: 30px;
  font-size: 14px;
  font-weight: 500;
}

.lang-name {
  font-size: 16px;
  line-height: 1.1;
  color: #7b7b7b;
}

.rtl-locale .lang-dropdown {
  direction: rtl;
}

.rtl-locale .lang-menu {
  text-align: right;
}

.rtl-locale .lang-item {
  text-align: right;
}

.rtl-locale .lang-code,
.rtl-locale .lang-name {
  text-align: right;
}

@media (max-width: 393px) {
  .lang-menu {
    max-height: 54vh;
  }
}

.hero-area {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-copy {
  width: 100%;
  max-width: 342px;
  text-align: center;
  color: #111;
  position: relative;
  z-index: 1;
  visibility: visible;
  opacity: 1;
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: min(36px, 11vw);
  margin-inline: min(-16px, max(-42px, (342px - 100vw) / 2 + 12px));
  line-height: 1.22;
  letter-spacing: -0.015em;
  font-weight: 700;
  font-style: italic;
  color: #111111;
  -webkit-text-fill-color: #111111;
}

.hero-title-line {
  white-space: nowrap;
  font-size: min(32px, 8.8vw);
}

.hero-copy p {
  margin-block: 10px 0;
  margin-inline: clamp(-27px, (366px - 100vw) / 2, 12px);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.28;
  font-weight: 500;
  color: #111111;
  -webkit-text-fill-color: #111111;
}

.hero-copy p + p {
  margin-top: 8px;
  font-size: 14px;
}

.supported-countries {
  width: min(100%, 420px);
  padding-inline: 12px;
  margin-top: 24px;
  text-align: center;
}

.supported-countries p {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
}

.supported-countries ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.supported-countries li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #dce4dd;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.3;
}

.country-details {
  display: grid;
  min-width: 0;
  gap: 2px;
  text-align: start;
  overflow-wrap: anywhere;
}

.country-details [data-country-code] {
  font-weight: 700;
}

.country-network {
  color: #4d5a50;
  font-size: 11px;
}

.supported-countries img {
  display: block;
  flex: none;
  margin-top: 1px;
  object-fit: cover;
}

.scan-to-pay-image {
  width: min(calc(100% - 24px), 396px);
  height: auto;
  display: block;
  margin-top: 34px;
}

.apply-button {
  margin-top: 0;
  width: 280px;
  height: 43px;
  border-radius: 20px;
  background: var(--chip-green);
  box-shadow: 0 8px 22px rgba(69, 226, 98, 0.42);
  color: #000;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 25px;
  letter-spacing: -0.01em;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 10px));
  z-index: 170;
}

@media (prefers-reduced-motion: no-preference) {
  .apply-button {
    animation: open-scan-pulse 2.4s ease-in-out infinite;
  }

  .apply-button:is(:hover, :focus-visible, :active) {
    animation: none;
  }
}

@keyframes open-scan-pulse {
  0%, 100% {
    transform: translateX(-50%) scale(1);
  }

  50% {
    transform: translateX(-50%) scale(1.05);
  }
}

.showcase-area {
  margin-top: 44px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.showcase-headline {
  margin: 0 0 20px;
  width: 100%;
  max-width: 330px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.015em;
  color: #111111;
  -webkit-text-fill-color: #111111;
}

.showcase-caption {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -0.01em;
  color: #111111;
  text-align: center;
}

.showcase-card-image {
  width: 100%;
  max-width: 393px;
  height: auto;
  display: block;
  object-fit: contain;
}

.tags-grid {
  width: 327px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
}

.tags-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tags-col-left {
  width: 152px;
}

.tags-col-right {
  width: 138px;
}

.tag-pill {
  height: 36px;
  border-radius: 8px;
  border: 1px solid #fff;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  white-space: nowrap;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #212121;
  -webkit-text-fill-color: #212121;
}

.tag-pill img {
  width: 14px;
  height: 14px;
}

.download-area {
  margin-top: 40px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
}

.store-pill {
  width: 182px;
  min-height: 59px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(33, 33, 33, 0.6);
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px 9px 17px;
}

.store-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1;
}

.store-copy small {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  opacity: 1;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.store-copy strong {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.store-pill-apple .store-copy {
  width: 108px;
}

.store-pill-google .store-copy strong {
  font-size: 14px;
  line-height: 1;
}

.store-pill-android .store-copy strong {
  font-size: 18px;
  line-height: 1.02;
}

.store-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  flex-shrink: 0;
}

.store-pill-apple .store-icon {
  width: 21px;
  height: 26px;
}

.store-pill-google .store-icon {
  width: 24px;
  height: 26px;
}

.store-pill-android .store-icon {
  width: 26px;
  height: 26px;
}

@media (max-width: 393px) {
  .apply-button {
    width: calc(100vw - 113px);
  }

  .tags-grid {
    width: calc(100vw - 66px);
  }

  .tags-col-left {
    width: calc((100vw - 78px) / 2);
  }

  .tags-col-right {
    width: calc((100vw - 78px) / 2);
  }
}
