/* Mitr by Cadson Demak, SIL Open Font License 1.1 (/fonts/OFL.txt) */
@font-face { font-family: Mitr; src: url(/fonts/Mitr_400Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Mitr; src: url(/fonts/Mitr_500Medium.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Mitr; src: url(/fonts/Mitr_700Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }

/* the app's prison palette (app/src2/theme.js UI) */
:root {
  --navy: #24364F;
  --navy-dark: #18263A;
  --navy-line: #2D4362;
  --steel: #5B6B80;
  --steel-soft: #DCE2EA;
  --steel-light: #B9C4D2;
  --concrete: #F2EDE4;
  --orange: #F08A24;
  --orange-dark: #C2650F;
  --orange-soft: #FFE8CF;
  --hazard: #FFC400;
  --ok: #2C6BCB;
  --ok-soft: #E1ECFA;
  --card: #FFFFFF;
  --line: #E3DDD2;
  --line-dark: #CEC6B8;
  --text: #2F3136;
  --sub: #686359;
  --wrap: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--concrete); color: var(--text); font: 400 17px/1.65 Mitr, system-ui, sans-serif; overflow-wrap: break-word; }
img, svg { max-width: 100%; display: block; }
a { color: var(--ok); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
b, strong { font-weight: 500; }
:focus-visible { outline: 3px solid var(--hazard); outline-offset: 2px; border-radius: 6px; }

/* one language at a time: <html data-lang="th|en">, blocks marked lang="th" / lang="en" (js/site.js) */
html[data-lang="th"] [lang="en"]:not(html), html[data-lang="en"] [lang="th"]:not(html) { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

/* ---------- top bar (navy, on every page) ---------- */
.bar { background: var(--navy); color: #fff; }
.bar .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 19px; line-height: 1.2; min-width: 0; }
.brand:hover { color: #fff; }
.brand img { width: 36px; height: 36px; border-radius: 9px; flex: none; }
.brand span { white-space: nowrap; }
/* narrow phones: the short English name, "Prison Lingo" */
@media (max-width: 399px) { .brand .long { display: none; } }
.bar .sp { flex: 1; }
.nav { display: none; gap: 22px; }
.nav a { color: var(--steel-light); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
@media (min-width: 720px) { .nav { display: flex; } }
.langs { display: flex; gap: 2px; background: var(--navy-dark); border-radius: 999px; padding: 3px; flex: none; }
.langs button { font: 500 14px/1 Mitr, sans-serif; border: 0; background: none; color: var(--steel-light); padding: 8px 12px; border-radius: 999px; cursor: pointer; }
html[data-lang="th"] .langs [data-l="th"], html[data-lang="en"] .langs [data-l="en"] { background: var(--orange); color: #fff; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 17px/1.2 Mitr, sans-serif; text-decoration: none; border-radius: 16px; padding: 14px 22px; background: var(--orange); color: #fff; box-shadow: 0 4px 0 var(--orange-dark); border: 0; }
.btn:hover { color: #fff; filter: brightness(1.05); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--orange-dark); }

/* App Store button. Placeholder until the app is live (APP_STORE_URL in js/site.js), then swap in Apple's official badge */
.store { display: inline-flex; flex-direction: column; justify-content: center; min-width: 190px; min-height: 56px; padding: 7px 20px; border-radius: 12px; background: #000; color: #fff; text-decoration: none; border: 1.5px solid #8A94A3; line-height: 1.25; }
.store:hover { color: #fff; }
.store small { font-size: 12px; font-weight: 400; color: #C9CFD8; }
.store span { font-size: 19px; font-weight: 500; }
.store[aria-disabled="true"] { cursor: default; }
.store.live .soon, .store:not(.live) .get { display: none; }

/* ---------- hero (navy cell wall, the app icon's bricks) ---------- */
.hero { background: var(--navy) url(/img/wall.svg) 0 0 / 150px 140px; color: #fff; overflow: hidden; }
.hero .wrap { display: grid; gap: 8px; padding-top: 36px; }
.hero h1 { font-size: clamp(32px, 8.4vw, 56px); line-height: 1.12; margin: 0 0 14px; font-weight: 700; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { color: #DCE3EC; font-size: 18px; margin: 0 0 24px; max-width: 34em; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.hero .facts { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--steel-light); font-size: 15px; }
.hero .facts li { display: flex; align-items: center; gap: 7px; }
.hero .facts li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--hazard); }
.hero .art { justify-self: center; width: min(300px, 80%); margin-top: 18px; }
.hero .art img { width: 100%; height: auto; margin-bottom: -2px; }
@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; align-items: end; gap: 32px; padding-top: 64px; }
  .hero .copy { padding-bottom: 72px; }
  .hero .art { width: 100%; max-width: 430px; justify-self: end; margin-top: 0; }
}

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section.white { background: var(--card); border-top: 2px solid var(--line); border-bottom: 2px solid var(--line); }
.kicker { margin: 0 0 6px; color: var(--orange-dark); font-weight: 500; font-size: 15px; }
h2 { font-size: clamp(26px, 5.6vw, 38px); line-height: 1.2; margin: 0 0 10px; font-weight: 700; color: var(--navy); }
h3 { font-size: 19px; line-height: 1.35; margin: 0 0 4px; font-weight: 700; color: var(--navy); }
.intro { color: var(--sub); font-size: 18px; margin: 0 0 28px; max-width: 40em; }

.card { background: var(--card); border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 20px; padding: 20px; }
.section.white .card { border-color: var(--line); }

/* the lesson demo */
.demo { display: grid; gap: 16px; }
@media (min-width: 800px) { .demo { grid-template-columns: 1fr 1fr; align-items: start; } }
.demo .label { margin: 0 0 12px; color: var(--steel); font-size: 14px; font-weight: 500; }
.term { font-size: 44px; line-height: 1.15; font-weight: 700; color: var(--navy); margin: 0; }
.roman { color: var(--steel); font-size: 17px; margin: 2px 0 12px; }
.mean { font-size: 19px; font-weight: 500; margin: 0 0 14px; }
.demo dl { margin: 0; border-top: 2px solid var(--concrete); padding-top: 12px; display: grid; gap: 8px; }
.demo dt { font-size: 14px; color: var(--steel); font-weight: 500; }
.demo dd { margin: 0; color: var(--text); }
.q { font-size: 18px; font-weight: 500; margin: 0 0 14px; }
.opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.opts li { display: flex; align-items: center; gap: 10px; border: 2px solid var(--line); border-bottom-width: 4px; border-radius: 14px; padding: 10px 14px; font-weight: 500; background: var(--card); }
.opts li.right { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.opts li.right svg { margin-left: auto; flex: none; }
.why { margin: 14px 0 0; color: var(--sub); font-size: 15px; }

/* the 13 zones */
.zones { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 560px) { .zones { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .zones { grid-template-columns: 1fr 1fr 1fr; } }
.zones li { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 2px solid var(--line); border-bottom-width: 5px; border-radius: 18px; padding: 14px 16px; }
.zones .n { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; line-height: 1; }
.zones h3 { font-size: 17px; margin: 0; }
.zones p { margin: 2px 0 0; color: var(--sub); font-size: 15px; line-height: 1.5; }

/* how it plays */
.feats { display: grid; gap: 14px; }
@media (min-width: 720px) { .feats { grid-template-columns: 1fr 1fr; } }
.feat { display: flex; gap: 16px; align-items: flex-start; }
.feat .ic { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--orange-soft); color: var(--orange-dark); display: grid; place-items: center; }
.feat p { margin: 2px 0 0; color: var(--sub); }

/* 18+ and VIP */
.two { display: grid; gap: 16px; }
@media (min-width: 860px) { .two { grid-template-columns: 1fr 1fr; } }
.age { display: flex; gap: 16px; align-items: flex-start; }
.age .badge { flex: none; width: 64px; height: 64px; border-radius: 16px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 24px; line-height: 1; }
.card p { margin: 6px 0; }
.plans { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.plans li { display: flex; gap: 10px; align-items: baseline; }
.plans li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--orange); transform: translateY(-2px); }
.small { font-size: 15px; color: var(--sub); }

/* ---------- document pages (privacy, support) ---------- */
.doc { padding: 36px 0 56px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(30px, 7vw, 44px); line-height: 1.2; margin: 0 0 6px; color: var(--navy); }
.doc .meta { color: var(--sub); font-size: 15px; margin: 0 0 24px; }
.doc .lead { color: var(--sub); font-size: 18px; margin: 0 0 24px; }
.doc .card { margin: 0 0 14px; }
.doc .card h2 { font-size: 21px; margin: 0 0 6px; display: flex; gap: 10px; align-items: baseline; }
.doc .card ul, .doc .card ol { margin: 8px 0; padding-left: 22px; }
.doc .card li { margin: 4px 0; }
.num { flex: none; color: var(--orange-dark); font-weight: 700; min-width: 28px; }
.summary { list-style: none; margin: 8px 0 0; padding: 0 !important; display: grid; gap: 8px; }
.summary li { display: flex; gap: 10px; align-items: flex-start; margin: 0 !important; }
.summary svg { flex: none; margin-top: 4px; color: var(--orange); }
.contact { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0 0 28px; }
.faq h2 { font-size: 19px !important; }
.path { font-weight: 500; color: var(--navy); }

/* ---------- footer ---------- */
.foot { background: var(--navy-dark); color: var(--steel-light); padding: 36px 0 44px; font-size: 15px; }
.foot .wrap { display: grid; gap: 18px; }
.foot .row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.foot a { color: #fff; text-decoration: none; font-weight: 500; }
.foot a:hover { text-decoration: underline; color: #fff; }
.foot p { margin: 0; }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: 56px 0 72px; }
.lost img { width: 120px; height: 120px; border-radius: 28px; margin: 0 auto 18px; }
.lost h1 { font-size: clamp(28px, 7vw, 40px); margin: 0 0 6px; color: var(--navy); }
.lost p { color: var(--sub); margin: 0 0 24px; }
