:root {
  --brand: #ff694c;
  --brand-dark: #e5522f;
  --on-brand: #ffffff;
  --bg: #fff8f6;
  --surface: #ffffff;
  --on-surface: #241a17;
  --on-surface-muted: #6f5b55;
  --outline: #f0dcd6;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 60% at 50% -10%, #ffe3db 0%, var(--bg) 60%);
  color: var(--on-surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "PingFang SC", "Hiragino Sans GB", "Noto Sans Bengali", "Microsoft YaHei",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* M3-style rounded card */
.card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 28px;
  padding: 32px 24px 28px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(36, 26, 23, .06), 0 12px 32px rgba(255, 105, 76, .10);
}

.logo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(255, 105, 76, .25);
}

.app-name {
  margin: 16px 0 6px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: .2px;
}

.tagline {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--on-surface-muted);
}

.version {
  margin: 0 0 22px;
  font-size: 13px;
  color: var(--on-surface-muted);
}
.version strong { color: var(--brand-dark); font-weight: 600; }

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 14px 24px;
  border: none;
  border-radius: 28px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(255, 105, 76, .38);
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.download-btn:hover { background: var(--brand-dark); }
.download-btn:active { transform: scale(.97); box-shadow: 0 3px 10px rgba(255, 105, 76, .3); }
.download-btn:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 3px; }
.dl-icon { flex: none; }

.install {
  margin-top: 26px;
  padding: 16px 18px;
  background: var(--bg);
  border-radius: 20px;
  text-align: left;
}
.install h2 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-dark);
}
.install ol {
  margin: 0;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--on-surface-muted);
}

/* language switch (top-right) */
.lang-switch {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
  z-index: 10;
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(36, 26, 23, .08);
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--on-surface-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lang-switch button.active {
  background: var(--brand);
  color: var(--on-brand);
}

.footer {
  font-size: 12px;
  color: var(--on-surface-muted);
  opacity: .8;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(32px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(16px);
  max-width: 86vw;
  padding: 10px 20px;
  border-radius: 24px;
  background: #322522;
  color: #fff;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 480px) {
  .card { padding: 40px 36px 32px; }
}