:root {
  color-scheme: light;
  --green-950: #062d1f;
  --green-900: #07452c;
  --green-800: #075d36;
  --green-700: #0b7a42;
  --green-600: #11924d;
  --green-100: #eaf7e8;
  --green-50: #f4fbf1;
  --gold-500: #f7c638;
  --gold-300: #ffe48a;
  --cream: #fffdf5;
  --peach: #fff0dc;
  --ink: #10231a;
  --muted: #5c6b62;
  --line: rgba(6, 69, 44, 0.14);
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(20, 74, 44, 0.12);
  --shadow-soft: 0 14px 36px rgba(20, 74, 44, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 5% 8%, rgba(247, 198, 56, 0.15), transparent 28rem),
    radial-gradient(circle at 96% 30%, rgba(17, 146, 77, 0.09), transparent 32rem),
    var(--cream);
  color: var(--ink);
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(6, 69, 44, 0.08);
  background: rgba(255, 253, 245, 0.91);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--green-900);
  font-size: 1.35rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border: 2px solid var(--gold-500);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 22px rgba(7, 93, 54, 0.22);
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.nav-links a {
  padding: 9px 12px;
  border-radius: 999px;
  color: var(--green-950);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--green-100);
  outline: none;
}

.nav-links .nav-cta {
  margin-left: 6px;
  padding-inline: 18px;
  background: var(--green-700);
  color: #fff;
}

