/* Stok24 Landing v5.7.1 — Hero-Icon on all pages */

:root {
  --bg: #f5f7fc;
  --bg-white: #ffffff;
  --text: #1a1d2e;
  --text-muted: #6b7494;
  --border: #e2e6f0;
  --primary: #4c6ef5;
  --primary-dark: #3b5bdb;
  --primary-soft: #eef1ff;
  --accent: #7950f2;
  --gradient: linear-gradient(135deg, #4c6ef5 0%, #7950f2 100%);
  --shadow: 0 4px 24px rgba(76, 110, 245, 0.12);
  --shadow-sm: 0 2px 8px rgba(26, 29, 46, 0.06);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Noto Sans Thai", system-ui, sans-serif;
  --container: 1140px;
  --header-h: 68px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-white);
}

/* ========== Homepage loader (anti pop-in / CLS) ========== */
html.is-preload {
  overflow: hidden;
}

html.is-preload .page-shell {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #06070d;
  background-image: url('../images/patterns/grid-bg.png');
  background-size: cover;
  background-position: center;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-loader::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 55% 45% at 20% 30%, rgba(76, 110, 245, 0.35), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(121, 80, 242, 0.28), transparent 50%);
  animation: hero-aurora-drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.page-loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.page-loader__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: var(--space-xl);
  max-width: 320px;
}

.page-loader__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: #f4f6ff;
  margin-bottom: var(--space-lg);
}

.page-loader__logo .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  animation: page-loader-pulse 1.4s ease-in-out infinite;
}

.page-loader__label {
  margin: 0 0 var(--space-md);
  font-size: 14px;
  font-weight: 500;
  color: #b8c4f0;
  letter-spacing: 0.02em;
}

.page-loader__track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.page-loader__bar {
  display: block;
  height: 100%;
  width: 36%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4c6ef5, #8da2ff, #7950f2);
  animation: page-loader-bar 1.1s ease-in-out infinite;
}

.page-loader__skeleton {
  margin-top: var(--space-xl);
  display: grid;
  gap: 10px;
  text-align: left;
}

.page-loader__skeleton span {
  display: block;
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.14) 45%,
    rgba(255, 255, 255, 0.06) 90%
  );
  background-size: 200% 100%;
  animation: page-loader-shimmer 1.2s ease-in-out infinite;
}

.page-loader__skeleton span:nth-child(1) { width: 92%; animation-delay: 0s; }
.page-loader__skeleton span:nth-child(2) { width: 78%; animation-delay: 0.08s; }
.page-loader__skeleton span:nth-child(3) { width: 64%; animation-delay: 0.16s; }

@keyframes page-loader-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.88; }
}

@keyframes page-loader-bar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

@keyframes page-loader-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

body.is-page-ready .page-shell {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-page-loader] .shot-frame__img {
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

body[data-page-loader].is-page-ready .shot-frame.has-image .shot-frame__img {
  opacity: 1;
}

img { max-width: 100%; height: auto; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--primary); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container { padding: 0 var(--space-lg); }
}

/* ========== HEADER (แบบ ZORT) ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--gradient);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.nav-main {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-main > a:not(.nav-cta):not(.cta),
.nav-drop > button {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: none;
  border: none;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.nav-main > a:not(.nav-cta):not(.cta):hover,
.nav-drop > button:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.nav-main > a.on:not(.nav-cta) {
  color: var(--primary-dark);
  background: var(--primary-soft);
  font-weight: 600;
}

.nav-drop { position: relative; }

.nav-drop__panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  margin-top: 4px;
}

.nav-drop:hover .nav-drop__panel,
.nav-drop.is-open .nav-drop__panel { display: block; }

.nav-drop__panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
}

.nav-drop__panel a:hover {
  background: var(--bg);
  color: var(--primary-dark);
}

.nav-drop__panel a small {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

.header-actions {
  display: none;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}

/* —— ปุ่ม —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 10px 18px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.btn:hover { transform: translateY(-1px); }

.btn:active { transform: translateY(0); }

.btn-sm {
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 9px;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 16px;
  border-radius: 12px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.btn-ghost {
  color: var(--text);
  background: var(--bg-white);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--bg);
  color: var(--text);
  border-color: #d0d6e8;
}

.btn-outline {
  color: var(--primary-dark);
  border-color: var(--primary);
  background: var(--bg-white);
}

.btn-outline:hover {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-primary {
  color: #fff !important;
  background: var(--gradient);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  color: #fff !important;
  box-shadow: var(--shadow);
  filter: brightness(1.05);
}

/* ปุ่มหลักบนพื้น gradient (CTA band) — ห้ามใช้ตัวอักษรขาว */
.cta-band .btn-primary {
  color: var(--primary-dark) !important;
  background: #fff !important;
  border-color: #fff !important;
  filter: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.cta-band .btn-primary:hover {
  color: var(--primary-dark) !important;
  background: #f0f3ff !important;
  border-color: #f0f3ff !important;
  filter: none;
}

.cta-band .btn-outline {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.75);
  background: transparent;
}

.cta-band .btn-outline:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* ปุ่มทดลองในเมนู (แทน class cta ที่ไม่มีสไตล์) */
.nav-main a.nav-cta,
.nav-main a.cta {
  margin-left: var(--space-xs);
  padding: 8px 14px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #fff !important;
  background: var(--gradient) !important;
  border: 2px solid transparent !important;
  border-radius: 10px !important;
  box-shadow: var(--shadow-sm);
}

.nav-main a.nav-cta:hover,
.nav-main a.cta:hover {
  color: #fff !important;
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
}

/* สลับภาษา — ไอคอนโลก + dropdown */
.lang-drop {
  position: relative;
  flex-shrink: 0;
  margin-left: var(--space-xs);
  padding-left: var(--space-sm);
  border-left: 1px solid var(--border);
}

.lang-drop__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 10px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.lang-drop__btn:hover,
.lang-drop.is-open .lang-drop__btn {
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-color: rgba(76, 110, 245, 0.35);
}

.lang-drop__icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.lang-drop__chev {
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform 0.2s;
}

.lang-drop.is-open .lang-drop__chev {
  transform: rotate(180deg);
}

.lang-drop__panel {
  left: auto;
  right: 0;
  min-width: 168px;
  padding: 6px;
}

