/* -- Fonts -- */
@font-face {
  font-family: 'Sink';
  src: url('/public/assets/Sink.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'PangramNarrow';
  src: url('/public/assets/PangramNarrow-Semibold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: 'PangramRounded';
  src: url('/public/assets/PangramRounded-Medium.otf') format('opentype');
  font-weight: 500;
  font-display: swap;
}

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

body {
  font-family: 'PangramRounded', 'PangramNarrow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fff;
  color: #141B34;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
}

/* -- Top background with real clouds -- */
.hero {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: url('/public/assets/clouds-bg.png') center bottom / cover no-repeat;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
}

/* -- Container -- */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100dvh;
}

/* -- Header -- */
.header {
  width: 100%;
  padding-top: 60px;
  margin-bottom: 80px;
  text-align: center;
  position: relative;
}

.header-title {
  font-family: 'Sink', sans-serif;
  font-size: 64px;
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1;
  text-shadow:
    0 1px 7px rgba(15, 89, 129, 0.27),
    0 4px 12px rgba(15, 89, 129, 0.23),
    0 10px 16px rgba(15, 89, 129, 0.14),
    0 16px 18px rgba(15, 89, 129, 0.04),
    0 26px 20px rgba(15, 89, 129, 0.01);
}

/* -- Icons row -- */
.icons-row {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
  gap: 10px;
}

.icon-box {
  width: 90px;
  height: 90px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.icon-app {
  background: #000;
}

.icon-app img {
  width: 90px;
  height: 90px;
  display: block;
}

/* -- Title -- */
.title {
  font-family: 'PangramNarrow', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #141B34;
  text-align: center;
  line-height: 1.24;
  margin-bottom: 5px;
}

.title-error {
  color: #FF6B6B;
}

/* -- Subtitle -- */
.subtitle {
  font-family: 'PangramNarrow', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: rgba(18, 27, 52, 0.5);
  text-align: center;
  line-height: 1.25;
  margin-bottom: 36px;
}

/* -- Desktop section -- */
#desktopSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* -- QR code wrap -- */
.qr-wrap {
  background: #f5f5f7;
  border-radius: 16px;
  padding: 12px;
  display: inline-block;
}

.qr-wrap img {
  display: block;
  border-radius: 8px;
}

.qr-hint {
  font-family: 'PangramRounded', sans-serif;
  font-size: 14px;
  color: rgba(18, 27, 52, 0.5);
  margin-bottom: 28px;
  text-align: center;
  width: 100%;
}

/* -- Gradient button -- */
.btn {
  display: block;
  width: 100%;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  font-family: 'PangramNarrow', sans-serif;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: opacity 0.2s, transform 0.1s;
}

.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.98); }

.btn-gradient {
  height: 60px;
  line-height: 60px;
  background: url('/public/assets/button-bg.webp') center / cover no-repeat;
  color: #fff;
  font-size: 20px;
  margin-bottom: 16px;
  box-shadow:
    0 4px 14px rgba(255, 107, 107, 0.3),
    0 2px 6px rgba(255, 142, 83, 0.2);
}

/* -- Store badges -- */
.store-btns {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

#desktopSection .store-btns {
  flex-direction: row;
  justify-content: center;
}

.store-badge {
  height: 54px;
  width: auto;
  display: block;
  border-radius: 8px;
  transition: opacity 0.2s, transform 0.1s;
}

.store-badge:hover { opacity: 0.85; }
.store-badge:active { transform: scale(0.97); }

/* -- Mobile layout -- */
#mobileSection {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* -- Separator -- */
.separator {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: rgba(18, 27, 52, 0.35);
  font-size: 14px;
  font-family: 'PangramRounded', sans-serif;
  width: 100%;
}

.separator::before, .separator::after {
  content: '';
  flex: 1;
  border-top: 1px solid rgba(18, 27, 52, 0.1);
}

/* -- Error -- */
.error-msg {
  font-family: 'PangramRounded', sans-serif;
  color: #FF6B6B;
  font-size: 16px;
  font-weight: 500;
  margin-top: 12px;
  text-align: center;
  line-height: 1.4;
}

/* -- Utility -- */
.hidden { display: none !important; }

/* -- Responsive -- */
@media (max-width: 480px) {
  .header { padding-top: 45px; margin-bottom: 50px; }
  .header-title { font-size: 52px; }
  .icon-box { width: 76px; height: 76px; border-radius: 20px; }
  .icon-app img { width: 76px; height: 76px; }
  .title { font-size: 24px; }
  .subtitle { font-size: 17px; }
  .btn-gradient { height: 54px; line-height: 54px; font-size: 18px; }
  .store-badge { height: 48px; }
}
