:root {
  --bg: #e8e8e5;
  --card: #f7f7f5;
  --white: #ffffff;
  --ink: #141414;
  --muted: #6b6b6b;
  --line: #e2e2de;
  --brand: #2e9233;
  --brand-2: #45a84a;
  --brand-dark: #295d2e;
  --yellow: #fbf1c7;
  --blue: #dde7fb;
  --peach: #e2f0dc;
  --lilac: #ebe5fb;
  --r-lg: 28px;
  --r-md: 20px;
  --gap: 12px;
  --display: "Inter Tight", "Noto Sans Thai", system-ui, sans-serif;
  --font: "Inter Tight", "Noto Sans Thai", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0 0 .5em; font-weight: 400; letter-spacing: -.02em; line-height: 1.2; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 300; }
h3 { font-size: 1.1rem; font-weight: 500; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.nw { white-space: nowrap; }

.page { width: min(1320px, 100% - 24px); margin: 0 auto; padding: 12px 0 24px; display: grid; gap: var(--gap); }
.card { background: var(--card); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2.4rem); position: relative; overflow: hidden; }
.bento { display: grid; gap: var(--gap); }
.kicker { font-size: .82rem; color: var(--muted); letter-spacing: .02em; margin-bottom: 1rem; }

/* pills */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font: inherit; font-size: .92rem; padding: .55em 1.25em; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.pill:hover { border-color: var(--brand); }
.pill.is-active { background: var(--brand); border-color: var(--brand); color: var(--white); }
.pill-dark { background: var(--ink); border-color: var(--ink); color: var(--white); }
.pill-dark:hover { background: var(--brand); border-color: var(--brand); }
.pill-brand { background: var(--brand); border-color: var(--brand); color: var(--white); }
.pill-brand:hover { background: var(--ink); border-color: var(--ink); }
.pill-white { background: var(--white); border-color: var(--white); color: var(--brand); font-weight: 500; }
.pill-white:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.pill-peach { background: var(--peach); border-color: var(--peach); padding: .8em 1.8em; }
.pill-peach:hover { background: var(--brand); color: var(--white); }
.pill-lg { font-size: 1.05rem; padding: .9em 1.8em; font-weight: 500; }
.pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.round-btn { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; transition: background .2s, transform .2s; }
.round-btn:hover { background: var(--brand); transform: rotate(45deg); }
.round-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* header */
.site-header { position: sticky; top: 12px; z-index: 50; display: flex; align-items: center; gap: 1.5rem; padding: .7rem .8rem .7rem 1.2rem; border-radius: 999px; background: rgba(247, 247, 245, .88); backdrop-filter: blur(14px); overflow: visible; box-shadow: 0 6px 24px -12px rgba(0,0,0,.18); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-logo { height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; padding-left: .75rem; border-left: 1px solid var(--line); }
.brand-text strong { font-weight: 600; font-size: 1rem; color: var(--brand-dark); }
.brand-text small { font-size: .62rem; letter-spacing: .14em; color: var(--muted); }
.site-header nav { margin-left: auto; }
.menu { display: flex; gap: .3rem; list-style: none; padding: 0; margin: 0; }
.menu a { display: block; padding: .45em 1em; border-radius: 999px; text-decoration: none; font-size: .93rem; color: var(--ink); transition: background .2s; }
.menu a:hover { background: var(--white); }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--ink); cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 16px; height: 1.5px; background: var(--white); margin: 4px auto; }

