/* pricing.css — shared by /pricing, /th/pricing, /ja/pricing, /ko/pricing.
   Same tokens as the landing page (index.html): this is marketing, not the dashboard.
   Each language page loads only the web font it needs; the per-language rules below pick it up. */
:root { --bg:#0d081c; --ink:#f2eeff; --muted:#a99cc9; --accent:#9a78ff; --accent2:#ffd166;
  --card:#1a1230; --border:#2c2050; --ok:#4ade80;
  --font:"Segoe UI", system-ui, sans-serif; --lh:1.55; --w-body:400; --w-mid:700; --w-bold:800; --w-max:900; }
* { box-sizing: border-box; }
svg.i { width: 1em; height: 1em; display: inline-block; vertical-align: -0.125em; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: var(--w-body);
  line-height: var(--lh); overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: -30% -10% auto; height: 70vh; z-index: 0;
  background: radial-gradient(60% 60% at 50% 40%, rgba(154,120,255,.22), transparent 70%); pointer-events: none; }
.wrap { position: relative; z-index: 2; max-width: 1020px; margin: 0 auto; padding: 20px 18px 70px; }
a { color: inherit; }
b, strong { font-weight: var(--w-mid); }

/* CJK and Thai need more leading and have no 900 weight worth using. */
html[lang="th"] { --font:"Kanit","Leelawadee UI","Segoe UI",system-ui,sans-serif; --lh:1.75;
  --w-mid:600; --w-bold:700; --w-max:800; }
html[lang="ja"] { --font:"Noto Sans JP","Yu Gothic UI","Segoe UI",system-ui,sans-serif; --lh:1.72;
  --w-mid:600; --w-bold:700; --w-max:800; }
html[lang="ko"] { --font:"Noto Sans KR","Malgun Gothic","Segoe UI",system-ui,sans-serif; --lh:1.72;
  --w-mid:600; --w-bold:700; --w-max:800; }

header { display: flex; align-items: center; gap: 10px; margin-bottom: 34px; flex-wrap: wrap; }
.logo { font-size: 20px; letter-spacing: -.3px; display: flex; align-items: center; gap: 7px;
  text-decoration: none; font-weight: var(--w-mid); }
.logo b { color: var(--accent); font-weight: var(--w-bold); }
.spacer { flex: 1; }
.btn, .btn-ghost { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 12px;
  font-family: inherit; font-weight: var(--w-bold); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn { background: var(--accent); color: #14092c; padding: 13px 24px; font-size: 16px;
  box-shadow: 0 6px 22px rgba(154,120,255,.35); transition: transform .14s ease, box-shadow .14s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(154,120,255,.45); }
.btn-ghost { background: rgba(154,120,255,.13); color: var(--ink); padding: 8px 15px; font-size: 14px;
  border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.nav-user { display: flex; align-items: center; gap: 9px; }
.nav-chip { display: flex; align-items: center; gap: 8px; background: rgba(154,120,255,.13);
  border: 1px solid var(--border); border-radius: 999px; padding: 4px 13px 4px 4px;
  text-decoration: none; font-size: 13.5px; font-weight: var(--w-mid); }
.nav-photo { width: 26px; height: 26px; border-radius: 50%; }

/* language picker — header (short) and footer (native names) */
.lang-pick { display: inline-flex; gap: 2px; background: rgba(154,120,255,.1);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-pick a { text-decoration: none; font-size: 12.5px; font-weight: var(--w-bold); color: var(--muted);
  padding: 5px 10px; border-radius: 999px; line-height: 1.4; }
.lang-pick a:hover { color: var(--ink); }
.lang-pick a.on { background: var(--accent); color: #14092c; }
.lang-list { display: flex; gap: 14px; flex-wrap: wrap; }
.lang-list a { text-decoration: none; }
.lang-list a:hover, .lang-list a.on { color: var(--ink); }

.hero { text-align: center; padding: 8px 0 4px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: var(--w-bold); letter-spacing: 1.4px;
  color: var(--accent); background: rgba(154,120,255,.12);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 15px; }
h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.2; margin: 18px 0 12px; font-weight: var(--w-max); }
h1 span { color: var(--accent); }
.lede { color: var(--muted); font-size: 16.5px; max-width: 640px; margin: 0 auto; }
.price-anchor { display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap; margin: 26px 0 0; }
.price-now { font-size: 44px; font-weight: var(--w-max); line-height: 1.2; }
.price-now small { font-size: 17px; font-weight: var(--w-mid); color: var(--muted); }
.price-was { font-size: 25px; font-weight: var(--w-bold); color: #7c6f9c; text-decoration: line-through; }
.price-off { background: linear-gradient(135deg, #e0448f, var(--accent)); color: #fff; font-size: 15px;
  font-weight: var(--w-max); padding: 6px 14px; border-radius: 12px; white-space: nowrap; }
.price-from { display: inline-flex; align-items: center; gap: 9px; margin: 16px auto 0; text-align: left;
  background: rgba(154,120,255,.1); border: 1px solid var(--border); color: #d9cbff;
  font-size: 13.5px; font-weight: var(--w-mid); padding: 8px 16px; border-radius: 14px; }
.price-from svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--accent2); }

.pay { background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 22px; margin: 30px auto 0; max-width: 700px; }
.region { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 6px; }
.rg { background: transparent; color: var(--muted); border: 1.5px solid var(--border); border-radius: 999px;
  padding: 7px 17px; font-family: inherit; font-size: 13.5px; font-weight: var(--w-mid); cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; transition: border-color .14s, color .14s; }
.rg:hover { color: var(--ink); border-color: var(--accent); }
.rg.on { background: rgba(154,120,255,.16); border-color: var(--accent); color: var(--ink); }
.rg svg { width: 15px; height: 15px; }
.pay-sub { text-align: center; color: var(--muted); font-size: 13.5px; margin: 12px 0 4px; }
.thai-note { display: none; align-items: flex-start; gap: 9px; font-size: 12.5px; font-weight: var(--w-mid);
  color: #bfe0ff; background: rgba(77,171,247,.09); border: 1px solid rgba(77,171,247,.3);
  border-radius: 12px; padding: 10px 13px; margin: 12px 0 0; }
.thai-note svg { width: 16px; height: 16px; flex: 0 0 auto; color: #4dabf7; margin-top: 3px; }
.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 18px; }
@media (max-width: 560px) { .packs { grid-template-columns: 1fr; } }
.pack { position: relative; background: rgba(255,255,255,.03); border: 1.5px solid var(--border);
  border-radius: 16px; padding: 17px 12px 15px; font-family: inherit; color: var(--ink); cursor: pointer;
  text-align: center; transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease; }
.pack:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 28px rgba(154,120,255,.24); }
.pack:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.pack.best { border-color: var(--accent); background: linear-gradient(160deg, rgba(154,120,255,.16), rgba(224,68,143,.09)); }
.pack .was { display: block; font-size: 13px; font-weight: var(--w-mid); color: #7c6f9c;
  text-decoration: line-through; min-height: 20px; line-height: 1.4; }
.pack .now { display: block; font-size: 29px; font-weight: var(--w-max); line-height: 1.25; }
.pack .mo { display: block; font-size: 13.5px; font-weight: var(--w-mid); color: var(--muted); }
.pack .avg { display: block; font-size: 12px; font-weight: var(--w-mid); color: #8d80b3; }
.pack .bar { display: block; height: 5px; border-radius: 99px; background: rgba(255,255,255,.08);
  margin: 10px 4px 8px; overflow: hidden; }
.pack .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #d47bff); }
.pack.best .bar i { background: linear-gradient(90deg, #e0448f, var(--accent)); }
.pack .save { display: block; font-size: 11.5px; font-weight: var(--w-bold); color: var(--ok); line-height: 1.5; }
.pack .free { display: block; font-size: 11.5px; font-weight: var(--w-bold); color: var(--accent2); line-height: 1.5; }
.pack .ribbon { position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #14092c; font-size: 10.5px; font-weight: var(--w-bold);
  padding: 2px 11px; border-radius: 999px; white-space: nowrap; line-height: 1.6; }
.pay-note { text-align: center; color: var(--muted); font-size: 12.5px; margin: 15px 0 0; }
.already { display: none; text-align: center; font-size: 14.5px; font-weight: var(--w-bold); color: var(--ok);
  background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.32); border-radius: 12px;
  padding: 13px; margin: 0; }

h2 { font-size: clamp(22px, 3.2vw, 31px); text-align: center; margin: 66px 0 8px; font-weight: var(--w-max); }
.sec-sub { text-align: center; color: var(--muted); font-size: 15px; margin: 0 auto 26px; max-width: 620px; }

.cmp { width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--border); border-radius: 18px; overflow: hidden; font-size: 14.5px; }
.cmp th, .cmp td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.cmp thead th { background: rgba(255,255,255,.03); font-size: 12.5px; letter-spacing: .4px;
  color: var(--muted); font-weight: var(--w-mid); }
.cmp .col-v { text-align: center; width: 19%; }
.cmp thead .col-pro { color: var(--accent); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody th { font-weight: var(--w-mid); }
.cmp tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.yes { color: var(--ok); } .no { color: #6a5f88; }
.cmp svg { width: 18px; height: 18px; }
.cmp-wrap { overflow-x: auto; }

.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 13px; }
.tool { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 17px; }
.tool .ico { width: 36px; height: 36px; border-radius: 11px; background: rgba(154,120,255,.15);
  color: var(--accent); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.tool .ico svg { width: 19px; height: 19px; }
.tool b { display: block; font-size: 15.5px; font-weight: var(--w-mid); }
.tool p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 13px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: var(--w-mid); font-size: 15px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--accent); font-weight: var(--w-bold); }
.faq details[open] summary::after { content: '\2212'; }
.faq p { color: var(--muted); font-size: 14px; margin: 8px 0 0; }

.cta2 { text-align: center; margin-top: 58px; }
footer { margin-top: 60px; padding-top: 22px; border-top: 1px solid var(--border);
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 13.5px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #1f7a3d;
  color: #fff; font-weight: var(--w-bold); font-size: 14px; padding: 11px 22px; border-radius: 999px;
  box-shadow: 0 8px 30px rgba(0,0,0,.4); opacity: 0; transition: opacity .35s, transform .35s; z-index: 99; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ── legal pages (/privacy, /terms) — prose on top of the shared marketing shell ── */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { text-align: left; font-size: clamp(26px, 4vw, 36px); margin: 8px 0 6px; }
.legal .eff { color: var(--muted); font-size: 13px; margin: 0 0 18px; }
.legal .lede { color: var(--muted); font-size: 16px; margin: 0 0 6px; max-width: none; text-align: left; }
.legal h2 { text-align: left; font-size: 18px; margin: 34px 0 10px; }
.legal p { color: #cfc6e8; font-size: 15px; margin: 0 0 12px; }
.legal p b { color: var(--ink); }
.legal a { color: var(--accent); }
