
@font-face { font-family: 'Overpass'; src: url('fonts/Overpass-Var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'OverpassMono'; src: url('fonts/OverpassMono-Var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'ThaiLooped'; src: url('fonts/NotoSansThaiLooped-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'ThaiModernUI'; src: url('fonts/NotoSansThai-Variable.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'ThaiStreet'; src: url('fonts/Prompt-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }

:root {
  --bg-page: #FCF9F4;
  --bg-alt: #F4EEE4;
  --bg-card: #FFFFFF;
  --bg-plum: #1B0C36;
  --bg-plum-mid: #241046;
  --ink: #191224;
  --ink-soft: #4E435C;
  --ink-muted: #786C88;
  --line: #E7DED2;
  --line-strong: #D5C7B6;
  --accent: #C94E28;
  --accent-soft: #FDECE5;
  --gold: #FFD426;
  --gold-ink: #191224;
  --green: #15803D;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --shadow-sm: 0 4px 14px rgba(25, 18, 36, 0.05);
  --shadow-md: 0 16px 40px rgba(25, 18, 36, 0.08);
  --shadow-float: 0 20px 44px rgba(25, 18, 36, 0.16);
  --badge-h: 48px;
  --max-w: 1200px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: 'Overpass', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Apple SD Gothic Neo', 'Malgun Gothic', 'PingFang TC', 'Noto Sans CJK TC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-page);
  color: var(--ink);
  line-height: 1.58;
  overflow-x: clip;
}
html[lang="ko"] body { word-break: keep-all; overflow-wrap: anywhere; }
html[lang="ja"] body, html[lang="zh-Hant"] body { overflow-wrap: anywhere; }
.nw { display: inline-block; }

[lang="th"], .th-looped {
  font-family: 'ThaiLooped', sans-serif;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: nowrap;
}
.th-street { font-family: 'ThaiStreet', sans-serif !important; letter-spacing: 0.01em; }
.th-ui { font-family: 'ThaiModernUI', sans-serif !important; }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
.sr-only { 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-w), calc(100% - 48px)); margin-inline: auto; }

/* STICKY HEADER (Plum Glass) */
.site-hd {
  position: sticky; top: 0; z-index: 70;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: rgba(27, 12, 54, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  color: #FFFFFF;
}
.hd-inner { height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; flex-shrink: 0; }
.brand img { width: 38px; height: 38px; border-radius: 10px; box-shadow: 0 3px 10px rgba(0,0,0,0.22); }
.hd-nav { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 700; color: rgba(255,255,255,0.84); }
.hd-nav a:hover { color: var(--gold); }

.hd-right { display: flex; align-items: center; gap: 10px; }

/* Language Dropdown */
details.lang { position: relative; }
details.lang summary {
  list-style: none; height: 40px; padding: 0 13px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.08);
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 800; color: #FFFFFF; cursor: pointer; user-select: none;
}
details.lang summary::-webkit-details-marker { display: none; }
details.lang summary svg { width: 15px; height: 15px; opacity: 0.8; transition: transform 0.15s ease; }
details.lang[open] summary svg { transform: rotate(180deg); }
details.lang ul {
  list-style: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 144px;
  background: #FFFFFF; color: var(--ink); border: 1.5px solid var(--line-strong);
  border-radius: 16px; padding: 6px; box-shadow: var(--shadow-float); z-index: 80;
}
details.lang li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 700;
}
details.lang li a:hover { background: var(--bg-alt); }
details.lang li a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 800; }

.hd-cta {
  height: 40px; padding: 0 18px; border-radius: 999px; font-size: 13.5px; font-weight: 800;
  background: var(--gold); color: var(--gold-ink);
  display: inline-flex; align-items: center; justify-content: center; white-space: nowrap;
  transition: transform 0.15s ease;
}
.hd-cta:hover { transform: translateY(-1px); }

.menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.08);
  align-items: center; justify-content: center; color: #FFFFFF;
}
.mobile-drawer {
  display: none; background: #16092D; border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 20px 22px;
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.mobile-drawer nav a {
  padding: 12px 10px; border-radius: 12px; font-size: 16px; font-weight: 800; color: rgba(255,255,255,0.92);
}
.mobile-drawer nav a:active, .mobile-drawer nav a:hover { background: rgba(255,255,255,0.08); color: var(--gold); }
.drawer-stores { display: flex; flex-wrap: wrap; gap: 10px; }

/* HERO SECTION — Royal Plum Brand Split Stage */
.hero {
  position: relative; padding: 54px 0 78px; overflow: visible;
  background:
    radial-gradient(680px 520px at 76% 46%, rgba(139, 70, 255, 0.28), transparent 70%),
    radial-gradient(520px 380px at 20% 18%, rgba(255, 212, 38, 0.10), transparent 70%),
    linear-gradient(180deg, #1B0C36 0%, #231044 100%);
  color: #FFFFFF;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center; gap: 44px;
}
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 14px 5px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.10); border: 1.5px solid rgba(255, 255, 255, 0.20);
  font-size: 13px; font-weight: 800; line-height: 1.32; color: #FFFFFF; margin-bottom: 22px;
  max-width: 100%;
}
.eyebrow-pill > span:last-child { min-width: 0; text-wrap: balance; }
.eyebrow-pill .badge-dot {
  flex: 0 0 auto; flex-shrink: 0; white-space: nowrap; word-break: keep-all; overflow-wrap: normal;
  display: inline-block; text-align: center;
  background: var(--gold); color: var(--gold-ink);
  font-family: 'ThaiLooped', sans-serif; font-size: 15px; font-weight: 800;
  line-height: 1; padding: 6.5px 10px; border-radius: 999px;
  text-box: trim-both ex alphabetic;
}
@supports not (text-box-trim: trim-both) {
  .eyebrow-pill .badge-dot { padding: 3px 10px 7.5px; }
}
.hero h1 {
  font-size: clamp(36px, 4.3vw, 58px);
  line-height: 1.08; letter-spacing: -0.028em; font-weight: 900; margin-bottom: 20px;
}
html[lang="ja"] .hero h1, html[lang="ko"] .hero h1, html[lang="zh-Hant"] .hero h1 {
  font-size: clamp(32px, 3.9vw, 52px); line-height: 1.18; letter-spacing: -0.015em;
}
.hero h1 .hl-mark { color: var(--gold); }

