/* =====================================================================
   SealHR — Public Marketing Home (Premium SaaS UI)
   Structure unchanged — visual layer only
   ===================================================================== */

.site-marketing {
  --primary: #14B8A6;
  --secondary: #2DD4BF;
  --accent: #FACC15;
  --text: #0F172A;
  --body: #475569;
  --border: #E2E8F0;
  --bg: #F8FAFC;
  --mint-soft: #ECFDF9;
  --mint-circle: #DDF7F4;
  --blue-soft: #F0F9FF;
  --container: 1200px;
  --section-y: clamp(64px, 10vw, 100px);
  --radius-card: 24px;
  --radius-btn: 16px;
  --shadow-card: 0 4px 6px rgba(15, 23, 42, .04), 0 20px 48px rgba(15, 118, 110, .08);
  --shadow-card-hover: 0 12px 32px rgba(15, 118, 110, .16), 0 32px 64px rgba(15, 23, 42, .08);
  --hero-fab-clearance: clamp(210px, 24vw, 280px);
  --font: 'LINESeedSansTH', 'Noto Sans Thai', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.site-marketing *,
.site-marketing *::before,
.site-marketing *::after { box-sizing: border-box; }

/* ─── Nav ─── */
.site-marketing .site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1rem, 3vw, 2rem);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-marketing .site-nav__links { display: flex; gap: .25rem; align-items: center; flex-wrap: wrap; }

.site-marketing .site-nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  padding: .55rem .95rem;
  border-radius: 12px;
  color: var(--body);
  transition: color .2s, background .2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-marketing .site-nav a:hover { color: var(--text); background: var(--mint-soft); }

.site-marketing .site-nav a.cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 8px 24px rgba(20, 184, 166, .28);
  transition: transform .3s, box-shadow .3s;
}

.site-marketing .site-nav a.cta:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 32px rgba(20, 184, 166, .35);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.site-marketing .site-nav a.is-active:not(.cta) {
  color: var(--text);
  background: var(--mint-soft);
}

.site-marketing .site-nav__logo-link { display: flex; align-items: center; flex-shrink: 0; line-height: 0; }

.site-marketing .site-nav__logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

/* ─── Buttons ─── */
.site-marketing .site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.65rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  text-decoration: none;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  min-height: 48px;
  transition: transform .3s, box-shadow .3s, background .3s, color .3s;
}

.site-marketing .site-btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  box-shadow: 0 10px 28px rgba(20, 184, 166, .32);
}

.site-marketing .site-btn--primary:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 36px rgba(20, 184, 166, .4);
}

