:root {
  --bg: #f5f6f4;
  --bg-elevated: #ffffff;
  --ink: #1c2420;
  --ink-soft: #4a5550;
  --muted: #6f7a74;
  --line: #d9ddd7;
  --accent: #1f4a3d;
  --accent-hover: #16362d;
  --accent-soft: #e4eee9;
  --accent-mid: #3d6b5a;
  --warm: #c4a574;
  --danger: #8b3a3a;
  --ok: #2a6b4f;
  --shadow: 0 12px 40px rgba(28, 36, 32, 0.06);
  --radius: 2px;
  --font-display: "Fraunces", "Sarabun", Georgia, serif;
  --font-body: "Sarabun", "Noto Sans Thai", sans-serif;
  --space: clamp(1rem, 2vw, 1.5rem);
  --max: 1120px;
  --header-h: 4.25rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(61, 107, 90, 0.08), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(196, 165, 116, 0.1), transparent 50%),
    var(--bg);
  min-height: 100vh;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2.1rem, 4.5vw, 3.35rem); margin: 0 0 0.75rem; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); margin: 0 0 0.85rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1rem; color: var(--ink-soft); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 246, 244, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.header-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.35rem;
  background:
    linear-gradient(135deg, var(--accent) 0%, var(--accent-mid) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 35% 18% auto 18%;
  height: 2px;
  background: #e8f0ec;
  transform: rotate(-28deg);
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--accent);
}

.nav-cta {
  padding: 0.45rem 0.9rem;
  background: var(--accent);
  color: #f7faf8 !important;
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--ink);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.btn-primary {
  background: var(--accent);
  color: #f4f8f6;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--accent-mid);
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
  animation: heroDrift 22s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 36, 32, 0.25) 0%, rgba(28, 36, 32, 0.72) 72%, rgba(28, 36, 32, 0.88) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 5.5rem 0 3.5rem;
  color: #f3f6f4;
  animation: riseIn 0.9s ease both;
}

.hero-content .brand-hero {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  letter-spacing: -0.04em;
  margin: 0 0 1rem;
  color: #fff;
}

.hero-content p {
  max-width: 34rem;
  color: rgba(243, 246, 244, 0.88);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero .btn-primary {
  background: #e8f0ec;
  color: var(--accent);
}

.hero .btn-primary:hover {
  background: #fff;
  color: var(--accent-hover);
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #f3f6f4;
}

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-tight {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1.15rem;
  max-width: 40rem;
}

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .split { grid-template-columns: 1.05fr 0.95fr; }
  .split.reverse { grid-template-columns: 0.95fr 1.05fr; }
  .split.reverse > :first-child { order: 2; }
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.media-frame:hover img {
  transform: scale(1.03);
}

.proof-strip {
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
}

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

.proof-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.proof-item span {
  color: var(--muted);
  font-size: 0.95rem;
}

.course-grid,
.blog-grid,
.tier-grid,
.review-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .course-grid,
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: repeat(3, 1fr); }
}

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

.course-tile,
.blog-tile,
.tier,
.review-card,
.faq-item,
.module,
.case-block {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.course-tile a,
.blog-tile a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.course-tile img,
.blog-tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tile-body,
.tier,
.review-card,
.faq-item,
.module,
.case-block {
  padding: 1.25rem 1.35rem 1.45rem;
}

.tile-meta,
.meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
}

.tier.featured {
  border-color: var(--accent-mid);
  box-shadow: var(--shadow);
  position: relative;
}

.tier .price {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  margin: 0.4rem 0 1rem;
}

.tier ul {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--ink-soft);
}

.tier li { margin-bottom: 0.4rem; }

.benefit-list {
  display: grid;
  gap: 1.25rem;
}

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

.benefit {
  padding: 0.25rem 0;
  border-top: 1px solid var(--line);
  padding-top: 1.15rem;
  animation: fadeUp 0.7s ease both;
}

.benefit:nth-child(2) { animation-delay: 0.1s; }
.benefit:nth-child(3) { animation-delay: 0.2s; }

.quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  color: var(--ink);
  line-height: 1.45;
  margin: 0 0 1rem;
}

.quote-attr {
  color: var(--muted);
  font-size: 0.92rem;
}

.stars {
  color: var(--warm);
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-hero p {
  max-width: 38rem;
}

.form {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

label {
  font-size: 0.95rem;
  color: var(--ink);
}

input,
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  font: inherit;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(31, 74, 61, 0.25);
  border-color: var(--accent-mid);
}

.field-error {
  color: var(--danger);
  font-size: 0.88rem;
  min-height: 1.2em;
}

.form-status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  display: none;
}

.form-status.is-success {
  display: block;
  background: #e7f3ec;
  color: var(--ok);
  border: 1px solid #b7d8c5;
}

.form-status.is-error {
  display: block;
  background: #f7eaea;
  color: var(--danger);
  border: 1px solid #e0bcbc;
}

.inline-error {
  margin: 0.75rem 0;
  padding: 0.75rem 1rem;
  background: #f7eaea;
  color: var(--danger);
  border: 1px solid #e0bcbc;
  border-radius: var(--radius);
}

.legal {
  max-width: 46rem;
}

.legal h2 {
  margin-top: 2rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.legal th,
.legal td {
  border: 1px solid var(--line);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal th {
  background: var(--accent-soft);
}

.address-block {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}

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

.faq-item details p {
  margin-top: 0.75rem;
}

.module + .module {
  margin-top: 0.75rem;
}

.cta-band {
  background: var(--accent);
  color: #eef4f1;
  padding: clamp(2.75rem, 6vw, 4rem) 0;
}

.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(238, 244, 241, 0.88); max-width: 34rem; }

.site-footer {
  background: #15261f;
  color: rgba(232, 240, 236, 0.82);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-inner {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.footer-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: #fff;
  margin: 0 0 0.35rem;
}

.footer-tag {
  color: rgba(232, 240, 236, 0.7);
  margin-bottom: 2rem;
}

.footer-cols {
  display: grid;
  gap: 1.75rem;
}

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

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

.footer-col h2 {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a8c5b8;
  margin: 0 0 0.85rem;
  font-family: var(--font-body);
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: rgba(232, 240, 236, 0.82);
  text-decoration: none;
  margin-bottom: 0.45rem;
  font-size: 0.95rem;
}

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

.footer-contact p {
  color: rgba(232, 240, 236, 0.78);
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(232, 240, 236, 0.12);
  font-size: 0.9rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 60;
  max-width: 420px;
  margin-left: auto;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  display: none;
}

.cookie-banner.is-visible { display: block; animation: riseIn 0.45s ease both; }

.cookie-banner p {
  font-size: 0.92rem;
  margin-bottom: 0.9rem;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-actions .btn {
  padding: 0.55rem 0.95rem;
  font-size: 0.92rem;
}

.not-found {
  min-height: 60vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 3rem 1rem;
}

.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  color: var(--accent);
  line-height: 1;
  margin: 0;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroDrift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0;
    display: none;
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 0.7rem 0.4rem;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-cta {
    margin-top: 0.65rem;
    text-align: center;
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