.hero-lead {
  font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, 0.85);
  max-width: 548px; margin-bottom: 28px; font-weight: 500;
}

/* Store Badges + Desktop QR Trigger (zero CSS cropping — intact official Apple & Google Play borders) */
.cta-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.store-badge {
  height: var(--badge-h);
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-radius: 0; overflow: visible;
  transition: transform 0.16s ease, filter 0.16s ease;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.24));
  flex-shrink: 0;
}
.store-badge:hover { transform: translateY(-2px); filter: brightness(1.06) drop-shadow(0 10px 22px rgba(0, 0, 0, 0.32)); }
.store-badge img { height: var(--badge-h); width: auto; max-width: none; display: block; }

.qr-inline-wrap { position: relative; }
.qr-trigger {
  height: var(--badge-h); padding: 0 14px; border-radius: 10px;
  background: rgba(255,255,255,0.11); border: 1.5px solid rgba(255,255,255,0.24);
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 800; color: #FFFFFF; transition: 0.16s ease; text-align: left;
}
.qr-trigger:hover { transform: translateY(-2px); border-color: var(--gold); }
.qr-mini-box { width: 30px; height: 30px; padding: 3px; background: #FFFFFF; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.qr-mini-box svg { width: 100%; height: 100%; }
.qr-popover {
  position: absolute; top: calc(100% + 10px); left: 0; width: 224px;
  background: #FFFFFF; color: var(--ink); border: 1.5px solid var(--line-strong);
  border-radius: 18px; padding: 16px; box-shadow: var(--shadow-float);
  opacity: 0; pointer-events: none; transform: translateY(6px);
  transition: 0.18s ease; z-index: 60; text-align: center;
}
.qr-inline-wrap:hover .qr-popover,
.qr-inline-wrap:focus-within .qr-popover,
.qr-inline-wrap.is-open .qr-popover {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.qr-popover .qr-big { width: 152px; height: 152px; margin: 0 auto 10px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #FFFFFF; }
.qr-popover .qr-big svg { width: 100%; height: 100%; }
.qr-popover p { font-size: 12.5px; font-weight: 800; line-height: 1.35; color: var(--ink); }
.qr-popover span { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-muted); margin-top: 3px; }

.hero-perks { display: flex; flex-wrap: wrap; gap: 14px 18px; font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,0.82); }
.hero-perks span { display: inline-flex; align-items: center; gap: 6px; }
.check-ic { color: #4ADE80; font-weight: 900; font-style: normal; }

/* HERO STAGE: 3D iPhone 17 Pro + Orbiting Micro-Widgets */
.hero-stage { position: relative; min-height: 556px; display: flex; align-items: center; justify-content: center; }
.stage-aura {
  position: absolute; width: 430px; height: 430px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 212, 38, 0.28) 0%, rgba(149, 76, 255, 0.22) 52%, transparent 74%);
  filter: blur(20px); z-index: 0; pointer-events: none;
}
.phone-3d {
  position: relative; z-index: 2; width: 306px;
  filter: drop-shadow(0 30px 42px rgba(0, 0, 0, 0.48)) drop-shadow(0 8px 14px rgba(0, 0, 0, 0.28));
}
.phone-3d img { width: 100%; height: auto; }