.lang-drop__panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.lang-drop__panel a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

.lang-drop__panel a.is-active::before {
  background: var(--primary);
  border-color: var(--primary);
}

.lang-drop__panel a:hover {
  background: var(--bg);
  color: var(--primary-dark);
}

.lang-drop__panel a.is-active {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 600;
}

@media (max-width: 991px) {
  .header-inner .lang-drop {
    display: flex;
    align-items: center;
    order: 2;
    margin-left: auto;
    padding-left: 0;
    border-left: none;
  }

  .header-actions { order: 3; }
  .menu-toggle { order: 4; }
}

.menu-toggle {
  display: flex;
  padding: 8px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
}

@media (min-width: 992px) {
  .nav-main, .header-actions { display: flex; }
  .menu-toggle { display: none; }
}

.mobile-nav {
  display: none;
  padding: var(--space-md) var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border);
  background: var(--bg-white);
}

.mobile-nav.is-open { display: block; }

.mobile-nav a {
  display: block;
  padding: var(--space-sm) 0;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.mobile-lang {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  margin-bottom: var(--space-xs);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.mobile-lang > span {
  color: var(--text-muted);
  font-weight: 600;
  width: 100%;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-lang a {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
}

.mobile-lang a.is-active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.mobile-nav .btn {
  width: 100%;
  margin-top: var(--space-sm);
}

.mobile-nav .btn-row {
  margin-top: var(--space-md);
  flex-direction: column;
}

.mobile-nav .btn-row .btn { width: 100%; }

/* ========== HERO SLIDER ========== */
.hero {
  --hero-fade-duration: 1.05s;
  --hero-fade-ease: cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
  isolation: isolate;
  background-color: #06070d;
  background-image: url('../images/patterns/grid-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Aurora + shimmer (animated ::before / ::after over grid-bg) */
.hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 38% at 18% 28%, rgba(76, 110, 245, 0.45), transparent 68%),
    radial-gradient(ellipse 38% 42% at 82% 72%, rgba(121, 80, 242, 0.38), transparent 65%),
    radial-gradient(ellipse 32% 34% at 58% 42%, rgba(34, 184, 207, 0.22), transparent 62%),
    radial-gradient(ellipse 28% 30% at 72% 22%, rgba(99, 102, 241, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(6, 7, 13, 0.15) 0%, rgba(6, 7, 13, 0.55) 100%);
  background-size: 220% 220%, 200% 200%, 180% 180%, 160% 160%, 100% 100%;
  background-repeat: no-repeat;
  filter: blur(2px);
  animation: hero-aurora-drift 16s ease-in-out infinite alternate;
  will-change: background-position, opacity;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      transparent 0%,
      transparent 38%,
      rgba(255, 255, 255, 0.04) 44%,
      rgba(141, 162, 255, 0.18) 50%,
      rgba(255, 255, 255, 0.07) 56%,
      transparent 62%,
      transparent 100%
    ),
    conic-gradient(
      from 0deg at 50% 50%,
      transparent 0deg,
      rgba(76, 110, 245, 0.12) 60deg,
      transparent 120deg,
      rgba(121, 80, 242, 0.1) 200deg,
      transparent 280deg
    );
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: hero-shimmer-sweep 9s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes hero-aurora-drift {
  0% {
    background-position: 0% 20%, 100% 80%, 50% 0%, 80% 30%, 0 0;
    opacity: 0.85;
  }
  50% {
    background-position: 80% 60%, 10% 30%, 90% 70%, 20% 80%, 0 0;
    opacity: 1;
  }
  100% {
    background-position: 40% 90%, 70% 10%, 15% 50%, 95% 40%, 0 0;
    opacity: 0.9;
  }
}

@keyframes hero-shimmer-sweep {
  0% {
    transform: translate3d(-18%, -12%, 0) rotate(-8deg) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translate3d(12%, 8%, 0) rotate(6deg) scale(1.05);
    opacity: 0.75;
  }
  100% {
    transform: translate3d(22%, -6%, 0) rotate(12deg) scale(1);
    opacity: 0.4;
  }
}

.hero-slider {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 480px;
}

@media (min-width: 768px) {
  .hero-slider { min-height: 520px; }
}

/* Stack slides in one cell — height = tallest slide (no jump between slides) */
.hero-slider > .hero-slide {
  grid-area: 1 / 1;
  align-self: center;
}

.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--hero-fade-duration) var(--hero-fade-ease);
  display: flex;
  align-items: center;
  padding: var(--space-2xl) 0 var(--space-3xl);
  pointer-events: none;
  z-index: 0;
  will-change: opacity;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

/* Outgoing slide — crossfade under the incoming layer */
.hero-slide.is-exiting {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  z-index: 1;
}

.hero-slider.is-fading .hero-slide.is-active {
  z-index: 2;
}

.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
  width: 100%;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Text column — aligned blocks across all slides */
.hero-copy {
  display: flex;
  flex-direction: column;
  max-width: 540px;
}

.hero-copy__lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
  min-height: 5.25rem;
  margin-bottom: var(--space-sm);
}

.hero-copy__lead .hero-icon--slide {
  margin-bottom: 0;
}

/* Curved underline accent (homepage headings) */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.heading-accent {
  position: relative;
  display: inline-block;
  max-width: 100%;
  padding-bottom: 14px;
  margin-bottom: var(--space-md);
}

.hero-copy__title.heading-accent {
  margin-bottom: var(--space-md);
}

.heading-accent__text {
  display: block;
}

.title-underline {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(100%, 223px);
  height: 12px;
  pointer-events: none;
  z-index: 0;
}

.title-underline svg {
  display: block;
  width: 100%;
  height: 100%;
}

.hero .heading-accent {
  margin-bottom: var(--space-md);
}

.hero-copy__title {
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #f4f6ff;
  margin: 0 0 var(--space-md);
  min-height: 2.6em;
  text-wrap: balance;
}

.hero-copy__title.heading-accent {
  min-height: calc(2.6em + 14px);
}

.hero-slide .subtitle,
.hero-copy__lead .subtitle {
  font-size: clamp(16px, 2.2vw, 20px);
  color: #b8c4f0;
  margin: 0;
  font-weight: 500;
  line-height: 1.4;
}

.hero-copy__desc {
  color: #c8d0e8;
  margin: 0 0 var(--space-lg);
  max-width: 520px;
  line-height: 1.65;
  min-height: 5.25em;
}

.hero-copy__actions {
  min-height: 3.25rem;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.hero-slide .btn-row,
.hero-cta-group,
.hero-copy__actions .btn {
  flex-shrink: 0;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

@media (max-width: 599px) {
  .hero-copy__lead,
  .hero-copy__title,
  .hero-copy__desc,
  .hero-copy__actions {
    min-height: auto;
  }
}

.hero-grid > .shot-frame {
  align-self: center;
  width: 100%;
}

.hero-visual {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
}

.hero-visual__bar {
  height: 40px;
  background: #1e2240;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
}

.hero-visual__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #343966;
}

.hero-visual__bar span:first-child { background: #fa5252; }
.hero-visual__bar span:nth-child(2) { background: #fcc419; }
.hero-visual__bar span:nth-child(3) { background: #51cf66; }

.hero-visual__body {
  flex: 1;
  padding: 20px;
  background: var(--bg);
  display: grid;
  gap: 12px;
  align-content: start;
}

.mock-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
}

.mock-card label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-card strong {
  display: block;
  font-size: 22px;
  margin-top: 4px;
  color: var(--primary-dark);
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-xl);
  position: relative;
  z-index: 2;
}

.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
  padding: 0;
  transition: background 0.45s var(--hero-fade-ease),
    transform 0.45s var(--hero-fade-ease),
    box-shadow 0.45s var(--hero-fade-ease);
}

.hero-dots button.is-active {
  background: #8da2ff;
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(141, 162, 255, 0.45);
}

/* ========== TRUST STRIP ========== */
.trust-strip {
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-white);
}

.trust-strip p {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
  font-weight: 500;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}

.trust-logos span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 8px 16px;
  background: var(--bg);
  border-radius: 100px;
  border: 1px solid var(--border);
}

/* ========== SECTIONS ========== */
.section {
  padding: var(--space-3xl) 0;
}

.section--gray { background: var(--bg); }

.section--tight {
  padding: var(--space-2xl) 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
  padding: 0 var(--space-xs);
}

.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
}