.site-marketing .site-btn--ghost {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.site-marketing .site-btn--ghost:hover {
  transform: scale(1.03);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

.site-marketing .site-btn--light {
  background: rgba(255, 255, 255, .96);
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}

.site-marketing .site-btn--cta-light {
  background: #fff;
  color: #0f766e;
  font-weight: 600;
  box-shadow: 0 10px 32px rgba(0, 0, 0, .15);
}

.site-marketing .site-btn--cta-light:hover { transform: scale(1.03); }

.site-marketing .site-trial {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 1.75rem auto 0;
  padding: .65rem 1.25rem;
  background: linear-gradient(135deg, #fff, var(--mint-soft));
  border: 1px solid rgba(20, 184, 166, .2);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: #0f766e;
  max-width: max-content;
  box-shadow: 0 4px 16px rgba(20, 184, 166, .1);
}

.site-marketing .site-trial i { color: var(--accent); }

/* ─── Hero wrap — gradient + shapes ─── */
.site-marketing .site-hero-wrap {
  padding-right: var(--hero-fab-clearance);
}

.site-hero-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(45, 212, 191, .18), transparent 60%),
    radial-gradient(circle at 90% 20%, rgba(250, 204, 21, .08), transparent 40%),
    linear-gradient(180deg, #fff 0%, var(--mint-soft) 55%, var(--bg) 100%);
}

.site-hero-wrap::before,
.site-hero-wrap::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.site-hero-wrap::before {
  width: 320px;
  height: 320px;
  top: 8%;
  left: -80px;
  background: radial-gradient(circle, rgba(20, 184, 166, .12), transparent 70%);
  animation: site-float 8s ease-in-out infinite;
}

.site-hero-wrap::after {
  width: 240px;
  height: 240px;
  top: 20%;
  right: -60px;
  background: radial-gradient(circle, rgba(45, 212, 191, .15), transparent 70%);
  animation: site-float 10s ease-in-out infinite reverse;
}

.site-hero-wrap > * { position: relative; z-index: 1; }

/* Hero — น้องซีล VDO ซ้าย (กึ่งกลางแนวตั้ง) + Banner ขวา */
.site-hero-banner-row {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.2vw, 16px);
  width: 100%;
  max-width: 100%;
  margin: 0;
  margin-left: 0;
  margin-right: auto;
  padding: .5rem 0 0 clamp(.5rem, 1.25vw, 1rem);
}

.site-hero-mascot-wrap {
  flex-shrink: 0;
  width: clamp(120px, 14vw, 200px);
  line-height: 0;
  align-self: center;
  filter: drop-shadow(0 16px 32px rgba(15, 118, 110, .18));
}

.site-hero-mascot-wrap .seal-mascot-chroma {
  display: block;
  width: 100%;
}

.site-hero-mascot-wrap .seal-mascot-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.site-hero-carousel-col {
  flex: 1;
  min-width: 0;
}

.site-marketing .site-hero-carousel-col .hero-carousel {
  max-width: none;
  padding: 0;
  margin: 0;
}

.site-marketing .site-hero-carousel-col .hero-carousel__viewport {
  margin: 0;
  max-width: none;
}

.site-marketing .site-hero-carousel-col .hero-carousel__strip {
  padding-left: 0;
  padding-right: 0;
}

.site-hero-trial-strip {
  max-width: calc(100% - clamp(120px, 14vw, 200px) - clamp(6px, 1.2vw, 16px));
  margin: 0;
  margin-left: calc(clamp(.5rem, 1.25vw, 1rem) + clamp(120px, 14vw, 200px) + clamp(6px, 1.2vw, 16px));
  margin-right: auto;
  padding: .75rem 0 0 0;
}

@keyframes site-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-16px) scale(1.04); }
}

@keyframes site-mascot-wave {
  0%, 75%, 100% { transform: rotate(0deg); }
  80% { transform: rotate(3deg); }
  85% { transform: rotate(-2deg); }
  90% { transform: rotate(2deg); }
}

@keyframes site-mascot-blink {
  0%, 92%, 100% { filter: drop-shadow(0 16px 32px rgba(15, 118, 110, .2)); }
  94% { filter: drop-shadow(0 16px 32px rgba(15, 118, 110, .2)) brightness(1.05); }
}

/* ─── SEO hero intro ─── */
.site-marketing .site-hero-seo {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1rem, 3vw, 2rem) .5rem;
  text-align: center;
}

.site-marketing .site-hero-seo h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.site-marketing .site-hero-seo h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #0f766e, var(--primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-marketing .site-hero-seo__tagline {
  font-size: clamp(.95rem, 2vw, 1.125rem);
  color: var(--body);
  line-height: 1.75;
  max-width: 680px;
  margin: 0 auto;
  font-weight: 400;
}

.site-marketing .site-hero-seo__tagline strong {
  color: var(--text);
  font-weight: 600;
}

/* ─── Hero carousel ─── */
.site-marketing .hero-carousel {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 1rem clamp(1rem, 3vw, 2rem) 0;
}

.site-marketing .hero-carousel__viewport {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-hover);
  background: var(--seal-900, #0f4c49);
  aspect-ratio: 1200 / 460;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  min-height: 220px;
  max-height: 480px;
}

.site-marketing .hero-carousel__viewport::after {
  content: '';
  position: absolute;
  inset: -20%;
  background: radial-gradient(circle at 50% 50%, rgba(45, 212, 191, .25), transparent 55%);
  pointer-events: none;
  z-index: 1;
  animation: site-glow-pulse 4s ease-in-out infinite;
}

@keyframes site-glow-pulse {
  0%, 100% { opacity: .5; }
  50% { opacity: .85; }
}

.site-marketing .hero-carousel__track {
  display: flex;
  height: 100%;
  transition: transform .65s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.site-marketing .hero-carousel__slide {
  flex: 0 0 100%;
  position: relative;
  height: 100%;
  min-height: 220px;
}

.site-marketing .hero-carousel__slide-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.site-marketing .hero-carousel__slide-link:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: -3px;
}

.site-marketing .hero-carousel__cta-pill {
  position: absolute;
  right: 1.5rem;
  bottom: 1.25rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  pointer-events: none;
}

.site-marketing .hero-carousel__bg { position: absolute; inset: 0; overflow: hidden; }

.site-marketing .hero-carousel__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.site-marketing .hero-carousel__bg-fallback { position: absolute; inset: 0; }

.site-marketing .hero-carousel__slide--theme-teal .hero-carousel__bg-fallback {
  background: linear-gradient(135deg, #042f2e 0%, #0f766e 45%, #14b8a6 100%);
}

.site-marketing .hero-carousel__slide--theme-navy .hero-carousel__bg-fallback {
  background: linear-gradient(135deg, #0f172a 0%, #115e59 50%, #0d9488 100%);
}

.site-marketing .hero-carousel__slide--theme-coral .hero-carousel__bg-fallback {
  background: linear-gradient(135deg, #7c2d12 0%, #0f766e 40%, #f97316 100%);
}

.site-marketing .hero-carousel__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 47, 46, .82) 0%, rgba(4, 47, 46, .45) 55%, rgba(4, 47, 46, .15) 100%);
}

.site-marketing .hero-carousel__content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 2.5rem 2.75rem;
  max-width: 620px;
  color: #fff;
}

.site-marketing .hero-carousel__content .hero-carousel__headline {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 .75rem;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .2);
}

.site-marketing .hero-carousel__content p {
  font-size: clamp(.9rem, 1.8vw, 1.05rem);
  line-height: 1.7;
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, .92);
  max-width: 520px;
  font-weight: 400;
}

.site-marketing .hero-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .95);
  color: #0f766e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .15);
  transition: transform .3s, background .3s;
  min-width: 48px;
  min-height: 48px;
}

.site-marketing .hero-carousel__nav:hover {
  transform: translateY(-50%) scale(1.06);
  background: #fff;
}

.site-marketing .hero-carousel__nav--prev { left: 1.25rem; }
.site-marketing .hero-carousel__nav--next { right: 1.25rem; }

.site-marketing .hero-carousel__dots {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: .5rem;
}

.site-marketing .hero-carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: width .3s, background .3s;
  min-width: 10px;
  min-height: 10px;
}

.site-marketing .hero-carousel__dot.is-active {
  width: 28px;
  background: #fff;
}

.site-marketing .hero-carousel__strip {
  text-align: center;
  padding: 0 clamp(1rem, 3vw, 2rem) clamp(2rem, 4vw, 3rem);
}

/* ─── Sections ─── */
.site-marketing .site-section {
  padding: var(--section-y) clamp(1rem, 3vw, 2rem);
  max-width: var(--container);
  margin: 0 auto;
}

.site-marketing .site-section--mint {
  max-width: none;
  background: linear-gradient(180deg, var(--mint-soft) 0%, #fff 100%);
}

.site-marketing .site-section--mint > * {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.site-marketing .site-section--blue {
  max-width: none;
  background: linear-gradient(180deg, var(--blue-soft) 0%, #fff 100%);
}

.site-marketing .site-section--blue > * {
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.site-marketing .site-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: .75rem;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}

.site-marketing .site-section .sub {
  text-align: center;
  color: var(--body);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  font-size: clamp(.95rem, 2vw, 1.05rem);
  line-height: 1.7;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

/* ─── Feature cards ─── */
.site-marketing .site-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}

.site-marketing .site-feat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s;
}

.site-marketing .site-feat:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(20, 184, 166, .25);
}

.site-marketing .site-feat i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mint-circle);
  color: var(--primary);
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
  transition: transform .3s;
}

.site-marketing .site-feat:hover i {
  animation: site-icon-bounce .6s ease;
}

@keyframes site-icon-bounce {
  0%, 100% { transform: translateY(0); }
  40% { transform: translateY(-6px); }
  60% { transform: translateY(-3px); }
}

.site-marketing .site-feat h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: .5rem;
  color: var(--text);
  line-height: 1.35;
}

.site-marketing .site-feat p {
  font-size: .925rem;
  color: var(--body);
  line-height: 1.7;
  margin: 0;
}

.site-marketing .site-feat--support {
  position: relative;
  overflow: hidden;
}