.orbit-card {
  position: absolute; z-index: 3; background: #FFFFFF; color: var(--ink);
  border: 1.5px solid rgba(25, 18, 36, 0.12); border-radius: 18px;
  box-shadow: var(--shadow-float); padding: 12px 15px;
}
.orbit--syllable { top: 44px; left: -12px; display: flex; align-items: center; gap: 12px; padding: 11px 15px; }
.orb-eq {
  font-family: 'ThaiLooped', sans-serif; font-size: 23px; font-weight: 800;
  display: inline-flex; align-items: center; gap: 6px; color: var(--ink);
  line-height: 1; white-space: nowrap; flex-shrink: 0;
}
.orb-eq > span { display: inline-block; line-height: 1; text-box: trim-both ex alphabetic; }
.orb-eq > i {
  display: inline-block; font-style: normal; font-size: 15px; color: var(--ink-muted);
  font-family: 'Overpass', sans-serif; line-height: 1; text-box: trim-both cap alphabetic;
}
.orb-eq > b {
  display: inline-block; text-align: center;
  background: #FFF3B0; padding: 7px 10px; border-radius: 8px; color: #191224;
  line-height: 1; white-space: nowrap; flex-shrink: 0;
  text-box: trim-both ex alphabetic;
}
@supports not (text-box-trim: trim-both) {
  .orb-eq > span { transform: translateY(-0.14em); }
  .orb-eq > b { padding: 2.5px 10px 7.5px; }
}
.orb-play {
  width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(201, 78, 40, 0.32); transition: transform 0.15s ease;
}
.orb-play:hover { transform: scale(1.07); }
.orb-meta { font-size: 11.5px; font-weight: 700; color: var(--ink-muted); line-height: 1.25; }
.orb-meta strong { display: block; color: var(--ink); font-size: 13px; font-weight: 800; }

.orbit--tone { top: 266px; right: -12px; width: 204px; }
.orb-kicker { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #EA580C; margin-bottom: 4px; display: flex; justify-content: space-between; gap: 6px; }
.orb-tone-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.orb-tone-th { font-family: 'ThaiLooped', sans-serif; font-size: 28px; font-weight: 800; line-height: 1; }
.orb-tone-sub { font-size: 11.5px; font-weight: 700; color: var(--ink-soft); margin-top: 5px; }

.orbit--fonts {
  bottom: 40px; left: -16px; display: flex; align-items: center; gap: 11px;
  background: #140829; color: #FFFFFF; border-color: rgba(255,212,38,0.34);
}
.orb-font-pair { display: inline-flex; align-items: center; gap: 7px; font-size: 19px; flex-shrink: 0; white-space: nowrap; }
.orb-font-pair .f1 {
  font-family: 'ThaiLooped', sans-serif; font-weight: 700; background: rgba(255,255,255,0.12);
  padding: 7px 9px 5px; border-radius: 8px; line-height: 1; display: inline-block; text-align: center;
  white-space: nowrap; flex-shrink: 0; text-box: trim-both ex alphabetic;
}
.orb-font-pair .f2 {
  font-family: 'ThaiStreet', sans-serif; color: var(--gold); background: rgba(255,212,38,0.15);
  padding: 7px 9px 5px; border-radius: 8px; line-height: 1; display: inline-block; text-align: center;
  white-space: nowrap; flex-shrink: 0; text-box: trim-both ex alphabetic;
}
@supports not (text-box-trim: trim-both) {
  .orb-font-pair .f1, .orb-font-pair .f2 { padding: 3px 9px 6px; }
}
.orb-font-lbl { font-size: 11.5px; font-weight: 700; line-height: 1.25; color: rgba(255,255,255,0.84); }
.orb-font-lbl strong { display: block; color: var(--gold); font-size: 12px; font-weight: 800; }

.orbit-bottom-pair { display: contents; }

/* SCOPE STRIP */
.scope-strip-wrap { position: relative; z-index: 10; margin-top: -30px; margin-bottom: 40px; }
.scope-strip {
  background: #FFFFFF; border: 1.5px solid var(--line); border-radius: 22px; padding: 22px 26px;
  box-shadow: var(--shadow-md); display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.scope-item { text-align: center; border-right: 1px solid var(--line); padding-right: 14px; }
.scope-item:last-child { border-right: none; padding-right: 0; }
.scope-num { font-size: 25px; font-weight: 900; letter-spacing: -0.025em; color: var(--ink); line-height: 1.15; }
.scope-num .accent { color: var(--accent); }
.scope-lbl { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-top: 4px; }

/* SHARED SECTIONS */
.sec { padding: 76px 0; }
.sec--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 700px; margin: 0 auto 44px; text-align: center; }
.sec-kicker {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 12px;
}
.sec-head h2 { font-size: clamp(28px, 3.3vw, 42px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 900; margin-bottom: 12px; }
.sec-head p { font-size: 17px; color: var(--ink-soft); line-height: 1.6; }

/* SECTION 1: 3-FONT BANGKOK DECODER */
.decoder-card {
  background: #FFFFFF; border: 1.5px solid var(--line); border-radius: var(--radius-xl);
  padding: 30px; box-shadow: var(--shadow-md);
}
.decoder-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px;
}
.phrase-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.phrase-pill {
  min-height: 40px; padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--bg-page); font-size: 13.5px; font-weight: 800; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 8px; transition: 0.15s ease;
}
.phrase-pill span[lang="th"] { font-size: 16px; color: var(--ink); line-height: 1; display: inline-block; transform: translateY(-0.08em); }
.phrase-pill.is-active { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }
.phrase-pill.is-active span[lang="th"] { color: var(--gold); }

