:root {
  --navy-950: #06152f;
  --navy-900: #071a3b;
  --navy-800: #0c2858;
  --blue-700: #0c46bf;
  --blue-600: #1261e8;
  --blue-100: #e8f0ff;
  --paper: #ffffff;
  --surface: #f3f6fb;
  --ink: #111a2c;
  --muted: #5c6679;
  --gold: #ffd447;
  --gold-dark: #efb814;
  --red: #ee2737;
  --green: #168b4b;
  --line: #d8e0ee;
  --radius: 8px;
  --max: 1180px;
  --shadow: 0 20px 48px rgba(6, 21, 47, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
  overflow-x: hidden;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Tahoma, "Noto Sans Thai", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button,
a {
  font: inherit;
}

button {
  border: 0;
}

h1,
h2,
h3,
p,
span,
strong,
li,
small {
  overflow-wrap: break-word;
  word-break: normal;
}

.page-shell {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto minmax(210px, 1fr);
  align-items: center;
  min-height: 70px;
  padding: 10px max(22px, calc((100vw - var(--max)) / 2));
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(216, 224, 238, 0.9);
  box-shadow: 0 8px 28px rgba(6, 21, 47, 0.08);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--navy-950);
  background: var(--gold);
  border-radius: var(--radius);
  font-family: Arial, sans-serif;
}

.brand-name {
  font-size: 0.98rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.main-nav a,
.brand,
.header-cta,
.button,
.password-box button,
.mobile-password button {
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.main-nav a:hover {
  color: var(--blue-700);
}

.header-cta {
  justify-self: end;
  padding: 11px 18px;
  color: white;
  background: var(--red);
  border-radius: var(--radius);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(238, 39, 55, 0.25);
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.header-cta:focus-visible,
.button:focus-visible,
.main-nav a:focus-visible,
.password-box button:focus-visible,
.mobile-password button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.hero {
  position: relative;
  color: white;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(120deg, var(--navy-950), var(--navy-800));
  background-size: 54px 54px, 54px 54px, auto;
  border-bottom: 4px solid var(--blue-600);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: center;
  padding-block: 28px 34px;
}

.hero-copy,
.hero-media {
  min-width: 0;
  border-radius: var(--radius);
}

.hero-copy {
  padding: clamp(24px, 2.6vw, 34px);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 4px solid var(--gold);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.2);
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.hero .eyebrow {
  color: var(--gold);
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 3.55vw, 3.45rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h1 span {
  display: inline;
  color: var(--gold);
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 700;
  line-height: 1.58;
}

.offer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.offer-list li {
  padding: 8px 11px;
  color: white;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 900;
}

.hero-actions,
.download-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 10px;
  align-items: stretch;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 13px 20px;
  border-radius: var(--radius);
  font-weight: 900;
  text-align: center;
  cursor: pointer;
}

.button-primary {
  color: var(--navy-950);
  background: linear-gradient(180deg, #ffe472, var(--gold));
  border: 1px solid #ffe993;
  box-shadow: 0 14px 28px rgba(255, 212, 71, 0.2);
}

.button-primary:hover {
  background: #ffe478;
  box-shadow: 0 18px 34px rgba(255, 212, 71, 0.3);
}

.password-box {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label button"
    "value button"
    "hint button";
  gap: 0 10px;
  align-content: center;
  min-width: 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
}

.password-box span {
  grid-area: label;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
  font-weight: 800;
}

.password-box strong {
  grid-area: value;
  color: var(--gold);
  font-family: Arial, sans-serif;
  font-size: 1.45rem;
  line-height: 1.05;
}

.password-box small {
  grid-area: hint;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 700;
}

.password-box button,
.mobile-password button {
  grid-area: button;
  align-self: center;
  min-height: 38px;
  padding: 8px 12px;
  color: white;
  background: var(--navy-950);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.password-box button:hover,
.mobile-password button:hover {
  background: var(--blue-700);
}

.hero-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.55;
}

.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.2);
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  border: 10px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius);
}

.hero-media figcaption {
  position: absolute;
  right: 34px;
  bottom: 34px;
  max-width: 360px;
  padding: 13px 15px;
  color: white;
  background: rgba(6, 21, 47, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.hero-media figcaption strong,
.hero-media figcaption span {
  display: block;
}

.hero-media figcaption strong {
  color: var(--gold);
  margin-bottom: 3px;
}

.hero-media figcaption span {
  font-size: 0.82rem;
  line-height: 1.45;
}

.trust-strip {
  position: relative;
  z-index: 4;
  margin-top: -18px;
}

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

.trust-grid > div {
  min-width: 0;
  padding: 15px 14px;
  color: white;
  background: linear-gradient(180deg, var(--blue-600), var(--navy-900));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.trust-grid span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  line-height: 1.4;
}

.section {
  padding-block: clamp(58px, 7vw, 88px);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 30px;
  text-align: center;
}

.section-heading.left {
  margin-inline: 0;
  text-align: left;
}

.section-heading h2,
.contents-intro h2,
.fit-layout h2,
.download-panel h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading > p:last-child,
.contents-intro > p,
.download-panel > p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.65;
}

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

.problem-grid article,
.module-grid article,
.step-grid article {
  min-width: 0;
  padding: 20px 17px;
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid var(--blue-600);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(6, 21, 47, 0.08);
}

.problem-grid article > span,
.module-grid article > span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 13px;
  padding: 4px 9px;
  color: var(--navy-900);
  background: var(--gold);
  border-radius: var(--radius);
  font-family: Arial, sans-serif;
  font-size: 0.74rem;
  font-weight: 900;
}

.problem-grid h3,
.module-grid h3,
.step-grid h3,
.start-list strong {
  margin-bottom: 9px;
  font-size: 1rem;
  line-height: 1.35;
}

.problem-grid p,
.module-grid p,
.step-grid p,
.start-list p {
  margin-bottom: 13px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.58;
}

.problem-grid article > strong {
  display: block;
  margin-top: auto;
  color: var(--blue-700);
  font-size: 0.78rem;
}

.problem-grid article {
  display: flex;
  flex-direction: column;
}

.contents-section {
  padding-top: 68px;
  background: white;
  border-block: 1px solid var(--line);
}

.contents-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.5fr);
  gap: 20px;
  align-items: stretch;
}

