:root {
  --ink: #12140f;
  --paper: #fff7e4;
  --green: #2e5f1c;
  --green-dk: #1c3d10;
  --lime: #c6f24e;
  --flame: #ff4b26;
  --sky: #8fd6ff;
  --sh: 6px 6px 0 var(--ink);
  --sh-sm: 4px 4px 0 var(--ink);
  --maxw: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Be Vietnam Pro", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.lock {
  overflow: hidden;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

.mono {
  font-family: "Space Mono", monospace;
}

.tag {
  display: inline-block;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  transform: rotate(-1.6deg);
  margin-bottom: 20px;
}

.tag.f {
  background: var(--flame);
  color: #fff;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 800;
  font-size: 15px;
  padding: 14px 24px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--flame);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--sh-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  text-decoration: none;
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.btn.lime {
  background: var(--lime);
  color: var(--ink);
}

.btn.ghost {
  background: var(--paper);
  color: var(--ink);
}

.btn.sm {
  padding: 10px 18px;
  font-size: 13.5px;
  border-width: 2.5px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 32px;
  height: 32px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
  display: grid;
  place-items: center;
  flex: none;
  transform: rotate(-6deg);
}

.logo-mark i {
  display: block;
  width: 12px;
  height: 12px;
  background: var(--flame);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
}

.logo b {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: 23px;
  text-transform: uppercase;
}

.iconbtn {
  width: 46px;
  height: 46px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--sh-sm);
  transition: transform 0.12s, box-shadow 0.12s;
}

.iconbtn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}

.iconbtn span {
  display: block;
  width: 18px;
  height: 2.6px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
}

.iconbtn span::before,
.iconbtn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2.6px;
  background: var(--ink);
  border-radius: 2px;
}

.iconbtn span::before {
  top: -6px;
}

.iconbtn span::after {
  top: 6px;
}

.iconbtn.x span {
  background: transparent;
}

.iconbtn.x span::before {
  top: 0;
  transform: rotate(45deg);
}

.iconbtn.x span::after {
  top: 0;
  transform: rotate(-45deg);
}

.lang {
  display: flex;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: var(--paper);
}

.lang button {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  background: none;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--ink);
}

.lang button.on {
  background: var(--ink);
  color: var(--lime);
}

.lang-lg {
  border-width: 3px;
}

.lang-lg button {
  font-size: 13px;
  padding: 9px 15px;
  letter-spacing: 0.06em;
}

.lang-lg button.on {
  background: var(--flame);
  color: #fff;
}

#menu {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

#menu.on {
  opacity: 1;
  visibility: visible;
}

#menu a {
  font-family: "Anton", sans-serif;
  text-transform: uppercase;
  font-size: clamp(30px, 5.4vw, 60px);
  color: var(--paper);
  text-decoration: none;
  line-height: 1.1;
}

#menu a:hover,
#menu a.on {
  color: var(--lime);
}

.menu-top {
  position: absolute;
  top: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 3;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 14px 0;
  background: var(--paper);
  border-bottom: 3px solid var(--ink);
}

.nav-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: var(--flame);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}

.nav-links a:hover::after,
.nav-links a.on::after {
  transform: scaleX(1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-menu {
  display: none;
}

.court {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
}

.court i {
  position: absolute;
  background: rgba(255, 247, 228, 0.5);
}

.page-hero {
  position: relative;
  background: var(--green);
  padding: 128px 0 72px;
  overflow: hidden;
  border-bottom: 3px solid var(--ink);
}

.page-hero-in {
  position: relative;
  z-index: 3;
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--lime);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 7px 15px;
  box-shadow: var(--sh-sm);
  margin-bottom: 22px;
}

.page-hero h1 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.005em;
  color: var(--paper);
  font-size: clamp(38px, 7vw, 74px);
}

.page-hero .hero-sub {
  font-size: clamp(15.5px, 1.7vw, 18px);
  line-height: 1.6;
  margin: 22px 0 0;
  font-weight: 600;
  color: rgba(255, 247, 228, 0.86);
  max-width: 54ch;
}

.page {
  flex: 1;
  padding: 56px 0 88px;
}

.card {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: var(--sh);
}

.meta {
  display: inline-flex;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--lime);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 20px;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
}

.toc a {
  font-family: "Space Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2.5px solid var(--ink);
  border-radius: 99px;
  padding: 6px 13px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 2px 2px 0 var(--ink);
}

.toc a:hover {
  background: var(--lime);
}

.policy section {
  padding: 26px 0;
  border-bottom: 2.5px dashed var(--ink);
}

.policy section:first-of-type {
  padding-top: 8px;
}

.policy section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.policy section[id] {
  scroll-margin-top: 96px;
}

.policy h2 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.1;
  margin: 0 0 14px;
}

.policy p,
.policy li {
  font-size: 15.5px;
  line-height: 1.65;
  font-weight: 500;
}

.policy p + p,
.policy p + ul,
.policy ul + p {
  margin-top: 12px;
}

.policy ul {
  padding-left: 1.2rem;
}

.policy li + li {
  margin-top: 8px;
}

.policy a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid var(--lime);
}

