/* ViralJung landing — design tokens from brand/ViralJung Brand Color.png
   Layout/scale mirrors jodjam.com */

@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@400;500;600;700&display=swap');

:root {
  --bg: #f7f5ff;
  --surface: #ede9fe;          /* Purple Light */
  --border: #e8e3fb;
  --border-2: #cfc4f4;
  --text: #0f172a;             /* Dark Navy */
  --muted: #64748b;            /* Mid Gray */
  --brand: #7c3aed;            /* Viral Purple */
  --accent: #ec4899;           /* Jung Pink */
  --accent-soft: #fce7f3;      /* Pink Light */
  --on-brand: #fff;
  --brand-line: #06c755;       /* LINE green */
  --card: #fff;
  --font: 'Prompt', -apple-system, 'Helvetica Neue', 'Noto Sans Thai', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- topbar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
}
.topbar--float { position: absolute; top: 0; left: 0; right: 0; }
.badge {
  font-size: 13px; color: var(--text); background: var(--surface);
  padding: 6px 12px; border-radius: 999px; line-height: 1; white-space: nowrap;
}
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; }
.brand-mark { display: flex; align-items: center; }
.nav-link { color: var(--brand); font-size: 14px; font-weight: 700; white-space: nowrap; }
.nav-link:hover { text-decoration: underline; }
.brand-mark img { height: 26px; width: auto; }
.lang-toggle {
  border: 1px solid var(--border-2); color: var(--text);
  border-radius: 999px; padding: 7px 16px;
  font-size: 13px; font-weight: 700; line-height: 1; cursor: pointer;
}
.lang-toggle:hover { background: var(--surface); }

/* ---------- hero (home) ---------- */
.hero {
  min-height: 70svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 18px;
  padding: 16px 24px 40px;
}
.hero-links { display: flex; align-items: center; justify-content: center; gap: 26px; flex-wrap: wrap; margin-top: 4px; }
.mascot { width: 290px; max-width: 78%; max-height: 42svh; object-fit: contain; }
.title {
  margin: 0; color: var(--brand);
  font-size: 36px; font-weight: 700; line-height: 1.2;
}
.intro { margin: 0; max-width: 32rem; color: var(--muted); font-size: 18px; }

.line-btn {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 6px; padding: 14px 30px; border-radius: 14px;
  background: var(--brand-line); color: #fff;
  font-size: 18px; font-weight: 700;
}
.line-btn:hover { filter: brightness(.96); }
.line-icon { width: 32px; height: 32px; }

.detail-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--brand); font-size: 16px; font-weight: 700;
}
.detail-link svg { width: 18px; height: 18px; }
.detail-link:hover { text-decoration: underline; }

/* ---------- home sections ---------- */
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 22px; }
section[id] { scroll-margin-top: 20px; }
.band {
  background: var(--card);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 54px 0;
}
.section-sub { text-align: center; color: var(--muted); font-size: 16px; margin: -8px 0 22px; }

.about-split { display: grid; grid-template-columns: 190px 1fr; gap: 34px; align-items: center; }
.about-split figure img { width: 100%; max-width: 180px; margin: 0 auto; }
.about-split h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.about-split p { color: var(--muted); font-size: 16.5px; }
.about-split p + p { margin-top: 12px; }
.about-split a { color: var(--brand); font-weight: 600; }
.about-split a:hover { text-decoration: underline; }

/* ---------- inner pages ---------- */
.page { max-width: 1000px; margin: 0 auto; padding: 8px 22px 24px; }
.page-head { text-align: center; padding: 20px 0 8px; }
.page-title { color: var(--brand); font-size: 32px; font-weight: 700; line-height: 1.25; }
.page-sub { margin-top: 10px; color: var(--muted); font-size: 17px; }

.section { margin-top: 52px; }
.section-title { font-size: 22px; font-weight: 700; margin-bottom: 18px; }
.section-title--center { text-align: center; }

.lede { max-width: 44rem; margin: 0 auto; text-align: center; font-size: 17px; color: var(--muted); }
.lede p + p { margin-top: 12px; }
.lede a { color: var(--brand); font-weight: 600; }
.lede a:hover { text-decoration: underline; }