.font-toggle-group {
  display: inline-flex; flex-wrap: wrap; align-items: center; background: var(--bg-alt);
  padding: 4px; border-radius: 12px; border: 1px solid var(--line); gap: 2px;
}
.font-btn { min-height: 36px; padding: 6px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 800; color: var(--ink-soft); transition: 0.15s ease; }
.font-btn.is-active { background: #FFFFFF; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.decoder-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 26px; align-items: stretch; }
.sign-preview {
  background: var(--bg-plum); color: #FFFFFF; border-radius: 22px; padding: 26px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.sign-preview-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.72); }
.sign-font-badge { background: rgba(255,212,38,0.16); color: var(--gold); padding: 4px 10px; border-radius: 99px; font-weight: 800; }
.sign-big-thai { font-size: clamp(34px, 4vw, 52px); font-weight: 700; color: #FFFFFF; margin: 22px 0 18px; line-height: 1.22; white-space: normal; overflow-wrap: break-word; }
.sign-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.sign-meaning { font-size: 17px; font-weight: 800; color: var(--gold); }
.sign-ctx { font-size: 12.5px; color: rgba(255,255,255,0.72); margin-top: 2px; }
.listen-pill-btn {
  min-height: 42px; padding: 9px 18px; border-radius: 999px; background: var(--gold); color: var(--gold-ink);
  font-size: 13.5px; font-weight: 900; display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  transition: transform 0.15s ease;
}
.listen-pill-btn:hover { transform: scale(1.04); }

.seg-breakdown { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.seg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.seg-tile { background: var(--bg-page); border: 1.5px solid var(--line); border-radius: 16px; padding: 13px 12px; }
.seg-tile-th { font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1.15; }
.seg-tile-rom { font-family: 'OverpassMono', monospace; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); margin-top: 4px; }
.tone-chip { display: inline-block; margin-top: 7px; padding: 3px 8px; border-radius: 99px; font-size: 11px; font-weight: 800; }
.t-low { background: #E0ECFF; color: #1D4ED8; }
.t-mid { background: #E9EEF5; color: #334155; }
.t-fall { background: #FFEDD5; color: #C2410C; }
.t-high { background: #DCFCE7; color: #15803D; }
.seg-tile-rule { font-size: 11.5px; color: var(--ink-muted); margin-top: 7px; line-height: 1.38; font-weight: 600; }
.decoder-caption { background: #F4FBF7; border: 1px solid #C6F0D5; border-radius: 14px; padding: 12px 15px; font-size: 13px; font-weight: 700; color: #14532D; }

/* SECTION 2: 4-TAB INTERACTIVE PRACTICE (Desktop Side-Tabs + Mobile In-Stage Pill Bar) */
.practice-grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 30px; align-items: stretch; }
.tab-list { display: flex; flex-direction: column; gap: 10px; }
.p-tab {
  text-align: left; padding: 17px 19px; border-radius: 18px; background: #FFFFFF; border: 1.5px solid var(--line);
  transition: 0.18s ease; display: flex; gap: 14px; align-items: flex-start;
}
.p-tab:hover { border-color: var(--line-strong); }
.p-tab.is-active { border-color: var(--accent); box-shadow: 0 12px 28px rgba(201, 78, 40, 0.10); }
.p-tab-num {
  width: 32px; height: 32px; border-radius: 10px; background: var(--bg-alt); color: var(--ink-soft);
  font-size: 13px; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.p-tab.is-active .p-tab-num { background: var(--accent); color: #FFFFFF; }
.p-tab h3 { font-size: 16.5px; font-weight: 800; color: var(--ink); margin-bottom: 3px; }
.p-tab p { font-size: 14px; color: var(--ink-soft); line-height: 1.48; }

/* Mobile compact step bar attached directly inside stage-panel */
.mob-step-bar { display: none; }
.mob-step-desc { display: none; }

.stage-panel {
  background: #FFFFFF; border: 1.5px solid var(--line); border-radius: var(--radius-xl);
  padding: 28px; box-shadow: var(--shadow-md); display: flex; flex-direction: column; justify-content: center; min-height: 400px;
}
.tab-pane { display: none; }
.tab-pane.is-active { display: block; }

.char-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.char-spec-card { background: var(--bg-page); border: 1.5px solid var(--line); border-radius: 20px; padding: 20px; position: relative; }
.char-class-tag { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; background: #FDECE5; color: var(--accent); margin-bottom: 8px; }
.char-giant { font-family: 'ThaiLooped', sans-serif; font-size: 70px; font-weight: 700; line-height: 1; color: var(--ink); margin: 6px 0 10px; }
.char-phon { font-family: 'OverpassMono', monospace; font-size: 15.5px; font-weight: 800; color: var(--ink); }
.char-anchor { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; font-weight: 600; }
.char-mini-play {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  background: #FFFFFF; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: var(--accent); box-shadow: var(--shadow-sm);
}

.trace-box { display: flex; align-items: center; gap: 24px; }
.trace-canvas {
  width: 204px; height: 204px; flex-shrink: 0; border-radius: 22px;
  background:
    linear-gradient(to right, rgba(25,18,36,0.05) 1px, transparent 1px) 0 0 / 51px 51px,
    linear-gradient(to bottom, rgba(25,18,36,0.05) 1px, transparent 1px) 0 0 / 51px 51px,
    #FFFDF9;
  border: 1.5px solid var(--line-strong); padding: 18px;
}
.trace-svg { width: 100%; height: 100%; overflow: visible; }
.trace-outline { fill: #EFE5DC; }
.trace-stroke { fill: none; stroke: var(--accent); stroke-width: 58; stroke-linecap: round; stroke-linejoin: round; }
.trace-loop-dot { fill: var(--gold); stroke: var(--ink); stroke-width: 14; }
.trace-nib { fill: #FFFFFF; stroke: var(--accent); stroke-width: 18; transition: opacity 0.12s ease; }
.replay-btn { min-height: 40px; padding: 8px 16px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 13.5px; font-weight: 800; transition: transform 0.12s ease, background 0.15s ease; }
.replay-btn:hover { background: #FBD8CA; }
.replay-btn:active { transform: scale(0.97); }
.trace-controls h4 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.trace-controls p { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.glyph-switch-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.glyph-chip { min-height: 38px; padding: 6px 14px; border-radius: 10px; border: 1.5px solid var(--line); font-weight: 800; font-size: 14.5px; background: var(--bg-page); }
.glyph-chip.is-active { border-color: var(--ink); background: var(--ink); color: #FFFFFF; }
.replay-btn { min-height: 40px; padding: 8px 16px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 13.5px; font-weight: 800; }

.builder-demo { text-align: center; }
.builder-slots {
  display: inline-flex; flex-wrap: nowrap; justify-content: center; align-items: center; gap: 10px; padding: 16px 20px;
  background: var(--bg-page); border: 1.5px solid var(--line); border-radius: 20px; margin-bottom: 16px; max-width: 100%;
}
.b-part {
  width: 62px; height: 62px; border-radius: 15px; border: 2px solid var(--anchor, #C94E28);
  background: var(--accent-soft); color: var(--accent); font-family: 'ThaiLooped', sans-serif;
  font-size: 32px; font-weight: 700; line-height: 1; padding-bottom: 0.14em;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; white-space: nowrap;
}
.b-res {
  min-width: 96px; height: 62px; padding: 0 16px; border-radius: 15px;
  background: var(--gold); color: var(--gold-ink); border: 2px solid var(--ink);
  font-family: 'ThaiLooped', sans-serif; font-size: 32px; font-weight: 800; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; white-space: nowrap;
}
.b-res > span[lang="th"] { display: inline-block; line-height: 1; transform: translateY(-0.08em); }
.word-bank { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.wb-btn { min-height: 38px; padding: 7px 14px; border-radius: 99px; border: 1.5px solid var(--line); background: #FFFFFF; font-size: 13.5px; font-weight: 800; }
.wb-btn.is-active { background: var(--ink); color: #FFFFFF; border-color: var(--ink); }

.formula-diagram { display: flex; flex-direction: column; gap: 14px; }
.f-nodes { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; }
.f-node { background: var(--bg-page); border: 1.5px solid var(--line-strong); border-radius: 16px; padding: 13px 10px; text-align: center; }
.f-node-k { font-size: 10.5px; font-weight: 800; text-transform: uppercase; color: var(--ink-muted); letter-spacing: 0.04em; }
.f-node-v { font-size: 15px; font-weight: 900; color: var(--ink); margin-top: 4px; }
.f-plus { font-weight: 900; color: var(--ink-muted); font-size: 18px; text-align: center; }
.f-result { background: var(--bg-plum); color: #FFFFFF; border-radius: 18px; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }

/* SECTION 3: LIVE 5-TONE STUDIO */
.tone-sec {
  background: radial-gradient(640px 400px at 50% 0%, rgba(138, 66, 255, 0.26), transparent 70%), #1B0C36;
  color: #FFFFFF; padding: 80px 0;
}
.tone-sec .sec-kicker { background: rgba(255, 212, 38, 0.15); color: var(--gold); }
.tone-sec .sec-head p { color: rgba(255, 255, 255, 0.80); }
.tone-studio {
  background: rgba(255, 255, 255, 0.06); border: 1.5px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-xl); padding: 28px; max-width: 960px; margin: 0 auto;
}
.tone-screen {
  background: #120726; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 24px 26px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: center; margin-bottom: 16px;
}
.ts-word-row { display: flex; align-items: center; gap: 15px; margin-bottom: 10px; }
.ts-thai { font-family: 'ThaiLooped', sans-serif; font-size: 54px; font-weight: 800; color: var(--gold); line-height: 1; }
.ts-play { width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--gold-ink); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ts-title { font-size: 19px; font-weight: 800; }
.ts-gloss { font-size: 13.5px; color: rgba(255,255,255,0.74); margin-top: 3px; }
.ts-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ts-pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.92); }
.ts-graph-box { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 14px 16px; }
.ts-graph-head { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.52); margin-bottom: 6px; }
.ts-svg { width: 100%; height: 110px; }

.tone-selector { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.tone-btn {
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 16px; padding: 11px 8px; text-align: center; color: #FFFFFF; transition: 0.16s ease;
}
.tone-btn:hover { background: rgba(255,255,255,0.11); }
.tone-btn.is-active { background: #FFFFFF; color: var(--ink); border-color: var(--gold); box-shadow: 0 8px 24px rgba(0,0,0,0.28); }
.tone-btn svg { width: 72px; height: 26px; margin: 0 auto 4px; }
.tone-btn-lbl { font-size: 11.5px; font-weight: 800; opacity: 0.82; }
.tone-btn-th { font-family: 'ThaiLooped', sans-serif; font-size: 20px; font-weight: 800; margin-top: 1px; }

/* SECTION 4: 6 MODULES SPECIMEN BENTO */
.mod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.mod-card {
  background: #FFFFFF; border: 1.5px solid var(--line); border-radius: 22px;
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.mod-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mod-visual { height: 146px; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; border-bottom: 1px solid var(--line); }
.mv--1 { background: linear-gradient(135deg, #FFF7E0 0%, #FDE8C8 100%); }
.mv--2 { background: linear-gradient(135deg, #EAF6EE 0%, #D8EFE0 100%); }
.mv--3 { background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%); }
.mv--4 { background: linear-gradient(135deg, #FCE7F3 0%, #FBCFE8 100%); }
.mv--5 { background: linear-gradient(135deg, #241046 0%, #371A68 100%); color: #FFFFFF; }
.mv--6 { background: linear-gradient(135deg, #FFF0E6 0%, #FFE0CC 100%); }

.mv-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 800; }
.mv-badge { padding: 3px 9px; border-radius: 99px; background: rgba(25,18,36,0.08); color: var(--ink); white-space: nowrap; }
.mv-badge--free { background: #15803D; color: #FFFFFF; }
.mv-badge--new { background: var(--accent); color: #FFFFFF; }
.mv--5 .mv-badge { background: rgba(255,255,255,0.16); color: var(--gold); }

.mv-specimen { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.spec-tile {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 4px 11px 7px; line-height: 1.05;
  background: rgba(255,255,255,0.92); border: 1px solid rgba(25,18,36,0.12);
  border-radius: 11px; font-family: 'ThaiLooped', sans-serif;
  font-size: 23px; font-weight: 800; color: var(--ink); white-space: nowrap; flex-shrink: 0;
}
.spec-pair { display: flex; align-items: center; gap: 7px; width: 100%; }
.spec-half { flex: 1; min-width: 0; background: rgba(255,255,255,0.92); border-radius: 12px; padding: 7px 9px; border: 1px solid rgba(25,18,36,0.1); }
.spec-half strong { font-family: 'ThaiLooped', sans-serif; font-size: 20px; display: block; color: var(--ink); line-height: 1.15; }
.spec-half span { display: block; font-size: 10.5px; font-weight: 800; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spec-arrow { font-weight: 900; font-size: 16px; color: var(--ink-soft); flex-shrink: 0; }

.mod-body { padding: 20px 22px 22px; flex: 1; }
.mod-body h3 { font-size: 18.5px; font-weight: 900; margin-bottom: 7px; letter-spacing: -0.01em; }
.mod-body p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.54; }

/* SECTION 5: TRUST BENTO + FAQ */
.trust-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 60px; }
.tb-card { background: #FFFFFF; border: 1.5px solid var(--line); border-radius: 20px; padding: 24px; }
.tb-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900; margin-bottom: 14px; }
.tb-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.tb-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.54; }

.faq-wrap { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
details.faq-item { background: #FFFFFF; border: 1.5px solid var(--line); border-radius: 18px; padding: 0 22px; }
details.faq-item[open] { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
details.faq-item summary {
  list-style: none; padding: 19px 0; font-size: 16.5px; font-weight: 800;
  display: flex; justify-content: space-between; align-items: center; gap: 14px; cursor: pointer;
}
details.faq-item summary::-webkit-details-marker { display: none; }
.faq-plus { width: 28px; height: 28px; border-radius: 50%; background: var(--bg-alt); display: inline-flex; align-items: center; justify-content: center; font-weight: 900; flex-shrink: 0; transition: transform 0.15s ease; }
details.faq-item[open] .faq-plus { transform: rotate(45deg); background: var(--accent-soft); color: var(--accent); }
.faq-ans { padding: 0 0 20px; font-size: 15px; color: var(--ink-soft); line-height: 1.62; }

/* FINAL CTA BANNER */
.final-cta { padding: 24px 0 84px; }
.final-card {
  background: linear-gradient(135deg, #1B0C36 0%, #2C1458 100%);
  color: #FFFFFF; border-radius: 30px; padding: 46px 50px;
  display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 34px; align-items: center;
  box-shadow: 0 24px 54px rgba(27, 12, 54, 0.24);
}
.final-card h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 900; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 12px; }
.final-card p { font-size: 16.5px; color: rgba(255,255,255,0.84); margin-bottom: 24px; max-width: 540px; }
.final-qr-card { background: #FFFFFF; color: var(--ink); border-radius: 22px; padding: 18px; text-align: center; width: 184px; box-shadow: 0 14px 32px rgba(0,0,0,0.25); }
.final-qr-card .qr-svg-box { width: 130px; height: 130px; margin: 0 auto 10px; }
.final-qr-card .qr-svg-box svg { width: 100%; height: 100%; }
.final-qr-card strong { display: block; font-size: 13px; font-weight: 900; }
.final-qr-card span { font-size: 11.5px; color: var(--ink-muted); font-weight: 700; }

/* DESKTOP FLOATING QR DOCK */
.qr-dock {
  position: fixed; right: 20px; bottom: 20px; z-index: 55;
  background: #FFFFFF; border: 1.5px solid var(--line-strong); border-radius: 18px;
  padding: 10px 12px; box-shadow: var(--shadow-float);
  display: flex; align-items: center; gap: 10px; max-width: 220px;
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.qr-dock.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.qr-dock-code { width: 50px; height: 50px; flex-shrink: 0; }
.qr-dock-code svg { width: 100%; height: 100%; }
.qr-dock-txt { font-size: 11.5px; line-height: 1.25; color: var(--ink-soft); font-weight: 700; }
.qr-dock-txt strong { display: block; font-size: 12.5px; color: var(--ink); font-weight: 900; margin-bottom: 2px; }

/* MOBILE STICKY STORE BAR */
.mob-sticky-bar { display: none; }

/* FOOTER */
.site-ft { border-top: 1px solid var(--line); padding: 28px 0 42px; font-size: 13.5px; color: var(--ink-muted); font-weight: 600; }
.ft-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.ft-links { display: flex; flex-wrap: wrap; gap: 20px; }
.ft-links a:hover { color: var(--ink); }
.ft-badges { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ft-badges img { height: 36px; width: auto; display: block; object-fit: contain; }

/* PRIVACY PAGE */
.privacy-main { padding: 56px 0 84px; }
.privacy-card {
  max-width: 820px; margin: 0 auto; background: #FFFFFF; border: 1.5px solid var(--line);
  border-radius: var(--radius-xl); padding: 44px 48px; box-shadow: var(--shadow-sm);
}
.privacy-card h1 { font-size: clamp(21px, 5.4vw, 40px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 14px; overflow-wrap: break-word; }
.privacy-lead { font-size: 17px; color: var(--ink-soft); line-height: 1.62; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.privacy-sec { margin-bottom: 28px; }
.privacy-sec h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; color: var(--ink); }
.privacy-sec p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.66; margin-bottom: 12px; }
.privacy-sec a, .privacy-ext a { color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.privacy-ext { padding-top: 18px; border-top: 1px solid var(--line); font-size: 15.5px; }

/* =========================================================
   RESPONSIVE BREAKPOINTS (Compact Desktop, Tablet, Mobile)
   ========================================================= */
@media (max-width: 1279.98px) {
  .hd-nav { gap: 16px; font-size: 13.5px; }
  .hd-cta { padding: 0 14px; font-size: 13px; }
  .hero-grid { gap: 28px; }
  .phone-3d { width: 282px; }
  .orbit--syllable { left: 4px; top: 36px; }
  .orbit--tone { right: 4px; top: 272px; width: 190px; }
  .orbit--fonts { left: 4px; bottom: 34px; }
}

@media (max-width: 1023.98px) {
  .wrap { width: min(760px, calc(100% - 36px)); }
  .hd-nav, .hd-cta, .qr-inline-wrap, .qr-dock, .final-qr-card { display: none; }
  .menu-btn { display: inline-flex; }

  .hero { padding: 38px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-lead { max-width: 100%; }
  .hero-stage { max-width: 500px; width: 100%; margin-inline: auto; min-height: 520px; }
  .orbit--syllable { left: 0; }
  .orbit--tone { right: 0; }
  .orbit--fonts { left: 6px; }

  .scope-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 20px; }
  .scope-item { border-right: none; padding-right: 0; }
  .scope-item:nth-child(4), .scope-item:nth-child(5) { border-top: 1px solid var(--line); padding-top: 14px; }

  .decoder-stage { grid-template-columns: 1fr; }
  .practice-grid { grid-template-columns: 1fr; }
  .tab-list { display: none; }
  .mob-step-bar {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
    background: var(--bg-alt); padding: 5px; border-radius: 14px; margin-bottom: 14px;
  }
  .mob-step-btn {
    min-height: 40px; padding: 6px 6px; border-radius: 10px; font-size: 12px; font-weight: 800;
    color: var(--ink-soft); text-align: center; line-height: 1.2;
  }
  .mob-step-btn.is-active { background: #FFFFFF; color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
  .mob-step-desc {
    display: block; background: var(--bg-page); border: 1px solid var(--line);
    border-radius: 14px; padding: 12px 14px; margin-bottom: 18px;
  }
  .mob-step-desc h3 { font-size: 16px; font-weight: 800; margin-bottom: 3px; }
  .mob-step-desc p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
  .stage-panel { min-height: auto; padding: 20px; }

  .tone-screen { grid-template-columns: 1fr; }
  .mod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .trust-bento { grid-template-columns: 1fr; gap: 14px; }
  .final-card { grid-template-columns: 1fr; padding: 36px 32px; }
  .privacy-card { padding: 32px 28px; }
}

@media (max-width: 767.98px) {
  :root { --badge-h: 44px; }
  .wrap { width: calc(100% - 28px); }
  .hd-inner { height: 60px; }
  .brand { font-size: 18px; gap: 8px; }
  .brand img { width: 34px; height: 34px; }

  .hero { padding: 26px 0 54px; }
  .eyebrow-pill { font-size: 12px; margin-bottom: 16px; padding: 5px 12px 5px 6px; max-width: 100%; }
  .eyebrow-pill .badge-dot { font-size: 14px; padding: 5px 9px; }
  @supports not (text-box-trim: trim-both) {
    .eyebrow-pill .badge-dot { padding: 2.5px 9px 6.5px; }
  }
  .hero-lead { font-size: 16px; margin-bottom: 22px; }
  .cta-cluster { gap: 10px; }

  /* Zero-overlap Stacked Mobile 3D Stage */
  .hero-stage {
    min-height: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 4px;
  }
  .stage-aura { width: min(340px, 88vw); height: min(340px, 88vw); }
  .orbit-card { position: static; box-shadow: 0 12px 28px rgba(0,0,0,0.24); }
  .orbit--syllable { width: 100%; max-width: 360px; justify-content: flex-start; }
  .phone-3d { width: min(272px, 76vw); margin: 2px 0; }
  .orbit-bottom-pair {
    display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; max-width: 360px;
  }
  .orbit--tone { width: 100%; padding: 11px 14px; min-width: 0; }
  .orb-tone-row svg { width: 72px; height: 26px; flex-shrink: 0; }
  .orb-tone-th { font-size: 25px; }
  .orbit--fonts { width: 100%; padding: 11px 14px; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
  .orb-font-pair { font-size: 16px; flex-wrap: nowrap; }
  .builder-slots { gap: 7px; padding: 12px 12px; }
  .b-part { width: 48px; height: 48px; font-size: 26px; border-radius: 12px; }
  .b-res { min-width: 78px; height: 48px; padding: 0 12px; font-size: 26px; border-radius: 12px; gap: 6px; }

  .scope-strip-wrap { margin-top: -22px; margin-bottom: 28px; }
  .scope-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; gap: 12px; }
  .scope-item:nth-child(3) { border-top: 1px solid var(--line); padding-top: 12px; }
  .scope-item:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 12px; }
  .scope-num { font-size: 21px; }

  .sec, .tone-sec { padding: 52px 0; }
  .sec-head { margin-bottom: 28px; }
  .sec-head p { font-size: 15.5px; }

  .decoder-card { padding: 18px 15px; border-radius: 22px; }
  .phrase-pills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; gap: 8px; }
  .phrase-pill { justify-content: center; padding: 8px 8px; font-size: 12.5px; text-align: center; flex-wrap: wrap; gap: 4px 6px; }
  .font-toggle-group { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .font-btn { text-align: center; padding: 7px 4px; font-size: 11.5px; line-height: 1.2; }
  .sign-preview { padding: 20px 18px; }
  .seg-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .mob-step-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .char-duo { grid-template-columns: 1fr; gap: 12px; }
  .char-giant { font-size: 56px; }
  .trace-box { flex-direction: column; text-align: center; gap: 16px; }
  .trace-canvas { width: 184px; height: 184px; }
  .f-nodes { grid-template-columns: 1fr; gap: 6px; }
  .f-plus { transform: none; line-height: 1; }

  /* 3 + 2 Tone Buttons on Mobile (matches ThaiFun app UI) */
  .tone-studio { padding: 18px 15px; border-radius: 22px; }
  .tone-screen { padding: 18px 15px; }
  .ts-thai { font-size: 44px; }
  .tone-selector { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .tone-btn:nth-child(1), .tone-btn:nth-child(2), .tone-btn:nth-child(3) { grid-column: span 2; }
  .tone-btn:nth-child(4), .tone-btn:nth-child(5) { grid-column: span 3; }

  .mod-grid { grid-template-columns: 1fr; gap: 14px; }
  details.faq-item { padding: 0 16px; }
  details.faq-item summary { font-size: 15.5px; padding: 16px 0; }

  .final-cta { padding: 16px 0 96px; }
  .final-card { padding: 28px 20px; border-radius: 24px; }
  .privacy-main { padding: 32px 0 64px; }
  .privacy-card { padding: 24px 18px; border-radius: 22px; }

  .mob-sticky-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
    background: rgba(23, 10, 46, 0.95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255,255,255,0.14);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    transform: translateY(110%); transition: transform 0.22s ease;
  }
  .mob-sticky-bar.is-visible { transform: translateY(0); }
  .mob-sticky-lbl { color: #FFFFFF; font-size: 12px; font-weight: 800; line-height: 1.2; min-width: 0; }
  .mob-sticky-lbl strong { display: block; color: var(--gold); font-size: 13.5px; }
  .mob-sticky-btns { display: flex; gap: 6px; flex-shrink: 0; }
  .mob-mini-store {
    height: 36px; padding: 0 11px; border-radius: 99px; font-size: 12px; font-weight: 800;
    background: var(--gold); color: var(--gold-ink); display: inline-flex; align-items: center; white-space: nowrap;
  }
  .mob-mini-store--sec { background: rgba(255,255,255,0.14); color: #FFFFFF; }
}

@media (max-width: 369.98px) {
  :root { --badge-h: 40px; }
  .phrase-pills, .seg-cards { grid-template-columns: 1fr; }
  .orbit--fonts { flex-wrap: wrap; }
  .font-toggle-group { grid-template-columns: 1fr; }
  .cta-cluster { gap: 8px; }
}