/* hero */
.hero { grid-template-columns: 1.15fr 1fr; min-height: min(78vh, 720px); }
.hero-main { display: flex; flex-direction: column; justify-content: space-between; background: var(--white); }
.hero-main h1 { font-family: var(--display); font-size: clamp(2.8rem, 6.6vw, 6rem); font-weight: 300; line-height: 1.08; letter-spacing: -.035em; margin: .2em 0 .5em; }
.hero-main h1 .hl { color: var(--brand); }
.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; }
.hero-foot p { color: var(--muted); max-width: 30em; margin: 0; }
.hero-media { padding: 0; min-height: 420px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media-label { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(255,255,255,.85); backdrop-filter: blur(10px); border-radius: var(--r-md); padding: 1rem 1.3rem; display: flex; flex-direction: column; }
.media-label strong { font-family: var(--display); font-weight: 400; font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.2; }
.media-label span { color: var(--muted); font-size: .9rem; }

/* features */
.features { grid-template-columns: repeat(4, 1fr); }
.feat { min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; }
.feat-ico { position: absolute; top: 1.8rem; left: 1.8rem; width: 44px; height: 44px; }
.feat-ico g { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.feat-ico circle { fill: var(--ink); stroke: none; }
.feat-peach .feat-ico circle, .feat-lilac .feat-ico path { fill: none; stroke: var(--ink); stroke-width: 1.3; }
.feat h3 { font-size: 1.35rem; font-weight: 400; margin-bottom: .4rem; }
.feat p { color: #555; font-size: .92rem; margin: 0; line-height: 1.6; }
.feat-yellow { background: var(--yellow); }
.feat-blue { background: var(--blue); }
.feat-peach { background: var(--peach); }
.feat-lilac { background: var(--lilac); }

/* about */
.about { grid-template-columns: 1fr 1.25fr .8fr; }
.about-title { display: flex; flex-direction: column; padding-bottom: 0; }
.display { font-family: var(--display); font-weight: 300; font-size: clamp(2.6rem, 4.6vw, 4.4rem); line-height: .95; letter-spacing: -.04em; margin: 0 0 .7rem; }
.tags { font-size: .8rem; color: var(--muted); margin-bottom: 1.4rem; }
.about-title img { margin: auto -2.4rem 0; width: calc(100% + 4.8rem); max-width: none; aspect-ratio: 4/3; object-fit: cover; }
.about-text { background: var(--white); }
.about-text h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.about-text > p { color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 1.6rem; }
.stats div { background: var(--card); border-radius: var(--r-md); padding: 1rem 1.1rem; }
.stats strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.7rem; letter-spacing: -.03em; line-height: 1.2; color: var(--brand); }
.stats span { font-size: .82rem; color: var(--muted); }
.about-img { padding: 0; min-height: 360px; }
.about-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* section headers */
.section-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.2rem; }
.section-top h2 { margin: 0; }
.section-desc { max-width: 26em; color: var(--muted); margin: 0; }
.filters { display: flex; gap: .4rem; flex-wrap: wrap; }

/* products */
.products { background: var(--white); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem 1rem; }
.product-img { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1; background: var(--card); margin-bottom: .9rem; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.product:hover .product-img img { transform: scale(1.05); }
.product h3 { margin-bottom: .2rem; font-size: 1rem; }
.product p { color: var(--muted); font-size: .88rem; margin: 0; line-height: 1.55; }
.product.is-hidden { display: none; }

/* calculator */
.calc-wrap { background: var(--brand); border-radius: var(--r-lg); padding: clamp(1rem, 4vw, 3.5rem); background-image: radial-gradient(circle at 15% 10%, var(--brand-2), transparent 45%), radial-gradient(circle at 90% 90%, var(--brand-dark), transparent 50%); }
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; background: rgba(255,255,255,.55); backdrop-filter: blur(14px); padding: 12px; border-radius: var(--r-lg); max-width: 1080px; margin: 0 auto; box-shadow: 0 30px 60px -30px rgba(10, 50, 15, .45); }
.calc-form { background: var(--white); border-radius: var(--r-md); padding: clamp(1.3rem, 3vw, 2.2rem); }
.calc-form h2 { font-size: clamp(1.4rem, 2.3vw, 1.9rem); margin-bottom: .3rem; }
.calc-sub { color: var(--muted); font-size: .92rem; margin-bottom: 1.6rem; }
.field { margin-bottom: 1.5rem; }
.field:last-child { margin-bottom: 0; }
.field-label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .55rem; }
.field-row { display: flex; justify-content: space-between; align-items: baseline; }
.field-row output { font-family: var(--display); font-size: 1.25rem; font-weight: 500; }
.seg { display: flex; flex-wrap: wrap; gap: .35rem; }
.seg .pill { font-size: .85rem; padding: .45em 1em; background: var(--card); border-color: var(--card); }
.seg .pill.is-active { background: var(--brand); border-color: var(--brand); color: var(--white); }
.hint { display: block; font-size: .78rem; color: var(--muted); margin-top: .5rem; }
.range-ends { display: flex; justify-content: space-between; font-size: .75rem; color: #9a9a9a; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(var(--brand), var(--brand)) 0 / var(--p, 10%) 100% no-repeat, #e3efe1; margin: .4rem 0 .3rem; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 5px solid var(--brand); box-shadow: 0 2px 8px rgba(46, 146, 51, .4); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 5px solid var(--brand); }
input[type=range]:focus-visible { outline: 2px solid var(--brand); outline-offset: 6px; }

.calc-result { background: var(--brand); color: var(--white); border-radius: var(--r-md); padding: clamp(1.3rem, 3vw, 2rem); display: flex; flex-direction: column; }
.result-head { display: flex; justify-content: space-between; font-size: .9rem; opacity: .9; margin-bottom: 1rem; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.35); margin-bottom: 1.2rem; }
.bar { flex: 1; background: rgba(255,255,255,.92); border-radius: 6px 6px 2px 2px; min-height: 4px; transition: height .45s cubic-bezier(.2,.8,.2,1); position: relative; }
.bar:hover::after { content: attr(data-label); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--white); font-size: .72rem; padding: .2em .6em; border-radius: 6px; white-space: nowrap; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.result-grid span { display: block; font-size: .8rem; opacity: .85; }
.result-grid strong { font-family: var(--display); font-size: 2.2rem; font-weight: 400; letter-spacing: -.03em; line-height: 1.15; }
.result-grid small { margin-left: .3rem; opacity: .85; }
.result-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1.2rem; font-size: .85rem; }
.result-list li { display: flex; justify-content: space-between; border-bottom: 1px dashed rgba(255,255,255,.3); padding: .25rem 0; }
.result-list b { font-weight: 600; }
.note { font-size: .75rem; opacity: .8; margin: auto 0 1rem; }
#send-line { align-self: flex-start; }
.copied { font-size: .8rem; margin-top: .5rem; }

