:root {
  --gold: #e0d69a;
  --gold-hot: #f0d590;
  --gold-hover: #fef0ba;
  --navy: #192851;
  --ink: #dfe4f2;
  --body: #b9c2d9;
  --surface: #0f1922;
  --deep: #030818;
  --hairline: rgba(240, 213, 144, 0.45);
  --hairline-soft: rgba(224, 214, 154, 0.35);
  --radius-sm: 10px;
  --radius-full: 999px;
  --glow: rgba(224, 214, 154, 0.35) 0 0 26px 4px;
  --max: 1120px;
  --pad: 16px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-thai: "Chonburi", "Prompt", serif;
  --font-body: "Prompt", "Sukhumvit Set", "Thonburi", sans-serif;
}

@media (min-width: 768px) {
  :root { --pad: 32px; }
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--body);
  background: var(--deep);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.63;
}

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

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

.wrap {
  width: min(var(--max), calc(100% - var(--pad) * 2));
  margin-inline: auto;
}

.eyebrow {
  margin: 0;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.96px;
  text-transform: uppercase;
  line-height: 1.43;
}

h1, h2, h3, .thai-display {
  margin: 0;
  font-family: var(--font-thai);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.35;
}

h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.2; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.2; }
h3 { font-size: clamp(22px, 2vw, 28px); }

p, ul { margin: 0; }

.en {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0;
}

.lead {
  max-width: 68ch;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}

.gold { color: var(--gold); }

.section,
#matrix,
#paid,
#support,
#media { scroll-margin-top: 24px; }

.section {
  position: relative;
  padding: 48px 0 0;
}

main { padding-bottom: 48px; }

.section-alt { background: var(--surface); }

.section > .wrap,
.panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-head,
.panel-head > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 42rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--gold-hot);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  box-shadow: var(--glow);
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.btn:hover { background: var(--gold-hover); color: var(--navy); }

.hero {
  position: relative;
  display: grid;
  align-items: center;
  padding: 48px 0 40px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 42%, rgb(15, 42, 94) 0%, rgb(8, 23, 51) 46%, rgb(3, 8, 24) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, rgba(223, 228, 242, 0.8) 50%, transparent 52%),
    radial-gradient(1px 1px at 28% 70%, rgba(224, 214, 154, 0.9) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 72% 18%, rgba(240, 213, 144, 0.85) 50%, transparent 52%),
    radial-gradient(1px 1px at 84% 62%, rgba(223, 228, 242, 0.7) 50%, transparent 52%),
    radial-gradient(1px 1px at 48% 12%, rgba(223, 228, 242, 0.55) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 90% 34%, rgba(224, 214, 154, 0.6) 50%, transparent 52%);
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-logo {
  width: min(320px, 78vw);
  margin-inline: auto;
  filter: drop-shadow(0 0 48px rgba(70, 134, 210, 0.55));
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.hero h1 { max-width: 14ch; }

.theme-line {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-full);
  background: rgba(15, 25, 34, 0.45);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: end;
    text-align: left;
  }
  .hero-copy { align-items: flex-start; text-align: left; }
  .hero h1 { text-align: left; }
  .hero-logo { width: min(420px, 100%); margin-inline: 0; }
  .meta-row { justify-content: flex-start; }
}

.choices {
  display: grid;
  gap: 12px;
  margin-bottom: 40px;
}

.choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(240, 213, 144, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(15, 25, 34, 0.72);
  color: var(--body);
  text-decoration: none;
  transition: border-color 200ms ease, background 200ms ease;
}

.choice:hover {
  border-color: var(--gold-hot);
  color: var(--body);
}

.choice[aria-current="true"] {
  border-color: var(--gold);
  background: rgba(224, 214, 154, 0.1);
  box-shadow: var(--glow);
}

.choice .index {
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.96px;
}

.choice h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.choice .go {
  margin-top: auto;
  color: var(--gold);
  font-size: 14px;
  font-weight: 600;
}

@media (min-width: 900px) {
  .choices { grid-template-columns: repeat(3, 1fr); }
}

