/* Thai typography: quiet, loopless reading text with angular display headings. */
:root {
  --thai-body: 'Anuphan', 'Noto Sans Thai', sans-serif;
  --thai-display: 'Chakra Petch', 'Anuphan', sans-serif;
}

/* A clearly labelled language control stays visible in both versions. */
.language-switch {
  gap: 2px;
  padding: 3px;
  background: #151c13;
  border: 1px solid #37432e;
  border-radius: 3px;
}
.language-switch > span { display: none; }
.language-button {
  font-family: var(--thai-body);
  min-width: 36px;
  min-height: 34px;
  padding: 6px 5px;
  border-radius: 1px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0;
  color: #b0bda4;
  transition: color .2s, background .2s;
}
.language-button:hover { background: #25351e; color: #eff7e7; }
.language-button[aria-pressed='true'] {
  color: #0b0e0c;
  background: var(--lime);
  font-weight: 700;
}
.planner-wordmark .wordmark-line { color: inherit; }

html[lang='th'] { --body: var(--thai-body); }
html[lang='th'] body {
  font-family: var(--thai-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}
html[lang='th'] h1,
html[lang='th'] h2 {
  font-family: var(--thai-display);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.32;
  word-break: normal;
  overflow-wrap: normal;
}
html[lang='th'] h2 { font-size: 46px; }
html[lang='th'] h3 {
  font-family: var(--thai-body);
  letter-spacing: 0;
  font-weight: 650;
}
html[lang='th'] .section-kicker,
html[lang='th'] .eyebrow {
  font-family: var(--thai-display);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .015em;
}
html[lang='th'] .section-kicker { margin-bottom: 19px; }
html[lang='th'] .utility-bar { font-size: 11px; letter-spacing: 0; }
html[lang='th'] .utility-mantra {
  font-family: var(--thai-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .015em;
}
html[lang='th'] .utility-mantra b { font-weight: 600; }
html[lang='th'] .primary-navigation { gap: 24px; font-size: 13px; }
html[lang='th'] .primary-navigation a { font-weight: 550; }
html[lang='th'] .button,
html[lang='th'] .text-link {
  font-family: var(--thai-body);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
  letter-spacing: 0;
}
html[lang='th'] .nav-cta { font-size: 12px; }

html[lang='th'] .hero-copy { width: 48%; padding-block: 47px 43px; }
html[lang='th'] .hero h1 {
  font-size: clamp(76px, 7.1vw, 98px);
  line-height: 1.25;
  margin-top: 19px;
  margin-bottom: 21px;
}
html[lang='th'] .hero h1 > span { display: block; white-space: nowrap; }
html[lang='th'] .hero-copy .eyebrow { font-size: 11px; letter-spacing: 0; }
html[lang='th'] .hero-description {
  max-width: 425px;
  font-size: 16px;
  line-height: 1.9;
  color: #bbc5b4;
}
html[lang='th'] .hero-buttons { margin-top: 26px; gap: 28px; flex-wrap: wrap; row-gap: 12px; }
html[lang='th'] .hero-note { font-size: 12px; line-height: 1.8; margin-top: 26px; }
html[lang='th'] .hero-visual-label { font-size: 11px; line-height: 1.75; letter-spacing: 0; }
html[lang='th'] .hero-visual-label strong { font-size: 11px; letter-spacing: 0; }
html[lang='th'] .hero-visual figcaption { font-size: 10px; }
html[lang='th'] .trust-item strong { font-size: 14px; font-weight: 600; }
html[lang='th'] .trust-item span { font-size: 12px; line-height: 1.7; margin-top: 3px; }

html[lang='th'] .section-description { font-size: 15px; line-height: 1.9; max-width: 330px; }
html[lang='th'] .service-card { padding: 25px 24px 24px; min-height: 294px; }
html[lang='th'] .service-card-top { margin-bottom: 31px; }
html[lang='th'] .service-card h3 { font-size: 23px; line-height: 1.5; letter-spacing: 0; }
html[lang='th'] .service-card p { font-size: 14px; line-height: 1.9; margin-top: 11px; }
html[lang='th'] .card-link { font-size: 13px; font-weight: 600; line-height: 1.65; padding-top: 23px; }
html[lang='th'] .services-footnote { font-size: 13px; line-height: 1.8; }

html[lang='th'] .hardware-copy h2 { font-size: 51px; }
html[lang='th'] .hardware-copy > .eyebrow { font-size: 11px; }
html[lang='th'] .hardware-copy > p { font-size: 15px; line-height: 1.9; }
html[lang='th'] .hardware-copy .fine-print { font-size: 12px; line-height: 1.8; }
html[lang='th'] .hardware-stats small { font-size: 11px; letter-spacing: .025em; line-height: 1.65; }
html[lang='th'] .hardware-stats strong span { font-family: var(--thai-display); font-size: 19px; }
html[lang='th'] .outline-label { font-size: 10px; letter-spacing: 0; }
html[lang='th'] .v100-frame figcaption { font-size: 10px; line-height: 1.8; }

html[lang='th'] .approach-intro > p { font-size: 15px; line-height: 1.9; max-width: 395px; margin-top: 23px; }
html[lang='th'] .approach-steps h3 { font-size: 21px; line-height: 1.6; letter-spacing: 0; }
html[lang='th'] .approach-steps p { font-size: 14px; line-height: 1.9; margin-top: 8px; }
html[lang='th'] .approach-steps li { padding-block: 23px 25px; }
html[lang='th'] .buyback h2 { font-size: 40px; line-height: 1.28; }
html[lang='th'] .buyback h2 br { display: block; }
html[lang='th'] .buyback .eyebrow { font-size: 11px; letter-spacing: 0; }
html[lang='th'] .buyback p { font-size: 14px; line-height: 1.8; max-width: 455px; margin-top: 13px; }
html[lang='th'] .buyback .button { font-size: 13px; }

html[lang='th'] .planner-intro h2 { font-size: 61px; line-height: 1.28; }
html[lang='th'] .planner-intro > p { font-size: 15px; line-height: 1.9; max-width: 365px; }
html[lang='th'] .planner-points li { font-size: 14px; line-height: 1.8; }
html[lang='th'] .planner-wordmark {
  font-family: var(--thai-display);
  font-size: 88px;
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: 0;
  margin-top: 45px;
}
html[lang='th'] .form-step { font-family: var(--thai-display); font-size: 12px; letter-spacing: .015em; }
html[lang='th'] .form-time { font-size: 11px; }
html[lang='th'] .form-heading { align-items: baseline; row-gap: 6px; }
html[lang='th'] .form-row label { font-size: 14px; line-height: 1.65; font-weight: 600; }
html[lang='th'] .form-row input,
html[lang='th'] .form-row textarea,
html[lang='th'] .form-row select { font-family: var(--thai-body); font-size: 15px; line-height: 1.8; }
html[lang='th'] .optional-label,
html[lang='th'] .required-label { font-size: 10px; font-weight: 400; white-space: nowrap; }
html[lang='th'] .field-guidance { font-size: 12px; line-height: 1.8; }
html[lang='th'] .form-disclosure { font-size: 11px; line-height: 1.9; }
html[lang='th'] .form-submit { font-size: 14px; }
html[lang='th'] .brief-result h3 { font-family: var(--thai-display); font-size: 26px; font-weight: 600; line-height: 1.5; }
html[lang='th'] .brief-result > p { font-size: 14px; line-height: 1.85; }
html[lang='th'] .brief-result pre {
  font-family: var(--thai-body);
  font-size: 14px;
  line-height: 1.9;
  word-break: normal;
  overflow-wrap: normal;
  overflow-x: auto;
}
html[lang='th'] .brief-result h4 { font-size: 14px; font-weight: 600; }
html[lang='th'] .brief-result ul { font-size: 13px; line-height: 1.9; }
html[lang='th'] .result-status { font-family: var(--thai-display); font-size: 11px; letter-spacing: .03em; }
html[lang='th'] .result-actions .button { font-size: 13px; }
html[lang='th'] .brief-result .copy-status { font-size: 12px; line-height: 1.85; }
html[lang='th'] .brief-result .text-link { font-size: 13px; }

html[lang='th'] .faq h2 { font-size: 43px; }
html[lang='th'] .faq-layout > div > p { font-size: 15px; line-height: 1.9; }
html[lang='th'] .faq-list summary { font-size: 16px; font-weight: 600; line-height: 1.8; }
html[lang='th'] .faq-list details p { font-size: 14px; line-height: 1.95; margin-top: 12px; }
html[lang='th'] .footer-top > p { font-family: var(--thai-display); font-size: 13px; font-style: normal; letter-spacing: 0; }
html[lang='th'] .footer-start { font-size: 17px; font-weight: 600; }
html[lang='th'] .footer-bottom nav,
html[lang='th'] .back-top { font-size: 12px; }
html[lang='th'] dialog h2 { font-family: var(--heading); font-size: 48px; }
html[lang='th'] dialog > p { font-size: 15px; line-height: 1.9; }
html[lang='th'] .product-facts > div { font-size: 14px; line-height: 1.8; }
html[lang='th'] .product-note p { font-size: 13px; line-height: 1.9; }

@media (max-width: 1190px) {
  .nav-actions { gap: 15px; }
  html[lang='th'] .primary-navigation { gap: 15px; margin-right: 0; font-size: 12px; }
  html[lang='th'] .nav-cta { font-size: 11px; padding-inline: 12px; gap: 10px; }
  html[lang='th'] .hero h1 { font-size: clamp(65px, 8.1vw, 90px); }
  html[lang='th'] .hero-description { font-size: 15px; max-width: 375px; }
  html[lang='th'] h2 { font-size: 41px; }
  html[lang='th'] .hardware-copy h2 { font-size: 45px; }
  html[lang='th'] .planner-intro h2 { font-size: 53px; }
  html[lang='th'] .service-card { padding: 23px 20px; }
  html[lang='th'] .service-card h3 { font-size: 21px; }
  html[lang='th'] .card-link { font-size: 12px; }
  html[lang='th'] .trust-item strong { font-size: 13px; }
  html[lang='th'] .trust-item span { font-size: 11px; }
  html[lang='th'] .faq h2 { font-size: 38px; }
}
@media (max-width: 980px) {
  html[lang='th'] .primary-navigation a { font-size: 15px; }
  html[lang='th'] .hero-layout { min-height: 550px; }
  html[lang='th'] .hero-copy { width: 50%; }
  html[lang='th'] .hero h1 { font-size: clamp(57px, 8.55vw, 82px); }
  html[lang='th'] .hero-copy .eyebrow { font-size: 10px; }
  html[lang='th'] .hero-description { font-size: 14px; max-width: 335px; }
  html[lang='th'] .hero-buttons { gap: 18px; }
  html[lang='th'] .hero-buttons .button { font-size: 12px; padding-inline: 16px; gap: 16px; }
  html[lang='th'] .hero-buttons .text-link { font-size: 12px; gap: 8px; }
  html[lang='th'] .hero-note { font-size: 11px; }
  html[lang='th'] .hero-visual figcaption { font-size: 9px; }
  html[lang='th'] .trust-item strong { font-size: 12px; }
  html[lang='th'] .trust-item span { font-size: 10px; max-width: 148px; }
  html[lang='th'] .section-description { max-width: 270px; font-size: 14px; }
  html[lang='th'] h2 { font-size: 37px; }
  html[lang='th'] .service-card { padding: 27px 26px; min-height: 279px; }
  html[lang='th'] .service-card h3 { font-size: 24px; }
  html[lang='th'] .card-link { font-size: 13px; }
  html[lang='th'] .hardware-copy h2 { font-size: 40px; }
  html[lang='th'] .hardware-copy > p { font-size: 14px; }
  html[lang='th'] .hardware-copy > .eyebrow { font-size: 10px; }
  html[lang='th'] .hardware-stats small { font-size: 10px; }
  html[lang='th'] .hardware-stats strong span { font-size: 17px; }
  html[lang='th'] .outline-label { font-size: 9px; }
  html[lang='th'] .approach-steps h3 { font-size: 19px; }
  html[lang='th'] .approach-intro > p,
  html[lang='th'] .approach-steps p { font-size: 14px; }
  html[lang='th'] .planner-intro h2 { font-size: 45px; }
  html[lang='th'] .planner-intro > p { font-size: 14px; }
  html[lang='th'] .planner-points li { font-size: 13px; }
  html[lang='th'] .planner-wordmark { font-size: 67px; }
  html[lang='th'] .faq h2 { font-size: 33px; }
  html[lang='th'] .faq-list summary { font-size: 15px; }
  html[lang='th'] .faq-layout > div > p { font-size: 14px; }
  html[lang='th'] .footer-top > p { font-size: 11px; }
  html[lang='th'] .footer-start { font-size: 15px; }
  html[lang='th'] .footer-bottom nav,
  html[lang='th'] .back-top { font-size: 11px; }
}
@media (max-width: 700px) {
  .nav-actions { gap: 10px; }
  html[lang='th'] .hero-layout { min-height: 0; }
  html[lang='th'] .hero-copy { width: 100%; padding: 37px 0 0; }
  html[lang='th'] .hero h1 { font-size: clamp(50px, 16vw, 84px); line-height: 1.25; margin-top: 17px; margin-bottom: 19px; }
  html[lang='th'] .hero-copy .eyebrow { font-size: 10px; }
  html[lang='th'] .hero-description { font-size: 15px; line-height: 1.9; max-width: 390px; }
  html[lang='th'] .hero-buttons { gap: 25px; margin-top: 23px; }
  html[lang='th'] .hero-buttons .button { font-size: 13px; gap: 21px; padding-inline: 18px; }
  html[lang='th'] .hero-buttons .text-link { font-size: 13px; gap: 10px; }
  html[lang='th'] .hero-note { font-size: 11px; line-height: 1.85; margin-top: 21px; }
  html[lang='th'] .hero-visual { margin-top: 4px; }
  html[lang='th'] .hero-visual figcaption { font-size: 8px; }
  html[lang='th'] .trust-item > div { gap: 12px; align-items: center; }
  html[lang='th'] .trust-item strong { font-size: 12px; }
  html[lang='th'] .trust-item span { font-size: 10px; max-width: 140px; }
  html[lang='th'] h2 { font-size: 36px; line-height: 1.33; }
  html[lang='th'] .section-kicker,
  html[lang='th'] .eyebrow { font-size: 11px; }
  html[lang='th'] .section-description { max-width: 370px; font-size: 15px; line-height: 1.9; margin-top: 20px; }
  html[lang='th'] .service-card { padding: 21px 16px; min-height: 290px; }
  html[lang='th'] .service-card-top { margin-bottom: 26px; }
  html[lang='th'] .service-card h3 { font-size: 19px; line-height: 1.5; }
  html[lang='th'] .service-card p { font-size: 13px; line-height: 1.85; }
  html[lang='th'] .card-link { font-size: 11px; gap: 7px; line-height: 1.65; padding-top: 20px; }
  html[lang='th'] .services-footnote { font-size: 13px; }
  html[lang='th'] .hardware-copy h2 { font-size: 42px; }
  html[lang='th'] .hardware-copy > p { font-size: 15px; }
  html[lang='th'] .hardware-copy .fine-print { font-size: 12px; }
  html[lang='th'] .hardware-stats small { font-size: 11px; }
  html[lang='th'] .v100-frame figcaption { font-size: 9px; }
  html[lang='th'] .approach-intro h2 { font-size: 39px; }
  html[lang='th'] .approach-intro > p { font-size: 15px; line-height: 1.9; }
  html[lang='th'] .approach-steps h3 { font-size: 21px; }
  html[lang='th'] .approach-steps p { font-size: 14px; }
  html[lang='th'] .buyback h2 { font-size: 37px; }
  html[lang='th'] .buyback .eyebrow { font-size: 11px; max-width: 300px; }
  html[lang='th'] .buyback p { font-size: 14px; max-width: 335px; }
  html[lang='th'] .buyback .button { font-size: 13px; }
  html[lang='th'] .planner-intro h2 { font-size: 49px; }
  html[lang='th'] .planner-intro > p { font-size: 15px; max-width: 360px; }
  html[lang='th'] .planner-points li { font-size: 13px; }
  html[lang='th'] .form-row label { font-size: 14px; }
  html[lang='th'] .form-row input,
  html[lang='th'] .form-row textarea,
  html[lang='th'] .form-row select { font-size: 16px; line-height: 1.8; }
  html[lang='th'] .form-row input::placeholder,
  html[lang='th'] .form-row textarea::placeholder { font-size: 14px; }
  html[lang='th'] .form-time { font-size: 11px; }
  html[lang='th'] .field-guidance { font-size: 12px; }
  html[lang='th'] .form-submit { font-size: 14px; }
  html[lang='th'] .form-disclosure { font-size: 11px; }
  html[lang='th'] .faq h2 { font-size: 36px; }
  html[lang='th'] .faq-layout > div > p { font-size: 15px; }
  html[lang='th'] .faq-list summary { font-size: 16px; }
  html[lang='th'] .faq-list details p { font-size: 14px; line-height: 1.95; }
  html[lang='th'] .footer-top > p { font-size: 11px; flex-basis: 100%; margin: 0; max-width: 290px; }
  html[lang='th'] .footer-start { font-size: 18px; }
  html[lang='th'] .footer-bottom nav { gap: 20px; flex-wrap: wrap; }
  html[lang='th'] .footer-bottom nav a { font-size: 11px; padding-block: 6px; }
  html[lang='th'] .back-top { font-size: 11px; }
  html[lang='th'] dialog h2 { font-size: 43px; }
  html[lang='th'] .product-facts > div { font-size: 13px; }
  html[lang='th'] dialog .button { font-size: 13px; }
}
@media (max-width: 365px) {
  .nav-actions { gap: 5px; }
  .language-button { min-width: 32px; }
  html[lang='th'] .hero h1 { font-size: clamp(48px, 16vw, 57px); }
  html[lang='th'] .hero-buttons { gap: 19px; }
  html[lang='th'] .hero-buttons .button { font-size: 12px; gap: 16px; padding-inline: 15px; }
  html[lang='th'] .hero-buttons .text-link { font-size: 12px; gap: 8px; }
  html[lang='th'] h2 { font-size: 32px; }
  html[lang='th'] .service-card { padding-inline: 13px; }
  html[lang='th'] .service-card h3 { font-size: 17px; }
  html[lang='th'] .service-card p { font-size: 12px; }
  html[lang='th'] .card-link { font-size: 10px; }
  html[lang='th'] .trust-item strong { font-size: 11px; }
  html[lang='th'] .trust-item span { font-size: 9px; }
  html[lang='th'] .hardware-copy h2 { font-size: 37px; }
  html[lang='th'] .approach-intro h2 { font-size: 35px; }
  html[lang='th'] .planner-intro h2 { font-size: 44px; }
  html[lang='th'] .faq h2 { font-size: 33px; }
}

/* Preserve Thai words while letting each surrounding phrase use the available width. */
.brief-result pre { overflow-x: auto; }
html[lang='th'] .services-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
html[lang='th'] .service-card,
html[lang='th'] .card-link > span,
html[lang='th'] .button > span,
html[lang='th'] .form-row label > span,
html[lang='th'] .product-facts dt,
html[lang='th'] .product-facts dd { min-width: 0; }
html[lang='th'] .button { max-width: 100%; }
html[lang='th'] .form-row label { flex-wrap: wrap; row-gap: 4px; }
html[lang='th'] .form-row textarea {
  word-break: normal;
  overflow-wrap: normal;
}
html[lang='th'] .form-row textarea::placeholder {
  white-space: pre;
  word-break: normal;
  overflow-wrap: normal;
}
@media (max-width: 980px) {
  html[lang='th'] .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 340px) {
  html[lang='th'] dialog .button { padding-inline: 14px; gap: 12px; }
}

/* Original component rules also target descendant spans. Keep generated text
   wrappers typographically neutral, including inside flex labels and pre text. */
html[lang] body span.th-copy,
html[lang] body span.th-word {
  display: inline;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-align: inherit;
  text-transform: inherit;
  margin: 0;
  padding: 0;
  min-width: 0;
  max-width: none;
  white-space: inherit;
}
html[lang] body span.th-word {
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}
