:root {
  color-scheme: light;
  --orange: #fd6018; --orange-d: #e4500c; --orange-50: #fff3ec; --orange-100: #ffe2d1;
  --ink: #232323; --body: #555; --muted: #7a7a7a; --line: #e6e6e6; --soft: #f6f7f9;
  --ok: #1c9a5b; --bad: #c4321f;
  --display: 'Anuphan', system-ui, sans-serif;
  --text: 'IBM Plex Sans Thai', 'Anuphan', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font: 16px/1.65 var(--text); color: var(--body); background: #fff; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
h1, h2 { font-family: var(--display); color: var(--ink); line-height: 1.3; font-weight: 700; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .shell, .footer-inner { width: min(100% - 48px, 1120px); margin: auto; }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { width: 150px; height: auto; }
.home-link { font-size: 14px; text-decoration: none; color: var(--body); padding: 8px 0; }
.home-link:hover { color: var(--orange-d); }

.shell { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: start; padding: 64px 0 88px; }
.intro { position: sticky; top: 40px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; color: var(--orange-d); background: var(--orange-50); border-radius: 999px; padding: 4px 14px; margin-bottom: 18px; }
.intro h1 { font-size: clamp(32px, 4.2vw, 48px); letter-spacing: -.4px; margin-bottom: 18px; }
.intro h1 em { font-style: normal; color: var(--orange); }
.lead { font-size: 18px; max-width: 460px; }
.perks { list-style: none; margin: 30px 0 0; display: grid; gap: 14px; }
.perks li { display: flex; gap: 12px; align-items: flex-start; }
.perks svg { flex: none; width: 24px; height: 24px; margin-top: 1px; padding: 4px; border-radius: 50%; background: var(--orange-50); color: var(--orange); }
.plan-badge { margin-top: 28px; display: inline-flex; gap: 8px; align-items: center; font-size: 14px; border: 1px dashed var(--orange-100); border-radius: 12px; padding: 8px 14px; color: var(--ink); }
.plan-badge[hidden] { display: none; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: 0 2px 4px rgba(0,0,0,.03), 0 24px 60px rgba(0,0,0,.07); }
.card h2 { font-size: 24px; margin-bottom: 4px; }
.card .sub { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.req { color: var(--orange-d); }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=url] {
  width: 100%; height: 48px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink);
  border: 1px solid #d9d9d9; border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s;
}
input::placeholder { color: #a8a8a8; }
input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-50); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

fieldset { border: 0; }
.sources { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.src { position: relative; }
.src input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.src span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 84px; padding: 12px 6px;
  border: 1px solid var(--line); border-radius: 14px; font-size: 13px; font-weight: 500; color: var(--ink); text-align: center; line-height: 1.3;
  transition: border-color .15s, background .15s, transform .15s;
}
.src svg { width: 26px; height: 26px; }
.src:hover span { border-color: #cfcfcf; transform: translateY(-1px); }
.src input:checked + span { border-color: var(--orange); background: var(--orange-50); box-shadow: inset 0 0 0 1px var(--orange); }
.src input:checked + span::after {
  content: ""; position: absolute; top: 7px; right: 7px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat;
}
.src input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }
.other { margin-top: 12px; }
.other[hidden] { display: none; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin: 6px 0 22px; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--orange); }
.consent a { color: var(--orange-d); text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.submit {
  width: 100%; height: 54px; border: 0; border-radius: 999px; background: var(--orange); color: #fff;
  font: 600 17px var(--display); cursor: pointer; transition: background .15s, transform .15s;
}
.submit:hover { background: var(--orange-d); }
.submit:active { transform: scale(.99); }
.submit:disabled { opacity: .65; cursor: progress; }
.status { min-height: 22px; margin-top: 12px; font-size: 14px; color: var(--bad); text-align: center; }

.done { text-align: center; padding: 26px 6px 10px; }
.done[hidden] { display: none; }
.done .tick { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #e8f6ee; color: var(--ok); display: grid; place-items: center; }
.done .tick svg { width: 30px; height: 30px; }
.done h2 { margin-bottom: 10px; }
.done p { max-width: 380px; margin: 0 auto 24px; }
.done a { display: inline-block; text-decoration: none; font-weight: 600; color: var(--orange-d); }

.site-footer { border-top: 1px solid var(--line); background: var(--soft); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-links a { color: var(--body); }

@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; gap: 36px; padding: 40px 0 64px; }
  .intro { position: static; }
  .lead { font-size: 16px; }
  .perks { margin-top: 22px; }
}
@media (max-width: 520px) {
  .header-inner, .shell, .footer-inner { width: calc(100% - 32px); }
  .brand img { width: 128px; }
  .home-link { font-size: 13px; }
  .card { padding: 24px 18px; border-radius: 18px; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .src span { min-height: 76px; font-size: 12.5px; }
}