.center { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px;
}

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details {
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px 18px;
}
.faq details[open] { border-color: var(--border-2); }
.faq summary {
  list-style: none; cursor: pointer; font-weight: 600; font-size: 16px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex: none; width: 10px; height: 10px; margin-top: 7px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand);
  transform: rotate(45deg); transition: transform .18s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* steps */
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.step { position: relative; text-align: center; }
.step-n {
  width: 32px; height: 32px; border-radius: 999px;
  background: var(--surface); color: var(--brand);
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  margin: 0 auto 12px;
}
.step h3 { font-size: 16.5px; font-weight: 700; }
.step p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.step .inline-btn { margin-top: 12px; }

.inline-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 10px;
  background: var(--brand-line); color: #fff; font-size: 14px; font-weight: 700;
}
.inline-btn:hover { filter: brightness(.96); }
.inline-btn svg { width: 18px; height: 18px; }

.pose { height: 112px; width: auto; object-fit: contain; object-position: center bottom; margin: 0 auto 6px; }

/* ---------- pricing ---------- */
.notice {
  max-width: 44rem; margin: 22px auto 0;
  background: var(--accent-soft); border: 1px solid #f9cfe6;
  border-radius: 14px; padding: 14px 18px;
  color: #9d174d; font-size: 14.5px; text-align: center;
}
.trial {
  max-width: 44rem; margin: 26px auto 0;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: 18px; padding: 18px 24px;
}
.trial img { width: 62px; flex: none; }
.trial strong { color: var(--brand); }
.trial p { flex: 1 1 260px; color: var(--muted); font-size: 15px; text-align: left; }

.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin-top: 26px; }
.plan { display: flex; flex-direction: column; position: relative; }
.plan--featured { border-color: var(--brand); box-shadow: 0 10px 30px rgba(124,58,237,.10); }
.plan-tag {
  position: absolute; top: -12px; left: 22px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 12px; border-radius: 999px; line-height: 1;
}
.plan h3 { font-size: 18px; font-weight: 700; }
.plan .price { margin-top: 10px; font-size: 34px; font-weight: 700; color: var(--brand); line-height: 1.1; }
.plan .price span { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan .per { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.plan ul { margin-top: 16px; display: grid; gap: 9px; list-style: none; }
.plan li { display: flex; gap: 9px; font-size: 15px; color: var(--text); }
.plan li::before { content: '✓'; color: var(--brand); font-weight: 700; flex: none; }
.plan .foot { margin-top: auto; padding-top: 16px; color: var(--muted); font-size: 13.5px; }

.topups { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.topup { text-align: center; padding: 18px; }
.topup h3 { font-size: 16px; font-weight: 700; }
.topup .price { margin-top: 6px; font-size: 24px; font-weight: 700; color: var(--accent); }
.topup p { margin-top: 4px; color: var(--muted); font-size: 14px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.compare {
  width: 100%; min-width: 560px; border-collapse: collapse;
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; font-size: 15px;
}
table.compare th, table.compare td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--border); }
table.compare thead th { background: var(--surface); font-weight: 700; font-size: 14.5px; }
table.compare tbody th { text-align: left; font-weight: 500; color: var(--text); }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare .yes { color: var(--brand); font-weight: 700; }

/* ---------- footer ---------- */
.site-footer {
  max-width: 1000px; margin: 56px auto 0;
  padding: 28px 22px 36px; border-top: 1px solid var(--border); text-align: center;
}
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; }
.footer-nav a { color: var(--brand); font-size: 14px; font-weight: 700; }
.footer-nav a:hover { text-decoration: underline; }
.footer-entity { margin-top: 12px; color: var(--muted); font-size: 13px; }

.hero + .site-footer { margin-top: 0; }

@media (max-width: 560px) {
  .topbar { padding: 14px 16px; }
  .topbar .badge { display: none; }
  .topbar-left, .topbar-right { gap: 10px; }
  .brand-mark img { height: 23px; }
}
@media (max-width: 640px) {
  .about-split { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .about-split figure img { max-width: 130px; }
}
@media (max-width: 520px) {
  .title { font-size: 30px; }
  .hero-links { gap: 18px; }
  .intro { font-size: 16px; }
  .mascot { max-height: 38svh; }
  .page-title { font-size: 27px; }
  .trial { flex-direction: column; gap: 12px; }
  .trial p { flex: none; text-align: center; }
}
@media (max-width: 380px) {
  .title { font-size: 30px; }
  .intro { font-size: 16px; }
}
