/* =====================================================
   cholon.vn — app download landing
   Design tokens + base styles
   ===================================================== */

:root {
  --navy: #1A3071;
  --navy-2: #2548a0;
  --navy-dark: #0f1f4a;
  --yellow: #FFD200;
  --red: #E53E3E;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --text: #1A1A1A;
  --text-2: #555555;
  --border: #e5e5e5;

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 20px;

  --shadow-soft: 0 1px 4px rgba(0, 0, 0, 0.06);
  --shadow-elev: 0 8px 24px rgba(0, 0, 0, 0.15);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--surface-2);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ================ Header ================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}
.site-header__logo {
  display: inline-flex;
  align-items: center;
}
.site-header__logo img {
  height: 36px;
  width: auto;
  display: block;
}
.site-header__cta {
  background: var(--yellow);
  color: var(--navy);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: var(--radius-s);
  transition: filter .15s;
}
.site-header__cta:hover { filter: brightness(0.95); }

/* ================ Hero ================ */
.hero {
  background: radial-gradient(ellipse at 50% -20%, var(--navy-2) 0%, var(--navy) 65%);
  color: #fff;
  padding: 48px 0 56px;
  text-align: center;
  overflow: hidden;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 900;
  margin: 0 0 8px;
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.hero__sub {
  font-size: clamp(15px, 2vw, 18px);
  opacity: 0.9;
  margin: 0 0 32px;
}

.hero__tiles {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 32px;
  perspective: 1200px;
}
.hero__tile {
  flex: 0 0 auto;
  width: clamp(140px, 24vw, 220px);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-elev);
  transition: transform .25s ease;
  background: #FFD200;
}
.hero__tile img {
  width: 100%;
  height: auto;
  display: block;
}
.hero__tile--tilt-l { transform: rotate(-6deg) translateY(16px); }
.hero__tile--tilt-r { transform: rotate(6deg) translateY(16px); }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}
.hero__badge {
  display: inline-block;
  transition: transform .15s;
}
.hero__badge:hover { transform: translateY(-2px); }
.hero__badge img {
  height: 52px;
  width: auto;
}

.hero__qr {
  display: none;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 16px;
  border-radius: var(--radius-m);
  border: 1px solid rgba(255,255,255,0.15);
}
.hero__qr img {
  background: #fff;
  padding: 6px;
  border-radius: 6px;
  width: 88px;
  height: 88px;
}
.hero__qr p {
  margin: 0;
  font-size: 13px;
  opacity: 0.9;
  text-align: left;
  line-height: 1.3;
}
.hero__qr p strong { display: block; font-size: 14px; }
@media (min-width: 768px) {
  .hero__qr { display: inline-flex; }
}

/* ================ Trust strip ================ */
.trust {
  background: var(--yellow);
  color: var(--navy);
  padding: 22px 0;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 20px;
  text-align: center;
}
.trust__item strong {
  display: block;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.5px;
}
.trust__item span {
  display: block;
  font-size: 12px;
  margin-top: 4px;
  font-weight: 600;
}
@media (min-width: 768px) {
  .trust__grid { grid-template-columns: repeat(4, 1fr); }
  .trust__item strong { font-size: 34px; }
  .trust__item span { font-size: 14px; }
}

/* ================ Shared section title ================ */
.section-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin: 0 0 28px;
  letter-spacing: -0.3px;
}

/* ================ Features ================ */
.features {
  padding: 56px 0;
  background: var(--surface-2);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature {
  background: #fff;
  border-radius: var(--radius-m);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.feature__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  border-radius: var(--radius-s);
  font-size: 24px;
  margin-bottom: 12px;
}
.feature h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
  line-height: 1.3;
}
.feature p {
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.5;
}
@media (min-width: 768px) {
  .features__grid { grid-template-columns: repeat(4, 1fr); }
  .feature { padding: 24px; }
  .feature h3 { font-size: 16px; }
  .feature p { font-size: 14px; }
}

/* ================ Gallery ================ */
.gallery {
  padding: 56px 0;
  background: #fff;
}
.gallery__scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px 4px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.gallery__scroller::-webkit-scrollbar { display: none; }
.gallery__item {
  flex: 0 0 auto;
  margin: 0;
  text-align: center;
  scroll-snap-align: center;
}
.gallery__item img {
  width: 240px;
  height: auto;
  border-radius: var(--radius-m);
  background: #f0f0f0;
}
.gallery__item figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
}
@media (min-width: 992px) {
  .gallery__scroller { justify-content: center; overflow-x: visible; flex-wrap: wrap; }
  .gallery__item img { width: 220px; }
}

/* ================ FAQ ================ */
.faq {
  padding: 56px 0;
  background: var(--surface-2);
}
.faq__inner { max-width: 720px; }
.faq__item {
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq__item summary {
  padding: 16px 20px;
  font-weight: 700;
  color: var(--navy);
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--navy);
  line-height: 1;
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p {
  padding: 0 20px 16px;
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}
.faq__item a {
  color: var(--navy);
  text-decoration: underline;
}

/* ================ CTA band ================ */
.cta-band {
  background: linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 100%);
  color: #fff;
  padding: 56px 0;
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.cta-band p {
  margin: 0 0 24px;
  opacity: 0.9;
}

/* ================ Footer ================ */
.site-footer {
  background: #fff;
  color: #444;
  padding: 24px 0 28px;
  font-size: 13px;
  border-top: 1px solid var(--border);
}
.site-footer__brand {
  color: var(--navy);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.3px;
  margin: 0 0 8px;
}
.site-footer__line {
  margin: 0;
  padding: 1px 0;
  line-height: 1.45;
  color: #444;
  font-size: 13px;
}
.site-footer a {
  color: var(--navy);
  text-decoration: none;
  transition: color .15s;
}
.site-footer a:hover {
  color: var(--navy-2);
  text-decoration: underline;
}

/* ================ Legal pages ================ */
.legal {
  padding: 40px 0 56px;
  background: #fff;
  min-height: 60vh;
}
.legal__inner { max-width: 720px; }
.legal h1 {
  font-size: 28px;
  color: var(--navy);
  margin: 0 0 8px;
  font-weight: 800;
}
.legal__updated {
  color: var(--text-2);
  font-size: 13px;
  margin-bottom: 24px;
}
.legal h2 {
  font-size: 18px;
  color: var(--navy);
  margin: 24px 0 8px;
  font-weight: 700;
}
.legal p, .legal li {
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
}
.legal ul { padding-left: 20px; }
.legal a {
  color: var(--navy);
  text-decoration: underline;
}

/* ================ Get page ================ */
.get-redirect {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  text-align: center;
  background: var(--navy);
  color: #fff;
}
.get-redirect h1 {
  font-size: 24px;
  margin: 0;
  font-weight: 800;
}
.get-redirect__badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 16px;
}
