@font-face {
  font-family: "Noto Sans Thai";
  src: url("../assets/fonts/NotoSansThai-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Noto Sans Thai";
  src: url("../assets/fonts/NotoSansThai-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --green: #16a34a;
  --green-700: #12843d;
  --green-50: #ecfdf3;
  --blue: #0f8bd6;
  --navy: #061b33;
  --navy-2: #0b2a4a;
  --text: #10223d;
  --muted: #607086;
  --bg: #f5f7fa;
  --line: #dfe7ef;
  --white: #ffffff;
  --shadow: 0 16px 42px rgba(6, 27, 51, 0.12);
  --soft-shadow: 0 10px 26px rgba(6, 27, 51, 0.08);
  --radius: 22px;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Noto Sans Thai", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  padding-bottom: 136px;
}

body.menu-open {
  overflow: hidden;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(100% - 32px, 1160px);
  margin-inline: auto;
}

.section {
  padding: 58px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 26px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.95rem;
  font-weight: 700;
}

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

h1,
h2,
h3 {
  color: var(--navy);
  line-height: 1.18;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.05rem, 9vw, 4.6rem);
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.75rem, 7vw, 3rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.12rem;
}

p {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(223, 231, 239, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--green);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
}

.brand strong {
  color: var(--navy);
}

.desktop-nav {
  display: none;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.header-download,
.nav-download,
.mobile-download,
.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 16px;
  background: var(--green);
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.25);
}

.language-switch {
  min-width: 46px;
  border: 1px solid rgba(22, 163, 74, 0.26);
  background: var(--white);
  color: var(--green-700);
  box-shadow: none;
}

.language-switch.compact {
  min-height: 42px;
  padding: 0 12px;
}

.menu-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  color: var(--navy);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  grid-area: 1 / 1;
}

.menu-toggle .menu-close,
.menu-toggle[aria-expanded="true"] .menu-open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-close {
  display: block;
}

.mobile-nav {
  position: fixed;
  inset: var(--header-height) 0 auto;
  display: none;
  width: min(100% - 32px, 420px);
  margin: 10px auto 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.mobile-nav.open {
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--navy);
  font-weight: 700;
}

.mobile-nav a:active,
.mobile-nav a:hover {
  background: var(--green-50);
  color: var(--green-700);
}

.mobile-nav .mobile-download {
  justify-content: center;
  color: var(--white);
}

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - var(--header-height));
  padding: 36px 0 46px;
  background: linear-gradient(135deg, #effbf5 0%, #ffffff 48%, #edf7ff 100%);
}

.hero-bg {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  opacity: 0.48;
  pointer-events: none;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 34px;
}

.hero-inner > * {
  min-width: 0;
}

.hero-copy {
  width: 100%;
  max-width: 640px;
}

.hero-lead {
  margin-bottom: 20px;
  color: #263b55;
  font-size: 1.08rem;
}

.hero-copy h1 span {
  display: block;
}

.download-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 430px;
  margin-bottom: 12px;
}