/* Feature row (ZORT alternating) */
.feature-row {
  display: grid;
  gap: var(--space-xl);
  align-items: center;
  margin-bottom: var(--space-3xl);
}

.feature-row:last-child { margin-bottom: 0; }

@media (min-width: 900px) {
  .feature-row { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
  /* Odd rows: text left, media right (DOM order). Even rows: media left, text right */
  .feature-rows .feature-row:nth-child(even) .feature-row__text,
  .feature-row--reverse .feature-row__text { order: 2; }
  .feature-rows .feature-row:nth-child(even) .feature-row__media,
  .feature-row--reverse .feature-row__media { order: 1; }
}

.feature-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.feature-row h3 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.3;
}

.feature-row p.lead {
  color: var(--text-muted);
  margin: 0 0 20px;
}

.feature-list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 15px;
  color: var(--text);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
}

.feature-media {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  min-height: 280px;
}

.feature-media .ui-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.feature-media .ui-box {
  background: var(--bg);
  border-radius: 8px;
  padding: 12px;
  font-size: 12px;
}

.feature-media .ui-box b {
  display: block;
  font-size: 18px;
  color: var(--primary-dark);
  margin-top: 4px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (min-width: 768px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
}

.stat-item {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.stat-item strong {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.stat-item strong[data-count-to] {
  font-variant-numeric: tabular-nums;
  min-width: 2.5ch;
}

.stat-item strong.is-counting {
  will-change: contents;
}

.stat-item span {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  display: block;
}

/* Business grid */
.biz-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 600px) {
  .biz-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .biz-grid { grid-template-columns: repeat(4, 1fr); }
}

.biz-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.biz-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.biz-card .hero-icon--card {
  margin-bottom: 16px;
}

.biz-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.biz-card p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

/* Stories (ไม่ใช้ชื่อลูกค้าปลอม) */
.stories {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .stories { grid-template-columns: repeat(3, 1fr); }
}

.story-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.story-card .type {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.story-card blockquote {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

.story-card cite {
  font-size: 13px;
  color: var(--text-muted);
  font-style: normal;
}

/* News */
.news-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 768px) {
  .news-grid { grid-template-columns: repeat(3, 1fr); }
}

.news-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-white);
  transition: box-shadow 0.2s;
}

.news-card:hover { box-shadow: var(--shadow-sm); }

.news-card__body { padding: 20px; }

.news-card time {
  font-size: 12px;
  color: var(--text-muted);
}

.news-card h4 {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.4;
}

.news-card h4 a { color: var(--text); text-decoration: none; }
.news-card h4 a:hover { color: var(--primary); }

/* CTA band */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--gradient);
  color: #fff;
  padding: var(--space-3xl) 0;
  text-align: center;
}

/* ลายซ้าย–ขวา (FlyonUI CTA SVG — local assets/images/patterns/) */
.cta-band__art {
  position: absolute;
  top: 50%;
  z-index: 0;
  width: auto;
  height: min(88%, 260px);
  max-height: 260px;
  max-width: clamp(72px, 18vw, 153px);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  animation: cta-art-breathe 8s ease-in-out infinite;
}

.cta-band__art--left {
  left: 0;
  transform: translateY(-50%);
  margin-left: max(0px, env(safe-area-inset-left));
}

.cta-band__art--right {
  right: 0;
  transform: translateY(-50%);
  margin-right: max(0px, env(safe-area-inset-right));
  animation-delay: -2.5s;
}

@keyframes cta-art-breathe {
  0%,
  100% {
    opacity: 0.88;
    filter: brightness(0.96);
  }
  50% {
    opacity: 1;
    filter: brightness(1.08);
  }
}

@media (max-width: 640px) {
  .cta-band__art {
    height: min(72%, 180px);
    max-width: clamp(48px, 14vw, 100px);
    opacity: 0.85;
  }
}

.cta-band .container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.cta-band h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0;
  font-weight: 700;
}

.cta-band p {
  margin: 0;
  opacity: 0.92;
  font-size: 17px;
  max-width: 520px;
}

.cta-band .btn-row {
  justify-content: center;
  margin-top: var(--space-sm);
}

