:root {
  --ink: #17332e;
  --muted: #5b6f6a;
  --paper: #f7fbf8;
  --surface: #ffffff;
  --mint: #dff4e9;
  --teal: #087a68;
  --teal-dark: #07594e;
  --amber: #f3b64b;
  --line: #d9e7e1;
  --shadow: 0 22px 56px rgba(17, 65, 56, 0.13);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans Thai", "Leelawadee UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: var(--teal-dark); }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 20; padding: 10px 14px; background: #fff; }
.skip-link:focus { left: 8px; }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(217, 231, 225, 0.9);
  background: rgba(247, 251, 248, 0.94);
  backdrop-filter: blur(14px);
}
.nav-inner { min-height: 72px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 900; letter-spacing: -0.02em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: var(--mint); font-size: 20px; }
.nav-links { display: flex; gap: 20px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 750; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--teal); }
.language-switch { display: inline-flex; padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; font-weight: 850; }

.hero { position: relative; overflow: hidden; padding: 76px 0 68px; background: radial-gradient(circle at 86% 10%, #c9efe2 0, transparent 34%), linear-gradient(145deg, #f7fbf8 20%, #eef8f2 100%); }
.hero::after { content: ""; position: absolute; width: 360px; height: 360px; right: -190px; bottom: -230px; border: 55px solid rgba(243, 182, 75, 0.16); border-radius: 50%; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr); gap: 54px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--teal); font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 7px 12px; border-radius: 999px; background: #fff3d7; color: #754e06; border: 1px solid #f3d18d; font-size: 13px; font-weight: 850; }
h1, h2, h3 { margin-top: 0; line-height: 1.22; letter-spacing: -0.025em; }
h1 { max-width: 720px; margin-bottom: 20px; font-size: clamp(38px, 5.5vw, 68px); }
h2 { font-size: clamp(29px, 4vw, 44px); }
h3 { font-size: 20px; }
.hero-copy { max-width: 650px; margin: 0; color: var(--muted); font-size: clamp(17px, 2vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 18px; border-radius: 13px; background: var(--teal); color: #fff; text-decoration: none; font-weight: 900; box-shadow: 0 12px 24px rgba(8, 122, 104, 0.18); }
.button:hover, .button:focus-visible { background: var(--teal-dark); }
.button.secondary { border: 1px solid var(--line); background: #fff; color: var(--teal-dark); box-shadow: none; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; padding: 0; list-style: none; color: var(--muted); font-size: 14px; font-weight: 700; }
.hero-trust li::before { content: "✓"; margin-right: 7px; color: var(--teal); font-weight: 950; }
.hero-art { margin: 0; padding: 13px; border: 1px solid rgba(255, 255, 255, 0.86); border-radius: 28px; background: rgba(255, 255, 255, 0.78); box-shadow: var(--shadow); }
.hero-art img { width: 100%; height: auto; object-fit: cover; object-position: center top; border-radius: 18px; background: #e8f1ed; }
.hero-art figcaption { padding: 12px 5px 2px; color: var(--muted); font-size: 12px; }

section { padding: 72px 0; }
.section-head { max-width: 760px; margin-bottom: 30px; }
.section-head p:last-child { color: var(--muted); font-size: 17px; }
.steps, .feature-grid, .plan-grid, .boundary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .plan-card, .boundary-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 10px 26px rgba(22, 69, 60, 0.06); }
.step-number { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 16px; border-radius: 12px; background: var(--mint); color: var(--teal-dark); font-weight: 950; }
.card p, .plan-card p, .boundary-card p { margin-bottom: 0; color: var(--muted); }
.features { background: #edf7f2; }
.feature-icon { font-size: 24px; margin-bottom: 12px; }
.gallery { overflow: hidden; }
.screen-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.screen-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.screen-card:first-child { grid-column: 1 / -1; }
.screen-frame { aspect-ratio: 16 / 9; padding: 12px; overflow: hidden; background: linear-gradient(145deg, #e7f5ef, #f9f4e8); }
.screen-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 18px; background: #e8f1ed; }
.screen-copy { padding: 20px 22px 22px; }
.screen-copy p { margin-bottom: 0; color: var(--muted); }
.plans { background: #fff; }
.plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan-card.featured { border-color: rgba(8, 122, 104, 0.55); background: linear-gradient(145deg, #f8fffc, #e9f7f1); }
.plan-label { color: var(--teal); font-weight: 950; }
.plan-price { margin: 6px 0 16px; font-size: 32px; font-weight: 950; }
.plan-card ul { margin: 0; padding-left: 21px; color: var(--muted); }
.plan-card li + li { margin-top: 8px; }
.plan-note { margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: #fff3d7; color: #674707; }
.boundaries { background: #f5f8f6; }
.boundary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.support-band { background: #143f37; color: #fff; }
.support-band .section-head p, .support-band p { color: rgba(255, 255, 255, 0.82); }
.support-links { display: flex; flex-wrap: wrap; gap: 12px; }
.support-links a { display: inline-flex; min-height: 48px; align-items: center; padding: 11px 16px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 12px; color: #fff; font-weight: 850; text-decoration: none; }
.support-links a:first-child { background: #fff; color: var(--teal-dark); }
footer { padding: 28px 0; border-top: 1px solid var(--line); background: #fff; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }

.policy { padding: 64px 0 84px; }
.policy article { max-width: 860px; margin: 0 auto; padding: 36px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.policy .updated { color: var(--muted); }
.policy h2 { margin-top: 34px; font-size: 25px; }
.policy li + li { margin-top: 8px; }
.notice { padding: 15px 17px; border-left: 4px solid var(--amber); border-radius: 10px; background: #fff6df; }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 760px; }
  .steps, .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-links { display: none; }
  .language-switch { margin-left: auto; }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .nav-inner { min-height: 64px; }
  .hero { padding: 44px 0 38px; }
  .hero-grid { gap: 32px; }
  h1 { font-size: clamp(34px, 11vw, 48px); }
  section { padding: 52px 0; }
  .hero-actions, .support-links { align-items: stretch; flex-direction: column; }
  .button, .support-links a { width: 100%; }
  .steps, .feature-grid, .screen-gallery, .plan-grid, .boundary-grid { grid-template-columns: 1fr; }
  .screen-card:first-child { grid-column: auto; }
  .card, .plan-card, .boundary-card { padding: 20px; }
  .policy { padding: 38px 0 58px; }
  .policy article { padding: 24px 20px; }
}

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