:root {
  --navy: #08366f;
  --blue: #367fe4;
  --sky: #d3e7fc;
  --ink: #062c4e;
  --line: #c4d9f0;
  --muted: #526f93;
  font-family: Sarabun, Tahoma, sans-serif;
  color: var(--ink);
  background: var(--sky);
  font-size: 16px;
  line-height: 1.55;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
button,
.button,
nav,
.steps {
  font-family: Kanit, Tahoma, sans-serif;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 23px;
  line-height: 1.3;
}
h3 {
  font-size: 17px;
  line-height: 1.4;
}
a {
  color: inherit;
}
button,
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 18px;
  background: white;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.35;
  text-decoration: none;
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.primary {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
  font-weight: 500;
  min-height: 44px;
}
.primary:hover {
  background: #104885;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #eebf2f;
  outline-offset: 3px;
}
input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 9px 11px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: white;
}
input::placeholder {
  color: #8799b0;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  background: white;
  padding: 10px;
}
.skip-link:focus {
  top: 10px;
}
.top {
  background: var(--blue);
  color: white;
}
.top-inner {
  max-width: 1200px;
  min-height: 76px;
  margin: auto;
  padding: 8px 32px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.top img {
  display: block;
  width: 154px;
  height: 58px;
  object-fit: contain;
}
.top nav {
  display: flex;
  gap: 30px;
  align-items: center;
  flex: 1;
}
.top nav a {
  text-decoration: none;
  font-size: 16px;
}
.top nav a:hover {
  text-decoration: underline;
}
.referrer {
  font-size: 12px;
  border: 1px solid #ffffff99;
  padding: 7px 12px;
  border-radius: 30px;
  max-width: 220px;
  overflow-wrap: anywhere;
}
.menu-toggle {
  display: none;
}
.mobile-break {
  display: none;
}
main {
  width: 100%;
  background: var(--sky);
}
main > .benefits,
main > .purchase-layout,
main > .steps {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--sky);
  min-height: 460px;
  padding-inline: max(0px, calc((100% - 1200px) / 2));
  display: grid;
  grid-template-columns: 1.5fr 1fr;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -190px;
  top: -270px;
  width: max(780px, calc(50vw + 190px));
  height: 720px;
  border-radius: 50%;
  background: #5599ec;
}
.hero-copy {
  align-self: center;
  padding: 64px 0 64px 52px;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.hero h2 {
  font-size: clamp(22px, 2.35vw, 30px);
  margin: 10px 0 15px;
  font-weight: 500;
}
.hero p {
  color: #365d8a;
  font-size: 18px;
  line-height: 1.5;
}
.hero p br {
  display: none;
}
.hero .button {
  margin-top: 24px;
  min-width: 245px;
}
.hero-visual {
  height: 440px;
  align-self: end;
  position: relative;
}
.hero-visual img {
  width: 100%;
  height: 98%;
  object-fit: contain;
  object-position: center bottom;
  position: absolute;
  bottom: 0;
  right: 0;
}
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px 28px;
  background: transparent;
  border-bottom: 1px solid #bdd6f1;
  padding: 28px 52px 18px;
}
.benefits article {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.benefits h3 {
  font-size: 16px;
}
.benefits p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}
.benefit-icon {
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eaf4ff;
  border: 1px solid #accff4;
  color: #1769c9;
}
.benefit-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.benefits-note {grid-column:1/-1;font-size:11px;color:var(--muted);margin-top:-8px}
.benefits-note summary {cursor:pointer}
.benefits-note p {font-size:12px;margin-top:8px}
.purchase-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 40px;
  padding: 28px 52px 24px;
  scroll-margin-top: 20px;
}
.course-column {
  min-width: 0;
}
.course-column > h2 {
  margin-bottom: 10px;
}
.switch {
  display: flex;
  gap: 10px;
  margin-bottom: 17px;
}
.switch button {
  flex: 1;
  font-weight: 500;
  border-color: var(--blue);
}
.switch button[aria-pressed="true"] {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}
#course-description {
  font-size: 14px;
  color: var(--muted);
  margin: 3px 0 10px;
  max-width: 510px;
}
.topics {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 17px;
}
.topics span {
  background: #e6f2ff;
  color: #254c80;
  border-radius: 25px;
  padding: 4px 15px;
  font-size: 12px;
}
.teacher-switch {
  display: flex;
  gap: 12px;
  margin: 8px 0 18px;
}
.teacher-switch button {
  border-radius: 25px;
  min-height: 36px;
  padding: 6px 20px;
  font-size: 14px;
}
.teacher-switch button::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #9aaac1;
  margin-right: 9px;
}
.teacher-switch button[aria-pressed="true"] {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}
.teacher-switch button[aria-pressed="true"]::before {
  border: 4px solid white;
  background: var(--blue);
}
.packages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.packages button {
  position: relative;
  display: block;
  text-align: center;
  padding: 14px 7px;
  min-height: 108px;
}
.packages strong,
.packages b,
.packages small {
  display: block;
}
.packages strong {
  font-size: 17px;
}
.packages b {
  font-size: 23px;
  margin: 3px 0;
}
.packages small {
  font-family: Sarabun, Tahoma, sans-serif;
  font-size: 12px;
}
.packages button[aria-pressed="true"] {
  background: #edf7ff;
  border: 2px solid #1681ff;
  padding: 13px 6px;
}
.packages button[aria-pressed="true"]::after {
  content: "✓";
  position: absolute;
  right: -6px;
  top: -9px;
  border: 3px solid white;
  background: #0777ff;
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.price-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0 15px;
}
.faq {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.faq h2 {
  font-size: 21px;
  margin-bottom: 8px;
}
.faq details {
  background: #e6f1fd;
  border-radius: 5px;
  margin: 6px 0;
  padding: 9px 12px;
  font-size: 13px;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "⌄";
  color: #0872dd;
}
.faq details[open] summary::after {
  content: "⌃";
}
.faq details p {
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.7;
}
.checkout {
  align-self: start;
  background: #eaf3fd;
  border: 1px solid #91b8e4;
  border-radius: 9px;
  padding: 18px;
  min-width: 0;
}
.checkout h2 {
  margin-bottom: 12px;
}
.checkout label {
  display: block;
  font-size: 13px;
  margin-bottom: 10px;
}
.checkout label input {
  margin-top: 4px;
}
.checkout .primary {
  width: 100%;
  font-size: 15px;
}
.price-summary {
  padding: 11px;
  background: #f1f7ff;
  border: 1px solid #d7e7fb;
  border-radius: 6px;
  margin: 12px 0;
}
.price-summary h3 {
  font-size: 15px;
}
.price-summary > small {
  display: block;
  font-size: 12px;
  margin: 4px 0 8px;
}
.price-summary p {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin: 5px 0;
}
.price-summary .total {
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 18px;
  font-weight: bold;
  color: var(--navy);
}
.price-summary .total b {
  font-family: Kanit, sans-serif;
  font-size: 23px;
}
.contact-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 18px 0 10px;
  text-align: center;
}
.contact-heading::before,
.contact-heading::after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.contacts .button {
  font-size: 12px;
  padding: 10px 5px;
  border: 0;
}
.contacts .line {
  background: #08a939;
  color: white;
}
.contacts .messenger {
  background: #0879fa;
  color: white;
}
.contacts .telephone {
  grid-column: 1/-1;
  font-size: 14px;
  padding: 6px;
  color: var(--navy);
  background: transparent;
}
.muted {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.payment-note {
  background: #e0efff;
  border-radius: 5px;
  padding: 11px;
  text-align: center;
  font-size: 12px;
  margin-top: 10px;
}
#status {
  font-size: 13px;
  margin-top: 12px;
  overflow-wrap: anywhere;
  color: #963c20;
}
#status:empty {
  display: none;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  padding: 16px 52px;
  margin: 0;
  background: transparent;
  border-top: 1px solid #bdd6f1;
  gap: 22px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.steps b {
  display: grid;
  place-items: center;
  background: #0777ee;
  color: white;
  border-radius: 50%;
  height: 32px;
  flex: 0 0 32px;
}
.steps small {
  display: block;
  color: var(--muted);
  font-family: Sarabun, sans-serif;
  font-size: 11px;
}
footer {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 20px;
}
.upload {
  padding: 15px;
  background: #eef7ff;
  border: 1px dashed #79abe1;
  border-radius: 7px;
}
.upload input {
  font-size: 12px;
  padding: 5px;
}
.slip-preview {
  max-width: 100%;
  max-height: 300px;
  display: block;
  object-fit: contain;
  margin: 12px auto;
}
#bank {
  font-size: 14px;
  overflow-wrap: anywhere;
}
#bank h3 {
  margin: 12px 0;
}
#bank p {
  margin: 9px 0;
}
.receipt-card {
  background: #f1f7ff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}
.receipt-card img {
  display: block;
  margin-bottom: 15px;
}
.receipt-card h2 {
  font-size: 22px;
}
.receipt-card h3 {
  font-size: 26px;
  margin: 12px 0;
}
.receipt-card small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 12px;
}
.eyebrow {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}
#receipt > p {
  font-size: 13px;
  margin: 12px 0;
}
#receipt > button {
  width: 100%;
  margin: 5px 0;
  font-size: 13px;
}
.receipt-actions {
  display: grid;
  gap: 8px;
}
.receipt-steps {
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.8;
}
@media (max-width: 960px) {
  .top-inner {
    gap: 18px;
    padding-inline: 24px;
  }
  .top nav {
    gap: 18px;
  }
  .top nav a {
    font-size: 14px;
  }
  .hero-copy {
    padding-left: 28px;
  }
  .hero h1 {
    font-size: 32px;
  }
  .hero h2 {
    font-size: 23px;
  }
  .hero p {
    font-size: 15px;
  }
  .benefits {
    padding-inline: 28px;
    gap: 12px;
  }
  .benefits h3 {
    font-size: 14px;
  }
  .benefits p {
    font-size: 11px;
  }
  .purchase-layout {
    padding-inline: 28px;
    gap: 24px;
  }
  .steps {
    padding-inline: 28px;
  }
  .steps li {
    font-size: 12px;
  }
}
@media (max-width: 700px) {
  .top-inner {
    min-height: 60px;
    padding: 6px 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .top img {
    width: 115px;
    height: 45px;
  }
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
    color: white;
    background: transparent;
    border: 0;
    font-size: 24px;
    padding: 4px 8px;
  }
  .top nav {
    display: none;
    order: 4;
    flex-basis: 100%;
    padding: 10px 0;
  }
  .top nav.is-open {
    display: flex;
    flex-wrap: wrap;
  }
  .referrer {
    margin-left: auto;
    max-width: 130px;
    font-size: 10px;
    padding: 4px 8px;
  }
  .referrer:not([hidden]) + .menu-toggle {
    margin-left: 0;
  }
  .hero {
    min-height: 280px;
    grid-template-columns: 1.3fr 1fr;
  }
  .hero-copy {
    padding: 36px 0 36px 16px;
  }
  .hero h1 {
    font-size: clamp(18px, 4.8vw, 28px);
    white-space: normal;
    letter-spacing: 0;
  }
  .hero h2 {
    font-size: clamp(14px, 3.4vw, 20px);
    margin: 7px 0 10px;
  }
  .mobile-break {
    display: block;
  }
  .hero p {
    font-size: 12px;
  }
  .hero p br {
    display: block;
  }
  .hero .button {
    font-size: 11px;
    min-width: 0;
    min-height: 36px;
    padding: 8px 12px;
    margin-top: 15px;
  }
  .hero-visual {
    height: 270px;
  }
  .hero-visual img {
    height: 100%;
    width: 130%;
    max-width: none;
    right: -12%;
  }
  .hero::before {
    width: 460px;
    height: 480px;
    right: -320px;
    top: -190px;
  }
  .benefits {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 22px 16px;
    padding: 22px 20px 16px;
  }
  .benefits article {
    flex-direction: column;
    gap: 9px;
  }
  .benefits h3 {
    font-size: 14px;
  }
  .benefits p {
    font-size: 11px;
  }
  .benefit-icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .benefit-icon svg {
    width: 20px;
    height: 20px;
  }
  .purchase-layout {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    gap: 22px;
  }
  h2 {
    font-size: 21px;
  }
  .switch {
    gap: 7px;
    margin-bottom: 14px;
  }
  .switch button {
    font-size: 13px;
    padding: 8px;
  }
  .teacher-switch button {
    font-size: 13px;
    padding: 7px 15px;
  }
  .packages strong {
    font-size: 16px;
  }
  .packages b {
    font-size: 21px;
  }
  .packages small {
    font-size: 10px;
  }
  .packages button {
    min-height: 99px;
  }
  .topics {
    gap: 7px;
  }
  .topics span {
    font-size: 11px;
    padding: 4px 12px;
  }
  .checkout {
    padding: 15px;
  }
  .steps {
    grid-template-columns: 1fr;
    padding: 18px 22px;
    gap: 14px;
  }
  .steps li {
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.payment-terms{margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:6px;background:#e3effc}.payment-terms h3{font-size:14px}.payment-terms p{font-size:12px;line-height:1.7;margin:6px 0 12px}.checkout .terms-checkbox{display:flex;gap:9px;align-items:flex-start;margin:0;font-size:12px}.checkout .terms-checkbox input{width:18px;min-height:18px;height:18px;flex:0 0 18px;margin-top:2px;accent-color:var(--navy)}

.checkout .back-to-course{margin-bottom:16px;padding:7px 0;background:transparent;border:0;color:var(--navy);font-size:14px;text-align:left}
