@font-face { font-family: "Plex Thai"; src: url("assets/fonts/ibm-plex-sans-thai-400.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Thai"; src: url("assets/fonts/ibm-plex-sans-thai-600.ttf") format("truetype"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Plex Thai"; src: url("assets/fonts/ibm-plex-sans-thai-700.ttf") format("truetype"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #103733;
  --ink-soft: #3f625d;
  --paper: #eef5f1;
  --paper-bright: #ffffff;
  --green: #087b68;
  --green-deep: #075a4d;
  --mint: #ccecdf;
  --lime: #dbef72;
  --yellow: #f5d56a;
  --red: #c55242;
  --rule: #bed1c8;
  --shadow: 0 26px 52px rgba(16, 55, 51, 0.15);
  --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Plex Thai", sans-serif; font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { color: var(--paper-bright); background: var(--green); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
* { scrollbar-width: thin; scrollbar-color: var(--green) var(--paper); }
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-thumb { border: 3px solid var(--paper); border-radius: 10px; background: var(--green); }
a { color: inherit; text-underline-offset: 0.2em; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
.skip-link { position: fixed; top: 0.75rem; left: 0.75rem; z-index: 100; padding: 0.65rem 1rem; color: white; background: var(--green-deep); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(16, 55, 51, 0.14); background: rgba(238, 245, 241, 0.94); backdrop-filter: blur(12px); }
.nav { width: min(var(--content), calc(100% - 2.5rem)); min-height: 72px; margin: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { width: max-content; display: inline-flex; align-items: center; gap: 0.7rem; font-size: 1.15rem; font-weight: 700; text-decoration: none; }
.brand-logo { width: 38px; height: 38px; flex: none; border-radius: 10px; object-fit: cover; }
.nav-links { display: flex; gap: 1.6rem; }
.nav-links a { color: var(--ink-soft); font-size: 0.86rem; font-weight: 600; text-decoration: none; }
.nav-links a:hover { color: var(--green); }
.nav-cta { justify-self: end; }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 0.65rem; padding: 0.7rem 1.3rem; border: 0; border-radius: 12px; color: white; background: var(--green); box-shadow: 0 12px 22px rgba(8, 123, 104, 0.16); font-size: 0.92rem; font-weight: 700; text-decoration: none; transition: transform 180ms cubic-bezier(.2,.8,.2,1), background-color 180ms ease, box-shadow 180ms ease; }
.button:hover { background: var(--green-deep); box-shadow: 0 16px 28px rgba(8, 90, 77, 0.22); transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button.secondary { color: var(--green-deep); background: transparent; box-shadow: inset 0 0 0 1px var(--rule); }
.button.light { color: var(--green-deep); background: var(--paper-bright); }
.button.light:hover { color: var(--green-deep); background: #e5f1ed; }
.text-link { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--green-deep); font-weight: 700; text-decoration-thickness: 1px; }
.icon { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.hero { width: min(var(--content), calc(100% - 2.5rem)); min-height: 710px; margin: auto; padding: 5.4rem 0 4rem; display: grid; grid-template-columns: 0.94fr 1.06fr; align-items: center; gap: 5vw; }
.hero-copy { position: relative; z-index: 2; }
h1 { max-width: 720px; margin-bottom: 1.5rem; font-size: clamp(3.2rem, 5.2vw, 5rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.03; }
h1 span { color: var(--green); }
.hero-lede { max-width: 620px; color: var(--ink-soft); font-size: 1.08rem; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem; }
.line-id { margin: 1.1rem 0 0; color: var(--ink-soft); font-size: 0.78rem; }
.hero-scene { position: relative; min-height: 560px; }
.mascot-stage { position: absolute; inset: 0 0 3rem 5rem; display: grid; place-items: center; overflow: hidden; border-radius: 46% 54% 44% 56% / 54% 38% 62% 46%; background: var(--green); }
.mascot-stage::before { content: ""; position: absolute; z-index: 0; width: 62%; aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; }
.mascot-stage::after { content: ""; position: absolute; z-index: 0; left: 50%; top: 72%; width: 42%; height: 7%; border-radius: 50%; background: rgba(4, 58, 49, 0.16); box-shadow: 0 16px 22px rgba(4, 58, 49, 0.16); transform: translateX(-50%); }
.mascot-stage img { position: absolute; z-index: 1; top: 50%; left: 50%; width: min(74%, 470px); height: auto; translate: -50% -58%; animation: mascot-arrive 800ms cubic-bezier(.16,1,.3,1) both; }
.paper-tab { position: absolute; z-index: 3; padding: 0.55rem 0.9rem; border-radius: 8px 8px 2px 8px; background: var(--lime); box-shadow: 0 12px 28px rgba(16, 55, 51, 0.15); font-size: 0.76rem; font-weight: 700; transform: rotate(-6deg); }
.paper-tab::after { content: ""; position: absolute; right: 0; bottom: -7px; border-width: 7px 0 0 7px; border-style: solid; border-color: transparent transparent transparent #a9c64f; }
.tab-one { top: 2.5rem; left: 1.5rem; }
.tab-two { top: 7rem; right: -0.4rem; background: var(--yellow); transform: rotate(5deg); }
.tab-two::after { border-left-color: #c5a541; }
.sample-question { position: absolute; z-index: 4; right: -1rem; bottom: -0.75rem; width: min(360px, 72%); padding: 1.3rem 1.4rem 1.2rem; border-radius: 14px; background: var(--paper-bright); box-shadow: var(--shadow); transform: rotate(1.5deg); }
.sample-question::before { content: ""; position: absolute; right: 1.5rem; top: -0.75rem; width: 4.4rem; height: 1.5rem; background: rgba(245, 213, 106, 0.82); transform: rotate(4deg); }
.sample-author { color: var(--green); font-size: 0.72rem; font-weight: 700; }
.sample-question p { margin: 0.4rem 0 0.7rem; font-size: 1.02rem; font-weight: 600; line-height: 1.45; }
.sample-answer { display: block; padding-top: 0.7rem; border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: 0.78rem; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--paper-bright); }
.trust-strip p { margin: 0; padding: 1.45rem 2.2rem; text-align: center; }
.trust-strip p + p { border-left: 1px solid var(--rule); }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong { font-size: 0.92rem; }
.trust-strip span { color: var(--ink-soft); font-size: 0.75rem; }

.section { width: min(var(--content), calc(100% - 2.5rem)); margin: auto; padding: 7rem 0; }
.section-heading { margin-bottom: 3.8rem; display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: end; gap: 4rem; }
.section-heading.compact { margin-bottom: 2.6rem; }
h2 { margin-bottom: 0; font-size: clamp(2.5rem, 5vw, 4.8rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.section-heading > p { max-width: 57ch; margin-bottom: 0.3rem; color: var(--ink-soft); }
.question-list { border-top: 2px solid var(--ink); }
.question-list article { padding: 1.5rem 0; display: grid; grid-template-columns: 0.9fr 1.4fr 0.65fr; align-items: baseline; gap: 2rem; border-bottom: 1px solid var(--rule); }
.question-list h3 { margin: 0; font-size: 1.25rem; }
.question-list p { max-width: 60ch; margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.question-list span { justify-self: end; color: var(--green); font-size: 0.74rem; font-weight: 700; }
.service-note { margin-top: 3rem; padding: 2.2rem 2.5rem; display: flex; align-items: end; justify-content: space-between; gap: 2rem; border-radius: 14px; color: var(--paper-bright); background: var(--green); }
.service-note h3 { margin-bottom: 0.4rem; font-size: 1.35rem; }
.service-note p { max-width: 72ch; margin: 0; color: #e8f7f1; font-size: 0.88rem; }
.service-note .text-link { flex: none; color: var(--lime); }

.safety { width: 100%; padding: 7rem max(2.5rem, calc((100% - var(--content)) / 2)); display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 6rem; color: var(--paper-bright); background: var(--ink); }
.safety h2 { font-size: clamp(2.7rem, 5.2vw, 5rem); }
.safety-copy > p { max-width: 58ch; margin-top: 1.5rem; color: #c6d7d3; }
.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start; }
.do-dont > div { padding: 1.6rem; border-top: 1px solid rgba(255, 255, 255, 0.24); }
.do-dont h3 { margin: 1rem 0 0.4rem; font-size: 1.22rem; }
.do-dont p { margin: 0; color: #c6d7d3; font-size: 0.88rem; }
.status { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; font-size: 1.25rem; font-weight: 700; }
.status.safe { color: var(--ink); background: var(--lime); }
.status.stop { color: white; background: var(--red); }
.scope-note { grid-column: 1 / -1; margin: 0; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.18); color: #c6d7d3; font-size: 0.8rem; }

.faq { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 6rem; }
.faq .section-heading { display: block; margin: 0; }
.faq .section-heading p { margin-top: 1.2rem; }
.faq-list { padding-top: 0.4rem; border-top: 2px solid var(--ink); }
details { border-bottom: 1px solid var(--rule); }
summary { position: relative; padding: 1.4rem 3rem 1.4rem 0; cursor: pointer; font-size: 1.02rem; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before, summary::after { content: ""; position: absolute; right: 0; top: 2rem; width: 16px; height: 2px; background: var(--green); transition: transform 180ms ease; }
summary::after { transform: rotate(90deg); }
details[open] summary::after { transform: rotate(0); }
details p { max-width: 66ch; margin: -0.25rem 3rem 1.4rem 0; color: var(--ink-soft); font-size: 0.9rem; }

.final-cta { position: relative; min-height: 430px; padding: 5rem max(2.5rem, calc((100% - var(--content)) / 2)); display: flex; align-items: center; overflow: hidden; color: white; background: var(--green); }
.final-copy { position: relative; z-index: 2; max-width: 760px; }
.final-copy h2 { max-width: 760px; }
.final-copy p { max-width: 60ch; margin: 1.2rem 0 1.8rem; color: #e8f7f1; }
.final-cta > img { position: absolute; right: max(1rem, calc((100% - var(--content)) / 2)); bottom: -18%; width: min(36vw, 440px); opacity: 0.18; transform: rotate(-7deg); }

.site-footer { padding: 3.2rem 0 calc(3.2rem + env(safe-area-inset-bottom)); background: #dfe9e3; }
.footer-inner { width: min(var(--content), calc(100% - 2.5rem)); margin: auto; display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: start; }
.footer-brand { display: grid; grid-template-columns: auto 1fr; gap: 0 0.7rem; align-items: center; }
.footer-brand .brand-logo { grid-row: 1 / 3; }
.footer-brand span:last-child { color: var(--ink-soft); font-size: 0.72rem; }
.footer-links { display: flex; flex-direction: column; align-items: flex-end; gap: 0.35rem; font-size: 0.78rem; font-weight: 600; }
.footer-links a { text-decoration: none; }

.legal-main { width: min(800px, calc(100% - 2.5rem)); min-height: 62vh; margin: auto; padding: 5rem 0 7rem; }
.legal-main h1 { margin-top: 1rem; font-size: clamp(2.7rem, 6vw, 5rem); }
.legal-main h2 { margin: 3rem 0 0.7rem; font-size: 1.4rem; }
.legal-main p, .legal-main li { max-width: 72ch; color: var(--ink-soft); }
.notice { padding: 1.2rem 1.3rem; border-radius: 12px; color: #594400 !important; background: #fff0b5; }
.contact-card { margin: 2rem 0; padding: 1.8rem 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.contact-card h2 { margin-top: 0; }

@keyframes mascot-arrive {
  from { opacity: 0; transform: translateY(18px) rotate(-2deg); }
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

@media (max-width: 960px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 4rem; }
  .hero-copy { max-width: 760px; }
  .hero-scene { width: min(680px, 100%); min-height: 550px; margin: 0 auto; }
  .section-heading, .faq { grid-template-columns: 1fr; gap: 2rem; }
  .question-list article { grid-template-columns: 0.8fr 1.2fr; }
  .question-list span { display: none; }
  .safety { grid-template-columns: 1fr; gap: 3rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { width: min(100% - 1.5rem, var(--content)); min-height: 64px; }
  .brand { font-size: 1rem; }
  .brand-logo { width: 34px; height: 34px; border-radius: 9px; }
  .nav-cta { min-height: 42px; padding: 0.55rem 0.8rem; font-size: 0.76rem; }
  .hero, .section { width: min(100% - 1.5rem, var(--content)); }
  .hero { padding: 3rem 0; gap: 1.5rem; }
  h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-scene { min-height: 430px; }
  .mascot-stage { inset: 0 0 3rem 1.5rem; }
  .mascot-stage img { width: 76%; translate: -50% -72%; }
  .tab-one { top: 1rem; left: 0; }
  .tab-two { top: 5rem; right: -0.2rem; }
  .sample-question { width: 88%; padding: 1rem; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip p { padding: 1rem 1.25rem; text-align: left; }
  .trust-strip p + p { border-left: 0; border-top: 1px solid var(--rule); }
  .section { padding: 5rem 0; }
  .section-heading { margin-bottom: 2.5rem; }
  h2 { font-size: clamp(2.35rem, 11vw, 3.4rem); }
  .question-list article { grid-template-columns: 1fr; gap: 0.45rem; padding: 1.3rem 0; }
  .service-note { padding: 1.5rem; flex-direction: column; align-items: flex-start; }
  .safety { padding-inline: 1.25rem; }
  .do-dont { grid-template-columns: 1fr; }
  .faq { gap: 2.5rem; }
  .final-cta { min-height: 500px; align-items: flex-start; padding-top: 4.5rem; }
  .final-cta > img { width: 72vw; right: -12vw; bottom: -10%; }
  .footer-inner { width: min(100% - 1.5rem, var(--content)); grid-template-columns: 1fr; gap: 2rem; }
  .footer-links { align-items: flex-start; }
}

@media (hover: none) { .button:hover { background: var(--green); box-shadow: 0 12px 22px rgba(8, 123, 104, 0.16); transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }
