/* =====================================================================
   Typography: applies the "thai-kanit-typography" skill
   (.claude/skills/thai-kanit-typography/SKILL.md, measured from dsignme studio)
   Kanit for all content; Plus Jakarta Sans for UI chrome and numbers.
   Loaded last so it overrides the older per-file font rules.
   Text that is part of an image (home banner, promo panels) is not touched.
   ===================================================================== */
:root{
  --font-th:"Kanit",system-ui,sans-serif;
  --font-ui:"Kanit",system-ui,sans-serif; /* mockup v5 uses Kanit for Latin and numbers too */
  --accent:#ffcc4d;          /* M9's own accent for highlighted phrases */
  --t-muted:#c9b8de;
}

/* body: 16px / 1.5, -0.01em */
body{font-family:var(--font-th);font-size:16px;line-height:1.5;letter-spacing:-.01em;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}

/* ---------- headlines: 700, tight leading, slight negative tracking ---------- */
.page-head h2{font-weight:700;font-size:28px;line-height:1.1;letter-spacing:-.02em}
.page-head p{font-weight:400;font-size:15px;line-height:1.35;color:var(--t-muted);margin-top:4px}
.pd-body h2{font-weight:700;font-size:30px;line-height:1.1;letter-spacing:-.02em;margin-bottom:4px}
.info-panel h3,.track-head h3,.success-panel h2{font-weight:700;font-size:24px;line-height:1.1;letter-spacing:-.02em}
.auth-logo p{font-weight:400;font-size:15px;color:var(--t-muted)}

/* ---------- card / section titles: 500 statement style ---------- */
.mini-title,.profile h3,.tier-head h3,.sec-label{font-weight:500;font-size:20px;line-height:1.2;letter-spacing:-.03em}
.info-row b,.timeline b{font-weight:500;letter-spacing:-.02em}

/* ---------- product card names (h3 role) ---------- */
.m10-name{font-weight:700;font-size:18px;line-height:1.1;letter-spacing:-.01em}

/* ---------- muted descriptions: 400, grey, 1.35 ---------- */
.pd-desc,.info-panel p,.profile p,.oc-bot span,.info-row small,.faq p,.pp,.otp-hint{
  font-weight:400;font-size:14.5px;line-height:1.35;color:var(--t-muted)}
.pd-desc{font-size:15px;margin-bottom:14px}

/* ---------- secondary info: light 300 ---------- */
.stamp-note,.timeline small,.oc-top small,.ci-info small,.empty,.empty-s{font-weight:300}
.pd-price small{font-family:var(--font-ui);font-weight:400;letter-spacing:-.01em} /* struck old price */

/* ---------- notes: short italic grey ---------- */
.tier-line{font-style:italic;font-weight:400;letter-spacing:-.01em}

/* ---------- highlight inside text: 700 + accent ---------- */
.hl,.info-panel p b{font-weight:700;color:var(--accent)}

/* ---------- UI chrome in Plus Jakarta Sans ---------- */
.nav-item span{font-family:var(--font-ui);font-weight:500;font-size:12.5px;letter-spacing:-.01em}
.chip,.seg button{font-family:var(--font-ui);font-weight:500;font-size:14px;letter-spacing:-.01em}
.chip.active{font-weight:700}
.m10-tag{font-family:var(--font-ui);font-weight:700;font-size:10.5px;letter-spacing:.06em;text-transform:uppercase} /* Latin caps: positive tracking ok */
.promo-tag{font-weight:600;letter-spacing:-.01em}
.fld span,.pd-label,.qty-row > span{font-family:var(--font-ui);font-weight:500;font-size:13px;letter-spacing:-.01em;color:var(--t-muted)}
.st{font-family:var(--font-ui);font-weight:600;font-size:12px;letter-spacing:-.01em}
.size{font-family:var(--font-ui);font-weight:500;letter-spacing:-.01em}
.menu-list button{font-weight:400;letter-spacing:-.01em}

/* ---------- numbers: Plus Jakarta Sans, tight, tabular ---------- */
.pd-price,.ci-price,.totals span:last-child,.pay-amount,.stat b,.oc-bot b,.acc,.coupon b,#qVal,.ci .qty b,.badge,.pay-timer b{
  font-family:var(--font-ui);font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.pd-price{font-weight:700;font-size:30px;line-height:1.1}
.pay-amount{font-weight:700}
.ci-price,.oc-bot b,.stat b{font-weight:700}
.totals .grand span:last-child{font-weight:700;font-size:22px}
.oc-top b{font-family:var(--font-ui);font-weight:600;letter-spacing:-.01em}
.coupon span{line-height:1.3}

/* ---------- buttons: Kanit 600, slight negative tracking ---------- */
.btn-pink,.btn-gold,.btn-outline,.btn-outline-pink,.copy-btn{font-weight:600;letter-spacing:-.01em}
.btn-pink{font-size:18px}

/* ---------- small things ---------- */
.toast{font-weight:400;font-size:15px;letter-spacing:-.01em}
.faq summary{font-weight:500;letter-spacing:-.02em}
.stat small{font-family:var(--font-ui);font-weight:400;font-size:12px;letter-spacing:-.02em}
.store-hero p{font-family:var(--font-ui);font-weight:500;letter-spacing:.08em} /* Latin wordmark, like the "Studio" mark */

/* overlays that must match the mockup image keep their own font settings */
.count-fix{font-family:var(--font-th);letter-spacing:0}