.contents-intro {
  padding: clamp(24px, 3vw, 34px);
  color: white;
  background: var(--navy-900);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contents-intro > p {
  color: rgba(255, 255, 255, 0.76);
}

.contents-intro img {
  width: 100%;
  margin-top: 22px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 24%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
}

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

.module-grid article {
  box-shadow: none;
}

.module-grid p {
  margin-bottom: 0;
}

.inline-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 20px;
  padding: 18px 20px;
  color: white;
  background: linear-gradient(100deg, var(--navy-900), var(--blue-700));
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.inline-cta span,
.inline-cta strong {
  display: block;
}

.inline-cta span {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
}

.inline-cta strong {
  margin-top: 4px;
}

.inline-cta .button {
  min-width: 185px;
}

.start-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.35fr);
  gap: 42px;
  align-items: start;
}

.start-list {
  display: grid;
  gap: 10px;
}

.start-list article {
  position: relative;
  padding: 19px 20px 17px 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(6, 21, 47, 0.07);
}

.start-list article::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  content: "";
  background: var(--gold);
}

.start-list span,
.start-list strong {
  display: block;
}

.start-list span {
  margin-bottom: 4px;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 900;
}

.start-list p {
  margin-bottom: 0;
}

.fit-section {
  padding-block: clamp(58px, 7vw, 82px);
  color: white;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    var(--navy-900);
  background-size: 52px 52px;
  border-block: 4px solid var(--blue-600);
}

.fit-layout > div:first-child {
  max-width: 860px;
  margin-bottom: 28px;
}

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

.fit-columns article {
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.fit-columns h3 {
  margin-bottom: 14px;
  color: var(--gold);
}

.fit-columns ul {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fit-columns li {
  position: relative;
  padding-left: 22px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  line-height: 1.5;
}

.fit-columns li::before {
  position: absolute;
  top: 0.22em;
  left: 0;
  color: var(--gold);
  content: "✓";
  font-weight: 900;
}

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

.step-grid article {
  position: relative;
  padding-left: 72px;
}

.step-grid article > span {
  position: absolute;
  top: 20px;
  left: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--navy-950);
  background: var(--gold);
  border-radius: 50%;
  font-family: Arial, sans-serif;
  font-weight: 900;
}

.step-grid p {
  margin-bottom: 0;
}

.faq-section {
  background: white;
  border-top: 1px solid var(--line);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.68fr) minmax(0, 1.45fr);
  gap: 42px;
  align-items: start;
}

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

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-list summary {
  position: relative;
  padding: 17px 48px 17px 18px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  position: absolute;
  top: 50%;
  right: 18px;
  content: "+";
  color: var(--blue-700);
  font-family: Arial, sans-serif;
  font-size: 1.35rem;
  font-weight: 900;
  transform: translateY(-50%);
}

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

.faq-list details p {
  margin: 0;
  padding: 0 18px 17px;
  color: var(--muted);
  line-height: 1.6;
}

.download-section {
  padding-block: 68px;
  background: var(--surface);
}