.site-marketing .site-feat--support::after {
  content: '';
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 88px;
  height: 88px;
  background: url('../img/seal-mascots-sheet.png') no-repeat;
  background-size: 300% 300%;
  background-position: 50% 0%;
  opacity: .85;
  pointer-events: none;
}

/* ─── Trust badges ─── */
.site-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
}

.site-trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .65rem;
  padding: 1.25rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
  transition: transform .3s, box-shadow .3s;
}

.site-trust__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.site-trust__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--mint-circle);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.site-trust__label {
  font-size: .8rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.site-trust__desc {
  font-size: .78rem;
  color: var(--body);
  line-height: 1.5;
  margin: 0;
}

/* ─── Pricing ─── */
.site-marketing .site-pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  align-items: stretch;
}

.site-marketing .site-plan {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: transform .3s, box-shadow .3s;
  position: relative;
  display: flex;
  flex-direction: column;
}

.site-marketing .site-plan:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
}

.site-marketing .site-plan.pop {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .12), var(--shadow-card-hover);
  transform: scale(1.03);
  z-index: 1;
}

.site-marketing .site-plan.pop::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #fde047);
  color: #713f12;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(250, 204, 21, .4);
  white-space: nowrap;
}

.site-marketing .site-plan h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: .5rem 0 .25rem;
  color: var(--text);
}

.site-marketing .site-plan .price {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--primary);
  margin: 1rem 0 0;
  letter-spacing: -0.02em;
}

.site-marketing .site-plan .price-sub {
  font-size: .9rem;
  color: var(--body);
  margin: 0 0 1rem;
  min-height: 1.25rem;
}

.site-marketing .site-plan .price-sub .annual-tag,
.site-marketing .site-plan .price-main .annual-tag {
  font-size: .85rem;
  font-weight: 700;
  color: var(--body);
}

.site-marketing .site-plan__meta {
  font-size: .875rem;
  color: var(--body);
  line-height: 1.5;
  margin: 0;
}

.site-marketing .site-plan .site-btn {
  width: 100%;
  margin-top: auto;
  padding-top: 1rem;
}

.site-marketing .site-plan.pop .site-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  font-size: 1rem;
  padding: 1rem 1.5rem;
  min-height: 52px;
  box-shadow: 0 10px 28px rgba(20, 184, 166, .35);
}

.site-marketing .site-plan.pop .site-btn:hover {
  transform: scale(1.03);
}

.site-marketing .site-pricing-link {
  text-align: center;
  margin-top: 2rem;
}

.site-marketing .site-pricing-link a {
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
  font-size: .95rem;
  padding: .5rem 1rem;
  border-radius: 12px;
  transition: background .2s;
}

.site-marketing .site-pricing-link a:hover {
  background: var(--mint-soft);
}

/* ─── CTA band ─── */
.site-marketing .site-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #042f2e 0%, #0f766e 50%, #14b8a6 100%);
  color: #fff;
  border-radius: var(--radius-card);
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  margin: var(--section-y) auto;
  max-width: calc(var(--container) - 2rem);
  box-shadow: var(--shadow-card-hover);
}

.site-cta__content {
  position: relative;
  z-index: 1;
}

.site-cta__mascot {
  position: absolute;
  right: clamp(.5rem, 3vw, 2rem);
  bottom: 0;
  width: clamp(130px, 18vw, 220px);
  line-height: 0;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .22));
}

.site-cta__mascot .seal-mascot-chroma {
  display: block;
  width: 100%;
}

.site-cta__mascot .seal-mascot-canvas {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

.site-marketing .site-cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  letter-spacing: -0.02em;
}

.site-marketing .site-cta p {
  opacity: .92;
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.05rem;
  line-height: 1.75;
  position: relative;
  font-weight: 400;
}

.site-marketing .site-cta .site-btn {
  position: relative;
}

/* ─── Footer ─── */
.site-marketing .site-footer {
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem) clamp(1rem, 3vw, 2rem) 2.5rem;
  border-top: 1px solid var(--border);
  background: #fff;
  color: var(--body);
  font-size: .9rem;
  line-height: 1.8;
}

.site-marketing .site-footer__brand {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: .5rem;
}

.site-marketing .site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem 1.25rem;
  margin-top: 1rem;
}