/* process */
.process { background: var(--white); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.steps li { background: var(--card); border-radius: var(--r-md); padding: 1.4rem 1.2rem 1.5rem; min-height: 210px; display: flex; flex-direction: column; transition: background .25s, transform .25s; }
.steps li:hover { background: var(--peach); transform: translateY(-3px); }
.steps span { font-family: var(--display); font-size: .85rem; color: var(--brand); font-weight: 500; margin-bottom: auto; }
.steps h3 { font-size: 1.2rem; font-weight: 400; margin: 1.4rem 0 .3rem; }
.steps p { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.55; }

/* order */
.order { grid-template-columns: 1fr 1fr; }
.order-steps { background: var(--white); }
.howto { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1.1rem; }
.howto li { display: flex; gap: 1rem; align-items: flex-start; color: var(--muted); font-size: .95rem; }
.howto li > span { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--white); display: grid; place-items: center; font-size: .85rem; font-weight: 500; }
.howto strong { display: block; color: var(--ink); font-weight: 500; }
.segments { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.seg-card { display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; }
.seg-card h3 { font-size: 1.25rem; font-weight: 400; }
.seg-card p { font-size: .88rem; color: #555; margin: 0; line-height: 1.6; }

/* contact */
.contact { grid-template-columns: 1.2fr 1fr; }
.contact-main { background: var(--white); display: flex; flex-direction: column; justify-content: space-between; min-height: 460px; }
.display-th { font-family: var(--display); font-weight: 300; font-size: clamp(2.4rem, 5.2vw, 4.6rem); line-height: 1.1; letter-spacing: -.035em; }
.contact-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.contact-foot p { color: var(--muted); max-width: 26em; margin: 0; }
.contact-side { display: grid; gap: var(--gap); grid-template-rows: auto auto 1fr; }
.info-card { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1.2rem; }
.info-card h3 { font-size: .82rem; color: var(--muted); font-weight: 400; margin-bottom: .4rem; }
.info-card p { font-size: .9rem; margin: 0; line-height: 1.65; }
.info-card a { text-decoration: none; font-weight: 500; }
.info-card a:hover { color: var(--brand); }
.social { display: flex; gap: var(--gap); }
.social .pill { flex: 1; }
.map-card { padding: 0; min-height: 220px; }
.map { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.4); }

.footer { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 1rem 0; font-size: .82rem; color: var(--muted); }
.footer a { text-decoration: none; }

/* reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* responsive */
@media (max-width: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr 1fr; }
  .about-img { display: none; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .info-card { grid-template-columns: 1fr 1fr; }
  .info-card > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero, .about, .order, .contact, .calc { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-media { min-height: 380px; }
  .features { grid-template-columns: 1fr 1fr; }
  .feat { min-height: 220px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .menu { position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; background: var(--card); border-radius: var(--r-md); padding: .5rem; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); display: none; }
  .menu.is-open { display: flex; }
  .menu a { padding: .8em 1em; }
  .nav-toggle { display: block; }
  .site-header nav { margin-left: 0; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 600px) {
  .page { width: calc(100% - 16px); padding-top: 8px; --gap: 8px; }
  .site-header { top: 8px; gap: .6rem; padding-left: .7rem; }
  .brand-text { display: none; }
  .features, .segments, .steps { grid-template-columns: 1fr 1fr; }
  .feat { min-height: 200px; padding: 1.2rem; }
  .feat-ico { top: 1.2rem; left: 1.2rem; width: 36px; height: 36px; }
  .feat h3 { font-size: 1.1rem; }
  .feat p, .seg-card p { font-size: .82rem; }
  .steps li { min-height: 170px; }
  .product p { display: none; }
  .product-grid { gap: 1.4rem .8rem; }
  .about-title img { margin: auto -1.4rem 0; width: calc(100% + 2.8rem); }
  .stats strong { font-size: 1.35rem; }
  .result-list { grid-template-columns: 1fr; }
  .info-card { grid-template-columns: 1fr; }
  .hero-foot { flex-direction: column; align-items: flex-start; }
  .seg-card { min-height: 170px; padding: 1.2rem; }
  .seg-card h3 { font-size: 1.05rem; }
}