.download-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  color: white;
  background:
    linear-gradient(90deg, rgba(6, 21, 47, 0.97) 0%, rgba(7, 26, 59, 0.93) 58%, rgba(12, 70, 191, 0.72) 100%),
    url("assets/facebook-ads-content-marketing-thailand-2026.png") right center / cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.download-panel h2,
.download-panel > p,
.download-checks,
.download-actions,
.download-panel .section-kicker {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.download-panel > p {
  color: rgba(255, 255, 255, 0.78);
}

.download-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 20px 0;
}

.download-checks span {
  padding: 11px 13px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 800;
}

.download-actions {
  max-width: 860px;
}

.button-large {
  min-height: 70px;
  font-size: 1.06rem;
}

.password-final {
  background: rgba(255, 255, 255, 0.14);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 24px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.mobile-download {
  display: none;
}

[data-reveal] {
  opacity: 1;
  transform: none;
}

html.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 500ms ease, transform 500ms ease;
}

html.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero-grid,
  .contents-layout,
  .start-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-media {
    width: 100%;
  }

  .hero-media {
    max-width: 720px;
    margin-inline: auto;
  }

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

  .contents-intro img {
    aspect-ratio: 16 / 7;
  }

  .section-heading.left {
    max-width: 760px;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 86px;
  }

  .page-shell {
    width: min(100%, calc(100vw - 28px));
  }

  .topbar {
    min-height: 62px;
    padding-inline: 14px;
  }

  .brand-name {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-cta {
    display: none;
  }

  .hero-grid {
    gap: 16px;
    padding-block: 26px 42px;
  }

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

  h1 {
    font-size: clamp(2.08rem, 10vw, 2.75rem);
  }

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

  .offer-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-list li {
    display: grid;
    place-items: center;
    min-height: 40px;
    padding: 7px;
    text-align: center;
    font-size: 0.8rem;
  }

  .hero-actions,
  .download-actions {
    grid-template-columns: 1fr;
  }

  .hero-media {
    order: -1;
    padding: 10px;
  }

  .hero-media img {
    border-width: 6px;
  }

  .hero-media figcaption {
    display: none;
  }

  .trust-strip {
    margin-top: -20px;
  }

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

  .section {
    padding-block: 54px;
  }

  .section-heading h2,
  .contents-intro h2,
  .fit-layout h2,
  .download-panel h2 {
    font-size: clamp(1.85rem, 8.8vw, 2.55rem);
  }

  .problem-grid,
  .module-grid,
  .fit-columns,
  .step-grid,
  .download-checks {
    grid-template-columns: 1fr;
  }

  .contents-intro,
  .fit-columns article {
    padding: 20px 17px;
  }

  .contents-intro img {
    aspect-ratio: 1;
  }

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

  .inline-cta .button {
    width: 100%;
  }

  .start-layout,
  .faq-layout {
    gap: 18px;
  }

  .download-section {
    padding-block: 42px;
  }

  .download-panel {
    padding: 26px 17px;
    background:
      linear-gradient(180deg, rgba(6, 21, 47, 0.96), rgba(7, 26, 59, 0.93)),
      url("assets/facebook-ads-content-marketing-thailand-2026.png") center / cover;
  }

  .footer {
    flex-direction: column;
    align-items: center;
    padding-bottom: 28px;
    text-align: center;
  }

  .mobile-download {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 8px;
    padding: 8px max(10px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -12px 30px rgba(6, 21, 47, 0.16);
    backdrop-filter: blur(14px);
  }

  .mobile-download .button {
    min-height: 52px;
    padding-inline: 12px;
  }

  .mobile-password {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "label button"
      "value button";
    align-items: center;
    min-width: 0;
    padding: 5px 7px 5px 10px;
    color: white;
    background: var(--navy-900);
    border-radius: var(--radius);
  }

  .mobile-password span {
    grid-area: label;
    font-size: 0.66rem;
    font-weight: 800;
  }

  .mobile-password strong {
    grid-area: value;
    color: var(--gold);
    font-family: Arial, sans-serif;
    font-size: 1rem;
  }

  .mobile-password button {
    grid-area: button;
    min-height: 38px;
    padding: 6px 8px;
    font-size: 0.7rem;
  }
}

@media (max-width: 430px) {
  .brand-name {
    max-width: 155px;
  }

  .hero-copy,
  .hero-media {
    max-width: 100%;
  }

  .hero-copy {
    padding-inline: 14px;
  }

  .trust-grid {
    gap: 7px;
  }

  .trust-grid > div {
    padding: 12px 8px;
  }

  .problem-grid article,
  .module-grid article,
  .step-grid article {
    padding-right: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