.policy a:hover {
  color: var(--flame);
  border-bottom-color: var(--flame);
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.row {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .row.two {
    grid-template-columns: 1fr 1fr;
  }
}

.field label {
  display: block;
  font-family: "Space Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.req {
  color: var(--flame);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 18px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--sh-sm);
  appearance: none;
}

.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.field textarea {
  min-height: 150px;
  border-radius: 20px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--lime);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9a9a8c;
  font-weight: 500;
}

.field.error input,
.field.error select,
.field.error textarea {
  border-color: var(--flame);
  background: #fff;
}

.error-text {
  display: none;
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--flame);
}

.field.error .error-text {
  display: block;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 6px;
}

.note {
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: #5c6155;
  margin: 0;
}

.success {
  display: none;
  text-align: center;
  padding: 28px 8px 8px;
}

.success.is-visible {
  display: block;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: var(--lime);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-family: "Anton", sans-serif;
  font-size: 32px;
  box-shadow: var(--sh-sm);
}

.success h2 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 12px;
}

.success p {
  color: #5c6155;
  font-weight: 600;
  line-height: 1.6;
  max-width: 44ch;
  margin: 0 auto 22px;
}

.faq-block {
  margin-top: 36px;
}

.faq-block h2 {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(28px, 4vw, 42px);
  margin: 0 0 20px;
}

.faqgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.q {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--sh-sm);
  align-self: start;
}

.q.open {
  background: var(--lime);
}

.q-btn {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  padding: 18px 52px 18px 20px;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
  position: relative;
  line-height: 1.35;
}

.q-btn::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Anton", sans-serif;
  font-size: 24px;
  color: var(--flame);
  transition: transform 0.25s;
}

.q.open .q-btn::after {
  transform: translateY(-50%) rotate(135deg);
}

.q-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.q-a p {
  padding: 0 40px 20px 20px;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 600;
}

.q.open .q-a {
  max-height: 340px;
}

footer {
  background: var(--ink);
  color: var(--paper);
  padding: 52px 0 26px;
}

.f-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: 38px;
}

.f-tag {
  font-family: "Anton", sans-serif;
  font-size: clamp(19px, 2.4vw, 27px);
  text-transform: uppercase;
  line-height: 1.05;
  margin-top: 16px;
  max-width: 18ch;
  color: var(--lime);
}

.f-h {
  font-family: "Space Mono", monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 13px;
  color: var(--flame);
}

.f-l {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.f-l a {
  color: #d6d2c4;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.f-l a:hover,
.f-l a.on {
  color: var(--lime);
}

footer .logo {
  color: var(--paper);
}

footer .logo b {
  color: var(--paper);
}

.f-bot {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 2.5px dashed rgba(255, 247, 228, 0.28);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: "Space Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8b8a80;
}

/* ---------- OPEN APP (deeplink landing) ---------- */
.open-app-body {
  min-height: 100dvh;
  display: block;
  background: var(--green);
}

.open-app {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 22px;
  overflow: hidden;
  background: var(--green);
}

.open-app-court {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
}

.open-app-court i {
  position: absolute;
  background: rgba(255, 247, 228, 0.5);
}

.open-app-in {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 36rem;
  animation: open-app-in 0.55s ease both;
}

@keyframes open-app-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.open-app-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--paper);
  margin-bottom: 28px;
}

.open-app-brand b {
  font-family: "Anton", sans-serif;
  font-weight: 400;
  font-size: clamp(36px, 8vw, 56px);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--paper);
}

.open-app-brand .logo-mark {
  width: 42px;
  height: 42px;
}

.open-app-status {
  font-size: clamp(15.5px, 1.8vw, 18px);
  font-weight: 600;
  line-height: 1.55;
  color: rgba(255, 247, 228, 0.9);
  margin: 0 auto 14px;
  max-width: 36ch;
}

.open-app-code {
  display: inline-block;
  margin: 0 auto 22px;
  padding: 8px 14px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.open-app-actions {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 247, 228, 0.65);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  justify-content: center;
  align-items: center;
}

.open-app-actions a {
  color: var(--lime);
  text-decoration: none;
  font-weight: 800;
}

.open-app-actions a:hover {
  text-decoration: underline;
}

.open-app-lang {
  display: inline-flex;
  gap: 0;
  margin-top: 28px;
  border: 2.5px solid rgba(255, 247, 228, 0.35);
  border-radius: 999px;
  overflow: hidden;
}

.open-app-lang button {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 247, 228, 0.7);
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 8px 14px;
  cursor: pointer;
}

.open-app-lang button.on {
  background: var(--lime);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

[data-lang-block="en"] {
  display: none;
}

html[lang="en"] [data-lang-block="vi"] {
  display: none;
}

html[lang="en"] [data-lang-block="en"] {
  display: block;
}

html[lang="vi"] [data-lang-block="vi"] {
  display: block;
}

html[lang="vi"] [data-lang-block="en"] {
  display: none;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .nav-menu {
    display: grid;
  }

  .page-hero {
    padding: 112px 0 56px;
  }

  .page {
    padding: 40px 0 64px;
  }

  .faqgrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .f-grid {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .menu-top {
    top: 16px;
    right: 16px;
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

:focus-visible {
  outline: 4px solid var(--flame);
  outline-offset: 3px;
}
