@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/be-vietnam-pro-400-vn.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/be-vietnam-pro-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/be-vietnam-pro-500-vn.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/be-vietnam-pro-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/be-vietnam-pro-600-vn.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: "Be Vietnam Pro";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/be-vietnam-pro-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

:root {
  --bg: #F3F5F9;
  --surface: #FFFFFF;
  --accent: #4F46E5;
  --accent-hover: #4338CA;
  --accent-soft: #EEF2FF;
  --text: #0F172A;
  --text-muted: #475569;
  --border: #E2E8F0;
  --disabled-bg: #E2E8F0;
  --disabled-text: #475569;
  --radius-card: 22px;
  --radius-btn: 16px;
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.page-wrap {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Hero */
.hero-card {
  background: var(--surface);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-copy {
  width: 100%;
}

.brand-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.brand-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.16);
}

.brand-name {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.hero-title {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-desc {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Download buttons */
.download-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.store-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.store-btn--primary {
  background-color: var(--accent);
  color: #FFFFFF;
}

.store-btn--primary:hover:not(.is-disabled) {
  background-color: var(--accent-hover);
}

.store-btn--secondary {
  background-color: var(--surface);
  color: var(--text);
  border-color: #CBD5E1;
}

.store-btn--secondary:hover:not(.is-disabled) {
  background-color: #F8FAFC;
  border-color: #94A3B8;
}

.store-btn:active:not(.is-disabled) {
  transform: translateY(1px);
}

.store-btn.is-disabled {
  background-color: var(--disabled-bg);
  border-color: var(--disabled-bg);
  color: var(--disabled-text);
  opacity: 0.78;
  cursor: default;
  pointer-events: none;
}

.store-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.store-btn-sub {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
}

.hero-media {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.mascot-img {
  width: 170px;
  height: auto;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.feature-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 20px;
}

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background-color: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.feature-icon {
  width: 24px;
  height: 24px;
}

.feature-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.feature-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Legal footer */
.site-footer {
  margin-top: 4px;
}

.legal-card {
  background: var(--surface);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.legal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.legal-heading {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.legal-info {
  margin: 0 0 16px;
  display: grid;
  gap: 6px;
}

.legal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.legal-row dt {
  font-weight: 600;
  color: var(--text);
}

.legal-row dd {
  margin: 0;
}

.legal-row a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-row a:hover {
  color: var(--accent-hover);
}

.policy-block {
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.policy-heading {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.policy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.policy-link {
  background: none;
  border: none;
  padding: 4px 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  text-align: left;
}

.policy-link:hover {
  color: var(--accent-hover);
}

.policy-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background-color: rgba(15, 23, 42, 0.56);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-dialog {
  width: 100%;
  max-width: 680px;
  max-height: 86vh;
  background: var(--surface);
  border-radius: 22px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-dialog:focus {
  outline: none;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.modal-close {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background-color: #F1F5F9;
}

.modal-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.modal-body {
  padding: 18px 20px 24px;
  overflow-y: auto;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
}

.md-content h3,
.md-content h4,
.md-content h5 {
  margin: 16px 0 8px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.35;
}

.md-content h3:first-child,
.md-content h4:first-child,
.md-content h5:first-child,
.md-content p:first-child {
  margin-top: 0;
}

.md-content h3 { font-size: 18px; }
.md-content h4 { font-size: 16px; }
.md-content h5 { font-size: 15px; }

.md-content p {
  margin: 0 0 12px;
  color: var(--text-muted);
}

.md-content ul,
.md-content ol {
  margin: 0 0 12px;
  padding-left: 22px;
  color: var(--text-muted);
}

.md-content li + li {
  margin-top: 4px;
}

.md-content strong {
  color: var(--text);
  font-weight: 600;
}

.md-content a {
  color: var(--accent);
  text-decoration: underline;
}

/* Desktop & Tablet */
@media (min-width: 720px) {
  .page-wrap {
    padding: 36px 24px 48px;
    gap: 24px;
  }

  .main-content {
    gap: 24px;
  }

  .hero-card {
    padding: 40px 40px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 36px;
  }

  .hero-title {
    font-size: 38px;
  }

  .hero-desc {
    font-size: 18px;
  }

  .download-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .store-btn {
    min-width: 220px;
  }

  .mascot-img {
    width: 220px;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .legal-card {
    padding: 24px 28px;
  }
}
