/* Public page styles stay independent of the authenticated app theme. */
html.auth-locked { background: #fff; }
html.auth-locked body { overflow: hidden; }
html.auth-locked #app { display: none; }
#authGate { position: fixed; inset: 0; z-index: 9999; display: none; padding: 0; overflow-y: auto; background: #fff; color: #263d32; font-family: "Sarabun", "Noto Sans Thai", system-ui, sans-serif; line-height: 1.6; color-scheme: light; scroll-behavior: smooth; }
#authGate *, #authGate *::before, #authGate *::after { box-sizing: border-box; letter-spacing: 0; }
#authGate [hidden] { display: none !important; }
#authGate button, #authGate a, #authGate summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
#authGate a { color: inherit; }
#authGate :focus-visible { outline: 3px solid #2676b4; outline-offset: 4px; }
#authGate img { max-width: 100%; }
#authGate .landing-page { background: #fff; color: #263d32; }
.landing-container { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.landing-page h2 { font-size: 32px; line-height: 1.42; font-weight: 500; }
.landing-page h3 { font-size: 17px; line-height: 1.5; font-weight: 600; }
.landing-page section, #demo, #faq { scroll-margin-top: 106px; }
.landing-skip { position: absolute; top: -100px; left: 20px; z-index: 10; padding: 12px 20px; background: #fff; }
.landing-skip:focus { top: 10px; }
.landing-nav { position: sticky; top: 0; z-index: 5; background: #fff; box-shadow: 0 1px 0 #e6ebe8; }
.landing-nav-inner { display: flex; align-items: center; gap: 32px; min-height: 86px; }
.landing-brand { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.landing-brand > img { flex: 0 0 auto; object-fit: contain; border-radius: 50%; background: #fff; }
.landing-brand > span { font-size: 17px; font-weight: 600; line-height: 1.3; }
.landing-brand small { display: block; font-size: 12px; font-weight: 400; margin-top: 5px; color: #5c7163; }
.landing-links { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.landing-links a, .landing-login { padding-block: 12px; min-height: 44px; font-size: 15px; font-weight: 500; white-space: nowrap; text-decoration: none; }
.landing-links a:hover, .landing-login:hover { color: #187348 !important; }
.landing-nav-actions { display: flex; align-items: center; gap: 22px; }
.landing-btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding: 12px 23px; border-radius: 6px; border: 1px solid transparent; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .18s, box-shadow .18s; }
.landing-btn img, .landing-text-link img { flex: 0 0 auto; }
#authGate .landing-btn.primary { background: #ffd12f; color: #23352b; }
#authGate .landing-btn.primary:hover { background: #ffdd61; box-shadow: 0 3px 12px #293b2414; }
#authGate .landing-btn.outline { border-color: #ffffffbd; color: #fff; background: #1425193d; }
#authGate .landing-btn.outline:hover { background: #14251973; }
#authGate .landing-btn.secondary { border-color: #ced8d1; color: #294435; background: #fff; }
#authGate .landing-btn.secondary:hover { background: #f1f6f3; }
.landing-nav-signup { min-height: 44px; padding: 9px 17px; font-size: 14px; gap: 10px; }
.landing-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 6px; background: transparent; }
.landing-icon-btn:hover { background: #edf3ef; }
.landing-menu-toggle, .landing-mobile-auth { display: none; }
.landing-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; height: min(560px, calc(100svh - 170px)); min-height: 440px; }
.landing-hero-photo { position: absolute; inset: 0; z-index: -2; background: #243c29; }
.landing-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 57%; }
.landing-hero::after { content: ""; position: absolute; inset: 0; background: #09221620; z-index: -1; }
.landing-hero-content { padding-block: 72px 58px; }
.landing-hero h1 { color: #fff; font-size: 64px; font-weight: 500; line-height: 1.13; margin: 0 0 20px; text-shadow: 0 2px 16px #061b2166; }
.landing-hero p { color: #fff; font-size: 24px; line-height: 1.5; font-weight: 500; text-shadow: 0 1px 8px #061b21; }
.landing-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.landing-section { padding: 48px 0; background: #fff; }
.landing-product-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.7fr); gap: 60px; align-items: start; }
.landing-product-copy { padding-top: 16px; }
.landing-eyebrow { margin: 0 0 20px; color: #20734e; font-size: 15px; font-weight: 500; }
.landing-body { font-size: 17px; line-height: 1.85; color: #596c60; margin-top: 18px; }
.landing-feature-list { list-style: none; display: grid; gap: 27px; margin-top: 38px; }
.landing-feature-list li { display: flex; align-items: flex-start; gap: 19px; }
.landing-feature-list li > img { flex: 0 0 auto; margin-top: 4px; opacity: .75; }
.landing-feature-list p { font-size: 15px; line-height: 1.65; color: #65716a; margin-top: 4px; }
.landing-product-image { min-width: 0; margin: 0; }
.landing-screenshot-button { display: block; position: relative; width: 100%; border-radius: 8px; border: 1px solid #dce5de; overflow: hidden; background: #0e211b; box-shadow: 0 8px 24px #1b372414; }
.landing-screenshot-button > img { display: block; width: 100%; height: auto; aspect-ratio: 1.28; }
.landing-expand { position: absolute; bottom: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; background: #fff; border-radius: 6px; box-shadow: 0 2px 12px #0003; }
.landing-product-image figcaption { font-size: 13px; margin-top: 12px; color: #65716a; }
.landing-trials { background: #173e2d; padding: 28px 0; color: #fff; }
.landing-trials-grid { display: grid; grid-template-columns: minmax(0,.82fr) minmax(0,1.7fr); gap: 60px; align-items: center; }
.landing-trials .landing-eyebrow { color: #a3d8b4; margin-bottom: 14px; }
.landing-trials .landing-body { color: #deebe1; font-size: 16px; }
.landing-trial-photo { width: 100%; height: auto; aspect-ratio: 2.4; object-fit: cover; border-radius: 8px; }
.landing-text-link { display: inline-flex; gap: 12px; align-items: center; min-height: 44px; margin-top: 14px; font-size: 15px; text-decoration: none; }
.landing-text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.landing-trials .landing-text-link img { filter: invert(1); }
.landing-start { padding-block: 60px; }
.landing-start-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.landing-start h2 { font-size: 26px; }
.landing-start .landing-eyebrow { margin-bottom: 10px; }
.landing-steps { list-style: none; display: grid; gap: 25px; margin-top: 28px; }
.landing-steps li { display: flex; gap: 20px; align-items: flex-start; }
.landing-steps li > span { width: 30px; height: 30px; flex: 0 0 auto; border: 1px solid #8ebba2; color: #276f49; border-radius: 50%; text-align: center; line-height: 28px; font-size: 16px; }
.landing-steps p { font-size: 15px; line-height: 1.7; color: #637169; margin-top: 4px; }
.landing-offline { display: flex; gap: 22px; background: #eff5fa; padding: 23px 25px; border-radius: 6px; }
.landing-offline > img { flex: 0 0 auto; margin-top: 4px; opacity: .65; }
.landing-offline h3 { color: #246c9f; font-size: 18px; }
.landing-offline p { font-size: 14px; line-height: 1.8; color: #526774; margin-top: 6px; }
#authGate .landing-faq-title { font-size: 17px; margin: 22px 0 8px; font-weight: 600; }
.landing-faq details { border-bottom: 1px solid #e1e7e3; }
.landing-faq { display: block; }
.landing-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; cursor: pointer; min-height: 50px; padding: 12px 0; font-size: 15px; font-weight: 500; }
.landing-faq summary::-webkit-details-marker { display: none; }
.landing-faq summary img { flex: 0 0 auto; opacity: .7; transition: transform .18s; }
.landing-faq details[open] summary img { transform: rotate(180deg); }
.landing-faq details p { font-size: 14px; line-height: 1.85; color: #596b60; padding: 0 28px 17px 0; }
.landing-final { border-top: 1px solid #e6ece8; padding-block: 34px; }
.landing-final-inner { display: flex; gap: 35px; justify-content: space-between; align-items: center; }
.landing-final h2 { font-size: 25px; }
.landing-final p { font-size: 15px; color: #637169; margin-top: 7px; }
.landing-final .landing-cta { margin: 0; flex-shrink: 0; }
.landing-footer { background: #122e22; color: #f1f7f3; padding: 27px 0; }
.landing-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.landing-footer .landing-brand > span { font-size: 13px; font-weight: 500; }
.landing-footer .landing-brand small { font-size: 11px; color: #b8ccbf; }
.landing-footer nav { display: flex; gap: 28px; flex-wrap: wrap; }
.landing-footer nav a { font-size: 13px; color: #d0ded5 !important; text-decoration: none; padding-block: 12px; }
.landing-footer nav a:hover { text-decoration: underline; }
#authGate .landing-dialog { margin: auto; width: min(620px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 28px; border: 0; border-radius: 8px; background: #fff; color: #294033; box-shadow: 0 24px 70px #0004; overflow: auto; }
.landing-dialog::backdrop { background: #10271bc9; }
.landing-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.landing-dialog-head h2 { font-size: 21px; font-weight: 500; padding-top: 7px; }
.landing-dialog p, .landing-dialog li { font-size: 15px; line-height: 1.9; }
.landing-dialog ul { padding-left: 22px; margin-top: 12px; }
.landing-dialog li + li { margin-top: 10px; }
#authGate .landing-image-dialog { width: min(1400px, calc(100% - 32px)); padding: 18px; }
.landing-image-dialog > img { display: block; width: 100%; height: auto; border-radius: 6px; }
#authGate.show-auth { overflow: hidden; }
#authGate.show-auth .landing-page { filter: none; }
#authGate.show-auth::after { content: ""; position: fixed; inset: 0; background: #10271bc9; z-index: 8; }
#authGate .auth-box { z-index: 9; background: #fff; color: #263d32; border: 0; border-radius: 8px; box-shadow: 0 24px 70px #0004; max-height: calc(100dvh - 32px); }
#authGate .auth-close { width: 44px; height: 44px; top: 6px; right: 6px; display: grid; place-items: center; border-radius: 6px; background: #fff; }
#authGate .auth-brand { padding-top: 10px; }
#authGate .auth-brand img { width: 56px; height: 56px; box-shadow: none; border-radius: 50%; }
#authGate .auth-brand-name { font-size: 16px; color: #263d32; font-weight: 600; }
#authGate .auth-brand-sub { color: #637169; }
#authGate .auth-tabs { background: #edf3ef; border: 0; border-radius: 6px; }
#authGate .auth-tabs button { min-height: 44px; color: #4f6658; border-radius: 5px; }
#authGate .auth-tabs button.active { background: #216847; color: #fff; box-shadow: none; }
#authGate .ag-field input { border-radius: 6px; background: #fff; color: #253c30; border-color: #cedbd2; }
#authGate .ag-field label { color: #405548; }
#authGate .ag-submit { border-radius: 6px; background: #216847; box-shadow: none; }
#authGate .google-fallback { border-radius: 6px; color: #263d32; background: #fff; border-color: #cedbd2; }
#authGate .auth-hint, #authGate .auth-hint a { color: #5f7266; }
#authGate .auth-hint a { display: inline-block; padding-top: 10px; min-height: 44px; }
@media (min-width: 1600px) { .landing-container { width: min(1440px, calc(100% - 160px)); } .landing-hero { height: min(670px, calc(100svh - 170px)); } .landing-hero h1 { font-size: 72px; } }
@media (max-width: 1200px) { .landing-container { width: calc(100% - 80px); } .landing-nav-inner { gap: 20px; } .landing-brand > span { font-size: 14px; } .landing-links { gap: 20px; } .landing-nav-actions { gap: 16px; } .landing-hero h1 { font-size: 56px; } .landing-product-grid, .landing-trials-grid { gap: 40px; grid-template-columns: minmax(0,1fr) minmax(0,1.9fr); } .landing-page h2 { font-size: 28px; } .landing-start h2 { font-size: 25px; } .landing-start-grid { gap: 50px; } .landing-final h2 { font-size: 23px; } }
@media (max-width: 980px) { .landing-container { width: calc(100% - 56px); } .landing-menu-toggle { display: inline-flex; } .landing-links { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 16px 28px 22px; box-shadow: 0 8px 18px #18352514; } .landing-links.is-open { display: grid; gap: 4px; } .landing-links a { padding: 10px 0; } .landing-nav-actions { margin-left: auto; } .landing-product-grid { gap: 30px; } .landing-page h2 { font-size: 26px; } .landing-feature-list { gap: 20px; margin-top: 26px; } .landing-feature-list li { gap: 12px; } .landing-feature-list li > img { width: 26px; height: 26px; } .landing-feature-list h3 { font-size: 16px; } .landing-feature-list p { font-size: 14px; } .landing-product-copy { padding-top: 0; } .landing-body { font-size: 16px; } .landing-trials-grid { grid-template-columns: 1fr 1.4fr; gap: 32px; } .landing-trial-photo { aspect-ratio: 1.7; } .landing-start-grid { gap: 35px; } .landing-offline { padding: 20px; gap: 15px; } .landing-offline > img { width: 30px; } .landing-final-inner { flex-direction: column; text-align: center; gap: 22px; } }
@media (max-width: 760px) { .landing-hero { height: min(570px, calc(100svh - 160px)); min-height: 390px; } .landing-hero h1 { font-size: 48px; } .landing-hero p { font-size: 21px; } .landing-hero-content { padding-bottom: 42px; } .landing-section { padding-block: 40px; } .landing-product-grid, .landing-trials-grid, .landing-start-grid { grid-template-columns: minmax(0,1fr); gap: 30px; } .landing-product-copy h2 br { display: none; } .landing-feature-list { gap: 20px; } .landing-body br { display: none; } .landing-trials { padding-block: 34px; } .landing-trial-photo { aspect-ratio: 2; } .landing-trials h2 br { display: none; } .landing-trials .landing-body { max-width: 520px; } .landing-start-grid { gap: 40px; } .landing-start .landing-eyebrow { margin-bottom: 12px; } .landing-footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; } .landing-footer nav { gap: 24px; } }
@media (max-width: 600px) { .landing-container { width: calc(100% - 40px); } .landing-nav-inner { min-height: 74px; gap: 12px; } .landing-brand { gap: 9px; } .landing-brand > img { width: 36px; height: 36px; } .landing-brand > span { font-size: 12px; } .landing-brand small { font-size: 10px; } .landing-nav-signup, .landing-nav-actions > .landing-login { display: none; } .landing-mobile-auth { display: flex; gap: 20px; margin-top: 8px; } .landing-hero h1 { font-size: 38px; line-height: 1.16; } .landing-hero p { font-size: 18px; max-width: 290px; line-height: 1.65; } .landing-hero-photo img { object-position: 57% center; } .landing-hero-content { padding-block: 80px 36px; } .landing-cta { gap: 12px; margin-top: 24px; } .landing-btn { min-height: 48px; padding: 11px 18px; font-size: 15px; gap: 10px; } .landing-page h2 { font-size: 26px; } .landing-eyebrow { font-size: 14px; margin-bottom: 14px; } .landing-product-copy h2 br { display: initial; } .landing-feature-list { gap: 22px; margin-top: 26px; } .landing-feature-list li { gap: 16px; } .landing-feature-list h3 { font-size: 17px; } .landing-feature-list p { font-size: 15px; } .landing-product-image figcaption { font-size: 12px; } .landing-trials h2 br { display: initial; } .landing-trial-photo { aspect-ratio: 1.8; } .landing-start h2 { font-size: 25px; } .landing-steps { gap: 24px; } .landing-steps li { gap: 16px; } .landing-offline { padding: 20px 17px; } .landing-offline h3 { font-size: 17px; } .landing-final { padding-block: 32px; } .landing-final h2 { font-size: 24px; } .landing-final p { font-size: 14px; line-height: 1.7; } .landing-footer nav a { font-size: 12px; } #authGate .landing-dialog { padding: 20px; } .landing-dialog-head h2 { font-size: 19px; } .landing-page section, #demo, #faq { scroll-margin-top: 94px; } }
@media (max-width: 359px) { .landing-container { width: calc(100% - 32px); } .landing-brand > span { font-size: 11px; } .landing-brand small { font-size: 9px; } .landing-hero h1 { font-size: 32px; } .landing-hero p { font-size: 17px; } .landing-hero { min-height: 360px; } }
@media (min-width: 981px) and (max-width: 1200px) { .landing-hero { height: min(400px, calc(100svh - 160px)); min-height: 380px; } .landing-nav-inner { min-height: 78px; } .landing-container { width: calc(100% - 112px); } .landing-nav-inner { width: calc(100% - 64px); } .landing-product-grid, .landing-trials-grid { grid-template-columns: minmax(0,.75fr) minmax(0,1.75fr); gap: 48px; } }
@media (min-width: 761px) and (max-width: 980px) { .landing-hero { height: min(420px, calc(100svh - 160px)); min-height: 360px; } .landing-hero-content { padding-block: 48px 38px; } }
@media (prefers-reduced-motion: reduce) { #authGate { scroll-behavior: auto; } #authGate *, #authGate *::before, #authGate *::after { transition: none !important; animation: none !important; } }