/* Footer mega */
.site-footer {
  background: #141829;
  color: #a8b0c8;
  padding: 56px 0 24px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr repeat(3, 1fr); }
}

.footer-brand .logo { color: #fff; margin-bottom: 12px; }
.footer-brand p { margin: 0; line-height: 1.6; max-width: 280px; }

.footer-col h5 {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px;
}

.footer-col a {
  display: block;
  color: #a8b0c8;
  padding: 6px 0;
  text-decoration: none;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #2a3048;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

/* ========== PAGE HERO + HERO-ICON ========== */
.page-hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  background: var(--bg);
  text-align: center;
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.page-hero__text {
  max-width: 640px;
}

.page-hero__extra {
  margin-top: var(--space-md);
}

.page-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin: 0 0 12px;
}

.page-hero p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--text-muted);
}

/* Hero-Icon — contextual badge per page / slide */
.hero-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  box-shadow: var(--shadow);
  flex-shrink: 0;
  color: #fff;
}

.hero-icon path,
.hero-icon__svg path {
  stroke: #fff;
}

.hero-icon__svg {
  width: 36px;
  height: 36px;
  display: block;
  flex-shrink: 0;
}

.hero-icon--slide {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: 4px;
}

.hero-icon--slide .hero-icon__svg {
  width: 28px;
  height: 28px;
}

.hero-icon--card {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin: 0 auto var(--space-md);
  box-shadow: var(--shadow-sm);
}

.hero-icon--card .hero-icon__svg {
  width: 24px;
  height: 24px;
}