.site-marketing .site-footer a {
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
  padding: .35rem .5rem;
  border-radius: 8px;
  transition: background .2s, color .2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-marketing .site-footer a:hover {
  background: var(--mint-soft);
  color: #0d9488;
}

.site-marketing .site-footer__social {
  display: flex;
  justify-content: center;
  gap: .75rem;
  margin-top: 1.5rem;
}

.site-marketing .site-footer__social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mint-circle);
  color: var(--primary);
  justify-content: center;
  padding: 0;
  font-size: 1.15rem;
}

.site-marketing .site-footer__social a:hover {
  transform: scale(1.08);
  background: var(--primary);
  color: #fff;
}

/* ─── Scroll reveal (แสดงเนื้อหาเสมอ — ซ่อนเฉพาะเมื่อ JS โหลดสำเร็จ) ─── */
.site-reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .6s ease;
}

.js-reveal-ready .site-reveal {
  opacity: 0;
  transform: translateY(24px);
}

.site-reveal.is-visible,
.js-reveal-ready .site-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-reveal--delay-1 { transition-delay: .1s; }
.site-reveal--delay-2 { transition-delay: .2s; }
.site-reveal--delay-3 { transition-delay: .3s; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .site-marketing .site-hero-wrap {
    padding-right: 0;
  }

  .site-hero-banner-row {
    flex-direction: column;
    align-items: center;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding: .5rem clamp(1rem, 3vw, 2rem) 0;
  }

  .site-hero-trial-strip {
    margin-left: auto;
    margin-right: auto;
    padding: .75rem clamp(1rem, 3vw, 2rem) 0;
  }

  .site-hero-mascot-wrap {
    width: min(160px, 42vw);
    margin-bottom: 0;
    order: -1;
  }

  .site-hero-carousel-col {
    width: 100%;
  }

  .site-marketing .site-cta {
    padding: clamp(2.5rem, 6vw, 3.5rem) clamp(1.25rem, 4vw, 2rem);
  }

  .site-marketing .hero-carousel__viewport {
    aspect-ratio: 3 / 2;
    max-height: 320px;
    border-radius: 20px;
  }

  .site-marketing .hero-carousel__content {
    padding: 1.5rem 1.25rem 2.5rem;
  }

  .site-marketing .hero-carousel__nav {
    width: 44px;
    height: 44px;
  }

  .site-marketing .hero-carousel__nav--prev { left: .65rem; }
  .site-marketing .hero-carousel__nav--next { right: .65rem; }

  .site-marketing .site-plan.pop {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-hero-wrap::before,
  .site-hero-wrap::after {
    animation: none;
  }

  .site-marketing .site-btn:hover {
    transform: none;
  }
}

/* =====================================================================
   Pricing page
   ===================================================================== */
.site-marketing-page--pricing {
  background: var(--bg);
}

.site-marketing .pricing-page-hero {
  text-align: center;
  padding: clamp(3rem, 8vw, 5rem) clamp(1rem, 3vw, 2rem) 1.5rem;
  max-width: 720px;
  margin: 0 auto;
}

.site-marketing .pricing-page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.site-marketing .pricing-page-hero p {
  color: var(--body);
  font-size: clamp(.95rem, 2vw, 1.05rem);
  line-height: 1.75;
  margin: 0;
}

.site-marketing .pricing-bill-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  margin: 0 auto 2.5rem;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.site-marketing .pricing-bill-toggle {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  padding: .45rem .65rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}

.site-marketing .pricing-bill-toggle span {
  font-size: .88rem;
  font-weight: 600;
  color: var(--body);
  transition: color .2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-marketing .pricing-bill-toggle span.is-active { color: #0f766e; font-weight: 800; }

.site-marketing .pricing-bill-switch {
  position: relative;
  width: 56px;
  height: 32px;
  background: #cbd5e1;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background .3s;
  padding: 0;
  flex-shrink: 0;
}

.site-marketing .pricing-bill-switch.is-yearly {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.site-marketing .pricing-bill-switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
  transition: transform .3s;
}

.site-marketing .pricing-bill-switch.is-yearly::after { transform: translateX(24px); }

.site-marketing .pricing-annual-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem 1rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  color: #92400e;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid #fcd34d;
  text-align: center;
  max-width: 520px;
  line-height: 1.5;
  box-shadow: 0 4px 16px rgba(250, 204, 21, .2);
}

.site-marketing .pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2rem) var(--section-y);
}

.site-marketing .pricing-plan-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform .3s, box-shadow .3s, border-color .3s;
  text-align: center;
  position: relative;
}

