@layer base, layout, responsive;
@layer base {
:root {
    --green:#087e65; --hover:#066a55; --navy:#07182d; --ink:#142c3a;
    --yellow:#ffc400; --soft:#e5f4ed; --paper:#f5f7f6; --border:#dce5e0;
    --muted:#526761; --line:#06c755; --shadow:0 16px 48px rgba(7,24,45,.09);
    font-family:"Plus Jakarta Sans","Noto Sans Thai",sans-serif;
    color:var(--ink); background:white; line-height:1.65;
}
*, *::before, *::after {box-sizing:border-box}
html {scroll-behavior:smooth; scroll-padding-top:100px}
body, h1, h2, h3, p, figure {margin:0}
h1,h2,h3 {line-height:1.25; font-weight:800; text-wrap:balance}
h2 {font-size:clamp(1.8rem,3.6vw,2.9rem); letter-spacing:-.025em}
h3 {font-size:1.2rem}
a {color:inherit; text-decoration:none}
button {font:inherit}
img {display:block; max-width:100%}
a:focus-visible,button:focus-visible {outline:3px solid #bc8500; outline-offset:4px}
.wrap {width:min(1200px,calc(100% - 64px)); margin-inline:auto}
.section {padding-block:clamp(56px,7vw,104px)}
.soft {background:var(--paper)}
.skip {position:fixed; top:8px; left:8px; z-index:8; transform:translateY(-160%); background:white; padding:12px}
.skip:focus {transform:none}
.button {display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 18px; min-height:46px; border:1px solid transparent; border-radius:10px; font-size:.94rem; line-height:1.35; font-weight:600; cursor:pointer; transition:background .25s,border-color .25s}
.primary {background:var(--green); color:white}
.primary:hover {background:var(--hover)}
.outline {border-color:var(--green); color:var(--green); background:white}
.outline:hover {background:var(--soft)}
.light-outline {border-color:#9babbc; color:white}
.light-outline:hover {background:#ffffff22}
.yellow {background:var(--yellow); color:var(--navy)}
.yellow:hover {background:#ffd34a}
.button:disabled {cursor:default; opacity:.7}
}
@layer layout {
.header {position:sticky; top:0; z-index:3; background:white; box-shadow:0 1px 12px #07182d10}
.header-inner {position:relative; display:flex; align-items:center; min-height:76px; gap:20px; justify-content:space-between}
.brand {display:inline-flex; align-items:center; gap:9px; flex:none; line-height:1.3}
.brand img {object-fit:contain}
.brand strong,.brand small {display:block}
.brand strong {font-size:1.22rem; font-weight:800}
.brand small {color:var(--muted)}
nav,.actions {display:flex; align-items:center; gap:10px}
nav a {padding:10px 7px; min-height:44px; font-weight:600; white-space:nowrap}
nav a:not(.button):hover,.footer a:hover {color:var(--green)}
nav .mobile-action {display:none}
.menu-toggle {display:none; min-height:44px; padding:4px 12px; border:1px solid var(--border); border-radius:8px; color:var(--ink); background:white}
.hero {color:white; background:linear-gradient(90deg,#07182d 8%,#07182df5 26%,#07182d70 61%,#07182d15),url("../images/home/hero-cover.webp") right center / cover no-repeat,var(--navy)}
.hero-inner {min-height:580px; display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding-block:68px}
.eyebrow {color:var(--green); font-size:.875rem; letter-spacing:.12em; font-weight:800; margin-bottom:14px}
.hero .eyebrow,.hero-types {color:var(--yellow)}
.hero h1 {font-size:clamp(2.35rem,5vw,4.45rem); letter-spacing:-.04em}
.hero-types {margin-top:18px; font-weight:700}
.hero-types span {padding-inline:.35em}
.lead {font-size:clamp(1rem,1.8vw,1.2rem); color:var(--muted); margin-block:15px 22px}
.hero .lead {max-width:520px; color:#e2ebf3}
.hero-caption {margin-top:28px; padding-top:14px; border-top:1px solid #ffffff45; color:#e2ebf3; font-size:.875rem}
.highlights {margin:8px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:8px 18px; list-style:none; font-size:.875rem; font-weight:600}
.highlights li::before {content:""; display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--yellow); margin:0 7px 2px 0}
.section-heading {text-align:center; margin-bottom:34px}
.section-heading p {margin-top:8px; color:var(--muted)}
.grid {display:grid; gap:24px}
.three {grid-template-columns:repeat(3,minmax(0,1fr))}
.business {position:relative; isolation:isolate; overflow:hidden; min-height:220px; padding:24px; display:grid; align-content:center; justify-items:center; text-align:center; border:1px solid var(--border); border-radius:16px; background:#ecf4ef; transition:transform .3s,box-shadow .3s}
.business img {position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:-1; opacity:.3; transition:opacity .3s}
.business:hover {transform:translateY(-4px); box-shadow:var(--shadow)}
.business:hover img {opacity:.45}
.business.electrical {border:2px solid var(--green)}
.business h3 {font-size:clamp(1.2rem,2vw,1.6rem); margin-top:38px}
.business p {margin-top:7px; font-weight:600}
.business .icon {position:absolute; top:24px; left:24px}
.icon {display:inline-grid; place-items:center; background:var(--soft); color:var(--green); width:44px; height:44px; border-radius:11px; font-size:2rem; line-height:1}
.icon.line {color:#087d3b; background:#e3faec; box-shadow:inset 0 -2px var(--line)}
.icon svg {width:27px; height:27px}
.split {display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:clamp(28px,6vw,84px)}
.status {display:inline-block; color:var(--green); background:var(--soft); padding:4px 10px; border-radius:6px; font-weight:700; font-size:.875rem}
.commerce,.dashboard {border-radius:16px; padding:clamp(16px,3vw,30px); background:#e5f4ed; border:1px solid #cfdfd8}
.channels {display:grid; grid-template-columns:1.4fr 1fr; align-items:end; gap:12px}
.mock-pos,.mock-phone,.mock-dashboard {background:white; border:2px solid #b5cbc2; padding:14px; min-width:0; border-radius:12px; box-shadow:var(--shadow); overflow-wrap:anywhere}
.mock-phone {border-color:var(--green)}
.mock-lines {height:9px; border-radius:8px; background:#dcebe4; margin-block:10px}
.mock-lines.short {width:65%}
.connector {color:var(--green); font-size:1.6rem; text-align:center}
figcaption {padding:10px; border-radius:10px; background:var(--navy); color:white; text-align:center}
figcaption p,.mock-pos span,.mock-phone span {font-size:.875rem}
.feature-section {padding-top:0}
.card {display:flex; flex-direction:column; align-items:flex-start; gap:11px; border:1px solid var(--border); border-radius:16px; padding:24px; background:white}
.card p {color:var(--muted)}
.card .status {margin-top:auto}
.steps {list-style:none; margin:0; padding:0; grid-template-columns:repeat(4,minmax(0,1fr))}
.step-icon {width:100%; display:flex; justify-content:space-between; align-items:center; gap:10px; font-weight:800; color:var(--green)}
.dashboard {display:grid; grid-template-columns:minmax(0,1fr) 30%; align-items:end}
.mock-dashboard small {display:block; color:var(--muted)}
.dashboard-stats {display:flex; flex-wrap:wrap; gap:6px; margin-block:12px}
.dashboard-stats span {font-size:.875rem; padding:5px; background:var(--paper); border-radius:4px}
.dashboard .mock-phone {margin-left:-12px; transform:translateY(10px)}
.chart {display:flex; align-items:flex-end; gap:7%; height:92px; border-bottom:1px solid var(--border)}
.chart i {flex:1; height:28%; border-radius:5px 5px 0 0; background:var(--green)}
.chart i:nth-child(2n) {height:65%; background:#7abba9}
.chart i:nth-child(3n) {height:46%}
.chart i:last-child {height:84%}
.benefits {list-style:none; padding:0; display:grid; gap:10px; margin:22px 0 0}
.benefits li {display:flex; align-items:center; gap:11px}
.benefits span {display:grid; flex:none; place-items:center; width:24px; height:24px; border-radius:50%; background:var(--soft); color:var(--green); font-weight:800}
.cta {background:var(--navy); color:white; text-align:center; padding-block:clamp(58px,8vw,94px)}
.cta h2::before {content:""; display:block; width:44px; height:4px; margin:0 auto 22px; background:var(--yellow); border-radius:8px}
.cta p {color:#dce6ed; margin:14px 0 25px}
.cta .actions {justify-content:center}
.footer {padding:48px 0 20px; background:var(--paper)}
.footer-grid {display:grid; grid-template-columns:1.2fr 1fr 1fr 1.4fr; gap:24px}
.footer-grid > div {display:flex; flex-direction:column; align-items:flex-start}
.footer h2 {font-size:1rem; margin-bottom:7px}
.footer-grid a:not(.brand) {display:flex; min-height:44px; align-items:center}
.footer-grid p,.footer-grid > div > span {color:var(--muted); margin-top:8px}
.copyright {margin-top:28px; padding-top:15px; border-top:1px solid var(--border); color:var(--muted)}
.login-overlay {display:none; position:fixed; z-index:5; inset:0; place-items:center; padding:16px; background:#07182dbb}
.login-overlay:target,.login-overlay.is-open {display:grid}
.login-panel {position:relative; max-height:100%; overflow:auto; width:min(100%,520px); padding:26px; background:white; border-radius:16px; box-shadow:var(--shadow); animation:enter .25s ease-out}
@keyframes enter {from {opacity:0; transform:translateY(8px)}}
.login-panel h2 {font-size:1.65rem; padding-right:42px}
.close {position:absolute; right:12px; top:12px; min-width:44px; padding:4px; font-size:1.5rem; background:var(--paper)}
.login-choice {border:1px solid var(--border); border-radius:12px; padding:14px; margin-top:13px}
.login-choice p {margin:7px 0 12px; color:var(--muted)}
.signup {max-width:720px}
.signup .login-choice {background:white}
.signup .login-choice h2 {font-size:1.2rem}
.account-home {margin-top:24px}
.js .reveal {animation:enter .35s ease-out both}
}
@layer responsive {
@media (max-width:1070px) {
    html {scroll-padding-top:135px}
    .header-inner {flex-wrap:wrap; gap:8px 14px; padding-block:10px}
    nav {width:100%; justify-content:center; order:3}
    .three,.steps {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:700px) {
    html {scroll-padding-top:85px}
    .wrap {width:calc(100% - 36px)}
    .header-inner {min-height:66px}
    .js .menu-toggle {display:inline-flex; align-items:center; gap:7px; margin-left:auto}
    .header-inner > .actions {margin-left:auto}
    .js .header-inner > .actions {display:none}
    .js nav {display:none; position:absolute; top:100%; width:100%; padding:10px 14px; background:white; border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow)}
    .js nav.is-open {display:grid; max-height:calc(100dvh - 82px); overflow:auto}
    .js nav .mobile-action {display:inline-flex; margin-block:3px}
    nav {flex-wrap:wrap; gap:2px 8px; justify-content:flex-start}
    .hero {background:linear-gradient(90deg,#07182df5,#07182d93),url("../images/home/hero-cover.webp") 65% center / cover no-repeat,var(--navy)}
    .hero-inner {min-height:0; padding-block:60px}
    .hero h1 {font-size:clamp(1.9rem,7.5vw,3.1rem)}
    .three,.steps,.split {grid-template-columns:minmax(0,1fr)}
    .footer-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (prefers-reduced-motion:reduce) {
    html {scroll-behavior:auto}
    *,*::before,*::after {animation-duration:.01ms !important; transition-duration:.01ms !important}
    .business:hover {transform:none}
}
}