.store-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 62px;
  min-width: 0;
  padding: 10px 18px;
  border: 1px solid rgba(6, 27, 51, 0.08);
  border-radius: 999px;
  color: #26313d;
  background: linear-gradient(180deg, #ffffff 0%, #f4f5f6 100%);
  box-shadow: 0 18px 28px rgba(6, 27, 51, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.store-button.google-play {
  background: linear-gradient(180deg, #ffffff 0%, #f4f5f6 100%);
}

.store-button:hover {
  box-shadow: 0 22px 34px rgba(6, 27, 51, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.store-button small,
.store-button strong {
  display: block;
  line-height: 1.05;
  white-space: nowrap;
}

.store-button small {
  color: #6a717a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.store-button strong {
  color: #3f444b;
  font-size: 1.18rem;
  font-weight: 700;
}

.store-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  fill: currentColor;
  stroke-width: 1.7;
}

.app-store .store-icon {
  color: #17232d;
  fill: currentColor;
}

.play-color-icon {
  stroke: none;
}

.download-buttons.compact {
  width: 100%;
  gap: 8px;
  margin-bottom: 0;
}

.download-buttons.compact .store-button {
  min-height: 48px;
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 12px 22px rgba(6, 27, 51, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.download-buttons.compact .store-button small {
  display: none;
}

.download-buttons.compact .store-button strong {
  font-size: 0.92rem;
}

.download-buttons.compact .store-icon {
  width: 24px;
  height: 24px;
}

.secondary-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(22, 163, 74, 0.35);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--green-700);
  font-weight: 700;
}

.button-icon {
  width: 18px;
  height: 18px;
}

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1fr 0.8fr;
  align-items: end;
  width: 100%;
  min-height: 360px;
  min-width: 0;
  max-width: 560px;
  margin-inline: auto;
  overflow: hidden;
}

.hero-phone {
  position: relative;
}

.hero-phone-left,
.hero-phone-right {
  z-index: 1;
  transform: translateY(20px);
}

.hero-phone-left {
  margin-right: -40px;
}

.hero-phone-main {
  z-index: 3;
}

.hero-phone-right {
  margin-left: -40px;
}

.phone-mockup {
  width: min(100%, 230px);
  margin-inline: auto;
}

.phone-mockup.compact {
  width: min(100%, 174px);
}

.phone-frame {
  position: relative;
  padding: 9px;
  border-radius: 32px;
  background: linear-gradient(150deg, #111b2a, #020813);
  box-shadow: 0 22px 48px rgba(6, 27, 51, 0.28);
}

.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  z-index: 2;
  width: 66px;
  height: 18px;
  border-radius: 999px;
  background: #020813;
  transform: translateX(-50%);
}

.phone-screen {
  overflow: hidden;
  min-height: 390px;
  padding: 30px 10px 12px;
  border-radius: 25px;
  background: #f9fbfd;
}

.compact .phone-screen {
  min-height: 310px;
  padding-inline: 8px;
}

.screen-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 10px;
}

.screen-tabs span {
  display: grid;
  place-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: #edf3f8;
  color: #607086;
  font-size: 0.58rem;
  font-weight: 700;
}

.screen-tabs .active {
  background: var(--green);
  color: var(--white);
}

.screen-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.screen-mini-icon {
  width: 18px;
  height: 18px;
  color: var(--green);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.metric-cell {
  min-width: 0;
  min-height: 62px;
  padding: 7px 5px;
  border: 1px solid #e4edf5;
  border-radius: 12px;
  background: var(--white);
}

.metric-cell small,
.metric-cell strong {
  display: block;
}

.metric-cell small {
  overflow: hidden;
  color: #738198;
  font-size: 0.52rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-cell strong {
  margin-top: 4px;
  color: var(--green-700);
  font-size: 0.62rem;
  line-height: 1.2;
}

.chart-card {
  display: flex;
  align-items: end;
  height: 104px;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #e4edf5;
  border-radius: 16px;
  background: var(--white);
}

.chart-line {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: end;
  gap: 5px;
  width: 100%;
  height: 100%;
}

.chart-line i {
  display: block;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #22c55e, #0f8bd6);
}

.screen-list {
  display: grid;
  gap: 6px;
}

.screen-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 0 9px;
  border-radius: 11px;
  background: #eff6f1;
  color: var(--navy);
  font-size: 0.62rem;
}

.screen-row span,
.screen-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-row strong {
  color: var(--green-700);
}

.benefits-section {
  padding-top: 24px;
}

.benefit-grid,
.feature-grid,
.group-grid,
.audience-grid,
.pricing-grid {
  display: grid;
  gap: 14px;
}

.benefit-card,
.feature-card,
.group-card,
.audience-card,
.pricing-card,
.screenshot-card {
  border: 1px solid rgba(223, 231, 239, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.benefit-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
}

.benefit-card h2 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.benefit-card p,
.feature-card p,
.audience-card p,
.pricing-card p {
  margin-bottom: 0;
  font-size: 0.94rem;
}

.icon-bubble,
.feature-icon,
.audience-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--green);
  background: linear-gradient(135deg, #ecfdf3, #eaf6ff);
}

.icon-bubble svg,
.feature-icon svg,
.audience-icon svg {
  width: 25px;
  height: 25px;
}

.feature-section {
  background: var(--white);
}

.feature-grid {
  grid-template-columns: 1fr;
}

.feature-card {
  padding: 18px;
}

.feature-icon {
  margin-bottom: 14px;
}

.screenshots-section {
  background: linear-gradient(180deg, #f5f7fa 0%, #ffffff 100%);
}

.screenshot-rail {
  display: grid;
  grid-auto-columns: minmax(238px, 74vw);
  grid-auto-flow: column;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.screenshot-card {
  display: grid;
  justify-items: center;
  scroll-snap-align: start;
  padding: 18px 14px;
}

.screenshot-caption {
  margin-top: 12px;
  text-align: center;
}

.screenshot-caption h3 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.screenshot-caption p {
  margin-bottom: 0;
  font-size: 0.86rem;
}

.all-in-one-section {
  background: var(--white);
}

.group-card {
  padding: 18px;
}

.group-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.group-title h3 {
  margin-bottom: 0;
}

.group-card ul,
.pricing-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.group-card li,
.pricing-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #33465f;
}

.group-card li svg,
.pricing-card li svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--green);
}

.audience-card {
  padding: 20px;
}

.audience-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 14px;
}

.pricing-section {
  background: linear-gradient(180deg, #f5f7fa 0%, #ecfdf3 100%);
}

.pricing-card {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.pricing-card.highlighted {
  border-color: rgba(22, 163, 74, 0.5);
  box-shadow: 0 18px 44px rgba(22, 163, 74, 0.16);
}

.plan-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.plan-top h3 {
  margin-bottom: 4px;
  font-size: 1.35rem;
}

.plan-top span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--green-700);
  font-size: 0.82rem;
  font-weight: 700;
}

.pricing-card.highlighted .plan-top span {
  background: var(--green);
  color: var(--white);
}

.pricing-download {
  display: grid;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(223, 231, 239, 0.95);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.pricing-download p {
  margin-bottom: 0;
  color: var(--navy);
  font-weight: 700;
}

.faq-section {
  background: var(--white);
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
  margin-inline: auto;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfdff;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--navy);
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.faq-icon {
  flex: 0 0 auto;
  color: var(--green);
}

.faq-icon svg {
  width: 20px;
  height: 20px;
}

.faq-icon .minus-icon,
.faq-item.open .plus-icon {
  display: none;
}

.faq-item.open .minus-icon {
  display: block;
}

.faq-answer {
  display: none;
  padding: 0 16px 16px;
}

.faq-item.open .faq-answer {
  display: block;
}

.faq-answer p {
  margin-bottom: 0;
}

.final-cta-section {
  position: relative;
  overflow: hidden;
  padding: 54px 0;
  background: var(--navy);
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
}

.final-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.final-cta-inner {
  position: relative;
  display: grid;
  justify-items: center;
  max-width: 760px;
  text-align: center;
}

.final-cta-inner h2,
.final-cta-inner p {
  color: var(--white);
}

.final-cta-inner p {
  opacity: 0.88;
}

.site-footer {
  padding: 42px 0 150px;
  background: var(--white);
}

.footer-grid {
  display: grid;
  gap: 26px;
}

.footer-brand p {
  max-width: 520px;
  margin: 14px 0 0;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-links h2,
.footer-contact h2 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.footer-links a,
.footer-contact a {
  color: var(--muted);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--green-700);
}

.footer-contact p {
  margin-bottom: 0;
}

.copyright {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.sticky-download-bar {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  z-index: 60;
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(6, 27, 51, 0.96), rgba(10, 54, 92, 0.96));
  box-shadow: 0 18px 42px rgba(6, 27, 51, 0.28);
}

.sticky-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--white);
}

