/* Trang san pham (/rocket-roadster/ ...) va trang /links - dung chung bien mau cua style.css */

.rr {
  --sky: #ff7ad9;
  --nova: #ffb347;
  --gradient: linear-gradient(120deg, #ff5fa2, #ffb347);
}

.dl {
  --sky: #f2b880;
  --nova: #9aa8ff;
  --gradient: linear-gradient(120deg, #f2b880, #c9a4ff);
}

.rh {
  --sky: #5ad8ff;
  --nova: #ff6ad5;
  --gradient: linear-gradient(120deg, #5ad8ff, #ff6ad5);
}

.ys {
  --sky: #ffb020;
  --nova: #ff6b4a;
  --gradient: linear-gradient(120deg, #ffb020, #ff6b4a);
}

.p-hero {
  padding: 72px 0 80px;
  background:
    radial-gradient(60% 50% at 30% 0%, rgba(255, 95, 162, 0.16), transparent 70%),
    radial-gradient(40% 40% at 85% 30%, rgba(255, 179, 71, 0.12), transparent 70%);
}

.p-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 56px;
  align-items: center;
}

.p-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  border: 1px solid var(--border);
  margin-bottom: 22px;
}

.p-hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  margin-bottom: 20px;
}

.grad {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.p-lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 30px;
}

.p-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn.is-disabled {
  cursor: default;
  opacity: 0.85;
  transform: none;
  filter: none;
}

.p-facts {
  font-size: 14px;
  color: var(--text-muted);
}

.p-video video {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: #000;
  display: block;
  border: 1px solid var(--border);
}

/* Anh thay cho video o hero (app chua co trailer tren web) */
.p-video img {
  width: 100%;
  height: auto;
  border-radius: 22px;
  border: 1px solid var(--border);
  display: block;
}

.p-note {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
}

.p-features {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.shot-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.shot-grid img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid var(--border);
}

/* Anh chup doc (app iPhone): 3 cot, dien thoai thi luot ngang */
.shot-grid.is-portrait {
  grid-template-columns: repeat(3, minmax(0, 300px));
  justify-content: center;
}

@media (max-width: 640px) {
  .shot-grid.is-portrait {
    grid-template-columns: repeat(3, 70%);
    justify-content: start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .shot-grid.is-portrait img {
    scroll-snap-align: start;
  }
}

.p-narrow {
  max-width: 680px;
}

.p-pricing h2 {
  margin-bottom: 20px;
}

.p-pricing p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.p-pricing a {
  color: var(--sky);
}

@media (max-width: 860px) {
  .p-hero-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .p-video {
    max-width: 320px;
    margin: 0 auto;
  }
}

/* /links */
.links-page main {
  padding: 56px 0 72px;
}

.links-wrap {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.links-avatar {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  display: block;
  border: 1px solid var(--border);
  margin: 0 auto 18px;
}

.links-wrap h1 {
  font-size: 30px;
  margin-bottom: 8px;
}

.links-wrap .links-bio {
  color: var(--text-muted);
  margin-bottom: 32px;
}

.links-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.links-group h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 4px;
  text-align: left;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: left;
  font-weight: 600;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.link-btn:hover {
  border-color: var(--sky);
  transform: translateY(-1px);
}

.link-btn img {
  width: 44px;
  height: 44px;
  border-radius: 11px;
}

.link-btn small {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--text-muted);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.social-grid .link-btn {
  justify-content: center;
  text-align: center;
  padding: 12px 8px;
  font-size: 14px;
}

/* Trang phap ly chung (/privacy, /terms) + chan trang /links (11/11/2026) */
.legal-wrap {
  max-width: 720px;
  padding-top: 48px;
  padding-bottom: 64px;
  line-height: 1.7;
}
.legal-wrap h1 { font-size: 32px; margin-bottom: 4px; }
.legal-wrap h2 { font-size: 19px; margin: 32px 0 8px; }
.legal-wrap ul { padding-left: 22px; }
.legal-wrap li { margin-bottom: 8px; }
.legal-wrap a { color: var(--sky); }
.legal-date { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; }
.app-meta { margin: -4px 0 14px; font-size: 12px; color: var(--text-muted); text-align: center; opacity: 0.8; }
.app-meta a { color: var(--text-muted); text-decoration: underline; text-decoration-color: rgba(154,163,191,0.4); text-underline-offset: 2px; }
.footer-note { flex-basis: 100%; font-size: 12px; opacity: 0.8; }

/* Dien thoai: khong de phan tu nao rong hon man hinh (anh/video co width=360 san) */
.p-hero-inner > *, .card-grid > * { min-width: 0; }
.p-video video, .p-video img { max-width: 100%; }

/* Trang /links/ 04/12: nut App Store phai nhin la biet bam (truoc do 0 luot bam / ~90 khach quang cao) */
.links-page main { padding: 20px 0 56px; }
.links-head { display: flex; align-items: center; gap: 14px; text-align: left; margin-bottom: 20px; }
.links-head .links-avatar { width: 56px; height: 56px; border-radius: 16px; margin: 0; flex: none; }
.links-wrap .links-head h1 { font-size: 22px; margin: 0 0 2px; }
.links-wrap .links-head .links-bio { font-size: 14px; line-height: 1.45; margin: 0; }

.feat {
  text-align: left;
  --fa: 90, 216, 255;
  --fb: 255, 106, 213;
  background: linear-gradient(160deg, rgba(var(--fa), 0.12), rgba(var(--fb), 0.08) 60%, rgba(19, 26, 46, 0.6));
  border: 1px solid rgba(var(--fa), 0.35);
  border-radius: 20px;
  padding: 16px 16px 6px;
  margin-bottom: 32px;
}
.feat-tag {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  color: rgb(var(--fa)); background: rgba(var(--fa), 0.12);
  border-radius: 999px; padding: 4px 10px; margin: 0 0 12px;
}
.feat-top { display: flex; align-items: center; gap: 14px; color: var(--text); }
.feat-top img { width: 72px; height: 72px; border-radius: 16px; flex: none; box-shadow: 0 4px 14px rgba(0,0,0,0.4); }
.feat-top b { display: block; font-size: 21px; font-weight: 800; line-height: 1.2; }
.feat-top small { display: block; font-size: 14px; color: var(--text-muted); line-height: 1.4; margin-top: 3px; }

.cta-store {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 16px 0 14px;
  min-height: 56px; padding: 0 18px;
  border-radius: 14px;
  background: #0a84ff;
  color: #fff; font-size: 17px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(10,132,255,0.35);
  transition: transform 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.cta-store:hover { background: #2a95ff; }
.cta-store:active { transform: scale(0.98); }

.feat-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.feat-shots img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); display: block; }
.feat .app-meta { margin: 12px 0 8px; }

.store-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  text-align: left; color: var(--text);
  transition: border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.store-row:hover { border-color: var(--sky); }
.store-row img { width: 56px; height: 56px; border-radius: 13px; flex: none; }
.app-txt { flex: 1; min-width: 0; }
.app-txt b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.app-txt small { display: block; font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.get {
  flex: none;
  min-width: 72px; padding: 7px 0;
  text-align: center;
  border-radius: 999px;
  background: rgba(118,118,128,0.24);
  color: #0a84ff; font-size: 15px; font-weight: 700; letter-spacing: 0.02em;
}
.store-row:active .get { background: rgba(118,118,128,0.4); }
.store-note { font-size: 12px; color: var(--text-muted); margin: 0; opacity: 0.8; }
.app-item .app-meta { margin: 6px 0 4px; }
.links-group .store-note { margin-top: -2px; }
.feat-rr { --fa: 255, 122, 217; --fb: 255, 179, 71; }
.feat-dl { --fa: 242, 184, 128; --fb: 154, 168, 255; }
.feat-ys { --fa: 255, 176, 32; --fb: 255, 107, 74; }
.feat + .feat { margin-top: -12px; }
.feat-shots.is-wide { grid-template-columns: minmax(0, 1fr); }
.links-wrap .links-h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin: 0 0 12px; text-align: left; }