.hero-icon--biz-retail { background: linear-gradient(135deg, #4c6ef5 0%, #228be6 100%); }
.hero-icon--biz-repair { background: linear-gradient(135deg, #e64980 0%, #be4bdb 100%); }
.hero-icon--biz-branches { background: linear-gradient(135deg, #7950f2 0%, #5c7cfa 100%); }
.hero-icon--biz-credit { background: linear-gradient(135deg, #12b886 0%, #37b24d 100%); }

.hero-icon--pricing { background: linear-gradient(135deg, #4c6ef5 0%, #15aabf 100%); }
.hero-icon--compare { background: linear-gradient(135deg, #7950f2 0%, #be4bdb 100%); }
.hero-icon--contact { background: linear-gradient(135deg, #12b886 0%, #37b24d 100%); }
.hero-icon--faq { background: linear-gradient(135deg, #fab005 0%, #fd7e14 100%); }
.hero-icon--features { background: linear-gradient(135deg, #4c6ef5 0%, #7950f2 100%); }
.hero-icon--install { background: linear-gradient(135deg, #495057 0%, #212529 100%); }
.hero-icon--privacy { background: linear-gradient(135deg, #868e96 0%, #495057 100%); }
.hero-icon--pos { background: linear-gradient(135deg, #4c6ef5 0%, #228be6 100%); }
.hero-icon--repair { background: linear-gradient(135deg, #e64980 0%, #be4bdb 100%); }
.hero-icon--branches { background: linear-gradient(135deg, #7950f2 0%, #5c7cfa 100%); }

.page-hero--features .feat-nav {
  margin-top: var(--space-lg);
  margin-bottom: 0;
}

.bill-toggle {
  display: inline-flex;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px;
  margin: 32px auto 8px;
}

.bill-toggle button {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  border: none;
  border-radius: 100px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}

.bill-toggle button.is-on {
  background: var(--gradient);
  color: #fff;
}

.bill-note {
  text-align: center;
  font-size: 14px;
  color: var(--primary-dark);
  margin-bottom: 32px;
}

.bill-note[hidden] { display: none; }

.pricing-cards {
  display: grid;
  gap: 24px;
  margin-bottom: 48px;
}

@media (min-width: 900px) {
  .pricing-cards { grid-template-columns: repeat(4, 1fr); }
}

.price-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.popular {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.price-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  white-space: nowrap;
}

.price-card h3 { margin: 0; font-size: 18px; }
.price-card .tier-desc { font-size: 13px; color: var(--text-muted); margin: 4px 0 20px; }

.price-card .amount {
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.price-card .amount small {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
}

.price-card ul {
  flex: 1;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.price-card li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.price-card li:last-child { border-bottom: none; }

.price-card .btn { width: 100%; }

.trial-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: var(--primary-soft);
  border: 1px solid #c5d0ff;
  border-radius: var(--radius);
  margin-bottom: 40px;
}

/* Features page (legacy alias; prefer .page-hero--features) */
.feat-hero {
  padding: 56px 0;
  background: var(--bg);
}

.feat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
  justify-content: center;
}

.feat-nav a {
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-white);
  border: 1px solid var(--border);
  text-decoration: none;
}

.feat-nav a:hover,
.feat-nav a.is-active {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: var(--primary);
}

.feat-section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

.feat-section h2 {
  font-size: 28px;
  margin: 0 0 8px;
}

.feat-section .sub {
  color: var(--text-muted);
  margin: 0 0 24px;
}

.feat-section__row {
  margin-top: 8px;
  align-items: center;
}

.feat-section__row .feature-list {
  margin: 0;
}

@media (min-width: 900px) {
  .feat-section:nth-of-type(even) .feat-section__row {
    direction: rtl;
  }
  .feat-section:nth-of-type(even) .feat-section__row > * {
    direction: ltr;
  }
}

.compare-wrap { overflow-x: auto; }

table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.compare th, .compare td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.compare th {
  background: var(--bg);
  font-weight: 600;
}

.compare .yes { color: var(--primary-dark); font-weight: 600; }

.compare .no {
  color: var(--text-muted);
  opacity: 0.65;
}

.compare tr.compare-section td {
  background: var(--bg);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 20px;
}

.compare th.col-pop,
.compare td:nth-child(3) {
  background: rgba(76, 110, 245, 0.06);
}

.compare-sticky thead th {
  position: sticky;
  top: 64px;
  z-index: 2;
  box-shadow: 0 1px 0 var(--border);
}

/* ========== Screenshots (v5.1) ========== */
.shot-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  min-height: 260px;
  background: var(--bg);
}

.shot-frame__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  /* opacity — see homepage loader block above */
}

.shot-frame.has-image .mock-fallback {
  display: none !important;
}

.shot-frame__hint {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  pointer-events: none;
}

/* ========== Contact promo (Hero theme + animated bg) ========== */
.contact-promo {
  padding: var(--space-3xl) 0;
}

.contact-promo--page {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-2xl);
}

.contact-promo__card {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: var(--space-2xl);
  padding: clamp(28px, 5vw, 56px);
  border-radius: 28px;
  color: #f4f6ff;
  overflow: hidden;
  background-color: #06070d;
  background-image: url('../images/patterns/grid-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(141, 162, 255, 0.2);
  box-shadow:
    0 32px 80px rgba(6, 7, 13, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

/* Aurora — same language as .hero */
.contact-promo__card::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 38% at 18% 28%, rgba(76, 110, 245, 0.45), transparent 68%),
    radial-gradient(ellipse 38% 42% at 82% 72%, rgba(121, 80, 242, 0.38), transparent 65%),
    radial-gradient(ellipse 32% 34% at 58% 42%, rgba(34, 184, 207, 0.22), transparent 62%),
    radial-gradient(ellipse 28% 30% at 72% 22%, rgba(99, 102, 241, 0.2), transparent 58%),
    linear-gradient(180deg, rgba(6, 7, 13, 0.12) 0%, rgba(6, 7, 13, 0.5) 100%);
  background-size: 220% 220%, 200% 200%, 180% 180%, 160% 160%, 100% 100%;
  background-repeat: no-repeat;
  filter: blur(2px);
  animation: hero-aurora-drift 16s ease-in-out infinite alternate;
  will-change: background-position, opacity;
}

.contact-promo__card::after {
  content: "";
  position: absolute;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      105deg,
      transparent 0%,
      transparent 38%,
      rgba(255, 255, 255, 0.04) 44%,
      rgba(141, 162, 255, 0.18) 50%,
      rgba(255, 255, 255, 0.07) 56%,
      transparent 62%,
      transparent 100%
    ),
    conic-gradient(
      from 0deg at 50% 50%,
      transparent 0deg,
      rgba(76, 110, 245, 0.12) 60deg,
      transparent 120deg,
      rgba(121, 80, 242, 0.1) 200deg,
      transparent 280deg
    );
  mix-blend-mode: screen;
  opacity: 0.55;
  animation: hero-shimmer-sweep 9s ease-in-out infinite;
  will-change: transform, opacity;
}

.contact-promo__info,
.contact-promo__form {
  position: relative;
  z-index: 2;
}

@media (min-width: 900px) {
  .contact-promo__card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 4vw, 56px);
  }
}

.contact-promo__info h2,
.contact-promo__info h2.heading-accent {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin: 0 0 var(--space-md);
  color: #f4f6ff;
  text-wrap: balance;
}

.contact-promo__lead {
  margin: 0 0 var(--space-xl);
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.65;
  color: #c8d0e8;
  max-width: 440px;
}

.contact-promo__points {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-promo__points li {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.contact-promo__icon.hero-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(76, 110, 245, 0.85) 0%, rgba(121, 80, 242, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(76, 110, 245, 0.35);
  margin: 0;
}

.contact-promo__icon.hero-icon--card .hero-icon__svg {
  width: 24px;
  height: 24px;
}

.contact-promo__points strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: #f4f6ff;
}

.contact-promo__points li > div > span {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: #b8c4f0;
}

.contact-promo__direct {
  margin: 0 0 var(--space-sm);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-promo__direct a {
  color: #c5d0ff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-promo__direct a:hover {
  color: #fff;
}

.contact-promo__footnote {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.contact-promo__footnote a {
  color: #c5d0ff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-promo__footnote a:hover {
  color: #fff;
}

.contact-promo__footnote code {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.14);
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
}

.contact-promo__form.contact-box {
  max-width: none;
  margin: 0;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(141, 162, 255, 0.35);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  backdrop-filter: blur(14px);
}

.contact-promo__submit {
  width: 100%;
  margin-top: var(--space-xs);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 0;
  height: 0;
  opacity: 0;
}

/* ========== Contact form ========== */
.contact-box {
  max-width: 520px;
  margin: 0 auto;
  text-align: left;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.contact-box label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.contact-box input,
.contact-box select,
.contact-box textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 15px;
  margin-bottom: 16px;
}

.contact-box textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-box .field-row {
  display: grid;
  gap: 0;
}

.form-msg {
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  display: none;
}

.form-msg.is-show { display: block; }
.form-msg.ok { background: #ebfbee; color: #2b8a3e; border: 1px solid #b2f2bb; }
.form-msg.err { background: #fff5f5; color: #c92a2a; border: 1px solid #ffc9c9; }

.contact-alt {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
}

.contact-alt a { font-weight: 600; }

/* Install page */
.install-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.install-steps li {
  counter-increment: step;
  padding: 20px 0 20px 48px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.install-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 20px;
  width: 32px;
  height: 32px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
}

.install-steps code {
  font-size: 13px;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
}

.logo-strip img {
  height: 36px;
  width: auto;
  opacity: 0.85;
}

/* FAQ */
.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0 20px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 0;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--primary);
  font-weight: 700;
}

.faq-item[open] summary::after { content: "−"; }

.faq-item p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Partners */
.partners-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 32px;
  min-height: 48px;
}

.partners-row img {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.2s, opacity 0.2s;
}

.partners-row img:hover {
  filter: none;
  opacity: 1;
}

.partners-row .partner-fallback {
  font-size: 13px;
  color: var(--text-muted);
  padding: 8px 14px;
  border: 1px dashed var(--border);
  border-radius: 8px;
}

/* ========== Pricing & FAQ — dark hero (ธีมหน้าแรก) ========== */
.pricing-hero,
.faq-hero,
.compare-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(48px, 8vw, 80px) 0 clamp(32px, 5vw, 48px);
  text-align: center;
  color: #f4f6ff;
  background-color: #06070d;
  background-image: url('../images/patterns/grid-bg.png');
  background-size: cover;
  background-position: center;
}

.pricing-hero::before,
.faq-hero::before,
.compare-hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 38% at 18% 28%, rgba(76, 110, 245, 0.45), transparent 68%),
    radial-gradient(ellipse 38% 42% at 82% 72%, rgba(121, 80, 242, 0.38), transparent 65%),
    linear-gradient(180deg, rgba(6, 7, 13, 0.1) 0%, rgba(6, 7, 13, 0.55) 100%);
  background-size: 220% 220%, 200% 200%, 100% 100%;
  animation: hero-aurora-drift 16s ease-in-out infinite alternate;
}

.faq-hero::before {
  background:
    radial-gradient(ellipse 40% 36% at 20% 30%, rgba(253, 126, 20, 0.32), transparent 68%),
    radial-gradient(ellipse 38% 42% at 80% 70%, rgba(76, 110, 245, 0.38), transparent 65%),
    linear-gradient(180deg, rgba(6, 7, 13, 0.1) 0%, rgba(6, 7, 13, 0.55) 100%);
}

.compare-hero::before {
  background:
    radial-gradient(ellipse 42% 38% at 22% 28%, rgba(121, 80, 242, 0.42), transparent 68%),
    radial-gradient(ellipse 36% 40% at 78% 72%, rgba(190, 75, 219, 0.32), transparent 65%),
    linear-gradient(180deg, rgba(6, 7, 13, 0.1) 0%, rgba(6, 7, 13, 0.55) 100%);
}

.pricing-hero .container,
.faq-hero .container,
.compare-hero .container {
  position: relative;
  z-index: 2;
}

.pricing-hero__inner,
.faq-hero__inner,
.compare-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.pricing-hero__eyebrow,
.faq-hero__eyebrow,
.compare-hero__eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8da2ff;
}

.pricing-hero__text,
.faq-hero__text,
.compare-hero__text {
  max-width: 720px;
}

.pricing-hero h1.heading-accent,
.faq-hero h1.heading-accent,
.compare-hero h1.heading-accent {
  font-size: clamp(28px, 4.5vw, 42px);
  color: #f4f6ff;
  margin-bottom: var(--space-md);
}

.pricing-hero__lead,
.faq-hero__lead,
.compare-hero__lead {
  margin: 0 auto;
  max-width: 600px;
  font-size: clamp(16px, 2vw, 18px);
  line-height: 1.65;
  color: #c8d0e8;
}

.pricing-hero__billing,
.compare-hero__billing {
  margin-bottom: var(--space-xl);
}

.compare-hero__lead a {
  color: #b8c8ff;
  font-weight: 500;
}

.compare-hero__lead a:hover {
  color: #e8ecff;
}

.bill-note--hero {
  color: #b8c4f0;
  margin: 12px 0 0;
}

.bill-toggle__save {
  display: none;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 100px;
}

.pricing-hero .bill-toggle__save {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.bill-toggle button.is-on .bill-toggle__save {
  display: inline-block;
}

.pricing-hero .bill-toggle button.is-on .bill-toggle__save {
  background: rgba(255, 255, 255, 0.28);
}

.page-hero .bill-toggle button.is-on .bill-toggle__save {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.price-card .amount__was {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 4px;
}

.price-card__yearly-save {
  margin: -12px 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #12b886;
}

.price-card__yearly-save[hidden] {
  display: none;
}

.pricing-trust,
.faq-trust,
.compare-trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .pricing-trust,
  .faq-trust,
  .compare-trust { grid-template-columns: repeat(4, 1fr); }
}

.pricing-trust li,
.faq-trust li,
.compare-trust li {
  padding: 14px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(141, 162, 255, 0.22);
}

.pricing-trust strong,
.faq-trust strong,
.compare-trust strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: #f4f6ff;
  line-height: 1.2;
}

.pricing-trust span,
.faq-trust span,
.compare-trust span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #b8c4f0;
}

.pricing-page__body {
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.pricing-trial {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: clamp(24px, 4vw, 32px);
  margin-bottom: var(--space-2xl);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(76, 110, 245, 0.12) 0%, rgba(121, 80, 242, 0.08) 100%);
  border: 1px solid rgba(76, 110, 245, 0.28);
  box-shadow: var(--shadow-sm);
}

.pricing-trial h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 3vw, 24px);
}

.pricing-trial p {
  margin: 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
}

.pricing-trial__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pricing-page .pricing-cards {
  margin-bottom: var(--space-3xl);
}

.price-card__for {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.price-card__hook {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  font-weight: 500;
  min-height: 2.8em;
}

.price-card__limits {
  margin: -8px 0 16px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  background: var(--primary-soft);
  border-radius: 8px;
}

.price-card__features li.is-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  padding-top: 12px;
  border-bottom: none;
}

.price-card__features li.is-inherit {
  color: var(--text);
  font-weight: 500;
}

.price-card.popular .price-card__hook {
  color: var(--primary-dark);
}

.amount--contact {
  font-size: clamp(22px, 3vw, 28px) !important;
  color: var(--primary-dark);
}

.price-card--enterprise {
  background: linear-gradient(180deg, var(--bg-white) 0%, #f8f9fc 100%);
}

.pricing-guide {
  margin-bottom: var(--space-3xl);
}

.pricing-guide__grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 768px) {
  .pricing-guide__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .pricing-guide__grid { grid-template-columns: repeat(4, 1fr); }
}

.pricing-guide__card {
  display: block;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.pricing-guide__card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.pricing-guide__card.is-featured {
  border-color: var(--primary);
  background: linear-gradient(180deg, #fff 0%, var(--primary-soft) 100%);
}

.pricing-guide__tag {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-guide__card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.pricing-guide__card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.pricing-compare-section {
  margin-bottom: var(--space-3xl);
}

.pricing-compare-wrap {
  margin-bottom: var(--space-md);
}

.pricing-compare-note {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

.pricing-addons {
  margin-bottom: var(--space-3xl);
}

.pricing-addons__grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .pricing-addons__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .pricing-addons__grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-addon {
  padding: 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pricing-addon h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.pricing-addon__price {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

.pricing-addon p:last-child {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.pricing-faq {
  margin-bottom: var(--space-2xl);
}

.pricing-faq__grid {
  display: grid;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.pricing-faq__item {
  padding: 0 20px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pricing-faq__item summary {
  padding: 16px 0;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.pricing-faq__item summary::-webkit-details-marker {
  display: none;
}

.pricing-faq__item p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

.pricing-faq__more {
  margin: var(--space-lg) 0 0;
  text-align: center;
}

/* ========== FAQ page ========== */
.faq-page__body {
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.faq-page__container {
  max-width: 1100px;
}

.faq-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: var(--space-2xl);
}

.faq-jump__pill {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.faq-jump__pill:hover,
.faq-jump__pill:focus-visible {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.faq-layout {
  display: grid;
  gap: var(--space-xl);
}

@media (min-width: 960px) {
  .faq-layout {
    grid-template-columns: minmax(220px, 260px) 1fr;
    align-items: start;
  }

  .faq-aside {
    position: sticky;
    top: 88px;
  }
}

.faq-aside__card {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.faq-aside__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.faq-aside__card > p {
  margin: 0 0 var(--space-md);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.faq-aside__links {
  margin: 0 0 var(--space-md);
  padding: 0;
  list-style: none;
}

.faq-aside__links a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
}

.faq-aside__links li:last-child a {
  border-bottom: none;
}

.faq-aside__cta {
  display: flex;
  width: 100%;
  justify-content: center;
}

.faq-section {
  scroll-margin-top: 96px;
  margin-bottom: var(--space-2xl);
}

.faq-section:last-child {
  margin-bottom: 0;
}

.faq-section__head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.faq-section__head h2 {
  margin: 0 0 4px;
  font-size: clamp(20px, 2.5vw, 22px);
  font-weight: 700;
}

.faq-section__head p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.faq-section__icon {
  flex-shrink: 0;
  margin: 0;
}

.faq-section__grid {
  display: grid;
  gap: 10px;
}

.faq-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-card[open] {
  border-color: rgba(76, 110, 245, 0.4);
  box-shadow: 0 8px 28px rgba(76, 110, 245, 0.1);
}

.faq-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-card summary::-webkit-details-marker {
  display: none;
}

.faq-card summary::after {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  content: "+";
  transition: transform 0.2s, background 0.2s;
}

.faq-card[open] summary::after {
  content: "−";
  background: var(--primary);
  color: #fff;
}

.faq-card__body {
  padding: 0 20px 18px;
}

.faq-card__body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

.faq-card__body a {
  font-weight: 500;
}

.faq-page .cta-band {
  margin-top: 0;
}

/* ========== Compare page ========== */
.compare-page__body {
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.compare-page__container {
  max-width: 1120px;
}

.compare-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
  margin-bottom: var(--space-lg);
  font-size: 13px;
}

.compare-legend__item--yes {
  color: var(--primary-dark);
  font-weight: 600;
}

.compare-legend__item--no {
  color: var(--text-muted);
}

.compare-panel {
  margin-bottom: var(--space-3xl);
  padding: clamp(16px, 3vw, 24px);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.compare-page .compare-wrap {
  margin: 0 -4px;
  padding: 0 4px 4px;
}

.compare-page table.compare {
  border: none;
  box-shadow: none;
  font-size: 14px;
}

.compare-page .compare th {
  font-size: 13px;
  vertical-align: bottom;
}

.compare-page .compare th small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.compare-page .compare th.col-pop {
  background: linear-gradient(180deg, rgba(76, 110, 245, 0.14) 0%, rgba(76, 110, 245, 0.06) 100%);
  box-shadow: inset 0 3px 0 var(--primary);
}

.compare-col-badge {
  display: inline-block;
  margin-bottom: 2px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  border-radius: 100px;
}

.compare-page .compare td:nth-child(3) {
  background: rgba(76, 110, 245, 0.04);
}

.compare-page .compare tbody tr:not(.compare-section):hover td {
  background: rgba(76, 110, 245, 0.03);
}

.compare-page .compare tbody tr:not(.compare-section):hover td:nth-child(3) {
  background: rgba(76, 110, 245, 0.08);
}

.compare-page__note {
  margin: var(--space-lg) 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
  text-align: center;
}

.compare-page .compare-sticky thead th {
  top: 72px;
}

.compare-plans {
  margin-bottom: var(--space-xl);
}

.compare-plans__grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .compare-plans__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .compare-plans__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.compare-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.compare-plan-card:hover {
  border-color: rgba(76, 110, 245, 0.45);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.compare-plan-card.is-featured {
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(76, 110, 245, 0.15);
}

.compare-plan-card__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 100px;
}

.compare-plan-card__name {
  font-size: 18px;
  font-weight: 700;
}

.compare-plan-card__price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}

.compare-plan-card__price small,
.compare-plan-card__price [data-period] {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.compare-plan-card__price--contact {
  font-size: 20px;
}

.compare-plan-card__desc {
  flex: 1;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.compare-plan-card__cta {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.compare-page .cta-band {
  margin-top: 0;
}

.compare-hero .bill-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(141, 162, 255, 0.35);
}

.compare-hero .bill-toggle button {
  color: #c8d0e8;
}

.compare-hero .bill-toggle button.is-on {
  background: rgba(255, 255, 255, 0.16);
  color: #f4f6ff;
}

/* ลูกค้าและพาร์ทเนอร์ (หน้า pricing) */
.pricing-partners {
  margin-bottom: var(--space-3xl);
  padding: var(--space-2xl) 0;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pricing-partners .section-head {
  margin-bottom: var(--space-xl);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--border);
}

@media (min-width: 640px) {
  .partners-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  .partners-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1100px) {
  .partners-grid { grid-template-columns: repeat(6, 1fr); }
}

.partners-grid__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: 20px 16px;
  text-align: center;
  background: var(--bg-white);
}

.partners-grid__cell img {
  max-height: 40px;
  max-width: 128px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.8;
  transition: filter 0.2s, opacity 0.2s;
}

.partners-grid.has-logos .partners-grid__cell:has(img) img:hover {
  filter: none;
  opacity: 1;
}

.partners-grid__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
  padding: 0 4px;
}

.partners-grid.has-logos .partners-grid__cell:has(img) .partners-grid__label {
  display: none;
}

.pricing-partners__note {
  margin: var(--space-md) 0 0;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.pricing-partners__note code {
  font-size: 12px;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
}

/* สวิตช์รายเดือน/ปี บน pricing hero (พื้นมืด) */
.pricing-hero .bill-toggle {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.pricing-hero .bill-toggle button {
  color: #5c6b8a;
}

.pricing-hero .bill-toggle button.is-on {
  color: #fff;
}

/* price-card ปุ่มเต็มความกว้าง */
.price-card .btn {
  width: 100%;
  margin-top: auto;
}

.price-card .btn-outline {
  background: var(--bg-white);
}

.price-card ul.price-card__features {
  flex: 1;
}

/* ========== Auth pages (login / register) ========== */
.auth-page {
  --auth-pad-y: clamp(14px, 2.8vh, 28px);
  --auth-block-h: calc(100dvh - var(--header-h) - var(--auth-pad-y) * 2);
  display: flex;
  align-items: center;
  padding: var(--auth-pad-y) 0;
  min-height: var(--auth-block-h);
  box-sizing: border-box;
}

.auth-page__container {
  width: 100%;
  max-width: 1040px;
}

.auth-split {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-white);
  box-shadow: var(--shadow);
  max-height: var(--auth-block-h);
}

@media (min-width: 960px) {
  .auth-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    height: clamp(420px, var(--auth-block-h), 680px);
    min-height: 0;
  }
}

.auth-split__visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(140px, 24vh, 200px);
  background-color: #06070d;
  background-image: url('../images/patterns/grid-bg.png');
  background-size: cover;
  color: #f4f6ff;
}

@media (min-width: 960px) {
  .auth-split__visual {
    min-height: 0;
    height: 100%;
  }
}

.auth-split__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.35;
}

.auth-split__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 50% 45% at 20% 25%, rgba(76, 110, 245, 0.5), transparent 68%),
    radial-gradient(ellipse 40% 40% at 85% 75%, rgba(121, 80, 242, 0.35), transparent 65%),
    linear-gradient(180deg, rgba(6, 7, 13, 0.2) 0%, rgba(6, 7, 13, 0.88) 100%);
  pointer-events: none;
}

.auth-split__visual-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100%;
  padding: clamp(16px, 2.5vh, 28px) clamp(20px, 3vw, 32px);
}

@media (min-width: 960px) {
  .auth-split__visual-inner {
    padding: clamp(20px, 3vh, 32px);
  }
}

.auth-split__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: auto;
  padding-bottom: clamp(8px, 1.5vh, 16px);
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  color: #f4f6ff;
  text-decoration: none;
}

.auth-split__title {
  margin: 0 0 8px;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.25;
}

.auth-split__lead {
  margin: 0 0 clamp(10px, 1.5vh, 16px);
  max-width: 420px;
  font-size: clamp(13px, 1.6vw, 15px);
  line-height: 1.55;
  color: #c8d0e8;
}

.auth-split__points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

@media (min-width: 960px) {
  .auth-split__points {
    gap: 8px;
  }
}

.auth-split__points li {
  padding: clamp(6px, 1vh, 10px) clamp(10px, 1.5vw, 14px);
  font-size: clamp(12px, 1.4vw, 14px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(141, 162, 255, 0.22);
}

.auth-split__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 2.5vh, 28px) clamp(18px, 3vw, 32px);
  background: var(--bg-white);
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  max-height: calc(var(--auth-block-h) - clamp(140px, 24vh, 200px));
}

@media (min-width: 960px) {
  .auth-split__panel {
    max-height: 100%;
    align-items: center;
  }
}

.auth-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.auth-card__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: clamp(12px, 2vh, 20px);
}

.auth-card__head .hero-icon {
  flex-shrink: 0;
  margin: 0;
}

.auth-card__head .hero-icon--card {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.auth-card__title {
  margin: 0 0 2px;
  font-size: clamp(20px, 2.4vw, 22px);
  font-weight: 700;
}

.auth-card__sub {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
}

.auth-card__form.contact-box {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.auth-card__form.contact-box label {
  margin-bottom: 4px;
  font-size: 12px;
}

.auth-card__form.contact-box input,
.auth-card__form.contact-box select,
.auth-card__form.contact-box textarea {
  padding: 9px 11px;
  font-size: 14px;
  margin-bottom: 12px;
}

.auth-card__form.contact-box textarea {
  min-height: 72px;
  max-height: 100px;
}

.auth-card__row {
  margin: 0 0 12px;
}

.auth-card__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-card__check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--primary);
}

.auth-card__submit {
  width: 100%;
  margin-top: 2px;
}

.auth-card__foot {
  margin: clamp(12px, 2vh, 16px) 0 0;
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}

.auth-card__foot--muted {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.auth-card__foot a {
  font-weight: 600;
}

.auth-card__foot--muted a {
  font-weight: 500;
}

@media (max-height: 720px) {
  .auth-page {
    --auth-pad-y: clamp(10px, 1.8vh, 16px);
  }

  .auth-split__lead {
    display: none;
  }

  .auth-split__points li:nth-child(n+3) {
    display: none;
  }

  .auth-card__form.contact-box textarea {
    min-height: 56px;
    max-height: 72px;
  }
}

@media (max-width: 959px) and (max-height: 640px) {
  .auth-split__visual {
    min-height: 120px;
  }

  .auth-split__points {
    display: none;
  }
}

/* Go to top (ทุกหน้า — chrome.php) */
.gototop {
  position: fixed;
  right: clamp(16px, 3vw, 24px);
  bottom: clamp(16px, 3vw, 24px);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 8px 24px rgba(76, 110, 245, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, box-shadow 0.2s;
}

.gototop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.gototop:hover {
  box-shadow: 0 12px 32px rgba(76, 110, 245, 0.45);
}

.gototop:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.gototop__icon {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.is-preload .page-shell { opacity: 1; visibility: visible; }
  .page-loader { display: none !important; }
  body[data-page-loader] .shot-frame__img { opacity: 1; transition: none; }
  .hero { --hero-fade-duration: 0.01ms; }
  .hero-slide { transition: none; will-change: auto; }
  .hero::before,
  .hero::after,
  .contact-promo__card::before,
  .contact-promo__card::after,
  .pricing-hero::before,
  .faq-hero::before,
  .compare-hero::before {
    animation: none;
    will-change: auto;
  }
  .hero::after,
  .contact-promo__card::after { opacity: 0.4; }
  .cta-band__art {
    animation: none;
    opacity: 0.9;
  }

  .cta-band__art--left,
  .cta-band__art--right {
    transform: translateY(-50%);
  }

  .gototop {
    transition: none;
    transform: none;
  }

  .gototop.is-visible {
    transform: none;
  }
}
