@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&family=Noto+Sans+Thai:wght@400;500;600;700&display=swap');

:root { font-family: 'DM Sans', sans-serif; font-size: 18px; color: #263e35; background: #fff9ed; font-synthesis: none; --ink: #263e35; --coral: #bd4c34; }
* { box-sizing: border-box; }
body { margin: 0; background-image: radial-gradient(#263e351a .8px, transparent .8px); background-size: 22px 22px; }
.page { max-width: 1440px; margin: auto; padding: 0 clamp(24px,4vw,64px); }
header { display: flex; justify-content: flex-end; padding: 14px 0 0; }
.language-toggle { display: flex; gap: 2px; border: 1px solid var(--ink); background: #fffdf7; border-radius: 100px; padding: 2px; }
.language-toggle button { width: auto; min-width: 36px; min-height: 28px; justify-content: center; padding: 3px 9px; border: 0; border-radius: 100px; font-size: 13px; line-height: 1.5; background: transparent; color: var(--ink); box-shadow: none; }
.language-toggle button[aria-pressed=true] { background: var(--ink); color: #fffdf7; }
.language-toggle button:hover { background: #e7eddf; color: var(--ink); transform: none; }
main { display: grid; grid-template-columns: minmax(0,520px) minmax(390px,520px); justify-content: center; gap: 36px; align-items: start; padding: 24px 0 64px; }
.intro { min-width: 0; padding-top: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; margin: 0 0 28px; padding: 9px 17px; border: 1.5px solid var(--ink); border-radius: 7px; background: #e7eddf; transform: rotate(-3deg); box-shadow: 2px 2px 0 #263e3520; }
.availability-dot { width: 9px; height: 9px; border-radius: 50%; background: #41664b; box-shadow: 0 0 0 4px #41664b15; }
h1 { margin: 0; }
.domain-line { position: relative; isolation: isolate; font-family: 'Manrope', sans-serif; font-size: clamp(36px,4.6vw,68px); line-height: 1.3; font-weight: 800; letter-spacing: -1.8px; color: var(--coral); overflow-wrap: anywhere; padding-bottom: 18px; }
.domain-line::after { content: ''; position: absolute; z-index: -1; bottom: 0; left: 0; width: min(88%,340px); height: 13px; border-top: 5px solid #ed8067; border-radius: 50%; transform: rotate(-2deg); }
.lede { font-size: 22px; line-height: 1.8; margin: 20px 0 0; max-width: 450px; }
.hero-art { margin: 10px -20px -10px; max-width: 460px; pointer-events: none; }
.domain-doodle { display: block; width: 100%; height: auto; overflow: visible; }
.doodle-friend { transform-origin: 50% 88%; animation: bob 5s ease-in-out infinite; }
.doodle-wave { transform-origin: 92px 136px; animation: wave 5s ease-in-out infinite; }
.doodle-sparkles { transform-origin: center; animation: sparkle 5s ease-in-out infinite; }
.offer-card { position: relative; min-width: 0; width: 100%; max-width: 520px; background: #fffdf7; border: 2px solid var(--ink); border-radius: 20px 24px 22px 16px; padding: 28px; box-shadow: 7px 8px 0 #dce4d1; }
.card-tape { position: absolute; top: -16px; left: calc(50% - 43px); width: 86px; height: 30px; background: #f8ce62cf; border-inline: 2px dashed #d0a33e80; transform: rotate(-6deg); }
h2 { font-size: 26px; line-height: 1.5; font-weight: 700; margin: 0 0 26px; }
.field { margin-bottom: 16px; }
label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 9px; }
label>span:not([data-i18n]) { font-size: 14px; font-weight: 400; color: #59675c; }
input,select,textarea { width: 100%; min-width: 0; font: inherit; font-size: 16px; line-height: 1.6; padding: 12px 14px; color: var(--ink); background: #faf8f1; border: 1.5px solid #899487; border-radius: 10px; transition: background .15s, border-color .15s; }
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23263e35' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}
input::placeholder,textarea::placeholder { color: #687267; opacity: 1; }
input:hover,select:hover,textarea:hover { border-color: var(--ink); }
input:focus,select:focus,textarea:focus { background-color: #fffdf7; }
textarea { resize: vertical; min-height: 100px; }
input:focus,select:focus,textarea:focus,button:focus-visible,a:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
.contact-row,.offer-row { display: grid; gap: 10px; grid-template-columns: 140px minmax(0,1fr); }
.offer-row { grid-template-columns: minmax(0,1fr) 110px; }
.amount-slider { display: block; appearance: none; width: 100%; min-height: 44px; margin: 10px 0 0; padding: 0; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.amount-slider:focus { background: transparent; }
.amount-slider::-webkit-slider-runnable-track { height: 10px; border: 1.5px solid var(--ink); border-radius: 100px; background: #e7eddf; }
.amount-slider::-moz-range-track { height: 8px; border: 1.5px solid var(--ink); border-radius: 100px; background: #e7eddf; }
.amount-slider::-webkit-slider-thumb { appearance: none; width: 28px; height: 28px; margin-top: -10px; border: 2px solid var(--ink); border-radius: 50%; background: #f8ce62; box-shadow: 2px 2px 0 var(--ink); }
.amount-slider::-moz-range-thumb { width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 50%; background: #f8ce62; box-shadow: 2px 2px 0 var(--ink); }
button { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 15px 18px; min-height: 56px; border: 2px solid var(--ink); border-radius: 12px; background: var(--ink); color: #fffdf7; font: inherit; font-size: 18px; font-weight: 600; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
#submit { box-shadow: 3px 4px 0 #f8ce62; }
button:hover:not(:disabled) { background: #3b5848; transform: translateY(-2px); }
button:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
button:disabled { background: #e1e6da; color: #566451; border-color: #a2af9a; box-shadow: none !important; cursor: not-allowed; }
#status { font-size: 16px; line-height: 1.6; color: #9e3c25; margin: 18px 0 0; }
#status:empty { display: none; }
#turnstile { margin: 0 0 16px; min-width: 0; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.success-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 20px 0; border: 2px solid var(--ink); border-radius: 20px; background: #f8ce62; font-size: 34px; box-shadow: 3px 4px 0 #dce4d1; transform: rotate(-8deg); }
#success h3 { font-size: 30px; margin: 20px 0; }
#success p { font-size: 20px; line-height: 1.7; margin-bottom: 28px; }
[hidden] { display: none !important; }
:lang(th) { font-family: 'Noto Sans Thai', 'DM Sans', sans-serif; }
html:lang(th) .domain-line { font-family: 'Manrope', sans-serif; }
#domain:lang(th) { font-family: 'Noto Sans Thai', sans-serif; letter-spacing: 0; line-height: 1.5; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-6px) rotate(1deg); } }
@keyframes wave { 0%,40%,70%,100% { transform: rotate(0); } 48%,62% { transform: rotate(-12deg); } 55% { transform: rotate(5deg); } }
@keyframes sparkle { 0%,100% { opacity: .75; } 50% { opacity: 1; } }
@media(max-width: 1000px) and (min-width: 761px) {
  .page { padding: 0 4%; }
  main { gap: 5%; grid-template-columns: minmax(0,1fr) minmax(350px,1fr); }
  .offer-card { padding-inline: 24px; }
  .domain-line { font-size: 44px; }
}
@media(max-width: 760px) {
  main { grid-template-columns: 1fr; gap: 38px; padding: 38px 0 48px; }
  .intro { padding-top: 0; }
  .eyebrow { margin-bottom: 22px; }
  .domain-line { font-size: clamp(36px,7.5vw,60px); }
  .lede { margin-top: 14px; max-width: none; }
  .hero-art { width: min(100%,340px); margin: 0 auto -15px; }
  .offer-card { width: 100%; margin-inline: auto; }
}
@media(max-width: 480px) {
  .page { padding: 0 6%; }
  header { padding-top: 12px; }
  .offer-card { padding: 30px 20px 24px; box-shadow: 5px 6px 0 #dce4d1; }
  .contact-row { grid-template-columns: 1fr; }
  .domain-line { letter-spacing: -1px; }
  .lede { font-size: 20px; }
  h2 { font-size: 24px; }
}
@media(prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation: none !important; transition: none !important; }
}