.detail-empty {
  margin: 0;
  padding: 20px 24px;
  border: 1px dashed rgba(240, 213, 144, 0.45);
  border-radius: var(--radius-sm);
  color: var(--ink);
  text-align: center;
}

#detail { display: none; }

html[data-type="paid"] .detail-empty,
html[data-type="support"] .detail-empty,
html[data-type="media"] .detail-empty { display: none; }

html[data-type="paid"] #detail,
html[data-type="support"] #detail,
html[data-type="media"] #detail { display: block; }

.panel { display: none; }

html[data-type="paid"] [data-panel="paid"],
html[data-type="support"] [data-panel="support"],
html[data-type="media"] [data-panel="media"] { display: flex; }

.panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
}

.tiers {
  display: grid;
  gap: 12px;
}

.tier-card,
.info-card,
.phase {
  border: 1px solid rgba(240, 213, 144, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(15, 25, 34, 0.72);
}

.tier-card {
  width: 100%;
  padding: 20px 16px 16px;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
}

.tier-card:hover { border-color: var(--gold-hot); }

.tier-card[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(224, 214, 154, 0.1);
  box-shadow: var(--glow);
}

.tier-title { background: linear-gradient(180deg, rgba(240, 213, 144, 0.16), rgba(15, 25, 34, 0.8)); }

.tier-name {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}

.tier-card .price {
  margin: 8px 0 2px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
}

.tier-card .up { margin-bottom: 12px; color: var(--gold); font-size: 13px; }

.tier-card ul,
.benefits { padding-left: 18px; }

.tier-card ul { font-size: 14px; line-height: 1.5; }

.size-tag {
  float: right;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  background: var(--gold-hot);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
}

@media (min-width: 700px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1100px) {
  .tiers { grid-template-columns: repeat(5, 1fr); }
}

.table-wrap,
.phases,
.pair { margin-bottom: 40px; }

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(240, 213, 144, 0.28);
  border-radius: var(--radius-sm);
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 15px;
}

caption {
  padding: 16px 16px 0;
  color: var(--body);
  font-size: 14px;
  text-align: left;
}

th, td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(240, 213, 144, 0.15);
  text-align: center;
  vertical-align: middle;
}

tbody th {
  min-width: 220px;
  background: #101a26;
  color: var(--ink);
  font-weight: 500;
  text-align: left;
}

thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #15233a;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
}

thead th button {
  all: unset;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

thead th button:hover { color: var(--gold); }

.sticky-col {
  position: sticky;
  left: 0;
  z-index: 1;
}

thead .sticky-col { z-index: 3; }

.group th {
  background: #0b1c46;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-align: left;
  text-transform: uppercase;
}

.mark { color: var(--gold); font-weight: 700; }
.dash { color: rgba(185, 194, 217, 0.35); }

body[data-active-tier="title"] [data-tier="title"],
body[data-active-tier="vip"] [data-tier="vip"],
body[data-active-tier="platinum"] [data-tier="platinum"],
body[data-active-tier="gold"] [data-tier="gold"],
body[data-active-tier="silver"] [data-tier="silver"] {
  background: rgba(224, 214, 154, 0.14);
}

.sub {
  display: block;
  color: var(--body);
  font-size: 12px;
  font-weight: 400;
}

.cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}

.pair,
.split { display: grid; gap: 12px; }

.split { gap: 32px; }

.info-card,
.phase {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
}

.info-card h3 { font-family: var(--font-body); font-size: 18px; font-weight: 600; }

.benefits li { margin: 6px 0; }

.phases { display: grid; gap: 12px; }

.phase h3 { font-family: var(--font-body); font-size: 20px; font-weight: 600; }
.phase .thai-display { font-size: 22px; }

.optional {
  display: inline-block;
  margin-top: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (min-width: 800px) {
  .pair { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .split { grid-template-columns: 1.15fr 0.85fr; align-items: start; }
  .phases { grid-template-columns: repeat(4, 1fr); }
}

.contact-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 24px 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(closest-side at 100% 0%, rgba(240, 213, 144, 0.2), transparent 60%),
    #0f1922;
}

.contact-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list a { color: var(--gold); font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tier-card, .choice { transition: none; }
}