.site-marketing .pricing-plan-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(20, 184, 166, .25);
}

.site-marketing .pricing-plan-card.pop {
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .12), var(--shadow-card-hover);
  transform: scale(1.03);
  z-index: 1;
}

.site-marketing .pricing-plan-card.pop::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #fde047);
  color: #713f12;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem .85rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(250, 204, 21, .4);
  white-space: nowrap;
}

.site-marketing .pricing-plan-card .badge { display: none; }

.site-marketing .pricing-plan-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin: .35rem 0 .25rem;
}

.site-marketing .pricing-plan-card .plan-desc {
  font-size: .875rem;
  color: var(--body);
  margin: 0 0 .5rem;
  line-height: 1.55;
}

.site-marketing .pricing-plan-card .price-main {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--primary);
  margin: 1rem 0 .25rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.site-marketing .pricing-plan-card .price-sub {
  font-size: .8rem;
  color: var(--body);
  font-weight: 600;
  min-height: 1.25rem;
  margin-bottom: .5rem;
}

.site-marketing .pricing-plan-card .price-was {
  font-size: .85rem;
  color: #94a3b8;
  text-decoration: line-through;
  margin-right: .35rem;
}

.site-marketing .pricing-plan-card .annual-tag {
  display: none;
  font-size: .65rem;
  font-weight: 800;
  color: #b45309;
  background: #fef3c7;
  padding: .15rem .45rem;
  border-radius: 6px;
  margin-left: .35rem;
  vertical-align: middle;
}

.site-marketing .pricing-bill-mode-yearly .annual-tag { display: inline-block; }

.site-marketing .pricing-plan-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
  font-size: .9rem;
  color: var(--body);
  text-align: left;
}

.site-marketing .pricing-plan-card li {
  padding: .45rem 0;
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  line-height: 1.5;
}

.site-marketing .pricing-plan-card li i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint-circle);
  color: var(--primary);
  font-size: .65rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.site-marketing .pricing-plan-card .btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .9rem 1.25rem;
  border-radius: var(--radius-btn);
  font-weight: 600;
  text-decoration: none;
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
  min-height: 48px;
  transition: transform .3s, box-shadow .3s, background .3s;
  margin-top: auto;
}

.site-marketing .pricing-plan-card .btn:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
  border-color: var(--primary);
}

.site-marketing .pricing-plan-card.pop .btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border: none;
  font-size: 1rem;
  min-height: 52px;
  box-shadow: 0 10px 28px rgba(20, 184, 166, .35);
}

.site-marketing .pricing-plan-card.pop .btn:hover {
  box-shadow: 0 14px 36px rgba(20, 184, 166, .4);
}

@media (max-width: 768px) {
  .site-marketing .pricing-plan-card.pop { transform: none; }
}

/* =====================================================================
   Register page
   ===================================================================== */
.site-marketing-page--register {
  background:
    radial-gradient(ellipse 70% 50% at 80% 10%, rgba(45, 212, 191, .12), transparent 55%),
    linear-gradient(180deg, var(--mint-soft) 0%, var(--bg) 45%, #fff 100%);
  min-height: 100vh;
}

.site-marketing .reg-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) clamp(1rem, 3vw, 2rem) var(--section-y);
  position: relative;
}

.site-marketing .reg-wrap::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 120px;
  width: 140px;
  height: 140px;
  background: url('../img/seal-mascots-sheet.png') no-repeat;
  background-size: 300% 300%;
  background-position: 100% 100%;
  opacity: .75;
  pointer-events: none;
  animation: site-mascot-wave 8s ease-in-out infinite;
}

.site-marketing .reg-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  box-shadow: var(--shadow-card-hover);
  position: relative;
  z-index: 1;
}

.site-marketing .reg-card h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.site-marketing .reg-card .lead {
  color: var(--body);
  margin: .75rem 0 1.75rem;
  font-size: .975rem;
  line-height: 1.7;
  font-weight: 400;
}

.site-marketing .reg-top-links {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 1.25rem;
}