.sticky-brand img {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--white);
}

.sticky-brand strong,
.sticky-brand span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sticky-brand strong {
  line-height: 1.2;
}

.sticky-brand span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
}

@media (min-width: 640px) {
  body {
    padding-bottom: 112px;
  }

  .container {
    width: min(100% - 48px, 1160px);
  }

  .benefit-grid,
  .feature-grid,
  .group-grid,
  .audience-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-visual {
    min-height: 430px;
  }

  .screenshot-rail {
    grid-auto-columns: 270px;
  }

  .pricing-download,
  .sticky-download-bar {
    grid-template-columns: 1fr minmax(330px, 430px);
  }

  .sticky-download-bar {
    right: 24px;
    left: 24px;
    width: min(100% - 48px, 760px);
    margin-inline: auto;
  }
}

@media (min-width: 900px) {
  body {
    padding-bottom: 0;
  }

  .site-header {
    --header-height: 78px;
  }

  .menu-toggle,
  .mobile-nav {
    display: none;
  }

  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
  }

  .nav-link {
    color: var(--navy);
    font-size: 0.94rem;
    font-weight: 700;
  }

  .nav-link:hover {
    color: var(--green-700);
  }

  .header-download {
    display: none;
  }

  .language-switch.compact {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding: 58px 0 70px;
  }

  .hero-bg {
    height: 64%;
    opacity: 0.58;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
    align-items: center;
    gap: 28px;
  }

  .hero-copy {
    padding-top: 22px;
  }

  .hero-lead {
    font-size: 1.2rem;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .footer-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(180px, 0.7fr) minmax(220px, 0.8fr);
  }

  .site-footer {
    padding-bottom: 42px;
  }

  .sticky-download-bar {
    display: none;
  }
}

@media (min-width: 1180px) {
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .brand {
    font-size: 1.15rem;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }

  .header-download {
    min-height: 42px;
    padding-inline: 12px;
  }

  .store-button strong {
    font-size: 0.86rem;
  }

  .hero-visual {
    min-height: 330px;
  }

  .phone-mockup {
    width: 206px;
  }

  .phone-mockup.compact {
    width: 150px;
  }

  .sticky-brand span {
    display: none;
  }
}
