/*
 * GSG customer storefront (index / product / compare)
 * Mobile-first. Colors come from /assets/brand/design-tokens.css.
 * Fonts are self-hosted (no external CDN on customer pages).
 */

@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-thai-thai-400-normal.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-thai-thai-500-normal.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-thai-thai-600-normal.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-thai-thai-700-normal.woff2') format('woff2'); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-thai-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-thai-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-thai-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans Thai'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/ibm-plex-sans-thai-latin-700-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Michroma'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/michroma-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  --bg: var(--gsg-color-obsidian-900, #070a0e);
  --bg-deep: var(--gsg-color-obsidian-950, #040608);
  --surface: var(--gsg-color-obsidian-800, #0f141c);
  --elevated: var(--gsg-color-obsidian-700, #161f2c);
  --cyan: var(--gsg-color-cyan-400, #00f2fe);
  --emerald: var(--gsg-color-emerald-400, #00ff87);
  --amber: var(--gsg-color-amber-400, #ffb800);
  --text: var(--gsg-color-titanium-100, #f0f6fc);
  --text-2: var(--gsg-color-titanium-200, #c9d1d9);
  --muted: var(--gsg-color-titanium-300, #8b949e);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.22);
  --font-th: 'IBM Plex Sans Thai', system-ui, -apple-system, 'Sukhumvit Set', sans-serif;
  --font-display: 'Michroma', 'IBM Plex Sans Thai', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --gutter: 24px;
  --wrap: 1120px;
  --header-h: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-th);
  font-size: 15px;
  line-height: 1.6;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--cyan); text-transform: uppercase; }
.eyebrow.muted { color: var(--muted); }
.section { padding: 48px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { margin-top: 8px; font-size: 26px; line-height: 1.25; font-weight: 700; }
.section-sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.01em; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.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; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; text-align: center; line-height: 1.2;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { border-color: rgba(255, 255, 255, 0.4); }
.btn-primary { background: var(--emerald); border-color: var(--emerald); color: #04120a; font-weight: 700; }
.btn-primary:hover { box-shadow: 0 0 24px rgba(0, 255, 135, 0.3); border-color: var(--emerald); }
.btn-accent { border-color: rgba(0, 242, 254, 0.45); background: rgba(0, 242, 254, 0.1); color: var(--cyan); font-weight: 700; }
.btn-lg { min-height: 52px; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 10px; }
.btn-row > .grow { flex: 1; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; color: var(--cyan); font-size: 14px; font-weight: 600; }
.ico { width: 24px; height: 24px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 18px; height: 18px; stroke-width: 1.8; }

/* ---------- Header + drawer ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; height: var(--header-h);
  background: rgba(7, 10, 14, 0.82); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 12px; }
.site-header.has-back .wrap { padding-left: 12px; }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 15px; letter-spacing: 0.08em; }
.brand-mark img { width: 28px; height: 28px; border-radius: 6px; }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; border-radius: 12px; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.header-chat { min-height: 44px; padding: 0 16px; border-color: rgba(0, 242, 254, 0.35); color: var(--cyan); font-size: 13px; }
.desktop-nav { display: none; gap: 28px; font-size: 14px; color: var(--text-2); }
.desktop-nav a:hover { color: var(--text); }

.drawer-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.25s; }
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(340px, 88vw);
  background: var(--surface); border-left: 1px solid var(--line); padding: 12px 20px 32px;
  transform: translateX(100%); transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto; visibility: hidden;
}
.mobile-drawer.open { transform: translateX(0); visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.drawer-nav { list-style: none; margin: 8px 0 0; padding: 0; }
.drawer-nav a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 16px; }
.drawer-sub { margin-top: 20px; font-size: 12px; color: var(--muted); }
.drawer-sub a { display: flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--text-2); }

/* ---------- Status / price ---------- */
.status { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 600; background: rgba(255, 69, 58, 0.14); color: #ff6b61; white-space: nowrap; }
.status.in { background: rgba(0, 255, 135, 0.12); color: var(--emerald); }
.status.lg { height: 26px; padding: 0 12px; border-radius: 13px; font-size: 13px; }
.price { font-weight: 700; }
.preorder-note { font-size: 12px; color: var(--amber); }
.img-stage { position: relative; background: radial-gradient(ellipse 60% 60% at 50% 58%, rgba(0, 242, 254, 0.16), rgba(0, 242, 254, 0) 70%); }
.img-stage img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Home: hero ---------- */
.hero {
  padding: 32px 0 0; overflow: hidden;
  /* AI atmosphere background (brand/backgrounds); the top is darkened so the headline stays readable */
  background:
    linear-gradient(180deg, rgba(7, 10, 14, 0.88) 0%, rgba(7, 10, 14, 0.55) 38%, rgba(7, 10, 14, 0) 62%, rgba(7, 10, 14, 0.35) 100%),
    url('/assets/site/img/bg-hero-tall.webp') center bottom / cover no-repeat,
    var(--bg);
}
.hero-grid { display: grid; gap: 28px; }
.hero h1 { margin-top: 16px; font-family: var(--font-display); font-weight: 400; font-size: 29px; line-height: 1.18; letter-spacing: 0.01em; }
.hero h1 .accent { color: var(--cyan); }
.hero-lead { margin-top: 18px; max-width: 34em; color: var(--text-2); }
.hero .btn-row { margin-top: 22px; flex-wrap: wrap; }
.hero-stage { position: relative; min-height: 340px; }
.pdp-watermark {
  /* Big faint filled word behind the product, same treatment as the previous site's "ULTRA" */
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 0;
  width: max-content; text-align: center; pointer-events: none; user-select: none;
  font-family: var(--font-th); font-weight: 700; text-transform: uppercase;
  letter-spacing: -0.03em; line-height: 0.95; color: rgba(255, 255, 255, 0.05);
}
.hero-stage .watermark {
  /* model name of the hero product, outlined in the display font */
  position: absolute; left: 0; right: 0; top: 8px; text-align: center; overflow: hidden;
  font-family: var(--font-display); font-size: 58px; line-height: 1; color: transparent;
  -webkit-text-stroke: 1px rgba(0, 242, 254, 0.22); user-select: none; pointer-events: none;
}
.hero-stage .img-stage { position: absolute; inset: 24px 0 0; background: none; z-index: 1; }
.hero-stage img { animation: fadeUp 0.8s ease-out both; filter: drop-shadow(0 18px 40px rgba(0, 242, 254, 0.18)); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.trust { padding: 24px 0; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.trust-card { padding: 14px; min-height: 128px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); display: flex; flex-direction: column; gap: 6px; }
.trust-card .ico { color: var(--emerald); }
.trust-card b { font-size: 13px; font-weight: 600; line-height: 1.35; }
.trust-card span { font-size: 12px; color: var(--muted); line-height: 1.35; }

/* ---------- Home: products ---------- */
.filter-bar { margin-top: 20px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-tab { min-height: 44px; padding: 0 18px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, 0.18); background: none; font-size: 14px; cursor: pointer; white-space: nowrap; }
.filter-tab[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }
.featured { margin-top: 20px; border: 1px solid var(--line-strong); border-color: rgba(0, 242, 254, 0.35); border-radius: 20px; background: var(--surface); overflow: hidden; }
.stage-bg { background: url('/assets/site/img/bg-stage.webp') center 62% / cover no-repeat, var(--bg); }
.featured .img-stage { height: 220px; }
.featured .img-stage img { padding: 16px 40px; }
.featured .badge { position: absolute; left: 12px; top: 12px; height: 28px; padding: 0 12px; display: flex; align-items: center; border-radius: 14px; background: rgba(0, 242, 254, 0.14); color: var(--cyan); font-size: 12px; font-weight: 600; }
.featured-body { padding: 18px 20px 20px; }
.featured-name { margin-top: 4px; font-family: var(--font-display); font-size: 17px; line-height: 1.3; }
.featured-spec { margin-top: 6px; font-size: 13px; color: var(--text-2); }
.featured-meta { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.featured-meta .price { font-size: 22px; }
.featured .btn-row { margin-top: 16px; }
.price-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }

.product-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.product-card[hidden], .featured[hidden] { display: none; }
.product-card .img-stage { height: 140px; }
.product-card .img-stage img { padding: 12px; }
.product-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.product-card .brand { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }
.product-card .name { margin-top: 2px; font-size: 15px; font-weight: 600; line-height: 1.3; }
.product-card .spec { margin-top: 4px; font-size: 12px; color: var(--muted); line-height: 1.45; flex: 1; }
.product-card .price { margin-top: 8px; font-size: 17px; }
.product-card .status { margin-top: 6px; align-self: flex-start; }
.product-card .preorder-note { min-height: 18px; margin-top: 2px; }
.product-card .btn-row { margin-top: 8px; gap: 6px; }
.product-card .btn-row .btn { min-height: 40px; padding: 0 10px; font-size: 13px; }
.product-card .btn-row .btn-line { flex: 0 0 52px; padding: 0; font-size: 12px; color: var(--text-2); }

/* ---------- Home: detail close-ups ---------- */
.detail-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.detail-card { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); overflow: hidden; }
.detail-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.detail-card div { padding: 10px 14px 14px; }
.detail-card b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.detail-card span { display: block; margin-top: 2px; font-size: 12px; color: var(--cyan); line-height: 1.4; }

/* ---------- Steps / S/N check ---------- */
.steps { margin-top: 24px; display: flex; flex-direction: column; gap: 20px; }
.step { display: flex; gap: 16px; }
.step-n { flex: 0 0 40px; height: 40px; border-radius: 20px; border: 1px solid rgba(0, 242, 254, 0.45); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 13px; color: var(--cyan); }
.step b { display: block; font-size: 16px; font-weight: 600; }
.step span { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.card-panel { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.card-panel.ok { border-color: rgba(0, 255, 135, 0.35); }
.card-panel.warn { border-color: rgba(255, 184, 0, 0.45); }
.card-panel.cyan { border-color: rgba(0, 242, 254, 0.35); }
.panel-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; line-height: 1.35; }
.panel-title .ico { color: var(--emerald); }
.sn-check { margin-top: 32px; }
.field-label { display: block; margin-top: 14px; font-size: 12px; color: var(--text-2); }
.field {
  margin-top: 4px; width: 100%; height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--text);
  font-family: var(--font-mono); font-size: 16px; text-transform: uppercase;
}
.field::placeholder { color: var(--muted); text-transform: none; }
.field:focus { outline: none; border-color: var(--cyan); }
.sn-check .btn { margin-top: 12px; }

/* ---------- Lists / FAQ ---------- */
.row-list { margin-top: 18px; }
.row-item { min-height: 72px; display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding: 10px 0; }
.row-item:last-child { border-bottom: 1px solid var(--line); }
.row-item .ico { color: var(--cyan); }
.row-item .grow { flex: 1; }
.row-item b { display: block; font-size: 15px; font-weight: 600; }
.row-item span { display: block; font-size: 13px; color: var(--muted); }
.row-item .chev { color: var(--muted); }
.faq { margin-top: 16px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-size: 15px; font-weight: 600; line-height: 1.4; padding: 12px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--muted); transition: transform 0.2s; }
.faq details[open] summary .ico { transform: rotate(180deg); color: var(--cyan); }
.faq .answer { padding: 0 0 16px; font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* ---------- Chat box ---------- */
.chat-box { padding: 24px; border: 1px solid rgba(0, 242, 254, 0.35); border-radius: 24px; background: var(--surface); }
.chat-box h2 { font-size: 20px; line-height: 1.3; }
.chat-box p { margin-top: 6px; font-size: 14px; color: var(--text-2); }
.chat-box-actions { margin-top: 18px; display: flex; gap: 12px; align-items: center; }
.chat-box-actions .stack { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.qr-tile { flex: 0 0 96px; text-align: center; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.qr-tile img { width: 96px; height: 96px; border-radius: 10px; background: #fff; padding: 6px; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 32px; background: var(--bg-deep); border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); line-height: 1.6; }
.site-footer .footer-links { margin-top: 20px; display: flex; flex-direction: column; gap: 2px; }
.site-footer .footer-links a { min-height: 44px; display: flex; align-items: center; font-size: 14px; color: var(--text-2); }
.site-footer p { margin-top: 14px; }

/* ---------- Product page ---------- */
.breadcrumb { min-height: 40px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.breadcrumb .current { color: var(--text-2); }
.pdp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.pdp-grid > * { min-width: 0; }
.gallery-main { height: 390px; border-radius: 20px; overflow: hidden; }
.gallery-main img { padding: 20px 24px; transition: opacity 0.2s; }
.thumbs { display: flex; gap: 10px; padding: 12px 0 0; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumb { flex: 0 0 56px; height: 56px; padding: 2px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.12); background: var(--surface); cursor: pointer; }
.thumb[aria-current="true"] { border: 1.5px solid var(--cyan); }
.thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.pdp-title { position: relative; padding-top: 16px; overflow: hidden; }
.pdp-title > :not(.pdp-watermark) { position: relative; z-index: 1; }
.pdp-watermark { font-size: clamp(64px, 20vw, 120px); top: 58%; }
.pdp-title h1 { margin-top: 8px; font-family: var(--font-display); font-weight: 400; font-size: 20px; line-height: 1.3; }
.pdp-title .lead { margin-top: 8px; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.pdp-price { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pdp-price .price { font-size: 30px; }
.pdp-sku { margin-top: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.pdp-cta { margin-top: 18px; }
.pdp-cta .hint { font-size: 13px; color: var(--muted); }
.pdp-cta .btn-row { margin-top: 10px; }
.pdp-cta .btn-row .btn-line { flex: 0 0 112px; }
.pdp-cta .foot { margin-top: 10px; font-size: 12px; color: var(--muted); }
.pills { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 36px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 18px; background: var(--surface); font-size: 13px; }
.pill .ico { width: 16px; height: 16px; color: var(--emerald); stroke-width: 1.8; }
.pill.warn .ico { color: var(--amber); }
.feature-list { margin-top: 14px; }
.feature { min-height: 68px; display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--line); padding: 10px 0; }
.feature .ico { width: 26px; height: 26px; color: var(--cyan); }
.feature b { display: block; font-size: 15px; font-weight: 600; }
.feature span { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; }
.notice { margin-top: 24px; padding: 16px; border: 1px solid rgba(255, 184, 0, 0.45); border-radius: 16px; background: rgba(255, 184, 0, 0.06); }
.notice b { font-size: 15px; color: var(--amber); }
.notice p { margin-top: 4px; font-size: 13px; color: var(--text-2); line-height: 1.55; }
.closeups { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.closeup { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.closeup img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.closeup figcaption { display: flex; gap: 10px; align-items: center; padding: 10px 12px; font-size: 13px; line-height: 1.35; }
.closeup .n { flex: 0 0 24px; height: 24px; border-radius: 12px; background: var(--cyan); color: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.warranty-block { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid rgba(0, 255, 135, 0.35); }
.warranty-block.mobapad { border-color: rgba(255, 184, 0, 0.45); }
.warranty-block .panel-title .ico { width: 24px; height: 24px; }
.warranty-block.mobapad .panel-title .ico { color: var(--amber); }
.warranty-block .sub { display: block; font-size: 13px; font-weight: 400; color: var(--text-2); }
.timeline { margin-top: 16px; display: flex; gap: 4px; height: 10px; }
.timeline div { border-radius: 5px; }
.timeline-labels { margin-top: 8px; display: flex; gap: 4px; font-size: 12px; color: var(--text-2); line-height: 1.4; }
.w-points { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: var(--text-2); line-height: 1.5; }
.w-points b { color: var(--emerald); }
.warranty-block.mobapad .w-points b { color: var(--amber); }
.w-points b.cyan { color: var(--cyan); }
.w-points b.dim { color: var(--muted); }
.warranty-block .btn { margin-top: 16px; border-color: rgba(0, 255, 135, 0.45); color: var(--emerald); font-size: 14px; }
.warranty-block.mobapad .btn { border-color: rgba(255, 184, 0, 0.45); color: var(--amber); }
.warranty-block .fine { margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.related-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.related-card { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; }
.related-card .img-stage { height: 110px; }
.related-card .img-stage img { padding: 10px; }
.related-card div.body { padding: 10px 14px 14px; }
.related-card .brand { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); }
.related-card b { display: block; font-size: 15px; font-weight: 600; }
.related-card span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.buy-bar {
  position: sticky; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(15, 20, 28, 0.94); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 242, 254, 0.35);
}
.buy-bar .inner { max-width: var(--wrap); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.buy-bar .price { font-size: 20px; line-height: 1.2; }
.buy-bar .state { font-size: 12px; color: var(--text-2); }
.buy-bar .state.in { color: var(--emerald); }
.buy-bar .btn-row { gap: 8px; }
.buy-bar .btn { min-height: 48px; padding: 0 18px; font-size: 14px; }
.buy-bar .btn-line { padding: 0 14px; }

/* ---------- Compare ---------- */
.compare-scroll { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; -webkit-overflow-scrolling: touch; }
.compare-table { border-collapse: separate; border-spacing: 0; min-width: 760px; width: 100%; font-size: 13px; }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.45; }
.compare-table thead th { background: var(--elevated); font-size: 13px; vertical-align: bottom; }
.compare-table thead th a { display: block; }
.compare-table thead th .brand { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); font-weight: 400; }
.compare-table thead th img { width: 72px; height: 56px; object-fit: contain; margin-bottom: 6px; }
.compare-table th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--surface); color: var(--text-2); font-weight: 600; min-width: 112px; max-width: 128px; box-shadow: 1px 0 0 var(--line); }
.compare-table thead th:first-child { position: sticky; left: 0; z-index: 2; }
.compare-table td { background: var(--bg); min-width: 128px; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-table .yes { color: var(--emerald); }
.compare-table .dash { color: var(--muted); }
.compare-table [hidden] { display: none; }
.compare-hint { margin-top: 8px; font-size: 13px; color: var(--muted); }
.compare-note { margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.6; }

/* ---------- LINE QR modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.7); }
.modal.active { display: flex; }
.modal-card { width: 100%; max-width: 360px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.modal-card .head { display: flex; align-items: center; justify-content: space-between; text-align: left; }
.modal-card h3 { font-size: 17px; }
.modal-card .qr { display: inline-block; margin: 14px 0; padding: 10px; border-radius: 14px; background: #fff; }
.modal-card .qr img { width: 180px; height: 180px; }
.modal-card p { font-size: 13px; color: var(--text-2); }

/* ---------- Wider screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .hero h1 { font-size: 44px; }
  .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .closeups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .section-title { font-size: 32px; }
}
@media (min-width: 960px) {
  .desktop-nav { display: flex; }
  .menu-toggle { display: none; }
  .hero {
    padding-top: 64px; padding-bottom: 32px;
    background:
      linear-gradient(90deg, rgba(7, 10, 14, 0.9) 0%, rgba(7, 10, 14, 0.55) 45%, rgba(7, 10, 14, 0) 70%),
      url('/assets/site/img/bg-hero-wide.webp') center / cover no-repeat,
      var(--bg);
  }
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; }
  .hero h1 { font-size: 52px; }
  .hero-stage { min-height: 460px; }
  .hero-stage .watermark { font-size: 96px; }
  .featured { display: grid; grid-template-columns: 1fr 1fr; }
  .featured .img-stage { height: 100%; min-height: 320px; }
  .featured-body { display: flex; flex-direction: column; justify-content: center; padding: 32px; }
  .split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .split .sn-check { margin-top: 0; }
  .pdp-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
  .pdp-gallery { position: sticky; top: calc(var(--header-h) + 16px); }
  .gallery-main { height: 480px; }
  .buy-bar { display: none; }
}

.featured .btn-row .btn-line { flex: 0 0 96px; padding: 0 12px; }
.featured .btn-row .btn { padding: 0 14px; font-size: 14px; }

/* ---------- Brand lockup: GripSpaceGaming x NYXI (one line) ---------- */
.brand-lockup { gap: 8px; letter-spacing: 0.03em; font-size: 11.5px; min-width: 0; white-space: nowrap; }
.brand-lockup .bl-name { white-space: nowrap; }
.brand-lockup .bl-x { font-family: var(--font-body, inherit); font-size: 18px; font-weight: 700; line-height: 1; letter-spacing: 0; color: var(--emerald); }
.brand-lockup img.bl-nyxi { width: auto; height: 17px; border-radius: 0; }
.site-footer .brand-lockup img { width: 36px; height: 36px; }
.site-footer .brand-lockup img.bl-nyxi { width: auto; height: 22px; }
@media (max-width: 440px) { .header-chat { display: none; } }

/* tall official images (poster, spec sheet) inside the close-up grid */
.closeup.tall img { height: auto; aspect-ratio: 3 / 4; object-fit: contain; background: #ffffff; }
.closeup.portrait { grid-column: 1 / -1; max-width: 460px; justify-self: center; width: 100%; }
.closeup.portrait img { aspect-ratio: auto; height: auto; object-fit: contain; background: #ffffff; }

/* official studio photos on white (M12 HD / M12S) */
.img-stage.photo { background: #ffffff; }
.img-stage.photo img { mix-blend-mode: multiply; }
.thumb:has(img[src*="m12hd"]), .thumb:has(img[src*="m12s"]) { background: #ffffff; }

/* ---------- Model names: color emphasis ---------- */
.name-ultra, .name-ultra a { background: linear-gradient(100deg, #7df9ff 0%, #00c3fe 45%, #5b8cff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 10px rgba(0, 195, 254, 0.35)); }
.name-flagship, .name-flagship a { background: linear-gradient(100deg, #d8b4ff 0%, #a56bff 50%, #ff7ad9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 10px rgba(165, 107, 255, 0.35)); }
.pdp-title h1.name-ultra, .pdp-title h1.name-flagship { width: fit-content; }

/* ---------- Trust cards with several lines ---------- */
.trust-card span + span { margin-top: -2px; }

/* ---------- Wide detail cards (official 2.5:1 banners) ---------- */
.detail-grid.wide { grid-template-columns: minmax(0, 1fr); }
.detail-grid.wide .detail-card img { aspect-ratio: 2.52 / 1; object-fit: contain; background: #05060a; }
.closeups.wide-set { grid-template-columns: minmax(0, 1fr); }
.closeup.wide { grid-column: 1 / -1; }
.closeup.wide img { aspect-ratio: 2.52 / 1; object-fit: contain; background: #05060a; }
.detail-model { margin-top: 6px; font-size: 13px; color: var(--cyan); }

/* ---------- Chat box: follow the Facebook page ---------- */
.chat-follow { display: block; margin-top: 16px; padding: 14px 16px; border: 1px solid rgba(0, 242, 254, 0.35); border-radius: 14px; width: 100%; text-align: center; line-height: 1.5; color: var(--text-2); }
.chat-follow .cf-lead { display: block; font-size: clamp(17px, 5.4cqi, 24px); }
/* the link line is scaled so the text spans the full width of the box */
.chat-follow { container-type: inline-size; }
.chat-follow a { display: block; margin-top: 4px; color: var(--cyan); font-weight: 700; font-size: clamp(15px, 7cqi, 48px); line-height: 1.3; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }
.support-links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; }
.support-links a { color: var(--cyan); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 720px) {
  .closeups.wide-set { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-lockup { font-size: 15px; }
  .brand-lockup img.bl-nyxi { height: 22px; }
}

/* ---------- Flagship emphasis: glowing frames (Ultra = cyan, M12 Pro = violet) ---------- */
.featured { border-color: rgba(0, 195, 254, 0.9); box-shadow: 0 0 0 1px rgba(0, 195, 254, 0.35), 0 0 30px rgba(0, 195, 254, 0.28), inset 0 0 40px rgba(0, 195, 254, 0.06); }
.product-card.is-flagship { border-color: rgba(165, 107, 255, 0.9); box-shadow: 0 0 0 1px rgba(165, 107, 255, 0.35), 0 0 26px rgba(165, 107, 255, 0.3), inset 0 0 34px rgba(165, 107, 255, 0.07); }
.product-card .badge-flagship { position: absolute; left: 8px; top: 8px; z-index: 2; height: 24px; padding: 0 10px; display: flex; align-items: center; border-radius: 12px; background: rgba(165, 107, 255, 0.2); border: 1px solid rgba(165, 107, 255, 0.55); color: #d8b4ff; font-size: 11px; font-weight: 600; }
.related-card.accent-ultra { border-color: rgba(0, 195, 254, 0.9); box-shadow: 0 0 0 1px rgba(0, 195, 254, 0.3), 0 0 22px rgba(0, 195, 254, 0.25); }
.related-card.accent-flagship { border-color: rgba(165, 107, 255, 0.9); box-shadow: 0 0 0 1px rgba(165, 107, 255, 0.3), 0 0 22px rgba(165, 107, 255, 0.28); }
/* full-height glowing frame for the Ultra / M12 Pro columns (sides on every cell, top on the header, bottom on the last row) */
.compare-table .accent-ultra { --frame: 0, 195, 254; --glow: 0.25; }
.compare-table .accent-flagship { --frame: 165, 107, 255; --glow: 0.28; }
.compare-table .accent-ultra, .compare-table .accent-flagship { box-shadow: inset 1px 0 0 rgba(var(--frame), 0.9), inset -1px 0 0 rgba(var(--frame), 0.9), inset 12px 0 14px -10px rgba(var(--frame), var(--glow)), inset -12px 0 14px -10px rgba(var(--frame), var(--glow)); }
.compare-table thead th.accent-ultra, .compare-table thead th.accent-flagship { box-shadow: inset 0 1px 0 rgba(var(--frame), 0.9), inset 1px 0 0 rgba(var(--frame), 0.9), inset -1px 0 0 rgba(var(--frame), 0.9), inset 0 0 22px rgba(var(--frame), var(--glow)); }
.compare-table tbody tr:last-child td.accent-ultra, .compare-table tbody tr:last-child td.accent-flagship { box-shadow: inset 0 -1px 0 rgba(var(--frame), 0.9), inset 1px 0 0 rgba(var(--frame), 0.9), inset -1px 0 0 rgba(var(--frame), 0.9), inset 12px 0 14px -10px rgba(var(--frame), var(--glow)), inset -12px 0 14px -10px rgba(var(--frame), var(--glow)); }
.related-card b.name-ultra, .related-card b.name-flagship { width: fit-content; }

/* M12 Pro as the large card under the Mobapad filter: same shape as the Ultra card, violet frame */
.featured .badge { white-space: nowrap; }
.featured.is-flagship { border-color: rgba(165, 107, 255, 0.9); box-shadow: 0 0 0 1px rgba(165, 107, 255, 0.35), 0 0 30px rgba(165, 107, 255, 0.3), inset 0 0 40px rgba(165, 107, 255, 0.07); }
.featured.is-flagship .badge { background: rgba(165, 107, 255, 0.2); border: 1px solid rgba(165, 107, 255, 0.55); color: #d8b4ff; }
.featured-name.name-flagship { width: fit-content; }