.site-marketing .reg-top-links a {
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
  font-size: .9rem;
  padding: .5rem .75rem;
  border-radius: 12px;
  transition: background .2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-marketing .reg-top-links a:hover { background: var(--mint-soft); }

.site-marketing .reg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.site-marketing .reg-banner {
  background: linear-gradient(135deg, #ecfdf9, #f0fdfa);
  border: 1px solid rgba(20, 184, 166, .25);
  color: #0f766e;
  padding: .85rem 1.1rem;
  border-radius: 16px;
  margin-bottom: 1.25rem;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.55;
}

.site-marketing .reg-banner i { color: var(--accent); margin-right: .35rem; }

.site-marketing .fld label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--text);
}

.site-marketing .fld input,
.site-marketing .fld select {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  font-size: .95rem;
  font-family: inherit;
  min-height: 48px;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
}

.site-marketing .fld input:focus,
.site-marketing .fld select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, .12);
}

.site-marketing .fld.span2 { grid-column: 1 / -1; }

.site-marketing .btn-go {
  width: 100%;
  margin-top: .5rem;
  padding: .95rem 1.25rem;
  border: none;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  cursor: pointer;
  min-height: 52px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 28px rgba(20, 184, 166, .32);
  transition: transform .3s, box-shadow .3s;
  font-family: inherit;
}

.site-marketing .btn-go:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 36px rgba(20, 184, 166, .4);
}

.site-marketing .btn-go--ghost {
  background: #fff;
  color: #0f766e;
  border: 1.5px solid var(--border);
  box-shadow: none;
  display: inline-flex;
  width: auto;
  padding: .75rem 1.5rem;
  text-decoration: none;
  align-items: center;
  justify-content: center;
}

.site-marketing .reg-err {
  background: #fef2f2;
  color: #b91c1c;
  padding: .85rem 1.1rem;
  border-radius: 14px;
  margin-bottom: 1.25rem;
  font-size: .88rem;
  border: 1px solid #fecaca;
}

.site-marketing .reg-card.ok {
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem) 1.5rem;
}

.site-marketing .reg-card.ok > i {
  font-size: 3.5rem;
  color: var(--primary);
}

.site-marketing .reg-card.ok h1 { margin-top: 1rem; }

.site-marketing .reg-card.ok .lead { max-width: 420px; margin-left: auto; margin-right: auto; }

.site-marketing .reg-card.ok .lead strong { color: #0f766e; }

.site-marketing .reg-foot-links {
  text-align: center;
  margin-top: 1.25rem;
  font-size: .88rem;
  color: var(--body);
}

.site-marketing .reg-foot-links a {
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
  padding: .25rem .5rem;
  border-radius: 8px;
}

.site-marketing .reg-foot-links a:hover { background: var(--mint-soft); }

.site-marketing .reg-tos { margin-top: .25rem; }

.site-marketing .reg-tos__label {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--body);
  cursor: pointer;
}

.site-marketing .reg-tos__label input {
  margin-top: .2rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: #0f766e;
}

.site-marketing .reg-tos__label a {
  color: #0f766e;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-marketing .reg-tos__hint {
  margin: .45rem 0 0 1.65rem;
  font-size: .78rem;
  color: #b45309;
}

.site-marketing .reg-email-hint {
  margin: .35rem 0 0;
  font-size: .78rem;
  color: #b45309;
}

.site-marketing .btn-go:disabled,
.site-marketing .btn-go[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.site-marketing .legal-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.site-marketing .legal-card {
  background: #fff;
  border: 1px solid rgba(15, 118, 110, .12);
  border-radius: 20px;
  padding: 2rem 2.25rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .06);
}

.site-marketing .legal-terms h1 {
  font-size: 1.45rem;
  color: #0f172a;
  margin: 0 0 1.25rem;
  line-height: 1.35;
}

.site-marketing .legal-terms__section {
  margin-bottom: 1.5rem;
}

.site-marketing .legal-terms__section h2 {
  font-size: 1.05rem;
  color: #0f766e;
  margin: 0 0 .65rem;
}

.site-marketing .legal-terms__section p,
.site-marketing .legal-terms__section li {
  font-size: .92rem;
  line-height: 1.7;
  color: var(--body);
}

.site-marketing .legal-terms__section ul {
  margin: .5rem 0 0;
  padding-left: 1.25rem;
}

.site-marketing .legal-back {
  margin: 1.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 118, 110, .12);
}

.site-marketing .legal-back a {
  color: #0f766e;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 600px) {
  .site-marketing .reg-grid { grid-template-columns: 1fr; }
  .site-marketing .reg-wrap::after { display: none; }
}
