/* phai-erp.monrak.net — bamboo greens of Phai ERP, IBM Plex Sans Thai (assets/fonts, SIL OFL 1.1) */

@font-face { font-family: "IBM Plex Sans Thai"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-thai-thai-400-normal.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-thai-thai-500-normal.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-thai-thai-600-normal.woff2") format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-thai-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Thai"; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-thai-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Thai"; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-thai-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
    --bg: #fbfdfc;
    --bg-alt: #eef7f2;
    --surface: #ffffff;
    --text: #17302a;
    --muted: #5b7068;
    --border: #d7e7df;
    --primary: #12855f;
    --primary-dark: #0e5c41;
    --primary-soft: #d4f7e5;
    --code-bg: #f1f5f3;
}
@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0d1714;
        --bg-alt: #12201b;
        --surface: #16261f;
        --text: #e3efe9;
        --muted: #9db3aa;
        --border: #24392f;
        --primary: #2fb07c;
        --primary-dark: #23a578;
        --primary-soft: #173a2c;
        --code-bg: #0f1c17;
    }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 16px/1.7 "IBM Plex Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
}
a { color: var(--primary); }
code { font-family: ui-monospace, Consolas, monospace; font-size: .88em; background: var(--code-bg); padding: .1em .35em; border-radius: 4px; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5rem; }
h2 { font-size: 1.9rem; font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 1.15rem; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 6px; font-size: .95rem; white-space: nowrap; }
.nav a:hover { color: var(--primary); background: var(--primary-soft); }
.nav .lang { border: 1px solid var(--border); }

.hero { padding: 72px 0 64px; background: radial-gradient(ellipse at 80% 20%, var(--primary-soft), transparent 60%); }
.hero-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.tag { display: inline-block; font-size: .85rem; font-weight: 500; color: var(--primary-dark); background: var(--primary-soft); padding: 2px 12px; border-radius: 99px; margin-bottom: 16px; }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 600; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 40em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 10px; }
.meta { font-size: .88rem; color: var(--muted); margin: 0; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(260px, 60vw); height: auto; filter: drop-shadow(0 18px 40px rgba(18, 133, 95, .25)); }

.nav a.on { color: var(--primary); background: var(--primary-soft); }
.hero-sm { padding: 32px 0 0; }
.hero-sm h1 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.hero-sm .tag { margin-bottom: 10px; }
.hero-sm + .section { padding-top: 24px; }
.hero-sm .lead { max-width: 46em; }
.muted { color: var(--muted); }

.products { display: grid; gap: 16px; }
.product { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; min-width: 0; }
.product > header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.product > header .card-icon { flex: none; margin: 0; }
.product h2 { font-size: 1.4rem; margin: 0 0 2px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.product h2 .tag { margin: 0; font-size: .75rem; }
.product > header p { margin: 0; color: var(--muted); }
.product.soon { opacity: .75; border-style: dashed; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.files li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.file-text { min-width: 0; display: grid; }
.file-text span { color: var(--muted); font-size: .92rem; }
.file-text details { margin-top: 2px; font-size: .82rem; }
.file-text summary { color: var(--muted); font-weight: 400; }
.file-text summary code { background: none; padding: 0; }
.files .btn { flex: none; white-space: nowrap; }
.product .meta { margin-top: 10px; }
.more { display: inline-block; margin-top: 12px; font-weight: 500; text-decoration: none; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 8px; font-weight: 500; text-decoration: none; border: 1px solid transparent; }
.btn .ti { font-size: 1.2em; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 12px 26px; font-size: 1.05rem; }

.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.sub { color: var(--muted); margin: 0 0 28px; }
.mt { margin-top: 36px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.card-icon { font-size: 1.6rem; color: var(--primary); background: var(--primary-soft); width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; margin-bottom: 12px; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.shots { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.shots button { font: inherit; font-size: .92rem; cursor: pointer; border: 1px solid var(--border); background: var(--surface); color: var(--muted); padding: 6px 14px; border-radius: 99px; }
.shots button:hover { color: var(--primary); border-color: var(--primary); }
.shots button[aria-selected="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(14, 92, 65, .14); }

.points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.points li { display: flex; gap: 12px; }
.points .ti { color: var(--primary); font-size: 1.3rem; margin-top: 2px; }
.points b { display: block; font-weight: 600; }
.points span { color: var(--muted); font-size: .95rem; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 22px; min-width: 0; }
.panel h3 .ti { color: var(--primary); }
.steps { margin: 8px 0 0; padding-left: 1.3em; }
.steps li { margin-bottom: 8px; }
details { margin-top: 12px; }
summary { cursor: pointer; color: var(--primary); font-weight: 500; }
pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: 8px; padding: 14px; overflow-x: auto; font-size: .85rem; line-height: 1.5; }
pre code { background: none; padding: 0; }

.wizard { list-style: none; counter-reset: w; padding: 0; margin: 12px 0 20px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.wizard li { counter-increment: w; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.wizard li::before { content: counter(w); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 600; margin-bottom: 8px; }
.wizard b { display: block; }
.wizard span { color: var(--muted); font-size: .9rem; }
.note { color: var(--muted); font-size: .92rem; margin: 6px 0; }

.download { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; margin: 16px 0 20px; }
.download dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; margin: 0; min-width: 0; }
.download dt { color: var(--muted); }
.download dd { margin: 0; min-width: 0; }
.sha { word-break: break-all; font-size: .8rem; }
blockquote { margin: 20px 0 0; padding: 10px 18px; border-left: 3px solid var(--primary); color: var(--muted); font-style: italic; }

.foot { border-top: 1px solid var(--border); padding: 40px 0 28px; }
.suite { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 12px 0 24px; }
.suite a { display: block; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.suite a:hover { border-color: var(--primary); }
.suite b { display: block; color: var(--primary); }
.suite span { color: var(--muted); font-size: .9rem; }
.copy { color: var(--muted); font-size: .85rem; margin: 0; }

@media (max-width: 900px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
    .wizard { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .hero { padding: 40px 0; }
    .hero-row, .two, .points, .suite { grid-template-columns: 1fr; }
    .hero-art { display: none; }
    .grid, .wizard { grid-template-columns: 1fr; }
    .files li { flex-direction: column; align-items: stretch; }
    .files .btn { justify-content: center; }
    .product > header .card-icon { display: none; }
    .nav a:not(.lang) { display: none; }
    h2 { font-size: 1.5rem; }
}