.hero {
  padding: 66px 0 78px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  align-items: center;
  gap: clamp(36px, 7vw, 94px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 7px 13px;
  border: 1px solid rgba(11, 122, 66, 0.18);
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  content: "";
  box-shadow: 0 0 0 4px rgba(247, 198, 56, 0.19);
}

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

h1,
h2,
h3 {
  line-height: 1.25;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  color: var(--green-950);
  font-size: clamp(2.65rem, 6vw, 5.35rem);
  font-weight: 950;
  letter-spacing: -0.045em;
}

h1 span {
  position: relative;
  display: inline-block;
  color: var(--green-700);
}

h1 span::after {
  position: absolute;
  z-index: -1;
  right: -0.08em;
  bottom: 0.06em;
  left: -0.08em;
  height: 0.22em;
  border-radius: 999px;
  background: var(--gold-300);
  content: "";
}

.lead {
  max-width: 650px;
  margin-bottom: 28px;
  color: #405349;
  font-size: clamp(1.05rem, 2vw, 1.23rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 23px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  box-shadow: 0 12px 28px rgba(11, 122, 66, 0.24);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 17px 34px rgba(11, 122, 66, 0.28);
  outline: none;
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: none;
  color: var(--green-900);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: var(--green-100);
}

.hero-note {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-art-wrap {
  position: relative;
}

.hero-art-wrap::before {
  position: absolute;
  inset: 11% -10% 8%;
  z-index: -1;
  border-radius: 48% 52% 45% 55%;
  background: linear-gradient(145deg, rgba(255, 228, 138, 0.76), rgba(234, 247, 232, 0.7));
  content: "";
  filter: blur(1px);
  transform: rotate(-7deg);
}

.hero-art {
  width: min(100%, 450px);
  margin-inline: auto;
  border: 10px solid #fff;
  border-radius: 42px;
  box-shadow: 0 38px 90px rgba(15, 87, 47, 0.20);
}

.trust-strip {
  position: relative;
  z-index: 2;
  margin-top: -28px;
}

.trust-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 17px;
  padding: 24px 28px;
  border: 1px solid rgba(247, 198, 56, 0.38);
  border-radius: 26px;
  background: linear-gradient(100deg, #fff8d9, #ffffff 64%);
  box-shadow: var(--shadow-soft);
}

.trust-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 15px;
  background: var(--gold-500);
  color: var(--green-950);
  font-size: 1.2rem;
  font-weight: 950;
}

.trust-card strong {
  display: block;
  margin-bottom: 3px;
  color: var(--green-950);
}

.trust-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.section {
  padding: 92px 0;
}

.section.soft {
  background: linear-gradient(180deg, rgba(234, 247, 232, 0.74), rgba(255, 253, 245, 0));
}

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

.section-heading h2 {
  margin-bottom: 14px;
  color: var(--green-950);
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 950;
  letter-spacing: -0.03em;
}

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

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.fact-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.fact-card::after {
  position: absolute;
  width: 92px;
  height: 92px;
  right: -30px;
  bottom: -34px;
  border-radius: 50%;
  background: var(--gold-300);
  content: "";
  opacity: 0.58;
}

.fact-label {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 800;
}

.fact-value {
  margin-bottom: 12px;
  color: var(--green-800);
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  font-weight: 950;
  line-height: 1.15;
}

.fact-card p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.example {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 24px;
  margin-top: 22px;
  padding: clamp(26px, 5vw, 48px);
  border-radius: 34px;
  background: var(--green-950);
  box-shadow: var(--shadow);
  color: #fff;
}

.example h3 {
  margin-bottom: 12px;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

.example .muted-light {
  color: rgba(255, 255, 255, 0.69);
}

.calculation {
  align-self: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
}

.calculation-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.calculation-row:last-child {
  margin-top: 6px;
  padding-top: 16px;
  border-bottom: 0;
  color: var(--gold-300);
  font-size: 1.18rem;
  font-weight: 950;
}

.preview-grid,
.eligibility-grid,
.download-card {
  display: grid;
  align-items: center;
  gap: clamp(32px, 7vw, 86px);
}

.preview-grid {
  grid-template-columns: minmax(320px, 0.75fr) 1fr;
}

.preview-image {
  width: min(100%, 390px);
  margin-inline: auto;
  border: 10px solid #fff;
  border-radius: 38px;
  box-shadow: var(--shadow);
}

.content-block h2 {
  margin-bottom: 18px;
  color: var(--green-950);
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.content-block > p {
  color: var(--muted);
}

.check-list,
.step-list,
.plain-list {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.plain-list li {
  position: relative;
  margin: 12px 0;
  padding-left: 40px;
}

.check-list li::before,
.plain-list li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  content: "✓";
  font-size: 0.84rem;
  font-weight: 950;
}

.eligibility-grid {
  grid-template-columns: 0.95fr 1.05fr;
}

.eligibility-card {
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(247, 198, 56, 0.42);
  border-radius: 34px;
  background: linear-gradient(145deg, #fff9df, #fff);
  box-shadow: var(--shadow-soft);
}

.eligibility-card h3 {
  margin-bottom: 18px;
  color: var(--green-950);
  font-size: 1.65rem;
}

.step-list {
  counter-reset: step;
}

.step-list li {
  position: relative;
  min-height: 56px;
  margin-bottom: 14px;
  padding: 5px 0 12px 70px;
  counter-increment: step;
}

.step-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: var(--green-700);
  box-shadow: 0 10px 20px rgba(11, 122, 66, 0.18);
  color: #fff;
  content: counter(step, decimal-leading-zero);
  font-weight: 950;
}

.download-card {
  grid-template-columns: 1.15fr 0.85fr;
  padding: clamp(32px, 6vw, 64px);
  border-radius: 40px;
  background:
    radial-gradient(circle at 90% 15%, rgba(247, 198, 56, 0.75), transparent 12rem),
    linear-gradient(135deg, var(--green-950), var(--green-700));
  box-shadow: 0 34px 80px rgba(7, 69, 44, 0.22);
  color: #fff;
}

.download-card h2 {
  margin-bottom: 15px;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 950;
  letter-spacing: -0.03em;
}

.download-card p {
  color: rgba(255, 255, 255, 0.74);
}

.play-button {
  display: inline-flex;
  min-height: 64px;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
  padding: 11px 23px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
  color: var(--green-950);
  text-decoration: none;
  transition: transform 160ms ease;
}

.play-button:hover,
.play-button:focus-visible {
  transform: translateY(-2px);
  outline: 3px solid var(--gold-500);
}

.play-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 1.25rem;
}

.play-button small,
.play-button strong {
  display: block;
  line-height: 1.25;
}

.play-button small {
  color: var(--muted);
  font-size: 0.71rem;
  text-transform: uppercase;
}

.download-visual {
  display: grid;
  min-height: 230px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.09);
}

.wallet-glyph {
  display: grid;
  width: 152px;
  height: 116px;
  place-items: center;
  border: 5px solid var(--gold-500);
  border-radius: 28px;
  background: linear-gradient(145deg, var(--green-600), var(--green-900));
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.23);
  color: var(--gold-300);
  font-size: 3rem;
  font-weight: 950;
  transform: rotate(-5deg);
}

.legal-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
}

.legal-note-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--peach);
  color: #9b581c;
  font-weight: 950;
}

.legal-note strong {
  display: block;
  margin-bottom: 4px;
  color: var(--green-950);
}

.legal-note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.site-footer {
  padding: 56px 0 30px;
  background: var(--green-950);
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.8fr;
  gap: 38px;
  padding-bottom: 36px;
}

.footer-brand {
  color: #fff;
}

.footer-title {
  margin-bottom: 14px;
  color: #fff;
  font-size: 1rem;
}

.footer-copy {
  max-width: 480px;
  margin-bottom: 0;
  font-size: 0.92rem;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold-300);
  outline: none;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
}

/* Delete-data page */
.subpage-main {
  padding: 72px 0 96px;
}

.subpage-heading {
  max-width: 800px;
  margin: 0 auto 34px;
  text-align: center;
}

.subpage-heading h1 {
  margin-inline: auto;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
}

.subpage-heading p {
  color: var(--muted);
}

.delete-layout {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  align-items: start;
  gap: 24px;
}

.warning-card,
.form-card {
  padding: clamp(26px, 4vw, 40px);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.warning-card {
  border: 1px solid rgba(178, 92, 20, 0.19);
  background: linear-gradient(145deg, #fff7e9, #fff);
}

.warning-symbol {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 18px;
  background: #ffe8bd;
  color: #95500e;
  font-size: 1.4rem;
  font-weight: 950;
}

.warning-card h2,
.form-card h2 {
  margin-bottom: 13px;
  color: var(--green-950);
  font-size: 1.75rem;
}

.warning-card p,
.warning-card li,
.form-intro {
  color: var(--muted);
}

.warning-card ul {
  margin: 17px 0 0;
  padding-left: 22px;
}

.warning-card li {
  margin: 8px 0;
}

.field {
  margin-top: 22px;
}

.field label {
  display: block;
  margin-bottom: 8px;
  color: var(--green-950);
  font-weight: 900;
}

.field input {
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  border: 1px solid #cbd8ce;
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.field input:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(17, 146, 77, 0.12);
}

.field-hint {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.captcha-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 10px;
}

.captcha-image {
  width: 100%;
  height: 72px;
  border: 1px solid #cbd8ce;
  border-radius: 15px;
  background: var(--green-50);
  object-fit: cover;
}

.captcha-refresh {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--green-100);
  color: var(--green-800);
  cursor: pointer;
  font-weight: 900;
}

.captcha-refresh:hover,
.captcha-refresh:focus-visible {
  border-color: var(--green-600);
  outline: none;
}

.form-card .button {
  width: 100%;
  margin-top: 26px;
}

.form-status {
  min-height: 28px;
  margin: 14px 0 0;
  color: #a24725;
  font-size: 0.9rem;
  font-weight: 800;
}

.form-status.success {
  color: var(--green-700);
}

.modal-open {
  overflow: hidden;
}

.success-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
}

.success-modal[hidden] {
  display: none;
}

.success-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 45, 31, 0.66);
  backdrop-filter: blur(5px);
}

.success-dialog {
  position: relative;
  width: min(440px, 100%);
  padding: 38px 34px 32px;
  border: 1px solid rgba(247, 198, 56, 0.48);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
  text-align: center;
}

.success-check {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--green-600), var(--green-800));
  box-shadow: 0 15px 30px rgba(11, 122, 66, 0.24);
  color: #fff;
  font-size: 2rem;
  font-weight: 950;
}

.success-dialog h2 {
  margin-bottom: 10px;
  color: var(--green-950);
  font-size: 1.85rem;
}

.success-dialog p {
  margin-bottom: 24px;
  color: var(--muted);
}

.success-dialog .button {
  width: 100%;
}

@media (max-width: 980px) {
  .nav-links a:not(.nav-cta) {
    display: none;
  }

  .hero-grid,
  .preview-grid,
  .eligibility-grid,
  .download-card,
  .delete-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 48px;
  }

  .hero-copy {
    text-align: center;
  }

  .lead,
  .hero-actions {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

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

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

  .preview-grid .content-block {
    order: -1;
  }

  .download-visual {
    min-height: 190px;
  }

  .footer-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .footer-grid > :last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

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

  .nav {
    min-height: 68px;
  }

  .brand {
    font-size: 1.1rem;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .nav-links .nav-cta {
    padding: 8px 13px;
    font-size: 0.82rem;
  }

  .hero {
    padding: 46px 0 62px;
  }

  h1 {
    font-size: clamp(2.45rem, 14vw, 3.7rem);
  }

  .hero-art {
    width: min(92%, 410px);
    border-width: 7px;
    border-radius: 30px;
  }

  .trust-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .section {
    padding: 68px 0;
  }

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

  .fact-card {
    min-height: 0;
  }

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

  .preview-image {
    width: min(88%, 360px);
    border-width: 7px;
    border-radius: 28px;
  }

  .download-card {
    padding: 30px 23px;
    border-radius: 30px;
  }

  .download-visual {
    display: none;
  }

  .play-button {
    width: 100%;
    justify-content: center;
  }

  .legal-note {
    grid-template-columns: 1fr;
  }

  .footer-grid,
  .footer-bottom {
    display: grid;
    grid-template-columns: 1fr;
  }

  .footer-grid > :last-child {
    grid-column: auto;
  }

  .subpage-main {
    padding: 50px 0 70px;
  }

  .warning-card,
  .form-card {
    padding: 24px 20px;
    border-radius: 24px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
