/* ============ Performance: skip render for off-screen blocks ============ */
/* content-visibility: auto lets the browser skip rendering work for
   sections far from the viewport, dramatically improving scroll FPS.
   contain-intrinsic-size gives a reserved height so the scrollbar
   stays accurate while content is "skipped". */
section[id="why-us"],
section[id="products"],
section[id="catalog"],
section[id="plans"],
section[id="steps"],
section[id="compare"],
section[id="coverage"],
section[id="reviews"],
section[id="knowledge"],
section[id="faq"],
section[id="contact"],
.trust-badges-strip,
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 700px;
}

:root {
  --primary: #00A8E1;
  --primary-dark: #0084B0;
  --primary-soft: rgba(0, 168, 225, 0.08);
  --primary-soft-strong: rgba(0, 168, 225, 0.18);
  --accent: #003DA5;
  --text: #111111;
  --muted: #5f6368;
  --line: #e6e7eb;
  --surface: #ffffff;
  --surface-soft: #f3f6fb;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(17, 17, 17, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans Thai", sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.narrow {
  width: min(760px, 92%);
}

.section {
  padding: 78px 0;
}

.section-soft {
  background: var(--surface-soft);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.2;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(1.7rem, 3.3vw, 2.4rem);
  line-height: 1.25;
  margin-bottom: 12px;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 1.4px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--muted);
  margin-bottom: 24px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.section-head-btn {
  white-space: nowrap;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 20px 0 84px;
  color: var(--white);
  background: linear-gradient(135deg, #003066 0%, #00A8E1 55%, #003DA5 130%);
}

.hero-bg-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-wrap::before,
.hero-bg-wrap::after {
  content: "";
  position: absolute;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.18), transparent 65%);
}

.hero-bg-wrap::before {
  top: -160px;
  right: -120px;
}

.hero-bg-wrap::after {
  bottom: -220px;
  left: -160px;
  background: radial-gradient(circle at center, rgba(0, 61, 165, 0.35), transparent 65%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(0, 12, 38, 0.35) 0%,
    rgba(0, 12, 38, 0.18) 50%,
    rgba(0, 12, 38, 0.45) 100%
  );
}

.hero .container {
  position: relative;
  z-index: 2;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 46px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.logo-icon {
  flex-shrink: 0;
  display: block;
  height: 32px;
  width: auto;
  /* Coway brand mark is cyan; on the dark hero gradient we render it white
     so the wordmark stays high-contrast at all times */
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
  color: #f2f2f2;
  font-weight: 600;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
  margin-bottom: 14px;
}

.lead {
  color: #e2e2e2;
  max-width: 700px;
}

.hero-cta {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.highlights span {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 0.88rem;
  color: #f2f2f2;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.stat {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
}

.stat strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
}

.stat span {
  font-size: 0.82rem;
  color: #f0f0f0;
}

.hero-card {
  background: #ffffff;
  color: var(--text);
  border-radius: 22px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 22px 46px rgba(0, 26, 75, 0.28);
  /* backdrop-filter removed for scroll perf */
}

.hero-card-kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-card h2 {
  margin-bottom: 8px;
}

.hero-card-subtitle {
  margin-bottom: 14px;
  color: #4a4d53;
  font-size: 0.95rem;
  line-height: 1.55;
}

.hero-card-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.hero-card-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 9px;
  color: #2f3136;
  font-weight: 500;
}

.hero-card-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft-strong);
}

.hero-card-note {
  margin: 0 0 16px;
  padding-top: 12px;
  border-top: 1px dashed #e3e5ea;
  color: #5b5f66;
  font-size: 0.9rem;
}

.hero-card .btn-primary {
  box-shadow: 0 10px 22px rgba(0, 168, 225, 0.28);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 700;
  transition: 0.2s ease;
}

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

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.price-card .btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background: transparent;
}

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

.full {
  width: 100%;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.card p {
  color: var(--muted);
  margin-bottom: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.product-card-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px;
  margin-bottom: 12px;
}

.product-card h3 {
  margin-bottom: 8px;
}

.product-card p {
  color: var(--muted);
  margin-bottom: 12px;
}

.product-card a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.catalog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
}

.catalog-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #ffffff;
  padding: 10px;
}

.catalog-content {
  padding: 14px;
}

.catalog-content h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.4;
}

.catalog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.catalog-price {
  color: var(--primary);
  font-weight: 800;
}

.catalog-category {
  font-size: 0.8rem;
  color: var(--muted);
}

.catalog-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  position: relative;
}

.price-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid #f0f1f4;
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 8px;
}

.price-card.featured {
  border-color: rgba(0, 168, 225, 0.45);
  box-shadow: 0 14px 36px rgba(0, 168, 225, 0.13);
}

.best {
  position: absolute;
  right: 15px;
  top: -11px;
  background: var(--primary);
  color: var(--white);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.plan-name {
  margin-bottom: 8px;
  color: #333333;
  font-weight: 700;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.price span {
  font-size: 0.98rem;
  color: var(--muted);
  font-weight: 500;
}

.price-card ul {
  margin: 0 0 18px 18px;
  padding: 0;
}

.price-card li {
  color: #4a4a4a;
  margin-bottom: 8px;
}

.steps {
  display: grid;
  gap: 10px;
}

.step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--surface);
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 9px;
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  background: var(--surface);
}

.faq-question {
  width: 100%;
  border: 0;
  background: #fbfbfc;
  color: var(--text);
  text-align: left;
  font: inherit;
  font-weight: 700;
  padding: 14px 16px;
  cursor: pointer;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  margin: 0;
  padding: 14px 16px;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  max-height: 460px;
}

.cta-section {
  padding-bottom: 120px;
}

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
}

.sticky-cta p {
  margin: 0;
  color: #222222;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .hero-content,
  .grid-3,
  .product-grid,
  .pricing,
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 560px;
    padding: 22px;
  }
}

@media (max-width: 680px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    gap: 12px;
    flex-wrap: wrap;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-head-btn {
    width: 100%;
  }

  .sticky-cta {
    flex-direction: column;
    align-items: stretch;
  }
}
